Package com.adyen.model.management
Class PaymentMethodWrapper
- java.lang.Object
-
- com.adyen.model.management.PaymentMethodWrapper
-
public class PaymentMethodWrapper extends Object
PaymentMethodWrapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentMethodWrapper.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PAYMENT_METHOD
-
Constructor Summary
Constructors Constructor Description PaymentMethodWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PaymentMethodWrapperfromJson(String jsonString)Create an instance of PaymentMethodWrapper given an JSON stringPaymentMethodgetPaymentMethod()Get paymentMethodinthashCode()PaymentMethodWrapperpaymentMethod(PaymentMethod paymentMethod)voidsetPaymentMethod(PaymentMethod paymentMethod)StringtoJson()Convert an instance of PaymentMethodWrapper to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
paymentMethod
public PaymentMethodWrapper paymentMethod(PaymentMethod paymentMethod)
-
getPaymentMethod
public PaymentMethod getPaymentMethod()
Get paymentMethod- Returns:
- paymentMethod
-
setPaymentMethod
public void setPaymentMethod(PaymentMethod paymentMethod)
-
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 PaymentMethodWrapper
-
fromJson
public static PaymentMethodWrapper fromJson(String jsonString) throws IOException
Create an instance of PaymentMethodWrapper given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethodWrapper
- Throws:
IOException- if the JSON string is invalid with respect to PaymentMethodWrapper
-
toJson
public String toJson()
Convert an instance of PaymentMethodWrapper to an JSON string- Returns:
- JSON string
-
-