Class AmountsResp


  • public class AmountsResp
    extends Object
    AmountsResp
    • Constructor Detail

      • AmountsResp

        public AmountsResp()
    • Method Detail

      • currency

        public AmountsResp currency​(String currency)
        Currency of a monetary amount.
        Parameters:
        currency - Currency of a monetary amount.
        Returns:
        the current AmountsResp instance, 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 AmountsResp instance, 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 AmountsResp instance, 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 AmountsResp instance, 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 AmountsResp instance, 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 AmountsResp instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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