Skip to content

Commit

Permalink
Update generated code (#1805)
Browse files Browse the repository at this point in the history
* Update generated code for v797

* Update generated code for v798

* Update generated code for v799

* Update generated code for v800

* Update generated code for v801

* Update generated code for v802

* Update generated code for v803

* Update generated code for v804

* Update generated code for v807

* Update generated code for v808

* Update generated code for v808

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
stripe-openapi[bot] authored Feb 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f6d9da6 commit 9ef1bf0
Showing 20 changed files with 222 additions and 39 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v793
v808
27 changes: 24 additions & 3 deletions account.go
Original file line number Diff line number Diff line change
@@ -174,9 +174,7 @@ type AccountParams struct {
Expand []*string `form:"expand"`
// A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won't be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.
//
// 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/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.
//
// Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
// 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/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs. After you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
ExternalAccount *AccountExternalAccountParams `form:"external_account"`
// 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/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.
Individual *PersonParams `form:"individual"`
@@ -434,6 +432,12 @@ type AccountCapabilitiesSofortPaymentsParams struct {
Requested *bool `form:"requested"`
}

// The swish_payments capability.
type AccountCapabilitiesSwishPaymentsParams 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 tax_reporting_us_1099_k capability.
type AccountCapabilitiesTaxReportingUS1099KParams 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.
@@ -534,6 +538,8 @@ type AccountCapabilitiesParams struct {
SEPADebitPayments *AccountCapabilitiesSEPADebitPaymentsParams `form:"sepa_debit_payments"`
// The sofort_payments capability.
SofortPayments *AccountCapabilitiesSofortPaymentsParams `form:"sofort_payments"`
// The swish_payments capability.
SwishPayments *AccountCapabilitiesSwishPaymentsParams `form:"swish_payments"`
// The tax_reporting_us_1099_k capability.
TaxReportingUS1099K *AccountCapabilitiesTaxReportingUS1099KParams `form:"tax_reporting_us_1099_k"`
// The tax_reporting_us_1099_misc capability.
@@ -800,6 +806,12 @@ type AccountSettingsCardPaymentsParams struct {
StatementDescriptorPrefixKanji *string `form:"statement_descriptor_prefix_kanji"`
}

// Settings specific to the account's use of Invoices.
type AccountSettingsInvoicesParams struct {
// The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
DefaultAccountTaxIDs []*string `form:"default_account_tax_ids"`
}

// Settings that apply across payment methods for charging on the account.
type AccountSettingsPaymentsParams struct {
// The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
@@ -866,6 +878,8 @@ type AccountSettingsParams struct {
CardIssuing *AccountSettingsCardIssuingParams `form:"card_issuing"`
// Settings specific to card charging on the account.
CardPayments *AccountSettingsCardPaymentsParams `form:"card_payments"`
// Settings specific to the account's use of Invoices.
Invoices *AccountSettingsInvoicesParams `form:"invoices"`
// Settings that apply across payment methods for charging on the account.
Payments *AccountSettingsPaymentsParams `form:"payments"`
// Settings specific to the account's payouts.
@@ -1019,6 +1033,8 @@ type AccountCapabilities struct {
SEPADebitPayments AccountCapabilityStatus `json:"sepa_debit_payments"`
// The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
SofortPayments AccountCapabilityStatus `json:"sofort_payments"`
// The status of the Swish capability of the account, or whether the account can directly process Swish payments.
SwishPayments AccountCapabilityStatus `json:"swish_payments"`
// The status of the tax reporting 1099-K (US) capability of the account.
TaxReportingUS1099K AccountCapabilityStatus `json:"tax_reporting_us_1099_k"`
// The status of the tax reporting 1099-MISC (US) capability of the account.
@@ -1256,6 +1272,10 @@ type AccountSettingsDashboard struct {
// The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones).
Timezone string `json:"timezone"`
}
type AccountSettingsInvoices struct {
// The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
DefaultAccountTaxIDs []*TaxID `json:"default_account_tax_ids"`
}
type AccountSettingsPayments struct {
// The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
StatementDescriptor string `json:"statement_descriptor"`
@@ -1308,6 +1328,7 @@ type AccountSettings struct {
CardIssuing *AccountSettingsCardIssuing `json:"card_issuing"`
CardPayments *AccountSettingsCardPayments `json:"card_payments"`
Dashboard *AccountSettingsDashboard `json:"dashboard"`
Invoices *AccountSettingsInvoices `json:"invoices"`
Payments *AccountSettingsPayments `json:"payments"`
Payouts *AccountSettingsPayouts `json:"payouts"`
SEPADebitPayments *AccountSettingsSEPADebitPayments `json:"sepa_debit_payments"`
10 changes: 10 additions & 0 deletions charge.go
Original file line number Diff line number Diff line change
@@ -268,6 +268,7 @@ const (
ChargePaymentMethodDetailsTypeP24 ChargePaymentMethodDetailsType = "p24"
ChargePaymentMethodDetailsTypeSEPADebit ChargePaymentMethodDetailsType = "sepa_debit"
ChargePaymentMethodDetailsTypeSofort ChargePaymentMethodDetailsType = "sofort"
ChargePaymentMethodDetailsTypeSwish ChargePaymentMethodDetailsType = "swish"
ChargePaymentMethodDetailsTypeStripeAccount ChargePaymentMethodDetailsType = "stripe_account"
ChargePaymentMethodDetailsTypeWeChat ChargePaymentMethodDetailsType = "wechat"
)
@@ -1140,6 +1141,14 @@ type ChargePaymentMethodDetailsSofort struct {
VerifiedName string `json:"verified_name"`
}
type ChargePaymentMethodDetailsStripeAccount struct{}
type ChargePaymentMethodDetailsSwish struct {
// Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
Fingerprint string `json:"fingerprint"`
// Payer bank reference number for the payment
PaymentReference string `json:"payment_reference"`
// The last four digits of the Swish account phone number
VerifiedPhoneLast4 string `json:"verified_phone_last4"`
}
type ChargePaymentMethodDetailsUSBankAccount struct {
// Account holder type: individual or company.
AccountHolderType ChargePaymentMethodDetailsUSBankAccountAccountHolderType `json:"account_holder_type"`
@@ -1201,6 +1210,7 @@ type ChargePaymentMethodDetails struct {
SEPADebit *ChargePaymentMethodDetailsSEPADebit `json:"sepa_debit"`
Sofort *ChargePaymentMethodDetailsSofort `json:"sofort"`
StripeAccount *ChargePaymentMethodDetailsStripeAccount `json:"stripe_account"`
Swish *ChargePaymentMethodDetailsSwish `json:"swish"`
// The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
// An additional hash is included on `payment_method_details` with a name matching this value.
// It contains information specific to the payment method.
22 changes: 16 additions & 6 deletions checkout_session.go
Original file line number Diff line number Diff line change
@@ -716,8 +716,7 @@ const (

// Describes the type of transaction being performed by Checkout in order to customize
// relevant text on the page, such as the submit button. `submit_type` can only be
// specified on Checkout Sessions in `payment` mode, but not Checkout Sessions
// in `subscription` or `setup` mode. Possible values are `auto`, `pay`, `book`, `donate`. If blank or `auto`, `pay` is used.
// specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
type CheckoutSessionSubmitType string

// List of values that CheckoutSessionSubmitType can take
@@ -1508,6 +1507,12 @@ type CheckoutSessionPaymentMethodOptionsSofortParams struct {
SetupFutureUsage *string `form:"setup_future_usage"`
}

// contains details about the Swish payment method options.
type CheckoutSessionPaymentMethodOptionsSwishParams struct {
// The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
Reference *string `form:"reference"`
}

// Additional fields for Financial Connections Session creation
type CheckoutSessionPaymentMethodOptionsUSBankAccountFinancialConnectionsParams struct {
// The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
@@ -1600,6 +1605,8 @@ type CheckoutSessionPaymentMethodOptionsParams struct {
SEPADebit *CheckoutSessionPaymentMethodOptionsSEPADebitParams `form:"sepa_debit"`
// contains details about the Sofort payment method options.
Sofort *CheckoutSessionPaymentMethodOptionsSofortParams `form:"sofort"`
// contains details about the Swish payment method options.
Swish *CheckoutSessionPaymentMethodOptionsSwishParams `form:"swish"`
// contains details about the Us Bank Account payment method options.
USBankAccount *CheckoutSessionPaymentMethodOptionsUSBankAccountParams `form:"us_bank_account"`
// contains details about the WeChat Pay payment method options.
@@ -1921,8 +1928,7 @@ type CheckoutSessionParams struct {
ShippingOptions []*CheckoutSessionShippingOptionParams `form:"shipping_options"`
// Describes the type of transaction being performed by Checkout in order to customize
// relevant text on the page, such as the submit button. `submit_type` can only be
// specified on Checkout Sessions in `payment` mode, but not Checkout Sessions
// in `subscription` or `setup` mode. Possible values are `auto`, `pay`, `book`, `donate`. If blank or `auto`, `pay` is used.
// specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
SubmitType *string `form:"submit_type"`
// A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
SubscriptionData *CheckoutSessionSubscriptionDataParams `form:"subscription_data"`
@@ -2475,6 +2481,10 @@ type CheckoutSessionPaymentMethodOptionsSofort struct {
// When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
SetupFutureUsage CheckoutSessionPaymentMethodOptionsSofortSetupFutureUsage `json:"setup_future_usage"`
}
type CheckoutSessionPaymentMethodOptionsSwish struct {
// The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
Reference string `json:"reference"`
}
type CheckoutSessionPaymentMethodOptionsUSBankAccountFinancialConnections struct {
// The list of permissions to request. The `payment_method` permission must be included.
Permissions []CheckoutSessionPaymentMethodOptionsUSBankAccountFinancialConnectionsPermission `json:"permissions"`
@@ -2524,6 +2534,7 @@ type CheckoutSessionPaymentMethodOptions struct {
RevolutPay *CheckoutSessionPaymentMethodOptionsRevolutPay `json:"revolut_pay"`
SEPADebit *CheckoutSessionPaymentMethodOptionsSEPADebit `json:"sepa_debit"`
Sofort *CheckoutSessionPaymentMethodOptionsSofort `json:"sofort"`
Swish *CheckoutSessionPaymentMethodOptionsSwish `json:"swish"`
USBankAccount *CheckoutSessionPaymentMethodOptionsUSBankAccount `json:"us_bank_account"`
}
type CheckoutSessionPhoneNumberCollection struct {
@@ -2741,8 +2752,7 @@ type CheckoutSession struct {
Status CheckoutSessionStatus `json:"status"`
// Describes the type of transaction being performed by Checkout in order to customize
// relevant text on the page, such as the submit button. `submit_type` can only be
// specified on Checkout Sessions in `payment` mode, but not Checkout Sessions
// in `subscription` or `setup` mode. Possible values are `auto`, `pay`, `book`, `donate`. If blank or `auto`, `pay` is used.
// specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
SubmitType CheckoutSessionSubmitType `json:"submit_type"`
// The ID of the subscription for Checkout Sessions in `subscription` mode.
Subscription *Subscription `json:"subscription"`
2 changes: 1 addition & 1 deletion client/api.go
Original file line number Diff line number Diff line change
@@ -288,7 +288,7 @@ type API struct {
TaxCalculations *taxcalculation.Client
// TaxCodes is the client used to invoke /tax_codes APIs.
TaxCodes *taxcode.Client
// TaxIDs is the client used to invoke /customers/{customer}/tax_ids APIs.
// TaxIDs is the client used to invoke /tax_ids APIs.
TaxIDs *taxid.Client
// TaxRates is the client used to invoke /tax_rates APIs.
TaxRates *taxrate.Client
Loading

0 comments on commit 9ef1bf0

Please sign in to comment.