Package model

Class ApplePaySessionRequest

java.lang.Object
model.ApplePaySessionRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]") public class ApplePaySessionRequest extends Object
ApplePaySessionRequest
  • Field Details

  • Constructor Details

    • ApplePaySessionRequest

      public ApplePaySessionRequest()
  • Method Details

    • 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.1
      Returns:
      displayName
    • setDisplayName

      public void setDisplayName(String displayName)
    • domain

      public ApplePaySessionRequest domain(String domain)
    • getDomain

      @Nullable public String getDomain()
      The domain 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 validation URL that will be provided by the Apple SDK front-end for every payment.
      Returns:
      validationUrl
    • setValidationUrl

      public void setValidationUrl(String validationUrl)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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