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_CODEstatic StringJSON_PROPERTY_SURCHARGE_TYPE
-
Constructor Summary
Constructors Constructor Description CostEstimateResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CostEstimateResponsecardBin(CardBin cardBin)CostEstimateResponsecostEstimateAmount(Amount costEstimateAmount)CostEstimateResponsecostEstimateReference(String costEstimateReference)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()Get cardBinAmountgetCostEstimateAmount()Get costEstimateAmountStringgetCostEstimateReference()Adyen's 16-character reference associated with the request.StringgetResultCode()The result of the cost estimation.StringgetSurchargeType()Indicates the way the charges can be passed on to the cardholder.inthashCode()CostEstimateResponseresultCode(String resultCode)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.voidsetSurchargeType(String surchargeType)Indicates the way the charges can be passed on to the cardholder.CostEstimateResponsesurchargeType(String surchargeType)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
-
JSON_PROPERTY_SURCHARGE_TYPE
public static final String JSON_PROPERTY_SURCHARGE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
cardBin
public CostEstimateResponse cardBin(CardBin cardBin)
-
getCardBin
public CardBin getCardBin()
Get cardBin- Returns:
- cardBin
-
setCardBin
public void setCardBin(CardBin cardBin)
cardBin- Parameters:
cardBin-
-
costEstimateAmount
public CostEstimateResponse costEstimateAmount(Amount costEstimateAmount)
-
getCostEstimateAmount
public Amount getCostEstimateAmount()
Get costEstimateAmount- Returns:
- costEstimateAmount
-
setCostEstimateAmount
public void setCostEstimateAmount(Amount costEstimateAmount)
costEstimateAmount- Parameters:
costEstimateAmount-
-
costEstimateReference
public CostEstimateResponse costEstimateReference(String costEstimateReference)
-
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)
-
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-
-
surchargeType
public CostEstimateResponse surchargeType(String surchargeType)
-
getSurchargeType
public String getSurchargeType()
Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on- Returns:
- surchargeType
-
setSurchargeType
public void setSurchargeType(String surchargeType)
Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on- Parameters:
surchargeType-
-
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
-
-