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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about VerificationFields, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
CountrySpecpublic CountrySpec()
 
- 
- 
Method Details- 
listLists all Country Spec objects available in the API.- Throws:
- StripeException
 
- 
listpublic static CountrySpecCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all Country Spec objects available in the API.- Throws:
- StripeException
 
- 
listLists all Country Spec objects available in the API.- Throws:
- StripeException
 
- 
listpublic static CountrySpecCollection list(CountrySpecListParams params, RequestOptions options) throws StripeException Lists all Country Spec objects available in the API.- Throws:
- StripeException
 
- 
retrieveReturns a Country Spec for a given Country code.- Throws:
- StripeException
 
- 
retrieveReturns a Country Spec for a given Country code.- Throws:
- StripeException
 
- 
retrievepublic static CountrySpec retrieve(String country, Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a Country Spec for a given Country code.- Throws:
- StripeException
 
- 
retrievepublic static CountrySpec retrieve(String country, CountrySpecRetrieveParams params, RequestOptions options) throws StripeException Returns a Country Spec for a given Country code.- Throws:
- StripeException
 
- 
setResponseGetterFields which every account must eventually provide.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getDefaultCurrencyThe default currency for this country. This applies to both payment methods and bank accounts.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to country_spec.
- 
getSupportedBankAccountCurrenciesCurrencies that can be accepted in the specific country (for transfers).
- 
getSupportedPaymentCurrenciesCurrencies that can be accepted in the specified country (for payments).
- 
getSupportedPaymentMethodsPayment 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.
- 
getSupportedTransferCountriesCountries that can accept transfers from the specified country.
- 
getVerificationFields
- 
setDefaultCurrencyThe default currency for this country. This applies to both payment methods and bank accounts.
- 
setIdUnique identifier for the object. Represented as the ISO country code for this country.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to country_spec.
- 
setSupportedBankAccountCurrenciespublic void setSupportedBankAccountCurrencies(Map<String, List<String>> supportedBankAccountCurrencies) Currencies that can be accepted in the specific country (for transfers).
- 
setSupportedPaymentCurrenciesCurrencies that can be accepted in the specified country (for payments).
- 
setSupportedPaymentMethodsPayment 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.
- 
setSupportedTransferCountriesCountries that can accept transfers from the specified country.
- 
setVerificationFields
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object. Represented as the ISO country code for this country.
 
-