Package com.adyen.model.tapi
Class AmountsResp
- java.lang.Object
-
- com.adyen.model.tapi.AmountsResp
-
public class AmountsResp extends Object
AmountsResp
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHORIZED_AMOUNTstatic StringJSON_PROPERTY_CASH_BACK_AMOUNTstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_TIP_AMOUNTstatic StringJSON_PROPERTY_TOTAL_FEES_AMOUNTstatic StringJSON_PROPERTY_TOTAL_REBATES_AMOUNT
-
Constructor Summary
Constructors Constructor Description AmountsResp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AmountsRespauthorizedAmount(BigDecimal authorizedAmount)Amount requested by the Sale for the payment.AmountsRespcashBackAmount(BigDecimal cashBackAmount)The cash-back part of the amount requested by the Sale for the payment.AmountsRespcurrency(String currency)Currency of a monetary amount.booleanequals(Object o)Return true if this AmountsResp object is equal to o.static AmountsRespfromJson(String jsonString)Create an instance of AmountsResp given an JSON stringBigDecimalgetAuthorizedAmount()Amount requested by the Sale for the payment. minimum: 0.0 maximum: 99999999.999999BigDecimalgetCashBackAmount()The cash-back part of the amount requested by the Sale for the payment. minimum: 0.0 maximum: 99999999.999999StringgetCurrency()Currency of a monetary amount.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BigDecimalgetTipAmount()Amount paid for a tip.BigDecimalgetTotalFeesAmount()Total amount of financial fees. minimum: 0.0 maximum: 99999999.999999BigDecimalgetTotalRebatesAmount()Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.inthashCode()AmountsRespincludeNullValues(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.voidsetAuthorizedAmount(BigDecimal authorizedAmount)Amount requested by the Sale for the payment.voidsetCashBackAmount(BigDecimal cashBackAmount)The cash-back part of the amount requested by the Sale for the payment.voidsetCurrency(String currency)Currency of a monetary amount.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetTipAmount(BigDecimal tipAmount)Amount paid for a tip.voidsetTotalFeesAmount(BigDecimal totalFeesAmount)Total amount of financial fees.voidsetTotalRebatesAmount(BigDecimal totalRebatesAmount)Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.AmountsResptipAmount(BigDecimal tipAmount)Amount paid for a tip.StringtoJson()Convert an instance of AmountsResp to an JSON stringStringtoString()AmountsResptotalFeesAmount(BigDecimal totalFeesAmount)Total amount of financial fees.AmountsResptotalRebatesAmount(BigDecimal totalRebatesAmount)Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTHORIZED_AMOUNT
public static final String JSON_PROPERTY_AUTHORIZED_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_REBATES_AMOUNT
public static final String JSON_PROPERTY_TOTAL_REBATES_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL_FEES_AMOUNT
public static final String JSON_PROPERTY_TOTAL_FEES_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CASH_BACK_AMOUNT
public static final String JSON_PROPERTY_CASH_BACK_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIP_AMOUNT
public static final String JSON_PROPERTY_TIP_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
currency
public AmountsResp currency(String currency)
Currency of a monetary amount.- Parameters:
currency- Currency of a monetary amount.- Returns:
- the current
AmountsRespinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
Currency of a monetary amount.- Returns:
- currency Currency of a monetary amount.
-
setCurrency
public void setCurrency(String currency)
Currency of a monetary amount.- Parameters:
currency- Currency of a monetary amount.
-
authorizedAmount
public AmountsResp authorizedAmount(BigDecimal authorizedAmount)
Amount requested by the Sale for the payment.- Parameters:
authorizedAmount- Amount requested by the Sale for the payment.- Returns:
- the current
AmountsRespinstance, allowing for method chaining
-
getAuthorizedAmount
public BigDecimal getAuthorizedAmount()
Amount requested by the Sale for the payment. minimum: 0.0 maximum: 99999999.999999- Returns:
- authorizedAmount Amount requested by the Sale for the payment.
-
setAuthorizedAmount
public void setAuthorizedAmount(BigDecimal authorizedAmount)
Amount requested by the Sale for the payment.- Parameters:
authorizedAmount- Amount requested by the Sale for the payment.
-
totalRebatesAmount
public AmountsResp totalRebatesAmount(BigDecimal totalRebatesAmount)
Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.- Parameters:
totalRebatesAmount- Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.- Returns:
- the current
AmountsRespinstance, allowing for method chaining
-
getTotalRebatesAmount
public BigDecimal getTotalRebatesAmount()
Sum of rebates in amount (total amount or line item amount) for all the loyalty programs. minimum: 0.0 maximum: 99999999.999999- Returns:
- totalRebatesAmount Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.
-
setTotalRebatesAmount
public void setTotalRebatesAmount(BigDecimal totalRebatesAmount)
Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.- Parameters:
totalRebatesAmount- Sum of rebates in amount (total amount or line item amount) for all the loyalty programs.
-
totalFeesAmount
public AmountsResp totalFeesAmount(BigDecimal totalFeesAmount)
Total amount of financial fees.- Parameters:
totalFeesAmount- Total amount of financial fees.- Returns:
- the current
AmountsRespinstance, allowing for method chaining
-
getTotalFeesAmount
public BigDecimal getTotalFeesAmount()
Total amount of financial fees. minimum: 0.0 maximum: 99999999.999999- Returns:
- totalFeesAmount Total amount of financial fees.
-
setTotalFeesAmount
public void setTotalFeesAmount(BigDecimal totalFeesAmount)
Total amount of financial fees.- Parameters:
totalFeesAmount- Total amount of financial fees.
-
cashBackAmount
public AmountsResp cashBackAmount(BigDecimal cashBackAmount)
The cash-back part of the amount requested by the Sale for the payment.- Parameters:
cashBackAmount- The cash-back part of the amount requested by the Sale for the payment.- Returns:
- the current
AmountsRespinstance, allowing for method chaining
-
getCashBackAmount
public BigDecimal getCashBackAmount()
The cash-back part of the amount requested by the Sale for the payment. minimum: 0.0 maximum: 99999999.999999- Returns:
- cashBackAmount The cash-back part of the amount requested by the Sale for the payment.
-
setCashBackAmount
public void setCashBackAmount(BigDecimal cashBackAmount)
The cash-back part of the amount requested by the Sale for the payment.- Parameters:
cashBackAmount- The cash-back part of the amount requested by the Sale for the payment.
-
tipAmount
public AmountsResp tipAmount(BigDecimal tipAmount)
Amount paid for a tip. Allow the printing of the tip on the receipt, and to qualify the tip part of the amount.- Parameters:
tipAmount- Amount paid for a tip. Allow the printing of the tip on the receipt, and to qualify the tip part of the amount.- Returns:
- the current
AmountsRespinstance, allowing for method chaining
-
getTipAmount
public BigDecimal getTipAmount()
Amount paid for a tip. Allow the printing of the tip on the receipt, and to qualify the tip part of the amount. minimum: 0.0 maximum: 99999999.999999- Returns:
- tipAmount Amount paid for a tip. Allow the printing of the tip on the receipt, and to qualify the tip part of the amount.
-
setTipAmount
public void setTipAmount(BigDecimal tipAmount)
Amount paid for a tip. Allow the printing of the tip on the receipt, and to qualify the tip part of the amount.- Parameters:
tipAmount- Amount paid for a tip. Allow the printing of the tip on the receipt, and to qualify the tip part of the amount.
-
includeNullValues
public AmountsResp 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 AmountsResp 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 AmountsResp fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AmountsResp given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AmountsResp
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AmountsResp
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AmountsResp to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-