Package com.adyen.model.management
Class GooglePayInfo
- java.lang.Object
-
- com.adyen.model.management.GooglePayInfo
-
public class GooglePayInfo extends Object
GooglePayInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_IDstatic StringJSON_PROPERTY_REUSE_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)Return true if this GooglePayInfo object is equal to 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?BooleangetReuseMerchantId()Indicates whether the Google Pay Merchant ID is used for several merchant accounts.inthashCode()GooglePayInfomerchantId(String merchantId)Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?GooglePayInforeuseMerchantId(Boolean reuseMerchantId)Indicates whether the Google Pay Merchant ID is used for several merchant accounts.voidsetMerchantId(String merchantId)Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?voidsetReuseMerchantId(Boolean reuseMerchantId)Indicates whether the Google Pay Merchant ID is used for several merchant accounts.StringtoJson()Convert an instance of GooglePayInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ID
public static final String JSON_PROPERTY_MERCHANT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REUSE_MERCHANT_ID
public static final String JSON_PROPERTY_REUSE_MERCHANT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantId
public GooglePayInfo merchantId(String merchantId)
Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters.- Parameters:
merchantId-- Returns:
- the current
GooglePayInfoinstance, allowing for method chaining
-
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)
Google Pay [Merchant ID](https://support.google.com/paymentscenter/answer/7163092?hl=en). Character length and limitations: 16 alphanumeric characters or 20 numeric characters.- Parameters:
merchantId-
-
reuseMerchantId
public GooglePayInfo reuseMerchantId(Boolean reuseMerchantId)
Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**.- Parameters:
reuseMerchantId-- Returns:
- the current
GooglePayInfoinstance, allowing for method chaining
-
getReuseMerchantId
public Boolean getReuseMerchantId()
Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**.- Returns:
- reuseMerchantId
-
setReuseMerchantId
public void setReuseMerchantId(Boolean reuseMerchantId)
Indicates whether the Google Pay Merchant ID is used for several merchant accounts. Default value: **false**.- Parameters:
reuseMerchantId-
-
equals
public boolean equals(Object o)
Return true if this GooglePayInfo object is equal to o.
-
fromJson
public static GooglePayInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GooglePayInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GooglePayInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GooglePayInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GooglePayInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-