Package com.adyen.model.management
Class Payment
- java.lang.Object
-
- com.adyen.model.management.Payment
-
public class Payment extends Object
Payment
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTACTLESS_CURRENCYstatic StringJSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES
-
Constructor Summary
Constructors Constructor Description Payment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentaddHideMinorUnitsInCurrenciesItem(String hideMinorUnitsInCurrenciesItem)PaymentcontactlessCurrency(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.booleanequals(Object o)Return true if this Payment object is equal to o.static PaymentfromJson(String jsonString)Create an instance of Payment given an JSON stringStringgetContactlessCurrency()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.List<String>getHideMinorUnitsInCurrencies()Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).inthashCode()PaymenthideMinorUnitsInCurrencies(List<String> hideMinorUnitsInCurrencies)Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).voidsetContactlessCurrency(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.voidsetHideMinorUnitsInCurrencies(List<String> hideMinorUnitsInCurrencies)Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).StringtoJson()Convert an instance of Payment to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONTACTLESS_CURRENCY
public static final String JSON_PROPERTY_CONTACTLESS_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES
public static final String JSON_PROPERTY_HIDE_MINOR_UNITS_IN_CURRENCIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
contactlessCurrency
public Payment contactlessCurrency(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-- Returns:
- the current
Paymentinstance, allowing for method chaining
-
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)
Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).- Parameters:
hideMinorUnitsInCurrencies-- Returns:
- the current
Paymentinstance, 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
-
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.
-
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
-
-