Package com.onlinepayments.domain
Class Surcharge
java.lang.Object
com.onlinepayments.domain.Surcharge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject containing amount and ISO currency code attributesPayment product identifier - Please see Products documentation for a full overview of possible values.Token describing result.Object containing amount and ISO currency code attributesA summary of surcharge details used in the calculation of the surcharge amount.Object containing amount and ISO currency code attributesvoidsetNetAmount(AmountOfMoney value) Object containing amount and ISO currency code attributesvoidsetPaymentProductId(Integer value) Payment product identifier - Please see Products documentation for a full overview of possible values.voidToken describing result.voidsetSurchargeAmount(AmountOfMoney value) Object containing amount and ISO currency code attributesvoidsetSurchargeRate(SurchargeRate value) A summary of surcharge details used in the calculation of the surcharge amount.voidsetTotalAmount(AmountOfMoney value) Object containing amount and ISO currency code attributeswithNetAmount(AmountOfMoney value) Object containing amount and ISO currency code attributeswithPaymentProductId(Integer value) Payment product identifier - Please see Products documentation for a full overview of possible values.withResult(String value) Token describing result.withSurchargeAmount(AmountOfMoney value) Object containing amount and ISO currency code attributeswithSurchargeRate(SurchargeRate value) A summary of surcharge details used in the calculation of the surcharge amount.withTotalAmount(AmountOfMoney value) Object containing amount and ISO currency code attributes
-
Constructor Details
-
Surcharge
public Surcharge()
-
-
Method Details
-
getNetAmount
Object containing amount and ISO currency code attributes -
setNetAmount
Object containing amount and ISO currency code attributes -
withNetAmount
Object containing amount and ISO currency code attributes -
getPaymentProductId
Payment product identifier - Please see Products documentation for a full overview of possible values. -
setPaymentProductId
Payment product identifier - Please see Products documentation for a full overview of possible values. -
withPaymentProductId
Payment product identifier - Please see Products documentation for a full overview of possible values. -
getResult
Token describing result. OK - A Surcharge Amount was successfully calculated, NO_SURCHARGE - A configured surcharge rate could not be found for the payment product -
setResult
Token describing result. OK - A Surcharge Amount was successfully calculated, NO_SURCHARGE - A configured surcharge rate could not be found for the payment product -
withResult
Token describing result. OK - A Surcharge Amount was successfully calculated, NO_SURCHARGE - A configured surcharge rate could not be found for the payment product -
getSurchargeAmount
Object containing amount and ISO currency code attributes -
setSurchargeAmount
Object containing amount and ISO currency code attributes -
withSurchargeAmount
Object containing amount and ISO currency code attributes -
getSurchargeRate
A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE -
setSurchargeRate
A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE -
withSurchargeRate
A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE -
getTotalAmount
Object containing amount and ISO currency code attributes -
setTotalAmount
Object containing amount and ISO currency code attributes -
withTotalAmount
Object containing amount and ISO currency code attributes
-