From e8f4b4fdfee45d86617fcca936cd0aaa2d378ec0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:38:20 +0000 Subject: [PATCH] Update generated code for v1279 --- OPENAPI_VERSION | 2 +- account.go | 30 ++++++++++++++++++++++++++++ treasury_financialaccount.go | 4 ++++ treasury_financialaccountfeatures.go | 12 +++++++++++ 4 files changed, 47 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 846b7ef328..20a917642e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1278 \ No newline at end of file +v1279 \ No newline at end of file diff --git a/account.go b/account.go index 363e5e9e23..fdda6bb8ec 100644 --- a/account.go +++ b/account.go @@ -594,6 +594,24 @@ type AccountCapabilitiesTreasuryParams struct { Requested *bool `form:"requested"` } +// The treasury_evolve capability. +type AccountCapabilitiesTreasuryEvolveParams 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 treasury_fifth_third capability. +type AccountCapabilitiesTreasuryFifthThirdParams 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 treasury_goldman_sachs capability. +type AccountCapabilitiesTreasuryGoldmanSachsParams 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 twint_payments capability. type AccountCapabilitiesTWINTPaymentsParams 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. @@ -721,6 +739,12 @@ type AccountCapabilitiesParams struct { Transfers *AccountCapabilitiesTransfersParams `form:"transfers"` // The treasury capability. Treasury *AccountCapabilitiesTreasuryParams `form:"treasury"` + // The treasury_evolve capability. + TreasuryEvolve *AccountCapabilitiesTreasuryEvolveParams `form:"treasury_evolve"` + // The treasury_fifth_third capability. + TreasuryFifthThird *AccountCapabilitiesTreasuryFifthThirdParams `form:"treasury_fifth_third"` + // The treasury_goldman_sachs capability. + TreasuryGoldmanSachs *AccountCapabilitiesTreasuryGoldmanSachsParams `form:"treasury_goldman_sachs"` // The twint_payments capability. TWINTPayments *AccountCapabilitiesTWINTPaymentsParams `form:"twint_payments"` // The us_bank_account_ach_payments capability. @@ -1340,6 +1364,12 @@ type AccountCapabilities struct { Transfers AccountCapabilityStatus `json:"transfers"` // The status of the banking capability, or whether the account can have bank accounts. Treasury AccountCapabilityStatus `json:"treasury"` + // The status of the treasury_evolve capability of the account. + TreasuryEvolve AccountCapabilityStatus `json:"treasury_evolve"` + // The status of the treasury_fifth_third capability of the account. + TreasuryFifthThird AccountCapabilityStatus `json:"treasury_fifth_third"` + // The status of the treasury_goldman_sachs capability of the account. + TreasuryGoldmanSachs AccountCapabilityStatus `json:"treasury_goldman_sachs"` // The status of the TWINT capability of the account, or whether the account can directly process TWINT charges. TWINTPayments AccountCapabilityStatus `json:"twint_payments"` // The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges. diff --git a/treasury_financialaccount.go b/treasury_financialaccount.go index 66f8eea4bf..3474a61a0c 100644 --- a/treasury_financialaccount.go +++ b/treasury_financialaccount.go @@ -144,6 +144,8 @@ type TreasuryFinancialAccountFeaturesDepositInsuranceParams struct { // Adds an ABA FinancialAddress to the FinancialAccount. type TreasuryFinancialAccountFeaturesFinancialAddressesABAParams struct { + // Requested bank partner + Bank *string `form:"bank"` // Whether the FinancialAccount should have the Feature. Requested *bool `form:"requested"` } @@ -295,6 +297,8 @@ type TreasuryFinancialAccountUpdateFeaturesDepositInsuranceParams struct { // Adds an ABA FinancialAddress to the FinancialAccount. type TreasuryFinancialAccountUpdateFeaturesFinancialAddressesABAParams struct { + // Requested bank partner + Bank *string `form:"bank"` // Whether the FinancialAccount should have the Feature. Requested *bool `form:"requested"` } diff --git a/treasury_financialaccountfeatures.go b/treasury_financialaccountfeatures.go index b35cacc694..8f0f05e6b1 100644 --- a/treasury_financialaccountfeatures.go +++ b/treasury_financialaccountfeatures.go @@ -96,6 +96,16 @@ const ( TreasuryFinancialAccountFeaturesDepositInsuranceStatusDetailRestrictionOutboundFlows TreasuryFinancialAccountFeaturesDepositInsuranceStatusDetailRestriction = "outbound_flows" ) +// Requested bank partner for this Financial Account +type TreasuryFinancialAccountFeaturesFinancialAddressesABABank string + +// List of values that TreasuryFinancialAccountFeaturesFinancialAddressesABABank can take +const ( + TreasuryFinancialAccountFeaturesFinancialAddressesABABankEvolve TreasuryFinancialAccountFeaturesFinancialAddressesABABank = "evolve" + TreasuryFinancialAccountFeaturesFinancialAddressesABABankFifthThird TreasuryFinancialAccountFeaturesFinancialAddressesABABank = "fifth_third" + TreasuryFinancialAccountFeaturesFinancialAddressesABABankGoldmanSachs TreasuryFinancialAccountFeaturesFinancialAddressesABABank = "goldman_sachs" +) + // Whether the Feature is operational. type TreasuryFinancialAccountFeaturesFinancialAddressesABAStatus string @@ -463,6 +473,8 @@ type TreasuryFinancialAccountFeaturesFinancialAddressesABAStatusDetail struct { // Toggle settings for enabling/disabling the ABA address feature type TreasuryFinancialAccountFeaturesFinancialAddressesABA struct { + // Requested bank partner for this Financial Account + Bank TreasuryFinancialAccountFeaturesFinancialAddressesABABank `json:"bank"` // Whether the FinancialAccount should have the Feature. Requested bool `json:"requested"` // Whether the Feature is operational.