Package com.adyen.model.recurring
Class CreatePermitRequest
- java.lang.Object
-
- com.adyen.model.recurring.CreatePermitRequest
-
public class CreatePermitRequest extends Object
CreatePermitRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PERMITSstatic StringJSON_PROPERTY_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_SHOPPER_REFERENCE
-
Constructor Summary
Constructors Constructor Description CreatePermitRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePermitRequestaddPermitsItem(Permit permitsItem)booleanequals(Object o)Return true if this CreatePermitRequest object is equal to o.static CreatePermitRequestfromJson(String jsonString)Create an instance of CreatePermitRequest given an JSON stringStringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.List<Permit>getPermits()The permits to create for this recurring contract.StringgetRecurringDetailReference()The recurring contract the new permits will use.StringgetShopperReference()The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).inthashCode()CreatePermitRequestmerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.CreatePermitRequestpermits(List<Permit> permits)The permits to create for this recurring contract.CreatePermitRequestrecurringDetailReference(String recurringDetailReference)The recurring contract the new permits will use.voidsetMerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.voidsetPermits(List<Permit> permits)The permits to create for this recurring contract.voidsetRecurringDetailReference(String recurringDetailReference)The recurring contract the new permits will use.voidsetShopperReference(String shopperReference)The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).CreatePermitRequestshopperReference(String shopperReference)The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).StringtoJson()Convert an instance of CreatePermitRequest 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_PERMITS
public static final String JSON_PROPERTY_PERMITS
- 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
-
merchantAccount
public CreatePermitRequest merchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-- Returns:
- the current
CreatePermitRequestinstance, 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-
-
permits
public CreatePermitRequest permits(List<Permit> permits)
The permits to create for this recurring contract.- Parameters:
permits-- Returns:
- the current
CreatePermitRequestinstance, allowing for method chaining
-
addPermitsItem
public CreatePermitRequest addPermitsItem(Permit permitsItem)
-
getPermits
public List<Permit> getPermits()
The permits to create for this recurring contract.- Returns:
- permits
-
setPermits
public void setPermits(List<Permit> permits)
The permits to create for this recurring contract.- Parameters:
permits-
-
recurringDetailReference
public CreatePermitRequest recurringDetailReference(String recurringDetailReference)
The recurring contract the new permits will use.- Parameters:
recurringDetailReference-- Returns:
- the current
CreatePermitRequestinstance, allowing for method chaining
-
getRecurringDetailReference
public String getRecurringDetailReference()
The recurring contract the new permits will use.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String recurringDetailReference)
The recurring contract the new permits will use.- Parameters:
recurringDetailReference-
-
shopperReference
public CreatePermitRequest shopperReference(String shopperReference)
The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).- Parameters:
shopperReference-- Returns:
- the current
CreatePermitRequestinstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID).- Parameters:
shopperReference-
-
equals
public boolean equals(Object o)
Return true if this CreatePermitRequest object is equal to o.
-
fromJson
public static CreatePermitRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreatePermitRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreatePermitRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreatePermitRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreatePermitRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-