Package com.adyen.model.management
Class GooglePayInfo
- java.lang.Object
-
- com.adyen.model.management.GooglePayInfo
-
public class GooglePayInfo extends Object
GooglePayInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGooglePayInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_ID
-
Constructor Summary
Constructors Constructor Description GooglePayInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GooglePayInfofromJson(String jsonString)Create an instance of GooglePayInfo given an JSON stringStringgetMerchantId()Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en).inthashCode()GooglePayInfomerchantId(String merchantId)voidsetMerchantId(String merchantId)StringtoJson()Convert an instance of GooglePayInfo to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
merchantId
public GooglePayInfo merchantId(String merchantId)
-
getMerchantId
public String getMerchantId()
Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
-
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 GooglePayInfo
-
fromJson
public static GooglePayInfo fromJson(String jsonString) throws IOException
Create an instance of GooglePayInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GooglePayInfo
- Throws:
IOException- if the JSON string is invalid with respect to GooglePayInfo
-
toJson
public String toJson()
Convert an instance of GooglePayInfo to an JSON string- Returns:
- JSON string
-
-