Package com.adyen.model.binlookup
Class CostEstimateResponse
- java.lang.Object
-
- com.adyen.model.binlookup.CostEstimateResponse
-
public class CostEstimateResponse extends Object
CostEstimateResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CARD_BINstatic StringJSON_PROPERTY_COST_ESTIMATE_AMOUNTstatic StringJSON_PROPERTY_COST_ESTIMATE_REFERENCEstatic StringJSON_PROPERTY_RESULT_CODE
-
Constructor Summary
Constructors Constructor Description CostEstimateResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CostEstimateResponsecardBin(CardBin cardBin)cardBinCostEstimateResponsecostEstimateAmount(Amount costEstimateAmount)costEstimateAmountCostEstimateResponsecostEstimateReference(String costEstimateReference)Adyen's 16-character reference associated with the request.booleanequals(Object o)Return true if this CostEstimateResponse object is equal to o.static CostEstimateResponsefromJson(String jsonString)Create an instance of CostEstimateResponse given an JSON stringCardBingetCardBin()cardBinAmountgetCostEstimateAmount()costEstimateAmountStringgetCostEstimateReference()Adyen's 16-character reference associated with the request.StringgetResultCode()The result of the cost estimation.inthashCode()CostEstimateResponseresultCode(String resultCode)The result of the cost estimation.voidsetCardBin(CardBin cardBin)cardBinvoidsetCostEstimateAmount(Amount costEstimateAmount)costEstimateAmountvoidsetCostEstimateReference(String costEstimateReference)Adyen's 16-character reference associated with the request.voidsetResultCode(String resultCode)The result of the cost estimation.StringtoJson()Convert an instance of CostEstimateResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CARD_BIN
public static final String JSON_PROPERTY_CARD_BIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COST_ESTIMATE_AMOUNT
public static final String JSON_PROPERTY_COST_ESTIMATE_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COST_ESTIMATE_REFERENCE
public static final String JSON_PROPERTY_COST_ESTIMATE_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT_CODE
public static final String JSON_PROPERTY_RESULT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
cardBin
public CostEstimateResponse cardBin(CardBin cardBin)
cardBin- Parameters:
cardBin-- Returns:
- the current
CostEstimateResponseinstance, allowing for method chaining
-
getCardBin
public CardBin getCardBin()
cardBin- Returns:
- cardBin
-
setCardBin
public void setCardBin(CardBin cardBin)
cardBin- Parameters:
cardBin-
-
costEstimateAmount
public CostEstimateResponse costEstimateAmount(Amount costEstimateAmount)
costEstimateAmount- Parameters:
costEstimateAmount-- Returns:
- the current
CostEstimateResponseinstance, allowing for method chaining
-
getCostEstimateAmount
public Amount getCostEstimateAmount()
costEstimateAmount- Returns:
- costEstimateAmount
-
setCostEstimateAmount
public void setCostEstimateAmount(Amount costEstimateAmount)
costEstimateAmount- Parameters:
costEstimateAmount-
-
costEstimateReference
public CostEstimateResponse costEstimateReference(String costEstimateReference)
Adyen's 16-character reference associated with the request.- Parameters:
costEstimateReference-- Returns:
- the current
CostEstimateResponseinstance, allowing for method chaining
-
getCostEstimateReference
public String getCostEstimateReference()
Adyen's 16-character reference associated with the request.- Returns:
- costEstimateReference
-
setCostEstimateReference
public void setCostEstimateReference(String costEstimateReference)
Adyen's 16-character reference associated with the request.- Parameters:
costEstimateReference-
-
resultCode
public CostEstimateResponse resultCode(String resultCode)
The result of the cost estimation.- Parameters:
resultCode-- Returns:
- the current
CostEstimateResponseinstance, allowing for method chaining
-
getResultCode
public String getResultCode()
The result of the cost estimation.- Returns:
- resultCode
-
setResultCode
public void setResultCode(String resultCode)
The result of the cost estimation.- Parameters:
resultCode-
-
equals
public boolean equals(Object o)
Return true if this CostEstimateResponse object is equal to o.
-
fromJson
public static CostEstimateResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CostEstimateResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CostEstimateResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CostEstimateResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CostEstimateResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-