Class SimpleCustomerRequiredObjectType

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SimpleCustomerRequiredObjectType extends Object
This is an object representing a customer with limited properties used in Event Tracking endpoints.
  • Field Details

  • Constructor Details

    • SimpleCustomerRequiredObjectType

      public SimpleCustomerRequiredObjectType()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      The unique ID of a customer that is assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • sourceId

      public SimpleCustomerRequiredObjectType sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      The merchant's customer ID if it is different from the Voucherify customer ID. It is really useful in case of an integration between multiple systems. It can be a customer ID from a CRM system, database or 3rd-party service.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • name

    • getName

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

      public void setName(String name)
    • email

    • getEmail

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

      public void setEmail(String email)
    • metadata

      public SimpleCustomerRequiredObjectType 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)
    • _object

      public SimpleCustomerRequiredObjectType _object(String _object)
    • getObject

      @Nullable public String getObject()
      The type of the object represented by the JSON. This object stores information about the customer.
      Returns:
      _object
    • setObject

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

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