Skip to content

Commit 902ff69

Browse files
Update generated code (#1112)
* Update generated code for v629 * Update generated code for v630 * Update generated code for v633 * Update generated code for v634 * Update generated code for v636 * Update generated code for v637 * Update generated code for v638 * Update generated code for v640 * Update generated code for v641 * Update generated code for v642 * Update generated code for v644 * Update generated code for v645 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Richard Marmorstein <[email protected]>
1 parent 22f9c32 commit 902ff69

24 files changed

+4225
-2196
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v627
1+
v645

stripe/api_resources/account.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@ class Capabilities(StripeObject):
253253
"""
254254
The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
255255
"""
256+
revolut_pay_payments: Optional[
257+
Literal["active", "inactive", "pending"]
258+
]
259+
"""
260+
The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
261+
"""
256262
sepa_debit_payments: Optional[Literal["active", "inactive", "pending"]]
257263
"""
258264
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
@@ -2008,6 +2014,12 @@ class CreateParamsCapabilities(TypedDict):
20082014
"""
20092015
The promptpay_payments capability.
20102016
"""
2017+
revolut_pay_payments: NotRequired[
2018+
"Account.CreateParamsCapabilitiesRevolutPayPayments|None"
2019+
]
2020+
"""
2021+
The revolut_pay_payments capability.
2022+
"""
20112023
sepa_debit_payments: NotRequired[
20122024
"Account.CreateParamsCapabilitiesSepaDebitPayments|None"
20132025
]
@@ -2105,6 +2117,12 @@ class CreateParamsCapabilitiesSepaDebitPayments(TypedDict):
21052117
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
21062118
"""
21072119

2120+
class CreateParamsCapabilitiesRevolutPayPayments(TypedDict):
2121+
requested: NotRequired["bool|None"]
2122+
"""
2123+
Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2124+
"""
2125+
21082126
class CreateParamsCapabilitiesPromptpayPayments(TypedDict):
21092127
requested: NotRequired["bool|None"]
21102128
"""

stripe/api_resources/balance_transaction.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class ListParams(RequestOptions):
112112
"""
113113
type: NotRequired["str|None"]
114114
"""
115-
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
115+
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
116116
"""
117117

118118
class ListParamsCreated(TypedDict):
@@ -241,6 +241,7 @@ class RetrieveParams(RequestOptions):
241241
"payment_failure_refund",
242242
"payment_refund",
243243
"payment_reversal",
244+
"payment_unreconciled",
244245
"payout",
245246
"payout_cancel",
246247
"payout_failure",
@@ -259,7 +260,7 @@ class RetrieveParams(RequestOptions):
259260
"transfer_refund",
260261
]
261262
"""
262-
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
263+
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
263264
"""
264265

265266
@classmethod

stripe/api_resources/bank_account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@ class DeleteParams(RequestOptions):
358358
"""
359359
status: str
360360
"""
361-
For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a transfer sent to this bank account fails, we'll set the status to `errored` and will not continue to send transfers until the bank details are updated.
361+
For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.
362362
363-
For external accounts, possible values are `new`, `errored` and `verification_failed`. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated. In India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
363+
For external accounts, possible values are `new`, `errored` and `verification_failed`. If a payouts fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
364364
"""
365365
deleted: Optional[Literal[True]]
366366
"""

stripe/api_resources/billing_portal/configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Product(StripeObject):
145145
"""
146146
products: Optional[List[Product]]
147147
"""
148-
The list of products that support subscription updates.
148+
The list of up to 10 products that support subscription updates.
149149
"""
150150
proration_behavior: Literal[
151151
"always_invoice", "create_prorations", "none"
@@ -273,7 +273,7 @@ class CreateParamsFeaturesSubscriptionUpdate(TypedDict):
273273
],
274274
]
275275
"""
276-
The list of products that support subscription updates.
276+
The list of up to 10 products that support subscription updates.
277277
"""
278278
proration_behavior: NotRequired[
279279
"Literal['always_invoice', 'create_prorations', 'none']|None"
@@ -503,7 +503,7 @@ class ModifyParamsFeaturesSubscriptionUpdate(TypedDict):
503503
"Literal['']|List[Configuration.ModifyParamsFeaturesSubscriptionUpdateProduct]|None"
504504
]
505505
"""
506-
The list of products that support subscription updates.
506+
The list of up to 10 products that support subscription updates.
507507
"""
508508
proration_behavior: NotRequired[
509509
"Literal['always_invoice', 'create_prorations', 'none']|None"

stripe/api_resources/card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class DeleteParams(RequestOptions):
153153
"""
154154
status: Optional[str]
155155
"""
156-
For external accounts, possible values are `new` and `errored`. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
156+
For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
157157
"""
158158
tokenization_method: Optional[str]
159159
"""

stripe/api_resources/charge.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,9 @@ class Promptpay(StripeObject):
13541354
Bill reference generated by PromptPay
13551355
"""
13561356

