Package com.adyen.model.recurring
Class DisablePermitRequest
- java.lang.Object
-
- com.adyen.model.recurring.DisablePermitRequest
-
public class DisablePermitRequest extends Object
DisablePermitRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDisablePermitRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_TOKEN
-
Constructor Summary
Constructors Constructor Description DisablePermitRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static DisablePermitRequestfromJson(String jsonString)Create an instance of DisablePermitRequest given an JSON stringStringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.StringgetToken()The permit token to disable.inthashCode()DisablePermitRequestmerchantAccount(String merchantAccount)voidsetMerchantAccount(String merchantAccount)voidsetToken(String token)StringtoJson()Convert an instance of DisablePermitRequest to an JSON stringDisablePermitRequesttoken(String token)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public DisablePermitRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
token
public DisablePermitRequest token(String token)
-
getToken
public String getToken()
The permit token to disable.- Returns:
- token
-
setToken
public void setToken(String token)
-
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 DisablePermitRequest
-
fromJson
public static DisablePermitRequest fromJson(String jsonString) throws IOException
Create an instance of DisablePermitRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DisablePermitRequest
- Throws:
IOException- if the JSON string is invalid with respect to DisablePermitRequest
-
toJson
public String toJson()
Convert an instance of DisablePermitRequest to an JSON string- Returns:
- JSON string
-
-