Package com.stripe.model
Class CountrySpec
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.CountrySpec
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Stripe needs to collect certain pieces of information about each account created. These
requirements can differ depending on the account's country. The Country Specs API makes these
rules available to your integration.
You can also view the information from this API call as an online guide.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The default currency for this country.getId()
Unique identifier for the object.String representing the object's type.Currencies that can be accepted in the specific country (for transfers).Currencies that can be accepted in the specified country (for payments).Payment methods available in the specified country.Countries that can accept transfers from the specified country.int
hashCode()
static CountrySpecCollection
list
(CountrySpecListParams params) Lists all Country Spec objects available in the API.static CountrySpecCollection
list
(CountrySpecListParams params, RequestOptions options) Lists all Country Spec objects available in the API.static CountrySpecCollection
Lists all Country Spec objects available in the API.static CountrySpecCollection
list
(Map<String, Object> params, RequestOptions options) Lists all Country Spec objects available in the API.static CountrySpec
Returns a Country Spec for a given Country code.static CountrySpec
retrieve
(String country, RequestOptions options) Returns a Country Spec for a given Country code.static CountrySpec
retrieve
(String country, CountrySpecRetrieveParams params, RequestOptions options) Returns a Country Spec for a given Country code.static CountrySpec
Returns a Country Spec for a given Country code.void
setDefaultCurrency
(String defaultCurrency) The default currency for this country.void
Unique identifier for the object.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Fields which every account must eventually provide.void
setSupportedBankAccountCurrencies
(Map<String, List<String>> supportedBankAccountCurrencies) Currencies that can be accepted in the specific country (for transfers).void
setSupportedPaymentCurrencies
(List<String> supportedPaymentCurrencies) Currencies that can be accepted in the specified country (for payments).void
setSupportedPaymentMethods
(List<String> supportedPaymentMethods) Payment methods available in the specified country.void
setSupportedTransferCountries
(List<String> supportedTransferCountries) Countries that can accept transfers from the specified country.void
setVerificationFields
(CountrySpec.VerificationFields verificationFields) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
CountrySpec
public CountrySpec()
-
-
Method Details
-
list
Lists all Country Spec objects available in the API.- Throws:
StripeException
-
list
public static CountrySpecCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all Country Spec objects available in the API.- Throws:
StripeException
-
list
Lists all Country Spec objects available in the API.- Throws:
StripeException
-
list
public static CountrySpecCollection list(CountrySpecListParams params, RequestOptions options) throws StripeException Lists all Country Spec objects available in the API.- Throws:
StripeException
-
retrieve
Returns a Country Spec for a given Country code.- Throws:
StripeException
-
retrieve
Returns a Country Spec for a given Country code.- Throws:
StripeException
-
retrieve
public static CountrySpec retrieve(String country, Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a Country Spec for a given Country code.- Throws:
StripeException
-
retrieve
public static CountrySpec retrieve(String country, CountrySpecRetrieveParams params, RequestOptions options) throws StripeException Returns a Country Spec for a given Country code.- Throws:
StripeException
-
setResponseGetter
Fields which every account must eventually provide.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getDefaultCurrency
The default currency for this country. This applies to both payment methods and bank accounts. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
country_spec
. -
getSupportedBankAccountCurrencies
Currencies that can be accepted in the specific country (for transfers). -
getSupportedPaymentCurrencies
Currencies that can be accepted in the specified country (for payments). -
getSupportedPaymentMethods
Payment methods available in the specified country. You may need to enable some payment methods (e.g., ACH) on your account before they appear in this list. Thestripe
payment method refers to charging through your platform. -
getSupportedTransferCountries
Countries that can accept transfers from the specified country. -
getVerificationFields
-
setDefaultCurrency
The default currency for this country. This applies to both payment methods and bank accounts. -
setId
Unique identifier for the object. Represented as the ISO country code for this country. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
country_spec
. -
setSupportedBankAccountCurrencies
public void setSupportedBankAccountCurrencies(Map<String, List<String>> supportedBankAccountCurrencies) Currencies that can be accepted in the specific country (for transfers). -
setSupportedPaymentCurrencies
Currencies that can be accepted in the specified country (for payments). -
setSupportedPaymentMethods
Payment methods available in the specified country. You may need to enable some payment methods (e.g., ACH) on your account before they appear in this list. Thestripe
payment method refers to charging through your platform. -
setSupportedTransferCountries
Countries that can accept transfers from the specified country. -
setVerificationFields
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. Represented as the ISO country code for this country.
-