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.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 StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_FUNDING_SOURCEstatic StringJSON_PROPERTY_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_SAMSUNG_PAY_TOKENstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_IDstatic StringJSON_PROPERTY_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)Return true if this SamsungPayDetails object is equal to 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)The checkout attempt identifier.voidsetFundingSource(SamsungPayDetails.FundingSourceEnum fundingSource)The funding source that should be used when multiple sources are available.voidsetRecurringDetailReference(String recurringDetailReference)Deprecated.voidsetSamsungPayToken(String samsungPayToken)The payload you received from the Samsung Pay SDK response.voidsetStoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.voidsetType(SamsungPayDetails.TypeEnum type)**samsungpay**SamsungPayDetailsstoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of SamsungPayDetails to an JSON stringStringtoString()SamsungPayDetailstype(SamsungPayDetails.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_FUNDING_SOURCE
public static final String JSON_PROPERTY_FUNDING_SOURCE
- 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_SAMSUNG_PAY_TOKEN
public static final String JSON_PROPERTY_SAMSUNG_PAY_TOKEN
- 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_TYPE
public static final String JSON_PROPERTY_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)
The checkout attempt identifier.- Parameters:
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)
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**.- Parameters:
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.This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
recurringDetailReference-
-
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)
The payload you received from the Samsung Pay SDK response.- Parameters:
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)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-
-
type
public SamsungPayDetails type(SamsungPayDetails.TypeEnum type)
-
getType
public SamsungPayDetails.TypeEnum getType()
**samsungpay**- Returns:
- type
-
setType
public void setType(SamsungPayDetails.TypeEnum type)
**samsungpay**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this SamsungPayDetails object is equal to o.
-
fromJson
public static SamsungPayDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SamsungPayDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SamsungPayDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SamsungPayDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SamsungPayDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-