> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mangopay.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mangopay.com/_mcp/server.

# Ruby SDK - 4.1.0

October 1, 2026

## Added

### Extended Preauthorization feature to rename Deposit Preauthorization

New `MangoPay::ExtendedPreauthorization`, renaming `MangoPay::Deposit`, now deprecated ([API release note](/release-notes/api/2026-10-01)):

* `create` ([POST Create a Card Extended Preauthorization](/api-reference/extended-preauthorizations/create-card-extended-preauthorization))
* `create_paypal_preauthorization` ([POST Create a PayPal Extended Preauthorization](/api-reference/extended-preauthorizations/create-paypal-extended-preauthorization))
* `get` ([GET View an Extended Preauthorization](/api-reference/extended-preauthorizations/view-extended-preauthorization))
* `update` – to cancel, call `update` with `{ PaymentStatus: 'CANCELED' }` ([PUT Cancel an Extended Preauthorization](/api-reference/extended-preauthorizations/cancel-extended-preauthorization))
* `get_all_for_user` ([GET List Extended Preauthorizations for a User](/api-reference/extended-preauthorizations/list-extended-preauthorizations-user))
* `get_all_for_card` ([GET List Extended Preauthorizations for a Card](/api-reference/extended-preauthorizations/list-extended-preauthorizations-card))
* `get_transactions` ([GET List Transactions for an Extended Preauthorization](/api-reference/transactions/list-transactions-extended-preauthorization))

---

## Added

### `create_pre_authorized_extended_pay_in`

New `MangoPay::PayIn::PreAuthorized::Direct.create_pre_authorized_extended_pay_in`, for extended preauthorized pay-ins, backed by [POST Create an Extended Preauthorized PayIn](/api-reference/extended-preauthorizations/create-extended-preauthorized-payin).

---

## Deprecated

### Deposit Preauthorization feature deprecated

* `MangoPay::Deposit` – use `MangoPay::ExtendedPreauthorization` instead.
* `MangoPay::PayIn::PreAuthorized::Direct.create_pre_authorized_deposit_pay_in` – use `create_pre_authorized_extended_pay_in` instead.