Package com.adyen.model.checkout
Class CreateApplePaySessionRequest
- java.lang.Object
-
- com.adyen.model.checkout.CreateApplePaySessionRequest
-
public class CreateApplePaySessionRequest extends Object
CreateApplePaySessionRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateApplePaySessionRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DISPLAY_NAMEstatic StringSERIALIZED_NAME_DOMAIN_NAMEstatic StringSERIALIZED_NAME_MERCHANT_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description CreateApplePaySessionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateApplePaySessionRequestdisplayName(String displayName)CreateApplePaySessionRequestdomainName(String domainName)booleanequals(Object o)static CreateApplePaySessionRequestfromJson(String jsonString)Create an instance of CreateApplePaySessionRequest given an JSON stringStringgetDisplayName()This is the name that your shoppers will see in the Apple Pay interface.StringgetDomainName()The domain name you provided when you added Apple Pay in your Customer Area.StringgetMerchantIdentifier()Your merchant identifier registered with Apple Pay.inthashCode()CreateApplePaySessionRequestmerchantIdentifier(String merchantIdentifier)voidsetDisplayName(String displayName)voidsetDomainName(String domainName)voidsetMerchantIdentifier(String merchantIdentifier)StringtoJson()Convert an instance of CreateApplePaySessionRequest 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_DISPLAY_NAME
public static final String SERIALIZED_NAME_DISPLAY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOMAIN_NAME
public static final String SERIALIZED_NAME_DOMAIN_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_IDENTIFIER
public static final String SERIALIZED_NAME_MERCHANT_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
displayName
public CreateApplePaySessionRequest displayName(String displayName)
-
getDisplayName
public String getDisplayName()
This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.- Returns:
- displayName
-
setDisplayName
public void setDisplayName(String displayName)
-
domainName
public CreateApplePaySessionRequest domainName(String domainName)
-
getDomainName
public String getDomainName()
The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop.- Returns:
- domainName
-
setDomainName
public void setDomainName(String domainName)
-
merchantIdentifier
public CreateApplePaySessionRequest merchantIdentifier(String merchantIdentifier)
-
getMerchantIdentifier
public String getMerchantIdentifier()
Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response.- Returns:
- merchantIdentifier
-
setMerchantIdentifier
public void setMerchantIdentifier(String merchantIdentifier)
-
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 CreateApplePaySessionRequest
-
fromJson
public static CreateApplePaySessionRequest fromJson(String jsonString) throws IOException
Create an instance of CreateApplePaySessionRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateApplePaySessionRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateApplePaySessionRequest
-
toJson
public String toJson()
Convert an instance of CreateApplePaySessionRequest to an JSON string- Returns:
- JSON string
-
-