From 3f4837b6b19b0bde544084b9e4cc56fbd69427c1 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:22:43 -0800 Subject: [PATCH 01/14] Update generated code (#1811) * Update generated code for v809 * Update generated code for v810 * Update generated code for v812 * Update generated code for v812 * Update generated code for v813 * Update generated code for v814 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- charge.go | 2 +- client/api.go | 2 +- identity_verificationreport.go | 2 +- paymentintent.go | 33 ++++++++++++++++++++++++++++++++- paymentmethod.go | 4 ++-- taxid/client.go | 4 ++-- 7 files changed, 40 insertions(+), 9 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4ee3ea09e2..2fd2b06879 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v808 \ No newline at end of file +v814 \ No newline at end of file diff --git a/charge.go b/charge.go index 6a8458296c..70accc89b4 100644 --- a/charge.go +++ b/charge.go @@ -1052,7 +1052,7 @@ type ChargePaymentMethodDetailsOXXO struct { Number string `json:"number"` } type ChargePaymentMethodDetailsP24 struct { - // The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + // The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. Bank string `json:"bank"` // Unique reference for this Przelewy24 payment. Reference string `json:"reference"` diff --git a/client/api.go b/client/api.go index fa3b51a4ce..ca461c743b 100644 --- a/client/api.go +++ b/client/api.go @@ -288,7 +288,7 @@ type API struct { TaxCalculations *taxcalculation.Client // TaxCodes is the client used to invoke /tax_codes APIs. TaxCodes *taxcode.Client - // TaxIDs is the client used to invoke /tax_ids APIs. + // TaxIDs is the client used to invoke /customers/{customer}/tax_ids APIs. TaxIDs *taxid.Client // TaxRates is the client used to invoke /tax_rates APIs. TaxRates *taxrate.Client diff --git a/identity_verificationreport.go b/identity_verificationreport.go index 3410a077e8..a6a3b3d4d6 100644 --- a/identity_verificationreport.go +++ b/identity_verificationreport.go @@ -227,7 +227,7 @@ type IdentityVerificationReportIDNumber struct { Error *IdentityVerificationReportIDNumberError `json:"error"` // First name. FirstName string `json:"first_name"` - // ID number. + // ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present. IDNumber string `json:"id_number"` // Type of ID number. IDNumberType IdentityVerificationReportIDNumberIDNumberType `json:"id_number_type"` diff --git a/paymentintent.go b/paymentintent.go index 5fc8e35891..0b2c4ff8a2 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -250,6 +250,18 @@ const ( PaymentIntentPaymentMethodOptionsBancontactSetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsBancontactSetupFutureUsage = "off_session" ) +// Indicates that you intend to make future payments with this PaymentIntent's payment method. +// +// 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. +// +// 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). +type PaymentIntentPaymentMethodOptionsBLIKSetupFutureUsage string + +// List of values that PaymentIntentPaymentMethodOptionsBLIKSetupFutureUsage can take +const ( + PaymentIntentPaymentMethodOptionsBLIKSetupFutureUsageNone PaymentIntentPaymentMethodOptionsBLIKSetupFutureUsage = "none" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // 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. @@ -1169,6 +1181,14 @@ type PaymentIntentPaymentMethodOptionsBancontactParams struct { type PaymentIntentPaymentMethodOptionsBLIKParams struct { // The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. Code *string `form:"code"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // 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. + // + // 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). + // + // If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + SetupFutureUsage *string `form:"setup_future_usage"` } // If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options. @@ -1317,6 +1337,8 @@ type PaymentIntentPaymentMethodOptionsCardParams struct { RequestOvercapture *string `form:"request_overcapture"` // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` + // When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + RequireCVCRecollection *bool `form:"require_cvc_recollection"` // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // 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. @@ -2620,7 +2642,14 @@ type PaymentIntentPaymentMethodOptionsBancontact struct { // 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). SetupFutureUsage PaymentIntentPaymentMethodOptionsBancontactSetupFutureUsage `json:"setup_future_usage"` } -type PaymentIntentPaymentMethodOptionsBLIK struct{} +type PaymentIntentPaymentMethodOptionsBLIK struct { + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // 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. + // + // 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). + SetupFutureUsage PaymentIntentPaymentMethodOptionsBLIKSetupFutureUsage `json:"setup_future_usage"` +} type PaymentIntentPaymentMethodOptionsBoleto struct { // The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. ExpiresAfterDays int64 `json:"expires_after_days"` @@ -2697,6 +2726,8 @@ type PaymentIntentPaymentMethodOptionsCard struct { RequestOvercapture PaymentIntentPaymentMethodOptionsCardRequestOvercapture `json:"request_overcapture"` // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` + // When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). + RequireCVCRecollection bool `json:"require_cvc_recollection"` // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // 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. diff --git a/paymentmethod.go b/paymentmethod.go index 748e8a91c6..62f8ad985d 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -73,7 +73,7 @@ const ( PaymentMethodCardNetworksAvailableUnknown PaymentMethodCardNetworksAvailable = "unknown" ) -// The preferred network for the card. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. +// The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. type PaymentMethodCardNetworksPreferred string // List of values that PaymentMethodCardNetworksPreferred can take @@ -653,7 +653,7 @@ type PaymentMethodCardChecks struct { type PaymentMethodCardNetworks struct { // All available networks for the card. Available []PaymentMethodCardNetworksAvailable `json:"available"` - // The preferred network for the card. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. + // The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. Preferred PaymentMethodCardNetworksPreferred `json:"preferred"` } diff --git a/taxid/client.go b/taxid/client.go index fd5ede8263..8d1fa743b5 100644 --- a/taxid/client.go +++ b/taxid/client.go @@ -4,7 +4,7 @@ // // -// Package taxid provides the /tax_ids APIs +// Package taxid provides the /customers/{customer}/tax_ids APIs package taxid import ( @@ -15,7 +15,7 @@ import ( "github.com/stripe/stripe-go/v76/form" ) -// Client is used to invoke /tax_ids APIs. +// Client is used to invoke /customers/{customer}/tax_ids APIs. type Client struct { B stripe.Backend Key string From ec8a3dabf55381bd6227710e101f2755e613c7f4 Mon Sep 17 00:00:00 2001 From: Annie Li Date: Thu, 8 Feb 2024 14:05:03 -0800 Subject: [PATCH 02/14] Bump version to 76.16.0 --- CHANGELOG.md | 6 ++++++ VERSION | 2 +- stripe.go | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67a60b79a7..58f95d22cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 76.16.0 - 2024-02-08 +* [#1811](https://github.com/stripe/stripe-go/pull/1811) Update generated code + * Add support for new value `velobank` on enums `ChargePaymentMethodDetailsP24Bank` and `PaymentMethodP24Bank` + * Add support for `SetupFutureUsage` on `PaymentIntentConfirmPaymentMethodOptionsBlikParams`, `PaymentIntentPaymentMethodOptionsBlikParams`, and `PaymentIntentPaymentMethodOptionsBlik` + * Add support for `RequireCVCRecollection` on `PaymentIntentConfirmPaymentMethodOptionsCardParams`, `PaymentIntentPaymentMethodOptionsCardParams`, and `PaymentIntentPaymentMethodOptionsCard` + ## 76.15.0 - 2024-02-01 Release specs are identical. * [#1805](https://github.com/stripe/stripe-go/pull/1805) Update generated code diff --git a/VERSION b/VERSION index e054c9e03c..a33a0bcf75 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -76.15.0 +76.16.0 diff --git a/stripe.go b/stripe.go index cfe65a454a..de4e9d5884 100644 --- a/stripe.go +++ b/stripe.go @@ -1284,7 +1284,7 @@ func StringSlice(v []string) []*string { // // clientversion is the binding version -const clientversion = "76.15.0" +const clientversion = "76.16.0" // defaultHTTPTimeout is the default timeout on the http.Client used by the library. // This is chosen to be consistent with the other Stripe language libraries and From 0db05ece7ed94a268691f9a24c54447043884e42 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 22:11:15 +0000 Subject: [PATCH 03/14] Update generated code for v817 --- OPENAPI_VERSION | 2 +- paymentintent.go | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ef48fb06a6..081d5f29fc 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v815 \ No newline at end of file +v817 \ No newline at end of file diff --git a/paymentintent.go b/paymentintent.go index 3685cd6cce..701f9f7f80 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -3526,9 +3526,11 @@ type PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCodeQRCode struct { ImageURLSVG string `json:"image_url_svg"` } type PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCode struct { - // The URL to the hosted Swish instructions page, which allows customers to view the QR code or redirect to the Swish mobile app. - HostedInstructionsURL string `json:"hosted_instructions_url"` - QRCode *PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCodeQRCode `json:"qr_code"` + // The URL to the hosted Swish instructions page, which allows customers to view the QR code. + HostedInstructionsURL string `json:"hosted_instructions_url"` + // The url for mobile redirect based auth + MobileAuthURL string `json:"mobile_auth_url"` + QRCode *PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCodeQRCode `json:"qr_code"` } // When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js. From 5a6f506cfb48e9548d0315866c90c1878cdd3a08 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 22:53:39 +0000 Subject: [PATCH 04/14] Update generated code for v818 --- OPENAPI_VERSION | 2 +- paymentintent.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 081d5f29fc..6b06fe4ad2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v817 \ No newline at end of file +v818 \ No newline at end of file diff --git a/paymentintent.go b/paymentintent.go index 701f9f7f80..17f93545fa 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -3122,8 +3122,7 @@ type PaymentIntentConfirmRadarOptionsParams struct { // return to the requires_confirmation state // after those actions are completed. Your server needs to then // explicitly re-confirm the PaymentIntent to initiate the next payment -// attempt. Read the [expanded documentation](https://stripe.com/docs/payments/payment-intents/web-manual) -// to learn more about manual confirmation. +// attempt. type PaymentIntentConfirmParams struct { Params `form:"*"` // The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). From 8fab02afe276db84fa52e7345a539dec41c69c83 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:16:00 +0000 Subject: [PATCH 05/14] Update generated code for v820 --- OPENAPI_VERSION | 2 +- paymentintent.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6b06fe4ad2..b6904e8bc6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v818 \ No newline at end of file +v820 \ No newline at end of file diff --git a/paymentintent.go b/paymentintent.go index 17f93545fa..8d96db9add 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -3527,7 +3527,7 @@ type PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCodeQRCode struct { type PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCode struct { // The URL to the hosted Swish instructions page, which allows customers to view the QR code. HostedInstructionsURL string `json:"hosted_instructions_url"` - // The url for mobile redirect based auth + // The url for mobile redirect based auth (for internal use only and not typically available in standard API requests). MobileAuthURL string `json:"mobile_auth_url"` QRCode *PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCodeQRCode `json:"qr_code"` } From 0af66fb71b410309eb4a7d6a4f559cd9e08c9ede Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 20:22:14 +0000 Subject: [PATCH 06/14] Update generated code for v822 --- OPENAPI_VERSION | 2 +- invoicelineitem.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b6904e8bc6..adb4bdaadd 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v820 \ No newline at end of file +v822 \ No newline at end of file diff --git a/invoicelineitem.go b/invoicelineitem.go index 14c4c6aa13..5138ad9c69 100644 --- a/invoicelineitem.go +++ b/invoicelineitem.go @@ -61,6 +61,8 @@ type InvoiceLineItem struct { Discounts []*Discount `json:"discounts"` // Unique identifier for the object. ID string `json:"id"` + // The ID of the invoice that contains this line item. + Invoice string `json:"invoice"` // The ID of the [invoice item](https://stripe.com/docs/api/invoiceitems) associated with this line item if any. InvoiceItem *InvoiceItem `json:"invoice_item"` // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. From a886ad5244661f5f63cdf0ceef05db21d01ae8ec Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:21:07 +0000 Subject: [PATCH 07/14] Update generated code for v823 --- OPENAPI_VERSION | 2 +- card.go | 8 +++++++- confirmationtoken.go | 2 ++ paymentmethod.go | 10 ++++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index adb4bdaadd..428718ce5e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v822 \ No newline at end of file +v823 \ No newline at end of file diff --git a/card.go b/card.go index 28f83ad5fd..f17da5f0a9 100644 --- a/card.go +++ b/card.go @@ -282,6 +282,11 @@ func (p *CardListParams) AppendTo(body *form.Values, keyParts []string) { } } +type CardNetworks struct { + // The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. + Preferred string `json:"preferred"` +} + // You can store multiple cards on a customer in order to charge the customer // later. You can also store multiple debit cards on a recipient in order to // transfer to those cards later. @@ -359,7 +364,8 @@ type Card struct { // 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. Metadata map[string]string `json:"metadata"` // Cardholder name. - Name string `json:"name"` + Name string `json:"name"` + Networks *CardNetworks `json:"networks"` // String representing the object's type. Objects of the same type share the same value. Object string `json:"object"` // 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. diff --git a/confirmationtoken.go b/confirmationtoken.go index 7fa1fab7d6..8a2405d3d9 100644 --- a/confirmationtoken.go +++ b/confirmationtoken.go @@ -474,6 +474,8 @@ type ConfirmationTokenPaymentMethodPreviewCard struct { Country string `json:"country"` // A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) Description string `json:"description"` + // The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future. + DisplayBrand string `json:"display_brand"` // Two-digit number representing the card's expiration month. ExpMonth int64 `json:"exp_month"` // Four-digit number representing the card's expiration year. diff --git a/paymentmethod.go b/paymentmethod.go index 1c0d83d812..0ed37e2686 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -313,6 +313,12 @@ type PaymentMethodBoletoParams struct { TaxID *string `form:"tax_id"` } +// Contains information about card networks used to process the payment. +type PaymentMethodCardNetworksParams struct { + // The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. + Preferred *string `form:"preferred"` +} + // If this is a `card` PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format `card: {token: "tok_visa"}`. When providing a card number, you must meet the requirements for [PCI compliance](https://stripe.com/docs/security#validating-pci-compliance). We strongly recommend using Stripe.js instead of interacting with this API directly. type PaymentMethodCardParams struct { // The card's CVC. It is highly recommended to always include this value. @@ -321,6 +327,8 @@ type PaymentMethodCardParams struct { ExpMonth *int64 `form:"exp_month"` // Four-digit number representing the card's expiration year. ExpYear *int64 `form:"exp_year"` + // Contains information about card networks used to process the payment. + Networks *PaymentMethodCardNetworksParams `form:"networks"` // The card number, as a string without any separators. Number *string `form:"number"` // For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}. @@ -709,6 +717,8 @@ type PaymentMethodCard struct { Checks *PaymentMethodCardChecks `json:"checks"` // Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. Country string `json:"country"` + // The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future. + DisplayBrand string `json:"display_brand"` // Two-digit number representing the card's expiration month. ExpMonth int64 `json:"exp_month"` // Four-digit number representing the card's expiration year. From 9462acb74251feca38faa0b66702b73e92d96c97 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 18:53:41 +0000 Subject: [PATCH 08/14] Update generated code for v824 --- OPENAPI_VERSION | 2 +- account.go | 10 ++++ charge.go | 11 +++++ confirmationtoken.go | 10 ++++ mandate.go | 59 ++++++++++++++++++++++ paymentintent.go | 113 +++++++++++++++++++++++++++++++++++++++++++ paymentmethod.go | 22 +++++++++ setupattempt.go | 2 + setupintent.go | 112 ++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 340 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 428718ce5e..926d174892 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v823 \ No newline at end of file +v824 \ No newline at end of file diff --git a/account.go b/account.go index 6f88d0eae2..6b54f9c4b7 100644 --- a/account.go +++ b/account.go @@ -426,6 +426,12 @@ type AccountCapabilitiesPaypalPaymentsParams struct { Requested *bool `form:"requested"` } +// The payto_payments capability. +type AccountCapabilitiesPaytoPaymentsParams struct { + // 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. + Requested *bool `form:"requested"` +} + // The promptpay_payments capability. type AccountCapabilitiesPromptPayPaymentsParams struct { // 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. @@ -550,6 +556,8 @@ type AccountCapabilitiesParams struct { PayNowPayments *AccountCapabilitiesPayNowPaymentsParams `form:"paynow_payments"` // The paypal_payments capability. PaypalPayments *AccountCapabilitiesPaypalPaymentsParams `form:"paypal_payments"` + // The payto_payments capability. + PaytoPayments *AccountCapabilitiesPaytoPaymentsParams `form:"payto_payments"` // The promptpay_payments capability. PromptPayPayments *AccountCapabilitiesPromptPayPaymentsParams `form:"promptpay_payments"` // The revolut_pay_payments capability. @@ -1079,6 +1087,8 @@ type AccountCapabilities struct { PayNowPayments AccountCapabilityStatus `json:"paynow_payments"` // The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges. PaypalPayments AccountCapabilityStatus `json:"paypal_payments"` + // The status of the PayTo capability of the account, or whether the account can directly process PayTo charges. + PaytoPayments AccountCapabilityStatus `json:"payto_payments"` // The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges. PromptPayPayments AccountCapabilityStatus `json:"promptpay_payments"` // The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments. diff --git a/charge.go b/charge.go index ed0e10ce0f..7d03345b5e 100644 --- a/charge.go +++ b/charge.go @@ -1725,6 +1725,16 @@ type ChargePaymentMethodDetailsPaypal struct { // (if supported) at the time of authorization or settlement. They cannot be set or mutated. VerifiedName string `json:"verified_name"` } +type ChargePaymentMethodDetailsPayto struct { + // Bank-State-Branch number of the bank account. + BSBNumber string `json:"bsb_number"` + // Last four digits of the bank account number. + Last4 string `json:"last4"` + // ID of the mandate used to make this payment. + Mandate string `json:"mandate"` + // The PayID alias for the bank account. + PayID string `json:"pay_id"` +} type ChargePaymentMethodDetailsPix struct { // Unique transaction id generated by BCB BankTransactionID string `json:"bank_transaction_id"` @@ -1841,6 +1851,7 @@ type ChargePaymentMethodDetails struct { P24 *ChargePaymentMethodDetailsP24 `json:"p24"` PayNow *ChargePaymentMethodDetailsPayNow `json:"paynow"` Paypal *ChargePaymentMethodDetailsPaypal `json:"paypal"` + Payto *ChargePaymentMethodDetailsPayto `json:"payto"` Pix *ChargePaymentMethodDetailsPix `json:"pix"` PromptPay *ChargePaymentMethodDetailsPromptPay `json:"promptpay"` RevolutPay *ChargePaymentMethodDetailsRevolutPay `json:"revolut_pay"` diff --git a/confirmationtoken.go b/confirmationtoken.go index 8a2405d3d9..1a5552290f 100644 --- a/confirmationtoken.go +++ b/confirmationtoken.go @@ -228,6 +228,7 @@ const ( ConfirmationTokenPaymentMethodPreviewTypeP24 ConfirmationTokenPaymentMethodPreviewType = "p24" ConfirmationTokenPaymentMethodPreviewTypePayNow ConfirmationTokenPaymentMethodPreviewType = "paynow" ConfirmationTokenPaymentMethodPreviewTypePaypal ConfirmationTokenPaymentMethodPreviewType = "paypal" + ConfirmationTokenPaymentMethodPreviewTypePayto ConfirmationTokenPaymentMethodPreviewType = "payto" ConfirmationTokenPaymentMethodPreviewTypePix ConfirmationTokenPaymentMethodPreviewType = "pix" ConfirmationTokenPaymentMethodPreviewTypePromptPay ConfirmationTokenPaymentMethodPreviewType = "promptpay" ConfirmationTokenPaymentMethodPreviewTypeRevolutPay ConfirmationTokenPaymentMethodPreviewType = "revolut_pay" @@ -641,6 +642,14 @@ type ConfirmationTokenPaymentMethodPreviewPaypal struct { // (if supported) at the time of authorization or settlement. They cannot be set or mutated. VerifiedEmail string `json:"verified_email"` } +type ConfirmationTokenPaymentMethodPreviewPayto struct { + // Bank-State-Branch number of the bank account. + BSBNumber string `json:"bsb_number"` + // Last four digits of the bank account number. + Last4 string `json:"last4"` + // The PayID alias for the bank account. + PayID string `json:"pay_id"` +} type ConfirmationTokenPaymentMethodPreviewPix struct{} type ConfirmationTokenPaymentMethodPreviewPromptPay struct{} type ConfirmationTokenPaymentMethodPreviewRevolutPay struct{} @@ -744,6 +753,7 @@ type ConfirmationTokenPaymentMethodPreview struct { P24 *ConfirmationTokenPaymentMethodPreviewP24 `json:"p24"` PayNow *ConfirmationTokenPaymentMethodPreviewPayNow `json:"paynow"` Paypal *ConfirmationTokenPaymentMethodPreviewPaypal `json:"paypal"` + Payto *ConfirmationTokenPaymentMethodPreviewPayto `json:"payto"` Pix *ConfirmationTokenPaymentMethodPreviewPix `json:"pix"` PromptPay *ConfirmationTokenPaymentMethodPreviewPromptPay `json:"promptpay"` RevolutPay *ConfirmationTokenPaymentMethodPreviewRevolutPay `json:"revolut_pay"` diff --git a/mandate.go b/mandate.go index 156d528669..4ce0cca84f 100644 --- a/mandate.go +++ b/mandate.go @@ -68,6 +68,48 @@ const ( MandatePaymentMethodDetailsBACSDebitRevocationReasonDebitNotAuthorized MandatePaymentMethodDetailsBACSDebitRevocationReason = "debit_not_authorized" ) +// The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. +type MandatePaymentMethodDetailsPaytoAmountType string + +// List of values that MandatePaymentMethodDetailsPaytoAmountType can take +const ( + MandatePaymentMethodDetailsPaytoAmountTypeFixed MandatePaymentMethodDetailsPaytoAmountType = "fixed" + MandatePaymentMethodDetailsPaytoAmountTypeMaximum MandatePaymentMethodDetailsPaytoAmountType = "maximum" +) + +// The periodicity at which payments will be collected. +type MandatePaymentMethodDetailsPaytoPaymentSchedule string + +// List of values that MandatePaymentMethodDetailsPaytoPaymentSchedule can take +const ( + MandatePaymentMethodDetailsPaytoPaymentScheduleAdhoc MandatePaymentMethodDetailsPaytoPaymentSchedule = "adhoc" + MandatePaymentMethodDetailsPaytoPaymentScheduleAnnual MandatePaymentMethodDetailsPaytoPaymentSchedule = "annual" + MandatePaymentMethodDetailsPaytoPaymentScheduleDaily MandatePaymentMethodDetailsPaytoPaymentSchedule = "daily" + MandatePaymentMethodDetailsPaytoPaymentScheduleFortnightly MandatePaymentMethodDetailsPaytoPaymentSchedule = "fortnightly" + MandatePaymentMethodDetailsPaytoPaymentScheduleMonthly MandatePaymentMethodDetailsPaytoPaymentSchedule = "monthly" + MandatePaymentMethodDetailsPaytoPaymentScheduleQuarterly MandatePaymentMethodDetailsPaytoPaymentSchedule = "quarterly" + MandatePaymentMethodDetailsPaytoPaymentScheduleSemiAnnual MandatePaymentMethodDetailsPaytoPaymentSchedule = "semi_annual" + MandatePaymentMethodDetailsPaytoPaymentScheduleWeekly MandatePaymentMethodDetailsPaytoPaymentSchedule = "weekly" +) + +// The purpose for which payments are made. Defaults to retail. +type MandatePaymentMethodDetailsPaytoPurpose string + +// List of values that MandatePaymentMethodDetailsPaytoPurpose can take +const ( + MandatePaymentMethodDetailsPaytoPurposeDependantSupport MandatePaymentMethodDetailsPaytoPurpose = "dependant_support" + MandatePaymentMethodDetailsPaytoPurposeGovernment MandatePaymentMethodDetailsPaytoPurpose = "government" + MandatePaymentMethodDetailsPaytoPurposeLoan MandatePaymentMethodDetailsPaytoPurpose = "loan" + MandatePaymentMethodDetailsPaytoPurposeMortgage MandatePaymentMethodDetailsPaytoPurpose = "mortgage" + MandatePaymentMethodDetailsPaytoPurposeOther MandatePaymentMethodDetailsPaytoPurpose = "other" + MandatePaymentMethodDetailsPaytoPurposePension MandatePaymentMethodDetailsPaytoPurpose = "pension" + MandatePaymentMethodDetailsPaytoPurposePersonal MandatePaymentMethodDetailsPaytoPurpose = "personal" + MandatePaymentMethodDetailsPaytoPurposeRetail MandatePaymentMethodDetailsPaytoPurpose = "retail" + MandatePaymentMethodDetailsPaytoPurposeSalary MandatePaymentMethodDetailsPaytoPurpose = "salary" + MandatePaymentMethodDetailsPaytoPurposeTax MandatePaymentMethodDetailsPaytoPurpose = "tax" + MandatePaymentMethodDetailsPaytoPurposeUtility MandatePaymentMethodDetailsPaytoPurpose = "utility" +) + // This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. type MandatePaymentMethodDetailsType string @@ -176,6 +218,22 @@ type MandatePaymentMethodDetailsPaypal struct { // (if supported) at the time of authorization or settlement. They cannot be set or mutated. VerifiedEmail string `json:"verified_email"` } +type MandatePaymentMethodDetailsPayto struct { + // Amount that will be collected. It is required when `amount_type` is `fixed`. + Amount int64 `json:"amount"` + // The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + AmountType MandatePaymentMethodDetailsPaytoAmountType `json:"amount_type"` + // Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. + EndDate string `json:"end_date"` + // The periodicity at which payments will be collected. + PaymentSchedule MandatePaymentMethodDetailsPaytoPaymentSchedule `json:"payment_schedule"` + // The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit. + PaymentsPerPeriod int64 `json:"payments_per_period"` + // The purpose for which payments are made. Defaults to retail. + Purpose MandatePaymentMethodDetailsPaytoPurpose `json:"purpose"` + // Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time. + StartDate string `json:"start_date"` +} type MandatePaymentMethodDetailsSEPADebit struct { // The unique reference of the mandate. Reference string `json:"reference"` @@ -194,6 +252,7 @@ type MandatePaymentMethodDetails struct { CashApp *MandatePaymentMethodDetailsCashApp `json:"cashapp"` Link *MandatePaymentMethodDetailsLink `json:"link"` Paypal *MandatePaymentMethodDetailsPaypal `json:"paypal"` + Payto *MandatePaymentMethodDetailsPayto `json:"payto"` SEPADebit *MandatePaymentMethodDetailsSEPADebit `json:"sepa_debit"` // This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method. Type MandatePaymentMethodDetailsType `json:"type"` diff --git a/paymentintent.go b/paymentintent.go index 8d96db9add..56a0e1fe28 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -704,6 +704,61 @@ const ( PaymentIntentPaymentMethodOptionsPaypalSetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsPaypalSetupFutureUsage = "off_session" ) +// The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. +type PaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountType string + +// List of values that PaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountType can take +const ( + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountTypeFixed PaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountType = "fixed" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountTypeMaximum PaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountType = "maximum" +) + +// The periodicity at which payments will be collected. +type PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule string + +// List of values that PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule can take +const ( + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleAdhoc PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "adhoc" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleAnnual PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "annual" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleDaily PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "daily" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleFortnightly PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "fortnightly" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleMonthly PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "monthly" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleQuarterly PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "quarterly" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleSemiAnnual PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "semi_annual" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleWeekly PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "weekly" +) + +// The purpose for which payments are made. Defaults to retail. +type PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose string + +// List of values that PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose can take +const ( + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeDependantSupport PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "dependant_support" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeGovernment PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "government" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeLoan PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "loan" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeMortgage PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "mortgage" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeOther PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "other" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposePension PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "pension" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposePersonal PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "personal" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeRetail PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "retail" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeSalary PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "salary" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeTax PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "tax" + PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurposeUtility PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "utility" +) + +// Indicates that you intend to make future payments with this PaymentIntent's payment method. +// +// 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. +// +// 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). +type PaymentIntentPaymentMethodOptionsPaytoSetupFutureUsage string + +// List of values that PaymentIntentPaymentMethodOptionsPaytoSetupFutureUsage can take +const ( + PaymentIntentPaymentMethodOptionsPaytoSetupFutureUsageNone PaymentIntentPaymentMethodOptionsPaytoSetupFutureUsage = "none" + PaymentIntentPaymentMethodOptionsPaytoSetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsPaytoSetupFutureUsage = "off_session" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // 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. @@ -1408,6 +1463,8 @@ type PaymentIntentPaymentMethodDataParams struct { PayNow *PaymentIntentPaymentMethodDataPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. Paypal *PaymentIntentPaymentMethodDataPaypalParams `form:"paypal"` + // If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Payto *PaymentMethodPaytoParams `form:"payto"` // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. Pix *PaymentIntentPaymentMethodDataPixParams `form:"pix"` // If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. @@ -2000,6 +2057,36 @@ type PaymentIntentPaymentMethodOptionsPaypalParams struct { Subsellers []*string `form:"subsellers"` } +// Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session` +type PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams struct { + // Amount that will be collected. It is required when `amount_type` is `fixed`. + Amount *int64 `form:"amount"` + // The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + AmountType *string `form:"amount_type"` + // Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. + EndDate *string `form:"end_date"` + // The periodicity at which payments will be collected. + PaymentSchedule *string `form:"payment_schedule"` + // The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit. + PaymentsPerPeriod *int64 `form:"payments_per_period"` + // The purpose for which payments are made. Defaults to retail. + Purpose *string `form:"purpose"` +} + +// If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. +type PaymentIntentPaymentMethodOptionsPaytoParams struct { + // Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session` + MandateOptions *PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams `form:"mandate_options"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // 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. + // + // 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). + // + // If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + SetupFutureUsage *string `form:"setup_future_usage"` +} + // If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. type PaymentIntentPaymentMethodOptionsPixParams struct { // The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds. @@ -2217,6 +2304,8 @@ type PaymentIntentPaymentMethodOptionsParams struct { PayNow *PaymentIntentPaymentMethodOptionsPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. Paypal *PaymentIntentPaymentMethodOptionsPaypalParams `form:"paypal"` + // If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options. + Payto *PaymentIntentPaymentMethodOptionsPaytoParams `form:"payto"` // If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options. Pix *PaymentIntentPaymentMethodOptionsPixParams `form:"pix"` // If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. @@ -4076,6 +4165,29 @@ type PaymentIntentPaymentMethodOptionsPaypal struct { // The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used. Subsellers []string `json:"subsellers"` } +type PaymentIntentPaymentMethodOptionsPaytoMandateOptions struct { + // Amount that will be collected. It is required when `amount_type` is `fixed`. + Amount int64 `json:"amount"` + // The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + AmountType PaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountType `json:"amount_type"` + // Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. + EndDate string `json:"end_date"` + // The periodicity at which payments will be collected. + PaymentSchedule PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule `json:"payment_schedule"` + // The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit. + PaymentsPerPeriod int64 `json:"payments_per_period"` + // The purpose for which payments are made. Defaults to retail. + Purpose PaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose `json:"purpose"` +} +type PaymentIntentPaymentMethodOptionsPayto struct { + MandateOptions *PaymentIntentPaymentMethodOptionsPaytoMandateOptions `json:"mandate_options"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // 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. + // + // 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). + SetupFutureUsage PaymentIntentPaymentMethodOptionsPaytoSetupFutureUsage `json:"setup_future_usage"` +} type PaymentIntentPaymentMethodOptionsPix struct { // The number of seconds (between 10 and 1209600) after which Pix payment will expire. ExpiresAfterSeconds int64 `json:"expires_after_seconds"` @@ -4207,6 +4319,7 @@ type PaymentIntentPaymentMethodOptions struct { P24 *PaymentIntentPaymentMethodOptionsP24 `json:"p24"` PayNow *PaymentIntentPaymentMethodOptionsPayNow `json:"paynow"` Paypal *PaymentIntentPaymentMethodOptionsPaypal `json:"paypal"` + Payto *PaymentIntentPaymentMethodOptionsPayto `json:"payto"` Pix *PaymentIntentPaymentMethodOptionsPix `json:"pix"` PromptPay *PaymentIntentPaymentMethodOptionsPromptPay `json:"promptpay"` RevolutPay *PaymentIntentPaymentMethodOptionsRevolutPay `json:"revolut_pay"` diff --git a/paymentmethod.go b/paymentmethod.go index 0ed37e2686..babf67fb4c 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -168,6 +168,7 @@ const ( PaymentMethodTypeP24 PaymentMethodType = "p24" PaymentMethodTypePayNow PaymentMethodType = "paynow" PaymentMethodTypePaypal PaymentMethodType = "paypal" + PaymentMethodTypePayto PaymentMethodType = "payto" PaymentMethodTypePix PaymentMethodType = "pix" PaymentMethodTypePromptPay PaymentMethodType = "promptpay" PaymentMethodTypeRevolutPay PaymentMethodType = "revolut_pay" @@ -407,6 +408,16 @@ type PaymentMethodPayNowParams struct{} // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. type PaymentMethodPaypalParams struct{} +// If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. +type PaymentMethodPaytoParams struct { + // The account number for the bank account. + AccountNumber *string `form:"account_number"` + // Bank-State-Branch number of the bank account. + BSBNumber *string `form:"bsb_number"` + // The PayID alias for the bank account. + PayID *string `form:"pay_id"` +} + // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. type PaymentMethodPixParams struct{} @@ -518,6 +529,8 @@ type PaymentMethodParams struct { PayNow *PaymentMethodPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. Paypal *PaymentMethodPaypalParams `form:"paypal"` + // If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Payto *PaymentMethodPaytoParams `form:"payto"` // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. Pix *PaymentMethodPixParams `form:"pix"` // If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. @@ -888,6 +901,14 @@ type PaymentMethodPaypal struct { // (if supported) at the time of authorization or settlement. They cannot be set or mutated. VerifiedEmail string `json:"verified_email"` } +type PaymentMethodPayto struct { + // Bank-State-Branch number of the bank account. + BSBNumber string `json:"bsb_number"` + // Last four digits of the bank account number. + Last4 string `json:"last4"` + // The PayID alias for the bank account. + PayID string `json:"pay_id"` +} type PaymentMethodPix struct{} type PaymentMethodPromptPay struct{} @@ -1014,6 +1035,7 @@ type PaymentMethod struct { P24 *PaymentMethodP24 `json:"p24"` PayNow *PaymentMethodPayNow `json:"paynow"` Paypal *PaymentMethodPaypal `json:"paypal"` + Payto *PaymentMethodPayto `json:"payto"` Pix *PaymentMethodPix `json:"pix"` PromptPay *PaymentMethodPromptPay `json:"promptpay"` // Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. diff --git a/setupattempt.go b/setupattempt.go index f714e38b88..8656b4e060 100644 --- a/setupattempt.go +++ b/setupattempt.go @@ -252,6 +252,7 @@ type SetupAttemptPaymentMethodDetailsIDEAL struct { type SetupAttemptPaymentMethodDetailsKlarna struct{} type SetupAttemptPaymentMethodDetailsLink struct{} type SetupAttemptPaymentMethodDetailsPaypal struct{} +type SetupAttemptPaymentMethodDetailsPayto struct{} type SetupAttemptPaymentMethodDetailsSEPADebit struct{} type SetupAttemptPaymentMethodDetailsSofort struct { // Bank code of bank associated with the bank account. @@ -287,6 +288,7 @@ type SetupAttemptPaymentMethodDetails struct { Klarna *SetupAttemptPaymentMethodDetailsKlarna `json:"klarna"` Link *SetupAttemptPaymentMethodDetailsLink `json:"link"` Paypal *SetupAttemptPaymentMethodDetailsPaypal `json:"paypal"` + Payto *SetupAttemptPaymentMethodDetailsPayto `json:"payto"` SEPADebit *SetupAttemptPaymentMethodDetailsSEPADebit `json:"sepa_debit"` Sofort *SetupAttemptPaymentMethodDetailsSofort `json:"sofort"` // The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. diff --git a/setupintent.go b/setupintent.go index d88b07ab53..a87e840574 100644 --- a/setupintent.go +++ b/setupintent.go @@ -166,6 +166,48 @@ const ( SetupIntentPaymentMethodOptionsCardRequestThreeDSecureChallengeOnly SetupIntentPaymentMethodOptionsCardRequestThreeDSecure = "challenge_only" ) +// The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. +type SetupIntentPaymentMethodOptionsPaytoMandateOptionsAmountType string + +// List of values that SetupIntentPaymentMethodOptionsPaytoMandateOptionsAmountType can take +const ( + SetupIntentPaymentMethodOptionsPaytoMandateOptionsAmountTypeFixed SetupIntentPaymentMethodOptionsPaytoMandateOptionsAmountType = "fixed" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsAmountTypeMaximum SetupIntentPaymentMethodOptionsPaytoMandateOptionsAmountType = "maximum" +) + +// The periodicity at which payments will be collected. +type SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule string + +// List of values that SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule can take +const ( + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleAdhoc SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "adhoc" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleAnnual SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "annual" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleDaily SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "daily" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleFortnightly SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "fortnightly" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleMonthly SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "monthly" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleQuarterly SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "quarterly" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleSemiAnnual SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "semi_annual" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentScheduleWeekly SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule = "weekly" +) + +// The purpose for which payments are made. Defaults to retail. +type SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose string + +// List of values that SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose can take +const ( + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeDependantSupport SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "dependant_support" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeGovernment SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "government" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeLoan SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "loan" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeMortgage SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "mortgage" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeOther SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "other" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposePension SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "pension" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposePersonal SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "personal" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeRetail SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "retail" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeSalary SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "salary" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeTax SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "tax" + SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurposeUtility SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose = "utility" +) + // Settings for configuring manual entry of account details. type SetupIntentPaymentMethodOptionsUSBankAccountFinancialConnectionsManualEntryMode string @@ -433,6 +475,16 @@ type SetupIntentPaymentMethodDataPayNowParams struct{} // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. type SetupIntentPaymentMethodDataPaypalParams struct{} +// If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. +type SetupIntentPaymentMethodDataPaytoParams struct { + // The account number for the bank account. + AccountNumber *string `form:"account_number"` + // Bank-State-Branch number of the bank account. + BSBNumber *string `form:"bsb_number"` + // The PayID alias for the bank account. + PayID *string `form:"pay_id"` +} + // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. type SetupIntentPaymentMethodDataPixParams struct{} @@ -538,6 +590,8 @@ type SetupIntentPaymentMethodDataParams struct { PayNow *SetupIntentPaymentMethodDataPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. Paypal *SetupIntentPaymentMethodDataPaypalParams `form:"paypal"` + // If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Payto *SetupIntentPaymentMethodDataPaytoParams `form:"payto"` // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. Pix *SetupIntentPaymentMethodDataPixParams `form:"pix"` // If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. @@ -704,6 +758,30 @@ type SetupIntentPaymentMethodOptionsPaypalParams struct { Subsellers []*string `form:"subsellers"` } +// Additional fields for Mandate creation. +type SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams struct { + // Amount that will be collected. It is required when `amount_type` is `fixed`. + Amount *int64 `form:"amount"` + // The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + AmountType *string `form:"amount_type"` + // Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. + EndDate *string `form:"end_date"` + // The periodicity at which payments will be collected. + PaymentSchedule *string `form:"payment_schedule"` + // The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit. + PaymentsPerPeriod *int64 `form:"payments_per_period"` + // The purpose for which payments are made. Defaults to retail. + Purpose *string `form:"purpose"` + // Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time. + StartDate *string `form:"start_date"` +} + +// If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options. +type SetupIntentPaymentMethodOptionsPaytoParams struct { + // Additional fields for Mandate creation. + MandateOptions *SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams `form:"mandate_options"` +} + // Additional fields for Mandate creation type SetupIntentPaymentMethodOptionsSEPADebitMandateOptionsParams struct{} @@ -765,6 +843,8 @@ type SetupIntentPaymentMethodOptionsParams struct { Link *SetupIntentPaymentMethodOptionsLinkParams `form:"link"` // If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. Paypal *SetupIntentPaymentMethodOptionsPaypalParams `form:"paypal"` + // If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options. + Payto *SetupIntentPaymentMethodOptionsPaytoParams `form:"payto"` // If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. SEPADebit *SetupIntentPaymentMethodOptionsSEPADebitParams `form:"sepa_debit"` // If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options. @@ -999,6 +1079,16 @@ type SetupIntentConfirmPaymentMethodDataPayNowParams struct{} // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. type SetupIntentConfirmPaymentMethodDataPaypalParams struct{} +// If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. +type SetupIntentConfirmPaymentMethodDataPaytoParams struct { + // The account number for the bank account. + AccountNumber *string `form:"account_number"` + // Bank-State-Branch number of the bank account. + BSBNumber *string `form:"bsb_number"` + // The PayID alias for the bank account. + PayID *string `form:"pay_id"` +} + // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. type SetupIntentConfirmPaymentMethodDataPixParams struct{} @@ -1104,6 +1194,8 @@ type SetupIntentConfirmPaymentMethodDataParams struct { PayNow *SetupIntentConfirmPaymentMethodDataPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. Paypal *SetupIntentConfirmPaymentMethodDataPaypalParams `form:"paypal"` + // If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method. + Payto *SetupIntentConfirmPaymentMethodDataPaytoParams `form:"payto"` // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method. Pix *SetupIntentConfirmPaymentMethodDataPixParams `form:"pix"` // If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. @@ -1319,6 +1411,25 @@ type SetupIntentPaymentMethodOptionsPaypal struct { // The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used. Subsellers []string `json:"subsellers"` } +type SetupIntentPaymentMethodOptionsPaytoMandateOptions struct { + // Amount that will be collected. It is required when `amount_type` is `fixed`. + Amount int64 `json:"amount"` + // The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. + AmountType SetupIntentPaymentMethodOptionsPaytoMandateOptionsAmountType `json:"amount_type"` + // Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. + EndDate string `json:"end_date"` + // The periodicity at which payments will be collected. + PaymentSchedule SetupIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule `json:"payment_schedule"` + // The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit. + PaymentsPerPeriod int64 `json:"payments_per_period"` + // The purpose for which payments are made. Defaults to retail. + Purpose SetupIntentPaymentMethodOptionsPaytoMandateOptionsPurpose `json:"purpose"` + // Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time. + StartDate string `json:"start_date"` +} +type SetupIntentPaymentMethodOptionsPayto struct { + MandateOptions *SetupIntentPaymentMethodOptionsPaytoMandateOptions `json:"mandate_options"` +} type SetupIntentPaymentMethodOptionsSEPADebitMandateOptions struct{} type SetupIntentPaymentMethodOptionsSEPADebit struct { MandateOptions *SetupIntentPaymentMethodOptionsSEPADebitMandateOptions `json:"mandate_options"` @@ -1353,6 +1464,7 @@ type SetupIntentPaymentMethodOptions struct { Card *SetupIntentPaymentMethodOptionsCard `json:"card"` Link *SetupIntentPaymentMethodOptionsLink `json:"link"` Paypal *SetupIntentPaymentMethodOptionsPaypal `json:"paypal"` + Payto *SetupIntentPaymentMethodOptionsPayto `json:"payto"` SEPADebit *SetupIntentPaymentMethodOptionsSEPADebit `json:"sepa_debit"` USBankAccount *SetupIntentPaymentMethodOptionsUSBankAccount `json:"us_bank_account"` } From 80ad04cafcfb9dc767b99baa628efcceef13b108 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 13 Feb 2024 22:53:10 +0000 Subject: [PATCH 09/14] Update generated code for v826 --- OPENAPI_VERSION | 2 +- subscription.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 926d174892..e3cccc9e57 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v824 \ No newline at end of file +v826 \ No newline at end of file diff --git a/subscription.go b/subscription.go index 36847aac81..e39fbbd428 100644 --- a/subscription.go +++ b/subscription.go @@ -346,15 +346,15 @@ type SubscriptionParams struct { PauseCollection *SubscriptionPauseCollectionParams `form:"pause_collection"` // Only applies to subscriptions with `collection_method=charge_automatically`. // - // Use `allow_incomplete` to create subscriptions with `status=incomplete` if the first invoice cannot be paid. Creating subscriptions with this status allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. + // Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. // - // Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the payment intent on the first invoice. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the payment intent is not confirmed within 23 hours subscriptions transition to `status=incomplete_expired`, which is a terminal state. + // Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription's invoice, such as failed payments, [SCA regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. // - // Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + // Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. // - // `pending_if_incomplete` is only used with updates and cannot be passed when creating a subscription. + // `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. // - // Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first invoice status. + // Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. PaymentBehavior *string `form:"payment_behavior"` // Payment settings to pass to invoices created by the subscription. PaymentSettings *SubscriptionPaymentSettingsParams `form:"payment_settings"` From e48742b9447f1f580dcb361a488fa9ba2c8761db Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 11:55:26 +0000 Subject: [PATCH 10/14] Update generated code for v827 --- OPENAPI_VERSION | 2 +- checkout_session.go | 5 +++-- customer.go | 2 +- invoice.go | 8 ++++---- order.go | 7 ++++--- quotepreviewinvoice.go | 5 +++-- tax_calculation.go | 7 ++++--- tax_transaction.go | 5 +++-- taxid.go | 7 ++++--- 9 files changed, 27 insertions(+), 21 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e3cccc9e57..4d2a1a3da6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v826 \ No newline at end of file +v827 \ No newline at end of file diff --git a/checkout_session.go b/checkout_session.go index 142afaaf6d..2823d87640 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -120,7 +120,7 @@ const ( CheckoutSessionCustomerDetailsTaxExemptReverse CheckoutSessionCustomerDetailsTaxExempt = "reverse" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type CheckoutSessionCustomerDetailsTaxIDType string // List of values that CheckoutSessionCustomerDetailsTaxIDType can take @@ -170,6 +170,7 @@ const ( CheckoutSessionCustomerDetailsTaxIDTypeMYITN CheckoutSessionCustomerDetailsTaxIDType = "my_itn" CheckoutSessionCustomerDetailsTaxIDTypeMYSST CheckoutSessionCustomerDetailsTaxIDType = "my_sst" CheckoutSessionCustomerDetailsTaxIDTypeNOVAT CheckoutSessionCustomerDetailsTaxIDType = "no_vat" + CheckoutSessionCustomerDetailsTaxIDTypeNoVoec CheckoutSessionCustomerDetailsTaxIDType = "no_voec" CheckoutSessionCustomerDetailsTaxIDTypeNZGST CheckoutSessionCustomerDetailsTaxIDType = "nz_gst" CheckoutSessionCustomerDetailsTaxIDTypePERUC CheckoutSessionCustomerDetailsTaxIDType = "pe_ruc" CheckoutSessionCustomerDetailsTaxIDTypePHTIN CheckoutSessionCustomerDetailsTaxIDType = "ph_tin" @@ -2163,7 +2164,7 @@ type CheckoutSessionCustomText struct { // The customer's tax IDs after a completed Checkout Session. type CheckoutSessionCustomerDetailsTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type CheckoutSessionCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/customer.go b/customer.go index 9ec45d005f..5de0690aa8 100644 --- a/customer.go +++ b/customer.go @@ -190,7 +190,7 @@ func (p *CustomerListParams) AddExpand(f string) { // The customer's tax IDs. type CustomerTaxIDDataParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` diff --git a/invoice.go b/invoice.go index b24395a196..592e61ddc1 100644 --- a/invoice.go +++ b/invoice.go @@ -726,7 +726,7 @@ type InvoiceUpcomingCustomerDetailsTaxParams struct { // The customer's tax IDs. type InvoiceUpcomingCustomerDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -1770,7 +1770,7 @@ type InvoiceUpcomingLinesCustomerDetailsTaxParams struct { // The customer's tax IDs. type InvoiceUpcomingLinesCustomerDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -3081,7 +3081,7 @@ type InvoiceCreatePreviewCustomerDetailsTaxParams struct { // The customer's tax IDs. type InvoiceCreatePreviewCustomerDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -4319,7 +4319,7 @@ type InvoiceCustomField struct { // The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated. type InvoiceCustomerTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type *TaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/order.go b/order.go index 916e763500..7261de548b 100644 --- a/order.go +++ b/order.go @@ -464,7 +464,7 @@ const ( OrderTaxDetailsTaxExemptReverse OrderTaxDetailsTaxExempt = "reverse" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type OrderTaxDetailsTaxIDType string // List of values that OrderTaxDetailsTaxIDType can take @@ -514,6 +514,7 @@ const ( OrderTaxDetailsTaxIDTypeMYITN OrderTaxDetailsTaxIDType = "my_itn" OrderTaxDetailsTaxIDTypeMYSST OrderTaxDetailsTaxIDType = "my_sst" OrderTaxDetailsTaxIDTypeNOVAT OrderTaxDetailsTaxIDType = "no_vat" + OrderTaxDetailsTaxIDTypeNoVoec OrderTaxDetailsTaxIDType = "no_voec" OrderTaxDetailsTaxIDTypeNZGST OrderTaxDetailsTaxIDType = "nz_gst" OrderTaxDetailsTaxIDTypePERUC OrderTaxDetailsTaxIDType = "pe_ruc" OrderTaxDetailsTaxIDTypePHTIN OrderTaxDetailsTaxIDType = "ph_tin" @@ -1151,7 +1152,7 @@ type OrderShippingDetailsParams struct { // The purchaser's tax IDs to be used for this order. type OrderTaxDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -1592,7 +1593,7 @@ type OrderShippingDetails struct { // The purchaser's tax IDs to be used in calculation of tax for this Order. type OrderTaxDetailsTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type OrderTaxDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/quotepreviewinvoice.go b/quotepreviewinvoice.go index f13ab9625d..01ddce1279 100644 --- a/quotepreviewinvoice.go +++ b/quotepreviewinvoice.go @@ -87,7 +87,7 @@ const ( QuotePreviewInvoiceCustomerTaxExemptReverse QuotePreviewInvoiceCustomerTaxExempt = "reverse" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type QuotePreviewInvoiceCustomerTaxIDType string // List of values that QuotePreviewInvoiceCustomerTaxIDType can take @@ -137,6 +137,7 @@ const ( QuotePreviewInvoiceCustomerTaxIDTypeMYITN QuotePreviewInvoiceCustomerTaxIDType = "my_itn" QuotePreviewInvoiceCustomerTaxIDTypeMYSST QuotePreviewInvoiceCustomerTaxIDType = "my_sst" QuotePreviewInvoiceCustomerTaxIDTypeNOVAT QuotePreviewInvoiceCustomerTaxIDType = "no_vat" + QuotePreviewInvoiceCustomerTaxIDTypeNoVoec QuotePreviewInvoiceCustomerTaxIDType = "no_voec" QuotePreviewInvoiceCustomerTaxIDTypeNZGST QuotePreviewInvoiceCustomerTaxIDType = "nz_gst" QuotePreviewInvoiceCustomerTaxIDTypePERUC QuotePreviewInvoiceCustomerTaxIDType = "pe_ruc" QuotePreviewInvoiceCustomerTaxIDTypePHTIN QuotePreviewInvoiceCustomerTaxIDType = "ph_tin" @@ -439,7 +440,7 @@ type QuotePreviewInvoiceCustomField struct { // The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated. type QuotePreviewInvoiceCustomerTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type QuotePreviewInvoiceCustomerTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/tax_calculation.go b/tax_calculation.go index 2f686e4ed8..bf4b137190 100644 --- a/tax_calculation.go +++ b/tax_calculation.go @@ -15,7 +15,7 @@ const ( TaxCalculationCustomerDetailsAddressSourceShipping TaxCalculationCustomerDetailsAddressSource = "shipping" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type TaxCalculationCustomerDetailsTaxIDType string // List of values that TaxCalculationCustomerDetailsTaxIDType can take @@ -65,6 +65,7 @@ const ( TaxCalculationCustomerDetailsTaxIDTypeMYITN TaxCalculationCustomerDetailsTaxIDType = "my_itn" TaxCalculationCustomerDetailsTaxIDTypeMYSST TaxCalculationCustomerDetailsTaxIDType = "my_sst" TaxCalculationCustomerDetailsTaxIDTypeNOVAT TaxCalculationCustomerDetailsTaxIDType = "no_vat" + TaxCalculationCustomerDetailsTaxIDTypeNoVoec TaxCalculationCustomerDetailsTaxIDType = "no_voec" TaxCalculationCustomerDetailsTaxIDTypeNZGST TaxCalculationCustomerDetailsTaxIDType = "nz_gst" TaxCalculationCustomerDetailsTaxIDTypePERUC TaxCalculationCustomerDetailsTaxIDType = "pe_ruc" TaxCalculationCustomerDetailsTaxIDTypePHTIN TaxCalculationCustomerDetailsTaxIDType = "ph_tin" @@ -226,7 +227,7 @@ func (p *TaxCalculationListLineItemsParams) AddExpand(f string) { // The customer's tax IDs. Stripe Tax might consider a transaction with applicable tax IDs to be B2B, which might affect the tax calculation result. Stripe Tax doesn't validate tax IDs for correctness. type TaxCalculationCustomerDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -308,7 +309,7 @@ func (p *TaxCalculationParams) AddExpand(f string) { // The customer's tax IDs (for example, EU VAT numbers). type TaxCalculationCustomerDetailsTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type TaxCalculationCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/tax_transaction.go b/tax_transaction.go index 4b0a2014e9..2161fdfbc0 100644 --- a/tax_transaction.go +++ b/tax_transaction.go @@ -15,7 +15,7 @@ const ( TaxTransactionCustomerDetailsAddressSourceShipping TaxTransactionCustomerDetailsAddressSource = "shipping" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type TaxTransactionCustomerDetailsTaxIDType string // List of values that TaxTransactionCustomerDetailsTaxIDType can take @@ -65,6 +65,7 @@ const ( TaxTransactionCustomerDetailsTaxIDTypeMYITN TaxTransactionCustomerDetailsTaxIDType = "my_itn" TaxTransactionCustomerDetailsTaxIDTypeMYSST TaxTransactionCustomerDetailsTaxIDType = "my_sst" TaxTransactionCustomerDetailsTaxIDTypeNOVAT TaxTransactionCustomerDetailsTaxIDType = "no_vat" + TaxTransactionCustomerDetailsTaxIDTypeNoVoec TaxTransactionCustomerDetailsTaxIDType = "no_voec" TaxTransactionCustomerDetailsTaxIDTypeNZGST TaxTransactionCustomerDetailsTaxIDType = "nz_gst" TaxTransactionCustomerDetailsTaxIDTypePERUC TaxTransactionCustomerDetailsTaxIDType = "pe_ruc" TaxTransactionCustomerDetailsTaxIDTypePHTIN TaxTransactionCustomerDetailsTaxIDType = "ph_tin" @@ -301,7 +302,7 @@ func (p *TaxTransactionCreateReversalParams) AddMetadata(key string, value strin // The customer's tax IDs (for example, EU VAT numbers). type TaxTransactionCustomerDetailsTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type TaxTransactionCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/taxid.go b/taxid.go index e0785070c3..53dc323164 100644 --- a/taxid.go +++ b/taxid.go @@ -19,7 +19,7 @@ const ( TaxIDOwnerTypeSelf TaxIDOwnerType = "self" ) -// Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` +// Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` type TaxIDType string // List of values that TaxIDType can take @@ -69,6 +69,7 @@ const ( TaxIDTypeMYITN TaxIDType = "my_itn" TaxIDTypeMYSST TaxIDType = "my_sst" TaxIDTypeNOVAT TaxIDType = "no_vat" + TaxIDTypeNoVoec TaxIDType = "no_voec" TaxIDTypeNZGST TaxIDType = "nz_gst" TaxIDTypePERUC TaxIDType = "pe_ruc" TaxIDTypePHTIN TaxIDType = "ph_tin" @@ -110,7 +111,7 @@ type TaxIDParams struct { Customer *string `form:"-"` // Included in URL // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -177,7 +178,7 @@ type TaxID struct { Object string `json:"object"` // The account or customer the tax ID belongs to. Owner *TaxIDOwner `json:"owner"` - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` Type TaxIDType `json:"type"` // Value of the tax ID. Value string `json:"value"` From 644a2322a668f483b64fc5e67ca99bf505d9989d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 15 Feb 2024 10:12:13 +0000 Subject: [PATCH 11/14] Update generated code for v829 --- OPENAPI_VERSION | 2 +- invoice.go | 6 +++--- paymentintent.go | 6 +++--- quotepreviewinvoice.go | 4 ++-- setupintent.go | 6 +++--- subscription.go | 6 +++--- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4d2a1a3da6..5433dd907d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v827 \ No newline at end of file +v829 \ No newline at end of file diff --git a/invoice.go b/invoice.go index 592e61ddc1..86a9a86faa 100644 --- a/invoice.go +++ b/invoice.go @@ -101,7 +101,7 @@ const ( InvoicePaymentSettingsPaymentMethodOptionsACSSDebitVerificationMethodMicrodeposits InvoicePaymentSettingsPaymentMethodOptionsACSSDebitVerificationMethod = "microdeposits" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type InvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure string // List of values that InvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure can take @@ -467,7 +467,7 @@ type InvoicePaymentSettingsPaymentMethodOptionsCardParams struct { // // For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). Installments *InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsParams `form:"installments"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` } @@ -4363,7 +4363,7 @@ type InvoicePaymentSettingsPaymentMethodOptionsCardInstallments struct { // If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. type InvoicePaymentSettingsPaymentMethodOptionsCard struct { Installments *InvoicePaymentSettingsPaymentMethodOptionsCardInstallments `json:"installments"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure InvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` } type InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEUBankTransfer struct { diff --git a/paymentintent.go b/paymentintent.go index 56a0e1fe28..fe008ec268 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -439,7 +439,7 @@ const ( PaymentIntentPaymentMethodOptionsCardRequestOvercaptureNever PaymentIntentPaymentMethodOptionsCardRequestOvercapture = "never" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure string // List of values that PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure can take @@ -1785,7 +1785,7 @@ type PaymentIntentPaymentMethodOptionsCardParams struct { RequestMulticapture *string `form:"request_multicapture"` // Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. RequestOvercapture *string `form:"request_overcapture"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` // When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). RequireCVCRecollection *bool `form:"require_cvc_recollection"` @@ -3984,7 +3984,7 @@ type PaymentIntentPaymentMethodOptionsCard struct { RequestMulticapture PaymentIntentPaymentMethodOptionsCardRequestMulticapture `json:"request_multicapture"` // Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. RequestOvercapture PaymentIntentPaymentMethodOptionsCardRequestOvercapture `json:"request_overcapture"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` // When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). RequireCVCRecollection bool `json:"require_cvc_recollection"` diff --git a/quotepreviewinvoice.go b/quotepreviewinvoice.go index 01ddce1279..cb8ccba4fd 100644 --- a/quotepreviewinvoice.go +++ b/quotepreviewinvoice.go @@ -201,7 +201,7 @@ const ( QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBancontactPreferredLanguageNL QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBancontactPreferredLanguage = "nl" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure string // List of values that QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure can take @@ -484,7 +484,7 @@ type QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCardInstallments stru // If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. type QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCard struct { Installments *QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCardInstallments `json:"installments"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` } type QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEUBankTransfer struct { diff --git a/setupintent.go b/setupintent.go index a87e840574..1c3f9a771a 100644 --- a/setupintent.go +++ b/setupintent.go @@ -155,7 +155,7 @@ const ( SetupIntentPaymentMethodOptionsCardNetworkVisa SetupIntentPaymentMethodOptionsCardNetwork = "visa" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type SetupIntentPaymentMethodOptionsCardRequestThreeDSecure string // List of values that SetupIntentPaymentMethodOptionsCardRequestThreeDSecure can take @@ -736,7 +736,7 @@ type SetupIntentPaymentMethodOptionsCardParams struct { MOTO *bool `form:"moto"` // Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time. Network *string `form:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` // If 3D Secure authentication was performed with a third-party provider, // the authentication details to use for this setup. @@ -1396,7 +1396,7 @@ type SetupIntentPaymentMethodOptionsCard struct { MandateOptions *SetupIntentPaymentMethodOptionsCardMandateOptions `json:"mandate_options"` // Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the setup intent. Can be only set confirm-time. Network SetupIntentPaymentMethodOptionsCardNetwork `json:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure SetupIntentPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` } type SetupIntentPaymentMethodOptionsLink struct { diff --git a/subscription.go b/subscription.go index e39fbbd428..6564fc9e29 100644 --- a/subscription.go +++ b/subscription.go @@ -110,7 +110,7 @@ const ( SubscriptionPaymentSettingsPaymentMethodOptionsCardNetworkVisa SubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork = "visa" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type SubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure string // List of values that SubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure can take @@ -612,7 +612,7 @@ type SubscriptionPaymentSettingsPaymentMethodOptionsCardParams struct { MandateOptions *SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsParams `form:"mandate_options"` // Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time. Network *string `form:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` } @@ -895,7 +895,7 @@ type SubscriptionPaymentSettingsPaymentMethodOptionsCard struct { MandateOptions *SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptions `json:"mandate_options"` // Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time. Network SubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork `json:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure SubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` } type SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEUBankTransfer struct { From 0b917795beddc348d4ff4e52f534fb4a1a78ebca Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 15 Feb 2024 19:27:05 +0000 Subject: [PATCH 12/14] Update generated code for v829 --- checkout_session.go | 2 +- order.go | 2 +- quotepreviewinvoice.go | 2 +- tax_calculation.go | 2 +- tax_transaction.go | 2 +- taxid.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/checkout_session.go b/checkout_session.go index 2823d87640..9fbd0f6ed5 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -170,7 +170,7 @@ const ( CheckoutSessionCustomerDetailsTaxIDTypeMYITN CheckoutSessionCustomerDetailsTaxIDType = "my_itn" CheckoutSessionCustomerDetailsTaxIDTypeMYSST CheckoutSessionCustomerDetailsTaxIDType = "my_sst" CheckoutSessionCustomerDetailsTaxIDTypeNOVAT CheckoutSessionCustomerDetailsTaxIDType = "no_vat" - CheckoutSessionCustomerDetailsTaxIDTypeNoVoec CheckoutSessionCustomerDetailsTaxIDType = "no_voec" + CheckoutSessionCustomerDetailsTaxIDTypeNOVOEC CheckoutSessionCustomerDetailsTaxIDType = "no_voec" CheckoutSessionCustomerDetailsTaxIDTypeNZGST CheckoutSessionCustomerDetailsTaxIDType = "nz_gst" CheckoutSessionCustomerDetailsTaxIDTypePERUC CheckoutSessionCustomerDetailsTaxIDType = "pe_ruc" CheckoutSessionCustomerDetailsTaxIDTypePHTIN CheckoutSessionCustomerDetailsTaxIDType = "ph_tin" diff --git a/order.go b/order.go index 7261de548b..b07eee8d4e 100644 --- a/order.go +++ b/order.go @@ -514,7 +514,7 @@ const ( OrderTaxDetailsTaxIDTypeMYITN OrderTaxDetailsTaxIDType = "my_itn" OrderTaxDetailsTaxIDTypeMYSST OrderTaxDetailsTaxIDType = "my_sst" OrderTaxDetailsTaxIDTypeNOVAT OrderTaxDetailsTaxIDType = "no_vat" - OrderTaxDetailsTaxIDTypeNoVoec OrderTaxDetailsTaxIDType = "no_voec" + OrderTaxDetailsTaxIDTypeNOVOEC OrderTaxDetailsTaxIDType = "no_voec" OrderTaxDetailsTaxIDTypeNZGST OrderTaxDetailsTaxIDType = "nz_gst" OrderTaxDetailsTaxIDTypePERUC OrderTaxDetailsTaxIDType = "pe_ruc" OrderTaxDetailsTaxIDTypePHTIN OrderTaxDetailsTaxIDType = "ph_tin" diff --git a/quotepreviewinvoice.go b/quotepreviewinvoice.go index cb8ccba4fd..42b8148887 100644 --- a/quotepreviewinvoice.go +++ b/quotepreviewinvoice.go @@ -137,7 +137,7 @@ const ( QuotePreviewInvoiceCustomerTaxIDTypeMYITN QuotePreviewInvoiceCustomerTaxIDType = "my_itn" QuotePreviewInvoiceCustomerTaxIDTypeMYSST QuotePreviewInvoiceCustomerTaxIDType = "my_sst" QuotePreviewInvoiceCustomerTaxIDTypeNOVAT QuotePreviewInvoiceCustomerTaxIDType = "no_vat" - QuotePreviewInvoiceCustomerTaxIDTypeNoVoec QuotePreviewInvoiceCustomerTaxIDType = "no_voec" + QuotePreviewInvoiceCustomerTaxIDTypeNOVOEC QuotePreviewInvoiceCustomerTaxIDType = "no_voec" QuotePreviewInvoiceCustomerTaxIDTypeNZGST QuotePreviewInvoiceCustomerTaxIDType = "nz_gst" QuotePreviewInvoiceCustomerTaxIDTypePERUC QuotePreviewInvoiceCustomerTaxIDType = "pe_ruc" QuotePreviewInvoiceCustomerTaxIDTypePHTIN QuotePreviewInvoiceCustomerTaxIDType = "ph_tin" diff --git a/tax_calculation.go b/tax_calculation.go index bf4b137190..0bf5230545 100644 --- a/tax_calculation.go +++ b/tax_calculation.go @@ -65,7 +65,7 @@ const ( TaxCalculationCustomerDetailsTaxIDTypeMYITN TaxCalculationCustomerDetailsTaxIDType = "my_itn" TaxCalculationCustomerDetailsTaxIDTypeMYSST TaxCalculationCustomerDetailsTaxIDType = "my_sst" TaxCalculationCustomerDetailsTaxIDTypeNOVAT TaxCalculationCustomerDetailsTaxIDType = "no_vat" - TaxCalculationCustomerDetailsTaxIDTypeNoVoec TaxCalculationCustomerDetailsTaxIDType = "no_voec" + TaxCalculationCustomerDetailsTaxIDTypeNOVOEC TaxCalculationCustomerDetailsTaxIDType = "no_voec" TaxCalculationCustomerDetailsTaxIDTypeNZGST TaxCalculationCustomerDetailsTaxIDType = "nz_gst" TaxCalculationCustomerDetailsTaxIDTypePERUC TaxCalculationCustomerDetailsTaxIDType = "pe_ruc" TaxCalculationCustomerDetailsTaxIDTypePHTIN TaxCalculationCustomerDetailsTaxIDType = "ph_tin" diff --git a/tax_transaction.go b/tax_transaction.go index 2161fdfbc0..72f0371f25 100644 --- a/tax_transaction.go +++ b/tax_transaction.go @@ -65,7 +65,7 @@ const ( TaxTransactionCustomerDetailsTaxIDTypeMYITN TaxTransactionCustomerDetailsTaxIDType = "my_itn" TaxTransactionCustomerDetailsTaxIDTypeMYSST TaxTransactionCustomerDetailsTaxIDType = "my_sst" TaxTransactionCustomerDetailsTaxIDTypeNOVAT TaxTransactionCustomerDetailsTaxIDType = "no_vat" - TaxTransactionCustomerDetailsTaxIDTypeNoVoec TaxTransactionCustomerDetailsTaxIDType = "no_voec" + TaxTransactionCustomerDetailsTaxIDTypeNOVOEC TaxTransactionCustomerDetailsTaxIDType = "no_voec" TaxTransactionCustomerDetailsTaxIDTypeNZGST TaxTransactionCustomerDetailsTaxIDType = "nz_gst" TaxTransactionCustomerDetailsTaxIDTypePERUC TaxTransactionCustomerDetailsTaxIDType = "pe_ruc" TaxTransactionCustomerDetailsTaxIDTypePHTIN TaxTransactionCustomerDetailsTaxIDType = "ph_tin" diff --git a/taxid.go b/taxid.go index 53dc323164..7da3931917 100644 --- a/taxid.go +++ b/taxid.go @@ -69,7 +69,7 @@ const ( TaxIDTypeMYITN TaxIDType = "my_itn" TaxIDTypeMYSST TaxIDType = "my_sst" TaxIDTypeNOVAT TaxIDType = "no_vat" - TaxIDTypeNoVoec TaxIDType = "no_voec" + TaxIDTypeNOVOEC TaxIDType = "no_voec" TaxIDTypeNZGST TaxIDType = "nz_gst" TaxIDTypePERUC TaxIDType = "pe_ruc" TaxIDTypePHTIN TaxIDType = "ph_tin" From 8d349d0ac876518284a715815055546221c0e9bf Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:29:26 -0800 Subject: [PATCH 13/14] Update generated code (#1812) * Update generated code for v815 * Update generated code for v817 * Update generated code for v818 * Update generated code for v819 * Update generated code for v820 * Update generated code for v822 * Update generated code for v823 * Update generated code for v826 * Update generated code for v827 * Update generated code for v829 * Update generated code for v829 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- card.go | 8 +++++++- checkout_session.go | 5 +++-- customer.go | 2 +- event.go | 1 + invoice.go | 12 ++++++------ invoicelineitem.go | 2 ++ paymentintent.go | 11 +++++------ paymentmethod.go | 10 ++++++++++ setupintent.go | 6 +++--- subscription.go | 16 ++++++++-------- tax_calculation.go | 7 ++++--- tax_transaction.go | 5 +++-- taxid.go | 7 ++++--- 14 files changed, 58 insertions(+), 36 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2fd2b06879..5433dd907d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v814 \ No newline at end of file +v829 \ No newline at end of file diff --git a/card.go b/card.go index 28f83ad5fd..f17da5f0a9 100644 --- a/card.go +++ b/card.go @@ -282,6 +282,11 @@ func (p *CardListParams) AppendTo(body *form.Values, keyParts []string) { } } +type CardNetworks struct { + // The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. + Preferred string `json:"preferred"` +} + // You can store multiple cards on a customer in order to charge the customer // later. You can also store multiple debit cards on a recipient in order to // transfer to those cards later. @@ -359,7 +364,8 @@ type Card struct { // 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. Metadata map[string]string `json:"metadata"` // Cardholder name. - Name string `json:"name"` + Name string `json:"name"` + Networks *CardNetworks `json:"networks"` // String representing the object's type. Objects of the same type share the same value. Object string `json:"object"` // 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. diff --git a/checkout_session.go b/checkout_session.go index 305dc38104..c7e12f7b7b 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -120,7 +120,7 @@ const ( CheckoutSessionCustomerDetailsTaxExemptReverse CheckoutSessionCustomerDetailsTaxExempt = "reverse" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type CheckoutSessionCustomerDetailsTaxIDType string // List of values that CheckoutSessionCustomerDetailsTaxIDType can take @@ -170,6 +170,7 @@ const ( CheckoutSessionCustomerDetailsTaxIDTypeMYITN CheckoutSessionCustomerDetailsTaxIDType = "my_itn" CheckoutSessionCustomerDetailsTaxIDTypeMYSST CheckoutSessionCustomerDetailsTaxIDType = "my_sst" CheckoutSessionCustomerDetailsTaxIDTypeNOVAT CheckoutSessionCustomerDetailsTaxIDType = "no_vat" + CheckoutSessionCustomerDetailsTaxIDTypeNOVOEC CheckoutSessionCustomerDetailsTaxIDType = "no_voec" CheckoutSessionCustomerDetailsTaxIDTypeNZGST CheckoutSessionCustomerDetailsTaxIDType = "nz_gst" CheckoutSessionCustomerDetailsTaxIDTypePERUC CheckoutSessionCustomerDetailsTaxIDType = "pe_ruc" CheckoutSessionCustomerDetailsTaxIDTypePHTIN CheckoutSessionCustomerDetailsTaxIDType = "ph_tin" @@ -2148,7 +2149,7 @@ type CheckoutSessionCustomText struct { // The customer's tax IDs after a completed Checkout Session. type CheckoutSessionCustomerDetailsTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type CheckoutSessionCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/customer.go b/customer.go index 9ec45d005f..5de0690aa8 100644 --- a/customer.go +++ b/customer.go @@ -190,7 +190,7 @@ func (p *CustomerListParams) AddExpand(f string) { // The customer's tax IDs. type CustomerTaxIDDataParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` diff --git a/event.go b/event.go index 27e8db5d71..12fcae5ff4 100644 --- a/event.go +++ b/event.go @@ -90,6 +90,7 @@ const ( EventTypeFinancialConnectionsAccountDisconnected EventType = "financial_connections.account.disconnected" EventTypeFinancialConnectionsAccountReactivated EventType = "financial_connections.account.reactivated" EventTypeFinancialConnectionsAccountRefreshedBalance EventType = "financial_connections.account.refreshed_balance" + EventTypeFinancialConnectionsAccountRefreshedOwnership EventType = "financial_connections.account.refreshed_ownership" EventTypeFinancialConnectionsAccountRefreshedTransactions EventType = "financial_connections.account.refreshed_transactions" EventTypeIdentityVerificationSessionCanceled EventType = "identity.verification_session.canceled" EventTypeIdentityVerificationSessionCreated EventType = "identity.verification_session.created" diff --git a/invoice.go b/invoice.go index 0732e6ee75..cf73e7fda5 100644 --- a/invoice.go +++ b/invoice.go @@ -91,7 +91,7 @@ const ( InvoicePaymentSettingsPaymentMethodOptionsACSSDebitVerificationMethodMicrodeposits InvoicePaymentSettingsPaymentMethodOptionsACSSDebitVerificationMethod = "microdeposits" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type InvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure string // List of values that InvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure can take @@ -408,7 +408,7 @@ type InvoicePaymentSettingsPaymentMethodOptionsCardParams struct { // // For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). Installments *InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsParams `form:"installments"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` } @@ -667,7 +667,7 @@ type InvoiceUpcomingCustomerDetailsTaxParams struct { // The customer's tax IDs. type InvoiceUpcomingCustomerDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -860,7 +860,7 @@ type InvoiceUpcomingLinesCustomerDetailsTaxParams struct { // The customer's tax IDs. type InvoiceUpcomingLinesCustomerDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -1229,7 +1229,7 @@ type InvoiceCustomField struct { // The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated. type InvoiceCustomerTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type *TaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` @@ -1273,7 +1273,7 @@ type InvoicePaymentSettingsPaymentMethodOptionsCardInstallments struct { // If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent. type InvoicePaymentSettingsPaymentMethodOptionsCard struct { Installments *InvoicePaymentSettingsPaymentMethodOptionsCardInstallments `json:"installments"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure InvoicePaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` } type InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEUBankTransfer struct { diff --git a/invoicelineitem.go b/invoicelineitem.go index d9a9c53fce..61e0047c15 100644 --- a/invoicelineitem.go +++ b/invoicelineitem.go @@ -53,6 +53,8 @@ type InvoiceLineItem struct { Discounts []*Discount `json:"discounts"` // Unique identifier for the object. ID string `json:"id"` + // The ID of the invoice that contains this line item. + Invoice string `json:"invoice"` // The ID of the [invoice item](https://stripe.com/docs/api/invoiceitems) associated with this line item if any. InvoiceItem *InvoiceItem `json:"invoice_item"` // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. diff --git a/paymentintent.go b/paymentintent.go index 0b2c4ff8a2..71dad526ad 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -384,7 +384,7 @@ const ( PaymentIntentPaymentMethodOptionsCardRequestOvercaptureNever PaymentIntentPaymentMethodOptionsCardRequestOvercapture = "never" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure string // List of values that PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure can take @@ -1335,7 +1335,7 @@ type PaymentIntentPaymentMethodOptionsCardParams struct { RequestMulticapture *string `form:"request_multicapture"` // Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. RequestOvercapture *string `form:"request_overcapture"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` // When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). RequireCVCRecollection *bool `form:"require_cvc_recollection"` @@ -2085,8 +2085,7 @@ type PaymentIntentConfirmRadarOptionsParams struct { // return to the requires_confirmation state // after those actions are completed. Your server needs to then // explicitly re-confirm the PaymentIntent to initiate the next payment -// attempt. Read the [expanded documentation](https://stripe.com/docs/payments/payment-intents/web-manual) -// to learn more about manual confirmation. +// attempt. type PaymentIntentConfirmParams struct { Params `form:"*"` // Controls when the funds will be captured from the customer's account. @@ -2483,7 +2482,7 @@ type PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCodeQRCode struct { type PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCode struct { // The URL to the hosted Swish instructions page, which allows customers to view the QR code. HostedInstructionsURL string `json:"hosted_instructions_url"` - // The url for mobile redirect based auth + // The url for mobile redirect based auth (for internal use only and not typically available in standard API requests). MobileAuthURL string `json:"mobile_auth_url"` QRCode *PaymentIntentNextActionSwishHandleRedirectOrDisplayQRCodeQRCode `json:"qr_code"` } @@ -2724,7 +2723,7 @@ type PaymentIntentPaymentMethodOptionsCard struct { RequestMulticapture PaymentIntentPaymentMethodOptionsCardRequestMulticapture `json:"request_multicapture"` // Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. RequestOvercapture PaymentIntentPaymentMethodOptionsCardRequestOvercapture `json:"request_overcapture"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure PaymentIntentPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` // When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter). RequireCVCRecollection bool `json:"require_cvc_recollection"` diff --git a/paymentmethod.go b/paymentmethod.go index 62f8ad985d..4c9d182486 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -313,6 +313,12 @@ type PaymentMethodBoletoParams struct { TaxID *string `form:"tax_id"` } +// Contains information about card networks used to process the payment. +type PaymentMethodCardNetworksParams struct { + // The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. + Preferred *string `form:"preferred"` +} + // If this is a `card` PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format `card: {token: "tok_visa"}`. When providing a card number, you must meet the requirements for [PCI compliance](https://stripe.com/docs/security#validating-pci-compliance). We strongly recommend using Stripe.js instead of interacting with this API directly. type PaymentMethodCardParams struct { // The card's CVC. It is highly recommended to always include this value. @@ -321,6 +327,8 @@ type PaymentMethodCardParams struct { ExpMonth *int64 `form:"exp_month"` // Four-digit number representing the card's expiration year. ExpYear *int64 `form:"exp_year"` + // Contains information about card networks used to process the payment. + Networks *PaymentMethodCardNetworksParams `form:"networks"` // The card number, as a string without any separators. Number *string `form:"number"` // For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}. @@ -709,6 +717,8 @@ type PaymentMethodCard struct { Checks *PaymentMethodCardChecks `json:"checks"` // Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. Country string `json:"country"` + // The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future. + DisplayBrand string `json:"display_brand"` // Two-digit number representing the card's expiration month. ExpMonth int64 `json:"exp_month"` // Four-digit number representing the card's expiration year. diff --git a/setupintent.go b/setupintent.go index 39931a2cc6..b922c1d50e 100644 --- a/setupintent.go +++ b/setupintent.go @@ -155,7 +155,7 @@ const ( SetupIntentPaymentMethodOptionsCardNetworkVisa SetupIntentPaymentMethodOptionsCardNetwork = "visa" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type SetupIntentPaymentMethodOptionsCardRequestThreeDSecure string // List of values that SetupIntentPaymentMethodOptionsCardRequestThreeDSecure can take @@ -671,7 +671,7 @@ type SetupIntentPaymentMethodOptionsCardParams struct { MOTO *bool `form:"moto"` // Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time. Network *string `form:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` // If 3D Secure authentication was performed with a third-party provider, // the authentication details to use for this setup. @@ -1274,7 +1274,7 @@ type SetupIntentPaymentMethodOptionsCard struct { MandateOptions *SetupIntentPaymentMethodOptionsCardMandateOptions `json:"mandate_options"` // Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the setup intent. Can be only set confirm-time. Network SetupIntentPaymentMethodOptionsCardNetwork `json:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure SetupIntentPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` } type SetupIntentPaymentMethodOptionsLink struct { diff --git a/subscription.go b/subscription.go index 6b3668a404..471db004fd 100644 --- a/subscription.go +++ b/subscription.go @@ -110,7 +110,7 @@ const ( SubscriptionPaymentSettingsPaymentMethodOptionsCardNetworkVisa SubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork = "visa" ) -// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. +// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. type SubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure string // List of values that SubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure can take @@ -332,15 +332,15 @@ type SubscriptionParams struct { PauseCollection *SubscriptionPauseCollectionParams `form:"pause_collection"` // Only applies to subscriptions with `collection_method=charge_automatically`. // - // Use `allow_incomplete` to create subscriptions with `status=incomplete` if the first invoice cannot be paid. Creating subscriptions with this status allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. + // Use `allow_incomplete` to create Subscriptions with `status=incomplete` if the first invoice can't be paid. Creating Subscriptions with this status allows you to manage scenarios where additional customer actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication) for Billing to learn more. This is the default behavior. // - // Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the payment intent on the first invoice. This allows simpler management of scenarios where additional user actions are needed to pay a subscription's invoice. Such as failed payments, [SCA regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the payment intent is not confirmed within 23 hours subscriptions transition to `status=incomplete_expired`, which is a terminal state. + // Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the PaymentIntent on the first invoice. This allows simpler management of scenarios where additional customer actions are needed to pay a subscription's invoice, such as failed payments, [SCA regulation](https://stripe.com/docs/billing/migration/strong-customer-authentication), or collecting a mandate for a bank debit payment method. If the PaymentIntent is not confirmed within 23 hours Subscriptions transition to `status=incomplete_expired`, which is a terminal state. // - // Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. + // Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice can't be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further customer action is needed, this parameter doesn't create a Subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more. // - // `pending_if_incomplete` is only used with updates and cannot be passed when creating a subscription. + // `pending_if_incomplete` is only used with updates and cannot be passed when creating a Subscription. // - // Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first invoice status. + // Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status. PaymentBehavior *string `form:"payment_behavior"` // Payment settings to pass to invoices created by the subscription. PaymentSettings *SubscriptionPaymentSettingsParams `form:"payment_settings"` @@ -530,7 +530,7 @@ type SubscriptionPaymentSettingsPaymentMethodOptionsCardParams struct { MandateOptions *SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsParams `form:"mandate_options"` // Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time. Network *string `form:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure *string `form:"request_three_d_secure"` } @@ -805,7 +805,7 @@ type SubscriptionPaymentSettingsPaymentMethodOptionsCard struct { MandateOptions *SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptions `json:"mandate_options"` // Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time. Network SubscriptionPaymentSettingsPaymentMethodOptionsCardNetwork `json:"network"` - // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + // We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. RequestThreeDSecure SubscriptionPaymentSettingsPaymentMethodOptionsCardRequestThreeDSecure `json:"request_three_d_secure"` } type SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEUBankTransfer struct { diff --git a/tax_calculation.go b/tax_calculation.go index 25282d43de..23df443618 100644 --- a/tax_calculation.go +++ b/tax_calculation.go @@ -15,7 +15,7 @@ const ( TaxCalculationCustomerDetailsAddressSourceShipping TaxCalculationCustomerDetailsAddressSource = "shipping" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type TaxCalculationCustomerDetailsTaxIDType string // List of values that TaxCalculationCustomerDetailsTaxIDType can take @@ -65,6 +65,7 @@ const ( TaxCalculationCustomerDetailsTaxIDTypeMYITN TaxCalculationCustomerDetailsTaxIDType = "my_itn" TaxCalculationCustomerDetailsTaxIDTypeMYSST TaxCalculationCustomerDetailsTaxIDType = "my_sst" TaxCalculationCustomerDetailsTaxIDTypeNOVAT TaxCalculationCustomerDetailsTaxIDType = "no_vat" + TaxCalculationCustomerDetailsTaxIDTypeNOVOEC TaxCalculationCustomerDetailsTaxIDType = "no_voec" TaxCalculationCustomerDetailsTaxIDTypeNZGST TaxCalculationCustomerDetailsTaxIDType = "nz_gst" TaxCalculationCustomerDetailsTaxIDTypePERUC TaxCalculationCustomerDetailsTaxIDType = "pe_ruc" TaxCalculationCustomerDetailsTaxIDTypePHTIN TaxCalculationCustomerDetailsTaxIDType = "ph_tin" @@ -226,7 +227,7 @@ func (p *TaxCalculationListLineItemsParams) AddExpand(f string) { // The customer's tax IDs. Stripe Tax might consider a transaction with applicable tax IDs to be B2B, which might affect the tax calculation result. Stripe Tax doesn't validate tax IDs for correctness. type TaxCalculationCustomerDetailsTaxIDParams struct { - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -300,7 +301,7 @@ func (p *TaxCalculationParams) AddExpand(f string) { // The customer's tax IDs (for example, EU VAT numbers). type TaxCalculationCustomerDetailsTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type TaxCalculationCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/tax_transaction.go b/tax_transaction.go index f442c06b5c..7770a79b83 100644 --- a/tax_transaction.go +++ b/tax_transaction.go @@ -15,7 +15,7 @@ const ( TaxTransactionCustomerDetailsAddressSourceShipping TaxTransactionCustomerDetailsAddressSource = "shipping" ) -// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` +// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` type TaxTransactionCustomerDetailsTaxIDType string // List of values that TaxTransactionCustomerDetailsTaxIDType can take @@ -65,6 +65,7 @@ const ( TaxTransactionCustomerDetailsTaxIDTypeMYITN TaxTransactionCustomerDetailsTaxIDType = "my_itn" TaxTransactionCustomerDetailsTaxIDTypeMYSST TaxTransactionCustomerDetailsTaxIDType = "my_sst" TaxTransactionCustomerDetailsTaxIDTypeNOVAT TaxTransactionCustomerDetailsTaxIDType = "no_vat" + TaxTransactionCustomerDetailsTaxIDTypeNOVOEC TaxTransactionCustomerDetailsTaxIDType = "no_voec" TaxTransactionCustomerDetailsTaxIDTypeNZGST TaxTransactionCustomerDetailsTaxIDType = "nz_gst" TaxTransactionCustomerDetailsTaxIDTypePERUC TaxTransactionCustomerDetailsTaxIDType = "pe_ruc" TaxTransactionCustomerDetailsTaxIDTypePHTIN TaxTransactionCustomerDetailsTaxIDType = "ph_tin" @@ -301,7 +302,7 @@ func (p *TaxTransactionCreateReversalParams) AddMetadata(key string, value strin // The customer's tax IDs (for example, EU VAT numbers). type TaxTransactionCustomerDetailsTaxID struct { - // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + // The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` Type TaxTransactionCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` diff --git a/taxid.go b/taxid.go index e0785070c3..7da3931917 100644 --- a/taxid.go +++ b/taxid.go @@ -19,7 +19,7 @@ const ( TaxIDOwnerTypeSelf TaxIDOwnerType = "self" ) -// Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` +// Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` type TaxIDType string // List of values that TaxIDType can take @@ -69,6 +69,7 @@ const ( TaxIDTypeMYITN TaxIDType = "my_itn" TaxIDTypeMYSST TaxIDType = "my_sst" TaxIDTypeNOVAT TaxIDType = "no_vat" + TaxIDTypeNOVOEC TaxIDType = "no_voec" TaxIDTypeNZGST TaxIDType = "nz_gst" TaxIDTypePERUC TaxIDType = "pe_ruc" TaxIDTypePHTIN TaxIDType = "ph_tin" @@ -110,7 +111,7 @@ type TaxIDParams struct { Customer *string `form:"-"` // Included in URL // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -177,7 +178,7 @@ type TaxID struct { Object string `json:"object"` // The account or customer the tax ID belongs to. Owner *TaxIDOwner `json:"owner"` - // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + // Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` Type TaxIDType `json:"type"` // Value of the tax ID. Value string `json:"value"` From 70f690c944bc6312cc3d05fc0e0d696a766a9c18 Mon Sep 17 00:00:00 2001 From: Helen Ye Date: Thu, 15 Feb 2024 16:27:56 -0800 Subject: [PATCH 14/14] Bump version to 76.17.0 --- CHANGELOG.md | 7 +++++++ VERSION | 2 +- stripe.go | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58f95d22cd..d5c878783d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 76.17.0 - 2024-02-15 +* [#1812](https://github.com/stripe/stripe-go/pull/1812) Update generated code + * Add support for `Networks` on `Card`, `PaymentMethodCardParams`, and `TokenCardParams` + * Add support for new value `no_voec` on enums `CheckoutSessionCustomerDetailsTaxIdsType`, `InvoiceCustomerTaxIdsType`, `TaxCalculationCustomerDetailsTaxIdsType`, `TaxIdType`, and `TaxTransactionCustomerDetailsTaxIdsType` + * Add support for new value `financial_connections.account.refreshed_ownership` on enum `EventType` + * Add support for `DisplayBrand` on `PaymentMethodCard` + ## 76.16.0 - 2024-02-08 * [#1811](https://github.com/stripe/stripe-go/pull/1811) Update generated code * Add support for new value `velobank` on enums `ChargePaymentMethodDetailsP24Bank` and `PaymentMethodP24Bank` diff --git a/VERSION b/VERSION index a33a0bcf75..7bcd1b0538 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -76.16.0 +76.17.0 diff --git a/stripe.go b/stripe.go index de4e9d5884..8cd2253e22 100644 --- a/stripe.go +++ b/stripe.go @@ -1284,7 +1284,7 @@ func StringSlice(v []string) []*string { // // clientversion is the binding version -const clientversion = "76.16.0" +const clientversion = "76.17.0" // defaultHTTPTimeout is the default timeout on the http.Client used by the library. // This is chosen to be consistent with the other Stripe language libraries and