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 classFor more details about Rate, please refer to the API Reference.static classFor 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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic FxQuotecreate(FxQuoteCreateParams params) Creates an FX Quote object.static FxQuotecreate(FxQuoteCreateParams params, RequestOptions options) Creates an FX Quote object.static FxQuoteCreates an FX Quote object.static FxQuotecreate(Map<String, Object> params, RequestOptions options) Creates an FX Quote object.booleanTime 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()inthashCode()static FxQuoteCollectionlist(FxQuoteListParams params) Returns a list of FX quotes that have been issued.static FxQuoteCollectionlist(FxQuoteListParams params, RequestOptions options) Returns a list of FX quotes that have been issued.static FxQuoteCollectionReturns a list of FX quotes that have been issued.static FxQuoteCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of FX quotes that have been issued.static FxQuoteRetrieve an FX Quote object.static FxQuoteretrieve(String id, RequestOptions options) Retrieve an FX Quote object.static FxQuoteretrieve(String id, FxQuoteRetrieveParams params, RequestOptions options) Retrieve an FX Quote object.static FxQuoteRetrieve an FX Quote object.voidsetCreated(Long created) Time at which the quote was created, measured in seconds since the Unix epoch.voidUnique identifier for the object.voidsetLockDuration(String lockDuration) The duration the exchange rate quote remains valid from creation time.voidsetLockExpiresAt(Long lockExpiresAt) Time at which the quote will expire, measured in seconds since the Unix epoch.voidsetLockStatus(String lockStatus) Lock status of the quote.voidString representing the object's type.voidsetRates(Map<String, FxQuote.Rate> rates) Information about the rates.voidsetResponseGetter(StripeResponseGetter responseGetter) The Stripe account ID that the funds will be transferred to.voidsetToCurrency(String toCurrency) The currency to convert into, typically this is the currency that you want to settle to your Stripe balance.voidsetUsage(FxQuote.Usage usage) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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.
-