Package com.adyen.model.checkout
Class PaymentSetupResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentSetupResponse
-
public class PaymentSetupResponse extends Object
PaymentSetupResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentSetupResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PAYMENT_SESSIONstatic StringSERIALIZED_NAME_RECURRING_DETAILS
-
Constructor Summary
Constructors Constructor Description PaymentSetupResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PaymentSetupResponseaddRecurringDetailsItem(RecurringDetail recurringDetailsItem)booleanequals(Object o)static PaymentSetupResponsefromJson(String jsonString)Create an instance of PaymentSetupResponse given an JSON stringStringgetPaymentSession()The encoded payment session that you need to pass to the SDK.List<RecurringDetail>getRecurringDetails()Deprecated.inthashCode()PaymentSetupResponsepaymentSession(String paymentSession)PaymentSetupResponserecurringDetails(List<RecurringDetail> recurringDetails)Deprecated.voidsetPaymentSession(String paymentSession)voidsetRecurringDetails(List<RecurringDetail> recurringDetails)Deprecated.StringtoJson()Convert an instance of PaymentSetupResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PAYMENT_SESSION
public static final String SERIALIZED_NAME_PAYMENT_SESSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAILS
public static final String SERIALIZED_NAME_RECURRING_DETAILS
- See Also:
- Constant Field Values
-
-
Method Detail
-
paymentSession
public PaymentSetupResponse paymentSession(String paymentSession)
-
getPaymentSession
public String getPaymentSession()
The encoded payment session that you need to pass to the SDK.- Returns:
- paymentSession
-
setPaymentSession
public void setPaymentSession(String paymentSession)
-
recurringDetails
@Deprecated public PaymentSetupResponse recurringDetails(List<RecurringDetail> recurringDetails)
Deprecated.
-
addRecurringDetailsItem
public PaymentSetupResponse addRecurringDetailsItem(RecurringDetail recurringDetailsItem)
-
getRecurringDetails
@Deprecated public List<RecurringDetail> getRecurringDetails()
Deprecated.The detailed list of stored payment details required to generate payment forms. Will be empty if oneClick is set to false in the request.- Returns:
- recurringDetails
-
setRecurringDetails
@Deprecated public void setRecurringDetails(List<RecurringDetail> recurringDetails)
Deprecated.
-
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 PaymentSetupResponse
-
fromJson
public static PaymentSetupResponse fromJson(String jsonString) throws IOException
Create an instance of PaymentSetupResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentSetupResponse
- Throws:
IOException- if the JSON string is invalid with respect to PaymentSetupResponse
-
toJson
public String toJson()
Convert an instance of PaymentSetupResponse to an JSON string- Returns:
- JSON string
-
-