Package com.adyen.model.checkout
Class ApplePayDetails
- java.lang.Object
-
- com.adyen.model.checkout.ApplePayDetails
-
public class ApplePayDetails extends Object
ApplePayDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplePayDetails.CustomTypeAdapterFactorystatic classApplePayDetails.FundingSourceEnumThe funding source that should be used when multiple sources are available.static classApplePayDetails.TypeEnum**applepay**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APPLE_PAY_TOKENstatic StringSERIALIZED_NAME_CHECKOUT_ATTEMPT_IDstatic StringSERIALIZED_NAME_FUNDING_SOURCEstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHOD_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description ApplePayDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApplePayDetailsapplePayToken(String applePayToken)ApplePayDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)static ApplePayDetailsfromJson(String jsonString)Create an instance of ApplePayDetails given an JSON stringApplePayDetailsfundingSource(ApplePayDetails.FundingSourceEnum fundingSource)StringgetApplePayToken()The stringified and base64 encoded `paymentData` you retrieved from the Apple framework.StringgetCheckoutAttemptId()The checkout attempt identifier.ApplePayDetails.FundingSourceEnumgetFundingSource()The funding source that should be used when multiple sources are available.StringgetRecurringDetailReference()Deprecated.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.ApplePayDetails.TypeEnumgetType()**applepay**inthashCode()ApplePayDetailsrecurringDetailReference(String recurringDetailReference)voidsetApplePayToken(String applePayToken)voidsetCheckoutAttemptId(String checkoutAttemptId)voidsetFundingSource(ApplePayDetails.FundingSourceEnum fundingSource)voidsetRecurringDetailReference(String recurringDetailReference)voidsetStoredPaymentMethodId(String storedPaymentMethodId)voidsetType(ApplePayDetails.TypeEnum type)ApplePayDetailsstoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of ApplePayDetails to an JSON stringStringtoString()ApplePayDetailstype(ApplePayDetails.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_APPLE_PAY_TOKEN
public static final String SERIALIZED_NAME_APPLE_PAY_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
public static final String SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FUNDING_SOURCE
public static final String SERIALIZED_NAME_FUNDING_SOURCE
- 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_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
applePayToken
public ApplePayDetails applePayToken(String applePayToken)
-
getApplePayToken
public String getApplePayToken()
The stringified and base64 encoded `paymentData` you retrieved from the Apple framework.- Returns:
- applePayToken
-
setApplePayToken
public void setApplePayToken(String applePayToken)
-
checkoutAttemptId
public ApplePayDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
-
fundingSource
public ApplePayDetails fundingSource(ApplePayDetails.FundingSourceEnum fundingSource)
-
getFundingSource
public ApplePayDetails.FundingSourceEnum getFundingSource()
The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.- Returns:
- fundingSource
-
setFundingSource
public void setFundingSource(ApplePayDetails.FundingSourceEnum fundingSource)
-
recurringDetailReference
public ApplePayDetails 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 ApplePayDetails 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)
-
type
public ApplePayDetails type(ApplePayDetails.TypeEnum type)
-
getType
public ApplePayDetails.TypeEnum getType()
**applepay**- Returns:
- type
-
setType
public void setType(ApplePayDetails.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 ApplePayDetails
-
fromJson
public static ApplePayDetails fromJson(String jsonString) throws IOException
Create an instance of ApplePayDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplePayDetails
- Throws:
IOException- if the JSON string is invalid with respect to ApplePayDetails
-
toJson
public String toJson()
Convert an instance of ApplePayDetails to an JSON string- Returns:
- JSON string
-
-