Package com.stripe.model
Class ExchangeRate
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.ExchangeRate
-
- All Implemented Interfaces:
HasId
,StripeObjectInterface
public class ExchangeRate extends ApiResource implements HasId
-
-
Nested Class Summary
-
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 ExchangeRate()
-
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
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 rateId)
Retrieves the exchange rates from the given currency to every supported currency.static ExchangeRate
retrieve(java.lang.String rateId, RequestOptions options)
Retrieves the exchange rates from the given currency to every supported currency.static ExchangeRate
retrieve(java.lang.String rateId, ExchangeRateRetrieveParams params, RequestOptions options)
Retrieves the exchange rates from the given currency to every supported currency.static ExchangeRate
retrieve(java.lang.String rateId, java.util.Map<java.lang.String,java.lang.Object> params, 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.-
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 ExchangeRateCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.- Throws:
StripeException
-
list
public static ExchangeRateCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.- Throws:
StripeException
-
list
public static ExchangeRateCollection list(ExchangeRateListParams params) throws StripeException
Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.- Throws:
StripeException
-
list
public static ExchangeRateCollection list(ExchangeRateListParams params, RequestOptions options) throws StripeException
Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.- Throws:
StripeException
-
retrieve
public static ExchangeRate retrieve(java.lang.String rateId) throws StripeException
Retrieves the exchange rates from the given currency to every supported currency.- Throws:
StripeException
-
retrieve
public static ExchangeRate retrieve(java.lang.String rateId, RequestOptions options) throws StripeException
Retrieves the exchange rates from the given currency to every supported currency.- Throws:
StripeException
-
retrieve
public static ExchangeRate retrieve(java.lang.String rateId, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves the exchange rates from the given currency to every supported currency.- Throws:
StripeException
-
retrieve
public static ExchangeRate retrieve(java.lang.String rateId, ExchangeRateRetrieveParams params, RequestOptions options) throws StripeException
Retrieves the exchange rates from the given currency to every supported currency.- Throws:
StripeException
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
exchange_rate
.
-
getRates
public 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.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object. Represented as the three-letter ISO currency code in lowercase.
-
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
exchange_rate
.
-
setRates
public 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.
-
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
-
getId
public java.lang.String getId()
Unique identifier for the object. Represented as the three-letter ISO currency code in lowercase.
-
-