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)
        The default currency for contactless payments on the payment terminal, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format. Contact Adyen before you update this setting for the first time. To enable you to change the contactless currency, we first need to check if you meet the compliance requirements.
        Parameters:
        contactlessCurrency - The default currency for contactless payments on the payment terminal, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format. Contact Adyen before you update this setting for the first time. To enable you to change the contactless currency, we first need to check if you meet the compliance requirements.
        Returns:
        the current Payment instance, allowing for method chaining
      • getContactlessCurrency

        public String getContactlessCurrency()
        The default currency for contactless payments on the payment terminal, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format. Contact Adyen before you update this setting for the first time. To enable you to change the contactless currency, we first need to check if you meet the compliance requirements.
        Returns:
        contactlessCurrency The default currency for contactless payments on the payment terminal, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format. Contact Adyen before you update this setting for the first time. To enable you to change the contactless currency, we first need to check if you meet the compliance requirements.
      • setContactlessCurrency

        public void setContactlessCurrency​(String contactlessCurrency)
        The default currency for contactless payments on the payment terminal, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format. Contact Adyen before you update this setting for the first time. To enable you to change the contactless currency, we first need to check if you meet the compliance requirements.
        Parameters:
        contactlessCurrency - The default currency for contactless payments on the payment terminal, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format. Contact Adyen before you update this setting for the first time. To enable you to change the contactless currency, we first need to check if you meet the compliance requirements.
      • hideMinorUnitsInCurrencies

        public Payment hideMinorUnitsInCurrencies​(List<String> hideMinorUnitsInCurrencies)
        Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).
        Parameters:
        hideMinorUnitsInCurrencies - Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).
        Returns:
        the current Payment instance, allowing for method chaining
      • 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 Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).
      • 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 - Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).
      • includeNullValues

        public Payment includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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