Class Session.CustomerDetails

    • Constructor Detail

      • CustomerDetails

        public CustomerDetails()
    • Method Detail

      • getEmail

        public java.lang.String getEmail()
        The email associated with the Customer, if one exists, on the Checkout Session at the time of checkout or at time of session expiry. Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form.
      • getPhone

        public java.lang.String getPhone()
        The customer's phone number at the time of checkout.
      • getTaxExempt

        public java.lang.String getTaxExempt()
        The customer’s tax exempt status at time of checkout.

        One of exempt, none, or reverse.

      • setEmail

        public void setEmail​(java.lang.String email)
        The email associated with the Customer, if one exists, on the Checkout Session at the time of checkout or at time of session expiry. Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form.
      • setPhone

        public void setPhone​(java.lang.String phone)
        The customer's phone number at the time of checkout.
      • setTaxExempt

        public void setTaxExempt​(java.lang.String taxExempt)
        The customer’s tax exempt status at time of checkout.

        One of exempt, none, or reverse.

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object