Package com.adyen.model.checkout
Class ForexQuote
- java.lang.Object
-
- com.adyen.model.checkout.ForexQuote
-
public class ForexQuote extends Object
ForexQuote
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNTstatic StringJSON_PROPERTY_ACCOUNT_TYPEstatic StringJSON_PROPERTY_BASE_AMOUNTstatic StringJSON_PROPERTY_BASE_POINTSstatic StringJSON_PROPERTY_BUYstatic StringJSON_PROPERTY_INTERBANKstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SELLstatic StringJSON_PROPERTY_SIGNATUREstatic StringJSON_PROPERTY_SOURCEstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_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)Return true if this ForexQuote object is equal to 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)The account name.voidsetAccountType(String accountType)The account type.voidsetBaseAmount(Amount baseAmount)baseAmountvoidsetBasePoints(Integer basePoints)The base points.voidsetBuy(Amount buy)buyvoidsetInterbank(Amount interbank)interbankvoidsetReference(String reference)The reference assigned to the forex quote request.voidsetSell(Amount sell)sellvoidsetSignature(String signature)The signature to validate the integrity.voidsetSource(String source)The source of the forex quote.voidsetType(String type)The type of forex.voidsetValidTill(OffsetDateTime validTill)The date until which the forex quote is valid.ForexQuotesignature(String signature)ForexQuotesource(String source)StringtoJson()Convert an instance of ForexQuote to an JSON stringStringtoString()ForexQuotetype(String type)ForexQuotevalidTill(OffsetDateTime validTill)
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT
public static final String JSON_PROPERTY_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_TYPE
public static final String JSON_PROPERTY_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BASE_AMOUNT
public static final String JSON_PROPERTY_BASE_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BASE_POINTS
public static final String JSON_PROPERTY_BASE_POINTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BUY
public static final String JSON_PROPERTY_BUY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTERBANK
public static final String JSON_PROPERTY_INTERBANK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SELL
public static final String JSON_PROPERTY_SELL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIGNATURE
public static final String JSON_PROPERTY_SIGNATURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE
public static final String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALID_TILL
public static final String JSON_PROPERTY_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)
The account name.- Parameters:
account-
-
accountType
public ForexQuote accountType(String accountType)
-
getAccountType
public String getAccountType()
The account type.- Returns:
- accountType
-
setAccountType
public void setAccountType(String accountType)
The account type.- Parameters:
accountType-
-
baseAmount
public ForexQuote baseAmount(Amount baseAmount)
-
getBaseAmount
public Amount getBaseAmount()
Get baseAmount- Returns:
- baseAmount
-
setBaseAmount
public void setBaseAmount(Amount baseAmount)
baseAmount- Parameters:
baseAmount-
-
basePoints
public ForexQuote basePoints(Integer basePoints)
-
getBasePoints
public Integer getBasePoints()
The base points.- Returns:
- basePoints
-
setBasePoints
public void setBasePoints(Integer basePoints)
The base points.- Parameters:
basePoints-
-
buy
public ForexQuote buy(Amount buy)
-
getBuy
public Amount getBuy()
Get buy- Returns:
- buy
-
setBuy
public void setBuy(Amount buy)
buy- Parameters:
buy-
-
interbank
public ForexQuote interbank(Amount interbank)
-
getInterbank
public Amount getInterbank()
Get interbank- Returns:
- interbank
-
setInterbank
public void setInterbank(Amount interbank)
interbank- Parameters:
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)
The reference assigned to the forex quote request.- Parameters:
reference-
-
sell
public ForexQuote sell(Amount sell)
-
getSell
public Amount getSell()
Get sell- Returns:
- sell
-
setSell
public void setSell(Amount sell)
sell- Parameters:
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)
The signature to validate the integrity.- Parameters:
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)
The source of the forex quote.- Parameters:
source-
-
type
public ForexQuote type(String type)
-
getType
public String getType()
The type of forex.- Returns:
- type
-
setType
public void setType(String type)
The type of forex.- Parameters:
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)
The date until which the forex quote is valid.- Parameters:
validTill-
-
equals
public boolean equals(Object o)
Return true if this ForexQuote object is equal to o.
-
fromJson
public static ForexQuote fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ForexQuote given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ForexQuote
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ForexQuote
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ForexQuote to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-