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()Get cardBinAmountgetCostEstimateAmount()Get costEstimateAmountStringgetCostEstimateReference()Adyen's 16-character reference associated with the request.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetResultCode()The result of the cost estimation.inthashCode()CostEstimateResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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()
Get 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()
Get 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- Adyen's 16-character reference associated with the request.- Returns:
- the current
CostEstimateResponseinstance, allowing for method chaining
-
getCostEstimateReference
public String getCostEstimateReference()
Adyen's 16-character reference associated with the request.- Returns:
- costEstimateReference Adyen's 16-character reference associated with the request.
-
setCostEstimateReference
public void setCostEstimateReference(String costEstimateReference)
Adyen's 16-character reference associated with the request.- Parameters:
costEstimateReference- Adyen's 16-character reference associated with the request.
-
resultCode
public CostEstimateResponse resultCode(String resultCode)
The result of the cost estimation.- Parameters:
resultCode- The result of the cost estimation.- Returns:
- the current
CostEstimateResponseinstance, allowing for method chaining
-
getResultCode
public String getResultCode()
The result of the cost estimation.- Returns:
- resultCode The result of the cost estimation.
-
setResultCode
public void setResultCode(String resultCode)
The result of the cost estimation.- Parameters:
resultCode- The result of the cost estimation.
-
includeNullValues
public CostEstimateResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this CostEstimateResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-