Class Payment


  • public class Payment
    extends Object
    Payment
    • Field Detail

      • JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES

        public static final String JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES
        See Also:
        Constant Field Values
    • Constructor Detail

      • Payment

        public Payment()
    • Method Detail

      • contactlessCurrency

        public Payment contactlessCurrency​(String contactlessCurrency)
      • getContactlessCurrency

        public String getContactlessCurrency()
        The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.
        Returns:
        contactlessCurrency
      • setContactlessCurrency

        public void setContactlessCurrency​(String contactlessCurrency)
        The default currency for contactless payments on the payment terminal, as the three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.
        Parameters:
        contactlessCurrency -
      • hideMinorUnitsInCurrencies

        public Payment hideMinorUnitsInCurrencies​(List<String> hideMinorUnitsInCurrencies)
      • addHideMinorUnitsInCurrenciesItem

        public Payment addHideMinorUnitsInCurrenciesItem​(String hideMinorUnitsInCurrenciesItem)
      • getHideMinorUnitsInCurrencies

        public List<String> getHideMinorUnitsInCurrencies()
        Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).
        Returns:
        hideMinorUnitsInCurrencies
      • setHideMinorUnitsInCurrencies

        public void setHideMinorUnitsInCurrencies​(List<String> hideMinorUnitsInCurrencies)
        Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).
        Parameters:
        hideMinorUnitsInCurrencies -
      • equals

        public boolean equals​(Object o)
        Return true if this Payment object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Payment fromJson​(String jsonString)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Payment given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Payment
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Payment
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Payment to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException