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
,StripeObjectInterface
public class CountrySpec extends ApiResource implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CountrySpec.VerificationFields
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description CountrySpec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getDefaultCurrency()
The default currency for this country.java.lang.String
getId()
Unique identifier for the object.java.lang.String
getObject()
String representing the object's type.java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getSupportedBankAccountCurrencies()
Currencies that can be accepted in the specific country (for transfers).java.util.List<java.lang.String>
getSupportedPaymentCurrencies()
Currencies that can be accepted in the specified country (for payments).java.util.List<java.lang.String>
getSupportedPaymentMethods()
Payment methods available in the specified country.java.util.List<java.lang.String>
getSupportedTransferCountries()
Countries that can accept transfers from the specified country.CountrySpec.VerificationFields
getVerificationFields()
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
list(java.util.Map<java.lang.String,java.lang.Object> params)
Lists all Country Spec objects available in the API.static CountrySpecCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Lists all Country Spec objects available in the API.static CountrySpec
retrieve(java.lang.String country)
Returns a Country Spec for a given Country code.static CountrySpec
retrieve(java.lang.String country, RequestOptions options)
Returns a Country Spec for a given Country code.static CountrySpec
retrieve(java.lang.String country, CountrySpecRetrieveParams params, RequestOptions options)
Returns a Country Spec for a given Country code.static CountrySpec
retrieve(java.lang.String country, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a Country Spec for a given Country code.void
setDefaultCurrency(java.lang.String defaultCurrency)
The default currency for this country.void
setId(java.lang.String id)
Unique identifier for the object.void
setObject(java.lang.String object)
String representing the object's type.void
setSupportedBankAccountCurrencies(java.util.Map<java.lang.String,java.util.List<java.lang.String>> supportedBankAccountCurrencies)
Currencies that can be accepted in the specific country (for transfers).void
setSupportedPaymentCurrencies(java.util.List<java.lang.String> supportedPaymentCurrencies)
Currencies that can be accepted in the specified country (for payments).void
setSupportedPaymentMethods(java.util.List<java.lang.String> supportedPaymentMethods)
Payment methods available in the specified country.void
setSupportedTransferCountries(java.util.List<java.lang.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, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
list
public static CountrySpecCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Lists all Country Spec objects available in the API.- Throws:
StripeException
-
list
public static CountrySpecCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Lists all Country Spec objects available in the API.- Throws:
StripeException
-
list
public static CountrySpecCollection list(CountrySpecListParams params) throws StripeException
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
public static CountrySpec retrieve(java.lang.String country) throws StripeException
Returns a Country Spec for a given Country code.- Throws:
StripeException
-
retrieve
public static CountrySpec retrieve(java.lang.String country, RequestOptions options) throws StripeException
Returns a Country Spec for a given Country code.- Throws:
StripeException
-
retrieve
public static CountrySpec retrieve(java.lang.String country, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a Country Spec for a given Country code.- Throws:
StripeException
-
retrieve
public static CountrySpec retrieve(java.lang.String country, CountrySpecRetrieveParams params, RequestOptions options) throws StripeException
Returns a Country Spec for a given Country code.- Throws:
StripeException
-
getDefaultCurrency
public java.lang.String getDefaultCurrency()
The default currency for this country. This applies to both payment methods and bank accounts.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
country_spec
.
-
getSupportedBankAccountCurrencies
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getSupportedBankAccountCurrencies()
Currencies that can be accepted in the specific country (for transfers).
-
getSupportedPaymentCurrencies
public java.util.List<java.lang.String> getSupportedPaymentCurrencies()
Currencies that can be accepted in the specified country (for payments).
-
getSupportedPaymentMethods
public java.util.List<java.lang.String> 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
public java.util.List<java.lang.String> getSupportedTransferCountries()
Countries that can accept transfers from the specified country.
-
getVerificationFields
public CountrySpec.VerificationFields getVerificationFields()
-
setDefaultCurrency
public void setDefaultCurrency(java.lang.String defaultCurrency)
The default currency for this country. This applies to both payment methods and bank accounts.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object. Represented as the ISO country code for this country.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
country_spec
.
-
setSupportedBankAccountCurrencies
public void setSupportedBankAccountCurrencies(java.util.Map<java.lang.String,java.util.List<java.lang.String>> supportedBankAccountCurrencies)
Currencies that can be accepted in the specific country (for transfers).
-
setSupportedPaymentCurrencies
public void setSupportedPaymentCurrencies(java.util.List<java.lang.String> supportedPaymentCurrencies)
Currencies that can be accepted in the specified country (for payments).
-
setSupportedPaymentMethods
public void setSupportedPaymentMethods(java.util.List<java.lang.String> supportedPaymentMethods)
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
public void setSupportedTransferCountries(java.util.List<java.lang.String> supportedTransferCountries)
Countries that can accept transfers from the specified country.
-
setVerificationFields
public void setVerificationFields(CountrySpec.VerificationFields verificationFields)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-