Class CustomersUpdateRequestBody

java.lang.Object
io.voucherify.client.model.CustomersUpdateRequestBody

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CustomersUpdateRequestBody extends Object
Request body schema for **PUT** `v1/customers/{customerId}`.
  • Field Details

  • Constructor Details

    • CustomersUpdateRequestBody

      public CustomersUpdateRequestBody()
  • Method Details

    • name

      public CustomersUpdateRequestBody name(String name)
    • getName

      @Nullable public String getName()
      Customer's first and last name.
      Returns:
      name
    • setName

      public void setName(String name)
    • description

      public CustomersUpdateRequestBody description(String description)
    • getDescription

      @Nullable public String getDescription()
      An arbitrary string that you can attach to a customer object.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • email

      public CustomersUpdateRequestBody email(String email)
    • getEmail

      @Nullable public String getEmail()
      Customer's email address.
      Returns:
      email
    • setEmail

      public void setEmail(String email)
    • phone

      public CustomersUpdateRequestBody phone(String phone)
    • getPhone

      @Nullable public String getPhone()
      Customer's phone number. This parameter is mandatory when you try to send out codes to customers via an SMS channel.
      Returns:
      phone
    • setPhone

      public void setPhone(String phone)
    • birthday

      public CustomersUpdateRequestBody birthday(LocalDate birthday)
    • getBirthday

      @Nullable public LocalDate getBirthday()
      `Deprecated`. ~~Customer's birthdate; format YYYY-MM-DD~~.
      Returns:
      birthday
    • setBirthday

      public void setBirthday(LocalDate birthday)
    • birthdate

      public CustomersUpdateRequestBody birthdate(LocalDate birthdate)
    • getBirthdate

      @Nullable public LocalDate getBirthdate()
      Customer's birthdate; format YYYY-MM-DD.
      Returns:
      birthdate
    • setBirthdate

      public void setBirthdate(LocalDate birthdate)
    • address

    • getAddress

      @Nullable public CustomersUpdateRequestBodyAddress getAddress()
      Get address
      Returns:
      address
    • setAddress

      public void setAddress(CustomersUpdateRequestBodyAddress address)
    • metadata

      public CustomersUpdateRequestBody metadata(Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      A set of custom key/value pairs that you can attach to a customer. The metadata object stores all custom attributes assigned to the customer. It can be useful for storing additional information about the customer in a structured format. This metadata can be used for validating whether the customer qualifies for a discount or it can be used in building customer segments.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Object metadata)
    • 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
    • fromJson

      public static CustomersUpdateRequestBody fromJson(String jsonString) throws IOException
      Create an instance of CustomersUpdateRequestBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CustomersUpdateRequestBody
      Throws:
      IOException - if the JSON string is invalid with respect to CustomersUpdateRequestBody
    • toJson

      public String toJson()
      Convert an instance of CustomersUpdateRequestBody to an JSON string
      Returns:
      JSON string