Package com.adyen.model.recurring
Class DisablePermitRequest
- java.lang.Object
-
- com.adyen.model.recurring.DisablePermitRequest
-
public class DisablePermitRequest extends Object
DisablePermitRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_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)Return true if this DisablePermitRequest object is equal to 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)The merchant account identifier, with which you want to process the transaction.voidsetMerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.voidsetToken(String token)The permit token to disable.StringtoJson()Convert an instance of DisablePermitRequest to an JSON stringDisablePermitRequesttoken(String token)The permit token to disable.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN
public static final String JSON_PROPERTY_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public DisablePermitRequest merchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-- Returns:
- the current
DisablePermitRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-
-
token
public DisablePermitRequest token(String token)
The permit token to disable.- Parameters:
token-- Returns:
- the current
DisablePermitRequestinstance, allowing for method chaining
-
getToken
public String getToken()
The permit token to disable.- Returns:
- token
-
setToken
public void setToken(String token)
The permit token to disable.- Parameters:
token-
-
equals
public boolean equals(Object o)
Return true if this DisablePermitRequest object is equal to o.
-
fromJson
public static DisablePermitRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DisablePermitRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DisablePermitRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DisablePermitRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DisablePermitRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-