Skip to content

Commit

Permalink
Update generated code for v1279
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 8, 2024
1 parent bff33a5 commit e8f4b4f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1278
v1279
30 changes: 30 additions & 0 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions treasury_financialaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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"`
}
Expand Down
12 changes: 12 additions & 0 deletions treasury_financialaccountfeatures.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e8f4b4f

Please sign in to comment.