Package com.adyen.model.checkout
Class ForexQuote
- java.lang.Object
-
- com.adyen.model.checkout.ForexQuote
-
public class ForexQuote extends Object
ForexQuote
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForexQuote.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNTstatic StringSERIALIZED_NAME_ACCOUNT_TYPEstatic StringSERIALIZED_NAME_BASE_AMOUNTstatic StringSERIALIZED_NAME_BASE_POINTSstatic StringSERIALIZED_NAME_BUYstatic StringSERIALIZED_NAME_INTERBANKstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SELLstatic StringSERIALIZED_NAME_SIGNATUREstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_VALID_TILL
-
Constructor Summary
Constructors Constructor Description ForexQuote()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ForexQuoteaccount(String account)ForexQuoteaccountType(String accountType)ForexQuotebaseAmount(Amount baseAmount)ForexQuotebasePoints(Integer basePoints)ForexQuotebuy(Amount buy)booleanequals(Object o)static ForexQuotefromJson(String jsonString)Create an instance of ForexQuote given an JSON stringStringgetAccount()The account name.StringgetAccountType()The account type.AmountgetBaseAmount()Get baseAmountIntegergetBasePoints()The base points.AmountgetBuy()Get buyAmountgetInterbank()Get interbankStringgetReference()The reference assigned to the forex quote request.AmountgetSell()Get sellStringgetSignature()The signature to validate the integrity.StringgetSource()The source of the forex quote.StringgetType()The type of forex.OffsetDateTimegetValidTill()The date until which the forex quote is valid.inthashCode()ForexQuoteinterbank(Amount interbank)ForexQuotereference(String reference)ForexQuotesell(Amount sell)voidsetAccount(String account)voidsetAccountType(String accountType)voidsetBaseAmount(Amount baseAmount)voidsetBasePoints(Integer basePoints)voidsetBuy(Amount buy)voidsetInterbank(Amount interbank)voidsetReference(String reference)voidsetSell(Amount sell)voidsetSignature(String signature)voidsetSource(String source)voidsetType(String type)voidsetValidTill(OffsetDateTime validTill)ForexQuotesignature(String signature)ForexQuotesource(String source)StringtoJson()Convert an instance of ForexQuote to an JSON stringStringtoString()ForexQuotetype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundForexQuotevalidTill(OffsetDateTime validTill)
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCOUNT
public static final String SERIALIZED_NAME_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_TYPE
public static final String SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BASE_AMOUNT
public static final String SERIALIZED_NAME_BASE_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BASE_POINTS
public static final String SERIALIZED_NAME_BASE_POINTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUY
public static final String SERIALIZED_NAME_BUY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INTERBANK
public static final String SERIALIZED_NAME_INTERBANK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SELL
public static final String SERIALIZED_NAME_SELL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNATURE
public static final String SERIALIZED_NAME_SIGNATURE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALID_TILL
public static final String SERIALIZED_NAME_VALID_TILL
- See Also:
- Constant Field Values
-
-
Method Detail
-
account
public ForexQuote account(String account)
-
getAccount
public String getAccount()
The account name.- Returns:
- account
-
setAccount
public void setAccount(String account)
-
accountType
public ForexQuote accountType(String accountType)
-
getAccountType
public String getAccountType()
The account type.- Returns:
- accountType
-
setAccountType
public void setAccountType(String accountType)
-
baseAmount
public ForexQuote baseAmount(Amount baseAmount)
-
getBaseAmount
public Amount getBaseAmount()
Get baseAmount- Returns:
- baseAmount
-
setBaseAmount
public void setBaseAmount(Amount baseAmount)
-
basePoints
public ForexQuote basePoints(Integer basePoints)
-
getBasePoints
public Integer getBasePoints()
The base points.- Returns:
- basePoints
-
setBasePoints
public void setBasePoints(Integer basePoints)
-
buy
public ForexQuote buy(Amount buy)
-
getBuy
public Amount getBuy()
Get buy- Returns:
- buy
-
setBuy
public void setBuy(Amount buy)
-
interbank
public ForexQuote interbank(Amount interbank)
-
getInterbank
public Amount getInterbank()
Get interbank- Returns:
- interbank
-
setInterbank
public void setInterbank(Amount interbank)
-
reference
public ForexQuote reference(String reference)
-
getReference
public String getReference()
The reference assigned to the forex quote request.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
sell
public ForexQuote sell(Amount sell)
-
getSell
public Amount getSell()
Get sell- Returns:
- sell
-
setSell
public void setSell(Amount sell)
-
signature
public ForexQuote signature(String signature)
-
getSignature
public String getSignature()
The signature to validate the integrity.- Returns:
- signature
-
setSignature
public void setSignature(String signature)
-
source
public ForexQuote source(String source)
-
getSource
public String getSource()
The source of the forex quote.- Returns:
- source
-
setSource
public void setSource(String source)
-
type
public ForexQuote type(String type)
-
getType
public String getType()
The type of forex.- Returns:
- type
-
setType
public void setType(String type)
-
validTill
public ForexQuote validTill(OffsetDateTime validTill)
-
getValidTill
public OffsetDateTime getValidTill()
The date until which the forex quote is valid.- Returns:
- validTill
-
setValidTill
public void setValidTill(OffsetDateTime validTill)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ForexQuote
-
fromJson
public static ForexQuote fromJson(String jsonString) throws IOException
Create an instance of ForexQuote given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ForexQuote
- Throws:
IOException- if the JSON string is invalid with respect to ForexQuote
-
toJson
public String toJson()
Convert an instance of ForexQuote to an JSON string- Returns:
- JSON string
-
-