Class VouchersUpdateInBulkItemRequestBody

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

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

  • Constructor Details

    • VouchersUpdateInBulkItemRequestBody

      public VouchersUpdateInBulkItemRequestBody()
  • Method Details

    • code

    • getCode

      @Nullable public String getCode()
      Unique voucher code.
      Returns:
      code
    • setCode

      public void setCode(String code)
    • metadata

      public VouchersUpdateInBulkItemRequestBody metadata(Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format.
      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 VouchersUpdateInBulkItemRequestBody fromJson(String jsonString) throws IOException
      Create an instance of VouchersUpdateInBulkItemRequestBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of VouchersUpdateInBulkItemRequestBody
      Throws:
      IOException - if the JSON string is invalid with respect to VouchersUpdateInBulkItemRequestBody
    • toJson

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