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 ClassesModifier and TypeClassDescriptionstatic classFor more details about VerificationFields, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe 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.inthashCode()static CountrySpecCollectionlist(CountrySpecListParams params) Lists all Country Spec objects available in the API.static CountrySpecCollectionlist(CountrySpecListParams params, RequestOptions options) Lists all Country Spec objects available in the API.static CountrySpecCollectionLists all Country Spec objects available in the API.static CountrySpecCollectionlist(Map<String, Object> params, RequestOptions options) Lists all Country Spec objects available in the API.static CountrySpecReturns a Country Spec for a given Country code.static CountrySpecretrieve(String country, RequestOptions options) Returns a Country Spec for a given Country code.static CountrySpecretrieve(String country, CountrySpecRetrieveParams params, RequestOptions options) Returns a Country Spec for a given Country code.static CountrySpecReturns a Country Spec for a given Country code.voidsetDefaultCurrency(String defaultCurrency) The default currency for this country.voidUnique identifier for the object.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Fields which every account must eventually provide.voidsetSupportedBankAccountCurrencies(Map<String, List<String>> supportedBankAccountCurrencies) Currencies that can be accepted in the specific country (for transfers).voidsetSupportedPaymentCurrencies(List<String> supportedPaymentCurrencies) Currencies that can be accepted in the specified country (for payments).voidsetSupportedPaymentMethods(List<String> supportedPaymentMethods) Payment methods available in the specified country.voidsetSupportedTransferCountries(List<String> supportedTransferCountries) Countries that can accept transfers from the specified country.voidsetVerificationFields(CountrySpec.VerificationFields verificationFields) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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. Thestripepayment 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. Thestripepayment 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.
-