Package com.adyen.model.recurring
Class DisableRequest
- java.lang.Object
-
- com.adyen.model.recurring.DisableRequest
-
public class DisableRequest extends Object
DisableRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDisableRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CONTRACTstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_SHOPPER_REFERENCE
-
Constructor Summary
Constructors Constructor Description DisableRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DisableRequestcontract(String contract)booleanequals(Object o)static DisableRequestfromJson(String jsonString)Create an instance of DisableRequest given an JSON stringStringgetContract()Specify the contract if you only want to disable a specific use.StringgetMerchantAccount()The merchant account identifier with which you want to process the transaction.StringgetRecurringDetailReference()The ID that uniquely identifies the recurring detail reference.StringgetShopperReference()The ID that uniquely identifies the shopper.inthashCode()DisableRequestmerchantAccount(String merchantAccount)DisableRequestrecurringDetailReference(String recurringDetailReference)voidsetContract(String contract)voidsetMerchantAccount(String merchantAccount)voidsetRecurringDetailReference(String recurringDetailReference)voidsetShopperReference(String shopperReference)DisableRequestshopperReference(String shopperReference)StringtoJson()Convert an instance of DisableRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CONTRACT
public static final String SERIALIZED_NAME_CONTRACT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
public static final String SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
contract
public DisableRequest contract(String contract)
-
getContract
public String getContract()
Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT- Returns:
- contract
-
setContract
public void setContract(String contract)
-
merchantAccount
public DisableRequest 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)
-
recurringDetailReference
public DisableRequest recurringDetailReference(String recurringDetailReference)
-
getRecurringDetailReference
public String getRecurringDetailReference()
The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String recurringDetailReference)
-
shopperReference
public DisableRequest shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
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 DisableRequest
-
fromJson
public static DisableRequest fromJson(String jsonString) throws IOException
Create an instance of DisableRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DisableRequest
- Throws:
IOException- if the JSON string is invalid with respect to DisableRequest
-
toJson
public String toJson()
Convert an instance of DisableRequest to an JSON string- Returns:
- JSON string
-
-