Package com.adyen.model.checkout
Class PaymentDetails
- java.lang.Object
-
- com.adyen.model.checkout.PaymentDetails
-
public class PaymentDetails extends Object
PaymentDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentDetails.TypeEnumThe payment method type.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_SDK_DATAstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentDetailscheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.booleanequals(Object o)Return true if this PaymentDetails object is equal to o.static PaymentDetailsfromJson(String jsonString)Create an instance of PaymentDetails given an JSON stringStringgetCheckoutAttemptId()The checkout attempt identifier.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetSdkData()Base64-encoded JSON object containing SDK related parameters required by the SDKPaymentDetails.TypeEnumgetType()The payment method type.inthashCode()PaymentDetailsincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentDetailssdkData(String sdkData)Base64-encoded JSON object containing SDK related parameters required by the SDKvoidsetCheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetSdkData(String sdkData)Base64-encoded JSON object containing SDK related parameters required by the SDKvoidsetType(PaymentDetails.TypeEnum type)The payment method type.StringtoJson()Convert an instance of PaymentDetails to an JSON stringStringtoString()PaymentDetailstype(PaymentDetails.TypeEnum type)The payment method type.
-
-
-
Field Detail
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SDK_DATA
public static final String JSON_PROPERTY_SDK_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public PaymentDetails checkoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId- The checkout attempt identifier.- Returns:
- the current
PaymentDetailsinstance, allowing for method chaining
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId The checkout attempt identifier.
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId- The checkout attempt identifier.
-
sdkData
public PaymentDetails sdkData(String sdkData)
Base64-encoded JSON object containing SDK related parameters required by the SDK- Parameters:
sdkData- Base64-encoded JSON object containing SDK related parameters required by the SDK- Returns:
- the current
PaymentDetailsinstance, allowing for method chaining
-
getSdkData
public String getSdkData()
Base64-encoded JSON object containing SDK related parameters required by the SDK- Returns:
- sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
-
setSdkData
public void setSdkData(String sdkData)
Base64-encoded JSON object containing SDK related parameters required by the SDK- Parameters:
sdkData- Base64-encoded JSON object containing SDK related parameters required by the SDK
-
type
public PaymentDetails type(PaymentDetails.TypeEnum type)
The payment method type.- Parameters:
type- The payment method type.- Returns:
- the current
PaymentDetailsinstance, allowing for method chaining
-
getType
public PaymentDetails.TypeEnum getType()
The payment method type.- Returns:
- type The payment method type.
-
setType
public void setType(PaymentDetails.TypeEnum type)
The payment method type.- Parameters:
type- The payment method type.
-
includeNullValues
public PaymentDetails includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaymentDetails object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static PaymentDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-