# acpAllowanceToProvenance

acpAllowanceToProvenance in @provenanceauth/rails/acp, Rails. The inverse mapping: an ACP `allowance` → mandate-shaped constraints plus its session facts.

## Signature

```ts
acpAllowanceToProvenance(allowance: AcpAllowance): { constraints: { max_amount: number; allowed_counterparties: string[]; expires_at: string }; checkout_session_id: string; currency: string; }
```

## Parameters

- `allowance` (AcpAllowance)

## Returns

`{ constraints: { max_amount: number; allowed_counterparties: string[]; expires_at: string }; checkout_session_id: string; currency: string; }`

Runs locally, with no request to the API.
