Package com.adyen.model.checkout
Class PaymentSetupResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentSetupResponse
-
public class PaymentSetupResponse extends Object
PaymentSetupResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PAYMENT_SESSIONstatic StringJSON_PROPERTY_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)Return true if this PaymentSetupResponse object is equal to 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)The encoded payment session that you need to pass to the SDK.voidsetRecurringDetails(List<RecurringDetail> recurringDetails)Deprecated.StringtoJson()Convert an instance of PaymentSetupResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PAYMENT_SESSION
public static final String JSON_PROPERTY_PAYMENT_SESSION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_DETAILS
public static final String JSON_PROPERTY_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)
The encoded payment session that you need to pass to the SDK.- Parameters:
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.The detailed list of stored payment details required to generate payment forms. Will be empty if oneClick is set to false in the request.- Parameters:
recurringDetails-
-
equals
public boolean equals(Object o)
Return true if this PaymentSetupResponse object is equal to o.
-
fromJson
public static PaymentSetupResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentSetupResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentSetupResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentSetupResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentSetupResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-