Package com.adyen.model.checkout
Class PaymentMethodGroup
- java.lang.Object
-
- com.adyen.model.checkout.PaymentMethodGroup
-
public class PaymentMethodGroup extends Object
PaymentMethodGroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentMethodGroup.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PAYMENT_METHOD_DATAstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentMethodGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static PaymentMethodGroupfromJson(String jsonString)Create an instance of PaymentMethodGroup given an JSON stringStringgetName()The name of the group.StringgetPaymentMethodData()Echo data to be used if the payment method is displayed as part of this group.StringgetType()The unique code of the group.inthashCode()PaymentMethodGroupname(String name)PaymentMethodGrouppaymentMethodData(String paymentMethodData)voidsetName(String name)voidsetPaymentMethodData(String paymentMethodData)voidsetType(String type)StringtoJson()Convert an instance of PaymentMethodGroup to an JSON stringStringtoString()PaymentMethodGrouptype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_METHOD_DATA
public static final String SERIALIZED_NAME_PAYMENT_METHOD_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public PaymentMethodGroup name(String name)
-
getName
public String getName()
The name of the group.- Returns:
- name
-
setName
public void setName(String name)
-
paymentMethodData
public PaymentMethodGroup paymentMethodData(String paymentMethodData)
-
getPaymentMethodData
public String getPaymentMethodData()
Echo data to be used if the payment method is displayed as part of this group.- Returns:
- paymentMethodData
-
setPaymentMethodData
public void setPaymentMethodData(String paymentMethodData)
-
type
public PaymentMethodGroup type(String type)
-
getType
public String getType()
The unique code of the group.- Returns:
- type
-
setType
public void setType(String type)
-
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 PaymentMethodGroup
-
fromJson
public static PaymentMethodGroup fromJson(String jsonString) throws IOException
Create an instance of PaymentMethodGroup given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethodGroup
- Throws:
IOException- if the JSON string is invalid with respect to PaymentMethodGroup
-
toJson
public String toJson()
Convert an instance of PaymentMethodGroup to an JSON string- Returns:
- JSON string
-
-