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 stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.StringgetToken()The permit token to disable.inthashCode()DisablePermitRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.DisablePermitRequestmerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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- The merchant account identifier, with which you want to process the transaction.- 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 The merchant account identifier, with which you want to process the transaction.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount- The merchant account identifier, with which you want to process the transaction.
-
token
public DisablePermitRequest token(String token)
The permit token to disable.- Parameters:
token- The permit token to disable.- Returns:
- the current
DisablePermitRequestinstance, allowing for method chaining
-
getToken
public String getToken()
The permit token to disable.- Returns:
- token The permit token to disable.
-
setToken
public void setToken(String token)
The permit token to disable.- Parameters:
token- The permit token to disable.
-
includeNullValues
public DisablePermitRequest includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this DisablePermitRequest object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-