This repository has been archived by the owner on Dec 27, 2018. It is now read-only.
forked from stripe/stripe-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
countryspec.go
39 lines (33 loc) · 1.71 KB
/
countryspec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package stripe
// Country is the list of supported countries
type Country string
// VerificationFieldsList lists the fields needed for an account verification.
// For more details see https://stripe.com/docs/api#country_spec_object-verification_fields.
type VerificationFieldsList struct {
AdditionalFields []string `json:"additional"`
Minimum []string `json:"minimum"`
}
// CountrySpec is the resource representing the rules required for a Stripe account.
// For more details see https://stripe.com/docs/api/#country_specs.
type CountrySpec struct {
DefaultCurrency Currency `json:"default_currency"`
ID string `json:"id"`
SupportedBankAccountCurrencies map[Currency][]Country `json:"supported_bank_account_currencies"`
SupportedPaymentCurrencies []Currency `json:"supported_payment_currencies"`
SupportedPaymentMethods []string `json:"supported_payment_methods"`
SupportedTransferCountries []string `json:"supported_transfer_countries"`
VerificationFields map[LegalEntityType]*VerificationFieldsList `json:"verification_fields"`
}
// CountrySpecParams are the parameters allowed during CountrySpec retrieval.
type CountrySpecParams struct {
Params `form:"*"`
}
// CountrySpecList is a list of country specs as retrieved from a list endpoint.
type CountrySpecList struct {
ListMeta
Data []*CountrySpec `json:"data"`
}
// CountrySpecListParams are the parameters allowed during CountrySpec listing.
type CountrySpecListParams struct {
ListParams `form:"*"`
}