Skip to content

Commit

Permalink
Merge upstream and update generated code for v1317
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 23, 2024
2 parents c447e6d + d53a190 commit 32d3485
Show file tree
Hide file tree
Showing 30 changed files with 1,163 additions and 25 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
* 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`
* 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`
* Add support for `expired` on enums `stripe.issuing.Authorization.status` and `stripe.issuing.Authorization.ListParams.status`
* Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type`
* Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type`

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

## 11.1.1 - 2024-10-18
* [#1414](https://github.com/stripe/stripe-python/pull/1414) Deserialize into correct v2 EventData types
* Fixes a bug where v2 EventData was not being deserialized into the appropriate type for `V1BillingMeterErrorReportTriggeredEvent` and `V1BillingMeterNoMeterFoundEvent`
* [#1415](https://github.com/stripe/stripe-python/pull/1415) update object tags for meter-related classes

- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
* [#1412](https://github.com/stripe/stripe-python/pull/1412) Clean up examples

## 11.1.0 - 2024-10-03
* [#1409](https://github.com/stripe/stripe-python/pull/1409) Update the class for `ThinEvent` to include `livemode`
* [#1408](https://github.com/stripe/stripe-python/pull/1408) Update generated code
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1314
v1317
64 changes: 64 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,18 @@ class Capabilities(StripeObject):
"""
The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
"""
id_bank_transfer_payments: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges.
"""
id_bank_transfer_payments_bca: Optional[
Literal["active", "inactive", "pending"]
]
"""
The status of Bank BCA onboarding of the account.
"""
ideal_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
Expand Down Expand Up @@ -1073,6 +1085,16 @@ class BacsDebitPayments(StripeObject):
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.
"""

class BankBcaOnboarding(StripeObject):
account_holder_name: Optional[str]
"""
Bank BCA business account holder name.
"""
business_account_number: Optional[str]
"""
Bank BCA business account number.
"""

class Branding(StripeObject):
icon: Optional[ExpandableField["File"]]
"""
Expand Down Expand Up @@ -1244,6 +1266,7 @@ class TosAcceptance(StripeObject):
_inner_class_types = {"tos_acceptance": TosAcceptance}

bacs_debit_payments: Optional[BacsDebitPayments]
bank_bca_onboarding: Optional[BankBcaOnboarding]
branding: Branding
capital: Optional[Capital]
card_issuing: Optional[CardIssuing]
Expand All @@ -1257,6 +1280,7 @@ class TosAcceptance(StripeObject):
treasury: Optional[Treasury]
_inner_class_types = {
"bacs_debit_payments": BacsDebitPayments,
"bank_bca_onboarding": BankBcaOnboarding,
"branding": Branding,
"capital": Capital,
"card_issuing": CardIssuing,
Expand Down Expand Up @@ -1715,6 +1739,18 @@ class CreateParamsCapabilities(TypedDict):
"""
The grabpay_payments capability.
"""
id_bank_transfer_payments: NotRequired[
"Account.CreateParamsCapabilitiesIdBankTransferPayments"
]
"""
The id_bank_transfer_payments capability.
"""
id_bank_transfer_payments_bca: NotRequired[
"Account.CreateParamsCapabilitiesIdBankTransferPaymentsBca"
]
"""
The id_bank_transfer_payments_bca capability.
"""
ideal_payments: NotRequired[
"Account.CreateParamsCapabilitiesIdealPayments"
]
Expand Down Expand Up @@ -2090,6 +2126,18 @@ class CreateParamsCapabilitiesGrabpayPayments(TypedDict):
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.
"""

class CreateParamsCapabilitiesIdBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
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.
"""

class CreateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
requested: NotRequired[bool]
"""
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.
"""

class CreateParamsCapabilitiesIdealPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -3036,6 +3084,12 @@ class CreateParamsSettings(TypedDict):
"""
Settings specific to Bacs Direct Debit.
"""
bank_bca_onboarding: NotRequired[
"Account.CreateParamsSettingsBankBcaOnboarding"
]
"""
Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
"""
branding: NotRequired["Account.CreateParamsSettingsBranding"]
"""
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
Expand Down Expand Up @@ -3075,6 +3129,16 @@ class CreateParamsSettingsBacsDebitPayments(TypedDict):
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.
"""

class CreateParamsSettingsBankBcaOnboarding(TypedDict):
account_holder_name: NotRequired[str]
"""
Bank BCA business account holder name
"""
business_account_number: NotRequired[str]
"""
Bank BCA business account number
"""

class CreateParamsSettingsBranding(TypedDict):
icon: NotRequired[str]
"""
Expand Down
80 changes: 80 additions & 0 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,18 @@ class CreateParamsCapabilities(TypedDict):
"""
The grabpay_payments capability.
"""
id_bank_transfer_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesIdBankTransferPayments"
]
"""
The id_bank_transfer_payments capability.
"""
id_bank_transfer_payments_bca: NotRequired[
"AccountService.CreateParamsCapabilitiesIdBankTransferPaymentsBca"
]
"""
The id_bank_transfer_payments_bca capability.
"""
ideal_payments: NotRequired[
"AccountService.CreateParamsCapabilitiesIdealPayments"
]
Expand Down Expand Up @@ -751,6 +763,18 @@ class CreateParamsCapabilitiesGrabpayPayments(TypedDict):
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.
"""

class CreateParamsCapabilitiesIdBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
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.
"""

class CreateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
requested: NotRequired[bool]
"""
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.
"""

class CreateParamsCapabilitiesIdealPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -1715,6 +1739,12 @@ class CreateParamsSettings(TypedDict):
"""
Settings specific to Bacs Direct Debit.
"""
bank_bca_onboarding: NotRequired[
"AccountService.CreateParamsSettingsBankBcaOnboarding"
]
"""
Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
"""
branding: NotRequired["AccountService.CreateParamsSettingsBranding"]
"""
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
Expand Down Expand Up @@ -1758,6 +1788,16 @@ class CreateParamsSettingsBacsDebitPayments(TypedDict):
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.
"""

class CreateParamsSettingsBankBcaOnboarding(TypedDict):
account_holder_name: NotRequired[str]
"""
Bank BCA business account holder name
"""
business_account_number: NotRequired[str]
"""
Bank BCA business account number
"""

class CreateParamsSettingsBranding(TypedDict):
icon: NotRequired[str]
"""
Expand Down Expand Up @@ -2344,6 +2384,18 @@ class UpdateParamsCapabilities(TypedDict):
"""
The grabpay_payments capability.
"""
id_bank_transfer_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesIdBankTransferPayments"
]
"""
The id_bank_transfer_payments capability.
"""
id_bank_transfer_payments_bca: NotRequired[
"AccountService.UpdateParamsCapabilitiesIdBankTransferPaymentsBca"
]
"""
The id_bank_transfer_payments_bca capability.
"""
ideal_payments: NotRequired[
"AccountService.UpdateParamsCapabilitiesIdealPayments"
]
Expand Down Expand Up @@ -2723,6 +2775,18 @@ class UpdateParamsCapabilitiesGrabpayPayments(TypedDict):
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.
"""

class UpdateParamsCapabilitiesIdBankTransferPayments(TypedDict):
requested: NotRequired[bool]
"""
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.
"""

class UpdateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
requested: NotRequired[bool]
"""
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.
"""

class UpdateParamsCapabilitiesIdealPayments(TypedDict):
requested: NotRequired[bool]
"""
Expand Down Expand Up @@ -3617,6 +3681,12 @@ class UpdateParamsSettings(TypedDict):
"""
Settings specific to Bacs Direct Debit payments.
"""
bank_bca_onboarding: NotRequired[
"AccountService.UpdateParamsSettingsBankBcaOnboarding"
]
"""
Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
"""
branding: NotRequired["AccountService.UpdateParamsSettingsBranding"]
"""
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
Expand Down Expand Up @@ -3664,6 +3734,16 @@ class UpdateParamsSettingsBacsDebitPayments(TypedDict):
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.
"""

class UpdateParamsSettingsBankBcaOnboarding(TypedDict):
account_holder_name: NotRequired[str]
"""
Bank BCA business account holder name
"""
business_account_number: NotRequired[str]
"""
Bank BCA business account number
"""

class UpdateParamsSettingsBranding(TypedDict):
icon: NotRequired[str]
"""
Expand Down
24 changes: 24 additions & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,28 @@ class Grabpay(StripeObject):
Unique transaction id generated by GrabPay
"""

class IdBankTransfer(StripeObject):
account_number: str
"""
Account number of the bank account to transfer funds to.
"""
bank: Literal["bca", "bni", "bri", "cimb", "permata"]
"""
Bank where the account is located.
"""
bank_code: Optional[str]
"""
Local bank code of the bank.
"""
bank_name: Optional[str]
"""
Name of the bank associated with the bank account.
"""
display_name: Optional[str]
"""
Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
"""

class Ideal(StripeObject):
bank: Optional[
Literal[
Expand Down Expand Up @@ -1846,6 +1868,7 @@ class Zip(StripeObject):
giropay: Optional[Giropay]
gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
interac_present: Optional[InteracPresent]
kakao_pay: Optional[KakaoPay]
Expand Down Expand Up @@ -1909,6 +1932,7 @@ class Zip(StripeObject):
"giropay": Giropay,
"gopay": Gopay,
"grabpay": Grabpay,
"id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"interac_present": InteracPresent,
"kakao_pay": KakaoPay,
Expand Down
Loading

0 comments on commit 32d3485

Please sign in to comment.