From 9201f3d6f5ca8ac957cd1fd6f716409e5e662901 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 23:26:42 +0000 Subject: [PATCH 01/12] Update generated code for v756 --- OPENAPI_VERSION | 2 +- stripe/_file.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 749c898fd..560468415 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v755 \ No newline at end of file +v756 \ No newline at end of file diff --git a/stripe/_file.py b/stripe/_file.py index add4d276d..48b42add8 100644 --- a/stripe/_file.py +++ b/stripe/_file.py @@ -183,16 +183,6 @@ def retrieve( instance.refresh() return instance - # This resource can have two different object names. In latter API - # versions, only `file` is used, but since stripe-python may be used with - # any API version, we need to support deserializing the older - # `file_upload` object into the same class. - OBJECT_NAME_ALT = "file_upload" - - @classmethod - def class_url(cls): - return "/v1/files" - @classmethod def create( # 'api_version' is deprecated, please use 'stripe_version' @@ -222,6 +212,16 @@ def create( ), ) + # This resource can have two different object names. In latter API + # versions, only `file` is used, but since stripe-python may be used with + # any API version, we need to support deserializing the older + # `file_upload` object into the same class. + OBJECT_NAME_ALT = "file_upload" + + @classmethod + def class_url(cls): + return "/v1/files" + # For backwards compatibility, the `File` class is aliased to `FileUpload`. FileUpload = File From 802399006a3c1671e20fc6ad0bbd79f9cd6d022d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 09:26:35 +0000 Subject: [PATCH 02/12] Update generated code for v757 --- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 113 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 560468415..429ea3116 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v756 \ No newline at end of file +v757 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index aa6eed68e..9954355ef 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -97,16 +97,31 @@ class Invoice( OBJECT_NAME: ClassVar[Literal["invoice"]] = "invoice" class AutomaticTax(StripeObject): + class Liability(StripeObject): + account: Optional[ExpandableField["Account"]] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced. + """ + enabled: bool """ Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. """ + liability: Optional[Liability] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ status: Optional[ Literal["complete", "failed", "requires_location_inputs"] ] """ The status of the most recent automated tax calculation for this invoice. """ + _inner_class_types = {"liability": Liability} class CustomField(StripeObject): name: str @@ -278,6 +293,16 @@ class FromInvoice(StripeObject): The invoice that was cloned. """ + class Issuer(StripeObject): + account: Optional[ExpandableField["Account"]] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced. + """ + class LastFinalizationError(StripeObject): charge: Optional[str] """ @@ -1025,6 +1050,10 @@ class CreateParams(RequestOptions): """ Revise an existing invoice. The new invoice will be created in `status=draft`. See the [revision documentation](https://stripe.com/docs/invoicing/invoice-revisions) for more details. """ + issuer: NotRequired["Invoice.CreateParamsIssuer"] + """ + The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. + """ metadata: NotRequired["Literal['']|Dict[str, str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -1079,6 +1108,20 @@ class CreateParamsAutomaticTax(TypedDict): """ Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. """ + liability: NotRequired["Invoice.CreateParamsAutomaticTaxLiability"] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ + + class CreateParamsAutomaticTaxLiability(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ class CreateParamsCustomField(TypedDict): name: str @@ -1110,6 +1153,16 @@ class CreateParamsFromInvoice(TypedDict): The `id` of the invoice that will be cloned. """ + class CreateParamsIssuer(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ + class CreateParamsPaymentSettings(TypedDict): default_mandate: NotRequired["Literal['']|str"] """ @@ -1669,6 +1722,10 @@ class ModifyParams(RequestOptions): """ Footer to be displayed on the invoice. """ + issuer: NotRequired["Invoice.ModifyParamsIssuer"] + """ + The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. + """ metadata: NotRequired["Literal['']|Dict[str, str]"] """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -1719,6 +1776,20 @@ class ModifyParamsAutomaticTax(TypedDict): """ Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. """ + liability: NotRequired["Invoice.ModifyParamsAutomaticTaxLiability"] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ + + class ModifyParamsAutomaticTaxLiability(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ class ModifyParamsCustomField(TypedDict): name: str @@ -1740,6 +1811,16 @@ class ModifyParamsDiscount(TypedDict): ID of an existing discount on the object (or one of its ancestors) to reuse. """ + class ModifyParamsIssuer(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ + class ModifyParamsPaymentSettings(TypedDict): default_mandate: NotRequired["Literal['']|str"] """ @@ -2314,6 +2395,22 @@ class UpcomingLinesParamsAutomaticTax(TypedDict): """ Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. """ + liability: NotRequired[ + "Invoice.UpcomingLinesParamsAutomaticTaxLiability" + ] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ + + class UpcomingLinesParamsAutomaticTaxLiability(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ class UpcomingLinesParamsCustomerDetails(TypedDict): address: NotRequired[ @@ -2813,6 +2910,20 @@ class UpcomingParamsAutomaticTax(TypedDict): """ Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. """ + liability: NotRequired["Invoice.UpcomingParamsAutomaticTaxLiability"] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ + + class UpcomingParamsAutomaticTaxLiability(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ class UpcomingParamsCustomerDetails(TypedDict): address: NotRequired[ @@ -3398,6 +3509,7 @@ class VoidInvoiceParams(RequestOptions): """ The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null. """ + issuer: Issuer last_finalization_error: Optional[LastFinalizationError] """ The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized. @@ -4174,6 +4286,7 @@ def search_auto_paging_iter( "customer_shipping": CustomerShipping, "customer_tax_ids": CustomerTaxId, "from_invoice": FromInvoice, + "issuer": Issuer, "last_finalization_error": LastFinalizationError, "payment_settings": PaymentSettings, "rendering": Rendering, From c976ea294460a91e167c1019aec12059511b0610 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 19:15:19 +0000 Subject: [PATCH 03/12] Update generated code for v758 --- OPENAPI_VERSION | 2 +- stripe/_invoice.py | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 429ea3116..7d1e4b045 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v757 \ No newline at end of file +v758 \ No newline at end of file diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 9954355ef..c5da52f50 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -2319,10 +2319,18 @@ class UpcomingLinesParams(RequestOptions): """ List of invoice items to add or update in the upcoming invoice preview. """ + issuer: NotRequired["Invoice.UpcomingLinesParamsIssuer"] + """ + The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. + """ limit: NotRequired["int"] """ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. """ + on_behalf_of: NotRequired["Literal['']|str"] + """ + The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. + """ schedule: NotRequired["str"] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. @@ -2717,6 +2725,16 @@ class UpcomingLinesParamsInvoiceItemPriceData(TypedDict): Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set. """ + class UpcomingLinesParamsIssuer(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ + class UpcomingLinesParamsSubscriptionItem(TypedDict): billing_thresholds: NotRequired[ "Literal['']|Invoice.UpcomingLinesParamsSubscriptionItemBillingThresholds" @@ -2842,6 +2860,14 @@ class UpcomingParams(RequestOptions): """ List of invoice items to add or update in the upcoming invoice preview. """ + issuer: NotRequired["Invoice.UpcomingParamsIssuer"] + """ + The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. + """ + on_behalf_of: NotRequired["Literal['']|str"] + """ + The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. + """ schedule: NotRequired["str"] """ The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. @@ -3228,6 +3254,16 @@ class UpcomingParamsInvoiceItemPriceData(TypedDict): Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set. """ + class UpcomingParamsIssuer(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ + class UpcomingParamsSubscriptionItem(TypedDict): billing_thresholds: NotRequired[ "Literal['']|Invoice.UpcomingParamsSubscriptionItemBillingThresholds" From cc0a84fb12ef10d3ae0eb3ca3a13e2ebd365fd1a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:14:48 +0000 Subject: [PATCH 04/12] Update generated code for v760 --- OPENAPI_VERSION | 2 +- stripe/issuing/_card.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7d1e4b045..41ef3adf7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v758 \ No newline at end of file +v760 \ No newline at end of file diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py index a2ed56f41..7c7533506 100644 --- a/stripe/issuing/_card.py +++ b/stripe/issuing/_card.py @@ -1124,6 +1124,10 @@ class CreateParams(RequestOptions): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ + pin: NotRequired["Card.CreateParamsPin"] + """ + The desired PIN for this card. + """ replacement_for: NotRequired["str"] """ The card this is meant to be a replacement for (if any). @@ -1151,6 +1155,12 @@ class CreateParams(RequestOptions): The type of card to issue. Possible values are `physical` or `virtual`. """ + class CreateParamsPin(TypedDict): + encrypted_number: NotRequired["str"] + """ + The card's desired new PIN, encrypted under Stripe's public key. + """ + class CreateParamsShipping(TypedDict): address: "Card.CreateParamsShippingAddress" """ From 7af0c64b763515b4062621d242d127bb98237f44 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:46:06 +0000 Subject: [PATCH 05/12] Update generated code for v761 --- OPENAPI_VERSION | 2 +- stripe/_charge.py | 4 +++- stripe/_payment_intent.py | 6 +++--- stripe/_payment_method.py | 6 ++++-- stripe/_setup_attempt.py | 4 +++- stripe/_setup_intent.py | 6 +++--- 6 files changed, 17 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 41ef3adf7..6a46f4a9b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v760 \ No newline at end of file +v761 \ No newline at end of file diff --git a/stripe/_charge.py b/stripe/_charge.py index 6ec8f3668..991187cd3 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -1062,6 +1062,7 @@ class Ideal(StripeObject): "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -1072,7 +1073,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -1085,6 +1086,7 @@ class Ideal(StripeObject): "INGBNL2A", "KNABNL2H", "MOYONL21", + "NNBANL2G", "NTSBDEB1", "RABONL2U", "RBRBNL21", diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 2becb1ac5..cfba37de6 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2352,7 +2352,7 @@ class ConfirmParamsPaymentMethodDataGrabpay(TypedDict): class ConfirmParamsPaymentMethodDataIdeal(TypedDict): bank: NotRequired[ - "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" + "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" ] """ The customer's bank. @@ -4241,7 +4241,7 @@ class CreateParamsPaymentMethodDataGrabpay(TypedDict): class CreateParamsPaymentMethodDataIdeal(TypedDict): bank: NotRequired[ - "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" + "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" ] """ The customer's bank. @@ -6132,7 +6132,7 @@ class ModifyParamsPaymentMethodDataGrabpay(TypedDict): class ModifyParamsPaymentMethodDataIdeal(TypedDict): bank: NotRequired[ - "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" + "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" ] """ The customer's bank. diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 46fafaa6f..bb5c985fe 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -624,6 +624,7 @@ class Ideal(StripeObject): "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -634,7 +635,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -647,6 +648,7 @@ class Ideal(StripeObject): "INGBNL2A", "KNABNL2H", "MOYONL21", + "NNBANL2G", "NTSBDEB1", "RABONL2U", "RBRBNL21", @@ -1338,7 +1340,7 @@ class CreateParamsGrabpay(TypedDict): class CreateParamsIdeal(TypedDict): bank: NotRequired[ - "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" + "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" ] """ The customer's bank. diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index c37e0c86d..a6e97383b 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -256,6 +256,7 @@ class Ideal(StripeObject): "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -266,7 +267,7 @@ class Ideal(StripeObject): ] ] """ - The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. """ bic: Optional[ Literal[ @@ -279,6 +280,7 @@ class Ideal(StripeObject): "INGBNL2A", "KNABNL2H", "MOYONL21", + "NNBANL2G", "NTSBDEB1", "RABONL2U", "RBRBNL21", diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index a67887336..24a86940a 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -1063,7 +1063,7 @@ class ConfirmParamsPaymentMethodDataGrabpay(TypedDict): class ConfirmParamsPaymentMethodDataIdeal(TypedDict): bank: NotRequired[ - "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" + "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" ] """ The customer's bank. @@ -1996,7 +1996,7 @@ class CreateParamsPaymentMethodDataGrabpay(TypedDict): class CreateParamsPaymentMethodDataIdeal(TypedDict): bank: NotRequired[ - "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" + "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" ] """ The customer's bank. @@ -2904,7 +2904,7 @@ class ModifyParamsPaymentMethodDataGrabpay(TypedDict): class ModifyParamsPaymentMethodDataIdeal(TypedDict): bank: NotRequired[ - "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" + "Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']" ] """ The customer's bank. From 3ca8b36dd718ea54f2a9229e118ccae7e4f29b4c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:24:21 +0000 Subject: [PATCH 06/12] Update generated code for v761 --- stripe/_account.py | 103 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 2 deletions(-) diff --git a/stripe/_account.py b/stripe/_account.py index a4880b6ab..699cad470 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -1033,7 +1033,11 @@ class CreateExternalAccountParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ - external_account: str + external_account: Union[ + str, + "Account.CreateExternalAccountParamsCard", + "Account.CreateExternalAccountParamsBankAccount", + ] """ Please refer to full [documentation](https://stripe.com/docs/api) instead. """ @@ -1042,6 +1046,52 @@ class CreateExternalAccountParams(RequestOptions): Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ + class CreateExternalAccountParamsBankAccount(TypedDict): + object: Literal["bank_account"] + account_holder_name: NotRequired["str"] + """ + The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object. + """ + account_holder_type: NotRequired["Literal['company', 'individual']"] + """ + The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object. + """ + account_number: str + """ + The account number for the bank account, in string form. Must be a checking account. + """ + country: str + """ + The country in which the bank account is located. + """ + currency: NotRequired["str"] + """ + The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) + """ + routing_number: NotRequired["str"] + """ + The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + """ + + class CreateExternalAccountParamsCard(TypedDict): + object: Literal["card"] + address_city: NotRequired["str"] + address_country: NotRequired["str"] + address_line1: NotRequired["str"] + address_line2: NotRequired["str"] + address_state: NotRequired["str"] + address_zip: NotRequired["str"] + currency: NotRequired["str"] + cvc: NotRequired["str"] + exp_month: int + exp_year: int + name: NotRequired["str"] + number: str + metadata: NotRequired["Dict[str, str]"] + """ + Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + class CreateLoginLinkParams(RequestOptions): expand: NotRequired["List[str]"] """ @@ -1091,7 +1141,9 @@ class CreateParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ - external_account: NotRequired["str"] + external_account: NotRequired[ + "str|Account.CreateParamsBankAccount|Account.CreateParamsCard" + ] """ A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation. @@ -1118,6 +1170,33 @@ class CreateParams(RequestOptions): The type of Stripe account to create. May be one of `custom`, `express` or `standard`. """ + class CreateParamsBankAccount(TypedDict): + object: Literal["bank_account"] + account_holder_name: NotRequired["str"] + """ + The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object. + """ + account_holder_type: NotRequired["Literal['company', 'individual']"] + """ + The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object. + """ + account_number: str + """ + The account number for the bank account, in string form. Must be a checking account. + """ + country: str + """ + The country in which the bank account is located. + """ + currency: NotRequired["str"] + """ + The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) + """ + routing_number: NotRequired["str"] + """ + The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + """ + class CreateParamsBusinessProfile(TypedDict): mcc: NotRequired["str"] """ @@ -1638,6 +1717,26 @@ class CreateParamsCapabilitiesZipPayments(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 CreateParamsCard(TypedDict): + object: Literal["card"] + address_city: NotRequired["str"] + address_country: NotRequired["str"] + address_line1: NotRequired["str"] + address_line2: NotRequired["str"] + address_state: NotRequired["str"] + address_zip: NotRequired["str"] + currency: NotRequired["str"] + cvc: NotRequired["str"] + exp_month: int + exp_year: int + name: NotRequired["str"] + number: str + metadata: NotRequired["Dict[str, str]"] + """ + Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + """ + default_for_currency: NotRequired["bool"] + class CreateParamsCompany(TypedDict): address: NotRequired["Account.CreateParamsCompanyAddress"] """ From da8c367e7500532a878137e7bc7191c300b28d80 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 19:41:32 +0000 Subject: [PATCH 07/12] Update generated code for v762 --- OPENAPI_VERSION | 2 +- stripe/_mandate.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6a46f4a9b..6202a802e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v761 \ No newline at end of file +v762 \ No newline at end of file diff --git a/stripe/_mandate.py b/stripe/_mandate.py index 8e658915d..bda47f912 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -83,6 +83,18 @@ class BacsDebit(StripeObject): """ The unique reference identifying the mandate on the Bacs network. """ + revocation_reason: Optional[ + Literal[ + "account_closed", + "bank_account_restricted", + "bank_ownership_changed", + "could_not_process", + "debit_not_authorized", + ] + ] + """ + When the mandate is revoked on the Bacs network this field displays the reason for the revocation. + """ url: str """ The URL that will contain the mandate that the customer has signed. From 7ac80972cc5e463ba1fa1785d9892b43a6e8d819 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 20:49:04 +0000 Subject: [PATCH 08/12] Update generated code for v763 --- OPENAPI_VERSION | 2 +- stripe/_payment_method_configuration.py | 64 +++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6202a802e..85d4fe291 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v762 \ No newline at end of file +v763 \ No newline at end of file diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index e4a45142d..428d9ff9d 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -323,6 +323,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class CustomerBalance(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Literal["none", "off", "on"] + """ + The account's display preference. + """ + value: Literal["off", "on"] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class Eps(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -946,6 +968,12 @@ class CreateParams(RequestOptions): """ Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details. """ + customer_balance: NotRequired[ + "PaymentMethodConfiguration.CreateParamsCustomerBalance" + ] + """ + Uses a customer's [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. + """ eps: NotRequired["PaymentMethodConfiguration.CreateParamsEps"] """ EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details. @@ -1247,6 +1275,20 @@ class CreateParamsCashappDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class CreateParamsCustomerBalance(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.CreateParamsCustomerBalanceDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class CreateParamsCustomerBalanceDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']"] + """ + The account's preference for whether or not to display this payment method. + """ + class CreateParamsEps(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.CreateParamsEpsDisplayPreference" @@ -1614,6 +1656,12 @@ class ModifyParams(RequestOptions): """ Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details. """ + customer_balance: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsCustomerBalance" + ] + """ + Uses a customer's [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. + """ eps: NotRequired["PaymentMethodConfiguration.ModifyParamsEps"] """ EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details. @@ -1911,6 +1959,20 @@ class ModifyParamsCashappDisplayPreference(TypedDict): The account's preference for whether or not to display this payment method. """ + class ModifyParamsCustomerBalance(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfiguration.ModifyParamsCustomerBalanceDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + class ModifyParamsCustomerBalanceDisplayPreference(TypedDict): + preference: NotRequired["Literal['none', 'off', 'on']"] + """ + The account's preference for whether or not to display this payment method. + """ + class ModifyParamsEps(TypedDict): display_preference: NotRequired[ "PaymentMethodConfiguration.ModifyParamsEpsDisplayPreference" @@ -2218,6 +2280,7 @@ class RetrieveParams(RequestOptions): card: Optional[Card] cartes_bancaires: Optional[CartesBancaires] cashapp: Optional[Cashapp] + customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] giropay: Optional[Giropay] @@ -2367,6 +2430,7 @@ def retrieve( "card": Card, "cartes_bancaires": CartesBancaires, "cashapp": Cashapp, + "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, "giropay": Giropay, From 481cba6e52248080af070154f70a2fee54106b10 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 23:34:28 +0000 Subject: [PATCH 09/12] Update generated code for v763 --- stripe/_account.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/stripe/_account.py b/stripe/_account.py index 699cad470..6afd9611e 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -1037,6 +1037,7 @@ class CreateExternalAccountParams(RequestOptions): str, "Account.CreateExternalAccountParamsCard", "Account.CreateExternalAccountParamsBankAccount", + "Account.CreateExternalAccountParamsCardToken", ] """ Please refer to full [documentation](https://stripe.com/docs/api) instead. @@ -1092,6 +1093,11 @@ class CreateExternalAccountParamsCard(TypedDict): Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. """ + class CreateExternalAccountParamsCardToken(TypedDict): + object: Literal["card"] + currency: NotRequired["str"] + token: str + class CreateLoginLinkParams(RequestOptions): expand: NotRequired["List[str]"] """ @@ -1142,7 +1148,7 @@ class CreateParams(RequestOptions): Specifies which fields in the response should be expanded. """ external_account: NotRequired[ - "str|Account.CreateParamsBankAccount|Account.CreateParamsCard" + "str|Account.CreateParamsBankAccount|Account.CreateParamsCard|Account.CreateParamsCardToken" ] """ A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation. @@ -1737,6 +1743,11 @@ class CreateParamsCard(TypedDict): """ default_for_currency: NotRequired["bool"] + class CreateParamsCardToken(TypedDict): + object: Literal["card"] + currency: NotRequired["str"] + token: str + class CreateParamsCompany(TypedDict): address: NotRequired["Account.CreateParamsCompanyAddress"] """ From b02afe8d417affa20aa0f480a45a79c6655bc146 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 07:34:44 +0000 Subject: [PATCH 10/12] Update generated code for v764 --- OPENAPI_VERSION | 2 +- stripe/_subscription.py | 91 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 85d4fe291..b918ecfcb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v763 \ No newline at end of file +v764 \ No newline at end of file diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 95b6183fb..482f2114b 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -64,10 +64,25 @@ class Subscription( OBJECT_NAME: ClassVar[Literal["subscription"]] = "subscription" class AutomaticTax(StripeObject): + class Liability(StripeObject): + account: Optional[ExpandableField["Account"]] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced. + """ + enabled: bool """ Whether Stripe automatically computes tax on this subscription. """ + liability: Optional[Liability] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ + _inner_class_types = {"liability": Liability} class BillingCycleAnchorConfig(StripeObject): day_of_month: int @@ -513,6 +528,12 @@ class CreateParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + invoice_settings: NotRequired[ + "Subscription.CreateParamsInvoiceSettings" + ] + """ + All invoices will be billed using the specified settings. + """ items: NotRequired["List[Subscription.CreateParamsItem]"] """ A list of up to 20 subscription items, each with an attached price. @@ -637,6 +658,22 @@ class CreateParamsAutomaticTax(TypedDict): """ Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription. """ + liability: NotRequired[ + "Subscription.CreateParamsAutomaticTaxLiability" + ] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ + + class CreateParamsAutomaticTaxLiability(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ class CreateParamsBillingCycleAnchorConfig(TypedDict): day_of_month: int @@ -670,6 +707,22 @@ class CreateParamsBillingThresholds(TypedDict): Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. """ + class CreateParamsInvoiceSettings(TypedDict): + issuer: NotRequired["Subscription.CreateParamsInvoiceSettingsIssuer"] + """ + The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. + """ + + class CreateParamsInvoiceSettingsIssuer(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ + class CreateParamsItem(TypedDict): billing_thresholds: NotRequired[ "Literal['']|Subscription.CreateParamsItemBillingThresholds" @@ -1160,6 +1213,12 @@ class ModifyParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ + invoice_settings: NotRequired[ + "Subscription.ModifyParamsInvoiceSettings" + ] + """ + All invoices will be billed using the specified settings. + """ items: NotRequired["List[Subscription.ModifyParamsItem]"] """ A list of up to 20 subscription items, each with an attached price. @@ -1288,6 +1347,22 @@ class ModifyParamsAutomaticTax(TypedDict): """ Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription. """ + liability: NotRequired[ + "Subscription.ModifyParamsAutomaticTaxLiability" + ] + """ + The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + """ + + class ModifyParamsAutomaticTaxLiability(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ class ModifyParamsBillingThresholds(TypedDict): amount_gte: NotRequired["int"] @@ -1311,6 +1386,22 @@ class ModifyParamsCancellationDetails(TypedDict): The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. """ + class ModifyParamsInvoiceSettings(TypedDict): + issuer: NotRequired["Subscription.ModifyParamsInvoiceSettingsIssuer"] + """ + The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. + """ + + class ModifyParamsInvoiceSettingsIssuer(TypedDict): + account: NotRequired["str"] + """ + The connected account being referenced when `type` is `account`. + """ + type: Literal["account", "self"] + """ + Type of the account referenced in the request. + """ + class ModifyParamsItem(TypedDict): billing_thresholds: NotRequired[ "Literal['']|Subscription.ModifyParamsItemBillingThresholds" From 4c86e2985f06f082110c944267fe79e825a225c3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:20:59 +0000 Subject: [PATCH 11/12] Update generated code for v766 --- OPENAPI_VERSION | 2 +- stripe/_customer_session.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b918ecfcb..235fa05ea 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v764 \ No newline at end of file +v766 \ No newline at end of file diff --git a/stripe/_customer_session.py b/stripe/_customer_session.py index 8a07b1128..6bb25aed7 100644 --- a/stripe/_customer_session.py +++ b/stripe/_customer_session.py @@ -38,11 +38,11 @@ class PricingTable(StripeObject): Whether the pricing table is enabled. """ - buy_button: Optional[BuyButton] + buy_button: BuyButton """ This hash contains whether the buy button is enabled. """ - pricing_table: Optional[PricingTable] + pricing_table: PricingTable """ This hash contains whether the pricing table is enabled. """ From 73c62c6c892da1fd9bea879352204a87f2c3e9a4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 21:24:50 +0000 Subject: [PATCH 12/12] Update generated code for v767 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 2 +- stripe/_token.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 235fa05ea..242021ae2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v766 \ No newline at end of file +v767 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 6afd9611e..9319d16b5 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -1811,7 +1811,7 @@ class CreateParamsCompany(TypedDict): "Literal['']|Literal['free_zone_establishment', 'free_zone_llc', 'government_instrumentality', 'governmental_unit', 'incorporated_non_profit', 'incorporated_partnership', 'limited_liability_partnership', 'llc', 'multi_member_llc', 'private_company', 'private_corporation', 'private_partnership', 'public_company', 'public_corporation', 'public_partnership', 'single_member_llc', 'sole_establishment', 'sole_proprietorship', 'tax_exempt_government_instrumentality', 'unincorporated_association', 'unincorporated_non_profit', 'unincorporated_partnership']" ] """ - The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. + The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. """ tax_id: NotRequired["str"] """ diff --git a/stripe/_token.py b/stripe/_token.py index c3495e608..98ac338c9 100644 --- a/stripe/_token.py +++ b/stripe/_token.py @@ -167,7 +167,7 @@ class CreateParamsAccountCompany(TypedDict): "Literal['']|Literal['free_zone_establishment', 'free_zone_llc', 'government_instrumentality', 'governmental_unit', 'incorporated_non_profit', 'incorporated_partnership', 'limited_liability_partnership', 'llc', 'multi_member_llc', 'private_company', 'private_corporation', 'private_partnership', 'public_company', 'public_corporation', 'public_partnership', 'single_member_llc', 'sole_establishment', 'sole_proprietorship', 'tax_exempt_government_instrumentality', 'unincorporated_association', 'unincorporated_non_profit', 'unincorporated_partnership']" ] """ - The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. + The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. """ tax_id: NotRequired["str"] """