Package com.adyen.model.recurring
Class RecurringDetailsRequest
- java.lang.Object
-
- com.adyen.model.recurring.RecurringDetailsRequest
-
public class RecurringDetailsRequest extends Object
RecurringDetailsRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_RECURRINGstatic StringJSON_PROPERTY_SHOPPER_REFERENCE
-
Constructor Summary
Constructors Constructor Description RecurringDetailsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this RecurringDetailsRequest object is equal to o.static RecurringDetailsRequestfromJson(String jsonString)Create an instance of RecurringDetailsRequest 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 you want to process the (transaction) request with.RecurringgetRecurring()Get recurringStringgetShopperReference()The reference you use to uniquely identify the shopper (e.g. user ID or account ID).inthashCode()RecurringDetailsRequestincludeNullValues(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.RecurringDetailsRequestmerchantAccount(String merchantAccount)The merchant account identifier you want to process the (transaction) request with.RecurringDetailsRequestrecurring(Recurring recurring)recurringvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccount(String merchantAccount)The merchant account identifier you want to process the (transaction) request with.voidsetRecurring(Recurring recurring)recurringvoidsetShopperReference(String shopperReference)The reference you use to uniquely identify the shopper (e.g. user ID or account ID).RecurringDetailsRequestshopperReference(String shopperReference)The reference you use to uniquely identify the shopper (e.g. user ID or account ID).StringtoJson()Convert an instance of RecurringDetailsRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING
public static final String JSON_PROPERTY_RECURRING
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public RecurringDetailsRequest merchantAccount(String merchantAccount)
The merchant account identifier you want to process the (transaction) request with.- Parameters:
merchantAccount- The merchant account identifier you want to process the (transaction) request with.- Returns:
- the current
RecurringDetailsRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier you want to process the (transaction) request with.- Returns:
- merchantAccount The merchant account identifier you want to process the (transaction) request with.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier you want to process the (transaction) request with.- Parameters:
merchantAccount- The merchant account identifier you want to process the (transaction) request with.
-
recurring
public RecurringDetailsRequest recurring(Recurring recurring)
recurring- Parameters:
recurring-- Returns:
- the current
RecurringDetailsRequestinstance, allowing for method chaining
-
getRecurring
public Recurring getRecurring()
Get recurring- Returns:
- recurring
-
setRecurring
public void setRecurring(Recurring recurring)
recurring- Parameters:
recurring-
-
shopperReference
public RecurringDetailsRequest shopperReference(String shopperReference)
The reference you use to uniquely identify the shopper (e.g. user ID or account ID).- Parameters:
shopperReference- The reference you use to uniquely identify the shopper (e.g. user ID or account ID).- Returns:
- the current
RecurringDetailsRequestinstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
The reference you use to uniquely identify the shopper (e.g. user ID or account ID).- Returns:
- shopperReference The reference you use to uniquely identify the shopper (e.g. user ID or account ID).
-
setShopperReference
public void setShopperReference(String shopperReference)
The reference you use to uniquely identify the shopper (e.g. user ID or account ID).- Parameters:
shopperReference- The reference you use to uniquely identify the shopper (e.g. user ID or account ID).
-
includeNullValues
public RecurringDetailsRequest 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 RecurringDetailsRequest 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 RecurringDetailsRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of RecurringDetailsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RecurringDetailsRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to RecurringDetailsRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of RecurringDetailsRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-