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.Map<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.StringgetRecurringDetailReference()The ID that uniquely identifies the recurring detail reference.StringgetShopperReference()The ID that uniquely identifies the shopper.inthashCode()DisableRequestincludeNullValues(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.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.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.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- 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:
- 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 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
-
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- 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
-
merchantAccount
public DisableRequest 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
DisableRequestinstance, 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.
-
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- 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:
- 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 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.
-
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- 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.
-
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- The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.- 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 The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
-
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- The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
-
includeNullValues
public DisableRequest 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 DisableRequest 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 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
-
-