public class CountrySpec extends ApiResource implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
CountrySpec.VerificationFields |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
CountrySpec() |
Modifier and Type | Method and 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,
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.
|
static CountrySpec |
retrieve(java.lang.String country,
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) |
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public static CountrySpecCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static CountrySpecCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static CountrySpecCollection list(CountrySpecListParams params) throws StripeException
StripeException
public static CountrySpecCollection list(CountrySpecListParams params, RequestOptions options) throws StripeException
StripeException
public static CountrySpec retrieve(java.lang.String country) throws StripeException
StripeException
public static CountrySpec retrieve(java.lang.String country, RequestOptions options) throws StripeException
StripeException
public static CountrySpec retrieve(java.lang.String country, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static CountrySpec retrieve(java.lang.String country, CountrySpecRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.String getDefaultCurrency()
public java.lang.String getObject()
Equal to `country_spec`.
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getSupportedBankAccountCurrencies()
public java.util.List<java.lang.String> getSupportedPaymentCurrencies()
public java.util.List<java.lang.String> getSupportedPaymentMethods()
public java.util.List<java.lang.String> getSupportedTransferCountries()
public CountrySpec.VerificationFields getVerificationFields()
public void setDefaultCurrency(java.lang.String defaultCurrency)
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
Equal to `country_spec`.
public void setSupportedBankAccountCurrencies(java.util.Map<java.lang.String,java.util.List<java.lang.String>> supportedBankAccountCurrencies)
public void setSupportedPaymentCurrencies(java.util.List<java.lang.String> supportedPaymentCurrencies)
public void setSupportedPaymentMethods(java.util.List<java.lang.String> supportedPaymentMethods)
public void setSupportedTransferCountries(java.util.List<java.lang.String> supportedTransferCountries)
public void setVerificationFields(CountrySpec.VerificationFields verificationFields)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object