Package com.adyen.model.management
Class Payment
- java.lang.Object
-
- com.adyen.model.management.Payment
-
public class Payment extends Object
Payment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayment.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_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)booleanequals(Object o)static PaymentfromJson(String jsonString)Create an instance of Payment given an JSON stringList<String>getHideMinorUnitsInCurrencies()Hides the minor units for the listed [ISO currency codes](https://en.wikipedia.org/wiki/ISO_4217).inthashCode()PaymenthideMinorUnitsInCurrencies(List<String> hideMinorUnitsInCurrencies)voidsetHideMinorUnitsInCurrencies(List<String> hideMinorUnitsInCurrencies)StringtoJson()Convert an instance of Payment to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Payment
-
fromJson
public static Payment fromJson(String jsonString) throws IOException
Create an instance of Payment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Payment
- Throws:
IOException- if the JSON string is invalid with respect to Payment
-
toJson
public String toJson()
Convert an instance of Payment to an JSON string- Returns:
- JSON string
-
-