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.CustomTypeAdapterFactorystatic classPayPalDetails.SubtypeEnumThe type of flow to initiate.static classPayPalDetails.TypeEnum**paypal**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKOUT_ATTEMPT_IDstatic StringSERIALIZED_NAME_ORDER_I_Dstatic StringSERIALIZED_NAME_PAYER_I_Dstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHOD_IDstatic StringSERIALIZED_NAME_SUBTYPEstatic StringSERIALIZED_NAME_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)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.StringgetPayerID()The unique ID associated with the payer.StringgetRecurringDetailReference()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)PayPalDetailspayerID(String payerID)PayPalDetailsrecurringDetailReference(String recurringDetailReference)voidsetCheckoutAttemptId(String checkoutAttemptId)voidsetOrderID(String orderID)voidsetPayerID(String payerID)voidsetRecurringDetailReference(String recurringDetailReference)voidsetStoredPaymentMethodId(String storedPaymentMethodId)voidsetSubtype(PayPalDetails.SubtypeEnum subtype)voidsetType(PayPalDetails.TypeEnum type)PayPalDetailsstoredPaymentMethodId(String storedPaymentMethodId)PayPalDetailssubtype(PayPalDetails.SubtypeEnum subtype)StringtoJson()Convert an instance of PayPalDetails to an JSON stringStringtoString()PayPalDetailstype(PayPalDetails.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
public static final String SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORDER_I_D
public static final String SERIALIZED_NAME_ORDER_I_D
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYER_I_D
public static final String SERIALIZED_NAME_PAYER_I_D
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
public static final String SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
public static final String SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBTYPE
public static final String SERIALIZED_NAME_SUBTYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_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)
-
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)
-
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)
-
recurringDetailReference
public PayPalDetails recurringDetailReference(String recurringDetailReference)
-
getRecurringDetailReference
@Deprecated public String getRecurringDetailReference()
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String 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)
-
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)
-
type
public PayPalDetails type(PayPalDetails.TypeEnum type)
-
getType
public PayPalDetails.TypeEnum getType()
**paypal**- Returns:
- type
-
setType
public void setType(PayPalDetails.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to PayPalDetails
-
fromJson
public static PayPalDetails fromJson(String jsonString) throws IOException
Create an instance of PayPalDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayPalDetails
- Throws:
IOException- if the JSON string is invalid with respect to PayPalDetails
-
toJson
public String toJson()
Convert an instance of PayPalDetails to an JSON string- Returns:
- JSON string
-
-