Skip to content

Commit

Permalink
add card_issuing.tos_acceptance to account.go (#1270)
Browse files Browse the repository at this point in the history
* add card_issuing.tos_acceptance to account.go
  • Loading branch information
richardm-stripe authored Mar 26, 2021
1 parent 5d5913a commit 0b57984
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ type AccountSettingsBrandingParams struct {
SecondaryColor *string `form:"secondary_color"`
}

// AccountSettingsCardIssuingParams represent allowed parameters relating to the acceptance of the terms of service agreement.
type AccountSettingsCardIssuingParams struct {
TOSAcceptance *AccountTOSAcceptanceParams `form:"tos_acceptance"`
}

// AccountSettingsBACSDebitPaymentsParams represent allowed parameters to configure settings specific to
// BACS Debit charging on the account.
type AccountSettingsBACSDebitPaymentsParams struct {
Expand Down Expand Up @@ -430,6 +435,7 @@ type AccountSettingsPayoutsParams struct {
type AccountSettingsParams struct {
BACSDebitPayments *AccountSettingsBACSDebitPaymentsParams `form:"bacs_debit_payments"`
Branding *AccountSettingsBrandingParams `form:"branding"`
CardIssuing *AccountSettingsCardIssuingParams `form:"card_issuing"`
CardPayments *AccountSettingsCardPaymentsParams `form:"card_payments"`
Dashboard *AccountSettingsDashboardParams `form:"dashboard"`
Payments *AccountSettingsPaymentsParams `form:"payments"`
Expand Down Expand Up @@ -648,6 +654,11 @@ type AccountSettingsBranding struct {
SecondaryColor string `json:"secondary_color"`
}

// AccountSettingsCardIssuing represents settings specific to card issuing on the account.
type AccountSettingsCardIssuing struct {
TOSAcceptance *AccountTOSAcceptance `json:"tos_acceptance"`
}

// AccountSettingsCardPayments represents settings specific to card charging on the account.
type AccountSettingsCardPayments struct {
DeclineOn *AccountDeclineOn `json:"decline_on"`
Expand Down Expand Up @@ -686,6 +697,7 @@ type AccountSettings struct {
BACSDebitPayments *AccountSettingsBACSDebitPayments `json:"bacs_debit_payments"`
Branding *AccountSettingsBranding `json:"branding"`
CardPayments *AccountSettingsCardPayments `json:"card_payments"`
CardIssuing *AccountSettingsCardIssuing `json:"card_issuing"`
Dashboard *AccountSettingsDashboard `json:"dashboard"`
Payments *AccountSettingsPayments `json:"payments"`
Payouts *AccountSettingsPayouts `json:"payouts"`
Expand Down

0 comments on commit 0b57984

Please sign in to comment.