Package model

Class ApplePaySessionRequest


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class ApplePaySessionRequest
    extends Object
    ApplePaySessionRequest
    • Constructor Detail

      • ApplePaySessionRequest

        public ApplePaySessionRequest()
    • Method Detail

      • 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)
      • getDomain

        @Nullable
        public String getDomain()
        The domain (or website) where the buyer is initiating the payment.
        Returns:
        domain
      • setDomain

        public void setDomain​(String domain)
      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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