Package com.adyen.model.recurring
Class DisableRequest
- java.lang.Object
-
- com.adyen.model.recurring.DisableRequest
-
public class DisableRequest extends Object
DisableRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTRACTstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_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)Specify the contract if you only want to disable a specific use.booleanequals(Object o)Return true if this DisableRequest object is equal to 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)The merchant account identifier with which you want to process the transaction.DisableRequestrecurringDetailReference(String recurringDetailReference)The ID that uniquely identifies the recurring detail reference.voidsetContract(String contract)Specify the contract if you only want to disable a specific use.voidsetMerchantAccount(String merchantAccount)The merchant account identifier with which you want to process the transaction.voidsetRecurringDetailReference(String recurringDetailReference)The ID that uniquely identifies the recurring detail reference.voidsetShopperReference(String shopperReference)The ID that uniquely identifies the shopper.DisableRequestshopperReference(String shopperReference)The ID that uniquely identifies the shopper.StringtoJson()Convert an instance of DisableRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONTRACT
public static final String JSON_PROPERTY_CONTRACT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
contract
public DisableRequest contract(String contract)
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- Parameters:
contract-- Returns:
- the current
DisableRequestinstance, allowing for method chaining
-
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)
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- Parameters:
contract-
-
merchantAccount
public DisableRequest merchantAccount(String merchantAccount)
The merchant account identifier with which you want to process the transaction.- Parameters:
merchantAccount-- Returns:
- the current
DisableRequestinstance, 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-
-
recurringDetailReference
public DisableRequest recurringDetailReference(String recurringDetailReference)
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.- Parameters:
recurringDetailReference-- Returns:
- the current
DisableRequestinstance, allowing for method chaining
-
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)
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.- Parameters:
recurringDetailReference-
-
shopperReference
public DisableRequest shopperReference(String shopperReference)
The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.- Parameters:
shopperReference-- Returns:
- the current
DisableRequestinstance, allowing for method chaining
-
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)
The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.- Parameters:
shopperReference-
-
equals
public boolean equals(Object o)
Return true if this DisableRequest object is equal to o.
-
fromJson
public static DisableRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DisableRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DisableRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DisableRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DisableRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-