diff --git a/accounts/common.go b/accounts/common.go index 9d5cb4a..f961238 100644 --- a/accounts/common.go +++ b/accounts/common.go @@ -25,9 +25,10 @@ type ( } Profile struct { - Urls []string `json:"urls,omitempty"` - Mccs []string `json:"mccs,omitempty"` - DefaultHoldingCurrency common.Currency `json:"default_holding_currency,omitempty"` + Urls []string `json:"urls,omitempty"` + Mccs []string `json:"mccs,omitempty"` + DefaultHoldingCurrency common.Currency `json:"default_holding_currency,omitempty"` + HoldingCurrencies []common.Currency `json:"holding_currencies,omitempty"` } Company struct { diff --git a/common/files.go b/common/files.go index fc0a967..d2dc00b 100644 --- a/common/files.go +++ b/common/files.go @@ -23,9 +23,11 @@ const ( // Accounts BankVerification Purpose = "bank_verification" + Identification Purpose = "identification" IdentityVerification Purpose = "identity_verification" CompanyVerification Purpose = "company_verification" FinancialVerification Purpose = "financial_verification" + TaxVerification Purpose = "tax_verification" ) type ( diff --git a/metadata/metadata.go b/metadata/metadata.go index 968836a..bb307e5 100644 --- a/metadata/metadata.go +++ b/metadata/metadata.go @@ -20,9 +20,14 @@ const ( type SchemeLocalType string const ( + Accel SchemeLocalType = "accel" CartesBancaires SchemeLocalType = "cartes_bancaires" Mada SchemeLocalType = "mada" - Omannet SchemeLocalType = "Omannet" + Nyce SchemeLocalType = "nyce" + Omannet SchemeLocalType = "omannet" + Pulse SchemeLocalType = "pulse" + Star SchemeLocalType = "star" + Upi SchemeLocalType = "upi" ) type PayoutsTransactionsType string @@ -51,18 +56,42 @@ type ( CrossBorderMoneyTransfer PayoutsTransactionsType `json:"cross_border_money_transfer,omitempty"` } + PinlessDebitSchemeMetadata struct { + NetworkId string `json:"network_id,omitempty"` + NetworkDescription string `json:"network_description,omitempty"` + BillPayIndicator bool `json:"bill_pay_indicator,omitempty"` + EcommerceIndicator bool `json:"ecommerce_indicator,omitempty"` + InterchangeFeeIndicator string `json:"interchange_fee_indicator,omitempty"` + MoneyTransferIndicator bool `json:"money_transfer_indicator,omitempty"` + TokenIndicator bool `json:"token_indicator,omitempty"` + } + + SchemeMetadata struct { + Accel *PinlessDebitSchemeMetadata `json:"accel,omitempty"` + Pulse *PinlessDebitSchemeMetadata `json:"pulse,omitempty"` + Nyce *PinlessDebitSchemeMetadata `json:"nyce,omitempty"` + Star *PinlessDebitSchemeMetadata `json:"star,omitempty"` + } + CardMetadataResponse struct { - HttpMetadata common.HttpMetadata `json:"http_metadata,omitempty"` - Bin string `json:"bin,omitempty"` - Scheme string `json:"scheme,omitempty"` - SchemeLocal SchemeLocalType `json:"scheme_local,omitempty"` - CardType common.CardType `json:"card_type,omitempty"` - CardCategory common.CardCategory `json:"card_category,omitempty"` - Issuer string `json:"issuer,omitempty"` - IssuerCountry common.Country `json:"issuer_country,omitempty"` - IssuerCountryName string `json:"issuer_country_name,omitempty"` - ProductId string `json:"product_id,omitempty"` - ProductType string `json:"product_type,omitempty"` - CardPayouts *CardMetadataPayouts `json:"card_payouts,omitempty"` + HttpMetadata common.HttpMetadata `json:"http_metadata,omitempty"` + Bin string `json:"bin,omitempty"` + Scheme string `json:"scheme,omitempty"` + // Deprecated: This property will be removed in the future, and should not be used. Use LocalSchemes instead. + SchemeLocal SchemeLocalType `json:"scheme_local,omitempty"` + LocalSchemes SchemeLocalType `json:"local_schemes,omitempty"` + CardType common.CardType `json:"card_type,omitempty"` + CardCategory common.CardCategory `json:"card_category,omitempty"` + Currency common.Currency `json:"currency,omitempty"` + Issuer string `json:"issuer,omitempty"` + IssuerCountry common.Country `json:"issuer_country,omitempty"` + IssuerCountryName string `json:"issuer_country_name,omitempty"` + ProductId string `json:"product_id,omitempty"` + ProductType string `json:"product_type,omitempty"` + SubproductId string `json:"subproduct_id,omitempty"` + RegulatedIndicator bool `json:"regulated_indicator,omitempty"` + RegulatedType string `json:"regulated_type,omitempty"` + CardPayouts *CardMetadataPayouts `json:"card_payouts,omitempty"` + SchemeMetadata *SchemeMetadata `json:"scheme_metadata,omitempty"` } )