Class AmountBreakdown

java.lang.Object
com.onlinepayments.domain.AmountBreakdown

public class AmountBreakdown extends Object
  • Constructor Details

    • AmountBreakdown

      public AmountBreakdown()
  • Method Details

    • getAmount

      public Long getAmount()
      Amount in cents and always having 2 decimals
    • setAmount

      public void setAmount(Long value)
      Amount in cents and always having 2 decimals
    • withAmount

      public AmountBreakdown withAmount(Long value)
      Amount in cents and always having 2 decimals
    • getType

      public String getType()
      Type of the amount. Each type is only allowed to be provided once. Allowed values:
      • AIRPORT_TAX - The amount of tax paid for the airport, with the last 2 digits implied as decimal places.
      • CONSUMPTION_TAX - The amount of consumption tax paid by the customer, with the last 2 digits implied as decimal places.
      • DISCOUNT - Discount on the entire transaction, with the last 2 digits implied as decimal places.
      • DUTY - Duty on the entire transaction, with the last 2 digits implied as decimal places.
      • SHIPPING - Shipping cost on the entire transaction, with the last 2 digits implied as decimal places.
      • VAT - Total amount of VAT paid on the transaction, with the last 2 digits implied as decimal places.
      • BASE_AMOUNT - Order amount excluding all taxes, discount & shipping costs, with the last 2 digits implied as decimal places. Note: BASE_AMOUNT is only supported by the payment platform.
    • setType

      public void setType(String value)
      Type of the amount. Each type is only allowed to be provided once. Allowed values:
      • AIRPORT_TAX - The amount of tax paid for the airport, with the last 2 digits implied as decimal places.
      • CONSUMPTION_TAX - The amount of consumption tax paid by the customer, with the last 2 digits implied as decimal places.
      • DISCOUNT - Discount on the entire transaction, with the last 2 digits implied as decimal places.
      • DUTY - Duty on the entire transaction, with the last 2 digits implied as decimal places.
      • SHIPPING - Shipping cost on the entire transaction, with the last 2 digits implied as decimal places.
      • VAT - Total amount of VAT paid on the transaction, with the last 2 digits implied as decimal places.
      • BASE_AMOUNT - Order amount excluding all taxes, discount & shipping costs, with the last 2 digits implied as decimal places. Note: BASE_AMOUNT is only supported by the payment platform.
    • withType

      public AmountBreakdown withType(String value)
      Type of the amount. Each type is only allowed to be provided once. Allowed values:
      • AIRPORT_TAX - The amount of tax paid for the airport, with the last 2 digits implied as decimal places.
      • CONSUMPTION_TAX - The amount of consumption tax paid by the customer, with the last 2 digits implied as decimal places.
      • DISCOUNT - Discount on the entire transaction, with the last 2 digits implied as decimal places.
      • DUTY - Duty on the entire transaction, with the last 2 digits implied as decimal places.
      • SHIPPING - Shipping cost on the entire transaction, with the last 2 digits implied as decimal places.
      • VAT - Total amount of VAT paid on the transaction, with the last 2 digits implied as decimal places.
      • BASE_AMOUNT - Order amount excluding all taxes, discount & shipping costs, with the last 2 digits implied as decimal places. Note: BASE_AMOUNT is only supported by the payment platform.