Class Surcharge

java.lang.Object
com.onlinepayments.domain.Surcharge

public class Surcharge extends Object
  • Constructor Details

    • Surcharge

      public Surcharge()
  • Method Details

    • getNetAmount

      public AmountOfMoney getNetAmount()
      Object containing amount and ISO currency code attributes
    • setNetAmount

      public void setNetAmount(AmountOfMoney value)
      Object containing amount and ISO currency code attributes
    • withNetAmount

      public Surcharge withNetAmount(AmountOfMoney value)
      Object containing amount and ISO currency code attributes
    • getPaymentProductId

      public Integer getPaymentProductId()
      Payment product identifier - Please see Products documentation for a full overview of possible values.
    • setPaymentProductId

      public void setPaymentProductId(Integer value)
      Payment product identifier - Please see Products documentation for a full overview of possible values.
    • withPaymentProductId

      public Surcharge withPaymentProductId(Integer value)
      Payment product identifier - Please see Products documentation for a full overview of possible values.
    • getResult

      public String 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

      public void setResult(String value)
      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

      public Surcharge withResult(String value)
      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

      public AmountOfMoney getSurchargeAmount()
      Object containing amount and ISO currency code attributes
    • setSurchargeAmount

      public void setSurchargeAmount(AmountOfMoney value)
      Object containing amount and ISO currency code attributes
    • withSurchargeAmount

      public Surcharge withSurchargeAmount(AmountOfMoney value)
      Object containing amount and ISO currency code attributes
    • getSurchargeRate

      public SurchargeRate getSurchargeRate()
      A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE
    • setSurchargeRate

      public void setSurchargeRate(SurchargeRate value)
      A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE
    • withSurchargeRate

      public Surcharge withSurchargeRate(SurchargeRate value)
      A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE
    • getTotalAmount

      public AmountOfMoney getTotalAmount()
      Object containing amount and ISO currency code attributes
    • setTotalAmount

      public void setTotalAmount(AmountOfMoney value)
      Object containing amount and ISO currency code attributes
    • withTotalAmount

      public Surcharge withTotalAmount(AmountOfMoney value)
      Object containing amount and ISO currency code attributes