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, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format.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, in three-letter [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code format.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.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).PaymentincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetContactlessCurrency(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.voidsetHideMinorUnitsInCurrencies(List<String> hideMinorUnitsInCurrencies)Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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, 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
Paymentinstance, 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
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 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.
-
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
-
-