Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CartesBancairesPayments as a Capability #1140

Merged
merged 1 commit into from
Jul 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 35 additions & 27 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ type AccountCapability string

// List of values that AccountCapability can take.
const (
AccountCapabilityAUBECSDebitPayments AccountCapability = "au_becs_debit_payments"
AccountCapabilityBACSDebitPayments AccountCapability = "bacs_debit_payments"
AccountCapabilityCardIssuing AccountCapability = "card_issuing"
AccountCapabilityCardPayments AccountCapability = "card_payments"
AccountCapabilityJCBPayments AccountCapability = "jcb_payments"
AccountCapabilityLegacyPayments AccountCapability = "legacy_payments"
AccountCapabilityTaxReportingUS1099K AccountCapability = "tax_reporting_us_1099_k"
AccountCapabilityTaxReportingUS1099MISC AccountCapability = "tax_reporting_us_1099_misc"
AccountCapabilityTransfers AccountCapability = "transfers"
AccountCapabilityAUBECSDebitPayments AccountCapability = "au_becs_debit_payments"
AccountCapabilityBACSDebitPayments AccountCapability = "bacs_debit_payments"
AccountCapabilityCardIssuing AccountCapability = "card_issuing"
AccountCapabilityCardPayments AccountCapability = "card_payments"
AccountCapabilityCartesBancairesPayments AccountCapability = "cartes_bancaires_payments"
AccountCapabilityJCBPayments AccountCapability = "jcb_payments"
AccountCapabilityLegacyPayments AccountCapability = "legacy_payments"
AccountCapabilityTaxReportingUS1099K AccountCapability = "tax_reporting_us_1099_k"
AccountCapabilityTaxReportingUS1099MISC AccountCapability = "tax_reporting_us_1099_misc"
AccountCapabilityTransfers AccountCapability = "transfers"
)

// AccountCapabilityStatus is the status a given capability can have
Expand Down Expand Up @@ -170,6 +171,11 @@ type AccountCapabilitiesCardPaymentsParams struct {
Requested *bool `form:"requested"`
}

// AccountCapabilitiesCartesBancairesPaymentsParams represent allowed parameters to configure the Cartes Bancaires payments capability on an account.
type AccountCapabilitiesCartesBancairesPaymentsParams struct {
Requested *bool `form:"requested"`
}

// AccountCapabilitiesJCBPaymentsParams represent allowed parameters to configure the JCB payments capability on an account.
type AccountCapabilitiesJCBPaymentsParams struct {
Requested *bool `form:"requested"`
Expand Down Expand Up @@ -197,15 +203,16 @@ type AccountCapabilitiesTransfersParams struct {

// AccountCapabilitiesParams represent allowed parameters to configure capabilities on an account.
type AccountCapabilitiesParams struct {
AUBECSDebitPayments *AccountCapabilitiesAUBECSDebitPaymentsParams `form:"au_becs_debit_payments"`
BACSDebitPayments *AccountCapabilitiesBACSDebitPaymentsParams `form:"bacs_debit_payments"`
CardIssuing *AccountCapabilitiesCardIssuingParams `form:"card_issuing"`
CardPayments *AccountCapabilitiesCardPaymentsParams `form:"card_payments"`
JCBPayments *AccountCapabilitiesJCBPaymentsParams `form:"jcb_payments"`
LegacyPayments *AccountCapabilitiesLegacyPaymentsParams `form:"legacy_payments"`
TaxReportingUS1099K *AccountCapabilitiesTaxReportingUS1099KParams `form:"tax_reporting_us_1099_k"`
TaxReportingUS1099MISC *AccountCapabilitiesTaxReportingUS1099MISCParams `form:"tax_reporting_us_1099_misc"`
Transfers *AccountCapabilitiesTransfersParams `form:"transfers"`
AUBECSDebitPayments *AccountCapabilitiesAUBECSDebitPaymentsParams `form:"au_becs_debit_payments"`
BACSDebitPayments *AccountCapabilitiesBACSDebitPaymentsParams `form:"bacs_debit_payments"`
CardIssuing *AccountCapabilitiesCardIssuingParams `form:"card_issuing"`
CardPayments *AccountCapabilitiesCardPaymentsParams `form:"card_payments"`
CartesBancairesPayments *AccountCapabilitiesCartesBancairesPaymentsParams `form:"cartes_bancaires_payments"`
JCBPayments *AccountCapabilitiesJCBPaymentsParams `form:"jcb_payments"`
LegacyPayments *AccountCapabilitiesLegacyPaymentsParams `form:"legacy_payments"`
TaxReportingUS1099K *AccountCapabilitiesTaxReportingUS1099KParams `form:"tax_reporting_us_1099_k"`
TaxReportingUS1099MISC *AccountCapabilitiesTaxReportingUS1099MISCParams `form:"tax_reporting_us_1099_misc"`
Transfers *AccountCapabilitiesTransfersParams `form:"transfers"`
}

// AccountCompanyVerificationDocumentParams are the parameters allowed to pass for a document
Expand Down Expand Up @@ -410,15 +417,16 @@ type AccountBusinessProfile struct {

// AccountCapabilities is the resource representing the capabilities enabled on that account.
type AccountCapabilities struct {
AUBECSDebitPayments AccountCapabilityStatus `json:"au_becs_debit_payments"`
BACSDebitPayments AccountCapabilityStatus `json:"bacs_debit_payments"`
CardIssuing AccountCapabilityStatus `json:"card_issuing"`
CardPayments AccountCapabilityStatus `json:"card_payments"`
JCBPayments AccountCapabilityStatus `json:"jcb_payments"`
LegacyPayments AccountCapabilityStatus `json:"legacy_payments"`
TaxReportingUS1099K AccountCapabilityStatus `json:"tax_reporting_us_1099_k"`
TaxReportingUS1099MISC AccountCapabilityStatus `json:"tax_reporting_us_1099_misc"`
Transfers AccountCapabilityStatus `json:"transfers"`
AUBECSDebitPayments AccountCapabilityStatus `json:"au_becs_debit_payments"`
BACSDebitPayments AccountCapabilityStatus `json:"bacs_debit_payments"`
CardIssuing AccountCapabilityStatus `json:"card_issuing"`
CardPayments AccountCapabilityStatus `json:"card_payments"`
CartesBancairesPayments AccountCapabilityStatus `json:"cartes_bancaires_payments"`
JCBPayments AccountCapabilityStatus `json:"jcb_payments"`
LegacyPayments AccountCapabilityStatus `json:"legacy_payments"`
TaxReportingUS1099K AccountCapabilityStatus `json:"tax_reporting_us_1099_k"`
TaxReportingUS1099MISC AccountCapabilityStatus `json:"tax_reporting_us_1099_misc"`
Transfers AccountCapabilityStatus `json:"transfers"`
}

// AccountCompanyVerificationDocument represents details about a company's verification state.
Expand Down