Package com.stripe.model
Class FxQuote
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.FxQuote
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
The FX Quotes API provides three functions: - View Stripe's current exchange rate for any given
currency pair. - Extend quoted rates for a 1-hour period or a 24-hour period, minimizing
uncertainty from FX fluctuations. - Preview the FX fees Stripe will charge on your FX
transaction, allowing you to anticipate specific settlement amounts before payment costs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about Rate, please refer to the API Reference.static class
For more details about Usage, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static FxQuote
create
(FxQuoteCreateParams params) Creates an FX Quote object.static FxQuote
create
(FxQuoteCreateParams params, RequestOptions options) Creates an FX Quote object.static FxQuote
Creates an FX Quote object.static FxQuote
create
(Map<String, Object> params, RequestOptions options) Creates an FX Quote object.boolean
Time at which the quote was created, measured in seconds since the Unix epoch.getId()
Unique identifier for the object.The duration the exchange rate quote remains valid from creation time.Time at which the quote will expire, measured in seconds since the Unix epoch.Lock status of the quote.String representing the object's type.getRates()
Information about the rates.The currency to convert into, typically this is the currency that you want to settle to your Stripe balance.getUsage()
int
hashCode()
static FxQuoteCollection
list
(FxQuoteListParams params) Returns a list of FX quotes that have been issued.static FxQuoteCollection
list
(FxQuoteListParams params, RequestOptions options) Returns a list of FX quotes that have been issued.static FxQuoteCollection
Returns a list of FX quotes that have been issued.static FxQuoteCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of FX quotes that have been issued.static FxQuote
Retrieve an FX Quote object.static FxQuote
retrieve
(String id, RequestOptions options) Retrieve an FX Quote object.static FxQuote
retrieve
(String id, FxQuoteRetrieveParams params, RequestOptions options) Retrieve an FX Quote object.static FxQuote
Retrieve an FX Quote object.void
setCreated
(Long created) Time at which the quote was created, measured in seconds since the Unix epoch.void
Unique identifier for the object.void
setLockDuration
(String lockDuration) The duration the exchange rate quote remains valid from creation time.void
setLockExpiresAt
(Long lockExpiresAt) Time at which the quote will expire, measured in seconds since the Unix epoch.void
setLockStatus
(String lockStatus) Lock status of the quote.void
String representing the object's type.void
setRates
(Map<String, FxQuote.Rate> rates) Information about the rates.void
setResponseGetter
(StripeResponseGetter responseGetter) The Stripe account ID that the funds will be transferred to.void
setToCurrency
(String toCurrency) The currency to convert into, typically this is the currency that you want to settle to your Stripe balance.void
setUsage
(FxQuote.Usage usage) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
FxQuote
public FxQuote()
-
-
Method Details
-
create
Creates an FX Quote object.- Throws:
StripeException
-
create
public static FxQuote create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an FX Quote object.- Throws:
StripeException
-
create
Creates an FX Quote object.- Throws:
StripeException
-
create
public static FxQuote create(FxQuoteCreateParams params, RequestOptions options) throws StripeException Creates an FX Quote object.- Throws:
StripeException
-
list
Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.- Throws:
StripeException
-
list
public static FxQuoteCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.- Throws:
StripeException
-
list
Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.- Throws:
StripeException
-
list
public static FxQuoteCollection list(FxQuoteListParams params, RequestOptions options) throws StripeException Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.- Throws:
StripeException
-
retrieve
Retrieve an FX Quote object.- Throws:
StripeException
-
retrieve
Retrieve an FX Quote object.- Throws:
StripeException
-
retrieve
public static FxQuote retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve an FX Quote object.- Throws:
StripeException
-
retrieve
public static FxQuote retrieve(String id, FxQuoteRetrieveParams params, RequestOptions options) throws StripeException Retrieve an FX Quote object.- Throws:
StripeException
-
setResponseGetter
The Stripe account ID that the funds will be transferred to.This field should match the account ID that would be used in the Transfer’s destination field.
- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getCreated
Time at which the quote was created, measured in seconds since the Unix epoch. -
getLockDuration
The duration the exchange rate quote remains valid from creation time. Allowed values are none, hour, and day. Note that for the test mode API available in alpha, you can request an extended quote, but it won't be usable for any transactions.One of
day
,five_minutes
,hour
, ornone
. -
getLockExpiresAt
Time at which the quote will expire, measured in seconds since the Unix epoch.If lock_duration is set to ‘none’ this field will be set to null.
-
getLockStatus
Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp.Can return value none, active, or expired.
One of
active
,expired
, ornone
. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
fx_quote
. -
getRates
Information about the rates. -
getToCurrency
The currency to convert into, typically this is the currency that you want to settle to your Stripe balance. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getUsage
-
setCreated
Time at which the quote was created, measured in seconds since the Unix epoch. -
setId
Unique identifier for the object. -
setLockDuration
The duration the exchange rate quote remains valid from creation time. Allowed values are none, hour, and day. Note that for the test mode API available in alpha, you can request an extended quote, but it won't be usable for any transactions.One of
day
,five_minutes
,hour
, ornone
. -
setLockExpiresAt
Time at which the quote will expire, measured in seconds since the Unix epoch.If lock_duration is set to ‘none’ this field will be set to null.
-
setLockStatus
Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp.Can return value none, active, or expired.
One of
active
,expired
, ornone
. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
fx_quote
. -
setRates
Information about the rates. -
setToCurrency
The currency to convert into, typically this is the currency that you want to settle to your Stripe balance. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setUsage
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-