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)The account name.ForexQuoteaccountType(String accountType)The account type.ForexQuotebaseAmount(Amount baseAmount)baseAmountForexQuotebasePoints(Integer basePoints)The base points.ForexQuotebuy(Amount buy)buybooleanequals(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()baseAmountIntegergetBasePoints()The base points.AmountgetBuy()buyAmountgetInterbank()interbankStringgetReference()The reference assigned to the forex quote request.AmountgetSell()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)interbankForexQuotereference(String reference)The reference assigned to the forex quote request.ForexQuotesell(Amount sell)sellvoidsetAccount(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)The signature to validate the integrity.ForexQuotesource(String source)The source of the forex quote.StringtoJson()Convert an instance of ForexQuote to an JSON stringStringtoString()ForexQuotetype(String type)The type of forex.ForexQuotevalidTill(OffsetDateTime validTill)The date until which the forex quote is valid.
-
-
-
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)
The account name.- Parameters:
account-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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)
The account type.- Parameters:
accountType-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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)
baseAmount- Parameters:
baseAmount-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
getBaseAmount
public Amount getBaseAmount()
baseAmount- Returns:
- baseAmount
-
setBaseAmount
public void setBaseAmount(Amount baseAmount)
baseAmount- Parameters:
baseAmount-
-
basePoints
public ForexQuote basePoints(Integer basePoints)
The base points.- Parameters:
basePoints-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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)
buy- Parameters:
buy-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
getBuy
public Amount getBuy()
buy- Returns:
- buy
-
setBuy
public void setBuy(Amount buy)
buy- Parameters:
buy-
-
interbank
public ForexQuote interbank(Amount interbank)
interbank- Parameters:
interbank-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
getInterbank
public Amount getInterbank()
interbank- Returns:
- interbank
-
setInterbank
public void setInterbank(Amount interbank)
interbank- Parameters:
interbank-
-
reference
public ForexQuote reference(String reference)
The reference assigned to the forex quote request.- Parameters:
reference-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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)
sell- Parameters:
sell-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
getSell
public Amount getSell()
sell- Returns:
- sell
-
setSell
public void setSell(Amount sell)
sell- Parameters:
sell-
-
signature
public ForexQuote signature(String signature)
The signature to validate the integrity.- Parameters:
signature-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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)
The source of the forex quote.- Parameters:
source-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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)
The type of forex.- Parameters:
type-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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)
The date until which the forex quote is valid.- Parameters:
validTill-- Returns:
- the current
ForexQuoteinstance, allowing for method chaining
-
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
-
-