Class SimpleCustomer

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SimpleCustomer extends Object
Simplified customer data.
  • Field Details

  • Constructor Details

    • SimpleCustomer

      public SimpleCustomer()
  • Method Details

    • id

      public SimpleCustomer id(String id)
    • getId

      @Nullable public String getId()
      Unique identifier of an existing customer. It is assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • name

      public SimpleCustomer name(String name)
    • getName

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

      public void setName(String name)
    • email

      public SimpleCustomer email(String email)
    • getEmail

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

      public void setEmail(String email)
    • sourceId

      public SimpleCustomer sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      A unique identifier of the customer. It can be a customer ID or email from a CRM system, database, or a third-party service.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • metadata

      public SimpleCustomer metadata(Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      A set of custom key/value pairs that are attached to the customer. It stores all custom attributes assigned to the customer.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Object metadata)
    • _object

      public SimpleCustomer _object(SimpleCustomer.ObjectEnum _object)
    • getObject

      @Nullable public SimpleCustomer.ObjectEnum getObject()
      The type of the object represented by JSON.
      Returns:
      _object
    • setObject

      public void setObject(SimpleCustomer.ObjectEnum _object)
    • 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 SimpleCustomer fromJson(String jsonString) throws IOException
      Create an instance of SimpleCustomer given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of SimpleCustomer
      Throws:
      IOException - if the JSON string is invalid with respect to SimpleCustomer
    • toJson

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