public class ExchangeRate extends ApiResource implements HasId
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
ExchangeRate() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
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.math.BigDecimal> |
getRates()
Hash where the keys are supported currencies and the values are the exchange rate at which the
base id currency converts to the key currency.
|
int |
hashCode() |
static ExchangeRateCollection |
list(ExchangeRateListParams params)
Returns a list of objects that contain the rates at which foreign currencies are converted to
one another.
|
static ExchangeRateCollection |
list(ExchangeRateListParams params,
RequestOptions options)
Returns a list of objects that contain the rates at which foreign currencies are converted to
one another.
|
static ExchangeRateCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of objects that contain the rates at which foreign currencies are converted to
one another.
|
static ExchangeRateCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of objects that contain the rates at which foreign currencies are converted to
one another.
|
static ExchangeRate |
retrieve(java.lang.String currency)
Retrieves the exchange rates from the given currency to every supported currency.
|
static ExchangeRate |
retrieve(java.lang.String currency,
ExchangeRateRetrieveParams params,
RequestOptions options)
Retrieves the exchange rates from the given currency to every supported currency.
|
static ExchangeRate |
retrieve(java.lang.String currency,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the exchange rates from the given currency to every supported currency.
|
static ExchangeRate |
retrieve(java.lang.String currency,
RequestOptions options)
Retrieves the exchange rates from the given currency to every supported currency.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setRates(java.util.Map<java.lang.String,java.math.BigDecimal> rates)
Hash where the keys are supported currencies and the values are the exchange rate at which the
base id currency converts to the key currency.
|
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 ExchangeRateCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static ExchangeRateCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static ExchangeRateCollection list(ExchangeRateListParams params) throws StripeException
StripeException
public static ExchangeRateCollection list(ExchangeRateListParams params, RequestOptions options) throws StripeException
StripeException
public static ExchangeRate retrieve(java.lang.String currency) throws StripeException
StripeException
public static ExchangeRate retrieve(java.lang.String currency, RequestOptions options) throws StripeException
StripeException
public static ExchangeRate retrieve(java.lang.String currency, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static ExchangeRate retrieve(java.lang.String currency, ExchangeRateRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.String getObject()
public java.util.Map<java.lang.String,java.math.BigDecimal> getRates()
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setRates(java.util.Map<java.lang.String,java.math.BigDecimal> rates)
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