Package com.adyen.model.checkout
Class ApplePaySessionRequest
- java.lang.Object
-
- com.adyen.model.checkout.ApplePaySessionRequest
-
public class ApplePaySessionRequest extends Object
ApplePaySessionRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DISPLAY_NAMEstatic StringJSON_PROPERTY_DOMAIN_NAMEstatic StringJSON_PROPERTY_MERCHANT_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description ApplePaySessionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplePaySessionRequestdisplayName(String displayName)ApplePaySessionRequestdomainName(String domainName)booleanequals(Object o)Return true if this ApplePaySessionRequest object is equal to o.static ApplePaySessionRequestfromJson(String jsonString)Create an instance of ApplePaySessionRequest 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()ApplePaySessionRequestmerchantIdentifier(String merchantIdentifier)voidsetDisplayName(String displayName)This is the name that your shoppers will see in the Apple Pay interface.voidsetDomainName(String domainName)The domain name you provided when you added Apple Pay in your Customer Area.voidsetMerchantIdentifier(String merchantIdentifier)Your merchant identifier registered with Apple Pay.StringtoJson()Convert an instance of ApplePaySessionRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DISPLAY_NAME
public static final String JSON_PROPERTY_DISPLAY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOMAIN_NAME
public static final String JSON_PROPERTY_DOMAIN_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_IDENTIFIER
public static final String JSON_PROPERTY_MERCHANT_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
displayName
public ApplePaySessionRequest 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)
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.- Parameters:
displayName-
-
domainName
public ApplePaySessionRequest 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)
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.- Parameters:
domainName-
-
merchantIdentifier
public ApplePaySessionRequest 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)
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.- Parameters:
merchantIdentifier-
-
equals
public boolean equals(Object o)
Return true if this ApplePaySessionRequest object is equal to o.
-
fromJson
public static ApplePaySessionRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ApplePaySessionRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplePaySessionRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ApplePaySessionRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ApplePaySessionRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-