# ap2OpenPaymentToProvenance

ap2OpenPaymentToProvenance in @provenanceauth/rails/ap2, Rails. Open Payment Mandate content → the Provenance mandate fields it expresses.

## Signature

```ts
ap2OpenPaymentToProvenance(content: Ap2OpenPaymentMandate): { constraints: ProvenanceMandateConstraints; currency: string | null; mandate_token: string | null; checkout_reference: string | null; unresolved: string[]; }
```

## Parameters

- `content` (Ap2OpenPaymentMandate)

## Returns

`{ constraints: ProvenanceMandateConstraints; currency: string | null; mandate_token: string | null; checkout_reference: string | null; unresolved: string[]; }`

Runs locally, with no request to the API.
