Package com.onlinepayments.domain
Class AmountBreakdown
java.lang.Object
com.onlinepayments.domain.AmountBreakdown
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAmount in cents and always having 2 decimalsgetType()Type of the amount.voidAmount in cents and always having 2 decimalsvoidType of the amount.withAmount(Long value) Amount in cents and always having 2 decimalsType of the amount.
-
Constructor Details
-
AmountBreakdown
public AmountBreakdown()
-
-
Method Details
-
getAmount
Amount in cents and always having 2 decimals -
setAmount
Amount in cents and always having 2 decimals -
withAmount
Amount in cents and always having 2 decimals -
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
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
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.
-