Package com.adyen.model.checkout
Class ApplePaySessionResponse
- java.lang.Object
-
- com.adyen.model.checkout.ApplePaySessionResponse
-
public class ApplePaySessionResponse extends Object
ApplePaySessionResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplePaySessionResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATA
-
Constructor Summary
Constructors Constructor Description ApplePaySessionResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplePaySessionResponsedata(String data)booleanequals(Object o)static ApplePaySessionResponsefromJson(String jsonString)Create an instance of ApplePaySessionResponse given an JSON stringStringgetData()Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation).inthashCode()voidsetData(String data)StringtoJson()Convert an instance of ApplePaySessionResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
data
public ApplePaySessionResponse data(String data)
-
getData
public String getData()
Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation).- Returns:
- data
-
setData
public void setData(String data)
-
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 ApplePaySessionResponse
-
fromJson
public static ApplePaySessionResponse fromJson(String jsonString) throws IOException
Create an instance of ApplePaySessionResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplePaySessionResponse
- Throws:
IOException- if the JSON string is invalid with respect to ApplePaySessionResponse
-
toJson
public String toJson()
Convert an instance of ApplePaySessionResponse to an JSON string- Returns:
- JSON string
-
-