Package model
Class ApplePaySessionRequest
- java.lang.Object
-
- model.ApplePaySessionRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ApplePaySessionRequest extends Object
ApplePaySessionRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplePaySessionRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DISPLAY_NAMEstatic StringSERIALIZED_NAME_DOMAINstatic StringSERIALIZED_NAME_MERCHANT_IDENTITYstatic StringSERIALIZED_NAME_VALIDATION_URL
-
Constructor Summary
Constructors Constructor Description ApplePaySessionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplePaySessionRequestdisplayName(String displayName)ApplePaySessionRequestdomain(String domain)booleanequals(Object o)static ApplePaySessionRequestfromJson(String jsonString)Create an instance of ApplePaySessionRequest given an JSON stringStringgetDisplayName()This will be the merchant name shown to users when making a purchase via Apple Pay.StringgetDomain()The domain (or website) where the buyer is initiating the payment.StringgetMerchantIdentity()The `merchant_identity_id` used when registering the business with Apple Pay through our registration API.StringgetValidationUrl()A unique validation URL that will be provided by the Apple SDK front-end for every payment.inthashCode()ApplePaySessionRequestmerchantIdentity(String merchantIdentity)voidsetDisplayName(String displayName)voidsetDomain(String domain)voidsetMerchantIdentity(String merchantIdentity)voidsetValidationUrl(String validationUrl)StringtoJson()Convert an instance of ApplePaySessionRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundApplePaySessionRequestvalidationUrl(String validationUrl)
-
-
-
Field Detail
-
SERIALIZED_NAME_DISPLAY_NAME
public static final String SERIALIZED_NAME_DISPLAY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOMAIN
public static final String SERIALIZED_NAME_DOMAIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_IDENTITY
public static final String SERIALIZED_NAME_MERCHANT_IDENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALIDATION_URL
public static final String SERIALIZED_NAME_VALIDATION_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
displayName
public ApplePaySessionRequest displayName(String displayName)
-
getDisplayName
@Nullable public String getDisplayName()
This will be the merchant name shown to users when making a purchase via Apple Pay.- Returns:
- displayName
-
setDisplayName
public void setDisplayName(String displayName)
-
domain
public ApplePaySessionRequest domain(String domain)
-
getDomain
@Nullable public String getDomain()
The domain (or website) where the buyer is initiating the payment.- Returns:
- domain
-
setDomain
public void setDomain(String domain)
-
merchantIdentity
public ApplePaySessionRequest merchantIdentity(String merchantIdentity)
-
getMerchantIdentity
@Nullable public String getMerchantIdentity()
The `merchant_identity_id` used when registering the business with Apple Pay through our registration API.- Returns:
- merchantIdentity
-
setMerchantIdentity
public void setMerchantIdentity(String merchantIdentity)
-
validationUrl
public ApplePaySessionRequest validationUrl(String validationUrl)
-
getValidationUrl
@Nullable public String getValidationUrl()
A unique validation URL that will be provided by the Apple SDK front-end for every payment.- Returns:
- validationUrl
-
setValidationUrl
public void setValidationUrl(String validationUrl)
-
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 ApplePaySessionRequest
-
fromJson
public static ApplePaySessionRequest fromJson(String jsonString) throws IOException
Create an instance of ApplePaySessionRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplePaySessionRequest
- Throws:
IOException- if the JSON string is invalid with respect to ApplePaySessionRequest
-
toJson
public String toJson()
Convert an instance of ApplePaySessionRequest to an JSON string- Returns:
- JSON string
-
-