Class CustomerId

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CustomerId extends Object
CustomerId
  • Field Details

  • Constructor Details

    • CustomerId

      public CustomerId()
  • Method Details

    • id

      public CustomerId id(String id)
    • getId

      @Nullable public String getId()
      A unique identifier of an existing customer.
      Returns:
      id
    • setId

      public void setId(String id)
    • _object

      public CustomerId _object(CustomerId.ObjectEnum _object)
    • getObject

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

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

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