From 3d2c6d059ca85c8b28a78c62bbd0644cbb9b52c9 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Tue, 29 Oct 2024 09:39:44 -0700 Subject: [PATCH 1/3] Bump version to 80.2.1 --- CHANGELOG.md | 4 ++++ VERSION | 2 +- stripe.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8a7407680..11d8474359 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 80.2.1 - 2024-10-29 +* [#1940](https://github.com/stripe/stripe-go/pull/1940) Update webhook API version validation + - Update webhook event processing to accept events from any API version within the supported major release + ## 80.2.0 - 2024-10-09 * [#1929](https://github.com/stripe/stripe-go/pull/1929), [#1933](https://github.com/stripe/stripe-go/pull/1933) Remove rawrequests Post, Get, and Delete in favor of rawrequests.Client * The individual `rawrequests` functions for Post, Get, and Delete methods are removed in favor of the client model which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs. diff --git a/VERSION b/VERSION index ec7b97242e..8afe3ff971 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -80.2.0 +80.2.1 diff --git a/stripe.go b/stripe.go index 95b3b8a1ab..98c74b7b35 100644 --- a/stripe.go +++ b/stripe.go @@ -1386,7 +1386,7 @@ func StringSlice(v []string) []*string { // // clientversion is the binding version -const clientversion = "80.2.0" +const clientversion = "80.2.1" // 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 659b2675b23aa2ff47d176b6f1410c26ca3c3525 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:07:00 -0700 Subject: [PATCH 2/3] Update generated code (#1931) * Update generated code for v1268 * Update generated code for v1268 * Update generated code for v1268 * Update generated code for v1317 * Update generated code for v1318 * Update generated code for v1319 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- account.go | 80 +++++++++- accountsession.go | 40 +++-- api_version.go | 2 +- billing_creditbalancesummary.go | 20 +-- billing_creditbalancetransaction.go | 32 ++-- billing_creditgrant.go | 35 +++-- billing_meter.go | 2 + billingportal_configuration.go | 36 ++++- charge.go | 60 ++++++++ checkout_session.go | 173 ++++++++++++++++++++- confirmationtoken.go | 64 ++++++++ creditnote.go | 11 +- creditnotelineitem.go | 5 +- customer.go | 2 +- dispute.go | 167 +++++++++++++++++++- event.go | 2 + forwarding_request.go | 13 ++ invoice.go | 20 ++- invoicelineitem.go | 5 +- issuing_card.go | 2 +- loginlink.go | 2 +- loginlink/client.go | 4 +- mandate.go | 4 + paymentintent.go | 230 +++++++++++++++++++++++++++- paymentlink.go | 1 + paymentmethod.go | 99 +++++++++++- paymentmethodconfiguration.go | 51 +++++- paymentmethoddomain.go | 25 +++ person.go | 2 +- refund.go | 5 +- setupattempt.go | 4 + setupintent.go | 70 ++++++++- subscription.go | 9 +- tax_calculation.go | 35 ++++- tax_calculationlineitem.go | 1 + tax_registration.go | 190 +++++++++++++++++++++++ tax_transaction.go | 11 +- taxid.go | 12 +- taxrate.go | 22 +++ terminal_configuration.go | 21 +++ testhelpers/issuing/card/client.go | 16 ++ testhelpers_confirmationtoken.go | 35 ++++- testhelpersissuing_card.go | 12 ++ token/client.go | 4 +- treasury_financialaccount.go | 4 +- usagerecordsummary.go | 1 + 47 files changed, 1535 insertions(+), 108 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8f166ae2e0..c626f7dd81 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1268 \ No newline at end of file +v1319 \ No newline at end of file diff --git a/account.go b/account.go index 82aa837f20..088eef6f78 100644 --- a/account.go +++ b/account.go @@ -227,6 +227,8 @@ type AccountParams struct { // // By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/api#account_create_bank_account) or [card creation](https://stripe.com/api#account_create_card) APIs. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. ExternalAccount *AccountExternalAccountParams `form:"external_account"` + // A hash of account group type to tokens. These are account groups this account should be added to + Groups *AccountGroupsParams `form:"groups"` // Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. Individual *PersonParams `form:"individual"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -315,6 +317,12 @@ type AccountCapabilitiesAfterpayClearpayPaymentsParams struct { Requested *bool `form:"requested"` } +// The alma_payments capability. +type AccountCapabilitiesAlmaPaymentsParams 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 amazon_pay_payments capability. type AccountCapabilitiesAmazonPayPaymentsParams 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. @@ -435,6 +443,12 @@ type AccountCapabilitiesJPBankTransferPaymentsParams struct { Requested *bool `form:"requested"` } +// The kakao_pay_payments capability. +type AccountCapabilitiesKakaoPayPaymentsParams 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 klarna_payments capability. type AccountCapabilitiesKlarnaPaymentsParams 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. @@ -447,6 +461,12 @@ type AccountCapabilitiesKonbiniPaymentsParams struct { Requested *bool `form:"requested"` } +// The kr_card_payments capability. +type AccountCapabilitiesKrCardPaymentsParams 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 legacy_payments capability. type AccountCapabilitiesLegacyPaymentsParams 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. @@ -477,6 +497,12 @@ type AccountCapabilitiesMXBankTransferPaymentsParams struct { Requested *bool `form:"requested"` } +// The naver_pay_payments capability. +type AccountCapabilitiesNaverPayPaymentsParams 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 oxxo_payments capability. type AccountCapabilitiesOXXOPaymentsParams 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. @@ -489,6 +515,12 @@ type AccountCapabilitiesP24PaymentsParams struct { Requested *bool `form:"requested"` } +// The payco_payments capability. +type AccountCapabilitiesPaycoPaymentsParams 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 paynow_payments capability. type AccountCapabilitiesPayNowPaymentsParams 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. @@ -507,6 +539,12 @@ type AccountCapabilitiesRevolutPayPaymentsParams struct { Requested *bool `form:"requested"` } +// The samsung_pay_payments capability. +type AccountCapabilitiesSamsungPayPaymentsParams 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 sepa_bank_transfer_payments capability. type AccountCapabilitiesSEPABankTransferPaymentsParams 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. @@ -594,6 +632,8 @@ type AccountCapabilitiesParams struct { AffirmPayments *AccountCapabilitiesAffirmPaymentsParams `form:"affirm_payments"` // The afterpay_clearpay_payments capability. AfterpayClearpayPayments *AccountCapabilitiesAfterpayClearpayPaymentsParams `form:"afterpay_clearpay_payments"` + // The alma_payments capability. + AlmaPayments *AccountCapabilitiesAlmaPaymentsParams `form:"alma_payments"` // The amazon_pay_payments capability. AmazonPayPayments *AccountCapabilitiesAmazonPayPaymentsParams `form:"amazon_pay_payments"` // The au_becs_debit_payments capability. @@ -634,10 +674,14 @@ type AccountCapabilitiesParams struct { JCBPayments *AccountCapabilitiesJCBPaymentsParams `form:"jcb_payments"` // The jp_bank_transfer_payments capability. JPBankTransferPayments *AccountCapabilitiesJPBankTransferPaymentsParams `form:"jp_bank_transfer_payments"` + // The kakao_pay_payments capability. + KakaoPayPayments *AccountCapabilitiesKakaoPayPaymentsParams `form:"kakao_pay_payments"` // The klarna_payments capability. KlarnaPayments *AccountCapabilitiesKlarnaPaymentsParams `form:"klarna_payments"` // The konbini_payments capability. KonbiniPayments *AccountCapabilitiesKonbiniPaymentsParams `form:"konbini_payments"` + // The kr_card_payments capability. + KrCardPayments *AccountCapabilitiesKrCardPaymentsParams `form:"kr_card_payments"` // The legacy_payments capability. LegacyPayments *AccountCapabilitiesLegacyPaymentsParams `form:"legacy_payments"` // The link_payments capability. @@ -648,16 +692,22 @@ type AccountCapabilitiesParams struct { MultibancoPayments *AccountCapabilitiesMultibancoPaymentsParams `form:"multibanco_payments"` // The mx_bank_transfer_payments capability. MXBankTransferPayments *AccountCapabilitiesMXBankTransferPaymentsParams `form:"mx_bank_transfer_payments"` + // The naver_pay_payments capability. + NaverPayPayments *AccountCapabilitiesNaverPayPaymentsParams `form:"naver_pay_payments"` // The oxxo_payments capability. OXXOPayments *AccountCapabilitiesOXXOPaymentsParams `form:"oxxo_payments"` // The p24_payments capability. P24Payments *AccountCapabilitiesP24PaymentsParams `form:"p24_payments"` + // The payco_payments capability. + PaycoPayments *AccountCapabilitiesPaycoPaymentsParams `form:"payco_payments"` // The paynow_payments capability. PayNowPayments *AccountCapabilitiesPayNowPaymentsParams `form:"paynow_payments"` // The promptpay_payments capability. PromptPayPayments *AccountCapabilitiesPromptPayPaymentsParams `form:"promptpay_payments"` // The revolut_pay_payments capability. RevolutPayPayments *AccountCapabilitiesRevolutPayPaymentsParams `form:"revolut_pay_payments"` + // The samsung_pay_payments capability. + SamsungPayPayments *AccountCapabilitiesSamsungPayPaymentsParams `form:"samsung_pay_payments"` // The sepa_bank_transfer_payments capability. SEPABankTransferPayments *AccountCapabilitiesSEPABankTransferPaymentsParams `form:"sepa_bank_transfer_payments"` // The sepa_debit_payments capability. @@ -882,6 +932,12 @@ func (p *AccountExternalAccountParams) AddMetadata(key string, value string) { p.Metadata[key] = value } +// A hash of account group type to tokens. These are account groups this account should be added to +type AccountGroupsParams struct { + // The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + PaymentsPricing *string `form:"payments_pricing"` +} + // Settings specific to Bacs Direct Debit payments. type AccountSettingsBACSDebitPaymentsParams struct { // The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. @@ -1139,6 +1195,8 @@ type AccountCapabilities struct { AffirmPayments AccountCapabilityStatus `json:"affirm_payments"` // The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges. AfterpayClearpayPayments AccountCapabilityStatus `json:"afterpay_clearpay_payments"` + // The status of the Alma capability of the account, or whether the account can directly process Alma payments. + AlmaPayments AccountCapabilityStatus `json:"alma_payments"` // The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments. AmazonPayPayments AccountCapabilityStatus `json:"amazon_pay_payments"` // The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges. @@ -1179,10 +1237,14 @@ type AccountCapabilities struct { JCBPayments AccountCapabilityStatus `json:"jcb_payments"` // The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges. JPBankTransferPayments AccountCapabilityStatus `json:"jp_bank_transfer_payments"` + // The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments. + KakaoPayPayments AccountCapabilityStatus `json:"kakao_pay_payments"` // The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges. KlarnaPayments AccountCapabilityStatus `json:"klarna_payments"` // The status of the konbini payments capability of the account, or whether the account can directly process konbini charges. KonbiniPayments AccountCapabilityStatus `json:"konbini_payments"` + // The status of the KrCard capability of the account, or whether the account can directly process KrCard payments. + KrCardPayments AccountCapabilityStatus `json:"kr_card_payments"` // The status of the legacy payments capability of the account. LegacyPayments AccountCapabilityStatus `json:"legacy_payments"` // The status of the link_payments capability of the account, or whether the account can directly process Link charges. @@ -1193,16 +1255,22 @@ type AccountCapabilities struct { MultibancoPayments AccountCapabilityStatus `json:"multibanco_payments"` // The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges. MXBankTransferPayments AccountCapabilityStatus `json:"mx_bank_transfer_payments"` + // The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments. + NaverPayPayments AccountCapabilityStatus `json:"naver_pay_payments"` // The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges. OXXOPayments AccountCapabilityStatus `json:"oxxo_payments"` // The status of the P24 payments capability of the account, or whether the account can directly process P24 charges. P24Payments AccountCapabilityStatus `json:"p24_payments"` + // The status of the Payco capability of the account, or whether the account can directly process Payco payments. + PaycoPayments AccountCapabilityStatus `json:"payco_payments"` // The status of the paynow payments capability of the account, or whether the account can directly process paynow charges. PayNowPayments AccountCapabilityStatus `json:"paynow_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. RevolutPayPayments AccountCapabilityStatus `json:"revolut_pay_payments"` + // The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments. + SamsungPayPayments AccountCapabilityStatus `json:"samsung_pay_payments"` // The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges. SEPABankTransferPayments AccountCapabilityStatus `json:"sepa_bank_transfer_payments"` // The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges. @@ -1386,6 +1454,12 @@ type AccountFutureRequirements struct { PendingVerification []string `json:"pending_verification"` } +// The groups associated with the account. +type AccountGroups struct { + // The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + PaymentsPricing string `json:"payments_pricing"` +} + // Fields that are due and can be satisfied by providing the corresponding alternative fields instead. type AccountRequirementsAlternative struct { // Fields that can be provided to satisfy all fields in `original_fields_due`. @@ -1561,7 +1635,7 @@ type Account struct { // The business type. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. BusinessType AccountBusinessType `json:"business_type"` Capabilities *AccountCapabilities `json:"capabilities"` - // Whether the account can create live charges. + // Whether the account can process charges. ChargesEnabled bool `json:"charges_enabled"` Company *AccountCompany `json:"company"` Controller *AccountController `json:"controller"` @@ -1579,6 +1653,8 @@ type Account struct { // External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true. ExternalAccounts *AccountExternalAccountList `json:"external_accounts"` FutureRequirements *AccountFutureRequirements `json:"future_requirements"` + // The groups associated with the account. + Groups *AccountGroups `json:"groups"` // Unique identifier for the object. ID string `json:"id"` // This is an object representing a person associated with a Stripe account. @@ -1591,7 +1667,7 @@ type Account struct { Metadata map[string]string `json:"metadata"` // String representing the object's type. Objects of the same type share the same value. Object string `json:"object"` - // Whether Stripe can send payouts to this account. + // Whether the funds in this account can be paid out. PayoutsEnabled bool `json:"payouts_enabled"` Requirements *AccountRequirements `json:"requirements"` // Options for customizing how the account functions within Stripe. diff --git a/accountsession.go b/accountsession.go index 5f98c04261..02e690e4dd 100644 --- a/accountsession.go +++ b/accountsession.go @@ -8,7 +8,9 @@ package stripe // The list of features enabled in the embedded component. type AccountSessionComponentsAccountManagementFeaturesParams struct { - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"` + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection *bool `form:"external_account_collection"` } @@ -22,7 +24,9 @@ type AccountSessionComponentsAccountManagementParams struct { // The list of features enabled in the embedded component. type AccountSessionComponentsAccountOnboardingFeaturesParams struct { - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"` + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection *bool `form:"external_account_collection"` } @@ -36,9 +40,11 @@ type AccountSessionComponentsAccountOnboardingParams struct { // The list of features enabled in the embedded component. type AccountSessionComponentsBalancesFeaturesParams struct { + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"` // Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. EditPayoutSchedule *bool `form:"edit_payout_schedule"` - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection *bool `form:"external_account_collection"` // Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. InstantPayouts *bool `form:"instant_payouts"` @@ -67,7 +73,9 @@ type AccountSessionComponentsDocumentsParams struct { // The list of features enabled in the embedded component. type AccountSessionComponentsNotificationBannerFeaturesParams struct { - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"` + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection *bool `form:"external_account_collection"` } @@ -121,9 +129,11 @@ type AccountSessionComponentsPaymentsParams struct { // The list of features enabled in the embedded component. type AccountSessionComponentsPayoutsFeaturesParams struct { + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication *bool `form:"disable_stripe_user_authentication"` // Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. EditPayoutSchedule *bool `form:"edit_payout_schedule"` - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection *bool `form:"external_account_collection"` // Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. InstantPayouts *bool `form:"instant_payouts"` @@ -215,7 +225,9 @@ func (p *AccountSessionParams) AddExpand(f string) { } type AccountSessionComponentsAccountManagementFeatures struct { - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"` + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection bool `json:"external_account_collection"` } type AccountSessionComponentsAccountManagement struct { @@ -224,7 +236,9 @@ type AccountSessionComponentsAccountManagement struct { Features *AccountSessionComponentsAccountManagementFeatures `json:"features"` } type AccountSessionComponentsAccountOnboardingFeatures struct { - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"` + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection bool `json:"external_account_collection"` } type AccountSessionComponentsAccountOnboarding struct { @@ -233,9 +247,11 @@ type AccountSessionComponentsAccountOnboarding struct { Features *AccountSessionComponentsAccountOnboardingFeatures `json:"features"` } type AccountSessionComponentsBalancesFeatures struct { + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"` // Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. EditPayoutSchedule bool `json:"edit_payout_schedule"` - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection bool `json:"external_account_collection"` // Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. InstantPayouts bool `json:"instant_payouts"` @@ -254,7 +270,9 @@ type AccountSessionComponentsDocuments struct { Features *AccountSessionComponentsDocumentsFeatures `json:"features"` } type AccountSessionComponentsNotificationBannerFeatures struct { - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"` + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection bool `json:"external_account_collection"` } type AccountSessionComponentsNotificationBanner struct { @@ -293,9 +311,11 @@ type AccountSessionComponentsPayments struct { Features *AccountSessionComponentsPaymentsFeatures `json:"features"` } type AccountSessionComponentsPayoutsFeatures struct { + // Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + DisableStripeUserAuthentication bool `json:"disable_stripe_user_authentication"` // Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. EditPayoutSchedule bool `json:"edit_payout_schedule"` - // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + // Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. ExternalAccountCollection bool `json:"external_account_collection"` // Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. InstantPayouts bool `json:"instant_payouts"` diff --git a/api_version.go b/api_version.go index 667ebc2877..839b7f9f2f 100644 --- a/api_version.go +++ b/api_version.go @@ -7,5 +7,5 @@ package stripe const ( - apiVersion string = "2024-09-30.acacia" + apiVersion string = "2024-10-28.acacia" ) diff --git a/billing_creditbalancesummary.go b/billing_creditbalancesummary.go index 556cdc060a..a26bfe9b3d 100644 --- a/billing_creditbalancesummary.go +++ b/billing_creditbalancesummary.go @@ -6,7 +6,7 @@ package stripe -// The type of this amount. We currently only support `monetary` credits. +// The type of this amount. We currently only support `monetary` billing credits. type BillingCreditBalanceSummaryBalanceAvailableBalanceType string // List of values that BillingCreditBalanceSummaryBalanceAvailableBalanceType can take @@ -14,7 +14,7 @@ const ( BillingCreditBalanceSummaryBalanceAvailableBalanceTypeMonetary BillingCreditBalanceSummaryBalanceAvailableBalanceType = "monetary" ) -// The type of this amount. We currently only support `monetary` credits. +// The type of this amount. We currently only support `monetary` billing credits. type BillingCreditBalanceSummaryBalanceLedgerBalanceType string // List of values that BillingCreditBalanceSummaryBalanceLedgerBalanceType can take @@ -22,7 +22,7 @@ const ( BillingCreditBalanceSummaryBalanceLedgerBalanceTypeMonetary BillingCreditBalanceSummaryBalanceLedgerBalanceType = "monetary" ) -// The credit applicability scope for which to fetch balance summary. +// The billing credit applicability scope for which to fetch credit balance summary. type BillingCreditBalanceSummaryFilterApplicabilityScopeParams struct { // The price type to which credit grants can apply to. We currently only support `metered` price type. PriceType *string `form:"price_type"` @@ -30,9 +30,9 @@ type BillingCreditBalanceSummaryFilterApplicabilityScopeParams struct { // The filter criteria for the credit balance summary. type BillingCreditBalanceSummaryFilterParams struct { - // The credit applicability scope for which to fetch balance summary. + // The billing credit applicability scope for which to fetch credit balance summary. ApplicabilityScope *BillingCreditBalanceSummaryFilterApplicabilityScopeParams `form:"applicability_scope"` - // The credit grant for which to fetch balance summary. + // The credit grant for which to fetch credit balance summary. CreditGrant *string `form:"credit_grant"` // Specify the type of this filter. Type *string `form:"type"` @@ -64,7 +64,7 @@ type BillingCreditBalanceSummaryBalanceAvailableBalanceMonetary struct { type BillingCreditBalanceSummaryBalanceAvailableBalance struct { // The monetary amount. Monetary *BillingCreditBalanceSummaryBalanceAvailableBalanceMonetary `json:"monetary"` - // The type of this amount. We currently only support `monetary` credits. + // The type of this amount. We currently only support `monetary` billing credits. Type BillingCreditBalanceSummaryBalanceAvailableBalanceType `json:"type"` } @@ -78,20 +78,20 @@ type BillingCreditBalanceSummaryBalanceLedgerBalanceMonetary struct { type BillingCreditBalanceSummaryBalanceLedgerBalance struct { // The monetary amount. Monetary *BillingCreditBalanceSummaryBalanceLedgerBalanceMonetary `json:"monetary"` - // The type of this amount. We currently only support `monetary` credits. + // The type of this amount. We currently only support `monetary` billing credits. Type BillingCreditBalanceSummaryBalanceLedgerBalanceType `json:"type"` } -// The credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. +// The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. type BillingCreditBalanceSummaryBalance struct { AvailableBalance *BillingCreditBalanceSummaryBalanceAvailableBalance `json:"available_balance"` LedgerBalance *BillingCreditBalanceSummaryBalanceLedgerBalance `json:"ledger_balance"` } -// Indicates the credit balance for credits granted to a customer. +// Indicates the billing credit balance for billing credits granted to a customer. type BillingCreditBalanceSummary struct { APIResource - // The credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. + // The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. Balances []*BillingCreditBalanceSummaryBalance `json:"balances"` // The customer the balance is for. Customer *Customer `json:"customer"` diff --git a/billing_creditbalancetransaction.go b/billing_creditbalancetransaction.go index 3087f0b928..746ef411a8 100644 --- a/billing_creditbalancetransaction.go +++ b/billing_creditbalancetransaction.go @@ -8,7 +8,7 @@ package stripe import "encoding/json" -// The type of this amount. We currently only support `monetary` credits. +// The type of this amount. We currently only support `monetary` billing credits. type BillingCreditBalanceTransactionCreditAmountType string // List of values that BillingCreditBalanceTransactionCreditAmountType can take @@ -24,7 +24,7 @@ const ( BillingCreditBalanceTransactionCreditTypeCreditsGranted BillingCreditBalanceTransactionCreditType = "credits_granted" ) -// The type of this amount. We currently only support `monetary` credits. +// The type of this amount. We currently only support `monetary` billing credits. type BillingCreditBalanceTransactionDebitAmountType string // List of values that BillingCreditBalanceTransactionDebitAmountType can take @@ -42,7 +42,7 @@ const ( BillingCreditBalanceTransactionDebitTypeCreditsVoided BillingCreditBalanceTransactionDebitType = "credits_voided" ) -// The type of balance transaction (credit or debit). +// The type of credit balance transaction (credit or debit). type BillingCreditBalanceTransactionType string // List of values that BillingCreditBalanceTransactionType can take @@ -89,11 +89,11 @@ type BillingCreditBalanceTransactionCreditAmountMonetary struct { type BillingCreditBalanceTransactionCreditAmount struct { // The monetary amount. Monetary *BillingCreditBalanceTransactionCreditAmountMonetary `json:"monetary"` - // The type of this amount. We currently only support `monetary` credits. + // The type of this amount. We currently only support `monetary` billing credits. Type BillingCreditBalanceTransactionCreditAmountType `json:"type"` } -// Credit details for this balance transaction. Only present if type is `credit`. +// Credit details for this credit balance transaction. Only present if type is `credit`. type BillingCreditBalanceTransactionCredit struct { Amount *BillingCreditBalanceTransactionCreditAmount `json:"amount"` // The type of credit transaction. @@ -110,22 +110,22 @@ type BillingCreditBalanceTransactionDebitAmountMonetary struct { type BillingCreditBalanceTransactionDebitAmount struct { // The monetary amount. Monetary *BillingCreditBalanceTransactionDebitAmountMonetary `json:"monetary"` - // The type of this amount. We currently only support `monetary` credits. + // The type of this amount. We currently only support `monetary` billing credits. Type BillingCreditBalanceTransactionDebitAmountType `json:"type"` } -// Details of how the credits were applied to an invoice. Only present if `type` is `credits_applied`. +// Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`. type BillingCreditBalanceTransactionDebitCreditsApplied struct { - // The invoice to which the credits were applied. + // The invoice to which the billing credits were applied. Invoice *Invoice `json:"invoice"` - // The invoice line item to which the credits were applied. + // The invoice line item to which the billing credits were applied. InvoiceLineItem string `json:"invoice_line_item"` } -// Debit details for this balance transaction. Only present if type is `debit`. +// Debit details for this credit balance transaction. Only present if type is `debit`. type BillingCreditBalanceTransactionDebit struct { Amount *BillingCreditBalanceTransactionDebitAmount `json:"amount"` - // Details of how the credits were applied to an invoice. Only present if `type` is `credits_applied`. + // Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`. CreditsApplied *BillingCreditBalanceTransactionDebitCreditsApplied `json:"credits_applied"` // The type of debit transaction. Type BillingCreditBalanceTransactionDebitType `json:"type"` @@ -136,13 +136,13 @@ type BillingCreditBalanceTransaction struct { APIResource // Time at which the object was created. Measured in seconds since the Unix epoch. Created int64 `json:"created"` - // Credit details for this balance transaction. Only present if type is `credit`. + // Credit details for this credit balance transaction. Only present if type is `credit`. Credit *BillingCreditBalanceTransactionCredit `json:"credit"` - // The credit grant associated with this balance transaction. + // The credit grant associated with this credit balance transaction. CreditGrant *BillingCreditGrant `json:"credit_grant"` - // Debit details for this balance transaction. Only present if type is `debit`. + // Debit details for this credit balance transaction. Only present if type is `debit`. Debit *BillingCreditBalanceTransactionDebit `json:"debit"` - // The effective time of this balance transaction. + // The effective time of this credit balance transaction. EffectiveAt int64 `json:"effective_at"` // Unique identifier for the object. ID string `json:"id"` @@ -152,7 +152,7 @@ type BillingCreditBalanceTransaction struct { Object string `json:"object"` // ID of the test clock this credit balance transaction belongs to. TestClock *TestHelpersTestClock `json:"test_clock"` - // The type of balance transaction (credit or debit). + // The type of credit balance transaction (credit or debit). Type BillingCreditBalanceTransactionType `json:"type"` } diff --git a/billing_creditgrant.go b/billing_creditgrant.go index 193bb027c8..9644869a0d 100644 --- a/billing_creditgrant.go +++ b/billing_creditgrant.go @@ -8,7 +8,7 @@ package stripe import "encoding/json" -// The type of this amount. We currently only support `monetary` credits. +// The type of this amount. We currently only support `monetary` billing credits. type BillingCreditGrantAmountType string // List of values that BillingCreditGrantAmountType can take @@ -16,7 +16,7 @@ const ( BillingCreditGrantAmountTypeMonetary BillingCreditGrantAmountType = "monetary" ) -// The price type to which credit grants can apply to. We currently only support `metered` price type. +// The price type to which credit grants can apply to. We currently only support `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. type BillingCreditGrantApplicabilityConfigScopePriceType string // List of values that BillingCreditGrantApplicabilityConfigScopePriceType can take @@ -24,7 +24,7 @@ const ( BillingCreditGrantApplicabilityConfigScopePriceTypeMetered BillingCreditGrantApplicabilityConfigScopePriceType = "metered" ) -// The category of this credit grant. +// The category of this credit grant. This is for tracking purposes and will not be displayed to the customer. type BillingCreditGrantCategory string // List of values that BillingCreditGrantCategory can take @@ -59,7 +59,7 @@ type BillingCreditGrantAmountMonetaryParams struct { type BillingCreditGrantAmountParams struct { // The monetary amount. Monetary *BillingCreditGrantAmountMonetaryParams `form:"monetary"` - // Specify the type of this amount. We currently only support `monetary` credits. + // Specify the type of this amount. We currently only support `monetary` billing credits. Type *string `form:"type"` } @@ -84,17 +84,17 @@ type BillingCreditGrantParams struct { ApplicabilityConfig *BillingCreditGrantApplicabilityConfigParams `form:"applicability_config"` // The category of this credit grant. Category *string `form:"category"` - // Id of the customer to whom the credit should be granted. + // ID of the customer to whom the billing credits should be granted. Customer *string `form:"customer"` - // The time when the credit becomes effective i.e when it is eligible to be used. Defaults to the current timestamp if not specified. + // The time when the billing credits become effective i.e when they are eligible to be used. Defaults to the current timestamp if not specified. EffectiveAt *int64 `form:"effective_at"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // The time when the credit created by this credit grant will expire. If set to empty, the credit will never expire. + // The time when the billing credits created by this credit grant will expire. If set to empty, the billing credits will never expire. ExpiresAt *int64 `form:"expires_at"` // Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (ex: cost basis) in a structured format. Metadata map[string]string `form:"metadata"` - // A descriptive name shown in dashboard and on invoices. + // A descriptive name shown in dashboard. Name *string `form:"name"` } @@ -146,31 +146,34 @@ type BillingCreditGrantAmountMonetary struct { type BillingCreditGrantAmount struct { // The monetary amount. Monetary *BillingCreditGrantAmountMonetary `json:"monetary"` - // The type of this amount. We currently only support `monetary` credits. + // The type of this amount. We currently only support `monetary` billing credits. Type BillingCreditGrantAmountType `json:"type"` } type BillingCreditGrantApplicabilityConfigScope struct { - // The price type to which credit grants can apply to. We currently only support `metered` price type. + // The price type to which credit grants can apply to. We currently only support `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. PriceType BillingCreditGrantApplicabilityConfigScopePriceType `json:"price_type"` } type BillingCreditGrantApplicabilityConfig struct { Scope *BillingCreditGrantApplicabilityConfigScope `json:"scope"` } -// A credit grant is a resource that records a grant of some credit to a customer. +// A credit grant is an API resource that documents the allocation of some billing credits to a customer. +// +// Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits) +// end type BillingCreditGrant struct { APIResource Amount *BillingCreditGrantAmount `json:"amount"` ApplicabilityConfig *BillingCreditGrantApplicabilityConfig `json:"applicability_config"` - // The category of this credit grant. + // The category of this credit grant. This is for tracking purposes and will not be displayed to the customer. Category BillingCreditGrantCategory `json:"category"` // Time at which the object was created. Measured in seconds since the Unix epoch. Created int64 `json:"created"` - // Id of the customer to whom the credit was granted. + // ID of the customer to whom the billing credits are granted. Customer *Customer `json:"customer"` - // The time when the credit becomes effective i.e when it is eligible to be used. + // The time when the billing credits become effective i.e when they are eligible to be used. EffectiveAt int64 `json:"effective_at"` - // The time when the credit will expire. If not present, the credit will never expire. + // The time when the billing credits will expire. If not present, the billing credits will never expire. ExpiresAt int64 `json:"expires_at"` // Unique identifier for the object. ID string `json:"id"` @@ -178,7 +181,7 @@ type BillingCreditGrant struct { Livemode bool `json:"livemode"` // 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"` - // A descriptive name shown in dashboard and on invoices. + // A descriptive name shown in dashboard. Name string `json:"name"` // String representing the object's type. Objects of the same type share the same value. Object string `json:"object"` diff --git a/billing_meter.go b/billing_meter.go index 4cfb6ad936..3cb96df3bd 100644 --- a/billing_meter.go +++ b/billing_meter.go @@ -145,6 +145,8 @@ type BillingMeterValueSettings struct { } // A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make. +// +// Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) type BillingMeter struct { APIResource // Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/billingportal_configuration.go b/billingportal_configuration.go index 7b535dabf7..e50cd657a6 100644 --- a/billingportal_configuration.go +++ b/billingportal_configuration.go @@ -75,6 +75,15 @@ const ( BillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehaviorNone BillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehavior = "none" ) +// The type of condition. +type BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionType string + +// List of values that BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionType can take +const ( + BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionTypeDecreasingItemAmount BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionType = "decreasing_item_amount" + BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionTypeShorteningInterval BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionType = "shortening_interval" +) + // Returns a list of configurations that describe the functionality of the customer portal. type BillingPortalConfigurationListParams struct { ListParams `form:"*"` @@ -149,6 +158,18 @@ type BillingPortalConfigurationFeaturesSubscriptionUpdateProductParams struct { Product *string `form:"product"` } +// List of conditions. When any condition is true, the update will be scheduled at the end of the current period. +type BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionParams struct { + // The type of condition. + Type *string `form:"type"` +} + +// Setting to control when an update should be scheduled at the end of the period instead of applying immediately. +type BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndParams struct { + // List of conditions. When any condition is true, the update will be scheduled at the end of the current period. + Conditions []*BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionParams `form:"conditions"` +} + // Information about updating subscriptions in the portal. type BillingPortalConfigurationFeaturesSubscriptionUpdateParams struct { // The types of subscription updates that are supported. When empty, subscriptions are not updateable. @@ -159,6 +180,8 @@ type BillingPortalConfigurationFeaturesSubscriptionUpdateParams struct { Products []*BillingPortalConfigurationFeaturesSubscriptionUpdateProductParams `form:"products"` // Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. ProrationBehavior *string `form:"proration_behavior"` + // Setting to control when an update should be scheduled at the end of the period instead of applying immediately. + ScheduleAtPeriodEnd *BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndParams `form:"schedule_at_period_end"` } // Information about the features available in the portal. @@ -261,6 +284,16 @@ type BillingPortalConfigurationFeaturesSubscriptionUpdateProduct struct { // The product ID. Product string `json:"product"` } + +// List of conditions. When any condition is true, an update will be scheduled at the end of the current period. +type BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition struct { + // The type of condition. + Type BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndConditionType `json:"type"` +} +type BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEnd struct { + // List of conditions. When any condition is true, an update will be scheduled at the end of the current period. + Conditions []*BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEndCondition `json:"conditions"` +} type BillingPortalConfigurationFeaturesSubscriptionUpdate struct { // The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable. DefaultAllowedUpdates []BillingPortalConfigurationFeaturesSubscriptionUpdateDefaultAllowedUpdate `json:"default_allowed_updates"` @@ -269,7 +302,8 @@ type BillingPortalConfigurationFeaturesSubscriptionUpdate struct { // The list of up to 10 products that support subscription updates. Products []*BillingPortalConfigurationFeaturesSubscriptionUpdateProduct `json:"products"` // Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation. - ProrationBehavior BillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehavior `json:"proration_behavior"` + ProrationBehavior BillingPortalConfigurationFeaturesSubscriptionUpdateProrationBehavior `json:"proration_behavior"` + ScheduleAtPeriodEnd *BillingPortalConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEnd `json:"schedule_at_period_end"` } type BillingPortalConfigurationFeatures struct { CustomerUpdate *BillingPortalConfigurationFeaturesCustomerUpdate `json:"customer_update"` diff --git a/charge.go b/charge.go index 0b0cb25bbc..bb260328d0 100644 --- a/charge.go +++ b/charge.go @@ -241,6 +241,35 @@ const ( ChargePaymentMethodDetailsKonbiniStoreChainSeicomart ChargePaymentMethodDetailsKonbiniStoreChain = "seicomart" ) +// The local credit or debit card brand. +type ChargePaymentMethodDetailsKrCardBrand string + +// List of values that ChargePaymentMethodDetailsKrCardBrand can take +const ( + ChargePaymentMethodDetailsKrCardBrandBc ChargePaymentMethodDetailsKrCardBrand = "bc" + ChargePaymentMethodDetailsKrCardBrandCiti ChargePaymentMethodDetailsKrCardBrand = "citi" + ChargePaymentMethodDetailsKrCardBrandHana ChargePaymentMethodDetailsKrCardBrand = "hana" + ChargePaymentMethodDetailsKrCardBrandHyundai ChargePaymentMethodDetailsKrCardBrand = "hyundai" + ChargePaymentMethodDetailsKrCardBrandJeju ChargePaymentMethodDetailsKrCardBrand = "jeju" + ChargePaymentMethodDetailsKrCardBrandJeonbuk ChargePaymentMethodDetailsKrCardBrand = "jeonbuk" + ChargePaymentMethodDetailsKrCardBrandKakaobank ChargePaymentMethodDetailsKrCardBrand = "kakaobank" + ChargePaymentMethodDetailsKrCardBrandKbank ChargePaymentMethodDetailsKrCardBrand = "kbank" + ChargePaymentMethodDetailsKrCardBrandKdbbank ChargePaymentMethodDetailsKrCardBrand = "kdbbank" + ChargePaymentMethodDetailsKrCardBrandKookmin ChargePaymentMethodDetailsKrCardBrand = "kookmin" + ChargePaymentMethodDetailsKrCardBrandKwangju ChargePaymentMethodDetailsKrCardBrand = "kwangju" + ChargePaymentMethodDetailsKrCardBrandLotte ChargePaymentMethodDetailsKrCardBrand = "lotte" + ChargePaymentMethodDetailsKrCardBrandMg ChargePaymentMethodDetailsKrCardBrand = "mg" + ChargePaymentMethodDetailsKrCardBrandNh ChargePaymentMethodDetailsKrCardBrand = "nh" + ChargePaymentMethodDetailsKrCardBrandPost ChargePaymentMethodDetailsKrCardBrand = "post" + ChargePaymentMethodDetailsKrCardBrandSamsung ChargePaymentMethodDetailsKrCardBrand = "samsung" + ChargePaymentMethodDetailsKrCardBrandSavingsbank ChargePaymentMethodDetailsKrCardBrand = "savingsbank" + ChargePaymentMethodDetailsKrCardBrandShinhan ChargePaymentMethodDetailsKrCardBrand = "shinhan" + ChargePaymentMethodDetailsKrCardBrandShinhyup ChargePaymentMethodDetailsKrCardBrand = "shinhyup" + ChargePaymentMethodDetailsKrCardBrandSuhyup ChargePaymentMethodDetailsKrCardBrand = "suhyup" + ChargePaymentMethodDetailsKrCardBrandTossbank ChargePaymentMethodDetailsKrCardBrand = "tossbank" + ChargePaymentMethodDetailsKrCardBrandWoori ChargePaymentMethodDetailsKrCardBrand = "woori" +) + // An array of conditions that are covered for the transaction, if applicable. type ChargePaymentMethodDetailsPaypalSellerProtectionDisputeCategory string @@ -650,6 +679,7 @@ type ChargePaymentMethodDetailsAlipay struct { // Transaction ID of this particular Alipay transaction. TransactionID string `json:"transaction_id"` } +type ChargePaymentMethodDetailsAlma struct{} type ChargePaymentMethodDetailsAmazonPay struct{} type ChargePaymentMethodDetailsAUBECSDebit struct { // Bank-State-Branch number of the bank account. @@ -1067,6 +1097,10 @@ type ChargePaymentMethodDetailsInteracPresent struct { // The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) Issuer string `json:"issuer"` } +type ChargePaymentMethodDetailsKakaoPay struct { + // A unique identifier for the buyer as determined by the local payment processor. + BuyerID string `json:"buyer_id"` +} // The payer's address type ChargePaymentMethodDetailsKlarnaPayerDetailsAddress struct { @@ -1099,6 +1133,14 @@ type ChargePaymentMethodDetailsKonbini struct { // If the payment succeeded, this contains the details of the convenience store where the payment was completed. Store *ChargePaymentMethodDetailsKonbiniStore `json:"store"` } +type ChargePaymentMethodDetailsKrCard struct { + // The local credit or debit card brand. + Brand ChargePaymentMethodDetailsKrCardBrand `json:"brand"` + // A unique identifier for the buyer as determined by the local payment processor. + BuyerID string `json:"buyer_id"` + // The last four digits of the card. This may not be present for American Express cards. + Last4 string `json:"last4"` +} type ChargePaymentMethodDetailsLink struct { // Two-letter ISO code representing the funding source country beneath the Link payment. // You could use this attribute to get a sense of international fees. @@ -1128,6 +1170,10 @@ type ChargePaymentMethodDetailsMultibanco struct { // Reference number associated with this Multibanco payment. Reference string `json:"reference"` } +type ChargePaymentMethodDetailsNaverPay struct { + // A unique identifier for the buyer as determined by the local payment processor. + BuyerID string `json:"buyer_id"` +} type ChargePaymentMethodDetailsOXXO struct { // OXXO reference number Number string `json:"number"` @@ -1142,6 +1188,10 @@ type ChargePaymentMethodDetailsP24 struct { // Przelewy24 rarely provides this information so the attribute is usually empty. VerifiedName string `json:"verified_name"` } +type ChargePaymentMethodDetailsPayco struct { + // A unique identifier for the buyer as determined by the local payment processor. + BuyerID string `json:"buyer_id"` +} type ChargePaymentMethodDetailsPayNow struct { // Reference number associated with this PayNow payment Reference string `json:"reference"` @@ -1177,6 +1227,10 @@ type ChargePaymentMethodDetailsPromptPay struct { Reference string `json:"reference"` } type ChargePaymentMethodDetailsRevolutPay struct{} +type ChargePaymentMethodDetailsSamsungPay struct { + // A unique identifier for the buyer as determined by the local payment processor. + BuyerID string `json:"buyer_id"` +} type ChargePaymentMethodDetailsSEPACreditTransfer struct { // Name of the bank associated with the bank account. BankName string `json:"bank_name"` @@ -1266,6 +1320,7 @@ type ChargePaymentMethodDetails struct { Affirm *ChargePaymentMethodDetailsAffirm `json:"affirm"` AfterpayClearpay *ChargePaymentMethodDetailsAfterpayClearpay `json:"afterpay_clearpay"` Alipay *ChargePaymentMethodDetailsAlipay `json:"alipay"` + Alma *ChargePaymentMethodDetailsAlma `json:"alma"` AmazonPay *ChargePaymentMethodDetailsAmazonPay `json:"amazon_pay"` AUBECSDebit *ChargePaymentMethodDetailsAUBECSDebit `json:"au_becs_debit"` BACSDebit *ChargePaymentMethodDetailsBACSDebit `json:"bacs_debit"` @@ -1282,18 +1337,23 @@ type ChargePaymentMethodDetails struct { Grabpay *ChargePaymentMethodDetailsGrabpay `json:"grabpay"` IDEAL *ChargePaymentMethodDetailsIDEAL `json:"ideal"` InteracPresent *ChargePaymentMethodDetailsInteracPresent `json:"interac_present"` + KakaoPay *ChargePaymentMethodDetailsKakaoPay `json:"kakao_pay"` Klarna *ChargePaymentMethodDetailsKlarna `json:"klarna"` Konbini *ChargePaymentMethodDetailsKonbini `json:"konbini"` + KrCard *ChargePaymentMethodDetailsKrCard `json:"kr_card"` Link *ChargePaymentMethodDetailsLink `json:"link"` Mobilepay *ChargePaymentMethodDetailsMobilepay `json:"mobilepay"` Multibanco *ChargePaymentMethodDetailsMultibanco `json:"multibanco"` + NaverPay *ChargePaymentMethodDetailsNaverPay `json:"naver_pay"` OXXO *ChargePaymentMethodDetailsOXXO `json:"oxxo"` P24 *ChargePaymentMethodDetailsP24 `json:"p24"` + Payco *ChargePaymentMethodDetailsPayco `json:"payco"` PayNow *ChargePaymentMethodDetailsPayNow `json:"paynow"` Paypal *ChargePaymentMethodDetailsPaypal `json:"paypal"` Pix *ChargePaymentMethodDetailsPix `json:"pix"` PromptPay *ChargePaymentMethodDetailsPromptPay `json:"promptpay"` RevolutPay *ChargePaymentMethodDetailsRevolutPay `json:"revolut_pay"` + SamsungPay *ChargePaymentMethodDetailsSamsungPay `json:"samsung_pay"` SEPACreditTransfer *ChargePaymentMethodDetailsSEPACreditTransfer `json:"sepa_credit_transfer"` SEPADebit *ChargePaymentMethodDetailsSEPADebit `json:"sepa_debit"` Sofort *ChargePaymentMethodDetailsSofort `json:"sofort"` diff --git a/checkout_session.go b/checkout_session.go index 1896de01f1..79cc95de7b 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` type CheckoutSessionCustomerDetailsTaxIDType string // List of values that CheckoutSessionCustomerDetailsTaxIDType can take @@ -135,6 +135,7 @@ const ( CheckoutSessionCustomerDetailsTaxIDTypeBOTIN CheckoutSessionCustomerDetailsTaxIDType = "bo_tin" CheckoutSessionCustomerDetailsTaxIDTypeBRCNPJ CheckoutSessionCustomerDetailsTaxIDType = "br_cnpj" CheckoutSessionCustomerDetailsTaxIDTypeBRCPF CheckoutSessionCustomerDetailsTaxIDType = "br_cpf" + CheckoutSessionCustomerDetailsTaxIDTypeByTin CheckoutSessionCustomerDetailsTaxIDType = "by_tin" CheckoutSessionCustomerDetailsTaxIDTypeCABN CheckoutSessionCustomerDetailsTaxIDType = "ca_bn" CheckoutSessionCustomerDetailsTaxIDTypeCAGSTHST CheckoutSessionCustomerDetailsTaxIDType = "ca_gst_hst" CheckoutSessionCustomerDetailsTaxIDTypeCAPSTBC CheckoutSessionCustomerDetailsTaxIDType = "ca_pst_bc" @@ -170,6 +171,8 @@ const ( CheckoutSessionCustomerDetailsTaxIDTypeKRBRN CheckoutSessionCustomerDetailsTaxIDType = "kr_brn" CheckoutSessionCustomerDetailsTaxIDTypeKzBin CheckoutSessionCustomerDetailsTaxIDType = "kz_bin" CheckoutSessionCustomerDetailsTaxIDTypeLIUID CheckoutSessionCustomerDetailsTaxIDType = "li_uid" + CheckoutSessionCustomerDetailsTaxIDTypeMaVAT CheckoutSessionCustomerDetailsTaxIDType = "ma_vat" + CheckoutSessionCustomerDetailsTaxIDTypeMdVAT CheckoutSessionCustomerDetailsTaxIDType = "md_vat" CheckoutSessionCustomerDetailsTaxIDTypeMXRFC CheckoutSessionCustomerDetailsTaxIDType = "mx_rfc" CheckoutSessionCustomerDetailsTaxIDTypeMYFRP CheckoutSessionCustomerDetailsTaxIDType = "my_frp" CheckoutSessionCustomerDetailsTaxIDTypeMYITN CheckoutSessionCustomerDetailsTaxIDType = "my_itn" @@ -193,10 +196,13 @@ const ( CheckoutSessionCustomerDetailsTaxIDTypeTHVAT CheckoutSessionCustomerDetailsTaxIDType = "th_vat" CheckoutSessionCustomerDetailsTaxIDTypeTRTIN CheckoutSessionCustomerDetailsTaxIDType = "tr_tin" CheckoutSessionCustomerDetailsTaxIDTypeTWVAT CheckoutSessionCustomerDetailsTaxIDType = "tw_vat" + CheckoutSessionCustomerDetailsTaxIDTypeTzVAT CheckoutSessionCustomerDetailsTaxIDType = "tz_vat" CheckoutSessionCustomerDetailsTaxIDTypeUAVAT CheckoutSessionCustomerDetailsTaxIDType = "ua_vat" CheckoutSessionCustomerDetailsTaxIDTypeUnknown CheckoutSessionCustomerDetailsTaxIDType = "unknown" CheckoutSessionCustomerDetailsTaxIDTypeUSEIN CheckoutSessionCustomerDetailsTaxIDType = "us_ein" CheckoutSessionCustomerDetailsTaxIDTypeUYRUC CheckoutSessionCustomerDetailsTaxIDType = "uy_ruc" + CheckoutSessionCustomerDetailsTaxIDTypeUzTin CheckoutSessionCustomerDetailsTaxIDType = "uz_tin" + CheckoutSessionCustomerDetailsTaxIDTypeUzVAT CheckoutSessionCustomerDetailsTaxIDType = "uz_vat" CheckoutSessionCustomerDetailsTaxIDTypeVERIF CheckoutSessionCustomerDetailsTaxIDType = "ve_rif" CheckoutSessionCustomerDetailsTaxIDTypeVNTIN CheckoutSessionCustomerDetailsTaxIDType = "vn_tin" CheckoutSessionCustomerDetailsTaxIDTypeZAVAT CheckoutSessionCustomerDetailsTaxIDType = "za_vat" @@ -561,6 +567,29 @@ const ( CheckoutSessionPaymentMethodOptionsIDEALSetupFutureUsageNone CheckoutSessionPaymentMethodOptionsIDEALSetupFutureUsage = "none" ) +// Controls when the funds will be captured from the customer's account. +type CheckoutSessionPaymentMethodOptionsKakaoPayCaptureMethod string + +// List of values that CheckoutSessionPaymentMethodOptionsKakaoPayCaptureMethod can take +const ( + CheckoutSessionPaymentMethodOptionsKakaoPayCaptureMethodManual CheckoutSessionPaymentMethodOptionsKakaoPayCaptureMethod = "manual" +) + +// Indicates that you intend to make future payments with this PaymentIntent's payment method. +// +// If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. +// +// If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. +// +// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). +type CheckoutSessionPaymentMethodOptionsKakaoPaySetupFutureUsage string + +// List of values that CheckoutSessionPaymentMethodOptionsKakaoPaySetupFutureUsage can take +const ( + CheckoutSessionPaymentMethodOptionsKakaoPaySetupFutureUsageNone CheckoutSessionPaymentMethodOptionsKakaoPaySetupFutureUsage = "none" + CheckoutSessionPaymentMethodOptionsKakaoPaySetupFutureUsageOffSession CheckoutSessionPaymentMethodOptionsKakaoPaySetupFutureUsage = "off_session" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -591,6 +620,29 @@ const ( CheckoutSessionPaymentMethodOptionsKonbiniSetupFutureUsageNone CheckoutSessionPaymentMethodOptionsKonbiniSetupFutureUsage = "none" ) +// Controls when the funds will be captured from the customer's account. +type CheckoutSessionPaymentMethodOptionsKrCardCaptureMethod string + +// List of values that CheckoutSessionPaymentMethodOptionsKrCardCaptureMethod can take +const ( + CheckoutSessionPaymentMethodOptionsKrCardCaptureMethodManual CheckoutSessionPaymentMethodOptionsKrCardCaptureMethod = "manual" +) + +// Indicates that you intend to make future payments with this PaymentIntent's payment method. +// +// If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. +// +// If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. +// +// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). +type CheckoutSessionPaymentMethodOptionsKrCardSetupFutureUsage string + +// List of values that CheckoutSessionPaymentMethodOptionsKrCardSetupFutureUsage can take +const ( + CheckoutSessionPaymentMethodOptionsKrCardSetupFutureUsageNone CheckoutSessionPaymentMethodOptionsKrCardSetupFutureUsage = "none" + CheckoutSessionPaymentMethodOptionsKrCardSetupFutureUsageOffSession CheckoutSessionPaymentMethodOptionsKrCardSetupFutureUsage = "off_session" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -634,6 +686,14 @@ const ( CheckoutSessionPaymentMethodOptionsMultibancoSetupFutureUsageNone CheckoutSessionPaymentMethodOptionsMultibancoSetupFutureUsage = "none" ) +// Controls when the funds will be captured from the customer's account. +type CheckoutSessionPaymentMethodOptionsNaverPayCaptureMethod string + +// List of values that CheckoutSessionPaymentMethodOptionsNaverPayCaptureMethod can take +const ( + CheckoutSessionPaymentMethodOptionsNaverPayCaptureMethodManual CheckoutSessionPaymentMethodOptionsNaverPayCaptureMethod = "manual" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -662,6 +722,14 @@ const ( CheckoutSessionPaymentMethodOptionsP24SetupFutureUsageNone CheckoutSessionPaymentMethodOptionsP24SetupFutureUsage = "none" ) +// Controls when the funds will be captured from the customer's account. +type CheckoutSessionPaymentMethodOptionsPaycoCaptureMethod string + +// List of values that CheckoutSessionPaymentMethodOptionsPaycoCaptureMethod can take +const ( + CheckoutSessionPaymentMethodOptionsPaycoCaptureMethodManual CheckoutSessionPaymentMethodOptionsPaycoCaptureMethod = "manual" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -714,6 +782,14 @@ const ( CheckoutSessionPaymentMethodOptionsRevolutPaySetupFutureUsageOffSession CheckoutSessionPaymentMethodOptionsRevolutPaySetupFutureUsage = "off_session" ) +// Controls when the funds will be captured from the customer's account. +type CheckoutSessionPaymentMethodOptionsSamsungPayCaptureMethod string + +// List of values that CheckoutSessionPaymentMethodOptionsSamsungPayCaptureMethod can take +const ( + CheckoutSessionPaymentMethodOptionsSamsungPayCaptureMethodManual CheckoutSessionPaymentMethodOptionsSamsungPayCaptureMethod = "manual" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1617,6 +1693,18 @@ type CheckoutSessionPaymentMethodOptionsIDEALParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// contains details about the Kakao Pay payment method options. +type CheckoutSessionPaymentMethodOptionsKakaoPayParams struct { + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage *string `form:"setup_future_usage"` +} + // contains details about the Klarna payment method options. type CheckoutSessionPaymentMethodOptionsKlarnaParams struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1643,6 +1731,18 @@ type CheckoutSessionPaymentMethodOptionsKonbiniParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// contains details about the Korean card payment method options. +type CheckoutSessionPaymentMethodOptionsKrCardParams struct { + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage *string `form:"setup_future_usage"` +} + // contains details about the Link payment method options. type CheckoutSessionPaymentMethodOptionsLinkParams struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1679,6 +1779,18 @@ type CheckoutSessionPaymentMethodOptionsMultibancoParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// contains details about the Kakao Pay payment method options. +type CheckoutSessionPaymentMethodOptionsNaverPayParams struct { + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage *string `form:"setup_future_usage"` +} + // contains details about the OXXO payment method options. type CheckoutSessionPaymentMethodOptionsOXXOParams struct { // The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1707,6 +1819,9 @@ type CheckoutSessionPaymentMethodOptionsP24Params struct { TOSShownAndAccepted *bool `form:"tos_shown_and_accepted"` } +// contains details about the PAYCO payment method options. +type CheckoutSessionPaymentMethodOptionsPaycoParams struct{} + // contains details about the PayNow payment method options. type CheckoutSessionPaymentMethodOptionsPayNowParams struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1759,6 +1874,9 @@ type CheckoutSessionPaymentMethodOptionsRevolutPayParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// contains details about the Samsung Pay payment method options. +type CheckoutSessionPaymentMethodOptionsSamsungPayParams struct{} + // contains details about the Sepa Debit payment method options. type CheckoutSessionPaymentMethodOptionsSEPADebitParams struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1865,20 +1983,28 @@ type CheckoutSessionPaymentMethodOptionsParams struct { Grabpay *CheckoutSessionPaymentMethodOptionsGrabpayParams `form:"grabpay"` // contains details about the Ideal payment method options. IDEAL *CheckoutSessionPaymentMethodOptionsIDEALParams `form:"ideal"` + // contains details about the Kakao Pay payment method options. + KakaoPay *CheckoutSessionPaymentMethodOptionsKakaoPayParams `form:"kakao_pay"` // contains details about the Klarna payment method options. Klarna *CheckoutSessionPaymentMethodOptionsKlarnaParams `form:"klarna"` // contains details about the Konbini payment method options. Konbini *CheckoutSessionPaymentMethodOptionsKonbiniParams `form:"konbini"` + // contains details about the Korean card payment method options. + KrCard *CheckoutSessionPaymentMethodOptionsKrCardParams `form:"kr_card"` // contains details about the Link payment method options. Link *CheckoutSessionPaymentMethodOptionsLinkParams `form:"link"` // contains details about the Mobilepay payment method options. Mobilepay *CheckoutSessionPaymentMethodOptionsMobilepayParams `form:"mobilepay"` // contains details about the Multibanco payment method options. Multibanco *CheckoutSessionPaymentMethodOptionsMultibancoParams `form:"multibanco"` + // contains details about the Kakao Pay payment method options. + NaverPay *CheckoutSessionPaymentMethodOptionsNaverPayParams `form:"naver_pay"` // contains details about the OXXO payment method options. OXXO *CheckoutSessionPaymentMethodOptionsOXXOParams `form:"oxxo"` // contains details about the P24 payment method options. P24 *CheckoutSessionPaymentMethodOptionsP24Params `form:"p24"` + // contains details about the PAYCO payment method options. + Payco *CheckoutSessionPaymentMethodOptionsPaycoParams `form:"payco"` // contains details about the PayNow payment method options. PayNow *CheckoutSessionPaymentMethodOptionsPayNowParams `form:"paynow"` // contains details about the PayPal payment method options. @@ -1887,6 +2013,8 @@ type CheckoutSessionPaymentMethodOptionsParams struct { Pix *CheckoutSessionPaymentMethodOptionsPixParams `form:"pix"` // contains details about the RevolutPay payment method options. RevolutPay *CheckoutSessionPaymentMethodOptionsRevolutPayParams `form:"revolut_pay"` + // contains details about the Samsung Pay payment method options. + SamsungPay *CheckoutSessionPaymentMethodOptionsSamsungPayParams `form:"samsung_pay"` // contains details about the Sepa Debit payment method options. SEPADebit *CheckoutSessionPaymentMethodOptionsSEPADebitParams `form:"sepa_debit"` // contains details about the Sofort payment method options. @@ -2454,7 +2582,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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` Type CheckoutSessionCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` @@ -2744,6 +2872,18 @@ type CheckoutSessionPaymentMethodOptionsIDEAL struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage CheckoutSessionPaymentMethodOptionsIDEALSetupFutureUsage `json:"setup_future_usage"` } +type CheckoutSessionPaymentMethodOptionsKakaoPay struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod CheckoutSessionPaymentMethodOptionsKakaoPayCaptureMethod `json:"capture_method"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage CheckoutSessionPaymentMethodOptionsKakaoPaySetupFutureUsage `json:"setup_future_usage"` +} type CheckoutSessionPaymentMethodOptionsKlarna struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. // @@ -2766,6 +2906,18 @@ type CheckoutSessionPaymentMethodOptionsKonbini struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage CheckoutSessionPaymentMethodOptionsKonbiniSetupFutureUsage `json:"setup_future_usage"` } +type CheckoutSessionPaymentMethodOptionsKrCard struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod CheckoutSessionPaymentMethodOptionsKrCardCaptureMethod `json:"capture_method"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage CheckoutSessionPaymentMethodOptionsKrCardSetupFutureUsage `json:"setup_future_usage"` +} type CheckoutSessionPaymentMethodOptionsLink struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. // @@ -2796,6 +2948,10 @@ type CheckoutSessionPaymentMethodOptionsMultibanco struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage CheckoutSessionPaymentMethodOptionsMultibancoSetupFutureUsage `json:"setup_future_usage"` } +type CheckoutSessionPaymentMethodOptionsNaverPay struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod CheckoutSessionPaymentMethodOptionsNaverPayCaptureMethod `json:"capture_method"` +} type CheckoutSessionPaymentMethodOptionsOXXO struct { // The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. ExpiresAfterDays int64 `json:"expires_after_days"` @@ -2818,6 +2974,10 @@ type CheckoutSessionPaymentMethodOptionsP24 struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage CheckoutSessionPaymentMethodOptionsP24SetupFutureUsage `json:"setup_future_usage"` } +type CheckoutSessionPaymentMethodOptionsPayco struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod CheckoutSessionPaymentMethodOptionsPaycoCaptureMethod `json:"capture_method"` +} type CheckoutSessionPaymentMethodOptionsPayNow struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. // @@ -2858,6 +3018,10 @@ type CheckoutSessionPaymentMethodOptionsRevolutPay struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage CheckoutSessionPaymentMethodOptionsRevolutPaySetupFutureUsage `json:"setup_future_usage"` } +type CheckoutSessionPaymentMethodOptionsSamsungPay struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod CheckoutSessionPaymentMethodOptionsSamsungPayCaptureMethod `json:"capture_method"` +} type CheckoutSessionPaymentMethodOptionsSEPADebit struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. // @@ -2928,17 +3092,22 @@ type CheckoutSessionPaymentMethodOptions struct { Giropay *CheckoutSessionPaymentMethodOptionsGiropay `json:"giropay"` Grabpay *CheckoutSessionPaymentMethodOptionsGrabpay `json:"grabpay"` IDEAL *CheckoutSessionPaymentMethodOptionsIDEAL `json:"ideal"` + KakaoPay *CheckoutSessionPaymentMethodOptionsKakaoPay `json:"kakao_pay"` Klarna *CheckoutSessionPaymentMethodOptionsKlarna `json:"klarna"` Konbini *CheckoutSessionPaymentMethodOptionsKonbini `json:"konbini"` + KrCard *CheckoutSessionPaymentMethodOptionsKrCard `json:"kr_card"` Link *CheckoutSessionPaymentMethodOptionsLink `json:"link"` Mobilepay *CheckoutSessionPaymentMethodOptionsMobilepay `json:"mobilepay"` Multibanco *CheckoutSessionPaymentMethodOptionsMultibanco `json:"multibanco"` + NaverPay *CheckoutSessionPaymentMethodOptionsNaverPay `json:"naver_pay"` OXXO *CheckoutSessionPaymentMethodOptionsOXXO `json:"oxxo"` P24 *CheckoutSessionPaymentMethodOptionsP24 `json:"p24"` + Payco *CheckoutSessionPaymentMethodOptionsPayco `json:"payco"` PayNow *CheckoutSessionPaymentMethodOptionsPayNow `json:"paynow"` Paypal *CheckoutSessionPaymentMethodOptionsPaypal `json:"paypal"` Pix *CheckoutSessionPaymentMethodOptionsPix `json:"pix"` RevolutPay *CheckoutSessionPaymentMethodOptionsRevolutPay `json:"revolut_pay"` + SamsungPay *CheckoutSessionPaymentMethodOptionsSamsungPay `json:"samsung_pay"` SEPADebit *CheckoutSessionPaymentMethodOptionsSEPADebit `json:"sepa_debit"` Sofort *CheckoutSessionPaymentMethodOptionsSofort `json:"sofort"` Swish *CheckoutSessionPaymentMethodOptionsSwish `json:"swish"` diff --git a/confirmationtoken.go b/confirmationtoken.go index 84abd6e91c..6bf7f66ec4 100644 --- a/confirmationtoken.go +++ b/confirmationtoken.go @@ -235,6 +235,44 @@ const ( ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethodMagneticStripeTrack2 ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod = "magnetic_stripe_track2" ) +// The local credit or debit card brand. +type ConfirmationTokenPaymentMethodPreviewKrCardBrand string + +// List of values that ConfirmationTokenPaymentMethodPreviewKrCardBrand can take +const ( + ConfirmationTokenPaymentMethodPreviewKrCardBrandBc ConfirmationTokenPaymentMethodPreviewKrCardBrand = "bc" + ConfirmationTokenPaymentMethodPreviewKrCardBrandCiti ConfirmationTokenPaymentMethodPreviewKrCardBrand = "citi" + ConfirmationTokenPaymentMethodPreviewKrCardBrandHana ConfirmationTokenPaymentMethodPreviewKrCardBrand = "hana" + ConfirmationTokenPaymentMethodPreviewKrCardBrandHyundai ConfirmationTokenPaymentMethodPreviewKrCardBrand = "hyundai" + ConfirmationTokenPaymentMethodPreviewKrCardBrandJeju ConfirmationTokenPaymentMethodPreviewKrCardBrand = "jeju" + ConfirmationTokenPaymentMethodPreviewKrCardBrandJeonbuk ConfirmationTokenPaymentMethodPreviewKrCardBrand = "jeonbuk" + ConfirmationTokenPaymentMethodPreviewKrCardBrandKakaobank ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kakaobank" + ConfirmationTokenPaymentMethodPreviewKrCardBrandKbank ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kbank" + ConfirmationTokenPaymentMethodPreviewKrCardBrandKdbbank ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kdbbank" + ConfirmationTokenPaymentMethodPreviewKrCardBrandKookmin ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kookmin" + ConfirmationTokenPaymentMethodPreviewKrCardBrandKwangju ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kwangju" + ConfirmationTokenPaymentMethodPreviewKrCardBrandLotte ConfirmationTokenPaymentMethodPreviewKrCardBrand = "lotte" + ConfirmationTokenPaymentMethodPreviewKrCardBrandMg ConfirmationTokenPaymentMethodPreviewKrCardBrand = "mg" + ConfirmationTokenPaymentMethodPreviewKrCardBrandNh ConfirmationTokenPaymentMethodPreviewKrCardBrand = "nh" + ConfirmationTokenPaymentMethodPreviewKrCardBrandPost ConfirmationTokenPaymentMethodPreviewKrCardBrand = "post" + ConfirmationTokenPaymentMethodPreviewKrCardBrandSamsung ConfirmationTokenPaymentMethodPreviewKrCardBrand = "samsung" + ConfirmationTokenPaymentMethodPreviewKrCardBrandSavingsbank ConfirmationTokenPaymentMethodPreviewKrCardBrand = "savingsbank" + ConfirmationTokenPaymentMethodPreviewKrCardBrandShinhan ConfirmationTokenPaymentMethodPreviewKrCardBrand = "shinhan" + ConfirmationTokenPaymentMethodPreviewKrCardBrandShinhyup ConfirmationTokenPaymentMethodPreviewKrCardBrand = "shinhyup" + ConfirmationTokenPaymentMethodPreviewKrCardBrandSuhyup ConfirmationTokenPaymentMethodPreviewKrCardBrand = "suhyup" + ConfirmationTokenPaymentMethodPreviewKrCardBrandTossbank ConfirmationTokenPaymentMethodPreviewKrCardBrand = "tossbank" + ConfirmationTokenPaymentMethodPreviewKrCardBrandWoori ConfirmationTokenPaymentMethodPreviewKrCardBrand = "woori" +) + +// Whether to fund this transaction with Naver Pay points or a card. +type ConfirmationTokenPaymentMethodPreviewNaverPayFunding string + +// List of values that ConfirmationTokenPaymentMethodPreviewNaverPayFunding can take +const ( + ConfirmationTokenPaymentMethodPreviewNaverPayFundingCard ConfirmationTokenPaymentMethodPreviewNaverPayFunding = "card" + ConfirmationTokenPaymentMethodPreviewNaverPayFundingPoints ConfirmationTokenPaymentMethodPreviewNaverPayFunding = "points" +) + // The customer's bank, if provided. type ConfirmationTokenPaymentMethodPreviewP24Bank string @@ -277,6 +315,7 @@ const ( ConfirmationTokenPaymentMethodPreviewTypeAffirm ConfirmationTokenPaymentMethodPreviewType = "affirm" ConfirmationTokenPaymentMethodPreviewTypeAfterpayClearpay ConfirmationTokenPaymentMethodPreviewType = "afterpay_clearpay" ConfirmationTokenPaymentMethodPreviewTypeAlipay ConfirmationTokenPaymentMethodPreviewType = "alipay" + ConfirmationTokenPaymentMethodPreviewTypeAlma ConfirmationTokenPaymentMethodPreviewType = "alma" ConfirmationTokenPaymentMethodPreviewTypeAmazonPay ConfirmationTokenPaymentMethodPreviewType = "amazon_pay" ConfirmationTokenPaymentMethodPreviewTypeAUBECSDebit ConfirmationTokenPaymentMethodPreviewType = "au_becs_debit" ConfirmationTokenPaymentMethodPreviewTypeBACSDebit ConfirmationTokenPaymentMethodPreviewType = "bacs_debit" @@ -293,18 +332,23 @@ const ( ConfirmationTokenPaymentMethodPreviewTypeGrabpay ConfirmationTokenPaymentMethodPreviewType = "grabpay" ConfirmationTokenPaymentMethodPreviewTypeIDEAL ConfirmationTokenPaymentMethodPreviewType = "ideal" ConfirmationTokenPaymentMethodPreviewTypeInteracPresent ConfirmationTokenPaymentMethodPreviewType = "interac_present" + ConfirmationTokenPaymentMethodPreviewTypeKakaoPay ConfirmationTokenPaymentMethodPreviewType = "kakao_pay" ConfirmationTokenPaymentMethodPreviewTypeKlarna ConfirmationTokenPaymentMethodPreviewType = "klarna" ConfirmationTokenPaymentMethodPreviewTypeKonbini ConfirmationTokenPaymentMethodPreviewType = "konbini" + ConfirmationTokenPaymentMethodPreviewTypeKrCard ConfirmationTokenPaymentMethodPreviewType = "kr_card" ConfirmationTokenPaymentMethodPreviewTypeLink ConfirmationTokenPaymentMethodPreviewType = "link" ConfirmationTokenPaymentMethodPreviewTypeMobilepay ConfirmationTokenPaymentMethodPreviewType = "mobilepay" ConfirmationTokenPaymentMethodPreviewTypeMultibanco ConfirmationTokenPaymentMethodPreviewType = "multibanco" + ConfirmationTokenPaymentMethodPreviewTypeNaverPay ConfirmationTokenPaymentMethodPreviewType = "naver_pay" ConfirmationTokenPaymentMethodPreviewTypeOXXO ConfirmationTokenPaymentMethodPreviewType = "oxxo" ConfirmationTokenPaymentMethodPreviewTypeP24 ConfirmationTokenPaymentMethodPreviewType = "p24" + ConfirmationTokenPaymentMethodPreviewTypePayco ConfirmationTokenPaymentMethodPreviewType = "payco" ConfirmationTokenPaymentMethodPreviewTypePayNow ConfirmationTokenPaymentMethodPreviewType = "paynow" ConfirmationTokenPaymentMethodPreviewTypePaypal ConfirmationTokenPaymentMethodPreviewType = "paypal" ConfirmationTokenPaymentMethodPreviewTypePix ConfirmationTokenPaymentMethodPreviewType = "pix" ConfirmationTokenPaymentMethodPreviewTypePromptPay ConfirmationTokenPaymentMethodPreviewType = "promptpay" ConfirmationTokenPaymentMethodPreviewTypeRevolutPay ConfirmationTokenPaymentMethodPreviewType = "revolut_pay" + ConfirmationTokenPaymentMethodPreviewTypeSamsungPay ConfirmationTokenPaymentMethodPreviewType = "samsung_pay" ConfirmationTokenPaymentMethodPreviewTypeSEPADebit ConfirmationTokenPaymentMethodPreviewType = "sepa_debit" ConfirmationTokenPaymentMethodPreviewTypeSofort ConfirmationTokenPaymentMethodPreviewType = "sofort" ConfirmationTokenPaymentMethodPreviewTypeSwish ConfirmationTokenPaymentMethodPreviewType = "swish" @@ -444,6 +488,7 @@ type ConfirmationTokenPaymentMethodPreviewACSSDebit struct { type ConfirmationTokenPaymentMethodPreviewAffirm struct{} type ConfirmationTokenPaymentMethodPreviewAfterpayClearpay struct{} type ConfirmationTokenPaymentMethodPreviewAlipay struct{} +type ConfirmationTokenPaymentMethodPreviewAlma struct{} type ConfirmationTokenPaymentMethodPreviewAmazonPay struct{} type ConfirmationTokenPaymentMethodPreviewAUBECSDebit struct { // Six-digit number identifying bank and branch associated with this bank account. @@ -803,6 +848,7 @@ type ConfirmationTokenPaymentMethodPreviewInteracPresent struct { // How card details were read in this transaction. ReadMethod ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod `json:"read_method"` } +type ConfirmationTokenPaymentMethodPreviewKakaoPay struct{} // The customer's date of birth, if provided. type ConfirmationTokenPaymentMethodPreviewKlarnaDOB struct { @@ -818,6 +864,12 @@ type ConfirmationTokenPaymentMethodPreviewKlarna struct { DOB *ConfirmationTokenPaymentMethodPreviewKlarnaDOB `json:"dob"` } type ConfirmationTokenPaymentMethodPreviewKonbini struct{} +type ConfirmationTokenPaymentMethodPreviewKrCard struct { + // The local credit or debit card brand. + Brand ConfirmationTokenPaymentMethodPreviewKrCardBrand `json:"brand"` + // The last four digits of the card. This may not be present for American Express cards. + Last4 string `json:"last4"` +} type ConfirmationTokenPaymentMethodPreviewLink struct { // Account owner's email address. Email string `json:"email"` @@ -827,11 +879,16 @@ type ConfirmationTokenPaymentMethodPreviewLink struct { } type ConfirmationTokenPaymentMethodPreviewMobilepay struct{} type ConfirmationTokenPaymentMethodPreviewMultibanco struct{} +type ConfirmationTokenPaymentMethodPreviewNaverPay struct { + // Whether to fund this transaction with Naver Pay points or a card. + Funding ConfirmationTokenPaymentMethodPreviewNaverPayFunding `json:"funding"` +} type ConfirmationTokenPaymentMethodPreviewOXXO struct{} type ConfirmationTokenPaymentMethodPreviewP24 struct { // The customer's bank, if provided. Bank ConfirmationTokenPaymentMethodPreviewP24Bank `json:"bank"` } +type ConfirmationTokenPaymentMethodPreviewPayco struct{} type ConfirmationTokenPaymentMethodPreviewPayNow struct{} type ConfirmationTokenPaymentMethodPreviewPaypal struct { // Owner's email. Values are provided by PayPal directly @@ -843,6 +900,7 @@ type ConfirmationTokenPaymentMethodPreviewPaypal struct { type ConfirmationTokenPaymentMethodPreviewPix struct{} type ConfirmationTokenPaymentMethodPreviewPromptPay struct{} type ConfirmationTokenPaymentMethodPreviewRevolutPay struct{} +type ConfirmationTokenPaymentMethodPreviewSamsungPay struct{} // Information about the object that generated this PaymentMethod. type ConfirmationTokenPaymentMethodPreviewSEPADebitGeneratedFrom struct { @@ -921,6 +979,7 @@ type ConfirmationTokenPaymentMethodPreview struct { Alipay *ConfirmationTokenPaymentMethodPreviewAlipay `json:"alipay"` // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. AllowRedisplay ConfirmationTokenPaymentMethodPreviewAllowRedisplay `json:"allow_redisplay"` + Alma *ConfirmationTokenPaymentMethodPreviewAlma `json:"alma"` AmazonPay *ConfirmationTokenPaymentMethodPreviewAmazonPay `json:"amazon_pay"` AUBECSDebit *ConfirmationTokenPaymentMethodPreviewAUBECSDebit `json:"au_becs_debit"` BACSDebit *ConfirmationTokenPaymentMethodPreviewBACSDebit `json:"bacs_debit"` @@ -940,18 +999,23 @@ type ConfirmationTokenPaymentMethodPreview struct { Grabpay *ConfirmationTokenPaymentMethodPreviewGrabpay `json:"grabpay"` IDEAL *ConfirmationTokenPaymentMethodPreviewIDEAL `json:"ideal"` InteracPresent *ConfirmationTokenPaymentMethodPreviewInteracPresent `json:"interac_present"` + KakaoPay *ConfirmationTokenPaymentMethodPreviewKakaoPay `json:"kakao_pay"` Klarna *ConfirmationTokenPaymentMethodPreviewKlarna `json:"klarna"` Konbini *ConfirmationTokenPaymentMethodPreviewKonbini `json:"konbini"` + KrCard *ConfirmationTokenPaymentMethodPreviewKrCard `json:"kr_card"` Link *ConfirmationTokenPaymentMethodPreviewLink `json:"link"` Mobilepay *ConfirmationTokenPaymentMethodPreviewMobilepay `json:"mobilepay"` Multibanco *ConfirmationTokenPaymentMethodPreviewMultibanco `json:"multibanco"` + NaverPay *ConfirmationTokenPaymentMethodPreviewNaverPay `json:"naver_pay"` OXXO *ConfirmationTokenPaymentMethodPreviewOXXO `json:"oxxo"` P24 *ConfirmationTokenPaymentMethodPreviewP24 `json:"p24"` + Payco *ConfirmationTokenPaymentMethodPreviewPayco `json:"payco"` PayNow *ConfirmationTokenPaymentMethodPreviewPayNow `json:"paynow"` Paypal *ConfirmationTokenPaymentMethodPreviewPaypal `json:"paypal"` Pix *ConfirmationTokenPaymentMethodPreviewPix `json:"pix"` PromptPay *ConfirmationTokenPaymentMethodPreviewPromptPay `json:"promptpay"` RevolutPay *ConfirmationTokenPaymentMethodPreviewRevolutPay `json:"revolut_pay"` + SamsungPay *ConfirmationTokenPaymentMethodPreviewSamsungPay `json:"samsung_pay"` SEPADebit *ConfirmationTokenPaymentMethodPreviewSEPADebit `json:"sepa_debit"` Sofort *ConfirmationTokenPaymentMethodPreviewSofort `json:"sofort"` Swish *ConfirmationTokenPaymentMethodPreviewSwish `json:"swish"` diff --git a/creditnote.go b/creditnote.go index 5d7b1f1720..602a4e3fa5 100644 --- a/creditnote.go +++ b/creditnote.go @@ -122,7 +122,7 @@ type CreditNoteLineTaxAmountParams struct { // Line items that make up the credit note. type CreditNoteLineParams struct { - // The line item amount to credit. Only valid when `type` is `invoice_line_item`. + // The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive Amount *int64 `form:"amount"` // The description of the credit note line item. Only valid when the `type` is `custom_line_item`. Description *string `form:"description"` @@ -218,7 +218,7 @@ type CreditNotePreviewLineTaxAmountParams struct { // Line items that make up the credit note. type CreditNotePreviewLineParams struct { - // The line item amount to credit. Only valid when `type` is `invoice_line_item`. + // The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive Amount *int64 `form:"amount"` // The description of the credit note line item. Only valid when the `type` is `custom_line_item`. Description *string `form:"description"` @@ -303,7 +303,7 @@ type CreditNotePreviewLinesLineTaxAmountParams struct { // Line items that make up the credit note. type CreditNotePreviewLinesLineParams struct { - // The line item amount to credit. Only valid when `type` is `invoice_line_item`. + // The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive Amount *int64 `form:"amount"` // The description of the credit note line item. Only valid when the `type` is `custom_line_item`. Description *string `form:"description"` @@ -408,6 +408,8 @@ type CreditNoteDiscountAmount struct { // The discount that was applied to get this discount amount. Discount *Discount `json:"discount"` } + +// The pretax credit amounts (ex: discount, credit grants, etc) for all line items. type CreditNotePretaxCreditAmount struct { // The amount, in cents (or local equivalent), of the pretax credit amount. Amount int64 `json:"amount"` @@ -503,7 +505,8 @@ type CreditNote struct { // Amount that was credited outside of Stripe. OutOfBandAmount int64 `json:"out_of_band_amount"` // The link to download the PDF of the credit note. - PDF string `json:"pdf"` + PDF string `json:"pdf"` + // The pretax credit amounts (ex: discount, credit grants, etc) for all line items. PretaxCreditAmounts []*CreditNotePretaxCreditAmount `json:"pretax_credit_amounts"` // Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory` Reason CreditNoteReason `json:"reason"` diff --git a/creditnotelineitem.go b/creditnotelineitem.go index c42f540b66..5deca46194 100644 --- a/creditnotelineitem.go +++ b/creditnotelineitem.go @@ -31,6 +31,8 @@ type CreditNoteLineItemDiscountAmount struct { // The discount that was applied to get this discount amount. Discount *Discount `json:"discount"` } + +// The pretax credit amounts (ex: discount, credit grants, etc) for this line item. type CreditNoteLineItemPretaxCreditAmount struct { // The amount, in cents (or local equivalent), of the pretax credit amount. Amount int64 `json:"amount"` @@ -63,7 +65,8 @@ type CreditNoteLineItem struct { // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. Livemode bool `json:"livemode"` // String representing the object's type. Objects of the same type share the same value. - Object string `json:"object"` + Object string `json:"object"` + // The pretax credit amounts (ex: discount, credit grants, etc) for this line item. PretaxCreditAmounts []*CreditNoteLineItemPretaxCreditAmount `json:"pretax_credit_amounts"` // The number of units of product being credited. Quantity int64 `json:"quantity"` diff --git a/customer.go b/customer.go index dec82b80d5..c06b8edf75 100644 --- a/customer.go +++ b/customer.go @@ -194,7 +194,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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` diff --git a/dispute.go b/dispute.go index 7efc8001f2..76f31c6fc5 100644 --- a/dispute.go +++ b/dispute.go @@ -8,6 +8,45 @@ package stripe import "encoding/json" +// List of eligibility types that are included in `enhanced_evidence`. +type DisputeEnhancedEligibilityType string + +// List of values that DisputeEnhancedEligibilityType can take +const ( + DisputeEnhancedEligibilityTypeVisaCompellingEvidence3 DisputeEnhancedEligibilityType = "visa_compelling_evidence_3" +) + +// Categorization of disputed payment. +type DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionMerchandiseOrServices string + +// List of values that DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionMerchandiseOrServices can take +const ( + DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionMerchandiseOrServicesMerchandise DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionMerchandiseOrServices = "merchandise" + DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionMerchandiseOrServicesServices DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionMerchandiseOrServices = "services" +) + +// List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. +type DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction string + +// List of values that DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction can take +const ( + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredActionMissingCustomerIdentifiers DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction = "missing_customer_identifiers" + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredActionMissingDisputedTransactionDescription DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction = "missing_disputed_transaction_description" + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredActionMissingMerchandiseOrServices DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction = "missing_merchandise_or_services" + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredActionMissingPriorUndisputedTransactionDescription DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction = "missing_prior_undisputed_transaction_description" + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredActionMissingPriorUndisputedTransactions DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction = "missing_prior_undisputed_transactions" +) + +// Visa Compelling Evidence 3.0 eligibility status. +type DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3Status string + +// List of values that DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3Status can take +const ( + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3StatusNotQualified DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3Status = "not_qualified" + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3StatusQualified DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3Status = "qualified" + DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3StatusRequiresAction DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3Status = "requires_action" +) + // The AmazonPay dispute type, chargeback or claim type DisputePaymentMethodDetailsAmazonPayDisputeType string @@ -119,6 +158,60 @@ func (p *DisputeParams) AddMetadata(key string, value string) { p.Metadata[key] = value } +// Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. +type DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionParams struct { + // User Account ID used to log into business platform. Must be recognizable by the user. + CustomerAccountID *string `form:"customer_account_id"` + // Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + CustomerDeviceFingerprint *string `form:"customer_device_fingerprint"` + // Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + CustomerDeviceID *string `form:"customer_device_id"` + // The email address of the customer. + CustomerEmailAddress *string `form:"customer_email_address"` + // The IP address that the customer used when making the purchase. + CustomerPurchaseIP *string `form:"customer_purchase_ip"` + // Categorization of disputed payment. + MerchandiseOrServices *string `form:"merchandise_or_services"` + // A description of the product or service that was sold. + ProductDescription *string `form:"product_description"` + // The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + ShippingAddress *AddressParams `form:"shipping_address"` +} + +// List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission. +type DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionParams struct { + // Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge. + Charge *string `form:"charge"` + // User Account ID used to log into business platform. Must be recognizable by the user. + CustomerAccountID *string `form:"customer_account_id"` + // Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + CustomerDeviceFingerprint *string `form:"customer_device_fingerprint"` + // Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + CustomerDeviceID *string `form:"customer_device_id"` + // The email address of the customer. + CustomerEmailAddress *string `form:"customer_email_address"` + // The IP address that the customer used when making the purchase. + CustomerPurchaseIP *string `form:"customer_purchase_ip"` + // A description of the product or service that was sold. + ProductDescription *string `form:"product_description"` + // The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + ShippingAddress *AddressParams `form:"shipping_address"` +} + +// Evidence provided for Visa Compelling Evidence 3.0 evidence submission. +type DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3Params struct { + // Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. + DisputedTransaction *DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionParams `form:"disputed_transaction"` + // List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission. + PriorUndisputedTransactions []*DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionParams `form:"prior_undisputed_transactions"` +} + +// Additional evidence for qualifying evidence programs. +type DisputeEvidenceEnhancedEvidenceParams struct { + // Evidence provided for Visa Compelling Evidence 3.0 evidence submission. + VisaCompellingEvidence3 *DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3Params `form:"visa_compelling_evidence_3"` +} + // Evidence to upload, to respond to a dispute. Updating any field in the hash will submit all fields in the hash for review. The combined character count of all fields is limited to 150,000. type DisputeEvidenceParams struct { // Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. Has a maximum character count of 20,000. @@ -147,6 +240,8 @@ type DisputeEvidenceParams struct { DuplicateChargeExplanation *string `form:"duplicate_charge_explanation"` // The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge. DuplicateChargeID *string `form:"duplicate_charge_id"` + // Additional evidence for qualifying evidence programs. + EnhancedEvidence *DisputeEvidenceEnhancedEvidenceParams `form:"enhanced_evidence"` // A description of the product or service that was sold. Has a maximum character count of 20,000. ProductDescription *string `form:"product_description"` // (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge. @@ -176,6 +271,55 @@ type DisputeEvidenceParams struct { // Any additional evidence or statements. Has a maximum character count of 20,000. UncategorizedText *string `form:"uncategorized_text"` } + +// Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. +type DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction struct { + // User Account ID used to log into business platform. Must be recognizable by the user. + CustomerAccountID string `json:"customer_account_id"` + // Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + CustomerDeviceFingerprint string `json:"customer_device_fingerprint"` + // Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + CustomerDeviceID string `json:"customer_device_id"` + // The email address of the customer. + CustomerEmailAddress string `json:"customer_email_address"` + // The IP address that the customer used when making the purchase. + CustomerPurchaseIP string `json:"customer_purchase_ip"` + // Categorization of disputed payment. + MerchandiseOrServices DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionMerchandiseOrServices `json:"merchandise_or_services"` + // A description of the product or service that was sold. + ProductDescription string `json:"product_description"` + // The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + ShippingAddress *Address `json:"shipping_address"` +} + +// List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission. +type DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction struct { + // Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge. + Charge string `json:"charge"` + // User Account ID used to log into business platform. Must be recognizable by the user. + CustomerAccountID string `json:"customer_account_id"` + // Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + CustomerDeviceFingerprint string `json:"customer_device_fingerprint"` + // Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + CustomerDeviceID string `json:"customer_device_id"` + // The email address of the customer. + CustomerEmailAddress string `json:"customer_email_address"` + // The IP address that the customer used when making the purchase. + CustomerPurchaseIP string `json:"customer_purchase_ip"` + // A description of the product or service that was sold. + ProductDescription string `json:"product_description"` + // The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + ShippingAddress *Address `json:"shipping_address"` +} +type DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3 struct { + // Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. + DisputedTransaction *DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction `json:"disputed_transaction"` + // List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission. + PriorUndisputedTransactions []*DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction `json:"prior_undisputed_transactions"` +} +type DisputeEvidenceEnhancedEvidence struct { + VisaCompellingEvidence3 *DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3 `json:"visa_compelling_evidence_3"` +} type DisputeEvidence struct { // Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. AccessActivityLog string `json:"access_activity_log"` @@ -202,7 +346,8 @@ type DisputeEvidence struct { // An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate. DuplicateChargeExplanation string `json:"duplicate_charge_explanation"` // The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge. - DuplicateChargeID string `json:"duplicate_charge_id"` + DuplicateChargeID string `json:"duplicate_charge_id"` + EnhancedEvidence *DisputeEvidenceEnhancedEvidence `json:"enhanced_evidence"` // A description of the product or service that was sold. ProductDescription string `json:"product_description"` // (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge. @@ -232,9 +377,19 @@ type DisputeEvidence struct { // Any additional evidence or statements. UncategorizedText string `json:"uncategorized_text"` } +type DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3 struct { + // List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. + RequiredActions []DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3RequiredAction `json:"required_actions"` + // Visa Compelling Evidence 3.0 eligibility status. + Status DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3Status `json:"status"` +} +type DisputeEvidenceDetailsEnhancedEligibility struct { + VisaCompellingEvidence3 *DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3 `json:"visa_compelling_evidence_3"` +} type DisputeEvidenceDetails struct { // Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute. - DueBy int64 `json:"due_by"` + DueBy int64 `json:"due_by"` + EnhancedEligibility *DisputeEvidenceDetailsEnhancedEligibility `json:"enhanced_eligibility"` // Whether evidence has been staged for this dispute. HasEvidence bool `json:"has_evidence"` // Whether the last evidence submission was submitted past the due date. Defaults to `false` if no evidence submissions have occurred. If `true`, then delivery of the latest evidence is *not* guaranteed. @@ -289,9 +444,11 @@ type Dispute struct { // Time at which the object was created. Measured in seconds since the Unix epoch. Created int64 `json:"created"` // Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - Currency Currency `json:"currency"` - Evidence *DisputeEvidence `json:"evidence"` - EvidenceDetails *DisputeEvidenceDetails `json:"evidence_details"` + Currency Currency `json:"currency"` + // List of eligibility types that are included in `enhanced_evidence`. + EnhancedEligibilityTypes []DisputeEnhancedEligibilityType `json:"enhanced_eligibility_types"` + Evidence *DisputeEvidence `json:"evidence"` + EvidenceDetails *DisputeEvidenceDetails `json:"evidence_details"` // Unique identifier for the object. ID string `json:"id"` // If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute. diff --git a/event.go b/event.go index 52e11e97fa..c22d2f23cb 100644 --- a/event.go +++ b/event.go @@ -137,6 +137,7 @@ const ( EventTypeIssuingTokenCreated EventType = "issuing_token.created" EventTypeIssuingTokenUpdated EventType = "issuing_token.updated" EventTypeIssuingTransactionCreated EventType = "issuing_transaction.created" + EventTypeIssuingTransactionPurchaseDetailsReceiptUpdated EventType = "issuing_transaction.purchase_details_receipt_updated" EventTypeIssuingTransactionUpdated EventType = "issuing_transaction.updated" EventTypeMandateUpdated EventType = "mandate.updated" EventTypePaymentIntentAmountCapturableUpdated EventType = "payment_intent.amount_capturable_updated" @@ -180,6 +181,7 @@ const ( EventTypeRadarEarlyFraudWarningCreated EventType = "radar.early_fraud_warning.created" EventTypeRadarEarlyFraudWarningUpdated EventType = "radar.early_fraud_warning.updated" EventTypeRefundCreated EventType = "refund.created" + EventTypeRefundFailed EventType = "refund.failed" EventTypeRefundUpdated EventType = "refund.updated" EventTypeReportingReportRunFailed EventType = "reporting.report_run.failed" EventTypeReportingReportRunSucceeded EventType = "reporting.report_run.succeeded" diff --git a/forwarding_request.go b/forwarding_request.go index a513c005f1..92e7f57bad 100644 --- a/forwarding_request.go +++ b/forwarding_request.go @@ -60,6 +60,8 @@ type ForwardingRequestParams struct { Params `form:"*"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` + // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + Metadata map[string]string `form:"metadata"` // The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. PaymentMethod *string `form:"payment_method"` // The field kinds to be replaced in the forwarded request. @@ -75,6 +77,15 @@ func (p *ForwardingRequestParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } +// AddMetadata adds a new key-value pair to the Metadata. +func (p *ForwardingRequestParams) AddMetadata(key string, value string) { + if p.Metadata == nil { + p.Metadata = make(map[string]string) + } + + p.Metadata[key] = value +} + // Context about the request from Stripe's servers to the destination endpoint. type ForwardingRequestRequestContext struct { // The time it took in milliseconds for the destination endpoint to respond. @@ -143,6 +154,8 @@ type ForwardingRequest struct { ID string `json:"id"` // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. Livemode bool `json:"livemode"` + // 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"` // String representing the object's type. Objects of the same type share the same value. Object string `json:"object"` // The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. diff --git a/invoice.go b/invoice.go index 8ee2c4d2ed..1b6e129114 100644 --- a/invoice.go +++ b/invoice.go @@ -170,10 +170,15 @@ const ( InvoicePaymentSettingsPaymentMethodTypeGiropay InvoicePaymentSettingsPaymentMethodType = "giropay" InvoicePaymentSettingsPaymentMethodTypeGrabpay InvoicePaymentSettingsPaymentMethodType = "grabpay" InvoicePaymentSettingsPaymentMethodTypeIDEAL InvoicePaymentSettingsPaymentMethodType = "ideal" + InvoicePaymentSettingsPaymentMethodTypeJPCreditTransfer InvoicePaymentSettingsPaymentMethodType = "jp_credit_transfer" + InvoicePaymentSettingsPaymentMethodTypeKakaoPay InvoicePaymentSettingsPaymentMethodType = "kakao_pay" InvoicePaymentSettingsPaymentMethodTypeKonbini InvoicePaymentSettingsPaymentMethodType = "konbini" + InvoicePaymentSettingsPaymentMethodTypeKrCard InvoicePaymentSettingsPaymentMethodType = "kr_card" InvoicePaymentSettingsPaymentMethodTypeLink InvoicePaymentSettingsPaymentMethodType = "link" InvoicePaymentSettingsPaymentMethodTypeMultibanco InvoicePaymentSettingsPaymentMethodType = "multibanco" + InvoicePaymentSettingsPaymentMethodTypeNaverPay InvoicePaymentSettingsPaymentMethodType = "naver_pay" InvoicePaymentSettingsPaymentMethodTypeP24 InvoicePaymentSettingsPaymentMethodType = "p24" + InvoicePaymentSettingsPaymentMethodTypePayco InvoicePaymentSettingsPaymentMethodType = "payco" InvoicePaymentSettingsPaymentMethodTypePayNow InvoicePaymentSettingsPaymentMethodType = "paynow" InvoicePaymentSettingsPaymentMethodTypePaypal InvoicePaymentSettingsPaymentMethodType = "paypal" InvoicePaymentSettingsPaymentMethodTypePromptPay InvoicePaymentSettingsPaymentMethodType = "promptpay" @@ -270,6 +275,8 @@ type InvoiceParams struct { ApplicationFeeAmount *int64 `form:"application_fee_amount"` // Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. AutoAdvance *bool `form:"auto_advance"` + // The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false. + AutomaticallyFinalizesAt *int64 `form:"automatically_finalizes_at"` // Settings for automatic tax lookup for this invoice. AutomaticTax *InvoiceAutomaticTaxParams `form:"automatic_tax"` // Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`. @@ -704,7 +711,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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -1274,7 +1281,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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -2339,7 +2346,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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -2908,7 +2915,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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` Type *TaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` @@ -3106,6 +3113,8 @@ type InvoiceTotalDiscountAmount struct { // The discount that was applied to get this discount amount. Discount *Discount `json:"discount"` } + +// Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items. type InvoiceTotalPretaxCreditAmount struct { // The amount, in cents (or local equivalent), of the pretax credit amount. Amount int64 `json:"amount"` @@ -3336,7 +3345,8 @@ type Invoice struct { // The aggregate amounts calculated per discount across all line items. TotalDiscountAmounts []*InvoiceTotalDiscountAmount `json:"total_discount_amounts"` // The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax. - TotalExcludingTax int64 `json:"total_excluding_tax"` + TotalExcludingTax int64 `json:"total_excluding_tax"` + // Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items. TotalPretaxCreditAmounts []*InvoiceTotalPretaxCreditAmount `json:"total_pretax_credit_amounts"` // The aggregate amounts calculated per tax rate for all line items. TotalTaxAmounts []*InvoiceTotalTaxAmount `json:"total_tax_amounts"` diff --git a/invoicelineitem.go b/invoicelineitem.go index 2a9b668e96..d416969987 100644 --- a/invoicelineitem.go +++ b/invoicelineitem.go @@ -169,6 +169,8 @@ type InvoiceLineItemDiscountAmount struct { // The discount that was applied to get this discount amount. Discount *Discount `json:"discount"` } + +// Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item. type InvoiceLineItemPretaxCreditAmount struct { // The amount, in cents (or local equivalent), of the pretax credit amount. Amount int64 `json:"amount"` @@ -227,7 +229,8 @@ type InvoiceLineItem struct { Object string `json:"object"` Period *Period `json:"period"` // The plan of the subscription, if the line item is a subscription or a proration. - Plan *Plan `json:"plan"` + Plan *Plan `json:"plan"` + // Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item. PretaxCreditAmounts []*InvoiceLineItemPretaxCreditAmount `json:"pretax_credit_amounts"` // The price of the line item. Price *Price `json:"price"` diff --git a/issuing_card.go b/issuing_card.go index c69bb47221..3fd7a3c851 100644 --- a/issuing_card.go +++ b/issuing_card.go @@ -256,7 +256,7 @@ type IssuingCardParams struct { ReplacementFor *string `form:"replacement_for"` // If `replacement_for` is specified, this should indicate why that card is being replaced. ReplacementReason *string `form:"replacement_reason"` - // The second line to print on the card. + // The second line to print on the card. Max length: 24 characters. SecondLine *string `form:"second_line"` // The address where the card will be shipped. Shipping *IssuingCardShippingParams `form:"shipping"` diff --git a/loginlink.go b/loginlink.go index e9b73555b7..16acb4a2d9 100644 --- a/loginlink.go +++ b/loginlink.go @@ -6,7 +6,7 @@ package stripe -// Creates a single-use login link for a connected account to access the Express Dashboard. +// Creates a login link for a connected account to access the Express Dashboard. // // You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. type LoginLinkParams struct { diff --git a/loginlink/client.go b/loginlink/client.go index fd4858aad3..43b63d261f 100644 --- a/loginlink/client.go +++ b/loginlink/client.go @@ -20,14 +20,14 @@ type Client struct { Key string } -// Creates a single-use login link for a connected account to access the Express Dashboard. +// Creates a login link for a connected account to access the Express Dashboard. // // You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. func New(params *stripe.LoginLinkParams) (*stripe.LoginLink, error) { return getC().New(params) } -// Creates a single-use login link for a connected account to access the Express Dashboard. +// Creates a login link for a connected account to access the Express Dashboard. // // You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. func (c Client) New(params *stripe.LoginLinkParams) (*stripe.LoginLink, error) { diff --git a/mandate.go b/mandate.go index c7b25dd331..0ab7002d11 100644 --- a/mandate.go +++ b/mandate.go @@ -165,6 +165,8 @@ type MandatePaymentMethodDetailsBACSDebit struct { } type MandatePaymentMethodDetailsCard struct{} type MandatePaymentMethodDetailsCashApp struct{} +type MandatePaymentMethodDetailsKakaoPay struct{} +type MandatePaymentMethodDetailsKrCard struct{} type MandatePaymentMethodDetailsLink struct{} type MandatePaymentMethodDetailsPaypal struct { // The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. @@ -190,6 +192,8 @@ type MandatePaymentMethodDetails struct { BACSDebit *MandatePaymentMethodDetailsBACSDebit `json:"bacs_debit"` Card *MandatePaymentMethodDetailsCard `json:"card"` CashApp *MandatePaymentMethodDetailsCashApp `json:"cashapp"` + KakaoPay *MandatePaymentMethodDetailsKakaoPay `json:"kakao_pay"` + KrCard *MandatePaymentMethodDetailsKrCard `json:"kr_card"` Link *MandatePaymentMethodDetailsLink `json:"link"` Paypal *MandatePaymentMethodDetailsPaypal `json:"paypal"` RevolutPay *MandatePaymentMethodDetailsRevolutPay `json:"revolut_pay"` diff --git a/paymentintent.go b/paymentintent.go index e37e6cff67..806aa5027d 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -217,6 +217,14 @@ const ( PaymentIntentPaymentMethodOptionsAlipaySetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsAlipaySetupFutureUsage = "off_session" ) +// Controls when the funds will be captured from the customer's account. +type PaymentIntentPaymentMethodOptionsAlmaCaptureMethod string + +// List of values that PaymentIntentPaymentMethodOptionsAlmaCaptureMethod can take +const ( + PaymentIntentPaymentMethodOptionsAlmaCaptureMethodManual PaymentIntentPaymentMethodOptionsAlmaCaptureMethod = "manual" +) + // Controls when the funds will be captured from the customer's account. type PaymentIntentPaymentMethodOptionsAmazonPayCaptureMethod string @@ -606,6 +614,29 @@ const ( PaymentIntentPaymentMethodOptionsIDEALSetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsIDEALSetupFutureUsage = "off_session" ) +// Controls when the funds will be captured from the customer's account. +type PaymentIntentPaymentMethodOptionsKakaoPayCaptureMethod string + +// List of values that PaymentIntentPaymentMethodOptionsKakaoPayCaptureMethod can take +const ( + PaymentIntentPaymentMethodOptionsKakaoPayCaptureMethodManual PaymentIntentPaymentMethodOptionsKakaoPayCaptureMethod = "manual" +) + +// Indicates that you intend to make future payments with this PaymentIntent's payment method. +// +// If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. +// +// If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. +// +// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). +type PaymentIntentPaymentMethodOptionsKakaoPaySetupFutureUsage string + +// List of values that PaymentIntentPaymentMethodOptionsKakaoPaySetupFutureUsage can take +const ( + PaymentIntentPaymentMethodOptionsKakaoPaySetupFutureUsageNone PaymentIntentPaymentMethodOptionsKakaoPaySetupFutureUsage = "none" + PaymentIntentPaymentMethodOptionsKakaoPaySetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsKakaoPaySetupFutureUsage = "off_session" +) + // Controls when the funds will be captured from the customer's account. type PaymentIntentPaymentMethodOptionsKlarnaCaptureMethod string @@ -642,6 +673,29 @@ const ( PaymentIntentPaymentMethodOptionsKonbiniSetupFutureUsageNone PaymentIntentPaymentMethodOptionsKonbiniSetupFutureUsage = "none" ) +// Controls when the funds will be captured from the customer's account. +type PaymentIntentPaymentMethodOptionsKrCardCaptureMethod string + +// List of values that PaymentIntentPaymentMethodOptionsKrCardCaptureMethod can take +const ( + PaymentIntentPaymentMethodOptionsKrCardCaptureMethodManual PaymentIntentPaymentMethodOptionsKrCardCaptureMethod = "manual" +) + +// Indicates that you intend to make future payments with this PaymentIntent's payment method. +// +// If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. +// +// If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. +// +// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). +type PaymentIntentPaymentMethodOptionsKrCardSetupFutureUsage string + +// List of values that PaymentIntentPaymentMethodOptionsKrCardSetupFutureUsage can take +const ( + PaymentIntentPaymentMethodOptionsKrCardSetupFutureUsageNone PaymentIntentPaymentMethodOptionsKrCardSetupFutureUsage = "none" + PaymentIntentPaymentMethodOptionsKrCardSetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsKrCardSetupFutureUsage = "off_session" +) + // Controls when the funds will be captured from the customer's account. type PaymentIntentPaymentMethodOptionsLinkCaptureMethod string @@ -701,6 +755,14 @@ const ( PaymentIntentPaymentMethodOptionsMultibancoSetupFutureUsageNone PaymentIntentPaymentMethodOptionsMultibancoSetupFutureUsage = "none" ) +// Controls when the funds will be captured from the customer's account. +type PaymentIntentPaymentMethodOptionsNaverPayCaptureMethod string + +// List of values that PaymentIntentPaymentMethodOptionsNaverPayCaptureMethod can take +const ( + PaymentIntentPaymentMethodOptionsNaverPayCaptureMethodManual PaymentIntentPaymentMethodOptionsNaverPayCaptureMethod = "manual" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -729,6 +791,14 @@ const ( PaymentIntentPaymentMethodOptionsP24SetupFutureUsageNone PaymentIntentPaymentMethodOptionsP24SetupFutureUsage = "none" ) +// Controls when the funds will be captured from the customer's account. +type PaymentIntentPaymentMethodOptionsPaycoCaptureMethod string + +// List of values that PaymentIntentPaymentMethodOptionsPaycoCaptureMethod can take +const ( + PaymentIntentPaymentMethodOptionsPaycoCaptureMethodManual PaymentIntentPaymentMethodOptionsPaycoCaptureMethod = "manual" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -817,6 +887,14 @@ const ( PaymentIntentPaymentMethodOptionsRevolutPaySetupFutureUsageOffSession PaymentIntentPaymentMethodOptionsRevolutPaySetupFutureUsage = "off_session" ) +// Controls when the funds will be captured from the customer's account. +type PaymentIntentPaymentMethodOptionsSamsungPayCaptureMethod string + +// List of values that PaymentIntentPaymentMethodOptionsSamsungPayCaptureMethod can take +const ( + PaymentIntentPaymentMethodOptionsSamsungPayCaptureMethodManual PaymentIntentPaymentMethodOptionsSamsungPayCaptureMethod = "manual" +) + // Indicates that you intend to make future payments with this PaymentIntent's payment method. // // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1113,6 +1191,8 @@ type PaymentIntentPaymentMethodDataParams struct { Alipay *PaymentMethodAlipayParams `form:"alipay"` // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. AllowRedisplay *string `form:"allow_redisplay"` + // If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + Alma *PaymentMethodAlmaParams `form:"alma"` // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. AmazonPay *PaymentMethodAmazonPayParams `form:"amazon_pay"` // If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. @@ -1143,10 +1223,14 @@ type PaymentIntentPaymentMethodDataParams struct { IDEAL *PaymentMethodIDEALParams `form:"ideal"` // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. InteracPresent *PaymentMethodInteracPresentParams `form:"interac_present"` + // If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + KakaoPay *PaymentMethodKakaoPayParams `form:"kakao_pay"` // If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. Klarna *PaymentMethodKlarnaParams `form:"klarna"` // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. Konbini *PaymentMethodKonbiniParams `form:"konbini"` + // If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + KrCard *PaymentMethodKrCardParams `form:"kr_card"` // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. Link *PaymentMethodLinkParams `form:"link"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -1155,10 +1239,14 @@ type PaymentIntentPaymentMethodDataParams struct { Mobilepay *PaymentMethodMobilepayParams `form:"mobilepay"` // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. Multibanco *PaymentMethodMultibancoParams `form:"multibanco"` + // If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + NaverPay *PaymentMethodNaverPayParams `form:"naver_pay"` // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. OXXO *PaymentMethodOXXOParams `form:"oxxo"` // If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. P24 *PaymentMethodP24Params `form:"p24"` + // If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Payco *PaymentMethodPaycoParams `form:"payco"` // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. PayNow *PaymentMethodPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. @@ -1171,6 +1259,8 @@ type PaymentIntentPaymentMethodDataParams struct { RadarOptions *PaymentIntentPaymentMethodDataRadarOptionsParams `form:"radar_options"` // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. RevolutPay *PaymentMethodRevolutPayParams `form:"revolut_pay"` + // If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + SamsungPay *PaymentMethodSamsungPayParams `form:"samsung_pay"` // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. SEPADebit *PaymentMethodSEPADebitParams `form:"sepa_debit"` // If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -1289,6 +1379,16 @@ type PaymentIntentPaymentMethodOptionsAlipayParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. +type PaymentIntentPaymentMethodOptionsAlmaParams struct { + // Controls when the funds are captured from the customer's account. + // + // If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + // + // If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + CaptureMethod *string `form:"capture_method"` +} + // If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. type PaymentIntentPaymentMethodOptionsAmazonPayParams struct { // Controls when the funds are captured from the customer's account. @@ -1686,6 +1786,24 @@ type PaymentIntentPaymentMethodOptionsIDEALParams struct { // If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. type PaymentIntentPaymentMethodOptionsInteracPresentParams struct{} +// If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. +type PaymentIntentPaymentMethodOptionsKakaoPayParams struct { + // Controls when the funds are captured from the customer's account. + // + // If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + // + // If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + CaptureMethod *string `form:"capture_method"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage *string `form:"setup_future_usage"` +} + // If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. type PaymentIntentPaymentMethodOptionsKlarnaParams struct { // Controls when the funds are captured from the customer's account. @@ -1730,6 +1848,24 @@ type PaymentIntentPaymentMethodOptionsKonbiniParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. +type PaymentIntentPaymentMethodOptionsKrCardParams struct { + // Controls when the funds are captured from the customer's account. + // + // If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + // + // If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + CaptureMethod *string `form:"capture_method"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage *string `form:"setup_future_usage"` +} + // If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. type PaymentIntentPaymentMethodOptionsLinkParams struct { // Controls when the funds are captured from the customer's account. @@ -1787,6 +1923,16 @@ type PaymentIntentPaymentMethodOptionsMultibancoParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. +type PaymentIntentPaymentMethodOptionsNaverPayParams struct { + // Controls when the funds are captured from the customer's account. + // + // If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + // + // If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + CaptureMethod *string `form:"capture_method"` +} + // If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. type PaymentIntentPaymentMethodOptionsOXXOParams struct { // The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1819,6 +1965,16 @@ type PaymentIntentPaymentMethodOptionsP24Params struct { TOSShownAndAccepted *bool `form:"tos_shown_and_accepted"` } +// If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. +type PaymentIntentPaymentMethodOptionsPaycoParams struct { + // Controls when the funds are captured from the customer's account. + // + // If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + // + // If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + CaptureMethod *string `form:"capture_method"` +} + // If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. type PaymentIntentPaymentMethodOptionsPayNowParams struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1905,6 +2061,16 @@ type PaymentIntentPaymentMethodOptionsRevolutPayParams struct { SetupFutureUsage *string `form:"setup_future_usage"` } +// If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. +type PaymentIntentPaymentMethodOptionsSamsungPayParams struct { + // Controls when the funds are captured from the customer's account. + // + // If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + // + // If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + CaptureMethod *string `form:"capture_method"` +} + // Additional fields for Mandate creation type PaymentIntentPaymentMethodOptionsSEPADebitMandateOptionsParams struct{} @@ -2066,6 +2232,8 @@ type PaymentIntentPaymentMethodOptionsParams struct { AfterpayClearpay *PaymentIntentPaymentMethodOptionsAfterpayClearpayParams `form:"afterpay_clearpay"` // If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options. Alipay *PaymentIntentPaymentMethodOptionsAlipayParams `form:"alipay"` + // If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + Alma *PaymentIntentPaymentMethodOptionsAlmaParams `form:"alma"` // If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. AmazonPay *PaymentIntentPaymentMethodOptionsAmazonPayParams `form:"amazon_pay"` // If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options. @@ -2098,20 +2266,28 @@ type PaymentIntentPaymentMethodOptionsParams struct { IDEAL *PaymentIntentPaymentMethodOptionsIDEALParams `form:"ideal"` // If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. InteracPresent *PaymentIntentPaymentMethodOptionsInteracPresentParams `form:"interac_present"` + // If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + KakaoPay *PaymentIntentPaymentMethodOptionsKakaoPayParams `form:"kakao_pay"` // If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. Klarna *PaymentIntentPaymentMethodOptionsKlarnaParams `form:"klarna"` // If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options. Konbini *PaymentIntentPaymentMethodOptionsKonbiniParams `form:"konbini"` + // If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + KrCard *PaymentIntentPaymentMethodOptionsKrCardParams `form:"kr_card"` // If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. Link *PaymentIntentPaymentMethodOptionsLinkParams `form:"link"` // If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. Mobilepay *PaymentIntentPaymentMethodOptionsMobilepayParams `form:"mobilepay"` // If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. Multibanco *PaymentIntentPaymentMethodOptionsMultibancoParams `form:"multibanco"` + // If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + NaverPay *PaymentIntentPaymentMethodOptionsNaverPayParams `form:"naver_pay"` // If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. OXXO *PaymentIntentPaymentMethodOptionsOXXOParams `form:"oxxo"` // If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options. P24 *PaymentIntentPaymentMethodOptionsP24Params `form:"p24"` + // If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + Payco *PaymentIntentPaymentMethodOptionsPaycoParams `form:"payco"` // If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. PayNow *PaymentIntentPaymentMethodOptionsPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options. @@ -2122,6 +2298,8 @@ type PaymentIntentPaymentMethodOptionsParams struct { PromptPay *PaymentIntentPaymentMethodOptionsPromptPayParams `form:"promptpay"` // If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options. RevolutPay *PaymentIntentPaymentMethodOptionsRevolutPayParams `form:"revolut_pay"` + // If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + SamsungPay *PaymentIntentPaymentMethodOptionsSamsungPayParams `form:"samsung_pay"` // If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. SEPADebit *PaymentIntentPaymentMethodOptionsSEPADebitParams `form:"sepa_debit"` // If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options. @@ -2297,11 +2475,9 @@ func (p *PaymentIntentSearchParams) AddExpand(f string) { // Manually reconcile the remaining amount for a customer_balance PaymentIntent. type PaymentIntentApplyCustomerBalanceParams struct { Params `form:"*"` - // Amount that you intend to apply to this PaymentIntent from the customer's cash balance. - // - // A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). + // Amount that you intend to apply to this PaymentIntent from the customer's cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. // - // The maximum amount is the amount of the PaymentIntent. + // A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent. // // When you omit the amount, it defaults to the remaining amount requested on the PaymentIntent. Amount *int64 `form:"amount"` @@ -2963,6 +3139,10 @@ type PaymentIntentPaymentMethodOptionsAlipay struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage PaymentIntentPaymentMethodOptionsAlipaySetupFutureUsage `json:"setup_future_usage"` } +type PaymentIntentPaymentMethodOptionsAlma struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod PaymentIntentPaymentMethodOptionsAlmaCaptureMethod `json:"capture_method"` +} type PaymentIntentPaymentMethodOptionsAmazonPay struct { // Controls when the funds will be captured from the customer's account. CaptureMethod PaymentIntentPaymentMethodOptionsAmazonPayCaptureMethod `json:"capture_method"` @@ -3212,6 +3392,18 @@ type PaymentIntentPaymentMethodOptionsIDEAL struct { SetupFutureUsage PaymentIntentPaymentMethodOptionsIDEALSetupFutureUsage `json:"setup_future_usage"` } type PaymentIntentPaymentMethodOptionsInteracPresent struct{} +type PaymentIntentPaymentMethodOptionsKakaoPay struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod PaymentIntentPaymentMethodOptionsKakaoPayCaptureMethod `json:"capture_method"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage PaymentIntentPaymentMethodOptionsKakaoPaySetupFutureUsage `json:"setup_future_usage"` +} type PaymentIntentPaymentMethodOptionsKlarna struct { // Controls when the funds will be captured from the customer's account. CaptureMethod PaymentIntentPaymentMethodOptionsKlarnaCaptureMethod `json:"capture_method"` @@ -3244,6 +3436,18 @@ type PaymentIntentPaymentMethodOptionsKonbini struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage PaymentIntentPaymentMethodOptionsKonbiniSetupFutureUsage `json:"setup_future_usage"` } +type PaymentIntentPaymentMethodOptionsKrCard struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod PaymentIntentPaymentMethodOptionsKrCardCaptureMethod `json:"capture_method"` + // Indicates that you intend to make future payments with this PaymentIntent's payment method. + // + // If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + // + // If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + // + // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + SetupFutureUsage PaymentIntentPaymentMethodOptionsKrCardSetupFutureUsage `json:"setup_future_usage"` +} type PaymentIntentPaymentMethodOptionsLink struct { // Controls when the funds will be captured from the customer's account. CaptureMethod PaymentIntentPaymentMethodOptionsLinkCaptureMethod `json:"capture_method"` @@ -3281,6 +3485,10 @@ type PaymentIntentPaymentMethodOptionsMultibanco struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage PaymentIntentPaymentMethodOptionsMultibancoSetupFutureUsage `json:"setup_future_usage"` } +type PaymentIntentPaymentMethodOptionsNaverPay struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod PaymentIntentPaymentMethodOptionsNaverPayCaptureMethod `json:"capture_method"` +} type PaymentIntentPaymentMethodOptionsOXXO struct { // The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. ExpiresAfterDays int64 `json:"expires_after_days"` @@ -3303,6 +3511,10 @@ type PaymentIntentPaymentMethodOptionsP24 struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage PaymentIntentPaymentMethodOptionsP24SetupFutureUsage `json:"setup_future_usage"` } +type PaymentIntentPaymentMethodOptionsPayco struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod PaymentIntentPaymentMethodOptionsPaycoCaptureMethod `json:"capture_method"` +} type PaymentIntentPaymentMethodOptionsPayNow struct { // Indicates that you intend to make future payments with this PaymentIntent's payment method. // @@ -3365,6 +3577,10 @@ type PaymentIntentPaymentMethodOptionsRevolutPay struct { // When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). SetupFutureUsage PaymentIntentPaymentMethodOptionsRevolutPaySetupFutureUsage `json:"setup_future_usage"` } +type PaymentIntentPaymentMethodOptionsSamsungPay struct { + // Controls when the funds will be captured from the customer's account. + CaptureMethod PaymentIntentPaymentMethodOptionsSamsungPayCaptureMethod `json:"capture_method"` +} type PaymentIntentPaymentMethodOptionsSEPADebitMandateOptions struct{} type PaymentIntentPaymentMethodOptionsSEPADebit struct { MandateOptions *PaymentIntentPaymentMethodOptionsSEPADebitMandateOptions `json:"mandate_options"` @@ -3475,6 +3691,7 @@ type PaymentIntentPaymentMethodOptions struct { Affirm *PaymentIntentPaymentMethodOptionsAffirm `json:"affirm"` AfterpayClearpay *PaymentIntentPaymentMethodOptionsAfterpayClearpay `json:"afterpay_clearpay"` Alipay *PaymentIntentPaymentMethodOptionsAlipay `json:"alipay"` + Alma *PaymentIntentPaymentMethodOptionsAlma `json:"alma"` AmazonPay *PaymentIntentPaymentMethodOptionsAmazonPay `json:"amazon_pay"` AUBECSDebit *PaymentIntentPaymentMethodOptionsAUBECSDebit `json:"au_becs_debit"` BACSDebit *PaymentIntentPaymentMethodOptionsBACSDebit `json:"bacs_debit"` @@ -3491,18 +3708,23 @@ type PaymentIntentPaymentMethodOptions struct { Grabpay *PaymentIntentPaymentMethodOptionsGrabpay `json:"grabpay"` IDEAL *PaymentIntentPaymentMethodOptionsIDEAL `json:"ideal"` InteracPresent *PaymentIntentPaymentMethodOptionsInteracPresent `json:"interac_present"` + KakaoPay *PaymentIntentPaymentMethodOptionsKakaoPay `json:"kakao_pay"` Klarna *PaymentIntentPaymentMethodOptionsKlarna `json:"klarna"` Konbini *PaymentIntentPaymentMethodOptionsKonbini `json:"konbini"` + KrCard *PaymentIntentPaymentMethodOptionsKrCard `json:"kr_card"` Link *PaymentIntentPaymentMethodOptionsLink `json:"link"` Mobilepay *PaymentIntentPaymentMethodOptionsMobilepay `json:"mobilepay"` Multibanco *PaymentIntentPaymentMethodOptionsMultibanco `json:"multibanco"` + NaverPay *PaymentIntentPaymentMethodOptionsNaverPay `json:"naver_pay"` OXXO *PaymentIntentPaymentMethodOptionsOXXO `json:"oxxo"` P24 *PaymentIntentPaymentMethodOptionsP24 `json:"p24"` + Payco *PaymentIntentPaymentMethodOptionsPayco `json:"payco"` PayNow *PaymentIntentPaymentMethodOptionsPayNow `json:"paynow"` Paypal *PaymentIntentPaymentMethodOptionsPaypal `json:"paypal"` Pix *PaymentIntentPaymentMethodOptionsPix `json:"pix"` PromptPay *PaymentIntentPaymentMethodOptionsPromptPay `json:"promptpay"` RevolutPay *PaymentIntentPaymentMethodOptionsRevolutPay `json:"revolut_pay"` + SamsungPay *PaymentIntentPaymentMethodOptionsSamsungPay `json:"samsung_pay"` SEPADebit *PaymentIntentPaymentMethodOptionsSEPADebit `json:"sepa_debit"` Sofort *PaymentIntentPaymentMethodOptionsSofort `json:"sofort"` Swish *PaymentIntentPaymentMethodOptionsSwish `json:"swish"` diff --git a/paymentlink.go b/paymentlink.go index 9d19dc01a6..0cb18df26b 100644 --- a/paymentlink.go +++ b/paymentlink.go @@ -136,6 +136,7 @@ const ( PaymentLinkPaymentMethodTypeAffirm PaymentLinkPaymentMethodType = "affirm" PaymentLinkPaymentMethodTypeAfterpayClearpay PaymentLinkPaymentMethodType = "afterpay_clearpay" PaymentLinkPaymentMethodTypeAlipay PaymentLinkPaymentMethodType = "alipay" + PaymentLinkPaymentMethodTypeAlma PaymentLinkPaymentMethodType = "alma" PaymentLinkPaymentMethodTypeAUBECSDebit PaymentLinkPaymentMethodType = "au_becs_debit" PaymentLinkPaymentMethodTypeBACSDebit PaymentLinkPaymentMethodType = "bacs_debit" PaymentLinkPaymentMethodTypeBancontact PaymentLinkPaymentMethodType = "bancontact" diff --git a/paymentmethod.go b/paymentmethod.go index 7773e64260..35ecf2c17b 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -208,6 +208,44 @@ const ( PaymentMethodInteracPresentReadMethodMagneticStripeTrack2 PaymentMethodInteracPresentReadMethod = "magnetic_stripe_track2" ) +// The local credit or debit card brand. +type PaymentMethodKrCardBrand string + +// List of values that PaymentMethodKrCardBrand can take +const ( + PaymentMethodKrCardBrandBc PaymentMethodKrCardBrand = "bc" + PaymentMethodKrCardBrandCiti PaymentMethodKrCardBrand = "citi" + PaymentMethodKrCardBrandHana PaymentMethodKrCardBrand = "hana" + PaymentMethodKrCardBrandHyundai PaymentMethodKrCardBrand = "hyundai" + PaymentMethodKrCardBrandJeju PaymentMethodKrCardBrand = "jeju" + PaymentMethodKrCardBrandJeonbuk PaymentMethodKrCardBrand = "jeonbuk" + PaymentMethodKrCardBrandKakaobank PaymentMethodKrCardBrand = "kakaobank" + PaymentMethodKrCardBrandKbank PaymentMethodKrCardBrand = "kbank" + PaymentMethodKrCardBrandKdbbank PaymentMethodKrCardBrand = "kdbbank" + PaymentMethodKrCardBrandKookmin PaymentMethodKrCardBrand = "kookmin" + PaymentMethodKrCardBrandKwangju PaymentMethodKrCardBrand = "kwangju" + PaymentMethodKrCardBrandLotte PaymentMethodKrCardBrand = "lotte" + PaymentMethodKrCardBrandMg PaymentMethodKrCardBrand = "mg" + PaymentMethodKrCardBrandNh PaymentMethodKrCardBrand = "nh" + PaymentMethodKrCardBrandPost PaymentMethodKrCardBrand = "post" + PaymentMethodKrCardBrandSamsung PaymentMethodKrCardBrand = "samsung" + PaymentMethodKrCardBrandSavingsbank PaymentMethodKrCardBrand = "savingsbank" + PaymentMethodKrCardBrandShinhan PaymentMethodKrCardBrand = "shinhan" + PaymentMethodKrCardBrandShinhyup PaymentMethodKrCardBrand = "shinhyup" + PaymentMethodKrCardBrandSuhyup PaymentMethodKrCardBrand = "suhyup" + PaymentMethodKrCardBrandTossbank PaymentMethodKrCardBrand = "tossbank" + PaymentMethodKrCardBrandWoori PaymentMethodKrCardBrand = "woori" +) + +// Whether to fund this transaction with Naver Pay points or a card. +type PaymentMethodNaverPayFunding string + +// List of values that PaymentMethodNaverPayFunding can take +const ( + PaymentMethodNaverPayFundingCard PaymentMethodNaverPayFunding = "card" + PaymentMethodNaverPayFundingPoints PaymentMethodNaverPayFunding = "points" +) + // The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. type PaymentMethodType string @@ -217,6 +255,7 @@ const ( PaymentMethodTypeAffirm PaymentMethodType = "affirm" PaymentMethodTypeAfterpayClearpay PaymentMethodType = "afterpay_clearpay" PaymentMethodTypeAlipay PaymentMethodType = "alipay" + PaymentMethodTypeAlma PaymentMethodType = "alma" PaymentMethodTypeAmazonPay PaymentMethodType = "amazon_pay" PaymentMethodTypeAUBECSDebit PaymentMethodType = "au_becs_debit" PaymentMethodTypeBACSDebit PaymentMethodType = "bacs_debit" @@ -233,18 +272,23 @@ const ( PaymentMethodTypeGrabpay PaymentMethodType = "grabpay" PaymentMethodTypeIDEAL PaymentMethodType = "ideal" PaymentMethodTypeInteracPresent PaymentMethodType = "interac_present" + PaymentMethodTypeKakaoPay PaymentMethodType = "kakao_pay" PaymentMethodTypeKlarna PaymentMethodType = "klarna" PaymentMethodTypeKonbini PaymentMethodType = "konbini" + PaymentMethodTypeKrCard PaymentMethodType = "kr_card" PaymentMethodTypeLink PaymentMethodType = "link" PaymentMethodTypeMobilepay PaymentMethodType = "mobilepay" PaymentMethodTypeMultibanco PaymentMethodType = "multibanco" + PaymentMethodTypeNaverPay PaymentMethodType = "naver_pay" PaymentMethodTypeOXXO PaymentMethodType = "oxxo" PaymentMethodTypeP24 PaymentMethodType = "p24" + PaymentMethodTypePayco PaymentMethodType = "payco" PaymentMethodTypePayNow PaymentMethodType = "paynow" PaymentMethodTypePaypal PaymentMethodType = "paypal" PaymentMethodTypePix PaymentMethodType = "pix" PaymentMethodTypePromptPay PaymentMethodType = "promptpay" PaymentMethodTypeRevolutPay PaymentMethodType = "revolut_pay" + PaymentMethodTypeSamsungPay PaymentMethodType = "samsung_pay" PaymentMethodTypeSEPADebit PaymentMethodType = "sepa_debit" PaymentMethodTypeSofort PaymentMethodType = "sofort" PaymentMethodTypeSwish PaymentMethodType = "swish" @@ -348,6 +392,9 @@ type PaymentMethodAfterpayClearpayParams struct{} // If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. type PaymentMethodAlipayParams struct{} +// If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. +type PaymentMethodAlmaParams struct{} + // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. type PaymentMethodAmazonPayParams struct{} @@ -441,13 +488,16 @@ type PaymentMethodGrabpayParams struct{} // If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. type PaymentMethodIDEALParams struct { - // The customer's bank. + // The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. Bank *string `form:"bank"` } // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. type PaymentMethodInteracPresentParams struct{} +// If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. +type PaymentMethodKakaoPayParams struct{} + // Customer's date of birth type PaymentMethodKlarnaDOBParams struct { // The day of birth, between 1 and 31. @@ -467,6 +517,9 @@ type PaymentMethodKlarnaParams struct { // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. type PaymentMethodKonbiniParams struct{} +// If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. +type PaymentMethodKrCardParams struct{} + // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. type PaymentMethodLinkParams struct{} @@ -476,6 +529,12 @@ type PaymentMethodMobilepayParams struct{} // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. type PaymentMethodMultibancoParams struct{} +// If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. +type PaymentMethodNaverPayParams struct { + // Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Funding *string `form:"funding"` +} + // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. type PaymentMethodOXXOParams struct{} @@ -485,6 +544,9 @@ type PaymentMethodP24Params struct { Bank *string `form:"bank"` } +// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. +type PaymentMethodPaycoParams struct{} + // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. type PaymentMethodPayNowParams struct{} @@ -506,6 +568,9 @@ type PaymentMethodRadarOptionsParams struct { // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. type PaymentMethodRevolutPayParams struct{} +// If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. +type PaymentMethodSamsungPayParams struct{} + // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. type PaymentMethodSEPADebitParams struct { // IBAN of the bank account. @@ -559,6 +624,8 @@ type PaymentMethodParams struct { Alipay *PaymentMethodAlipayParams `form:"alipay"` // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. AllowRedisplay *string `form:"allow_redisplay"` + // If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + Alma *PaymentMethodAlmaParams `form:"alma"` // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. AmazonPay *PaymentMethodAmazonPayParams `form:"amazon_pay"` // If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. @@ -593,10 +660,14 @@ type PaymentMethodParams struct { IDEAL *PaymentMethodIDEALParams `form:"ideal"` // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. InteracPresent *PaymentMethodInteracPresentParams `form:"interac_present"` + // If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + KakaoPay *PaymentMethodKakaoPayParams `form:"kakao_pay"` // If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. Klarna *PaymentMethodKlarnaParams `form:"klarna"` // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. Konbini *PaymentMethodKonbiniParams `form:"konbini"` + // If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + KrCard *PaymentMethodKrCardParams `form:"kr_card"` // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. Link *PaymentMethodLinkParams `form:"link"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -605,10 +676,14 @@ type PaymentMethodParams struct { Mobilepay *PaymentMethodMobilepayParams `form:"mobilepay"` // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. Multibanco *PaymentMethodMultibancoParams `form:"multibanco"` + // If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + NaverPay *PaymentMethodNaverPayParams `form:"naver_pay"` // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. OXXO *PaymentMethodOXXOParams `form:"oxxo"` // If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. P24 *PaymentMethodP24Params `form:"p24"` + // If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Payco *PaymentMethodPaycoParams `form:"payco"` // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. PayNow *PaymentMethodPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. @@ -621,6 +696,8 @@ type PaymentMethodParams struct { RadarOptions *PaymentMethodRadarOptionsParams `form:"radar_options"` // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. RevolutPay *PaymentMethodRevolutPayParams `form:"revolut_pay"` + // If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + SamsungPay *PaymentMethodSamsungPayParams `form:"samsung_pay"` // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. SEPADebit *PaymentMethodSEPADebitParams `form:"sepa_debit"` // If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -711,6 +788,7 @@ type PaymentMethodACSSDebit struct { type PaymentMethodAffirm struct{} type PaymentMethodAfterpayClearpay struct{} type PaymentMethodAlipay struct{} +type PaymentMethodAlma struct{} type PaymentMethodAmazonPay struct{} type PaymentMethodAUBECSDebit struct { // Six-digit number identifying bank and branch associated with this bank account. @@ -1072,6 +1150,7 @@ type PaymentMethodInteracPresent struct { // How card details were read in this transaction. ReadMethod PaymentMethodInteracPresentReadMethod `json:"read_method"` } +type PaymentMethodKakaoPay struct{} // The customer's date of birth, if provided. type PaymentMethodKlarnaDOB struct { @@ -1087,6 +1166,12 @@ type PaymentMethodKlarna struct { DOB *PaymentMethodKlarnaDOB `json:"dob"` } type PaymentMethodKonbini struct{} +type PaymentMethodKrCard struct { + // The local credit or debit card brand. + Brand PaymentMethodKrCardBrand `json:"brand"` + // The last four digits of the card. This may not be present for American Express cards. + Last4 string `json:"last4"` +} type PaymentMethodLink struct { // Account owner's email address. Email string `json:"email"` @@ -1096,11 +1181,16 @@ type PaymentMethodLink struct { } type PaymentMethodMobilepay struct{} type PaymentMethodMultibanco struct{} +type PaymentMethodNaverPay struct { + // Whether to fund this transaction with Naver Pay points or a card. + Funding PaymentMethodNaverPayFunding `json:"funding"` +} type PaymentMethodOXXO struct{} type PaymentMethodP24 struct { // The customer's bank, if provided. Bank string `json:"bank"` } +type PaymentMethodPayco struct{} type PaymentMethodPayNow struct{} type PaymentMethodPaypal struct { // Owner's email. Values are provided by PayPal directly @@ -1118,6 +1208,7 @@ type PaymentMethodRadarOptions struct { Session string `json:"session"` } type PaymentMethodRevolutPay struct{} +type PaymentMethodSamsungPay struct{} // Information about the object that generated this PaymentMethod. type PaymentMethodSEPADebitGeneratedFrom struct { @@ -1201,6 +1292,7 @@ type PaymentMethod struct { Alipay *PaymentMethodAlipay `json:"alipay"` // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. AllowRedisplay PaymentMethodAllowRedisplay `json:"allow_redisplay"` + Alma *PaymentMethodAlma `json:"alma"` AmazonPay *PaymentMethodAmazonPay `json:"amazon_pay"` AUBECSDebit *PaymentMethodAUBECSDebit `json:"au_becs_debit"` BACSDebit *PaymentMethodBACSDebit `json:"bacs_debit"` @@ -1224,8 +1316,10 @@ type PaymentMethod struct { ID string `json:"id"` IDEAL *PaymentMethodIDEAL `json:"ideal"` InteracPresent *PaymentMethodInteracPresent `json:"interac_present"` + KakaoPay *PaymentMethodKakaoPay `json:"kakao_pay"` Klarna *PaymentMethodKlarna `json:"klarna"` Konbini *PaymentMethodKonbini `json:"konbini"` + KrCard *PaymentMethodKrCard `json:"kr_card"` Link *PaymentMethodLink `json:"link"` // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. Livemode bool `json:"livemode"` @@ -1233,10 +1327,12 @@ type PaymentMethod struct { Metadata map[string]string `json:"metadata"` Mobilepay *PaymentMethodMobilepay `json:"mobilepay"` Multibanco *PaymentMethodMultibanco `json:"multibanco"` + NaverPay *PaymentMethodNaverPay `json:"naver_pay"` // String representing the object's type. Objects of the same type share the same value. Object string `json:"object"` OXXO *PaymentMethodOXXO `json:"oxxo"` P24 *PaymentMethodP24 `json:"p24"` + Payco *PaymentMethodPayco `json:"payco"` PayNow *PaymentMethodPayNow `json:"paynow"` Paypal *PaymentMethodPaypal `json:"paypal"` Pix *PaymentMethodPix `json:"pix"` @@ -1244,6 +1340,7 @@ type PaymentMethod struct { // Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. RadarOptions *PaymentMethodRadarOptions `json:"radar_options"` RevolutPay *PaymentMethodRevolutPay `json:"revolut_pay"` + SamsungPay *PaymentMethodSamsungPay `json:"samsung_pay"` SEPADebit *PaymentMethodSEPADebit `json:"sepa_debit"` Sofort *PaymentMethodSofort `json:"sofort"` Swish *PaymentMethodSwish `json:"swish"` diff --git a/paymentmethodconfiguration.go b/paymentmethodconfiguration.go index 73f390e659..9e24fa887e 100644 --- a/paymentmethodconfiguration.go +++ b/paymentmethodconfiguration.go @@ -82,6 +82,25 @@ const ( PaymentMethodConfigurationAlipayDisplayPreferenceValueOn PaymentMethodConfigurationAlipayDisplayPreferenceValue = "on" ) +// The account's display preference. +type PaymentMethodConfigurationAlmaDisplayPreferencePreference string + +// List of values that PaymentMethodConfigurationAlmaDisplayPreferencePreference can take +const ( + PaymentMethodConfigurationAlmaDisplayPreferencePreferenceNone PaymentMethodConfigurationAlmaDisplayPreferencePreference = "none" + PaymentMethodConfigurationAlmaDisplayPreferencePreferenceOff PaymentMethodConfigurationAlmaDisplayPreferencePreference = "off" + PaymentMethodConfigurationAlmaDisplayPreferencePreferenceOn PaymentMethodConfigurationAlmaDisplayPreferencePreference = "on" +) + +// The effective display preference value. +type PaymentMethodConfigurationAlmaDisplayPreferenceValue string + +// List of values that PaymentMethodConfigurationAlmaDisplayPreferenceValue can take +const ( + PaymentMethodConfigurationAlmaDisplayPreferenceValueOff PaymentMethodConfigurationAlmaDisplayPreferenceValue = "off" + PaymentMethodConfigurationAlmaDisplayPreferenceValueOn PaymentMethodConfigurationAlmaDisplayPreferenceValue = "on" +) + // The account's display preference. type PaymentMethodConfigurationAmazonPayDisplayPreferencePreference string @@ -828,6 +847,18 @@ type PaymentMethodConfigurationAlipayParams struct { DisplayPreference *PaymentMethodConfigurationAlipayDisplayPreferenceParams `form:"display_preference"` } +// Whether or not the payment method should be displayed. +type PaymentMethodConfigurationAlmaDisplayPreferenceParams struct { + // The account's preference for whether or not to display this payment method. + Preference *string `form:"preference"` +} + +// Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments. +type PaymentMethodConfigurationAlmaParams struct { + // Whether or not the payment method should be displayed. + DisplayPreference *PaymentMethodConfigurationAlmaDisplayPreferenceParams `form:"display_preference"` +} + // Whether or not the payment method should be displayed. type PaymentMethodConfigurationAmazonPayDisplayPreferenceParams struct { // The account's preference for whether or not to display this payment method. @@ -1242,7 +1273,7 @@ type PaymentMethodConfigurationUSBankAccountDisplayPreferenceParams struct { Preference *string `form:"preference"` } -// Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. +// Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details. type PaymentMethodConfigurationUSBankAccountParams struct { // Whether or not the payment method should be displayed. DisplayPreference *PaymentMethodConfigurationUSBankAccountDisplayPreferenceParams `form:"display_preference"` @@ -1285,6 +1316,8 @@ type PaymentMethodConfigurationParams struct { AfterpayClearpay *PaymentMethodConfigurationAfterpayClearpayParams `form:"afterpay_clearpay"` // Alipay is a digital wallet in China that has more than a billion active users worldwide. Alipay users can pay on the web or on a mobile device using login credentials or their Alipay app. Alipay has a low dispute rate and reduces fraud by authenticating payments using the customer's login credentials. Check this [page](https://stripe.com/docs/payments/alipay) for more details. Alipay *PaymentMethodConfigurationAlipayParams `form:"alipay"` + // Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments. + Alma *PaymentMethodConfigurationAlmaParams `form:"alma"` // Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon. AmazonPay *PaymentMethodConfigurationAmazonPayParams `form:"amazon_pay"` // Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details. @@ -1359,7 +1392,7 @@ type PaymentMethodConfigurationParams struct { Swish *PaymentMethodConfigurationSwishParams `form:"swish"` // Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details. TWINT *PaymentMethodConfigurationTWINTParams `form:"twint"` - // Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. + // Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details. USBankAccount *PaymentMethodConfigurationUSBankAccountParams `form:"us_bank_account"` // WeChat, owned by Tencent, is China's leading mobile app with over 1 billion monthly active users. Chinese consumers can use WeChat Pay to pay for goods and services inside of businesses' apps and websites. WeChat Pay users buy most frequently in gaming, e-commerce, travel, online education, and food/nutrition. Check this [page](https://stripe.com/docs/payments/wechat-pay) for more details. WeChatPay *PaymentMethodConfigurationWeChatPayParams `form:"wechat_pay"` @@ -1424,6 +1457,19 @@ type PaymentMethodConfigurationAlipay struct { Available bool `json:"available"` DisplayPreference *PaymentMethodConfigurationAlipayDisplayPreference `json:"display_preference"` } +type PaymentMethodConfigurationAlmaDisplayPreference struct { + // For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + Overridable bool `json:"overridable"` + // The account's display preference. + Preference PaymentMethodConfigurationAlmaDisplayPreferencePreference `json:"preference"` + // The effective display preference value. + Value PaymentMethodConfigurationAlmaDisplayPreferenceValue `json:"value"` +} +type PaymentMethodConfigurationAlma struct { + // Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + Available bool `json:"available"` + DisplayPreference *PaymentMethodConfigurationAlmaDisplayPreference `json:"display_preference"` +} type PaymentMethodConfigurationAmazonPayDisplayPreference struct { // For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. Overridable bool `json:"overridable"` @@ -1915,6 +1961,7 @@ type PaymentMethodConfiguration struct { Affirm *PaymentMethodConfigurationAffirm `json:"affirm"` AfterpayClearpay *PaymentMethodConfigurationAfterpayClearpay `json:"afterpay_clearpay"` Alipay *PaymentMethodConfigurationAlipay `json:"alipay"` + Alma *PaymentMethodConfigurationAlma `json:"alma"` AmazonPay *PaymentMethodConfigurationAmazonPay `json:"amazon_pay"` ApplePay *PaymentMethodConfigurationApplePay `json:"apple_pay"` // For child configs, the Connect application associated with the configuration. diff --git a/paymentmethoddomain.go b/paymentmethoddomain.go index 3873191eab..03ad7e5b47 100644 --- a/paymentmethoddomain.go +++ b/paymentmethoddomain.go @@ -6,6 +6,15 @@ package stripe +// The status of the payment method on the domain. +type PaymentMethodDomainAmazonPayStatus string + +// List of values that PaymentMethodDomainAmazonPayStatus can take +const ( + PaymentMethodDomainAmazonPayStatusActive PaymentMethodDomainAmazonPayStatus = "active" + PaymentMethodDomainAmazonPayStatusInactive PaymentMethodDomainAmazonPayStatus = "inactive" +) + // The status of the payment method on the domain. type PaymentMethodDomainApplePayStatus string @@ -91,6 +100,20 @@ func (p *PaymentMethodDomainValidateParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } +// Contains additional details about the status of a payment method for a specific payment method domain. +type PaymentMethodDomainAmazonPayStatusDetails struct { + // The error message associated with the status of the payment method on the domain. + ErrorMessage string `json:"error_message"` +} + +// Indicates the status of a specific payment method on a payment method domain. +type PaymentMethodDomainAmazonPay struct { + // The status of the payment method on the domain. + Status PaymentMethodDomainAmazonPayStatus `json:"status"` + // Contains additional details about the status of a payment method for a specific payment method domain. + StatusDetails *PaymentMethodDomainAmazonPayStatusDetails `json:"status_details"` +} + // Contains additional details about the status of a payment method for a specific payment method domain. type PaymentMethodDomainApplePayStatusDetails struct { // The error message associated with the status of the payment method on the domain. @@ -154,6 +177,8 @@ type PaymentMethodDomainPaypal struct { type PaymentMethodDomain struct { APIResource // Indicates the status of a specific payment method on a payment method domain. + AmazonPay *PaymentMethodDomainAmazonPay `json:"amazon_pay"` + // Indicates the status of a specific payment method on a payment method domain. ApplePay *PaymentMethodDomainApplePay `json:"apple_pay"` // Time at which the object was created. Measured in seconds since the Unix epoch. Created int64 `json:"created"` diff --git a/person.go b/person.go index 0c53a24d40..10f4464af9 100644 --- a/person.go +++ b/person.go @@ -483,7 +483,7 @@ type Person struct { FullNameAliases []string `json:"full_name_aliases"` // Information about the [upcoming new requirements for this person](https://stripe.com/docs/connect/custom-accounts/future-requirements), including what information needs to be collected, and by when. FutureRequirements *PersonFutureRequirements `json:"future_requirements"` - // The person's gender (International regulations require either "male" or "female"). + // The person's gender. Gender string `json:"gender"` // Unique identifier for the object. ID string `json:"id"` diff --git a/refund.go b/refund.go index 1a28284538..fb658e2643 100644 --- a/refund.go +++ b/refund.go @@ -142,6 +142,7 @@ func (p *RefundCancelParams) AddExpand(f string) { type RefundDestinationDetailsAffirm struct{} type RefundDestinationDetailsAfterpayClearpay struct{} type RefundDestinationDetailsAlipay struct{} +type RefundDestinationDetailsAlma struct{} type RefundDestinationDetailsAmazonPay struct{} type RefundDestinationDetailsAuBankTransfer struct{} type RefundDestinationDetailsBLIK struct { @@ -237,6 +238,7 @@ type RefundDestinationDetails struct { Affirm *RefundDestinationDetailsAffirm `json:"affirm"` AfterpayClearpay *RefundDestinationDetailsAfterpayClearpay `json:"afterpay_clearpay"` Alipay *RefundDestinationDetailsAlipay `json:"alipay"` + Alma *RefundDestinationDetailsAlma `json:"alma"` AmazonPay *RefundDestinationDetailsAmazonPay `json:"amazon_pay"` AuBankTransfer *RefundDestinationDetailsAuBankTransfer `json:"au_bank_transfer"` BLIK *RefundDestinationDetailsBLIK `json:"blik"` @@ -273,15 +275,12 @@ type RefundNextActionDisplayDetailsEmailSent struct { // The recipient's email address. EmailSentTo string `json:"email_sent_to"` } - -// Contains the refund details. type RefundNextActionDisplayDetails struct { EmailSent *RefundNextActionDisplayDetailsEmailSent `json:"email_sent"` // The expiry timestamp. ExpiresAt int64 `json:"expires_at"` } type RefundNextAction struct { - // Contains the refund details. DisplayDetails *RefundNextActionDisplayDetails `json:"display_details"` // Type of the next action to perform. Type string `json:"type"` diff --git a/setupattempt.go b/setupattempt.go index ad5a049230..c94e310736 100644 --- a/setupattempt.go +++ b/setupattempt.go @@ -268,7 +268,9 @@ type SetupAttemptPaymentMethodDetailsIDEAL struct { // (if supported) at the time of authorization or settlement. They cannot be set or mutated. VerifiedName string `json:"verified_name"` } +type SetupAttemptPaymentMethodDetailsKakaoPay struct{} type SetupAttemptPaymentMethodDetailsKlarna struct{} +type SetupAttemptPaymentMethodDetailsKrCard struct{} type SetupAttemptPaymentMethodDetailsLink struct{} type SetupAttemptPaymentMethodDetailsPaypal struct{} type SetupAttemptPaymentMethodDetailsRevolutPay struct{} @@ -305,7 +307,9 @@ type SetupAttemptPaymentMethodDetails struct { CardPresent *SetupAttemptPaymentMethodDetailsCardPresent `json:"card_present"` CashApp *SetupAttemptPaymentMethodDetailsCashApp `json:"cashapp"` IDEAL *SetupAttemptPaymentMethodDetailsIDEAL `json:"ideal"` + KakaoPay *SetupAttemptPaymentMethodDetailsKakaoPay `json:"kakao_pay"` Klarna *SetupAttemptPaymentMethodDetailsKlarna `json:"klarna"` + KrCard *SetupAttemptPaymentMethodDetailsKrCard `json:"kr_card"` Link *SetupAttemptPaymentMethodDetailsLink `json:"link"` Paypal *SetupAttemptPaymentMethodDetailsPaypal `json:"paypal"` RevolutPay *SetupAttemptPaymentMethodDetailsRevolutPay `json:"revolut_pay"` diff --git a/setupintent.go b/setupintent.go index 35bab9ea39..afe997f49b 100644 --- a/setupintent.go +++ b/setupintent.go @@ -320,6 +320,9 @@ type SetupIntentPaymentMethodDataAfterpayClearpayParams struct{} // If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. type SetupIntentPaymentMethodDataAlipayParams struct{} +// If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. +type SetupIntentPaymentMethodDataAlmaParams struct{} + // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. type SetupIntentPaymentMethodDataAmazonPayParams struct{} @@ -391,13 +394,16 @@ type SetupIntentPaymentMethodDataGrabpayParams struct{} // If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. type SetupIntentPaymentMethodDataIDEALParams struct { - // The customer's bank. + // The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. Bank *string `form:"bank"` } // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. type SetupIntentPaymentMethodDataInteracPresentParams struct{} +// If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. +type SetupIntentPaymentMethodDataKakaoPayParams struct{} + // Customer's date of birth type SetupIntentPaymentMethodDataKlarnaDOBParams struct { // The day of birth, between 1 and 31. @@ -417,6 +423,9 @@ type SetupIntentPaymentMethodDataKlarnaParams struct { // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. type SetupIntentPaymentMethodDataKonbiniParams struct{} +// If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. +type SetupIntentPaymentMethodDataKrCardParams struct{} + // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. type SetupIntentPaymentMethodDataLinkParams struct{} @@ -426,6 +435,12 @@ type SetupIntentPaymentMethodDataMobilepayParams struct{} // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. type SetupIntentPaymentMethodDataMultibancoParams struct{} +// If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. +type SetupIntentPaymentMethodDataNaverPayParams struct { + // Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Funding *string `form:"funding"` +} + // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. type SetupIntentPaymentMethodDataOXXOParams struct{} @@ -435,6 +450,9 @@ type SetupIntentPaymentMethodDataP24Params struct { Bank *string `form:"bank"` } +// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. +type SetupIntentPaymentMethodDataPaycoParams struct{} + // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. type SetupIntentPaymentMethodDataPayNowParams struct{} @@ -456,6 +474,9 @@ type SetupIntentPaymentMethodDataRadarOptionsParams struct { // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. type SetupIntentPaymentMethodDataRevolutPayParams struct{} +// If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. +type SetupIntentPaymentMethodDataSamsungPayParams struct{} + // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. type SetupIntentPaymentMethodDataSEPADebitParams struct { // IBAN of the bank account. @@ -507,6 +528,8 @@ type SetupIntentPaymentMethodDataParams struct { Alipay *SetupIntentPaymentMethodDataAlipayParams `form:"alipay"` // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. AllowRedisplay *string `form:"allow_redisplay"` + // If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + Alma *SetupIntentPaymentMethodDataAlmaParams `form:"alma"` // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. AmazonPay *SetupIntentPaymentMethodDataAmazonPayParams `form:"amazon_pay"` // If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. @@ -537,10 +560,14 @@ type SetupIntentPaymentMethodDataParams struct { IDEAL *SetupIntentPaymentMethodDataIDEALParams `form:"ideal"` // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. InteracPresent *SetupIntentPaymentMethodDataInteracPresentParams `form:"interac_present"` + // If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + KakaoPay *SetupIntentPaymentMethodDataKakaoPayParams `form:"kakao_pay"` // If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. Klarna *SetupIntentPaymentMethodDataKlarnaParams `form:"klarna"` // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. Konbini *SetupIntentPaymentMethodDataKonbiniParams `form:"konbini"` + // If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + KrCard *SetupIntentPaymentMethodDataKrCardParams `form:"kr_card"` // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. Link *SetupIntentPaymentMethodDataLinkParams `form:"link"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -549,10 +576,14 @@ type SetupIntentPaymentMethodDataParams struct { Mobilepay *SetupIntentPaymentMethodDataMobilepayParams `form:"mobilepay"` // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. Multibanco *SetupIntentPaymentMethodDataMultibancoParams `form:"multibanco"` + // If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + NaverPay *SetupIntentPaymentMethodDataNaverPayParams `form:"naver_pay"` // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. OXXO *SetupIntentPaymentMethodDataOXXOParams `form:"oxxo"` // If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. P24 *SetupIntentPaymentMethodDataP24Params `form:"p24"` + // If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Payco *SetupIntentPaymentMethodDataPaycoParams `form:"payco"` // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. PayNow *SetupIntentPaymentMethodDataPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. @@ -565,6 +596,8 @@ type SetupIntentPaymentMethodDataParams struct { RadarOptions *SetupIntentPaymentMethodDataRadarOptionsParams `form:"radar_options"` // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. RevolutPay *SetupIntentPaymentMethodDataRevolutPayParams `form:"revolut_pay"` + // If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + SamsungPay *SetupIntentPaymentMethodDataSamsungPayParams `form:"samsung_pay"` // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. SEPADebit *SetupIntentPaymentMethodDataSEPADebitParams `form:"sepa_debit"` // If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. @@ -927,6 +960,9 @@ type SetupIntentConfirmPaymentMethodDataAfterpayClearpayParams struct{} // If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. type SetupIntentConfirmPaymentMethodDataAlipayParams struct{} +// If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. +type SetupIntentConfirmPaymentMethodDataAlmaParams struct{} + // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. type SetupIntentConfirmPaymentMethodDataAmazonPayParams struct{} @@ -998,13 +1034,16 @@ type SetupIntentConfirmPaymentMethodDataGrabpayParams struct{} // If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. type SetupIntentConfirmPaymentMethodDataIDEALParams struct { - // The customer's bank. + // The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. Bank *string `form:"bank"` } // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. type SetupIntentConfirmPaymentMethodDataInteracPresentParams struct{} +// If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. +type SetupIntentConfirmPaymentMethodDataKakaoPayParams struct{} + // Customer's date of birth type SetupIntentConfirmPaymentMethodDataKlarnaDOBParams struct { // The day of birth, between 1 and 31. @@ -1024,6 +1063,9 @@ type SetupIntentConfirmPaymentMethodDataKlarnaParams struct { // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. type SetupIntentConfirmPaymentMethodDataKonbiniParams struct{} +// If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. +type SetupIntentConfirmPaymentMethodDataKrCardParams struct{} + // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. type SetupIntentConfirmPaymentMethodDataLinkParams struct{} @@ -1033,6 +1075,12 @@ type SetupIntentConfirmPaymentMethodDataMobilepayParams struct{} // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. type SetupIntentConfirmPaymentMethodDataMultibancoParams struct{} +// If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. +type SetupIntentConfirmPaymentMethodDataNaverPayParams struct { + // Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Funding *string `form:"funding"` +} + // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. type SetupIntentConfirmPaymentMethodDataOXXOParams struct{} @@ -1042,6 +1090,9 @@ type SetupIntentConfirmPaymentMethodDataP24Params struct { Bank *string `form:"bank"` } +// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. +type SetupIntentConfirmPaymentMethodDataPaycoParams struct{} + // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. type SetupIntentConfirmPaymentMethodDataPayNowParams struct{} @@ -1063,6 +1114,9 @@ type SetupIntentConfirmPaymentMethodDataRadarOptionsParams struct { // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. type SetupIntentConfirmPaymentMethodDataRevolutPayParams struct{} +// If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. +type SetupIntentConfirmPaymentMethodDataSamsungPayParams struct{} + // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. type SetupIntentConfirmPaymentMethodDataSEPADebitParams struct { // IBAN of the bank account. @@ -1114,6 +1168,8 @@ type SetupIntentConfirmPaymentMethodDataParams struct { Alipay *SetupIntentConfirmPaymentMethodDataAlipayParams `form:"alipay"` // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. AllowRedisplay *string `form:"allow_redisplay"` + // If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + Alma *SetupIntentConfirmPaymentMethodDataAlmaParams `form:"alma"` // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. AmazonPay *SetupIntentConfirmPaymentMethodDataAmazonPayParams `form:"amazon_pay"` // If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. @@ -1144,10 +1200,14 @@ type SetupIntentConfirmPaymentMethodDataParams struct { IDEAL *SetupIntentConfirmPaymentMethodDataIDEALParams `form:"ideal"` // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. InteracPresent *SetupIntentConfirmPaymentMethodDataInteracPresentParams `form:"interac_present"` + // If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + KakaoPay *SetupIntentConfirmPaymentMethodDataKakaoPayParams `form:"kakao_pay"` // If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. Klarna *SetupIntentConfirmPaymentMethodDataKlarnaParams `form:"klarna"` // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. Konbini *SetupIntentConfirmPaymentMethodDataKonbiniParams `form:"konbini"` + // If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + KrCard *SetupIntentConfirmPaymentMethodDataKrCardParams `form:"kr_card"` // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. Link *SetupIntentConfirmPaymentMethodDataLinkParams `form:"link"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -1156,10 +1216,14 @@ type SetupIntentConfirmPaymentMethodDataParams struct { Mobilepay *SetupIntentConfirmPaymentMethodDataMobilepayParams `form:"mobilepay"` // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. Multibanco *SetupIntentConfirmPaymentMethodDataMultibancoParams `form:"multibanco"` + // If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + NaverPay *SetupIntentConfirmPaymentMethodDataNaverPayParams `form:"naver_pay"` // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. OXXO *SetupIntentConfirmPaymentMethodDataOXXOParams `form:"oxxo"` // If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. P24 *SetupIntentConfirmPaymentMethodDataP24Params `form:"p24"` + // If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Payco *SetupIntentConfirmPaymentMethodDataPaycoParams `form:"payco"` // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. PayNow *SetupIntentConfirmPaymentMethodDataPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. @@ -1172,6 +1236,8 @@ type SetupIntentConfirmPaymentMethodDataParams struct { RadarOptions *SetupIntentConfirmPaymentMethodDataRadarOptionsParams `form:"radar_options"` // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. RevolutPay *SetupIntentConfirmPaymentMethodDataRevolutPayParams `form:"revolut_pay"` + // If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + SamsungPay *SetupIntentConfirmPaymentMethodDataSamsungPayParams `form:"samsung_pay"` // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. SEPADebit *SetupIntentConfirmPaymentMethodDataSEPADebitParams `form:"sepa_debit"` // If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. diff --git a/subscription.go b/subscription.go index 14e4fee441..2b86424df3 100644 --- a/subscription.go +++ b/subscription.go @@ -199,10 +199,15 @@ const ( SubscriptionPaymentSettingsPaymentMethodTypeGiropay SubscriptionPaymentSettingsPaymentMethodType = "giropay" SubscriptionPaymentSettingsPaymentMethodTypeGrabpay SubscriptionPaymentSettingsPaymentMethodType = "grabpay" SubscriptionPaymentSettingsPaymentMethodTypeIDEAL SubscriptionPaymentSettingsPaymentMethodType = "ideal" + SubscriptionPaymentSettingsPaymentMethodTypeJPCreditTransfer SubscriptionPaymentSettingsPaymentMethodType = "jp_credit_transfer" + SubscriptionPaymentSettingsPaymentMethodTypeKakaoPay SubscriptionPaymentSettingsPaymentMethodType = "kakao_pay" SubscriptionPaymentSettingsPaymentMethodTypeKonbini SubscriptionPaymentSettingsPaymentMethodType = "konbini" + SubscriptionPaymentSettingsPaymentMethodTypeKrCard SubscriptionPaymentSettingsPaymentMethodType = "kr_card" SubscriptionPaymentSettingsPaymentMethodTypeLink SubscriptionPaymentSettingsPaymentMethodType = "link" SubscriptionPaymentSettingsPaymentMethodTypeMultibanco SubscriptionPaymentSettingsPaymentMethodType = "multibanco" + SubscriptionPaymentSettingsPaymentMethodTypeNaverPay SubscriptionPaymentSettingsPaymentMethodType = "naver_pay" SubscriptionPaymentSettingsPaymentMethodTypeP24 SubscriptionPaymentSettingsPaymentMethodType = "p24" + SubscriptionPaymentSettingsPaymentMethodTypePayco SubscriptionPaymentSettingsPaymentMethodType = "payco" SubscriptionPaymentSettingsPaymentMethodTypePayNow SubscriptionPaymentSettingsPaymentMethodType = "paynow" SubscriptionPaymentSettingsPaymentMethodTypePaypal SubscriptionPaymentSettingsPaymentMethodType = "paypal" SubscriptionPaymentSettingsPaymentMethodTypePromptPay SubscriptionPaymentSettingsPaymentMethodType = "promptpay" @@ -289,7 +294,7 @@ type SubscriptionCancelParams struct { CancellationDetails *SubscriptionCancelCancellationDetailsParams `form:"cancellation_details"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`. + // Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `false`. InvoiceNow *bool `form:"invoice_now"` // Will generate a proration invoice item that credits remaining unused time until the subscription period end. Defaults to `false`. Prorate *bool `form:"prorate"` @@ -778,7 +783,7 @@ func (p *SubscriptionSearchParams) AddExpand(f string) { // Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. type SubscriptionResumeParams struct { Params `form:"*"` - // Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). Setting the value to `unchanged` advances the subscription's billing cycle anchor to the period that surrounds the current time. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + // The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). BillingCycleAnchor *string `form:"billing_cycle_anchor"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` diff --git a/tax_calculation.go b/tax_calculation.go index 73b4e546db..7124a1dd6c 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` type TaxCalculationCustomerDetailsTaxIDType string // List of values that TaxCalculationCustomerDetailsTaxIDType can take @@ -30,6 +30,7 @@ const ( TaxCalculationCustomerDetailsTaxIDTypeBOTIN TaxCalculationCustomerDetailsTaxIDType = "bo_tin" TaxCalculationCustomerDetailsTaxIDTypeBRCNPJ TaxCalculationCustomerDetailsTaxIDType = "br_cnpj" TaxCalculationCustomerDetailsTaxIDTypeBRCPF TaxCalculationCustomerDetailsTaxIDType = "br_cpf" + TaxCalculationCustomerDetailsTaxIDTypeByTin TaxCalculationCustomerDetailsTaxIDType = "by_tin" TaxCalculationCustomerDetailsTaxIDTypeCABN TaxCalculationCustomerDetailsTaxIDType = "ca_bn" TaxCalculationCustomerDetailsTaxIDTypeCAGSTHST TaxCalculationCustomerDetailsTaxIDType = "ca_gst_hst" TaxCalculationCustomerDetailsTaxIDTypeCAPSTBC TaxCalculationCustomerDetailsTaxIDType = "ca_pst_bc" @@ -65,6 +66,8 @@ const ( TaxCalculationCustomerDetailsTaxIDTypeKRBRN TaxCalculationCustomerDetailsTaxIDType = "kr_brn" TaxCalculationCustomerDetailsTaxIDTypeKzBin TaxCalculationCustomerDetailsTaxIDType = "kz_bin" TaxCalculationCustomerDetailsTaxIDTypeLIUID TaxCalculationCustomerDetailsTaxIDType = "li_uid" + TaxCalculationCustomerDetailsTaxIDTypeMaVAT TaxCalculationCustomerDetailsTaxIDType = "ma_vat" + TaxCalculationCustomerDetailsTaxIDTypeMdVAT TaxCalculationCustomerDetailsTaxIDType = "md_vat" TaxCalculationCustomerDetailsTaxIDTypeMXRFC TaxCalculationCustomerDetailsTaxIDType = "mx_rfc" TaxCalculationCustomerDetailsTaxIDTypeMYFRP TaxCalculationCustomerDetailsTaxIDType = "my_frp" TaxCalculationCustomerDetailsTaxIDTypeMYITN TaxCalculationCustomerDetailsTaxIDType = "my_itn" @@ -88,10 +91,13 @@ const ( TaxCalculationCustomerDetailsTaxIDTypeTHVAT TaxCalculationCustomerDetailsTaxIDType = "th_vat" TaxCalculationCustomerDetailsTaxIDTypeTRTIN TaxCalculationCustomerDetailsTaxIDType = "tr_tin" TaxCalculationCustomerDetailsTaxIDTypeTWVAT TaxCalculationCustomerDetailsTaxIDType = "tw_vat" + TaxCalculationCustomerDetailsTaxIDTypeTzVAT TaxCalculationCustomerDetailsTaxIDType = "tz_vat" TaxCalculationCustomerDetailsTaxIDTypeUAVAT TaxCalculationCustomerDetailsTaxIDType = "ua_vat" TaxCalculationCustomerDetailsTaxIDTypeUnknown TaxCalculationCustomerDetailsTaxIDType = "unknown" TaxCalculationCustomerDetailsTaxIDTypeUSEIN TaxCalculationCustomerDetailsTaxIDType = "us_ein" TaxCalculationCustomerDetailsTaxIDTypeUYRUC TaxCalculationCustomerDetailsTaxIDType = "uy_ruc" + TaxCalculationCustomerDetailsTaxIDTypeUzTin TaxCalculationCustomerDetailsTaxIDType = "uz_tin" + TaxCalculationCustomerDetailsTaxIDTypeUzVAT TaxCalculationCustomerDetailsTaxIDType = "uz_vat" TaxCalculationCustomerDetailsTaxIDTypeVERIF TaxCalculationCustomerDetailsTaxIDType = "ve_rif" TaxCalculationCustomerDetailsTaxIDTypeVNTIN TaxCalculationCustomerDetailsTaxIDType = "vn_tin" TaxCalculationCustomerDetailsTaxIDTypeZAVAT TaxCalculationCustomerDetailsTaxIDType = "za_vat" @@ -151,6 +157,7 @@ const ( TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxTypeLeaseTax TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType = "lease_tax" TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxTypePST TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType = "pst" TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxTypeQST TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType = "qst" + TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxTypeRetailDeliveryFee TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType = "retail_delivery_fee" TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxTypeRST TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType = "rst" TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxTypeSalesTax TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType = "sales_tax" TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxTypeVAT TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType = "vat" @@ -178,6 +185,15 @@ const ( TaxCalculationShippingCostTaxBreakdownTaxabilityReasonZeroRated TaxCalculationShippingCostTaxBreakdownTaxabilityReason = "zero_rated" ) +// Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. +type TaxCalculationTaxBreakdownTaxRateDetailsRateType string + +// List of values that TaxCalculationTaxBreakdownTaxRateDetailsRateType can take +const ( + TaxCalculationTaxBreakdownTaxRateDetailsRateTypeFlatAmount TaxCalculationTaxBreakdownTaxRateDetailsRateType = "flat_amount" + TaxCalculationTaxBreakdownTaxRateDetailsRateTypePercentage TaxCalculationTaxBreakdownTaxRateDetailsRateType = "percentage" +) + // The tax type, such as `vat` or `sales_tax`. type TaxCalculationTaxBreakdownTaxRateDetailsTaxType string @@ -192,6 +208,7 @@ const ( TaxCalculationTaxBreakdownTaxRateDetailsTaxTypeLeaseTax TaxCalculationTaxBreakdownTaxRateDetailsTaxType = "lease_tax" TaxCalculationTaxBreakdownTaxRateDetailsTaxTypePST TaxCalculationTaxBreakdownTaxRateDetailsTaxType = "pst" TaxCalculationTaxBreakdownTaxRateDetailsTaxTypeQST TaxCalculationTaxBreakdownTaxRateDetailsTaxType = "qst" + TaxCalculationTaxBreakdownTaxRateDetailsTaxTypeRetailDeliveryFee TaxCalculationTaxBreakdownTaxRateDetailsTaxType = "retail_delivery_fee" TaxCalculationTaxBreakdownTaxRateDetailsTaxTypeRST TaxCalculationTaxBreakdownTaxRateDetailsTaxType = "rst" TaxCalculationTaxBreakdownTaxRateDetailsTaxTypeSalesTax TaxCalculationTaxBreakdownTaxRateDetailsTaxType = "sales_tax" TaxCalculationTaxBreakdownTaxRateDetailsTaxTypeVAT TaxCalculationTaxBreakdownTaxRateDetailsTaxType = "vat" @@ -260,7 +277,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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -317,7 +334,7 @@ type TaxCalculationShippingCostParams struct { // 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` Type TaxCalculationCustomerDetailsTaxIDType `json:"type"` // The value of the tax ID. Value string `json:"value"` @@ -390,11 +407,23 @@ type TaxCalculationShippingCost struct { // The [tax code](https://stripe.com/docs/tax/tax-categories) ID used for shipping. TaxCode string `json:"tax_code"` } + +// The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. +type TaxCalculationTaxBreakdownTaxRateDetailsFlatAmount struct { + // Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + Amount int64 `json:"amount"` + // Three-letter ISO currency code, in lowercase. + Currency Currency `json:"currency"` +} type TaxCalculationTaxBreakdownTaxRateDetails struct { // Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). Country string `json:"country"` + // The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + FlatAmount *TaxCalculationTaxBreakdownTaxRateDetailsFlatAmount `json:"flat_amount"` // The tax rate percentage as a string. For example, 8.5% is represented as `"8.5"`. PercentageDecimal string `json:"percentage_decimal"` + // Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. + RateType TaxCalculationTaxBreakdownTaxRateDetailsRateType `json:"rate_type"` // State, county, province, or region. State string `json:"state"` // The tax type, such as `vat` or `sales_tax`. diff --git a/tax_calculationlineitem.go b/tax_calculationlineitem.go index 6bf2fba4e7..cfa83106e1 100644 --- a/tax_calculationlineitem.go +++ b/tax_calculationlineitem.go @@ -50,6 +50,7 @@ const ( TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxTypeLeaseTax TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType = "lease_tax" TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxTypePST TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType = "pst" TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxTypeQST TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType = "qst" + TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxTypeRetailDeliveryFee TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType = "retail_delivery_fee" TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxTypeRST TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType = "rst" TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxTypeSalesTax TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType = "sales_tax" TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxTypeVAT TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType = "vat" diff --git a/tax_registration.go b/tax_registration.go index 51f3a6c42d..f5b511068c 100644 --- a/tax_registration.go +++ b/tax_registration.go @@ -92,6 +92,14 @@ const ( TaxRegistrationCountryOptionsBhTypeStandard TaxRegistrationCountryOptionsBhType = "standard" ) +// Type of registration in `country`. +type TaxRegistrationCountryOptionsByType string + +// List of values that TaxRegistrationCountryOptionsByType can take +const ( + TaxRegistrationCountryOptionsByTypeSimplified TaxRegistrationCountryOptionsByType = "simplified" +) + // Type of registration in Canada. type TaxRegistrationCountryOptionsCaType string @@ -126,6 +134,14 @@ const ( TaxRegistrationCountryOptionsCoTypeSimplified TaxRegistrationCountryOptionsCoType = "simplified" ) +// Type of registration in `country`. +type TaxRegistrationCountryOptionsCrType string + +// List of values that TaxRegistrationCountryOptionsCrType can take +const ( + TaxRegistrationCountryOptionsCrTypeSimplified TaxRegistrationCountryOptionsCrType = "simplified" +) + // Place of supply scheme used in an EU standard registration. type TaxRegistrationCountryOptionsCyStandardPlaceOfSupplyScheme string @@ -206,6 +222,14 @@ const ( TaxRegistrationCountryOptionsDkTypeStandard TaxRegistrationCountryOptionsDkType = "standard" ) +// Type of registration in `country`. +type TaxRegistrationCountryOptionsEcType string + +// List of values that TaxRegistrationCountryOptionsEcType can take +const ( + TaxRegistrationCountryOptionsEcTypeSimplified TaxRegistrationCountryOptionsEcType = "simplified" +) + // Place of supply scheme used in an EU standard registration. type TaxRegistrationCountryOptionsEeStandardPlaceOfSupplyScheme string @@ -518,6 +542,22 @@ const ( TaxRegistrationCountryOptionsLVTypeStandard TaxRegistrationCountryOptionsLVType = "standard" ) +// Type of registration in `country`. +type TaxRegistrationCountryOptionsMaType string + +// List of values that TaxRegistrationCountryOptionsMaType can take +const ( + TaxRegistrationCountryOptionsMaTypeSimplified TaxRegistrationCountryOptionsMaType = "simplified" +) + +// Type of registration in `country`. +type TaxRegistrationCountryOptionsMdType string + +// List of values that TaxRegistrationCountryOptionsMdType can take +const ( + TaxRegistrationCountryOptionsMdTypeSimplified TaxRegistrationCountryOptionsMdType = "simplified" +) + // Place of supply scheme used in an EU standard registration. type TaxRegistrationCountryOptionsMTStandardPlaceOfSupplyScheme string @@ -666,6 +706,22 @@ const ( TaxRegistrationCountryOptionsROTypeStandard TaxRegistrationCountryOptionsROType = "standard" ) +// Type of registration in `country`. +type TaxRegistrationCountryOptionsRsType string + +// List of values that TaxRegistrationCountryOptionsRsType can take +const ( + TaxRegistrationCountryOptionsRsTypeStandard TaxRegistrationCountryOptionsRsType = "standard" +) + +// Type of registration in `country`. +type TaxRegistrationCountryOptionsRUType string + +// List of values that TaxRegistrationCountryOptionsRUType can take +const ( + TaxRegistrationCountryOptionsRUTypeSimplified TaxRegistrationCountryOptionsRUType = "simplified" +) + // Type of registration in `country`. type TaxRegistrationCountryOptionsSaType string @@ -758,6 +814,14 @@ const ( TaxRegistrationCountryOptionsTRTypeSimplified TaxRegistrationCountryOptionsTRType = "simplified" ) +// Type of registration in `country`. +type TaxRegistrationCountryOptionsTzType string + +// List of values that TaxRegistrationCountryOptionsTzType can take +const ( + TaxRegistrationCountryOptionsTzTypeSimplified TaxRegistrationCountryOptionsTzType = "simplified" +) + // The type of the election for the state sales tax registration. type TaxRegistrationCountryOptionsUSStateSalesTaxElectionType string @@ -776,9 +840,18 @@ const ( TaxRegistrationCountryOptionsUSTypeLocalAmusementTax TaxRegistrationCountryOptionsUSType = "local_amusement_tax" TaxRegistrationCountryOptionsUSTypeLocalLeaseTax TaxRegistrationCountryOptionsUSType = "local_lease_tax" TaxRegistrationCountryOptionsUSTypeStateCommunicationsTax TaxRegistrationCountryOptionsUSType = "state_communications_tax" + TaxRegistrationCountryOptionsUSTypeStateRetailDeliveryFee TaxRegistrationCountryOptionsUSType = "state_retail_delivery_fee" TaxRegistrationCountryOptionsUSTypeStateSalesTax TaxRegistrationCountryOptionsUSType = "state_sales_tax" ) +// Type of registration in `country`. +type TaxRegistrationCountryOptionsUzType string + +// List of values that TaxRegistrationCountryOptionsUzType can take +const ( + TaxRegistrationCountryOptionsUzTypeSimplified TaxRegistrationCountryOptionsUzType = "simplified" +) + // Type of registration in `country`. type TaxRegistrationCountryOptionsVnType string @@ -879,6 +952,12 @@ type TaxRegistrationCountryOptionsBhParams struct { Type *string `form:"type"` } +// Options for the registration in BY. +type TaxRegistrationCountryOptionsByParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + // Options for the provincial tax registration. type TaxRegistrationCountryOptionsCaProvinceStandardParams struct { // Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). @@ -911,6 +990,12 @@ type TaxRegistrationCountryOptionsCoParams struct { Type *string `form:"type"` } +// Options for the registration in CR. +type TaxRegistrationCountryOptionsCrParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + // Options for the standard registration. type TaxRegistrationCountryOptionsCyStandardParams struct { // Place of supply scheme used in an EU standard registration. @@ -967,6 +1052,12 @@ type TaxRegistrationCountryOptionsDkParams struct { Type *string `form:"type"` } +// Options for the registration in EC. +type TaxRegistrationCountryOptionsEcParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + // Options for the standard registration. type TaxRegistrationCountryOptionsEeStandardParams struct { // Place of supply scheme used in an EU standard registration. @@ -1189,6 +1280,18 @@ type TaxRegistrationCountryOptionsLVParams struct { Type *string `form:"type"` } +// Options for the registration in MA. +type TaxRegistrationCountryOptionsMaParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + +// Options for the registration in MD. +type TaxRegistrationCountryOptionsMdParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + // Options for the standard registration. type TaxRegistrationCountryOptionsMTStandardParams struct { // Place of supply scheme used in an EU standard registration. @@ -1295,6 +1398,18 @@ type TaxRegistrationCountryOptionsROParams struct { Type *string `form:"type"` } +// Options for the registration in RS. +type TaxRegistrationCountryOptionsRsParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + +// Options for the registration in RU. +type TaxRegistrationCountryOptionsRUParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + // Options for the registration in SA. type TaxRegistrationCountryOptionsSaParams struct { // Type of registration to be created in `country`. @@ -1361,6 +1476,12 @@ type TaxRegistrationCountryOptionsTRParams struct { Type *string `form:"type"` } +// Options for the registration in TZ. +type TaxRegistrationCountryOptionsTzParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + // Options for the local amusement tax registration. type TaxRegistrationCountryOptionsUSLocalAmusementTaxParams struct { // A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), and `68081` (Schiller Park). @@ -1401,6 +1522,12 @@ type TaxRegistrationCountryOptionsUSParams struct { Type *string `form:"type"` } +// Options for the registration in UZ. +type TaxRegistrationCountryOptionsUzParams struct { + // Type of registration to be created in `country`. + Type *string `form:"type"` +} + // Options for the registration in VN. type TaxRegistrationCountryOptionsVnParams struct { // Type of registration to be created in `country`. @@ -1427,6 +1554,8 @@ type TaxRegistrationCountryOptionsParams struct { BG *TaxRegistrationCountryOptionsBGParams `form:"bg"` // Options for the registration in BH. Bh *TaxRegistrationCountryOptionsBhParams `form:"bh"` + // Options for the registration in BY. + By *TaxRegistrationCountryOptionsByParams `form:"by"` // Options for the registration in CA. Ca *TaxRegistrationCountryOptionsCaParams `form:"ca"` // Options for the registration in CH. @@ -1435,6 +1564,8 @@ type TaxRegistrationCountryOptionsParams struct { Cl *TaxRegistrationCountryOptionsClParams `form:"cl"` // Options for the registration in CO. Co *TaxRegistrationCountryOptionsCoParams `form:"co"` + // Options for the registration in CR. + Cr *TaxRegistrationCountryOptionsCrParams `form:"cr"` // Options for the registration in CY. Cy *TaxRegistrationCountryOptionsCyParams `form:"cy"` // Options for the registration in CZ. @@ -1443,6 +1574,8 @@ type TaxRegistrationCountryOptionsParams struct { DE *TaxRegistrationCountryOptionsDEParams `form:"de"` // Options for the registration in DK. Dk *TaxRegistrationCountryOptionsDkParams `form:"dk"` + // Options for the registration in EC. + Ec *TaxRegistrationCountryOptionsEcParams `form:"ec"` // Options for the registration in EE. Ee *TaxRegistrationCountryOptionsEeParams `form:"ee"` // Options for the registration in EG. @@ -1485,6 +1618,10 @@ type TaxRegistrationCountryOptionsParams struct { Lu *TaxRegistrationCountryOptionsLuParams `form:"lu"` // Options for the registration in LV. LV *TaxRegistrationCountryOptionsLVParams `form:"lv"` + // Options for the registration in MA. + Ma *TaxRegistrationCountryOptionsMaParams `form:"ma"` + // Options for the registration in MD. + Md *TaxRegistrationCountryOptionsMdParams `form:"md"` // Options for the registration in MT. MT *TaxRegistrationCountryOptionsMTParams `form:"mt"` // Options for the registration in MX. @@ -1507,6 +1644,10 @@ type TaxRegistrationCountryOptionsParams struct { PT *TaxRegistrationCountryOptionsPTParams `form:"pt"` // Options for the registration in RO. RO *TaxRegistrationCountryOptionsROParams `form:"ro"` + // Options for the registration in RS. + Rs *TaxRegistrationCountryOptionsRsParams `form:"rs"` + // Options for the registration in RU. + RU *TaxRegistrationCountryOptionsRUParams `form:"ru"` // Options for the registration in SA. Sa *TaxRegistrationCountryOptionsSaParams `form:"sa"` // Options for the registration in SE. @@ -1521,8 +1662,12 @@ type TaxRegistrationCountryOptionsParams struct { TH *TaxRegistrationCountryOptionsTHParams `form:"th"` // Options for the registration in TR. TR *TaxRegistrationCountryOptionsTRParams `form:"tr"` + // Options for the registration in TZ. + Tz *TaxRegistrationCountryOptionsTzParams `form:"tz"` // Options for the registration in US. US *TaxRegistrationCountryOptionsUSParams `form:"us"` + // Options for the registration in UZ. + Uz *TaxRegistrationCountryOptionsUzParams `form:"uz"` // Options for the registration in VN. Vn *TaxRegistrationCountryOptionsVnParams `form:"vn"` // Options for the registration in ZA. @@ -1600,6 +1745,10 @@ type TaxRegistrationCountryOptionsBh struct { // Type of registration in `country`. Type TaxRegistrationCountryOptionsBhType `json:"type"` } +type TaxRegistrationCountryOptionsBy struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsByType `json:"type"` +} type TaxRegistrationCountryOptionsCaProvinceStandard struct { // Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). Province string `json:"province"` @@ -1621,6 +1770,10 @@ type TaxRegistrationCountryOptionsCo struct { // Type of registration in `country`. Type TaxRegistrationCountryOptionsCoType `json:"type"` } +type TaxRegistrationCountryOptionsCr struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsCrType `json:"type"` +} type TaxRegistrationCountryOptionsCyStandard struct { // Place of supply scheme used in an EU standard registration. PlaceOfSupplyScheme TaxRegistrationCountryOptionsCyStandardPlaceOfSupplyScheme `json:"place_of_supply_scheme"` @@ -1657,6 +1810,10 @@ type TaxRegistrationCountryOptionsDk struct { // Type of registration in an EU country. Type TaxRegistrationCountryOptionsDkType `json:"type"` } +type TaxRegistrationCountryOptionsEc struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsEcType `json:"type"` +} type TaxRegistrationCountryOptionsEeStandard struct { // Place of supply scheme used in an EU standard registration. PlaceOfSupplyScheme TaxRegistrationCountryOptionsEeStandardPlaceOfSupplyScheme `json:"place_of_supply_scheme"` @@ -1801,6 +1958,14 @@ type TaxRegistrationCountryOptionsLV struct { // Type of registration in an EU country. Type TaxRegistrationCountryOptionsLVType `json:"type"` } +type TaxRegistrationCountryOptionsMa struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsMaType `json:"type"` +} +type TaxRegistrationCountryOptionsMd struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsMdType `json:"type"` +} type TaxRegistrationCountryOptionsMTStandard struct { // Place of supply scheme used in an EU standard registration. PlaceOfSupplyScheme TaxRegistrationCountryOptionsMTStandardPlaceOfSupplyScheme `json:"place_of_supply_scheme"` @@ -1870,6 +2035,14 @@ type TaxRegistrationCountryOptionsRO struct { // Type of registration in an EU country. Type TaxRegistrationCountryOptionsROType `json:"type"` } +type TaxRegistrationCountryOptionsRs struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsRsType `json:"type"` +} +type TaxRegistrationCountryOptionsRU struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsRUType `json:"type"` +} type TaxRegistrationCountryOptionsSa struct { // Type of registration in `country`. Type TaxRegistrationCountryOptionsSaType `json:"type"` @@ -1913,6 +2086,10 @@ type TaxRegistrationCountryOptionsTR struct { // Type of registration in `country`. Type TaxRegistrationCountryOptionsTRType `json:"type"` } +type TaxRegistrationCountryOptionsTz struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsTzType `json:"type"` +} type TaxRegistrationCountryOptionsUSLocalAmusementTax struct { // A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Jurisdiction string `json:"jurisdiction"` @@ -1942,6 +2119,10 @@ type TaxRegistrationCountryOptionsUS struct { // Type of registration in the US. Type TaxRegistrationCountryOptionsUSType `json:"type"` } +type TaxRegistrationCountryOptionsUz struct { + // Type of registration in `country`. + Type TaxRegistrationCountryOptionsUzType `json:"type"` +} type TaxRegistrationCountryOptionsVn struct { // Type of registration in `country`. Type TaxRegistrationCountryOptionsVnType `json:"type"` @@ -1957,14 +2138,17 @@ type TaxRegistrationCountryOptions struct { Be *TaxRegistrationCountryOptionsBe `json:"be"` BG *TaxRegistrationCountryOptionsBG `json:"bg"` Bh *TaxRegistrationCountryOptionsBh `json:"bh"` + By *TaxRegistrationCountryOptionsBy `json:"by"` Ca *TaxRegistrationCountryOptionsCa `json:"ca"` Ch *TaxRegistrationCountryOptionsCh `json:"ch"` Cl *TaxRegistrationCountryOptionsCl `json:"cl"` Co *TaxRegistrationCountryOptionsCo `json:"co"` + Cr *TaxRegistrationCountryOptionsCr `json:"cr"` Cy *TaxRegistrationCountryOptionsCy `json:"cy"` Cz *TaxRegistrationCountryOptionsCz `json:"cz"` DE *TaxRegistrationCountryOptionsDE `json:"de"` Dk *TaxRegistrationCountryOptionsDk `json:"dk"` + Ec *TaxRegistrationCountryOptionsEc `json:"ec"` Ee *TaxRegistrationCountryOptionsEe `json:"ee"` Eg *TaxRegistrationCountryOptionsEg `json:"eg"` ES *TaxRegistrationCountryOptionsES `json:"es"` @@ -1986,6 +2170,8 @@ type TaxRegistrationCountryOptions struct { LT *TaxRegistrationCountryOptionsLT `json:"lt"` Lu *TaxRegistrationCountryOptionsLu `json:"lu"` LV *TaxRegistrationCountryOptionsLV `json:"lv"` + Ma *TaxRegistrationCountryOptionsMa `json:"ma"` + Md *TaxRegistrationCountryOptionsMd `json:"md"` MT *TaxRegistrationCountryOptionsMT `json:"mt"` MX *TaxRegistrationCountryOptionsMX `json:"mx"` My *TaxRegistrationCountryOptionsMy `json:"my"` @@ -1997,6 +2183,8 @@ type TaxRegistrationCountryOptions struct { PL *TaxRegistrationCountryOptionsPL `json:"pl"` PT *TaxRegistrationCountryOptionsPT `json:"pt"` RO *TaxRegistrationCountryOptionsRO `json:"ro"` + Rs *TaxRegistrationCountryOptionsRs `json:"rs"` + RU *TaxRegistrationCountryOptionsRU `json:"ru"` Sa *TaxRegistrationCountryOptionsSa `json:"sa"` Se *TaxRegistrationCountryOptionsSe `json:"se"` Sg *TaxRegistrationCountryOptionsSg `json:"sg"` @@ -2004,7 +2192,9 @@ type TaxRegistrationCountryOptions struct { SK *TaxRegistrationCountryOptionsSK `json:"sk"` TH *TaxRegistrationCountryOptionsTH `json:"th"` TR *TaxRegistrationCountryOptionsTR `json:"tr"` + Tz *TaxRegistrationCountryOptionsTz `json:"tz"` US *TaxRegistrationCountryOptionsUS `json:"us"` + Uz *TaxRegistrationCountryOptionsUz `json:"uz"` Vn *TaxRegistrationCountryOptionsVn `json:"vn"` Za *TaxRegistrationCountryOptionsZa `json:"za"` } diff --git a/tax_transaction.go b/tax_transaction.go index 5187ba87bc..d27b3d3755 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` type TaxTransactionCustomerDetailsTaxIDType string // List of values that TaxTransactionCustomerDetailsTaxIDType can take @@ -30,6 +30,7 @@ const ( TaxTransactionCustomerDetailsTaxIDTypeBOTIN TaxTransactionCustomerDetailsTaxIDType = "bo_tin" TaxTransactionCustomerDetailsTaxIDTypeBRCNPJ TaxTransactionCustomerDetailsTaxIDType = "br_cnpj" TaxTransactionCustomerDetailsTaxIDTypeBRCPF TaxTransactionCustomerDetailsTaxIDType = "br_cpf" + TaxTransactionCustomerDetailsTaxIDTypeByTin TaxTransactionCustomerDetailsTaxIDType = "by_tin" TaxTransactionCustomerDetailsTaxIDTypeCABN TaxTransactionCustomerDetailsTaxIDType = "ca_bn" TaxTransactionCustomerDetailsTaxIDTypeCAGSTHST TaxTransactionCustomerDetailsTaxIDType = "ca_gst_hst" TaxTransactionCustomerDetailsTaxIDTypeCAPSTBC TaxTransactionCustomerDetailsTaxIDType = "ca_pst_bc" @@ -65,6 +66,8 @@ const ( TaxTransactionCustomerDetailsTaxIDTypeKRBRN TaxTransactionCustomerDetailsTaxIDType = "kr_brn" TaxTransactionCustomerDetailsTaxIDTypeKzBin TaxTransactionCustomerDetailsTaxIDType = "kz_bin" TaxTransactionCustomerDetailsTaxIDTypeLIUID TaxTransactionCustomerDetailsTaxIDType = "li_uid" + TaxTransactionCustomerDetailsTaxIDTypeMaVAT TaxTransactionCustomerDetailsTaxIDType = "ma_vat" + TaxTransactionCustomerDetailsTaxIDTypeMdVAT TaxTransactionCustomerDetailsTaxIDType = "md_vat" TaxTransactionCustomerDetailsTaxIDTypeMXRFC TaxTransactionCustomerDetailsTaxIDType = "mx_rfc" TaxTransactionCustomerDetailsTaxIDTypeMYFRP TaxTransactionCustomerDetailsTaxIDType = "my_frp" TaxTransactionCustomerDetailsTaxIDTypeMYITN TaxTransactionCustomerDetailsTaxIDType = "my_itn" @@ -88,10 +91,13 @@ const ( TaxTransactionCustomerDetailsTaxIDTypeTHVAT TaxTransactionCustomerDetailsTaxIDType = "th_vat" TaxTransactionCustomerDetailsTaxIDTypeTRTIN TaxTransactionCustomerDetailsTaxIDType = "tr_tin" TaxTransactionCustomerDetailsTaxIDTypeTWVAT TaxTransactionCustomerDetailsTaxIDType = "tw_vat" + TaxTransactionCustomerDetailsTaxIDTypeTzVAT TaxTransactionCustomerDetailsTaxIDType = "tz_vat" TaxTransactionCustomerDetailsTaxIDTypeUAVAT TaxTransactionCustomerDetailsTaxIDType = "ua_vat" TaxTransactionCustomerDetailsTaxIDTypeUnknown TaxTransactionCustomerDetailsTaxIDType = "unknown" TaxTransactionCustomerDetailsTaxIDTypeUSEIN TaxTransactionCustomerDetailsTaxIDType = "us_ein" TaxTransactionCustomerDetailsTaxIDTypeUYRUC TaxTransactionCustomerDetailsTaxIDType = "uy_ruc" + TaxTransactionCustomerDetailsTaxIDTypeUzTin TaxTransactionCustomerDetailsTaxIDType = "uz_tin" + TaxTransactionCustomerDetailsTaxIDTypeUzVAT TaxTransactionCustomerDetailsTaxIDType = "uz_vat" TaxTransactionCustomerDetailsTaxIDTypeVERIF TaxTransactionCustomerDetailsTaxIDType = "ve_rif" TaxTransactionCustomerDetailsTaxIDTypeVNTIN TaxTransactionCustomerDetailsTaxIDType = "vn_tin" TaxTransactionCustomerDetailsTaxIDTypeZAVAT TaxTransactionCustomerDetailsTaxIDType = "za_vat" @@ -151,6 +157,7 @@ const ( TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxTypeLeaseTax TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType = "lease_tax" TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxTypePST TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType = "pst" TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxTypeQST TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType = "qst" + TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxTypeRetailDeliveryFee TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType = "retail_delivery_fee" TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxTypeRST TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType = "rst" TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxTypeSalesTax TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType = "sales_tax" TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxTypeVAT TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType = "vat" @@ -311,7 +318,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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, 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`, `hr_oib`, `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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_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 7f60db80c2..da1be58fac 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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `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 @@ -34,6 +34,7 @@ const ( TaxIDTypeBOTIN TaxIDType = "bo_tin" TaxIDTypeBRCNPJ TaxIDType = "br_cnpj" TaxIDTypeBRCPF TaxIDType = "br_cpf" + TaxIDTypeByTin TaxIDType = "by_tin" TaxIDTypeCABN TaxIDType = "ca_bn" TaxIDTypeCAGSTHST TaxIDType = "ca_gst_hst" TaxIDTypeCAPSTBC TaxIDType = "ca_pst_bc" @@ -69,6 +70,8 @@ const ( TaxIDTypeKRBRN TaxIDType = "kr_brn" TaxIDTypeKzBin TaxIDType = "kz_bin" TaxIDTypeLIUID TaxIDType = "li_uid" + TaxIDTypeMaVAT TaxIDType = "ma_vat" + TaxIDTypeMdVAT TaxIDType = "md_vat" TaxIDTypeMXRFC TaxIDType = "mx_rfc" TaxIDTypeMYFRP TaxIDType = "my_frp" TaxIDTypeMYITN TaxIDType = "my_itn" @@ -92,10 +95,13 @@ const ( TaxIDTypeTHVAT TaxIDType = "th_vat" TaxIDTypeTRTIN TaxIDType = "tr_tin" TaxIDTypeTWVAT TaxIDType = "tw_vat" + TaxIDTypeTzVAT TaxIDType = "tz_vat" TaxIDTypeUAVAT TaxIDType = "ua_vat" TaxIDTypeUnknown TaxIDType = "unknown" TaxIDTypeUSEIN TaxIDType = "us_ein" TaxIDTypeUYRUC TaxIDType = "uy_ruc" + TaxIDTypeUzTin TaxIDType = "uz_tin" + TaxIDTypeUzVAT TaxIDType = "uz_vat" TaxIDTypeVERIF TaxIDType = "ve_rif" TaxIDTypeVNTIN TaxIDType = "vn_tin" TaxIDTypeZAVAT TaxIDType = "za_vat" @@ -118,7 +124,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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` Type *string `form:"type"` // Value of the tax ID. Value *string `form:"value"` @@ -185,7 +191,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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `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`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `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"` diff --git a/taxrate.go b/taxrate.go index af89493f1f..8b7f8bab9c 100644 --- a/taxrate.go +++ b/taxrate.go @@ -21,6 +21,15 @@ const ( TaxRateJurisdictionLevelState TaxRateJurisdictionLevel = "state" ) +// Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. +type TaxRateRateType string + +// List of values that TaxRateRateType can take +const ( + TaxRateRateTypeFlatAmount TaxRateRateType = "flat_amount" + TaxRateRateTypePercentage TaxRateRateType = "percentage" +) + // The high-level tax type, such as `vat` or `sales_tax`. type TaxRateTaxType string @@ -35,6 +44,7 @@ const ( TaxRateTaxTypeLeaseTax TaxRateTaxType = "lease_tax" TaxRateTaxTypePST TaxRateTaxType = "pst" TaxRateTaxTypeQST TaxRateTaxType = "qst" + TaxRateTaxTypeRetailDeliveryFee TaxRateTaxType = "retail_delivery_fee" TaxRateTaxTypeRST TaxRateTaxType = "rst" TaxRateTaxTypeSalesTax TaxRateTaxType = "sales_tax" TaxRateTaxTypeVAT TaxRateTaxType = "vat" @@ -101,6 +111,14 @@ func (p *TaxRateParams) AddMetadata(key string, value string) { p.Metadata[key] = value } +// The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. +type TaxRateFlatAmount struct { + // Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + Amount int64 `json:"amount"` + // Three-letter ISO currency code, in lowercase. + Currency Currency `json:"currency"` +} + // Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax. // // Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates) @@ -120,6 +138,8 @@ type TaxRate struct { // this percentage reflects the rate actually used to calculate tax based on the product's taxability // and whether the user is registered to collect taxes in the corresponding jurisdiction. EffectivePercentage float64 `json:"effective_percentage"` + // The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + FlatAmount *TaxRateFlatAmount `json:"flat_amount"` // Unique identifier for the object. ID string `json:"id"` // This specifies if the tax rate is inclusive or exclusive. @@ -136,6 +156,8 @@ type TaxRate struct { Object string `json:"object"` // Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions. Percentage float64 `json:"percentage"` + // Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. + RateType TaxRateRateType `json:"rate_type"` // [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. State string `json:"state"` // The high-level tax type, such as `vat` or `sales_tax`. diff --git a/terminal_configuration.go b/terminal_configuration.go index e7655af917..5687db9c6d 100644 --- a/terminal_configuration.go +++ b/terminal_configuration.go @@ -168,6 +168,16 @@ type TerminalConfigurationTippingNZDParams struct { SmartTipThreshold *int64 `form:"smart_tip_threshold"` } +// Tipping configuration for PLN +type TerminalConfigurationTippingPlnParams struct { + // Fixed amounts displayed when collecting a tip + FixedAmounts []*int64 `form:"fixed_amounts"` + // Percentages displayed when collecting a tip + Percentages []*int64 `form:"percentages"` + // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + SmartTipThreshold *int64 `form:"smart_tip_threshold"` +} + // Tipping configuration for SEK type TerminalConfigurationTippingSEKParams struct { // Fixed amounts displayed when collecting a tip @@ -222,6 +232,8 @@ type TerminalConfigurationTippingParams struct { NOK *TerminalConfigurationTippingNOKParams `form:"nok"` // Tipping configuration for NZD NZD *TerminalConfigurationTippingNZDParams `form:"nzd"` + // Tipping configuration for PLN + Pln *TerminalConfigurationTippingPlnParams `form:"pln"` // Tipping configuration for SEK SEK *TerminalConfigurationTippingSEKParams `form:"sek"` // Tipping configuration for SGD @@ -356,6 +368,14 @@ type TerminalConfigurationTippingNZD struct { // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed SmartTipThreshold int64 `json:"smart_tip_threshold"` } +type TerminalConfigurationTippingPln struct { + // Fixed amounts displayed when collecting a tip + FixedAmounts []int64 `json:"fixed_amounts"` + // Percentages displayed when collecting a tip + Percentages []int64 `json:"percentages"` + // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + SmartTipThreshold int64 `json:"smart_tip_threshold"` +} type TerminalConfigurationTippingSEK struct { // Fixed amounts displayed when collecting a tip FixedAmounts []int64 `json:"fixed_amounts"` @@ -392,6 +412,7 @@ type TerminalConfigurationTipping struct { MYR *TerminalConfigurationTippingMYR `json:"myr"` NOK *TerminalConfigurationTippingNOK `json:"nok"` NZD *TerminalConfigurationTippingNZD `json:"nzd"` + Pln *TerminalConfigurationTippingPln `json:"pln"` SEK *TerminalConfigurationTippingSEK `json:"sek"` SGD *TerminalConfigurationTippingSGD `json:"sgd"` USD *TerminalConfigurationTippingUSD `json:"usd"` diff --git a/testhelpers/issuing/card/client.go b/testhelpers/issuing/card/client.go index 0b735c2588..fe22758986 100644 --- a/testhelpers/issuing/card/client.go +++ b/testhelpers/issuing/card/client.go @@ -83,6 +83,22 @@ func (c Client) ShipCard(id string, params *stripe.TestHelpersIssuingCardShipCar return card, err } +// Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia' or later. +func SubmitCard(id string, params *stripe.TestHelpersIssuingCardSubmitCardParams) (*stripe.IssuingCard, error) { + return getC().SubmitCard(id, params) +} + +// Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia' or later. +func (c Client) SubmitCard(id string, params *stripe.TestHelpersIssuingCardSubmitCardParams) (*stripe.IssuingCard, error) { + path := stripe.FormatURLPath( + "/v1/test_helpers/issuing/cards/%s/shipping/submit", + id, + ) + card := &stripe.IssuingCard{} + err := c.B.Call(http.MethodPost, path, c.Key, params, card) + return card, err +} + func getC() Client { return Client{stripe.GetBackend(stripe.APIBackend), stripe.Key} } diff --git a/testhelpers_confirmationtoken.go b/testhelpers_confirmationtoken.go index 74cef5da25..f804780711 100644 --- a/testhelpers_confirmationtoken.go +++ b/testhelpers_confirmationtoken.go @@ -25,6 +25,9 @@ type TestHelpersConfirmationTokenPaymentMethodDataAfterpayClearpayParams struct{ // If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method. type TestHelpersConfirmationTokenPaymentMethodDataAlipayParams struct{} +// If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. +type TestHelpersConfirmationTokenPaymentMethodDataAlmaParams struct{} + // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. type TestHelpersConfirmationTokenPaymentMethodDataAmazonPayParams struct{} @@ -96,13 +99,16 @@ type TestHelpersConfirmationTokenPaymentMethodDataGrabpayParams struct{} // If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method. type TestHelpersConfirmationTokenPaymentMethodDataIDEALParams struct { - // The customer's bank. + // The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. Bank *string `form:"bank"` } // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. type TestHelpersConfirmationTokenPaymentMethodDataInteracPresentParams struct{} +// If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. +type TestHelpersConfirmationTokenPaymentMethodDataKakaoPayParams struct{} + // Customer's date of birth type TestHelpersConfirmationTokenPaymentMethodDataKlarnaDOBParams struct { // The day of birth, between 1 and 31. @@ -122,6 +128,9 @@ type TestHelpersConfirmationTokenPaymentMethodDataKlarnaParams struct { // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. type TestHelpersConfirmationTokenPaymentMethodDataKonbiniParams struct{} +// If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. +type TestHelpersConfirmationTokenPaymentMethodDataKrCardParams struct{} + // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. type TestHelpersConfirmationTokenPaymentMethodDataLinkParams struct{} @@ -131,6 +140,12 @@ type TestHelpersConfirmationTokenPaymentMethodDataMobilepayParams struct{} // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. type TestHelpersConfirmationTokenPaymentMethodDataMultibancoParams struct{} +// If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. +type TestHelpersConfirmationTokenPaymentMethodDataNaverPayParams struct { + // Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + Funding *string `form:"funding"` +} + // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. type TestHelpersConfirmationTokenPaymentMethodDataOXXOParams struct{} @@ -140,6 +155,9 @@ type TestHelpersConfirmationTokenPaymentMethodDataP24Params struct { Bank *string `form:"bank"` } +// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. +type TestHelpersConfirmationTokenPaymentMethodDataPaycoParams struct{} + // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. type TestHelpersConfirmationTokenPaymentMethodDataPayNowParams struct{} @@ -161,6 +179,9 @@ type TestHelpersConfirmationTokenPaymentMethodDataRadarOptionsParams struct { // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. type TestHelpersConfirmationTokenPaymentMethodDataRevolutPayParams struct{} +// If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. +type TestHelpersConfirmationTokenPaymentMethodDataSamsungPayParams struct{} + // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. type TestHelpersConfirmationTokenPaymentMethodDataSEPADebitParams struct { // IBAN of the bank account. @@ -211,6 +232,8 @@ type TestHelpersConfirmationTokenPaymentMethodDataParams struct { Alipay *TestHelpersConfirmationTokenPaymentMethodDataAlipayParams `form:"alipay"` // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. AllowRedisplay *string `form:"allow_redisplay"` + // If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + Alma *TestHelpersConfirmationTokenPaymentMethodDataAlmaParams `form:"alma"` // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. AmazonPay *TestHelpersConfirmationTokenPaymentMethodDataAmazonPayParams `form:"amazon_pay"` // If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. @@ -241,10 +264,14 @@ type TestHelpersConfirmationTokenPaymentMethodDataParams struct { IDEAL *TestHelpersConfirmationTokenPaymentMethodDataIDEALParams `form:"ideal"` // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method. InteracPresent *TestHelpersConfirmationTokenPaymentMethodDataInteracPresentParams `form:"interac_present"` + // If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + KakaoPay *TestHelpersConfirmationTokenPaymentMethodDataKakaoPayParams `form:"kakao_pay"` // If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. Klarna *TestHelpersConfirmationTokenPaymentMethodDataKlarnaParams `form:"klarna"` // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method. Konbini *TestHelpersConfirmationTokenPaymentMethodDataKonbiniParams `form:"konbini"` + // If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + KrCard *TestHelpersConfirmationTokenPaymentMethodDataKrCardParams `form:"kr_card"` // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. Link *TestHelpersConfirmationTokenPaymentMethodDataLinkParams `form:"link"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -253,10 +280,14 @@ type TestHelpersConfirmationTokenPaymentMethodDataParams struct { Mobilepay *TestHelpersConfirmationTokenPaymentMethodDataMobilepayParams `form:"mobilepay"` // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. Multibanco *TestHelpersConfirmationTokenPaymentMethodDataMultibancoParams `form:"multibanco"` + // If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + NaverPay *TestHelpersConfirmationTokenPaymentMethodDataNaverPayParams `form:"naver_pay"` // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. OXXO *TestHelpersConfirmationTokenPaymentMethodDataOXXOParams `form:"oxxo"` // If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method. P24 *TestHelpersConfirmationTokenPaymentMethodDataP24Params `form:"p24"` + // If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + Payco *TestHelpersConfirmationTokenPaymentMethodDataPaycoParams `form:"payco"` // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. PayNow *TestHelpersConfirmationTokenPaymentMethodDataPayNowParams `form:"paynow"` // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method. @@ -269,6 +300,8 @@ type TestHelpersConfirmationTokenPaymentMethodDataParams struct { RadarOptions *TestHelpersConfirmationTokenPaymentMethodDataRadarOptionsParams `form:"radar_options"` // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method. RevolutPay *TestHelpersConfirmationTokenPaymentMethodDataRevolutPayParams `form:"revolut_pay"` + // If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + SamsungPay *TestHelpersConfirmationTokenPaymentMethodDataSamsungPayParams `form:"samsung_pay"` // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. SEPADebit *TestHelpersConfirmationTokenPaymentMethodDataSEPADebitParams `form:"sepa_debit"` // If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method. diff --git a/testhelpersissuing_card.go b/testhelpersissuing_card.go index c6ead5fb28..c42a3ff9fb 100644 --- a/testhelpersissuing_card.go +++ b/testhelpersissuing_card.go @@ -53,3 +53,15 @@ type TestHelpersIssuingCardShipCardParams struct { func (p *TestHelpersIssuingCardShipCardParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } + +// Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia' or later. +type TestHelpersIssuingCardSubmitCardParams struct { + Params `form:"*"` + // Specifies which fields in the response should be expanded. + Expand []*string `form:"expand"` +} + +// AddExpand appends a new field to expand. +func (p *TestHelpersIssuingCardSubmitCardParams) AddExpand(f string) { + p.Expand = append(p.Expand, &f) +} diff --git a/token/client.go b/token/client.go index a112cd92c7..f7c26dbe81 100644 --- a/token/client.go +++ b/token/client.go @@ -20,13 +20,13 @@ type Client struct { } // Creates a single-use token that represents a bank account's details. -// You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. +// You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. func New(params *stripe.TokenParams) (*stripe.Token, error) { return getC().New(params) } // Creates a single-use token that represents a bank account's details. -// You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. +// You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. func (c Client) New(params *stripe.TokenParams) (*stripe.Token, error) { token := &stripe.Token{} err := c.B.Call(http.MethodPost, "/v1/tokens", c.Key, params, token) diff --git a/treasury_financialaccount.go b/treasury_financialaccount.go index b6560303a9..e62408d8dd 100644 --- a/treasury_financialaccount.go +++ b/treasury_financialaccount.go @@ -95,7 +95,7 @@ const ( TreasuryFinancialAccountRestrictedFeatureRemoteDepositCapture TreasuryFinancialAccountRestrictedFeature = "remote_deposit_capture" ) -// The enum specifying what state the account is in. +// Status of this FinancialAccount. type TreasuryFinancialAccountStatus string // List of values that TreasuryFinancialAccountStatus can take @@ -470,7 +470,7 @@ type TreasuryFinancialAccount struct { PlatformRestrictions *TreasuryFinancialAccountPlatformRestrictions `json:"platform_restrictions"` // The array of paths to restricted Features in the Features hash. RestrictedFeatures []TreasuryFinancialAccountRestrictedFeature `json:"restricted_features"` - // The enum specifying what state the account is in. + // Status of this FinancialAccount. Status TreasuryFinancialAccountStatus `json:"status"` StatusDetails *TreasuryFinancialAccountStatusDetails `json:"status_details"` // The currencies the FinancialAccount can hold a balance in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. diff --git a/usagerecordsummary.go b/usagerecordsummary.go index a4f0829508..a9aee306a3 100644 --- a/usagerecordsummary.go +++ b/usagerecordsummary.go @@ -21,6 +21,7 @@ func (p *UsageRecordSummaryListParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } +// A usage record summary represents an aggregated view of how much usage was accrued for a subscription item within a subscription billing period. type UsageRecordSummary struct { // Unique identifier for the object. ID string `json:"id"` From 189941481c86d1c4d652e6e2bf148554b4283475 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Tue, 29 Oct 2024 14:27:21 -0700 Subject: [PATCH 3/3] Bump version to 81.0.0 --- CHANGELOG.md | 31 ++ README.md | 42 +-- VERSION | 2 +- account.go | 2 +- account/client.go | 4 +- account/client_test.go | 4 +- account_test.go | 2 +- accountlink/client.go | 2 +- accountlink/client_test.go | 4 +- accountsession/client.go | 2 +- applepaydomain/client.go | 4 +- applepaydomain/client_test.go | 4 +- applicationfee/client.go | 4 +- applicationfee/client_test.go | 4 +- apps/secret/client.go | 4 +- balance/client.go | 2 +- balance/client_test.go | 2 +- balancetransaction/client.go | 4 +- balancetransaction/client_test.go | 4 +- bankaccount.go | 2 +- bankaccount/client.go | 4 +- bankaccount/client_test.go | 4 +- bankaccount_test.go | 2 +- billing/alert/client.go | 4 +- billing/creditbalancesummary/client.go | 2 +- billing/creditbalancetransaction/client.go | 4 +- billing/creditgrant/client.go | 4 +- billing/meter/client.go | 4 +- billing/meterevent/client.go | 2 +- billing/metereventadjustment/client.go | 2 +- billing/metereventsummary/client.go | 4 +- billingportal/configuration/client.go | 4 +- billingportal/configuration/client_test.go | 4 +- billingportal/session/client.go | 2 +- billingportal/session/client_test.go | 4 +- capability/client.go | 4 +- capability/client_test.go | 4 +- card.go | 2 +- card/client.go | 4 +- card/client_test.go | 4 +- card_test.go | 2 +- cashbalance/client.go | 2 +- charge/client.go | 4 +- charge/client_test.go | 4 +- checkout/session/client.go | 4 +- checkout/session/client_test.go | 4 +- client/api.go | 274 +++++++++--------- climate/order/client.go | 4 +- climate/product/client.go | 4 +- climate/supplier/client.go | 4 +- confirmationtoken/client.go | 2 +- countryspec/client.go | 4 +- countryspec/client_test.go | 4 +- coupon/client.go | 4 +- coupon/client_test.go | 4 +- creditnote/client.go | 4 +- creditnote/client_test.go | 4 +- customer/client.go | 4 +- customer/client_test.go | 4 +- customerbalancetransaction/client.go | 4 +- customerbalancetransaction/client_test.go | 4 +- customercashbalancetransaction/client.go | 4 +- customersession/client.go | 2 +- dispute/client.go | 4 +- dispute/client_test.go | 4 +- entitlements/activeentitlement/client.go | 4 +- entitlements/feature/client.go | 4 +- ephemeralkey/client.go | 2 +- ephemeralkey/client_test.go | 4 +- event/client.go | 4 +- event/client_test.go | 4 +- example/deserialization_test.go | 2 +- example/generated_examples_test.go | 206 ++++++------- .../meter_event_stream/meter_event_stream.go | 4 +- .../thinevent_webhook_handler.go | 8 +- example_test.go | 10 +- feerefund/client.go | 4 +- feerefund/client_test.go | 4 +- file.go | 2 +- file/client.go | 4 +- file/client_test.go | 6 +- filelink.go | 2 +- filelink/client.go | 4 +- filelink/client_test.go | 4 +- filelink_test.go | 2 +- financialconnections/account/client.go | 4 +- financialconnections/session/client.go | 2 +- financialconnections/transaction/client.go | 4 +- forwarding/request/client.go | 4 +- go.mod | 2 +- identity/verificationreport/client.go | 4 +- identity/verificationreport/client_test.go | 4 +- identity/verificationsession/client.go | 4 +- identity/verificationsession/client_test.go | 4 +- invoice.go | 2 +- invoice/client.go | 4 +- invoice/client_test.go | 4 +- invoice_test.go | 2 +- invoiceitem/client.go | 4 +- invoiceitem/client_test.go | 4 +- invoicelineitem/client.go | 2 +- invoicerenderingtemplate/client.go | 4 +- issuing/authorization/client.go | 4 +- issuing/authorization/client_test.go | 4 +- issuing/card/client.go | 4 +- issuing/card/client_test.go | 4 +- issuing/cardholder/client.go | 4 +- issuing/cardholder/client_test.go | 4 +- issuing/dispute/client.go | 4 +- issuing/dispute/client_test.go | 4 +- issuing/personalizationdesign/client.go | 4 +- issuing/physicalbundle/client.go | 4 +- issuing/token/client.go | 4 +- issuing/transaction/client.go | 4 +- issuing/transaction/client_test.go | 4 +- iter.go | 2 +- iter_test.go | 2 +- loginlink/client.go | 2 +- loginlink/client_test.go | 4 +- mandate/client.go | 2 +- mandate/client_test.go | 2 +- oauth/client.go | 4 +- oauth/client_test.go | 4 +- params.go | 2 +- params_test.go | 6 +- paymentintent/client.go | 4 +- paymentintent/client_test.go | 4 +- paymentlink/client.go | 4 +- paymentmethod/client.go | 4 +- paymentmethod/client_test.go | 4 +- paymentmethodconfiguration/client.go | 4 +- paymentmethoddomain/client.go | 4 +- paymentsource.go | 2 +- paymentsource/client.go | 4 +- paymentsource/client_test.go | 4 +- paymentsource_test.go | 2 +- payout/client.go | 4 +- payout/client_test.go | 4 +- person/client.go | 4 +- person/client_test.go | 4 +- plan.go | 2 +- plan/client.go | 4 +- plan/client_test.go | 4 +- plan_test.go | 2 +- price.go | 2 +- price/client.go | 4 +- price/client_test.go | 4 +- price_test.go | 2 +- product.go | 2 +- product/client.go | 4 +- product/client_test.go | 4 +- productfeature/client.go | 4 +- promotioncode/client.go | 4 +- promotioncode/client_test.go | 4 +- quote.go | 2 +- quote/client.go | 4 +- quote/client_test.go | 4 +- quote_test.go | 2 +- radar/earlyfraudwarning/client.go | 4 +- radar/earlyfraudwarning/client_test.go | 4 +- radar/valuelist/client.go | 4 +- radar/valuelist/client_test.go | 4 +- radar/valuelistitem/client.go | 4 +- radar/valuelistitem/client_test.go | 4 +- rawrequest/client.go | 2 +- rawrequest/client_test.go | 4 +- refund/client.go | 4 +- refund/client_test.go | 4 +- reporting/reportrun/client.go | 4 +- reporting/reportrun/client_test.go | 4 +- reporting/reporttype/client.go | 4 +- reporting/reporttype/client_test.go | 4 +- review/client.go | 4 +- review/client_test.go | 4 +- search_iter.go | 2 +- search_iter_test.go | 2 +- search_params_test.go | 6 +- setupattempt/client.go | 4 +- setupattempt/client_test.go | 4 +- setupintent/client.go | 4 +- setupintent/client_test.go | 4 +- shippingrate/client.go | 4 +- sigma/scheduledqueryrun/client.go | 4 +- sigma/scheduledqueryrun/client_test.go | 4 +- source/client.go | 2 +- source/client_test.go | 4 +- sourcetransaction/client.go | 4 +- sourcetransaction/client_test.go | 4 +- stripe.go | 4 +- sub_test.go | 2 +- subschedule_test.go | 2 +- subscription.go | 2 +- subscription/client.go | 4 +- subscription/client_test.go | 4 +- subscriptionitem/client.go | 4 +- subscriptionitem/client_test.go | 4 +- subscriptionschedule.go | 2 +- subscriptionschedule/client.go | 4 +- subscriptionschedule/client_test.go | 4 +- tax/calculation/client.go | 4 +- tax/registration/client.go | 4 +- tax/settings/client.go | 2 +- tax/transaction/client.go | 4 +- tax_registration.go | 2 +- taxcode/client.go | 4 +- taxcode/client_test.go | 4 +- taxid/client.go | 4 +- taxid/client_test.go | 4 +- taxrate/client.go | 4 +- taxrate/client_test.go | 4 +- terminal/configuration/client.go | 4 +- terminal/connectiontoken/client.go | 2 +- terminal/connectiontoken/client_test.go | 4 +- terminal/location/client.go | 4 +- terminal/location/client_test.go | 4 +- terminal/reader/client.go | 4 +- terminal/reader/client_test.go | 4 +- testhelpers/confirmationtoken/client.go | 2 +- testhelpers/customer/client.go | 2 +- testhelpers/issuing/authorization/client.go | 2 +- testhelpers/issuing/card/client.go | 2 +- .../issuing/personalizationdesign/client.go | 2 +- testhelpers/issuing/transaction/client.go | 2 +- testhelpers/refund/client.go | 2 +- testhelpers/terminal/reader/client.go | 2 +- testhelpers/terminal/reader/client_test.go | 4 +- testhelpers/testclock/client.go | 4 +- .../treasury/inboundtransfer/client.go | 2 +- .../treasury/outboundpayment/client.go | 2 +- .../treasury/outboundtransfer/client.go | 2 +- testhelpers/treasury/receivedcredit/client.go | 2 +- testhelpers/treasury/receiveddebit/client.go | 2 +- testing/testing.go | 4 +- token/client.go | 2 +- token/client_test.go | 4 +- topup/client.go | 4 +- topup/client_test.go | 4 +- transfer/client.go | 4 +- transfer/client_test.go | 4 +- transferreversal/client.go | 4 +- transferreversal/client_test.go | 4 +- treasury/creditreversal/client.go | 4 +- treasury/debitreversal/client.go | 4 +- treasury/financialaccount/client.go | 4 +- treasury/inboundtransfer/client.go | 4 +- treasury/outboundpayment/client.go | 4 +- treasury/outboundtransfer/client.go | 4 +- treasury/receivedcredit/client.go | 4 +- treasury/receiveddebit/client.go | 4 +- treasury/transaction/client.go | 4 +- treasury/transactionentry/client.go | 4 +- usagerecord.go | 2 +- usagerecord/client.go | 2 +- usagerecord/client_test.go | 4 +- usagerecord_test.go | 2 +- usagerecordsummary/client.go | 4 +- usagerecordsummary/client_test.go | 4 +- webhook/client.go | 2 +- webhook/client_handler_test.go | 2 +- webhook/client_test.go | 2 +- webhookendpoint/client.go | 4 +- webhookendpoint/client_test.go | 4 +- 262 files changed, 742 insertions(+), 711 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11d8474359..f46fc8872b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,36 @@ # Changelog +## 81.0.0 - 2024-10-29 +* [#1931](https://github.com/stripe/stripe-go/pull/1931) This release changes the pinned API version to `2024-10-28.acacia`. + * Add support for new resource `V2.EventDestinations` + * Add support for `New`, `Retrieve`, `Update`, `List`, `Delete`, `Disable`, `Enable` and `Ping` methods on resource `V2.EventDestinations` + * Add support for `SubmitCard` test helper method on resource `Issuing.Card` + * Add support for `Groups` on `AccountParams` and `Account` + * Add support for `AlmaPayments`, `KakaoPayPayments`, `KrCardPayments`, `NaverPayPayments`, `PaycoPayments`, and `SamsungPayPayments` on `AccountCapabilitiesParams` and `AccountCapabilities` + * Add support for `DisableStripeUserAuthentication` on `AccountSessionComponentsAccountManagementFeaturesParams`, `AccountSessionComponentsAccountManagementFeatures`, `AccountSessionComponentsAccountOnboardingFeaturesParams`, `AccountSessionComponentsAccountOnboardingFeatures`, `AccountSessionComponentsBalancesFeaturesParams`, `AccountSessionComponentsBalancesFeatures`, `AccountSessionComponentsNotificationBannerFeaturesParams`, `AccountSessionComponentsNotificationBannerFeatures`, `AccountSessionComponentsPayoutsFeaturesParams`, and `AccountSessionComponentsPayoutsFeatures` + * Add support for `ScheduleAtPeriodEnd` on `BillingPortalConfigurationFeaturesSubscriptionUpdateParams` and `BillingPortalConfigurationFeaturesSubscriptionUpdate` + * Add support for `Alma` on `ChargePaymentMethodDetails`, `ConfirmationTokenPaymentMethodDataParams`, `ConfirmationTokenPaymentMethodPreview`, `PaymentIntentConfirmPaymentMethodDataParams`, `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodDataParams`, `PaymentIntentPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodConfigurationParams`, `PaymentMethodConfiguration`, `PaymentMethodParams`, `PaymentMethod`, `RefundDestinationDetails`, `SetupIntentConfirmPaymentMethodDataParams`, and `SetupIntentPaymentMethodDataParams` + * Add support for `KakaoPay` and `KrCard` on `ChargePaymentMethodDetails`, `CheckoutSessionPaymentMethodOptionsParams`, `CheckoutSessionPaymentMethodOptions`, `ConfirmationTokenPaymentMethodDataParams`, `ConfirmationTokenPaymentMethodPreview`, `MandatePaymentMethodDetails`, `PaymentIntentConfirmPaymentMethodDataParams`, `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodDataParams`, `PaymentIntentPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodParams`, `PaymentMethod`, `SetupAttemptPaymentMethodDetails`, `SetupIntentConfirmPaymentMethodDataParams`, and `SetupIntentPaymentMethodDataParams` + * Add support for `NaverPay` on `ChargePaymentMethodDetails`, `CheckoutSessionPaymentMethodOptionsParams`, `CheckoutSessionPaymentMethodOptions`, `ConfirmationTokenPaymentMethodDataParams`, `ConfirmationTokenPaymentMethodPreview`, `PaymentIntentConfirmPaymentMethodDataParams`, `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodDataParams`, `PaymentIntentPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodParams`, `PaymentMethod`, `SetupIntentConfirmPaymentMethodDataParams`, and `SetupIntentPaymentMethodDataParams` + * Add support for `Payco` and `SamsungPay` on `ChargePaymentMethodDetails`, `CheckoutSessionPaymentMethodOptionsParams`, `CheckoutSessionPaymentMethodOptions`, `ConfirmationTokenPaymentMethodDataParams`, `ConfirmationTokenPaymentMethodPreview`, `PaymentIntentConfirmPaymentMethodDataParams`, `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodDataParams`, `PaymentIntentPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodParams`, `PaymentMethod`, `SetupIntentConfirmPaymentMethodDataParams`, and `SetupIntentPaymentMethodDataParams` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CheckoutSessionCustomerDetailsTaxIdsType`, `InvoiceCustomerTaxIdsType`, `TaxCalculationCustomerDetailsTaxIdsType`, `TaxIdType`, and `TaxTransactionCustomerDetailsTaxIdsType` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenPaymentMethodPreviewType` and `PaymentMethodType` + * Add support for `EnhancedEvidence` on `DisputeEvidenceParams` and `DisputeEvidence` + * Add support for `EnhancedEligibilityTypes` on `Dispute` + * Add support for `EnhancedEligibility` on `DisputeEvidenceDetails` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `EventType` + * Add support for `Metadata` on `ForwardingRequestParams` and `ForwardingRequest` + * Add support for `AutomaticallyFinalizesAt` on `InvoiceParams` + * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `InvoicePaymentSettingsPaymentMethodTypes` and `SubscriptionPaymentSettingsPaymentMethodTypes` + * Add support for new value `alma` on enum `PaymentLinkPaymentMethodTypes` + * Add support for `AmazonPay` on `PaymentMethodDomain` + * Change type of `RefundNextActionDisplayDetails` from `nullable(RefundNextActionDisplayDetails)` to `RefundNextActionDisplayDetails` + * Add support for new value `retail_delivery_fee` on enums `TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType`, `TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType`, `TaxCalculationTaxBreakdownTaxRateDetailsTaxType`, `TaxRateTaxType`, and `TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType` + * Add support for `FlatAmount` and `RateType` on `TaxCalculationTaxBreakdownTaxRateDetails` and `TaxRate` + * Add support for `By`, `Cr`, `Ec`, `Ma`, `Md`, `RU`, `Rs`, `Tz`, and `Uz` on `TaxRegistrationCountryOptionsParams` and `TaxRegistrationCountryOptions` + * Add support for new value `state_retail_delivery_fee` on enum `TaxRegistrationCountryOptionsUsType` + * Add support for `Pln` on `TerminalConfigurationTippingParams` and `TerminalConfigurationTipping` + ## 80.2.1 - 2024-10-29 * [#1940](https://github.com/stripe/stripe-go/pull/1940) Update webhook API version validation - Update webhook event processing to accept events from any API version within the supported major release diff --git a/README.md b/README.md index 28ad62eac0..398d891e93 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Go Stripe -[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v80) +[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v81) [![Build Status](https://github.com/stripe/stripe-go/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-go/actions/workflows/ci.yml?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-go/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-go?branch=master) @@ -23,8 +23,8 @@ Then, reference stripe-go in a Go program with `import`: ```go import ( - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/customer" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/customer" ) ``` @@ -34,7 +34,7 @@ toolchain will resolve and fetch the stripe-go module automatically. Alternatively, you can also explicitly `go get` the package into a project: ```bash -go get -u github.com/stripe/stripe-go/v80 +go get -u github.com/stripe/stripe-go/v81 ``` ## Documentation @@ -123,8 +123,8 @@ To use a key, pass it to `API`'s `Init` function: ```go import ( - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/client" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/client" ) stripe := &client.API{} @@ -145,8 +145,8 @@ import ( "google.golang.org/appengine" "google.golang.org/appengine/urlfetch" - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/client" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/client" ) func handler(w http.ResponseWriter, r *http.Request) { @@ -180,8 +180,8 @@ client. ```go import ( - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/$resource$" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/$resource$" ) // Setup @@ -221,8 +221,8 @@ individual key. ```go import ( - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/client" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/client" ) // Setup @@ -293,8 +293,8 @@ with `MaxNetworkRetries`: ```go import ( - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/client" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/client" ) config := &stripe.BackendConfig{ @@ -483,7 +483,7 @@ To mock a Stripe client for a unit tests using [GoMock](https://github.com/golan 1. Generate a `Backend` type mock. ``` -mockgen -destination=mocks/backend.go -package=mocks github.com/stripe/stripe-go/v80 Backend +mockgen -destination=mocks/backend.go -package=mocks github.com/stripe/stripe-go/v81 Backend ``` 2. Use the `Backend` mock to initialize and call methods on the client. @@ -496,8 +496,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/account" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/account" ) func UseMockedStripeClient(t *testing.T) { @@ -534,7 +534,7 @@ We would love for you to try these and share feedback with us before these featu To install a beta version of stripe-go use the commit notation of the `go get` command to point to a beta tag: ``` -go get -u github.com/stripe/stripe-go/v80@beta +go get -u github.com/stripe/stripe-go/v81@beta ``` > **Note** @@ -566,9 +566,9 @@ import ( "encoding/json" "fmt" - "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" - "github.com/stripe/stripe-go/v80/rawrequest" + "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" + "github.com/stripe/stripe-go/v81/rawrequest" ) func make_raw_request() error { diff --git a/VERSION b/VERSION index 8afe3ff971..6a78467e89 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -80.2.1 +81.0.0 diff --git a/account.go b/account.go index 088eef6f78..58ce96edd7 100644 --- a/account.go +++ b/account.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // The business type. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. diff --git a/account/client.go b/account/client.go index 24464efbf3..f7de5d7f9a 100644 --- a/account/client.go +++ b/account/client.go @@ -10,8 +10,8 @@ package account import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /accounts APIs. diff --git a/account/client_test.go b/account/client_test.go index 2060aead36..babbe92d60 100644 --- a/account/client_test.go +++ b/account/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestAccountDel(t *testing.T) { diff --git a/account_test.go b/account_test.go index 4e7a661602..b67f46f1e6 100644 --- a/account_test.go +++ b/account_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestAccountExternalAccountParams_AppendTo(t *testing.T) { diff --git a/accountlink/client.go b/accountlink/client.go index 4a1189ce7c..c9714941b9 100644 --- a/accountlink/client.go +++ b/accountlink/client.go @@ -10,7 +10,7 @@ package accountlink import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /account_links APIs. diff --git a/accountlink/client_test.go b/accountlink/client_test.go index 2d9137a608..2f5dff910c 100644 --- a/accountlink/client_test.go +++ b/accountlink/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestAccountLinkNew(t *testing.T) { diff --git a/accountsession/client.go b/accountsession/client.go index 031188efaf..360bd90e4b 100644 --- a/accountsession/client.go +++ b/accountsession/client.go @@ -10,7 +10,7 @@ package accountsession import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /account_sessions APIs. diff --git a/applepaydomain/client.go b/applepaydomain/client.go index fece725979..47497fcef4 100644 --- a/applepaydomain/client.go +++ b/applepaydomain/client.go @@ -10,8 +10,8 @@ package applepaydomain import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /apple_pay/domains APIs. diff --git a/applepaydomain/client_test.go b/applepaydomain/client_test.go index f40c67fc1a..fd6965e02d 100644 --- a/applepaydomain/client_test.go +++ b/applepaydomain/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestApplePayDomainDel(t *testing.T) { diff --git a/applicationfee/client.go b/applicationfee/client.go index a2361339c9..e5e4c4291d 100644 --- a/applicationfee/client.go +++ b/applicationfee/client.go @@ -10,8 +10,8 @@ package applicationfee import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /application_fees APIs. diff --git a/applicationfee/client_test.go b/applicationfee/client_test.go index d69d308827..68216b32da 100644 --- a/applicationfee/client_test.go +++ b/applicationfee/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestApplicationFeeGet(t *testing.T) { diff --git a/apps/secret/client.go b/apps/secret/client.go index fbfab39a44..84e0b02385 100644 --- a/apps/secret/client.go +++ b/apps/secret/client.go @@ -10,8 +10,8 @@ package secret import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /apps/secrets APIs. diff --git a/balance/client.go b/balance/client.go index c0f7f9f67e..8cc14ee86b 100644 --- a/balance/client.go +++ b/balance/client.go @@ -10,7 +10,7 @@ package balance import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /balance APIs. diff --git a/balance/client_test.go b/balance/client_test.go index 536db03f9b..0d4b4e22ca 100644 --- a/balance/client_test.go +++ b/balance/client_test.go @@ -4,7 +4,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - _ "github.com/stripe/stripe-go/v80/testing" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestBalanceGet(t *testing.T) { diff --git a/balancetransaction/client.go b/balancetransaction/client.go index c05c734aca..759519b768 100644 --- a/balancetransaction/client.go +++ b/balancetransaction/client.go @@ -10,8 +10,8 @@ package balancetransaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /balance_transactions APIs. diff --git a/balancetransaction/client_test.go b/balancetransaction/client_test.go index 11bb7a348c..27e565edbe 100644 --- a/balancetransaction/client_test.go +++ b/balancetransaction/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestBalanceTransactionGet(t *testing.T) { diff --git a/bankaccount.go b/bankaccount.go index 486c99f2b8..a1d39b9fb8 100644 --- a/bankaccount.go +++ b/bankaccount.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" "strconv" ) diff --git a/bankaccount/client.go b/bankaccount/client.go index 8b19dba3ca..1916276038 100644 --- a/bankaccount/client.go +++ b/bankaccount/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke bankaccount related APIs. diff --git a/bankaccount/client_test.go b/bankaccount/client_test.go index e73493c931..22e97c4cda 100644 --- a/bankaccount/client_test.go +++ b/bankaccount/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestBankAccountDel_ByAccount(t *testing.T) { diff --git a/bankaccount_test.go b/bankaccount_test.go index 2ec4e81e98..ea5a2f8993 100644 --- a/bankaccount_test.go +++ b/bankaccount_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestBankAccount_UnmarshalJSON(t *testing.T) { diff --git a/billing/alert/client.go b/billing/alert/client.go index 1be3aa57a1..e877217c85 100644 --- a/billing/alert/client.go +++ b/billing/alert/client.go @@ -10,8 +10,8 @@ package alert import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /billing/alerts APIs. diff --git a/billing/creditbalancesummary/client.go b/billing/creditbalancesummary/client.go index a35bd01e82..b41730740e 100644 --- a/billing/creditbalancesummary/client.go +++ b/billing/creditbalancesummary/client.go @@ -10,7 +10,7 @@ package creditbalancesummary import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /billing/credit_balance_summary APIs. diff --git a/billing/creditbalancetransaction/client.go b/billing/creditbalancetransaction/client.go index d5978fb11f..0cc1fa8923 100644 --- a/billing/creditbalancetransaction/client.go +++ b/billing/creditbalancetransaction/client.go @@ -10,8 +10,8 @@ package creditbalancetransaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /billing/credit_balance_transactions APIs. diff --git a/billing/creditgrant/client.go b/billing/creditgrant/client.go index 7caa455599..3540800bf5 100644 --- a/billing/creditgrant/client.go +++ b/billing/creditgrant/client.go @@ -10,8 +10,8 @@ package creditgrant import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /billing/credit_grants APIs. diff --git a/billing/meter/client.go b/billing/meter/client.go index 14c1daf7a2..4bbe7ce0de 100644 --- a/billing/meter/client.go +++ b/billing/meter/client.go @@ -10,8 +10,8 @@ package meter import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /billing/meters APIs. diff --git a/billing/meterevent/client.go b/billing/meterevent/client.go index 9fc450164c..8d95b1ea13 100644 --- a/billing/meterevent/client.go +++ b/billing/meterevent/client.go @@ -10,7 +10,7 @@ package meterevent import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /billing/meter_events APIs. diff --git a/billing/metereventadjustment/client.go b/billing/metereventadjustment/client.go index e36040be06..4d4318a3c7 100644 --- a/billing/metereventadjustment/client.go +++ b/billing/metereventadjustment/client.go @@ -10,7 +10,7 @@ package metereventadjustment import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /billing/meter_event_adjustments APIs. diff --git a/billing/metereventsummary/client.go b/billing/metereventsummary/client.go index 48ffc6929a..880706b904 100644 --- a/billing/metereventsummary/client.go +++ b/billing/metereventsummary/client.go @@ -10,8 +10,8 @@ package metereventsummary import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /billing/meters/{id}/event_summaries APIs. diff --git a/billingportal/configuration/client.go b/billingportal/configuration/client.go index 67b3d06dde..2091931c5b 100644 --- a/billingportal/configuration/client.go +++ b/billingportal/configuration/client.go @@ -10,8 +10,8 @@ package configuration import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /billing_portal/configurations APIs. diff --git a/billingportal/configuration/client_test.go b/billingportal/configuration/client_test.go index c4ba53f136..8401db1d04 100644 --- a/billingportal/configuration/client_test.go +++ b/billingportal/configuration/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestBillingPortalConfigurationGet(t *testing.T) { diff --git a/billingportal/session/client.go b/billingportal/session/client.go index 061589fdec..b86e84e37e 100644 --- a/billingportal/session/client.go +++ b/billingportal/session/client.go @@ -10,7 +10,7 @@ package session import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /billing_portal/sessions APIs. diff --git a/billingportal/session/client_test.go b/billingportal/session/client_test.go index c8770c80f5..13d5b52eed 100644 --- a/billingportal/session/client_test.go +++ b/billingportal/session/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestBillingPortalSessionNew(t *testing.T) { diff --git a/capability/client.go b/capability/client.go index daaf6dc01f..7d092a121a 100644 --- a/capability/client.go +++ b/capability/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /accounts/{account}/capabilities APIs. diff --git a/capability/client_test.go b/capability/client_test.go index 8646eff257..fb7e3501a7 100644 --- a/capability/client_test.go +++ b/capability/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCapabilityGet(t *testing.T) { diff --git a/card.go b/card.go index 9853f5b15d..c10835b4c3 100644 --- a/card.go +++ b/card.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" "strconv" ) diff --git a/card/client.go b/card/client.go index 418a9f499d..bfbf19d580 100644 --- a/card/client.go +++ b/card/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke card related APIs. diff --git a/card/client_test.go b/card/client_test.go index ba870e9c8f..da4ee75ff1 100644 --- a/card/client_test.go +++ b/card/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCardDel(t *testing.T) { diff --git a/card_test.go b/card_test.go index 383cf64b30..c3281092fd 100644 --- a/card_test.go +++ b/card_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestCardListParams_AppendTo(t *testing.T) { diff --git a/cashbalance/client.go b/cashbalance/client.go index d12b989175..be48f63aee 100644 --- a/cashbalance/client.go +++ b/cashbalance/client.go @@ -11,7 +11,7 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /customers/{customer}/cash_balance APIs. diff --git a/charge/client.go b/charge/client.go index 081640ed10..2be30ba0bd 100644 --- a/charge/client.go +++ b/charge/client.go @@ -10,8 +10,8 @@ package charge import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /charges APIs. diff --git a/charge/client_test.go b/charge/client_test.go index 6ce1ae849c..5f6f608f1e 100644 --- a/charge/client_test.go +++ b/charge/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestChargeCapture(t *testing.T) { diff --git a/checkout/session/client.go b/checkout/session/client.go index 7658e77423..6c0e3f6196 100644 --- a/checkout/session/client.go +++ b/checkout/session/client.go @@ -10,8 +10,8 @@ package session import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /checkout/sessions APIs. diff --git a/checkout/session/client_test.go b/checkout/session/client_test.go index c6164e8d3f..36188deb4b 100644 --- a/checkout/session/client_test.go +++ b/checkout/session/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCheckoutSessionGet(t *testing.T) { diff --git a/client/api.go b/client/api.go index cae18c77dd..8fffc10c3e 100644 --- a/client/api.go +++ b/client/api.go @@ -8,143 +8,143 @@ package client import ( - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/account" - "github.com/stripe/stripe-go/v80/accountlink" - "github.com/stripe/stripe-go/v80/accountsession" - "github.com/stripe/stripe-go/v80/applepaydomain" - "github.com/stripe/stripe-go/v80/applicationfee" - appssecret "github.com/stripe/stripe-go/v80/apps/secret" - "github.com/stripe/stripe-go/v80/balance" - "github.com/stripe/stripe-go/v80/balancetransaction" - "github.com/stripe/stripe-go/v80/bankaccount" - billingalert "github.com/stripe/stripe-go/v80/billing/alert" - billingcreditbalancesummary "github.com/stripe/stripe-go/v80/billing/creditbalancesummary" - billingcreditbalancetransaction "github.com/stripe/stripe-go/v80/billing/creditbalancetransaction" - billingcreditgrant "github.com/stripe/stripe-go/v80/billing/creditgrant" - billingmeter "github.com/stripe/stripe-go/v80/billing/meter" - billingmeterevent "github.com/stripe/stripe-go/v80/billing/meterevent" - billingmetereventadjustment "github.com/stripe/stripe-go/v80/billing/metereventadjustment" - billingmetereventsummary "github.com/stripe/stripe-go/v80/billing/metereventsummary" - billingportalconfiguration "github.com/stripe/stripe-go/v80/billingportal/configuration" - billingportalsession "github.com/stripe/stripe-go/v80/billingportal/session" - "github.com/stripe/stripe-go/v80/capability" - "github.com/stripe/stripe-go/v80/card" - "github.com/stripe/stripe-go/v80/cashbalance" - "github.com/stripe/stripe-go/v80/charge" - checkoutsession "github.com/stripe/stripe-go/v80/checkout/session" - climateorder "github.com/stripe/stripe-go/v80/climate/order" - climateproduct "github.com/stripe/stripe-go/v80/climate/product" - climatesupplier "github.com/stripe/stripe-go/v80/climate/supplier" - "github.com/stripe/stripe-go/v80/confirmationtoken" - "github.com/stripe/stripe-go/v80/countryspec" - "github.com/stripe/stripe-go/v80/coupon" - "github.com/stripe/stripe-go/v80/creditnote" - "github.com/stripe/stripe-go/v80/customer" - "github.com/stripe/stripe-go/v80/customerbalancetransaction" - "github.com/stripe/stripe-go/v80/customercashbalancetransaction" - "github.com/stripe/stripe-go/v80/customersession" - "github.com/stripe/stripe-go/v80/dispute" - entitlementsactiveentitlement "github.com/stripe/stripe-go/v80/entitlements/activeentitlement" - entitlementsfeature "github.com/stripe/stripe-go/v80/entitlements/feature" - "github.com/stripe/stripe-go/v80/ephemeralkey" - "github.com/stripe/stripe-go/v80/event" - "github.com/stripe/stripe-go/v80/feerefund" - "github.com/stripe/stripe-go/v80/file" - "github.com/stripe/stripe-go/v80/filelink" - financialconnectionsaccount "github.com/stripe/stripe-go/v80/financialconnections/account" - financialconnectionssession "github.com/stripe/stripe-go/v80/financialconnections/session" - financialconnectionstransaction "github.com/stripe/stripe-go/v80/financialconnections/transaction" - forwardingrequest "github.com/stripe/stripe-go/v80/forwarding/request" - identityverificationreport "github.com/stripe/stripe-go/v80/identity/verificationreport" - identityverificationsession "github.com/stripe/stripe-go/v80/identity/verificationsession" - "github.com/stripe/stripe-go/v80/invoice" - "github.com/stripe/stripe-go/v80/invoiceitem" - "github.com/stripe/stripe-go/v80/invoicelineitem" - "github.com/stripe/stripe-go/v80/invoicerenderingtemplate" - issuingauthorization "github.com/stripe/stripe-go/v80/issuing/authorization" - issuingcard "github.com/stripe/stripe-go/v80/issuing/card" - issuingcardholder "github.com/stripe/stripe-go/v80/issuing/cardholder" - issuingdispute "github.com/stripe/stripe-go/v80/issuing/dispute" - issuingpersonalizationdesign "github.com/stripe/stripe-go/v80/issuing/personalizationdesign" - issuingphysicalbundle "github.com/stripe/stripe-go/v80/issuing/physicalbundle" - issuingtoken "github.com/stripe/stripe-go/v80/issuing/token" - issuingtransaction "github.com/stripe/stripe-go/v80/issuing/transaction" - "github.com/stripe/stripe-go/v80/loginlink" - "github.com/stripe/stripe-go/v80/mandate" - "github.com/stripe/stripe-go/v80/oauth" - "github.com/stripe/stripe-go/v80/paymentintent" - "github.com/stripe/stripe-go/v80/paymentlink" - "github.com/stripe/stripe-go/v80/paymentmethod" - "github.com/stripe/stripe-go/v80/paymentmethodconfiguration" - "github.com/stripe/stripe-go/v80/paymentmethoddomain" - "github.com/stripe/stripe-go/v80/paymentsource" - "github.com/stripe/stripe-go/v80/payout" - "github.com/stripe/stripe-go/v80/person" - "github.com/stripe/stripe-go/v80/plan" - "github.com/stripe/stripe-go/v80/price" - "github.com/stripe/stripe-go/v80/product" - "github.com/stripe/stripe-go/v80/productfeature" - "github.com/stripe/stripe-go/v80/promotioncode" - "github.com/stripe/stripe-go/v80/quote" - radarearlyfraudwarning "github.com/stripe/stripe-go/v80/radar/earlyfraudwarning" - radarvaluelist "github.com/stripe/stripe-go/v80/radar/valuelist" - radarvaluelistitem "github.com/stripe/stripe-go/v80/radar/valuelistitem" - "github.com/stripe/stripe-go/v80/refund" - reportingreportrun "github.com/stripe/stripe-go/v80/reporting/reportrun" - reportingreporttype "github.com/stripe/stripe-go/v80/reporting/reporttype" - "github.com/stripe/stripe-go/v80/review" - "github.com/stripe/stripe-go/v80/setupattempt" - "github.com/stripe/stripe-go/v80/setupintent" - "github.com/stripe/stripe-go/v80/shippingrate" - sigmascheduledqueryrun "github.com/stripe/stripe-go/v80/sigma/scheduledqueryrun" - "github.com/stripe/stripe-go/v80/source" - "github.com/stripe/stripe-go/v80/sourcetransaction" - "github.com/stripe/stripe-go/v80/subscription" - "github.com/stripe/stripe-go/v80/subscriptionitem" - "github.com/stripe/stripe-go/v80/subscriptionschedule" - taxcalculation "github.com/stripe/stripe-go/v80/tax/calculation" - taxregistration "github.com/stripe/stripe-go/v80/tax/registration" - taxsettings "github.com/stripe/stripe-go/v80/tax/settings" - taxtransaction "github.com/stripe/stripe-go/v80/tax/transaction" - "github.com/stripe/stripe-go/v80/taxcode" - "github.com/stripe/stripe-go/v80/taxid" - "github.com/stripe/stripe-go/v80/taxrate" - terminalconfiguration "github.com/stripe/stripe-go/v80/terminal/configuration" - terminalconnectiontoken "github.com/stripe/stripe-go/v80/terminal/connectiontoken" - terminallocation "github.com/stripe/stripe-go/v80/terminal/location" - terminalreader "github.com/stripe/stripe-go/v80/terminal/reader" - testhelpersconfirmationtoken "github.com/stripe/stripe-go/v80/testhelpers/confirmationtoken" - testhelperscustomer "github.com/stripe/stripe-go/v80/testhelpers/customer" - testhelpersissuingauthorization "github.com/stripe/stripe-go/v80/testhelpers/issuing/authorization" - testhelpersissuingcard "github.com/stripe/stripe-go/v80/testhelpers/issuing/card" - testhelpersissuingpersonalizationdesign "github.com/stripe/stripe-go/v80/testhelpers/issuing/personalizationdesign" - testhelpersissuingtransaction "github.com/stripe/stripe-go/v80/testhelpers/issuing/transaction" - testhelpersrefund "github.com/stripe/stripe-go/v80/testhelpers/refund" - testhelpersterminalreader "github.com/stripe/stripe-go/v80/testhelpers/terminal/reader" - testhelperstestclock "github.com/stripe/stripe-go/v80/testhelpers/testclock" - testhelperstreasuryinboundtransfer "github.com/stripe/stripe-go/v80/testhelpers/treasury/inboundtransfer" - testhelperstreasuryoutboundpayment "github.com/stripe/stripe-go/v80/testhelpers/treasury/outboundpayment" - testhelperstreasuryoutboundtransfer "github.com/stripe/stripe-go/v80/testhelpers/treasury/outboundtransfer" - testhelperstreasuryreceivedcredit "github.com/stripe/stripe-go/v80/testhelpers/treasury/receivedcredit" - testhelperstreasuryreceiveddebit "github.com/stripe/stripe-go/v80/testhelpers/treasury/receiveddebit" - "github.com/stripe/stripe-go/v80/token" - "github.com/stripe/stripe-go/v80/topup" - "github.com/stripe/stripe-go/v80/transfer" - "github.com/stripe/stripe-go/v80/transferreversal" - treasurycreditreversal "github.com/stripe/stripe-go/v80/treasury/creditreversal" - treasurydebitreversal "github.com/stripe/stripe-go/v80/treasury/debitreversal" - treasuryfinancialaccount "github.com/stripe/stripe-go/v80/treasury/financialaccount" - treasuryinboundtransfer "github.com/stripe/stripe-go/v80/treasury/inboundtransfer" - treasuryoutboundpayment "github.com/stripe/stripe-go/v80/treasury/outboundpayment" - treasuryoutboundtransfer "github.com/stripe/stripe-go/v80/treasury/outboundtransfer" - treasuryreceivedcredit "github.com/stripe/stripe-go/v80/treasury/receivedcredit" - treasuryreceiveddebit "github.com/stripe/stripe-go/v80/treasury/receiveddebit" - treasurytransaction "github.com/stripe/stripe-go/v80/treasury/transaction" - treasurytransactionentry "github.com/stripe/stripe-go/v80/treasury/transactionentry" - "github.com/stripe/stripe-go/v80/usagerecord" - "github.com/stripe/stripe-go/v80/usagerecordsummary" - "github.com/stripe/stripe-go/v80/webhookendpoint" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/account" + "github.com/stripe/stripe-go/v81/accountlink" + "github.com/stripe/stripe-go/v81/accountsession" + "github.com/stripe/stripe-go/v81/applepaydomain" + "github.com/stripe/stripe-go/v81/applicationfee" + appssecret "github.com/stripe/stripe-go/v81/apps/secret" + "github.com/stripe/stripe-go/v81/balance" + "github.com/stripe/stripe-go/v81/balancetransaction" + "github.com/stripe/stripe-go/v81/bankaccount" + billingalert "github.com/stripe/stripe-go/v81/billing/alert" + billingcreditbalancesummary "github.com/stripe/stripe-go/v81/billing/creditbalancesummary" + billingcreditbalancetransaction "github.com/stripe/stripe-go/v81/billing/creditbalancetransaction" + billingcreditgrant "github.com/stripe/stripe-go/v81/billing/creditgrant" + billingmeter "github.com/stripe/stripe-go/v81/billing/meter" + billingmeterevent "github.com/stripe/stripe-go/v81/billing/meterevent" + billingmetereventadjustment "github.com/stripe/stripe-go/v81/billing/metereventadjustment" + billingmetereventsummary "github.com/stripe/stripe-go/v81/billing/metereventsummary" + billingportalconfiguration "github.com/stripe/stripe-go/v81/billingportal/configuration" + billingportalsession "github.com/stripe/stripe-go/v81/billingportal/session" + "github.com/stripe/stripe-go/v81/capability" + "github.com/stripe/stripe-go/v81/card" + "github.com/stripe/stripe-go/v81/cashbalance" + "github.com/stripe/stripe-go/v81/charge" + checkoutsession "github.com/stripe/stripe-go/v81/checkout/session" + climateorder "github.com/stripe/stripe-go/v81/climate/order" + climateproduct "github.com/stripe/stripe-go/v81/climate/product" + climatesupplier "github.com/stripe/stripe-go/v81/climate/supplier" + "github.com/stripe/stripe-go/v81/confirmationtoken" + "github.com/stripe/stripe-go/v81/countryspec" + "github.com/stripe/stripe-go/v81/coupon" + "github.com/stripe/stripe-go/v81/creditnote" + "github.com/stripe/stripe-go/v81/customer" + "github.com/stripe/stripe-go/v81/customerbalancetransaction" + "github.com/stripe/stripe-go/v81/customercashbalancetransaction" + "github.com/stripe/stripe-go/v81/customersession" + "github.com/stripe/stripe-go/v81/dispute" + entitlementsactiveentitlement "github.com/stripe/stripe-go/v81/entitlements/activeentitlement" + entitlementsfeature "github.com/stripe/stripe-go/v81/entitlements/feature" + "github.com/stripe/stripe-go/v81/ephemeralkey" + "github.com/stripe/stripe-go/v81/event" + "github.com/stripe/stripe-go/v81/feerefund" + "github.com/stripe/stripe-go/v81/file" + "github.com/stripe/stripe-go/v81/filelink" + financialconnectionsaccount "github.com/stripe/stripe-go/v81/financialconnections/account" + financialconnectionssession "github.com/stripe/stripe-go/v81/financialconnections/session" + financialconnectionstransaction "github.com/stripe/stripe-go/v81/financialconnections/transaction" + forwardingrequest "github.com/stripe/stripe-go/v81/forwarding/request" + identityverificationreport "github.com/stripe/stripe-go/v81/identity/verificationreport" + identityverificationsession "github.com/stripe/stripe-go/v81/identity/verificationsession" + "github.com/stripe/stripe-go/v81/invoice" + "github.com/stripe/stripe-go/v81/invoiceitem" + "github.com/stripe/stripe-go/v81/invoicelineitem" + "github.com/stripe/stripe-go/v81/invoicerenderingtemplate" + issuingauthorization "github.com/stripe/stripe-go/v81/issuing/authorization" + issuingcard "github.com/stripe/stripe-go/v81/issuing/card" + issuingcardholder "github.com/stripe/stripe-go/v81/issuing/cardholder" + issuingdispute "github.com/stripe/stripe-go/v81/issuing/dispute" + issuingpersonalizationdesign "github.com/stripe/stripe-go/v81/issuing/personalizationdesign" + issuingphysicalbundle "github.com/stripe/stripe-go/v81/issuing/physicalbundle" + issuingtoken "github.com/stripe/stripe-go/v81/issuing/token" + issuingtransaction "github.com/stripe/stripe-go/v81/issuing/transaction" + "github.com/stripe/stripe-go/v81/loginlink" + "github.com/stripe/stripe-go/v81/mandate" + "github.com/stripe/stripe-go/v81/oauth" + "github.com/stripe/stripe-go/v81/paymentintent" + "github.com/stripe/stripe-go/v81/paymentlink" + "github.com/stripe/stripe-go/v81/paymentmethod" + "github.com/stripe/stripe-go/v81/paymentmethodconfiguration" + "github.com/stripe/stripe-go/v81/paymentmethoddomain" + "github.com/stripe/stripe-go/v81/paymentsource" + "github.com/stripe/stripe-go/v81/payout" + "github.com/stripe/stripe-go/v81/person" + "github.com/stripe/stripe-go/v81/plan" + "github.com/stripe/stripe-go/v81/price" + "github.com/stripe/stripe-go/v81/product" + "github.com/stripe/stripe-go/v81/productfeature" + "github.com/stripe/stripe-go/v81/promotioncode" + "github.com/stripe/stripe-go/v81/quote" + radarearlyfraudwarning "github.com/stripe/stripe-go/v81/radar/earlyfraudwarning" + radarvaluelist "github.com/stripe/stripe-go/v81/radar/valuelist" + radarvaluelistitem "github.com/stripe/stripe-go/v81/radar/valuelistitem" + "github.com/stripe/stripe-go/v81/refund" + reportingreportrun "github.com/stripe/stripe-go/v81/reporting/reportrun" + reportingreporttype "github.com/stripe/stripe-go/v81/reporting/reporttype" + "github.com/stripe/stripe-go/v81/review" + "github.com/stripe/stripe-go/v81/setupattempt" + "github.com/stripe/stripe-go/v81/setupintent" + "github.com/stripe/stripe-go/v81/shippingrate" + sigmascheduledqueryrun "github.com/stripe/stripe-go/v81/sigma/scheduledqueryrun" + "github.com/stripe/stripe-go/v81/source" + "github.com/stripe/stripe-go/v81/sourcetransaction" + "github.com/stripe/stripe-go/v81/subscription" + "github.com/stripe/stripe-go/v81/subscriptionitem" + "github.com/stripe/stripe-go/v81/subscriptionschedule" + taxcalculation "github.com/stripe/stripe-go/v81/tax/calculation" + taxregistration "github.com/stripe/stripe-go/v81/tax/registration" + taxsettings "github.com/stripe/stripe-go/v81/tax/settings" + taxtransaction "github.com/stripe/stripe-go/v81/tax/transaction" + "github.com/stripe/stripe-go/v81/taxcode" + "github.com/stripe/stripe-go/v81/taxid" + "github.com/stripe/stripe-go/v81/taxrate" + terminalconfiguration "github.com/stripe/stripe-go/v81/terminal/configuration" + terminalconnectiontoken "github.com/stripe/stripe-go/v81/terminal/connectiontoken" + terminallocation "github.com/stripe/stripe-go/v81/terminal/location" + terminalreader "github.com/stripe/stripe-go/v81/terminal/reader" + testhelpersconfirmationtoken "github.com/stripe/stripe-go/v81/testhelpers/confirmationtoken" + testhelperscustomer "github.com/stripe/stripe-go/v81/testhelpers/customer" + testhelpersissuingauthorization "github.com/stripe/stripe-go/v81/testhelpers/issuing/authorization" + testhelpersissuingcard "github.com/stripe/stripe-go/v81/testhelpers/issuing/card" + testhelpersissuingpersonalizationdesign "github.com/stripe/stripe-go/v81/testhelpers/issuing/personalizationdesign" + testhelpersissuingtransaction "github.com/stripe/stripe-go/v81/testhelpers/issuing/transaction" + testhelpersrefund "github.com/stripe/stripe-go/v81/testhelpers/refund" + testhelpersterminalreader "github.com/stripe/stripe-go/v81/testhelpers/terminal/reader" + testhelperstestclock "github.com/stripe/stripe-go/v81/testhelpers/testclock" + testhelperstreasuryinboundtransfer "github.com/stripe/stripe-go/v81/testhelpers/treasury/inboundtransfer" + testhelperstreasuryoutboundpayment "github.com/stripe/stripe-go/v81/testhelpers/treasury/outboundpayment" + testhelperstreasuryoutboundtransfer "github.com/stripe/stripe-go/v81/testhelpers/treasury/outboundtransfer" + testhelperstreasuryreceivedcredit "github.com/stripe/stripe-go/v81/testhelpers/treasury/receivedcredit" + testhelperstreasuryreceiveddebit "github.com/stripe/stripe-go/v81/testhelpers/treasury/receiveddebit" + "github.com/stripe/stripe-go/v81/token" + "github.com/stripe/stripe-go/v81/topup" + "github.com/stripe/stripe-go/v81/transfer" + "github.com/stripe/stripe-go/v81/transferreversal" + treasurycreditreversal "github.com/stripe/stripe-go/v81/treasury/creditreversal" + treasurydebitreversal "github.com/stripe/stripe-go/v81/treasury/debitreversal" + treasuryfinancialaccount "github.com/stripe/stripe-go/v81/treasury/financialaccount" + treasuryinboundtransfer "github.com/stripe/stripe-go/v81/treasury/inboundtransfer" + treasuryoutboundpayment "github.com/stripe/stripe-go/v81/treasury/outboundpayment" + treasuryoutboundtransfer "github.com/stripe/stripe-go/v81/treasury/outboundtransfer" + treasuryreceivedcredit "github.com/stripe/stripe-go/v81/treasury/receivedcredit" + treasuryreceiveddebit "github.com/stripe/stripe-go/v81/treasury/receiveddebit" + treasurytransaction "github.com/stripe/stripe-go/v81/treasury/transaction" + treasurytransactionentry "github.com/stripe/stripe-go/v81/treasury/transactionentry" + "github.com/stripe/stripe-go/v81/usagerecord" + "github.com/stripe/stripe-go/v81/usagerecordsummary" + "github.com/stripe/stripe-go/v81/webhookendpoint" ) // API is the Stripe client. It contains all the different resources available. diff --git a/climate/order/client.go b/climate/order/client.go index 8239eb7783..77da6a6b81 100644 --- a/climate/order/client.go +++ b/climate/order/client.go @@ -10,8 +10,8 @@ package order import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /climate/orders APIs. diff --git a/climate/product/client.go b/climate/product/client.go index 0e525e9787..6ed801ebae 100644 --- a/climate/product/client.go +++ b/climate/product/client.go @@ -10,8 +10,8 @@ package product import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /climate/products APIs. diff --git a/climate/supplier/client.go b/climate/supplier/client.go index a8bc34d3b1..c88933705e 100644 --- a/climate/supplier/client.go +++ b/climate/supplier/client.go @@ -10,8 +10,8 @@ package supplier import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /climate/suppliers APIs. diff --git a/confirmationtoken/client.go b/confirmationtoken/client.go index 89bcea3184..4b8675d4fa 100644 --- a/confirmationtoken/client.go +++ b/confirmationtoken/client.go @@ -10,7 +10,7 @@ package confirmationtoken import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /confirmation_tokens APIs. diff --git a/countryspec/client.go b/countryspec/client.go index 5c383188b7..83581dff82 100644 --- a/countryspec/client.go +++ b/countryspec/client.go @@ -10,8 +10,8 @@ package countryspec import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /country_specs APIs. diff --git a/countryspec/client_test.go b/countryspec/client_test.go index 91e089ae1b..71bb13d108 100644 --- a/countryspec/client_test.go +++ b/countryspec/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCountrySpecGet(t *testing.T) { diff --git a/coupon/client.go b/coupon/client.go index 4c4b0ca840..2549bbe22c 100644 --- a/coupon/client.go +++ b/coupon/client.go @@ -10,8 +10,8 @@ package coupon import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /coupons APIs. diff --git a/coupon/client_test.go b/coupon/client_test.go index e180d6ef36..57267af0b7 100644 --- a/coupon/client_test.go +++ b/coupon/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCouponDel(t *testing.T) { diff --git a/creditnote/client.go b/creditnote/client.go index 1b214d430b..9820a80104 100644 --- a/creditnote/client.go +++ b/creditnote/client.go @@ -10,8 +10,8 @@ package creditnote import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /credit_notes APIs. diff --git a/creditnote/client_test.go b/creditnote/client_test.go index 8ee1a87f0b..68c99da61b 100644 --- a/creditnote/client_test.go +++ b/creditnote/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCreditNoteGet(t *testing.T) { diff --git a/customer/client.go b/customer/client.go index e3d207bc50..92d8c29b47 100644 --- a/customer/client.go +++ b/customer/client.go @@ -10,8 +10,8 @@ package customer import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /customers APIs. diff --git a/customer/client_test.go b/customer/client_test.go index bba4ab448d..f68c73240c 100644 --- a/customer/client_test.go +++ b/customer/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCustomerDel(t *testing.T) { diff --git a/customerbalancetransaction/client.go b/customerbalancetransaction/client.go index 19af671d8b..76097e7cc6 100644 --- a/customerbalancetransaction/client.go +++ b/customerbalancetransaction/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /customers/{customer}/balance_transactions APIs. diff --git a/customerbalancetransaction/client_test.go b/customerbalancetransaction/client_test.go index 08bb76e4ce..9dcb83a31f 100644 --- a/customerbalancetransaction/client_test.go +++ b/customerbalancetransaction/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestCustomerBalanceTransactionGet(t *testing.T) { diff --git a/customercashbalancetransaction/client.go b/customercashbalancetransaction/client.go index 16966a2f06..53a567115e 100644 --- a/customercashbalancetransaction/client.go +++ b/customercashbalancetransaction/client.go @@ -10,8 +10,8 @@ package customercashbalancetransaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /customers/{customer}/cash_balance_transactions APIs. diff --git a/customersession/client.go b/customersession/client.go index deb6cf9b23..a870597066 100644 --- a/customersession/client.go +++ b/customersession/client.go @@ -10,7 +10,7 @@ package customersession import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /customer_sessions APIs. diff --git a/dispute/client.go b/dispute/client.go index 0f9181ddf1..f0d1e21834 100644 --- a/dispute/client.go +++ b/dispute/client.go @@ -10,8 +10,8 @@ package dispute import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /disputes APIs. diff --git a/dispute/client_test.go b/dispute/client_test.go index fc7e04567f..df6a5bdefd 100644 --- a/dispute/client_test.go +++ b/dispute/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestDisputeClose(t *testing.T) { diff --git a/entitlements/activeentitlement/client.go b/entitlements/activeentitlement/client.go index 91a929e25c..4dc1d4aa96 100644 --- a/entitlements/activeentitlement/client.go +++ b/entitlements/activeentitlement/client.go @@ -10,8 +10,8 @@ package activeentitlement import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /entitlements/active_entitlements APIs. diff --git a/entitlements/feature/client.go b/entitlements/feature/client.go index 1771f27f19..436b2e3763 100644 --- a/entitlements/feature/client.go +++ b/entitlements/feature/client.go @@ -10,8 +10,8 @@ package feature import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /entitlements/features APIs. diff --git a/ephemeralkey/client.go b/ephemeralkey/client.go index 9353b438aa..c6a819c94d 100644 --- a/ephemeralkey/client.go +++ b/ephemeralkey/client.go @@ -11,7 +11,7 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /ephemeral_keys APIs. diff --git a/ephemeralkey/client_test.go b/ephemeralkey/client_test.go index 776a3608a6..ef93aa69fd 100644 --- a/ephemeralkey/client_test.go +++ b/ephemeralkey/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestEphemeralKeyDel(t *testing.T) { diff --git a/event/client.go b/event/client.go index 2258531fa5..614ba1912a 100644 --- a/event/client.go +++ b/event/client.go @@ -10,8 +10,8 @@ package event import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /events APIs. diff --git a/event/client_test.go b/event/client_test.go index 985cd9a340..362cff00ca 100644 --- a/event/client_test.go +++ b/event/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestEventGet(t *testing.T) { diff --git a/example/deserialization_test.go b/example/deserialization_test.go index a46367e74f..f0b23559ed 100644 --- a/example/deserialization_test.go +++ b/example/deserialization_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) type APIResource = stripe.APIResource diff --git a/example/generated_examples_test.go b/example/generated_examples_test.go index deddc128af..320fcfaa0f 100644 --- a/example/generated_examples_test.go +++ b/example/generated_examples_test.go @@ -10,109 +10,109 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - account "github.com/stripe/stripe-go/v80/account" - accountlink "github.com/stripe/stripe-go/v80/accountlink" - applicationfee "github.com/stripe/stripe-go/v80/applicationfee" - apps_secret "github.com/stripe/stripe-go/v80/apps/secret" - balancetransaction "github.com/stripe/stripe-go/v80/balancetransaction" - billingportal_configuration "github.com/stripe/stripe-go/v80/billingportal/configuration" - billingportal_session "github.com/stripe/stripe-go/v80/billingportal/session" - capability "github.com/stripe/stripe-go/v80/capability" - card "github.com/stripe/stripe-go/v80/card" - cashbalance "github.com/stripe/stripe-go/v80/cashbalance" - charge "github.com/stripe/stripe-go/v80/charge" - checkout_session "github.com/stripe/stripe-go/v80/checkout/session" - countryspec "github.com/stripe/stripe-go/v80/countryspec" - coupon "github.com/stripe/stripe-go/v80/coupon" - customer "github.com/stripe/stripe-go/v80/customer" - customerbalancetransaction "github.com/stripe/stripe-go/v80/customerbalancetransaction" - customercashbalancetransaction "github.com/stripe/stripe-go/v80/customercashbalancetransaction" - customersession "github.com/stripe/stripe-go/v80/customersession" - dispute "github.com/stripe/stripe-go/v80/dispute" - event "github.com/stripe/stripe-go/v80/event" - feerefund "github.com/stripe/stripe-go/v80/feerefund" - financialconnections_account "github.com/stripe/stripe-go/v80/financialconnections/account" - financialconnections_session "github.com/stripe/stripe-go/v80/financialconnections/session" - financialconnections_transaction "github.com/stripe/stripe-go/v80/financialconnections/transaction" - identity_verificationreport "github.com/stripe/stripe-go/v80/identity/verificationreport" - identity_verificationsession "github.com/stripe/stripe-go/v80/identity/verificationsession" - invoice "github.com/stripe/stripe-go/v80/invoice" - invoiceitem "github.com/stripe/stripe-go/v80/invoiceitem" - issuing_authorization "github.com/stripe/stripe-go/v80/issuing/authorization" - issuing_card "github.com/stripe/stripe-go/v80/issuing/card" - issuing_cardholder "github.com/stripe/stripe-go/v80/issuing/cardholder" - issuing_dispute "github.com/stripe/stripe-go/v80/issuing/dispute" - issuing_personalizationdesign "github.com/stripe/stripe-go/v80/issuing/personalizationdesign" - issuing_physicalbundle "github.com/stripe/stripe-go/v80/issuing/physicalbundle" - issuing_transaction "github.com/stripe/stripe-go/v80/issuing/transaction" - loginlink "github.com/stripe/stripe-go/v80/loginlink" - mandate "github.com/stripe/stripe-go/v80/mandate" - paymentintent "github.com/stripe/stripe-go/v80/paymentintent" - paymentlink "github.com/stripe/stripe-go/v80/paymentlink" - paymentmethod "github.com/stripe/stripe-go/v80/paymentmethod" - paymentmethodconfiguration "github.com/stripe/stripe-go/v80/paymentmethodconfiguration" - paymentsource "github.com/stripe/stripe-go/v80/paymentsource" - payout "github.com/stripe/stripe-go/v80/payout" - person "github.com/stripe/stripe-go/v80/person" - plan "github.com/stripe/stripe-go/v80/plan" - price "github.com/stripe/stripe-go/v80/price" - product "github.com/stripe/stripe-go/v80/product" - promotioncode "github.com/stripe/stripe-go/v80/promotioncode" - quote "github.com/stripe/stripe-go/v80/quote" - radar_earlyfraudwarning "github.com/stripe/stripe-go/v80/radar/earlyfraudwarning" - radar_valuelist "github.com/stripe/stripe-go/v80/radar/valuelist" - radar_valuelistitem "github.com/stripe/stripe-go/v80/radar/valuelistitem" - refund "github.com/stripe/stripe-go/v80/refund" - reporting_reportrun "github.com/stripe/stripe-go/v80/reporting/reportrun" - reporting_reporttype "github.com/stripe/stripe-go/v80/reporting/reporttype" - review "github.com/stripe/stripe-go/v80/review" - setupattempt "github.com/stripe/stripe-go/v80/setupattempt" - setupintent "github.com/stripe/stripe-go/v80/setupintent" - shippingrate "github.com/stripe/stripe-go/v80/shippingrate" - sigma_scheduledqueryrun "github.com/stripe/stripe-go/v80/sigma/scheduledqueryrun" - source "github.com/stripe/stripe-go/v80/source" - subscription "github.com/stripe/stripe-go/v80/subscription" - subscriptionitem "github.com/stripe/stripe-go/v80/subscriptionitem" - subscriptionschedule "github.com/stripe/stripe-go/v80/subscriptionschedule" - tax_calculation "github.com/stripe/stripe-go/v80/tax/calculation" - tax_settings "github.com/stripe/stripe-go/v80/tax/settings" - tax_transaction "github.com/stripe/stripe-go/v80/tax/transaction" - taxcode "github.com/stripe/stripe-go/v80/taxcode" - taxid "github.com/stripe/stripe-go/v80/taxid" - taxrate "github.com/stripe/stripe-go/v80/taxrate" - terminal_configuration "github.com/stripe/stripe-go/v80/terminal/configuration" - terminal_connectiontoken "github.com/stripe/stripe-go/v80/terminal/connectiontoken" - terminal_location "github.com/stripe/stripe-go/v80/terminal/location" - terminal_reader "github.com/stripe/stripe-go/v80/terminal/reader" - testhelpers_customer "github.com/stripe/stripe-go/v80/testhelpers/customer" - testhelpers_issuing_authorization "github.com/stripe/stripe-go/v80/testhelpers/issuing/authorization" - testhelpers_issuing_card "github.com/stripe/stripe-go/v80/testhelpers/issuing/card" - testhelpers_issuing_personalizationdesign "github.com/stripe/stripe-go/v80/testhelpers/issuing/personalizationdesign" - testhelpers_issuing_transaction "github.com/stripe/stripe-go/v80/testhelpers/issuing/transaction" - testhelpers_refund "github.com/stripe/stripe-go/v80/testhelpers/refund" - testhelpers_testclock "github.com/stripe/stripe-go/v80/testhelpers/testclock" - testhelpers_treasury_inboundtransfer "github.com/stripe/stripe-go/v80/testhelpers/treasury/inboundtransfer" - testhelpers_treasury_outboundtransfer "github.com/stripe/stripe-go/v80/testhelpers/treasury/outboundtransfer" - testhelpers_treasury_receivedcredit "github.com/stripe/stripe-go/v80/testhelpers/treasury/receivedcredit" - testhelpers_treasury_receiveddebit "github.com/stripe/stripe-go/v80/testhelpers/treasury/receiveddebit" - _ "github.com/stripe/stripe-go/v80/testing" - token "github.com/stripe/stripe-go/v80/token" - topup "github.com/stripe/stripe-go/v80/topup" - transfer "github.com/stripe/stripe-go/v80/transfer" - transferreversal "github.com/stripe/stripe-go/v80/transferreversal" - treasury_creditreversal "github.com/stripe/stripe-go/v80/treasury/creditreversal" - treasury_debitreversal "github.com/stripe/stripe-go/v80/treasury/debitreversal" - treasury_financialaccount "github.com/stripe/stripe-go/v80/treasury/financialaccount" - treasury_inboundtransfer "github.com/stripe/stripe-go/v80/treasury/inboundtransfer" - treasury_outboundpayment "github.com/stripe/stripe-go/v80/treasury/outboundpayment" - treasury_outboundtransfer "github.com/stripe/stripe-go/v80/treasury/outboundtransfer" - treasury_receivedcredit "github.com/stripe/stripe-go/v80/treasury/receivedcredit" - treasury_receiveddebit "github.com/stripe/stripe-go/v80/treasury/receiveddebit" - treasury_transaction "github.com/stripe/stripe-go/v80/treasury/transaction" - treasury_transactionentry "github.com/stripe/stripe-go/v80/treasury/transactionentry" - usagerecord "github.com/stripe/stripe-go/v80/usagerecord" - webhookendpoint "github.com/stripe/stripe-go/v80/webhookendpoint" + stripe "github.com/stripe/stripe-go/v81" + account "github.com/stripe/stripe-go/v81/account" + accountlink "github.com/stripe/stripe-go/v81/accountlink" + applicationfee "github.com/stripe/stripe-go/v81/applicationfee" + apps_secret "github.com/stripe/stripe-go/v81/apps/secret" + balancetransaction "github.com/stripe/stripe-go/v81/balancetransaction" + billingportal_configuration "github.com/stripe/stripe-go/v81/billingportal/configuration" + billingportal_session "github.com/stripe/stripe-go/v81/billingportal/session" + capability "github.com/stripe/stripe-go/v81/capability" + card "github.com/stripe/stripe-go/v81/card" + cashbalance "github.com/stripe/stripe-go/v81/cashbalance" + charge "github.com/stripe/stripe-go/v81/charge" + checkout_session "github.com/stripe/stripe-go/v81/checkout/session" + countryspec "github.com/stripe/stripe-go/v81/countryspec" + coupon "github.com/stripe/stripe-go/v81/coupon" + customer "github.com/stripe/stripe-go/v81/customer" + customerbalancetransaction "github.com/stripe/stripe-go/v81/customerbalancetransaction" + customercashbalancetransaction "github.com/stripe/stripe-go/v81/customercashbalancetransaction" + customersession "github.com/stripe/stripe-go/v81/customersession" + dispute "github.com/stripe/stripe-go/v81/dispute" + event "github.com/stripe/stripe-go/v81/event" + feerefund "github.com/stripe/stripe-go/v81/feerefund" + financialconnections_account "github.com/stripe/stripe-go/v81/financialconnections/account" + financialconnections_session "github.com/stripe/stripe-go/v81/financialconnections/session" + financialconnections_transaction "github.com/stripe/stripe-go/v81/financialconnections/transaction" + identity_verificationreport "github.com/stripe/stripe-go/v81/identity/verificationreport" + identity_verificationsession "github.com/stripe/stripe-go/v81/identity/verificationsession" + invoice "github.com/stripe/stripe-go/v81/invoice" + invoiceitem "github.com/stripe/stripe-go/v81/invoiceitem" + issuing_authorization "github.com/stripe/stripe-go/v81/issuing/authorization" + issuing_card "github.com/stripe/stripe-go/v81/issuing/card" + issuing_cardholder "github.com/stripe/stripe-go/v81/issuing/cardholder" + issuing_dispute "github.com/stripe/stripe-go/v81/issuing/dispute" + issuing_personalizationdesign "github.com/stripe/stripe-go/v81/issuing/personalizationdesign" + issuing_physicalbundle "github.com/stripe/stripe-go/v81/issuing/physicalbundle" + issuing_transaction "github.com/stripe/stripe-go/v81/issuing/transaction" + loginlink "github.com/stripe/stripe-go/v81/loginlink" + mandate "github.com/stripe/stripe-go/v81/mandate" + paymentintent "github.com/stripe/stripe-go/v81/paymentintent" + paymentlink "github.com/stripe/stripe-go/v81/paymentlink" + paymentmethod "github.com/stripe/stripe-go/v81/paymentmethod" + paymentmethodconfiguration "github.com/stripe/stripe-go/v81/paymentmethodconfiguration" + paymentsource "github.com/stripe/stripe-go/v81/paymentsource" + payout "github.com/stripe/stripe-go/v81/payout" + person "github.com/stripe/stripe-go/v81/person" + plan "github.com/stripe/stripe-go/v81/plan" + price "github.com/stripe/stripe-go/v81/price" + product "github.com/stripe/stripe-go/v81/product" + promotioncode "github.com/stripe/stripe-go/v81/promotioncode" + quote "github.com/stripe/stripe-go/v81/quote" + radar_earlyfraudwarning "github.com/stripe/stripe-go/v81/radar/earlyfraudwarning" + radar_valuelist "github.com/stripe/stripe-go/v81/radar/valuelist" + radar_valuelistitem "github.com/stripe/stripe-go/v81/radar/valuelistitem" + refund "github.com/stripe/stripe-go/v81/refund" + reporting_reportrun "github.com/stripe/stripe-go/v81/reporting/reportrun" + reporting_reporttype "github.com/stripe/stripe-go/v81/reporting/reporttype" + review "github.com/stripe/stripe-go/v81/review" + setupattempt "github.com/stripe/stripe-go/v81/setupattempt" + setupintent "github.com/stripe/stripe-go/v81/setupintent" + shippingrate "github.com/stripe/stripe-go/v81/shippingrate" + sigma_scheduledqueryrun "github.com/stripe/stripe-go/v81/sigma/scheduledqueryrun" + source "github.com/stripe/stripe-go/v81/source" + subscription "github.com/stripe/stripe-go/v81/subscription" + subscriptionitem "github.com/stripe/stripe-go/v81/subscriptionitem" + subscriptionschedule "github.com/stripe/stripe-go/v81/subscriptionschedule" + tax_calculation "github.com/stripe/stripe-go/v81/tax/calculation" + tax_settings "github.com/stripe/stripe-go/v81/tax/settings" + tax_transaction "github.com/stripe/stripe-go/v81/tax/transaction" + taxcode "github.com/stripe/stripe-go/v81/taxcode" + taxid "github.com/stripe/stripe-go/v81/taxid" + taxrate "github.com/stripe/stripe-go/v81/taxrate" + terminal_configuration "github.com/stripe/stripe-go/v81/terminal/configuration" + terminal_connectiontoken "github.com/stripe/stripe-go/v81/terminal/connectiontoken" + terminal_location "github.com/stripe/stripe-go/v81/terminal/location" + terminal_reader "github.com/stripe/stripe-go/v81/terminal/reader" + testhelpers_customer "github.com/stripe/stripe-go/v81/testhelpers/customer" + testhelpers_issuing_authorization "github.com/stripe/stripe-go/v81/testhelpers/issuing/authorization" + testhelpers_issuing_card "github.com/stripe/stripe-go/v81/testhelpers/issuing/card" + testhelpers_issuing_personalizationdesign "github.com/stripe/stripe-go/v81/testhelpers/issuing/personalizationdesign" + testhelpers_issuing_transaction "github.com/stripe/stripe-go/v81/testhelpers/issuing/transaction" + testhelpers_refund "github.com/stripe/stripe-go/v81/testhelpers/refund" + testhelpers_testclock "github.com/stripe/stripe-go/v81/testhelpers/testclock" + testhelpers_treasury_inboundtransfer "github.com/stripe/stripe-go/v81/testhelpers/treasury/inboundtransfer" + testhelpers_treasury_outboundtransfer "github.com/stripe/stripe-go/v81/testhelpers/treasury/outboundtransfer" + testhelpers_treasury_receivedcredit "github.com/stripe/stripe-go/v81/testhelpers/treasury/receivedcredit" + testhelpers_treasury_receiveddebit "github.com/stripe/stripe-go/v81/testhelpers/treasury/receiveddebit" + _ "github.com/stripe/stripe-go/v81/testing" + token "github.com/stripe/stripe-go/v81/token" + topup "github.com/stripe/stripe-go/v81/topup" + transfer "github.com/stripe/stripe-go/v81/transfer" + transferreversal "github.com/stripe/stripe-go/v81/transferreversal" + treasury_creditreversal "github.com/stripe/stripe-go/v81/treasury/creditreversal" + treasury_debitreversal "github.com/stripe/stripe-go/v81/treasury/debitreversal" + treasury_financialaccount "github.com/stripe/stripe-go/v81/treasury/financialaccount" + treasury_inboundtransfer "github.com/stripe/stripe-go/v81/treasury/inboundtransfer" + treasury_outboundpayment "github.com/stripe/stripe-go/v81/treasury/outboundpayment" + treasury_outboundtransfer "github.com/stripe/stripe-go/v81/treasury/outboundtransfer" + treasury_receivedcredit "github.com/stripe/stripe-go/v81/treasury/receivedcredit" + treasury_receiveddebit "github.com/stripe/stripe-go/v81/treasury/receiveddebit" + treasury_transaction "github.com/stripe/stripe-go/v81/treasury/transaction" + treasury_transactionentry "github.com/stripe/stripe-go/v81/treasury/transactionentry" + usagerecord "github.com/stripe/stripe-go/v81/usagerecord" + webhookendpoint "github.com/stripe/stripe-go/v81/webhookendpoint" ) func TestAccountLinksPost(t *testing.T) { diff --git a/example/v2/meter_event_stream/meter_event_stream.go b/example/v2/meter_event_stream/meter_event_stream.go index e231a49ede..80194831cc 100644 --- a/example/v2/meter_event_stream/meter_event_stream.go +++ b/example/v2/meter_event_stream/meter_event_stream.go @@ -18,8 +18,8 @@ import ( "os" "time" - stripe "github.com/stripe/stripe-go/v80" - rawrequest "github.com/stripe/stripe-go/v80/rawrequest" + stripe "github.com/stripe/stripe-go/v81" + rawrequest "github.com/stripe/stripe-go/v81/rawrequest" ) var sessionAuthToken string = "" diff --git a/example/v2/thinevent_webhook_handler/thinevent_webhook_handler.go b/example/v2/thinevent_webhook_handler/thinevent_webhook_handler.go index d76a3bd085..6dfe8f5a40 100644 --- a/example/v2/thinevent_webhook_handler/thinevent_webhook_handler.go +++ b/example/v2/thinevent_webhook_handler/thinevent_webhook_handler.go @@ -18,10 +18,10 @@ import ( "net/http" "os" - "github.com/stripe/stripe-go/v80" - billingMeters "github.com/stripe/stripe-go/v80/billing/meter" - "github.com/stripe/stripe-go/v80/rawrequest" - webhook "github.com/stripe/stripe-go/v80/webhook" + "github.com/stripe/stripe-go/v81" + billingMeters "github.com/stripe/stripe-go/v81/billing/meter" + "github.com/stripe/stripe-go/v81/rawrequest" + webhook "github.com/stripe/stripe-go/v81/webhook" ) var apiKey = "{{API_KEY}}" diff --git a/example_test.go b/example_test.go index 7db27e2a2c..c4fd350ed0 100644 --- a/example_test.go +++ b/example_test.go @@ -3,11 +3,11 @@ package stripe_test import ( "log" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/charge" - "github.com/stripe/stripe-go/v80/customer" - "github.com/stripe/stripe-go/v80/invoice" - "github.com/stripe/stripe-go/v80/plan" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/charge" + "github.com/stripe/stripe-go/v81/customer" + "github.com/stripe/stripe-go/v81/invoice" + "github.com/stripe/stripe-go/v81/plan" ) func ExampleCharge_new() { diff --git a/feerefund/client.go b/feerefund/client.go index d3ccb7a3b4..72babd48ba 100644 --- a/feerefund/client.go +++ b/feerefund/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /application_fees/{id}/refunds APIs. diff --git a/feerefund/client_test.go b/feerefund/client_test.go index d24fdf4101..68d2760302 100644 --- a/feerefund/client_test.go +++ b/feerefund/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestFeeRefundGet(t *testing.T) { diff --git a/file.go b/file.go index 95f397fb2e..1f7f73289c 100644 --- a/file.go +++ b/file.go @@ -9,7 +9,7 @@ package stripe import ( "bytes" "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" "io" "mime/multipart" "net/url" diff --git a/file/client.go b/file/client.go index a90057e6b6..a125fd0831 100644 --- a/file/client.go +++ b/file/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /files APIs. diff --git a/file/client_test.go b/file/client_test.go index adc0108989..d8fc9f689a 100644 --- a/file/client_test.go +++ b/file/client_test.go @@ -17,9 +17,9 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" + _ "github.com/stripe/stripe-go/v81/testing" ) const ( diff --git a/filelink.go b/filelink.go index d0c4e6ca19..1bc091f951 100644 --- a/filelink.go +++ b/filelink.go @@ -6,7 +6,7 @@ package stripe -import "github.com/stripe/stripe-go/v80/form" +import "github.com/stripe/stripe-go/v81/form" // Returns a list of file links. type FileLinkListParams struct { diff --git a/filelink/client.go b/filelink/client.go index 5c57fa7d45..3a7dfb00ae 100644 --- a/filelink/client.go +++ b/filelink/client.go @@ -10,8 +10,8 @@ package filelink import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /file_links APIs. diff --git a/filelink/client_test.go b/filelink/client_test.go index 86c2f768b0..ee01937369 100644 --- a/filelink/client_test.go +++ b/filelink/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestFileLinkGet(t *testing.T) { diff --git a/filelink_test.go b/filelink_test.go index 6ba5ab376b..a5cbd04aaa 100644 --- a/filelink_test.go +++ b/filelink_test.go @@ -4,7 +4,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestFileLinkParams_AppendTo(t *testing.T) { diff --git a/financialconnections/account/client.go b/financialconnections/account/client.go index 80035f1eb4..b722d2e1aa 100644 --- a/financialconnections/account/client.go +++ b/financialconnections/account/client.go @@ -10,8 +10,8 @@ package account import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /financial_connections/accounts APIs. diff --git a/financialconnections/session/client.go b/financialconnections/session/client.go index d2779f04df..e08cdc7f2d 100644 --- a/financialconnections/session/client.go +++ b/financialconnections/session/client.go @@ -10,7 +10,7 @@ package session import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /financial_connections/sessions APIs. diff --git a/financialconnections/transaction/client.go b/financialconnections/transaction/client.go index f045fbb9e0..6e4d45d513 100644 --- a/financialconnections/transaction/client.go +++ b/financialconnections/transaction/client.go @@ -10,8 +10,8 @@ package transaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /financial_connections/transactions APIs. diff --git a/forwarding/request/client.go b/forwarding/request/client.go index 19cd14f4c3..ec436eb495 100644 --- a/forwarding/request/client.go +++ b/forwarding/request/client.go @@ -10,8 +10,8 @@ package request import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /forwarding/requests APIs. diff --git a/go.mod b/go.mod index 0e2ad2970d..4fa0fd4f5c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/stripe/stripe-go/v80 +module github.com/stripe/stripe-go/v81 go 1.13 diff --git a/identity/verificationreport/client.go b/identity/verificationreport/client.go index 897a803e85..e3b931df6d 100644 --- a/identity/verificationreport/client.go +++ b/identity/verificationreport/client.go @@ -10,8 +10,8 @@ package verificationreport import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /identity/verification_reports APIs. diff --git a/identity/verificationreport/client_test.go b/identity/verificationreport/client_test.go index 5430a5b126..8b6f29a97b 100644 --- a/identity/verificationreport/client_test.go +++ b/identity/verificationreport/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestIdentityVerificationReportGet(t *testing.T) { diff --git a/identity/verificationsession/client.go b/identity/verificationsession/client.go index 695d47871a..913828d471 100644 --- a/identity/verificationsession/client.go +++ b/identity/verificationsession/client.go @@ -10,8 +10,8 @@ package verificationsession import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /identity/verification_sessions APIs. diff --git a/identity/verificationsession/client_test.go b/identity/verificationsession/client_test.go index aed06985d2..b80e4287cb 100644 --- a/identity/verificationsession/client_test.go +++ b/identity/verificationsession/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestIdentityVerificationSessionCancel(t *testing.T) { diff --git a/invoice.go b/invoice.go index 1b6e129114..0f64cfae20 100644 --- a/invoice.go +++ b/invoice.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // Type of the account referenced. diff --git a/invoice/client.go b/invoice/client.go index 4788017871..6a9a1e7ff0 100644 --- a/invoice/client.go +++ b/invoice/client.go @@ -10,8 +10,8 @@ package invoice import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /invoices APIs. diff --git a/invoice/client_test.go b/invoice/client_test.go index cd8ff1af92..30f7b0dfe8 100644 --- a/invoice/client_test.go +++ b/invoice/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestInvoiceGet(t *testing.T) { diff --git a/invoice_test.go b/invoice_test.go index c16447decc..6d863bf917 100644 --- a/invoice_test.go +++ b/invoice_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestInvoiceParams_AppendTo(t *testing.T) { diff --git a/invoiceitem/client.go b/invoiceitem/client.go index b5dff6dd31..84cb31b192 100644 --- a/invoiceitem/client.go +++ b/invoiceitem/client.go @@ -10,8 +10,8 @@ package invoiceitem import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /invoiceitems APIs. diff --git a/invoiceitem/client_test.go b/invoiceitem/client_test.go index 60c7aa5ba7..e48ac5e4f7 100644 --- a/invoiceitem/client_test.go +++ b/invoiceitem/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestInvoiceItemDel(t *testing.T) { diff --git a/invoicelineitem/client.go b/invoicelineitem/client.go index 78dbb0fefa..87b8a520cf 100644 --- a/invoicelineitem/client.go +++ b/invoicelineitem/client.go @@ -10,7 +10,7 @@ package invoicelineitem import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /invoices/{invoice}/lines APIs. diff --git a/invoicerenderingtemplate/client.go b/invoicerenderingtemplate/client.go index 4a0d2a1479..4a9385acfa 100644 --- a/invoicerenderingtemplate/client.go +++ b/invoicerenderingtemplate/client.go @@ -10,8 +10,8 @@ package invoicerenderingtemplate import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /invoice_rendering_templates APIs. diff --git a/issuing/authorization/client.go b/issuing/authorization/client.go index 0c859e9781..2279ea31a5 100644 --- a/issuing/authorization/client.go +++ b/issuing/authorization/client.go @@ -10,8 +10,8 @@ package authorization import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/authorizations APIs. diff --git a/issuing/authorization/client_test.go b/issuing/authorization/client_test.go index 8c3132d3ed..852f33b6f0 100644 --- a/issuing/authorization/client_test.go +++ b/issuing/authorization/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestIssuingAuthorizationApprove(t *testing.T) { diff --git a/issuing/card/client.go b/issuing/card/client.go index cf04e557f0..97fd7631ff 100644 --- a/issuing/card/client.go +++ b/issuing/card/client.go @@ -10,8 +10,8 @@ package card import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/cards APIs. diff --git a/issuing/card/client_test.go b/issuing/card/client_test.go index 72f61d2300..9fd3678dcc 100644 --- a/issuing/card/client_test.go +++ b/issuing/card/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestIssuingCardGet(t *testing.T) { diff --git a/issuing/cardholder/client.go b/issuing/cardholder/client.go index c1d33122be..7b1300a9a4 100644 --- a/issuing/cardholder/client.go +++ b/issuing/cardholder/client.go @@ -11,8 +11,8 @@ package cardholder import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/cardholders APIs. diff --git a/issuing/cardholder/client_test.go b/issuing/cardholder/client_test.go index e710862aae..67a30763cd 100644 --- a/issuing/cardholder/client_test.go +++ b/issuing/cardholder/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestIssuingCardholderGet(t *testing.T) { diff --git a/issuing/dispute/client.go b/issuing/dispute/client.go index de349e6f6f..f1350f6feb 100644 --- a/issuing/dispute/client.go +++ b/issuing/dispute/client.go @@ -10,8 +10,8 @@ package dispute import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/disputes APIs. diff --git a/issuing/dispute/client_test.go b/issuing/dispute/client_test.go index 02409fa910..e833f4ff1c 100644 --- a/issuing/dispute/client_test.go +++ b/issuing/dispute/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestIssuingDisputeGet(t *testing.T) { diff --git a/issuing/personalizationdesign/client.go b/issuing/personalizationdesign/client.go index f44ffb5616..bb03049547 100644 --- a/issuing/personalizationdesign/client.go +++ b/issuing/personalizationdesign/client.go @@ -10,8 +10,8 @@ package personalizationdesign import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/personalization_designs APIs. diff --git a/issuing/physicalbundle/client.go b/issuing/physicalbundle/client.go index 0f27bab038..8d1b55de7e 100644 --- a/issuing/physicalbundle/client.go +++ b/issuing/physicalbundle/client.go @@ -10,8 +10,8 @@ package physicalbundle import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/physical_bundles APIs. diff --git a/issuing/token/client.go b/issuing/token/client.go index 37c571fd05..f33e8ebec7 100644 --- a/issuing/token/client.go +++ b/issuing/token/client.go @@ -10,8 +10,8 @@ package token import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/tokens APIs. diff --git a/issuing/transaction/client.go b/issuing/transaction/client.go index 8ef46eb060..80d218c6e0 100644 --- a/issuing/transaction/client.go +++ b/issuing/transaction/client.go @@ -10,8 +10,8 @@ package transaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /issuing/transactions APIs. diff --git a/issuing/transaction/client_test.go b/issuing/transaction/client_test.go index f71369ba30..f9cc27bb83 100644 --- a/issuing/transaction/client_test.go +++ b/issuing/transaction/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestIssuingTransactionGet(t *testing.T) { diff --git a/iter.go b/iter.go index 4a4e768263..c2f1417558 100644 --- a/iter.go +++ b/iter.go @@ -3,7 +3,7 @@ package stripe import ( "reflect" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // diff --git a/iter_test.go b/iter_test.go index e4b8d51351..891a92d965 100644 --- a/iter_test.go +++ b/iter_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestIterEmpty(t *testing.T) { diff --git a/loginlink/client.go b/loginlink/client.go index 43b63d261f..6783149471 100644 --- a/loginlink/client.go +++ b/loginlink/client.go @@ -11,7 +11,7 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /accounts/{account}/login_links APIs. diff --git a/loginlink/client_test.go b/loginlink/client_test.go index fc2eab8a80..e060555028 100644 --- a/loginlink/client_test.go +++ b/loginlink/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestLoginLinkNew(t *testing.T) { diff --git a/mandate/client.go b/mandate/client.go index c05b028971..38d8419f96 100644 --- a/mandate/client.go +++ b/mandate/client.go @@ -10,7 +10,7 @@ package mandate import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /mandates APIs. diff --git a/mandate/client_test.go b/mandate/client_test.go index 13021dd115..5ae9e1fda8 100644 --- a/mandate/client_test.go +++ b/mandate/client_test.go @@ -4,7 +4,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - _ "github.com/stripe/stripe-go/v80/testing" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestMandateMethodGet(t *testing.T) { diff --git a/oauth/client.go b/oauth/client.go index 2877fdc879..b1f22aa102 100644 --- a/oauth/client.go +++ b/oauth/client.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /oauth and related APIs. diff --git a/oauth/client_test.go b/oauth/client_test.go index f12ad91815..75fd890994 100644 --- a/oauth/client_test.go +++ b/oauth/client_test.go @@ -7,8 +7,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestAuthorizeURL(t *testing.T) { diff --git a/params.go b/params.go index 8ef863961a..4b8b01e195 100644 --- a/params.go +++ b/params.go @@ -9,7 +9,7 @@ import ( "net/url" "time" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // diff --git a/params_test.go b/params_test.go index b9d129a59d..c137c9aca2 100644 --- a/params_test.go +++ b/params_test.go @@ -5,9 +5,9 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" - . "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" + . "github.com/stripe/stripe-go/v81/testing" ) func TestRangeQueryParamsAppendTo(t *testing.T) { diff --git a/paymentintent/client.go b/paymentintent/client.go index d4a848628e..21aa15ec46 100644 --- a/paymentintent/client.go +++ b/paymentintent/client.go @@ -10,8 +10,8 @@ package paymentintent import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /payment_intents APIs. diff --git a/paymentintent/client_test.go b/paymentintent/client_test.go index 4621def778..60c347b683 100644 --- a/paymentintent/client_test.go +++ b/paymentintent/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestPaymentIntentCancel(t *testing.T) { diff --git a/paymentlink/client.go b/paymentlink/client.go index 0a8416d582..99876332b1 100644 --- a/paymentlink/client.go +++ b/paymentlink/client.go @@ -10,8 +10,8 @@ package paymentlink import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /payment_links APIs. diff --git a/paymentmethod/client.go b/paymentmethod/client.go index 3abdc7fa5e..2d70b62724 100644 --- a/paymentmethod/client.go +++ b/paymentmethod/client.go @@ -10,8 +10,8 @@ package paymentmethod import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /payment_methods APIs. diff --git a/paymentmethod/client_test.go b/paymentmethod/client_test.go index 8649599dba..0bc61f9392 100644 --- a/paymentmethod/client_test.go +++ b/paymentmethod/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestPaymentMethodAttach(t *testing.T) { diff --git a/paymentmethodconfiguration/client.go b/paymentmethodconfiguration/client.go index db9a48992b..75bca004db 100644 --- a/paymentmethodconfiguration/client.go +++ b/paymentmethodconfiguration/client.go @@ -10,8 +10,8 @@ package paymentmethodconfiguration import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /payment_method_configurations APIs. diff --git a/paymentmethoddomain/client.go b/paymentmethoddomain/client.go index 1842bc59ff..b3dfff6834 100644 --- a/paymentmethoddomain/client.go +++ b/paymentmethoddomain/client.go @@ -10,8 +10,8 @@ package paymentmethoddomain import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /payment_method_domains APIs. diff --git a/paymentsource.go b/paymentsource.go index 5d73e10886..333cec6516 100644 --- a/paymentsource.go +++ b/paymentsource.go @@ -9,7 +9,7 @@ package stripe import ( "encoding/json" "fmt" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) type PaymentSourceType string diff --git a/paymentsource/client.go b/paymentsource/client.go index 033c74e025..569ff7f97a 100644 --- a/paymentsource/client.go +++ b/paymentsource/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /customers/{customer}/sources APIs. diff --git a/paymentsource/client_test.go b/paymentsource/client_test.go index 66b5eb5c08..deb610c854 100644 --- a/paymentsource/client_test.go +++ b/paymentsource/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSourceGet(t *testing.T) { diff --git a/paymentsource_test.go b/paymentsource_test.go index defd9408ba..c3a829014b 100644 --- a/paymentsource_test.go +++ b/paymentsource_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestSourceParams_AppendTo(t *testing.T) { diff --git a/payout/client.go b/payout/client.go index f407b5ba2e..139b9d1fd4 100644 --- a/payout/client.go +++ b/payout/client.go @@ -10,8 +10,8 @@ package payout import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /payouts APIs. diff --git a/payout/client_test.go b/payout/client_test.go index eccd430dac..57fc03fbc6 100644 --- a/payout/client_test.go +++ b/payout/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestPayoutCancel(t *testing.T) { diff --git a/person/client.go b/person/client.go index e8d88b8ea2..863a6ad93d 100644 --- a/person/client.go +++ b/person/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /accounts/{account}/persons APIs. diff --git a/person/client_test.go b/person/client_test.go index 717d2f2b4a..3bd023eaeb 100644 --- a/person/client_test.go +++ b/person/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestPersonDel(t *testing.T) { diff --git a/plan.go b/plan.go index e98d703c4a..53c701ec6c 100644 --- a/plan.go +++ b/plan.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" "strconv" ) diff --git a/plan/client.go b/plan/client.go index f60a564666..8259b9484f 100644 --- a/plan/client.go +++ b/plan/client.go @@ -10,8 +10,8 @@ package plan import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /plans APIs. diff --git a/plan/client_test.go b/plan/client_test.go index 70179047d9..a83e83f7b0 100644 --- a/plan/client_test.go +++ b/plan/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestPlanDel(t *testing.T) { diff --git a/plan_test.go b/plan_test.go index b15851a19e..59a5fcb837 100644 --- a/plan_test.go +++ b/plan_test.go @@ -6,7 +6,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestPlan_Unmarshal(t *testing.T) { diff --git a/price.go b/price.go index 35f992d85b..b35cca413e 100644 --- a/price.go +++ b/price.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes. diff --git a/price/client.go b/price/client.go index 1c401f4209..0f9114e66c 100644 --- a/price/client.go +++ b/price/client.go @@ -10,8 +10,8 @@ package price import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /prices APIs. diff --git a/price/client_test.go b/price/client_test.go index c9d95bfaca..f3ae5a42a4 100644 --- a/price/client_test.go +++ b/price/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestPriceGet(t *testing.T) { diff --git a/price_test.go b/price_test.go index c378f8515d..dd9a196ba5 100644 --- a/price_test.go +++ b/price_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestPrice_Unmarshal(t *testing.T) { diff --git a/product.go b/product.go index d85dd83fd9..e096227467 100644 --- a/product.go +++ b/product.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // The type of the product. The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans. diff --git a/product/client.go b/product/client.go index 62b7fe1776..9227d48360 100644 --- a/product/client.go +++ b/product/client.go @@ -10,8 +10,8 @@ package product import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /products APIs. diff --git a/product/client_test.go b/product/client_test.go index a6e1623f30..8b3b96423f 100644 --- a/product/client_test.go +++ b/product/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestProductDel(t *testing.T) { diff --git a/productfeature/client.go b/productfeature/client.go index cb039f71ce..74940bbd69 100644 --- a/productfeature/client.go +++ b/productfeature/client.go @@ -10,8 +10,8 @@ package productfeature import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /products/{product}/features APIs. diff --git a/promotioncode/client.go b/promotioncode/client.go index e9fd57df8c..2e6a2d071e 100644 --- a/promotioncode/client.go +++ b/promotioncode/client.go @@ -10,8 +10,8 @@ package promotioncode import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /promotion_codes APIs. diff --git a/promotioncode/client_test.go b/promotioncode/client_test.go index 2e42103803..63296518f1 100644 --- a/promotioncode/client_test.go +++ b/promotioncode/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestPromotionCodeGet(t *testing.T) { diff --git a/quote.go b/quote.go index 4e4487d10c..6906b23ec6 100644 --- a/quote.go +++ b/quote.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // Type of the account referenced. diff --git a/quote/client.go b/quote/client.go index 18ff81f1d1..9a36dbf303 100644 --- a/quote/client.go +++ b/quote/client.go @@ -10,8 +10,8 @@ package quote import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /quotes APIs. diff --git a/quote/client_test.go b/quote/client_test.go index 71e6b1b6c6..b599d8f5c7 100644 --- a/quote/client_test.go +++ b/quote/client_test.go @@ -5,8 +5,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestQuoteGet(t *testing.T) { diff --git a/quote_test.go b/quote_test.go index 66aad0b030..2fbcc92762 100644 --- a/quote_test.go +++ b/quote_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestQuoteSubscriptionDataParams_AppendTo(t *testing.T) { diff --git a/radar/earlyfraudwarning/client.go b/radar/earlyfraudwarning/client.go index 7d9b7ef9b3..86a6331280 100644 --- a/radar/earlyfraudwarning/client.go +++ b/radar/earlyfraudwarning/client.go @@ -10,8 +10,8 @@ package earlyfraudwarning import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /radar/early_fraud_warnings APIs. diff --git a/radar/earlyfraudwarning/client_test.go b/radar/earlyfraudwarning/client_test.go index 53d8e5c9f0..533cd40544 100644 --- a/radar/earlyfraudwarning/client_test.go +++ b/radar/earlyfraudwarning/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestRadarEarlyFraudWarningGet(t *testing.T) { diff --git a/radar/valuelist/client.go b/radar/valuelist/client.go index 0b2b393bbd..2b1e7544ab 100644 --- a/radar/valuelist/client.go +++ b/radar/valuelist/client.go @@ -10,8 +10,8 @@ package valuelist import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /radar/value_lists APIs. diff --git a/radar/valuelist/client_test.go b/radar/valuelist/client_test.go index 4eecb9ccb2..8090706d92 100644 --- a/radar/valuelist/client_test.go +++ b/radar/valuelist/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestRadarValueListDel(t *testing.T) { diff --git a/radar/valuelistitem/client.go b/radar/valuelistitem/client.go index fde7862a66..a5cedd3c18 100644 --- a/radar/valuelistitem/client.go +++ b/radar/valuelistitem/client.go @@ -11,8 +11,8 @@ package valuelistitem import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /radar/value_list_items APIs. diff --git a/radar/valuelistitem/client_test.go b/radar/valuelistitem/client_test.go index 1c8da4d0c7..f052f4b4c4 100644 --- a/radar/valuelistitem/client_test.go +++ b/radar/valuelistitem/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestRadarValueListItemDel(t *testing.T) { diff --git a/rawrequest/client.go b/rawrequest/client.go index 4028f96862..9514a2bf8d 100644 --- a/rawrequest/client.go +++ b/rawrequest/client.go @@ -2,7 +2,7 @@ package rawrequest import ( - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke raw requests against the specified backend diff --git a/rawrequest/client_test.go b/rawrequest/client_test.go index 3b288cf723..e5a3237ae9 100644 --- a/rawrequest/client_test.go +++ b/rawrequest/client_test.go @@ -7,8 +7,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func createTestClient(testServer *httptest.Server) Client { diff --git a/refund/client.go b/refund/client.go index 7961e4d1a4..c7bcfb1680 100644 --- a/refund/client.go +++ b/refund/client.go @@ -10,8 +10,8 @@ package refund import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /refunds APIs. diff --git a/refund/client_test.go b/refund/client_test.go index 95a94df069..485059d4aa 100644 --- a/refund/client_test.go +++ b/refund/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestRefundGet(t *testing.T) { diff --git a/reporting/reportrun/client.go b/reporting/reportrun/client.go index 957bb2bc8b..4de80b33e1 100644 --- a/reporting/reportrun/client.go +++ b/reporting/reportrun/client.go @@ -10,8 +10,8 @@ package reportrun import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /reporting/report_runs APIs. diff --git a/reporting/reportrun/client_test.go b/reporting/reportrun/client_test.go index ebc799c268..a0452cc46e 100644 --- a/reporting/reportrun/client_test.go +++ b/reporting/reportrun/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestReportingReportRunGet(t *testing.T) { diff --git a/reporting/reporttype/client.go b/reporting/reporttype/client.go index b093515094..face867325 100644 --- a/reporting/reporttype/client.go +++ b/reporting/reporttype/client.go @@ -10,8 +10,8 @@ package reporttype import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /reporting/report_types APIs. diff --git a/reporting/reporttype/client_test.go b/reporting/reporttype/client_test.go index c3a512f23c..3e7b40f428 100644 --- a/reporting/reporttype/client_test.go +++ b/reporting/reporttype/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestReportTestGet(t *testing.T) { diff --git a/review/client.go b/review/client.go index 7eadaee790..5b7170d5fc 100644 --- a/review/client.go +++ b/review/client.go @@ -10,8 +10,8 @@ package review import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /reviews APIs. diff --git a/review/client_test.go b/review/client_test.go index 25f164c800..10b064d379 100644 --- a/review/client_test.go +++ b/review/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestReviewApprove(t *testing.T) { diff --git a/search_iter.go b/search_iter.go index 9a67764b1e..be29f051d8 100644 --- a/search_iter.go +++ b/search_iter.go @@ -3,7 +3,7 @@ package stripe import ( "reflect" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // diff --git a/search_iter_test.go b/search_iter_test.go index 5be1f7f131..97d1cf3073 100644 --- a/search_iter_test.go +++ b/search_iter_test.go @@ -7,7 +7,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) var nextPageTestToken = "next_page_test_token" diff --git a/search_params_test.go b/search_params_test.go index c4926f40f0..b0502cca36 100644 --- a/search_params_test.go +++ b/search_params_test.go @@ -5,9 +5,9 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" - . "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" + . "github.com/stripe/stripe-go/v81/testing" ) type testSearchParams struct { diff --git a/setupattempt/client.go b/setupattempt/client.go index a4799b31f2..1dee41c579 100644 --- a/setupattempt/client.go +++ b/setupattempt/client.go @@ -11,8 +11,8 @@ package setupattempt import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /setup_attempts APIs. diff --git a/setupattempt/client_test.go b/setupattempt/client_test.go index 0934c5c5ef..18fb0dc4b5 100644 --- a/setupattempt/client_test.go +++ b/setupattempt/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSetupAttemptList(t *testing.T) { diff --git a/setupintent/client.go b/setupintent/client.go index d39edd062d..213cec3db3 100644 --- a/setupintent/client.go +++ b/setupintent/client.go @@ -10,8 +10,8 @@ package setupintent import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /setup_intents APIs. diff --git a/setupintent/client_test.go b/setupintent/client_test.go index c6838978b9..a8dabf99b6 100644 --- a/setupintent/client_test.go +++ b/setupintent/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSetupIntentCancel(t *testing.T) { diff --git a/shippingrate/client.go b/shippingrate/client.go index 393d533d4d..10d8317314 100644 --- a/shippingrate/client.go +++ b/shippingrate/client.go @@ -10,8 +10,8 @@ package shippingrate import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /shipping_rates APIs. diff --git a/sigma/scheduledqueryrun/client.go b/sigma/scheduledqueryrun/client.go index 144ddbad28..b172f5de2f 100644 --- a/sigma/scheduledqueryrun/client.go +++ b/sigma/scheduledqueryrun/client.go @@ -11,8 +11,8 @@ package scheduledqueryrun import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /sigma/scheduled_query_runs APIs. diff --git a/sigma/scheduledqueryrun/client_test.go b/sigma/scheduledqueryrun/client_test.go index fdc956a9b6..0fd60e86f1 100644 --- a/sigma/scheduledqueryrun/client_test.go +++ b/sigma/scheduledqueryrun/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSigmaScheduledQueryRunGet(t *testing.T) { diff --git a/source/client.go b/source/client.go index a326391f50..71a530bbe1 100644 --- a/source/client.go +++ b/source/client.go @@ -11,7 +11,7 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /sources APIs. diff --git a/source/client_test.go b/source/client_test.go index 49dd7b4da6..805c0cf05e 100644 --- a/source/client_test.go +++ b/source/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSourceGet(t *testing.T) { diff --git a/sourcetransaction/client.go b/sourcetransaction/client.go index 813f035e88..74e3aa10e1 100644 --- a/sourcetransaction/client.go +++ b/sourcetransaction/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /sources/:source_id/transactions APIs. diff --git a/sourcetransaction/client_test.go b/sourcetransaction/client_test.go index dbe952f5f1..ac82d85614 100644 --- a/sourcetransaction/client_test.go +++ b/sourcetransaction/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSourceTransactionList(t *testing.T) { diff --git a/stripe.go b/stripe.go index 98c74b7b35..1e251be796 100644 --- a/stripe.go +++ b/stripe.go @@ -22,7 +22,7 @@ import ( "sync" "time" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // @@ -1386,7 +1386,7 @@ func StringSlice(v []string) []*string { // // clientversion is the binding version -const clientversion = "80.2.1" +const clientversion = "81.0.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 diff --git a/sub_test.go b/sub_test.go index 67421854f2..45e4bcd509 100644 --- a/sub_test.go +++ b/sub_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestSubscriptionParams_AppendTo(t *testing.T) { diff --git a/subschedule_test.go b/subschedule_test.go index f94aae6c91..f1e2e59334 100644 --- a/subschedule_test.go +++ b/subschedule_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestSubscriptionScheduleParams_AppendTo(t *testing.T) { diff --git a/subscription.go b/subscription.go index 2b86424df3..9b9dd1e4fb 100644 --- a/subscription.go +++ b/subscription.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // Type of the account referenced. diff --git a/subscription/client.go b/subscription/client.go index d0d885939f..6c3a4cc9ce 100644 --- a/subscription/client.go +++ b/subscription/client.go @@ -10,8 +10,8 @@ package subscription import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /subscriptions APIs. diff --git a/subscription/client_test.go b/subscription/client_test.go index b89b2a4a8a..9b226718f4 100644 --- a/subscription/client_test.go +++ b/subscription/client_test.go @@ -5,8 +5,8 @@ import ( "time" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSubscriptionCancel(t *testing.T) { diff --git a/subscriptionitem/client.go b/subscriptionitem/client.go index f4ee3edc9b..eb99a9223e 100644 --- a/subscriptionitem/client.go +++ b/subscriptionitem/client.go @@ -10,8 +10,8 @@ package subscriptionitem import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /subscription_items APIs. diff --git a/subscriptionitem/client_test.go b/subscriptionitem/client_test.go index 564f023803..0fad7f756f 100644 --- a/subscriptionitem/client_test.go +++ b/subscriptionitem/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSubscriptionItemDel(t *testing.T) { diff --git a/subscriptionschedule.go b/subscriptionschedule.go index 7c40c5aeef..c2ed57a510 100644 --- a/subscriptionschedule.go +++ b/subscriptionschedule.go @@ -8,7 +8,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) // Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). diff --git a/subscriptionschedule/client.go b/subscriptionschedule/client.go index 6791831d0c..442740e610 100644 --- a/subscriptionschedule/client.go +++ b/subscriptionschedule/client.go @@ -10,8 +10,8 @@ package subscriptionschedule import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /subscription_schedules APIs. diff --git a/subscriptionschedule/client_test.go b/subscriptionschedule/client_test.go index 0b7a4d37c8..e8d97a1ca6 100644 --- a/subscriptionschedule/client_test.go +++ b/subscriptionschedule/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestSubscriptionScheduleCancel(t *testing.T) { diff --git a/tax/calculation/client.go b/tax/calculation/client.go index 93fe938f30..ef1e8b3bf9 100644 --- a/tax/calculation/client.go +++ b/tax/calculation/client.go @@ -10,8 +10,8 @@ package calculation import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /tax/calculations APIs. diff --git a/tax/registration/client.go b/tax/registration/client.go index 4e0355cf70..9ca6ab8cee 100644 --- a/tax/registration/client.go +++ b/tax/registration/client.go @@ -10,8 +10,8 @@ package registration import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /tax/registrations APIs. diff --git a/tax/settings/client.go b/tax/settings/client.go index d1b2774ff7..61a3ee0a76 100644 --- a/tax/settings/client.go +++ b/tax/settings/client.go @@ -10,7 +10,7 @@ package settings import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /tax/settings APIs. diff --git a/tax/transaction/client.go b/tax/transaction/client.go index 880b48f4c0..52c6f52079 100644 --- a/tax/transaction/client.go +++ b/tax/transaction/client.go @@ -10,8 +10,8 @@ package transaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /tax/transactions APIs. diff --git a/tax_registration.go b/tax_registration.go index f5b511068c..da45eaa239 100644 --- a/tax_registration.go +++ b/tax_registration.go @@ -6,7 +6,7 @@ package stripe -import "github.com/stripe/stripe-go/v80/form" +import "github.com/stripe/stripe-go/v81/form" // Type of registration in `country`. type TaxRegistrationCountryOptionsAeType string diff --git a/taxcode/client.go b/taxcode/client.go index cd8757bc89..e2262a4fdd 100644 --- a/taxcode/client.go +++ b/taxcode/client.go @@ -10,8 +10,8 @@ package taxcode import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /tax_codes APIs. diff --git a/taxcode/client_test.go b/taxcode/client_test.go index 4ce99cc187..180b1f5b5a 100644 --- a/taxcode/client_test.go +++ b/taxcode/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTaxCodeGet(t *testing.T) { diff --git a/taxid/client.go b/taxid/client.go index c6996dce35..a974d5ff48 100644 --- a/taxid/client.go +++ b/taxid/client.go @@ -10,8 +10,8 @@ package taxid import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /tax_ids APIs. diff --git a/taxid/client_test.go b/taxid/client_test.go index 8580308913..24aed374a7 100644 --- a/taxid/client_test.go +++ b/taxid/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTaxIDDel(t *testing.T) { diff --git a/taxrate/client.go b/taxrate/client.go index 0d9930ef29..638e4c2803 100644 --- a/taxrate/client.go +++ b/taxrate/client.go @@ -10,8 +10,8 @@ package taxrate import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /tax_rates APIs. diff --git a/taxrate/client_test.go b/taxrate/client_test.go index aae0386cb6..af8e08a453 100644 --- a/taxrate/client_test.go +++ b/taxrate/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTaxRateGet(t *testing.T) { diff --git a/terminal/configuration/client.go b/terminal/configuration/client.go index a729d93a4a..a7cb9deb13 100644 --- a/terminal/configuration/client.go +++ b/terminal/configuration/client.go @@ -10,8 +10,8 @@ package configuration import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /terminal/configurations APIs. diff --git a/terminal/connectiontoken/client.go b/terminal/connectiontoken/client.go index 889826a71f..0560a3637b 100644 --- a/terminal/connectiontoken/client.go +++ b/terminal/connectiontoken/client.go @@ -10,7 +10,7 @@ package connectiontoken import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /terminal/connection_tokens APIs. diff --git a/terminal/connectiontoken/client_test.go b/terminal/connectiontoken/client_test.go index 8d9c73be4a..a858e922bc 100644 --- a/terminal/connectiontoken/client_test.go +++ b/terminal/connectiontoken/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTerminalConnectionTokenNew(t *testing.T) { diff --git a/terminal/location/client.go b/terminal/location/client.go index 919ecf41cf..922ebf7caa 100644 --- a/terminal/location/client.go +++ b/terminal/location/client.go @@ -10,8 +10,8 @@ package location import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /terminal/locations APIs. diff --git a/terminal/location/client_test.go b/terminal/location/client_test.go index 8ba037c445..d865088b56 100644 --- a/terminal/location/client_test.go +++ b/terminal/location/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTerminalLocationDel(t *testing.T) { diff --git a/terminal/reader/client.go b/terminal/reader/client.go index b768096e0d..ebf7aabc6c 100644 --- a/terminal/reader/client.go +++ b/terminal/reader/client.go @@ -10,8 +10,8 @@ package reader import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /terminal/readers APIs. diff --git a/terminal/reader/client_test.go b/terminal/reader/client_test.go index 0c1f9e419b..4f098b502d 100644 --- a/terminal/reader/client_test.go +++ b/terminal/reader/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTerminalReaderDel(t *testing.T) { diff --git a/testhelpers/confirmationtoken/client.go b/testhelpers/confirmationtoken/client.go index fa18d6c1ae..390a3c130f 100644 --- a/testhelpers/confirmationtoken/client.go +++ b/testhelpers/confirmationtoken/client.go @@ -10,7 +10,7 @@ package confirmationtoken import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /confirmation_tokens APIs. diff --git a/testhelpers/customer/client.go b/testhelpers/customer/client.go index fcbd5605f9..fcd8eeb99a 100644 --- a/testhelpers/customer/client.go +++ b/testhelpers/customer/client.go @@ -10,7 +10,7 @@ package customer import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /customers APIs. diff --git a/testhelpers/issuing/authorization/client.go b/testhelpers/issuing/authorization/client.go index 793a5113fa..3aa469040c 100644 --- a/testhelpers/issuing/authorization/client.go +++ b/testhelpers/issuing/authorization/client.go @@ -10,7 +10,7 @@ package authorization import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /issuing/authorizations APIs. diff --git a/testhelpers/issuing/card/client.go b/testhelpers/issuing/card/client.go index fe22758986..7d12259b22 100644 --- a/testhelpers/issuing/card/client.go +++ b/testhelpers/issuing/card/client.go @@ -10,7 +10,7 @@ package card import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /issuing/cards APIs. diff --git a/testhelpers/issuing/personalizationdesign/client.go b/testhelpers/issuing/personalizationdesign/client.go index 89b393778c..648d6eb038 100644 --- a/testhelpers/issuing/personalizationdesign/client.go +++ b/testhelpers/issuing/personalizationdesign/client.go @@ -10,7 +10,7 @@ package personalizationdesign import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /issuing/personalization_designs APIs. diff --git a/testhelpers/issuing/transaction/client.go b/testhelpers/issuing/transaction/client.go index 60fc3c00df..cfb1ec7acf 100644 --- a/testhelpers/issuing/transaction/client.go +++ b/testhelpers/issuing/transaction/client.go @@ -10,7 +10,7 @@ package transaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /issuing/transactions APIs. diff --git a/testhelpers/refund/client.go b/testhelpers/refund/client.go index 1d68e99fea..115321332e 100644 --- a/testhelpers/refund/client.go +++ b/testhelpers/refund/client.go @@ -10,7 +10,7 @@ package refund import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /refunds APIs. diff --git a/testhelpers/terminal/reader/client.go b/testhelpers/terminal/reader/client.go index a50a5372c1..726bd50001 100644 --- a/testhelpers/terminal/reader/client.go +++ b/testhelpers/terminal/reader/client.go @@ -10,7 +10,7 @@ package reader import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /terminal/readers APIs. diff --git a/testhelpers/terminal/reader/client_test.go b/testhelpers/terminal/reader/client_test.go index fd92dcd1a7..4a97fb9bcd 100644 --- a/testhelpers/terminal/reader/client_test.go +++ b/testhelpers/terminal/reader/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTerminalReaderUpdate(t *testing.T) { diff --git a/testhelpers/testclock/client.go b/testhelpers/testclock/client.go index 498c301074..b849b2efff 100644 --- a/testhelpers/testclock/client.go +++ b/testhelpers/testclock/client.go @@ -10,8 +10,8 @@ package testclock import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /test_helpers/test_clocks APIs. diff --git a/testhelpers/treasury/inboundtransfer/client.go b/testhelpers/treasury/inboundtransfer/client.go index a25c3a273b..13e6400219 100644 --- a/testhelpers/treasury/inboundtransfer/client.go +++ b/testhelpers/treasury/inboundtransfer/client.go @@ -10,7 +10,7 @@ package inboundtransfer import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /treasury/inbound_transfers APIs. diff --git a/testhelpers/treasury/outboundpayment/client.go b/testhelpers/treasury/outboundpayment/client.go index 111f6b2763..5592a2642c 100644 --- a/testhelpers/treasury/outboundpayment/client.go +++ b/testhelpers/treasury/outboundpayment/client.go @@ -10,7 +10,7 @@ package outboundpayment import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /treasury/outbound_payments APIs. diff --git a/testhelpers/treasury/outboundtransfer/client.go b/testhelpers/treasury/outboundtransfer/client.go index 71f4424eff..9a2d50eef8 100644 --- a/testhelpers/treasury/outboundtransfer/client.go +++ b/testhelpers/treasury/outboundtransfer/client.go @@ -10,7 +10,7 @@ package outboundtransfer import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /treasury/outbound_transfers APIs. diff --git a/testhelpers/treasury/receivedcredit/client.go b/testhelpers/treasury/receivedcredit/client.go index df621a80d9..51ad58c95c 100644 --- a/testhelpers/treasury/receivedcredit/client.go +++ b/testhelpers/treasury/receivedcredit/client.go @@ -10,7 +10,7 @@ package receivedcredit import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /treasury/received_credits APIs. diff --git a/testhelpers/treasury/receiveddebit/client.go b/testhelpers/treasury/receiveddebit/client.go index 9dcef1685d..d03263b2f9 100644 --- a/testhelpers/treasury/receiveddebit/client.go +++ b/testhelpers/treasury/receiveddebit/client.go @@ -10,7 +10,7 @@ package receiveddebit import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /treasury/received_debits APIs. diff --git a/testing/testing.go b/testing/testing.go index d723109748..f59c22a124 100644 --- a/testing/testing.go +++ b/testing/testing.go @@ -8,8 +8,8 @@ import ( "strconv" "strings" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" "golang.org/x/net/http2" ) diff --git a/token/client.go b/token/client.go index f7c26dbe81..bd0bcd0b06 100644 --- a/token/client.go +++ b/token/client.go @@ -10,7 +10,7 @@ package token import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /tokens APIs. diff --git a/token/client_test.go b/token/client_test.go index cb97dc754c..398f268935 100644 --- a/token/client_test.go +++ b/token/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTokenGet(t *testing.T) { diff --git a/topup/client.go b/topup/client.go index 740e004984..bd4453bef5 100644 --- a/topup/client.go +++ b/topup/client.go @@ -10,8 +10,8 @@ package topup import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /topups APIs. diff --git a/topup/client_test.go b/topup/client_test.go index 166838cec0..b5bb39bb4b 100644 --- a/topup/client_test.go +++ b/topup/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTopupCancel(t *testing.T) { diff --git a/transfer/client.go b/transfer/client.go index 2a42ef040e..51ba46ccc9 100644 --- a/transfer/client.go +++ b/transfer/client.go @@ -10,8 +10,8 @@ package transfer import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /transfers APIs. diff --git a/transfer/client_test.go b/transfer/client_test.go index 5b724aa984..05a20cd9de 100644 --- a/transfer/client_test.go +++ b/transfer/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTransferGet(t *testing.T) { diff --git a/transferreversal/client.go b/transferreversal/client.go index 9f286f019e..af0d165021 100644 --- a/transferreversal/client.go +++ b/transferreversal/client.go @@ -11,8 +11,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /transfers/{id}/reversals APIs. diff --git a/transferreversal/client_test.go b/transferreversal/client_test.go index 1cd78235d6..9e9a7f7939 100644 --- a/transferreversal/client_test.go +++ b/transferreversal/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestTransferReversalGet(t *testing.T) { diff --git a/treasury/creditreversal/client.go b/treasury/creditreversal/client.go index 168f1b8e71..2a98186ede 100644 --- a/treasury/creditreversal/client.go +++ b/treasury/creditreversal/client.go @@ -10,8 +10,8 @@ package creditreversal import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/credit_reversals APIs. diff --git a/treasury/debitreversal/client.go b/treasury/debitreversal/client.go index e7fe2000a8..e59b905f51 100644 --- a/treasury/debitreversal/client.go +++ b/treasury/debitreversal/client.go @@ -10,8 +10,8 @@ package debitreversal import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/debit_reversals APIs. diff --git a/treasury/financialaccount/client.go b/treasury/financialaccount/client.go index 9c82e3eaff..76befd7551 100644 --- a/treasury/financialaccount/client.go +++ b/treasury/financialaccount/client.go @@ -10,8 +10,8 @@ package financialaccount import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/financial_accounts APIs. diff --git a/treasury/inboundtransfer/client.go b/treasury/inboundtransfer/client.go index d91947ad44..194d2808fd 100644 --- a/treasury/inboundtransfer/client.go +++ b/treasury/inboundtransfer/client.go @@ -10,8 +10,8 @@ package inboundtransfer import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/inbound_transfers APIs. diff --git a/treasury/outboundpayment/client.go b/treasury/outboundpayment/client.go index 1e7f86e449..04236c2eba 100644 --- a/treasury/outboundpayment/client.go +++ b/treasury/outboundpayment/client.go @@ -10,8 +10,8 @@ package outboundpayment import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/outbound_payments APIs. diff --git a/treasury/outboundtransfer/client.go b/treasury/outboundtransfer/client.go index c164f9fa75..9a3fcbd580 100644 --- a/treasury/outboundtransfer/client.go +++ b/treasury/outboundtransfer/client.go @@ -10,8 +10,8 @@ package outboundtransfer import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/outbound_transfers APIs. diff --git a/treasury/receivedcredit/client.go b/treasury/receivedcredit/client.go index c3ac47ed50..54dffa9b2a 100644 --- a/treasury/receivedcredit/client.go +++ b/treasury/receivedcredit/client.go @@ -10,8 +10,8 @@ package receivedcredit import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/received_credits APIs. diff --git a/treasury/receiveddebit/client.go b/treasury/receiveddebit/client.go index b2d369c3ef..a5adc1530f 100644 --- a/treasury/receiveddebit/client.go +++ b/treasury/receiveddebit/client.go @@ -10,8 +10,8 @@ package receiveddebit import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/received_debits APIs. diff --git a/treasury/transaction/client.go b/treasury/transaction/client.go index cd5c6f1d69..4c17068387 100644 --- a/treasury/transaction/client.go +++ b/treasury/transaction/client.go @@ -10,8 +10,8 @@ package transaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/transactions APIs. diff --git a/treasury/transactionentry/client.go b/treasury/transactionentry/client.go index 9399840408..4b7bcc63ed 100644 --- a/treasury/transactionentry/client.go +++ b/treasury/transactionentry/client.go @@ -10,8 +10,8 @@ package transactionentry import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /treasury/transaction_entries APIs. diff --git a/usagerecord.go b/usagerecord.go index c7a52407e4..482f19307e 100644 --- a/usagerecord.go +++ b/usagerecord.go @@ -6,7 +6,7 @@ package stripe -import "github.com/stripe/stripe-go/v80/form" +import "github.com/stripe/stripe-go/v81/form" // Possible values for the action parameter on usage record creation. const ( diff --git a/usagerecord/client.go b/usagerecord/client.go index 5d7725a278..f0271054d3 100644 --- a/usagerecord/client.go +++ b/usagerecord/client.go @@ -10,7 +10,7 @@ package usagerecord import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" + stripe "github.com/stripe/stripe-go/v81" ) // Client is used to invoke /subscription_items/{subscription_item}/usage_records APIs. diff --git a/usagerecord/client_test.go b/usagerecord/client_test.go index 87aaa3c72e..f8f2d72f59 100644 --- a/usagerecord/client_test.go +++ b/usagerecord/client_test.go @@ -5,8 +5,8 @@ import ( "time" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestUsageRecordNew(t *testing.T) { diff --git a/usagerecord_test.go b/usagerecord_test.go index ef066d5053..787f54d753 100644 --- a/usagerecord_test.go +++ b/usagerecord_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v80/form" + "github.com/stripe/stripe-go/v81/form" ) func TestUsageRecordParams_AppendTo(t *testing.T) { diff --git a/usagerecordsummary/client.go b/usagerecordsummary/client.go index 0ec93e58f5..40c5f116bd 100644 --- a/usagerecordsummary/client.go +++ b/usagerecordsummary/client.go @@ -10,8 +10,8 @@ package usagerecordsummary import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /subscription_items/{subscription_item}/usage_record_summaries APIs. diff --git a/usagerecordsummary/client_test.go b/usagerecordsummary/client_test.go index 887871c427..461e3495e8 100644 --- a/usagerecordsummary/client_test.go +++ b/usagerecordsummary/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestUsageRecordSummaryList(t *testing.T) { diff --git a/webhook/client.go b/webhook/client.go index 27169f2a1f..9a3af9b138 100644 --- a/webhook/client.go +++ b/webhook/client.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/stripe/stripe-go/v80" + "github.com/stripe/stripe-go/v81" ) // diff --git a/webhook/client_handler_test.go b/webhook/client_handler_test.go index f7a80ec94c..0a6ab19303 100644 --- a/webhook/client_handler_test.go +++ b/webhook/client_handler_test.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/stripe/stripe-go/v80/webhook" + "github.com/stripe/stripe-go/v81/webhook" ) func Example() { diff --git a/webhook/client_test.go b/webhook/client_test.go index accc5dd634..fbc99d6683 100644 --- a/webhook/client_test.go +++ b/webhook/client_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/stripe/stripe-go/v80" + "github.com/stripe/stripe-go/v81" ) var testPayload = []byte(fmt.Sprintf(`{ diff --git a/webhookendpoint/client.go b/webhookendpoint/client.go index 2ee1724467..054553a828 100644 --- a/webhookendpoint/client.go +++ b/webhookendpoint/client.go @@ -10,8 +10,8 @@ package webhookendpoint import ( "net/http" - stripe "github.com/stripe/stripe-go/v80" - "github.com/stripe/stripe-go/v80/form" + stripe "github.com/stripe/stripe-go/v81" + "github.com/stripe/stripe-go/v81/form" ) // Client is used to invoke /webhook_endpoints APIs. diff --git a/webhookendpoint/client_test.go b/webhookendpoint/client_test.go index ea5f746895..3ab3c635d9 100644 --- a/webhookendpoint/client_test.go +++ b/webhookendpoint/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v80" - _ "github.com/stripe/stripe-go/v80/testing" + stripe "github.com/stripe/stripe-go/v81" + _ "github.com/stripe/stripe-go/v81/testing" ) func TestWebhookEndpointDel(t *testing.T) {