1357+
class RevolutPay(StripeObject):
1358+
pass
1359+
13571360
class SepaCreditTransfer(StripeObject):
13581361
bank_name: Optional[str]
13591362
"""
@@ -1512,6 +1515,7 @@ class Zip(StripeObject):
15121515
paypal: Optional[Paypal]
15131516
pix: Optional[Pix]
15141517
promptpay: Optional[Promptpay]
1518+
revolut_pay: Optional[RevolutPay]
15151519
sepa_credit_transfer: Optional[SepaCreditTransfer]
15161520
sepa_debit: Optional[SepaDebit]
15171521
sofort: Optional[Sofort]
@@ -1558,6 +1562,7 @@ class Zip(StripeObject):
15581562
"paypal": Paypal,
15591563
"pix": Pix,
15601564
"promptpay": Promptpay,
1565+
"revolut_pay": RevolutPay,
15611566
"sepa_credit_transfer": SepaCreditTransfer,
15621567
"sepa_debit": SepaDebit,
15631568
"sofort": Sofort,

stripe/api_resources/checkout/session.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,9 @@ class Pix(StripeObject):
798798
The number of seconds after which Pix payment will expire.
799799
"""
800800

801+
class RevolutPay(StripeObject):
802+
pass
803+
801804
class SepaDebit(StripeObject):
802805
setup_future_usage: Optional[
803806
Literal["none", "off_session", "on_session"]
@@ -886,6 +889,7 @@ class FinancialConnections(StripeObject):
886889
p24: Optional[P24]
887890
paynow: Optional[Paynow]
888891
pix: Optional[Pix]
892+
revolut_pay: Optional[RevolutPay]
889893
sepa_debit: Optional[SepaDebit]
890894
sofort: Optional[Sofort]
891895
us_bank_account: Optional[UsBankAccount]
@@ -913,6 +917,7 @@ class FinancialConnections(StripeObject):
913917
"p24": P24,
914918
"paynow": Paynow,
915919
"pix": Pix,
920+
"revolut_pay": RevolutPay,
916921
"sepa_debit": SepaDebit,
917922
"sofort": Sofort,
918923
"us_bank_account": UsBankAccount,
@@ -1427,10 +1432,10 @@ class CreateParams(RequestOptions):
14271432
"""
14281433
customer: NotRequired["str|None"]
14291434
"""
1430-
ID of an existing Customer, if one exists. In `payment` mode, the customer's most recent card
1435+
ID of an existing Customer, if one exists. In `payment` mode, the customer's most recently saved card
14311436
payment method will be used to prefill the email, name, card details, and billing address
14321437
on the Checkout page. In `subscription` mode, the customer's [default payment method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
1433-
will be used if it's a card, and otherwise the most recent card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
1438+
will be used if it's a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
14341439
14351440
If the Customer already has a valid [email](https://stripe.com/docs/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
14361441
If the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.
@@ -1537,7 +1542,7 @@ class CreateParams(RequestOptions):
15371542
Payment-method-specific configuration.
15381543
"""
15391544
payment_method_types: NotRequired[
1540-
"List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay', 'zip']]|None"
1545+
"List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'revolut_pay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay', 'zip']]|None"
15411546
]
15421547
"""
15431548
A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
@@ -2243,6 +2248,12 @@ class CreateParamsPaymentMethodOptions(TypedDict):
22432248
"""
22442249
contains details about the Pix payment method options.
22452250
"""
2251+
revolut_pay: NotRequired[
2252+
"Session.CreateParamsPaymentMethodOptionsRevolutPay|None"
2253+
]
2254+
"""
2255+
contains details about the RevolutPay payment method options.
2256+
"""
22462257
sepa_debit: NotRequired[
22472258
"Session.CreateParamsPaymentMethodOptionsSepaDebit|None"
22482259
]
@@ -2346,6 +2357,18 @@ class CreateParamsPaymentMethodOptionsSepaDebit(TypedDict):
23462357
When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
23472358
"""
23482359

2360+
class CreateParamsPaymentMethodOptionsRevolutPay(TypedDict):
2361+
setup_future_usage: NotRequired[
2362+
"Literal['none', 'off_session']|None"
2363+
]
2364+
"""
2365+
Indicates that you intend to make future payments with this PaymentIntent's payment method.
2366+
2367+
Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
2368+
2369+
When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
2370+
"""
2371+
23492372
class CreateParamsPaymentMethodOptionsPix(TypedDict):
23502373
expires_after_seconds: NotRequired["int|None"]
23512374
"""

stripe/api_resources/customer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class ListPaymentMethodsParams(RequestOptions):
642642
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
643643
"""
644644
type: NotRequired[
645-
"Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay', 'zip']|None"
645+
"Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'revolut_pay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay', 'zip']|None"
646646
]
647647
"""
648648
An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.

stripe/api_resources/customer_cash_balance_transaction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ class RetrieveParams(RequestOptions):
209209
"refunded_from_payment",
210210
"return_canceled",
211211
"return_initiated",
212+
"transferred_to_balance",
212213
"unapplied_from_payment",
213214
]
214215
"""

0 commit comments

Comments
 (0)