Skip to content

Commit 32d3485

Browse files
Merge upstream and update generated code for v1317
2 parents c447e6d + d53a190 commit 32d3485

30 files changed

+1163
-25
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* Add support for `payout_statement_descriptor_profanity` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
7171
* Add support for `retail_delivery_fee` on enums `stripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type`, `stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.TaxRate.tax_type`, `stripe.TaxRate.CreateParams.tax_type`, and `stripe.TaxRate.ModifyParams.tax_type`
7272
* Add support for `expired` on enums `stripe.issuing.Authorization.status` and `stripe.issuing.Authorization.ListParams.status`
73-
* Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type`
73+
* Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type`
7474

7575
## 11.2.0b1 - 2024-10-03
7676
* [#1407](https://github.com/stripe/stripe-python/pull/1407) Updates beta branch with changes in master & update generated code
@@ -81,6 +81,14 @@
8181
* Move `raw_request` and related methods from `_raw_request` module to the `StripeClient` class
8282
* Remove `_preview` module; use raw request methods in the `StripeClient` class instead
8383

84+
## 11.1.1 - 2024-10-18
85+
* [#1414](https://github.com/stripe/stripe-python/pull/1414) Deserialize into correct v2 EventData types
86+
* Fixes a bug where v2 EventData was not being deserialized into the appropriate type for `V1BillingMeterErrorReportTriggeredEvent` and `V1BillingMeterNoMeterFoundEvent`
87+
* [#1415](https://github.com/stripe/stripe-python/pull/1415) update object tags for meter-related classes
88+
89+
- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
90+
* [#1412](https://github.com/stripe/stripe-python/pull/1412) Clean up examples
91+
8492
## 11.1.0 - 2024-10-03
8593
* [#1409](https://github.com/stripe/stripe-python/pull/1409) Update the class for `ThinEvent` to include `livemode`
8694
* [#1408](https://github.com/stripe/stripe-python/pull/1408) Update generated code

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1314
1+
v1317

stripe/_account.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,18 @@ class Capabilities(StripeObject):
250250
"""
251251
The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
252252
"""
253+
id_bank_transfer_payments: Optional[
254+
Literal["active", "inactive", "pending"]
255+
]
256+
"""
257+
The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges.
258+
"""
259+
id_bank_transfer_payments_bca: Optional[
260+
Literal["active", "inactive", "pending"]
261+
]
262+
"""
263+
The status of Bank BCA onboarding of the account.
264+
"""
253265
ideal_payments: Optional[Literal["active", "inactive", "pending"]]
254266
"""
255267
The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
@@ -1073,6 +1085,16 @@ class BacsDebitPayments(StripeObject):
10731085
The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.
10741086
"""
10751087

1088+
class BankBcaOnboarding(StripeObject):
1089+
account_holder_name: Optional[str]
1090+
"""
1091+
Bank BCA business account holder name.
1092+
"""
1093+
business_account_number: Optional[str]
1094+
"""
1095+
Bank BCA business account number.
1096+
"""
1097+
10761098
class Branding(StripeObject):
10771099
icon: Optional[ExpandableField["File"]]
10781100
"""
@@ -1244,6 +1266,7 @@ class TosAcceptance(StripeObject):
12441266
_inner_class_types = {"tos_acceptance": TosAcceptance}
12451267

12461268
bacs_debit_payments: Optional[BacsDebitPayments]
1269+
bank_bca_onboarding: Optional[BankBcaOnboarding]
12471270
branding: Branding
12481271
capital: Optional[Capital]
12491272
card_issuing: Optional[CardIssuing]
@@ -1257,6 +1280,7 @@ class TosAcceptance(StripeObject):
12571280
treasury: Optional[Treasury]
12581281
_inner_class_types = {
12591282
"bacs_debit_payments": BacsDebitPayments,
1283+
"bank_bca_onboarding": BankBcaOnboarding,
12601284
"branding": Branding,
12611285
"capital": Capital,
12621286
"card_issuing": CardIssuing,
@@ -1715,6 +1739,18 @@ class CreateParamsCapabilities(TypedDict):
17151739
"""
17161740
The grabpay_payments capability.
17171741
"""
1742+
id_bank_transfer_payments: NotRequired[
1743+
"Account.CreateParamsCapabilitiesIdBankTransferPayments"
1744+
]
1745+
"""
1746+
The id_bank_transfer_payments capability.
1747+
"""
1748+
id_bank_transfer_payments_bca: NotRequired[
1749+
"Account.CreateParamsCapabilitiesIdBankTransferPaymentsBca"
1750+
]
1751+
"""
1752+
The id_bank_transfer_payments_bca capability.
1753+
"""
17181754
ideal_payments: NotRequired[
17191755
"Account.CreateParamsCapabilitiesIdealPayments"
17201756
]
@@ -2090,6 +2126,18 @@ class CreateParamsCapabilitiesGrabpayPayments(TypedDict):
20902126
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.
20912127
"""
20922128

2129+
class CreateParamsCapabilitiesIdBankTransferPayments(TypedDict):
2130+
requested: NotRequired[bool]
2131+
"""
2132+
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.
2133+
"""
2134+
2135+
class CreateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
2136+
requested: NotRequired[bool]
2137+
"""
2138+
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.
2139+
"""
2140+
20932141
class CreateParamsCapabilitiesIdealPayments(TypedDict):
20942142
requested: NotRequired[bool]
20952143
"""
@@ -3036,6 +3084,12 @@ class CreateParamsSettings(TypedDict):
30363084
"""
30373085
Settings specific to Bacs Direct Debit.
30383086
"""
3087+
bank_bca_onboarding: NotRequired[
3088+
"Account.CreateParamsSettingsBankBcaOnboarding"
3089+
]
3090+
"""
3091+
Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
3092+
"""
30393093
branding: NotRequired["Account.CreateParamsSettingsBranding"]
30403094
"""
30413095
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
@@ -3075,6 +3129,16 @@ class CreateParamsSettingsBacsDebitPayments(TypedDict):
30753129
The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
30763130
"""
30773131

3132+
class CreateParamsSettingsBankBcaOnboarding(TypedDict):
3133+
account_holder_name: NotRequired[str]
3134+
"""
3135+
Bank BCA business account holder name
3136+
"""
3137+
business_account_number: NotRequired[str]
3138+
"""
3139+
Bank BCA business account number
3140+
"""
3141+
30783142
class CreateParamsSettingsBranding(TypedDict):
30793143
icon: NotRequired[str]
30803144
"""

stripe/_account_service.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,18 @@ class CreateParamsCapabilities(TypedDict):
372372
"""
373373
The grabpay_payments capability.
374374
"""
375+
id_bank_transfer_payments: NotRequired[
376+
"AccountService.CreateParamsCapabilitiesIdBankTransferPayments"
377+
]
378+
"""
379+
The id_bank_transfer_payments capability.
380+
"""
381+
id_bank_transfer_payments_bca: NotRequired[
382+
"AccountService.CreateParamsCapabilitiesIdBankTransferPaymentsBca"
383+
]
384+
"""
385+
The id_bank_transfer_payments_bca capability.
386+
"""
375387
ideal_payments: NotRequired[
376388
"AccountService.CreateParamsCapabilitiesIdealPayments"
377389
]
@@ -751,6 +763,18 @@ class CreateParamsCapabilitiesGrabpayPayments(TypedDict):
751763
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.
752764
"""
753765

766+
class CreateParamsCapabilitiesIdBankTransferPayments(TypedDict):
767+
requested: NotRequired[bool]
768+
"""
769+
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.
770+
"""
771+
772+
class CreateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
773+
requested: NotRequired[bool]
774+
"""
775+
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.
776+
"""
777+
754778
class CreateParamsCapabilitiesIdealPayments(TypedDict):
755779
requested: NotRequired[bool]
756780
"""
@@ -1715,6 +1739,12 @@ class CreateParamsSettings(TypedDict):
17151739
"""
17161740
Settings specific to Bacs Direct Debit.
17171741
"""
1742+
bank_bca_onboarding: NotRequired[
1743+
"AccountService.CreateParamsSettingsBankBcaOnboarding"
1744+
]
1745+
"""
1746+
Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
1747+
"""
17181748
branding: NotRequired["AccountService.CreateParamsSettingsBranding"]
17191749
"""
17201750
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
@@ -1758,6 +1788,16 @@ class CreateParamsSettingsBacsDebitPayments(TypedDict):
17581788
The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
17591789
"""
17601790

1791+
class CreateParamsSettingsBankBcaOnboarding(TypedDict):
1792+
account_holder_name: NotRequired[str]
1793+
"""
1794+
Bank BCA business account holder name
1795+
"""
1796+
business_account_number: NotRequired[str]
1797+
"""
1798+
Bank BCA business account number
1799+
"""
1800+
17611801
class CreateParamsSettingsBranding(TypedDict):
17621802
icon: NotRequired[str]
17631803
"""
@@ -2344,6 +2384,18 @@ class UpdateParamsCapabilities(TypedDict):
23442384
"""
23452385
The grabpay_payments capability.
23462386
"""
2387+
id_bank_transfer_payments: NotRequired[
2388+
"AccountService.UpdateParamsCapabilitiesIdBankTransferPayments"
2389+
]
2390+
"""
2391+
The id_bank_transfer_payments capability.
2392+
"""
2393+
id_bank_transfer_payments_bca: NotRequired[
2394+
"AccountService.UpdateParamsCapabilitiesIdBankTransferPaymentsBca"
2395+
]
2396+
"""
2397+
The id_bank_transfer_payments_bca capability.
2398+
"""
23472399
ideal_payments: NotRequired[
23482400
"AccountService.UpdateParamsCapabilitiesIdealPayments"
23492401
]
@@ -2723,6 +2775,18 @@ class UpdateParamsCapabilitiesGrabpayPayments(TypedDict):
27232775
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.
27242776
"""
27252777

2778+
class UpdateParamsCapabilitiesIdBankTransferPayments(TypedDict):
2779+
requested: NotRequired[bool]
2780+
"""
2781+
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.
2782+
"""
2783+
2784+
class UpdateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
2785+
requested: NotRequired[bool]
2786+
"""
2787+
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.
2788+
"""
2789+
27262790
class UpdateParamsCapabilitiesIdealPayments(TypedDict):
27272791
requested: NotRequired[bool]
27282792
"""
@@ -3617,6 +3681,12 @@ class UpdateParamsSettings(TypedDict):
36173681
"""
36183682
Settings specific to Bacs Direct Debit payments.
36193683
"""
3684+
bank_bca_onboarding: NotRequired[
3685+
"AccountService.UpdateParamsSettingsBankBcaOnboarding"
3686+
]
3687+
"""
3688+
Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
3689+
"""
36203690
branding: NotRequired["AccountService.UpdateParamsSettingsBranding"]
36213691
"""
36223692
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
@@ -3664,6 +3734,16 @@ class UpdateParamsSettingsBacsDebitPayments(TypedDict):
36643734
The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
36653735
"""
36663736

3737+
class UpdateParamsSettingsBankBcaOnboarding(TypedDict):
3738+
account_holder_name: NotRequired[str]
3739+
"""
3740+
Bank BCA business account holder name
3741+
"""
3742+
business_account_number: NotRequired[str]
3743+
"""
3744+
Bank BCA business account number
3745+
"""
3746+
36673747
class UpdateParamsSettingsBranding(TypedDict):
36683748
icon: NotRequired[str]
36693749
"""

stripe/_charge.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,28 @@ class Grabpay(StripeObject):
11081108
Unique transaction id generated by GrabPay
11091109
"""
11101110

1111+
class IdBankTransfer(StripeObject):
1112+
account_number: str
1113+
"""
1114+
Account number of the bank account to transfer funds to.
1115+
"""
1116+
bank: Literal["bca", "bni", "bri", "cimb", "permata"]
1117+
"""
1118+
Bank where the account is located.
1119+
"""
1120+
bank_code: Optional[str]
1121+
"""
1122+
Local bank code of the bank.
1123+
"""
1124+
bank_name: Optional[str]
1125+
"""
1126+
Name of the bank associated with the bank account.
1127+
"""
1128+
display_name: Optional[str]
1129+
"""
1130+
Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
1131+
"""
1132+
11111133
class Ideal(StripeObject):
11121134
bank: Optional[
11131135
Literal[
@@ -1846,6 +1868,7 @@ class Zip(StripeObject):
18461868
giropay: Optional[Giropay]
18471869
gopay: Optional[Gopay]
18481870
grabpay: Optional[Grabpay]
1871+
id_bank_transfer: Optional[IdBankTransfer]
18491872
ideal: Optional[Ideal]
18501873
interac_present: Optional[InteracPresent]
18511874
kakao_pay: Optional[KakaoPay]
@@ -1909,6 +1932,7 @@ class Zip(StripeObject):
19091932
"giropay": Giropay,
19101933
"gopay": Gopay,
19111934
"grabpay": Grabpay,
1935+
"id_bank_transfer": IdBankTransfer,
19121936
"ideal": Ideal,
19131937
"interac_present": InteracPresent,
19141938
"kakao_pay": KakaoPay,

0 commit comments

Comments
 (0)