Package com.adyen.model.checkout
Class PayPalDetails
- java.lang.Object
-
- com.adyen.model.checkout.PayPalDetails
-
public class PayPalDetails extends Object
PayPalDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayPalDetails.SubtypeEnumThe type of flow to initiate.static classPayPalDetails.TypeEnum**paypal**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_ORDER_I_Dstatic StringJSON_PROPERTY_PAYEE_PREFERREDstatic StringJSON_PROPERTY_PAYER_I_Dstatic StringJSON_PROPERTY_PAYER_SELECTEDstatic StringJSON_PROPERTY_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_IDstatic StringJSON_PROPERTY_SUBTYPEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description PayPalDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PayPalDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)Return true if this PayPalDetails object is equal to o.static PayPalDetailsfromJson(String jsonString)Create an instance of PayPalDetails given an JSON stringStringgetCheckoutAttemptId()The checkout attempt identifier.StringgetOrderID()The unique ID associated with the order.StringgetPayeePreferred()IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTEDStringgetPayerID()The unique ID associated with the payer.StringgetPayerSelected()PAYPAL or PAYPAL_CREDITStringgetRecurringDetailReference()Deprecated.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.PayPalDetails.SubtypeEnumgetSubtype()The type of flow to initiate.PayPalDetails.TypeEnumgetType()**paypal**inthashCode()PayPalDetailsorderID(String orderID)PayPalDetailspayeePreferred(String payeePreferred)PayPalDetailspayerID(String payerID)PayPalDetailspayerSelected(String payerSelected)PayPalDetailsrecurringDetailReference(String recurringDetailReference)Deprecated.voidsetCheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.voidsetOrderID(String orderID)The unique ID associated with the order.voidsetPayeePreferred(String payeePreferred)IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTEDvoidsetPayerID(String payerID)The unique ID associated with the payer.voidsetPayerSelected(String payerSelected)PAYPAL or PAYPAL_CREDITvoidsetRecurringDetailReference(String recurringDetailReference)Deprecated.voidsetStoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.voidsetSubtype(PayPalDetails.SubtypeEnum subtype)The type of flow to initiate.voidsetType(PayPalDetails.TypeEnum type)**paypal**PayPalDetailsstoredPaymentMethodId(String storedPaymentMethodId)PayPalDetailssubtype(PayPalDetails.SubtypeEnum subtype)StringtoJson()Convert an instance of PayPalDetails to an JSON stringStringtoString()PayPalDetailstype(PayPalDetails.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORDER_I_D
public static final String JSON_PROPERTY_ORDER_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYEE_PREFERRED
public static final String JSON_PROPERTY_PAYEE_PREFERRED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYER_I_D
public static final String JSON_PROPERTY_PAYER_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYER_SELECTED
public static final String JSON_PROPERTY_PAYER_SELECTED
- 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_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUBTYPE
public static final String JSON_PROPERTY_SUBTYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public PayPalDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId-
-
orderID
public PayPalDetails orderID(String orderID)
-
getOrderID
public String getOrderID()
The unique ID associated with the order.- Returns:
- orderID
-
setOrderID
public void setOrderID(String orderID)
The unique ID associated with the order.- Parameters:
orderID-
-
payeePreferred
public PayPalDetails payeePreferred(String payeePreferred)
-
getPayeePreferred
public String getPayeePreferred()
IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED- Returns:
- payeePreferred
-
setPayeePreferred
public void setPayeePreferred(String payeePreferred)
IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED- Parameters:
payeePreferred-
-
payerID
public PayPalDetails payerID(String payerID)
-
getPayerID
public String getPayerID()
The unique ID associated with the payer.- Returns:
- payerID
-
setPayerID
public void setPayerID(String payerID)
The unique ID associated with the payer.- Parameters:
payerID-
-
payerSelected
public PayPalDetails payerSelected(String payerSelected)
-
getPayerSelected
public String getPayerSelected()
PAYPAL or PAYPAL_CREDIT- Returns:
- payerSelected
-
setPayerSelected
public void setPayerSelected(String payerSelected)
PAYPAL or PAYPAL_CREDIT- Parameters:
payerSelected-
-
recurringDetailReference
@Deprecated public PayPalDetails recurringDetailReference(String recurringDetailReference)
Deprecated.
-
getRecurringDetailReference
@Deprecated public String getRecurringDetailReference()
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
@Deprecated public void setRecurringDetailReference(String recurringDetailReference)
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
recurringDetailReference-
-
storedPaymentMethodId
public PayPalDetails storedPaymentMethodId(String storedPaymentMethodId)
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-
-
subtype
public PayPalDetails subtype(PayPalDetails.SubtypeEnum subtype)
-
getSubtype
public PayPalDetails.SubtypeEnum getSubtype()
The type of flow to initiate.- Returns:
- subtype
-
setSubtype
public void setSubtype(PayPalDetails.SubtypeEnum subtype)
The type of flow to initiate.- Parameters:
subtype-
-
type
public PayPalDetails type(PayPalDetails.TypeEnum type)
-
getType
public PayPalDetails.TypeEnum getType()
**paypal**- Returns:
- type
-
setType
public void setType(PayPalDetails.TypeEnum type)
**paypal**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this PayPalDetails object is equal to o.
-
fromJson
public static PayPalDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PayPalDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayPalDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PayPalDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PayPalDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-