Package com.adyen.model.checkout
Class SamsungPayDetails
- java.lang.Object
-
- com.adyen.model.checkout.SamsungPayDetails
-
public class SamsungPayDetails extends Object
SamsungPayDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSamsungPayDetails.CustomTypeAdapterFactorystatic classSamsungPayDetails.FundingSourceEnumThe funding source that should be used when multiple sources are available.static classSamsungPayDetails.TypeEnum**samsungpay**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKOUT_ATTEMPT_IDstatic StringSERIALIZED_NAME_FUNDING_SOURCEstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_SAMSUNG_PAY_TOKENstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHOD_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description SamsungPayDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SamsungPayDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)static SamsungPayDetailsfromJson(String jsonString)Create an instance of SamsungPayDetails given an JSON stringSamsungPayDetailsfundingSource(SamsungPayDetails.FundingSourceEnum fundingSource)StringgetCheckoutAttemptId()The checkout attempt identifier.SamsungPayDetails.FundingSourceEnumgetFundingSource()The funding source that should be used when multiple sources are available.StringgetRecurringDetailReference()Deprecated.StringgetSamsungPayToken()The payload you received from the Samsung Pay SDK response.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.SamsungPayDetails.TypeEnumgetType()**samsungpay**inthashCode()SamsungPayDetailsrecurringDetailReference(String recurringDetailReference)Deprecated.SamsungPayDetailssamsungPayToken(String samsungPayToken)voidsetCheckoutAttemptId(String checkoutAttemptId)voidsetFundingSource(SamsungPayDetails.FundingSourceEnum fundingSource)voidsetRecurringDetailReference(String recurringDetailReference)Deprecated.voidsetSamsungPayToken(String samsungPayToken)voidsetStoredPaymentMethodId(String storedPaymentMethodId)voidsetType(SamsungPayDetails.TypeEnum type)SamsungPayDetailsstoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of SamsungPayDetails to an JSON stringStringtoString()SamsungPayDetailstype(SamsungPayDetails.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_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_SAMSUNG_PAY_TOKEN
public static final String SERIALIZED_NAME_SAMSUNG_PAY_TOKEN
- 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
-
checkoutAttemptId
public SamsungPayDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
-
fundingSource
public SamsungPayDetails fundingSource(SamsungPayDetails.FundingSourceEnum fundingSource)
-
getFundingSource
public SamsungPayDetails.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(SamsungPayDetails.FundingSourceEnum fundingSource)
-
recurringDetailReference
@Deprecated public SamsungPayDetails 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.
-
samsungPayToken
public SamsungPayDetails samsungPayToken(String samsungPayToken)
-
getSamsungPayToken
public String getSamsungPayToken()
The payload you received from the Samsung Pay SDK response.- Returns:
- samsungPayToken
-
setSamsungPayToken
public void setSamsungPayToken(String samsungPayToken)
-
storedPaymentMethodId
public SamsungPayDetails 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 SamsungPayDetails type(SamsungPayDetails.TypeEnum type)
-
getType
public SamsungPayDetails.TypeEnum getType()
**samsungpay**- Returns:
- type
-
setType
public void setType(SamsungPayDetails.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 SamsungPayDetails
-
fromJson
public static SamsungPayDetails fromJson(String jsonString) throws IOException
Create an instance of SamsungPayDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SamsungPayDetails
- Throws:
IOException- if the JSON string is invalid with respect to SamsungPayDetails
-
toJson
public String toJson()
Convert an instance of SamsungPayDetails to an JSON string- Returns:
- JSON string
-
-