Class ProductWithoutSkus

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

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

  • Constructor Details

    • ProductWithoutSkus

      public ProductWithoutSkus()
  • Method Details

    • id

      public ProductWithoutSkus id(String id)
    • getId

      @Nullable public String getId()
      Unique product ID assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • sourceId

      public ProductWithoutSkus sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      Unique product source ID.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • name

      public ProductWithoutSkus name(String name)
    • getName

      @Nullable public String getName()
      Unique user-defined product name.
      Returns:
      name
    • setName

      public void setName(String name)
    • price

      public ProductWithoutSkus price(Integer price)
    • getPrice

      @Nullable public Integer getPrice()
      Unit price. It is represented by a value multiplied by 100 to accurately reflect 2 decimal places, such as `$100.00` being expressed as `10000`.
      Returns:
      price
    • setPrice

      public void setPrice(Integer price)
    • attributes

      public ProductWithoutSkus attributes(List<String> attributes)
    • addAttributesItem

      public ProductWithoutSkus addAttributesItem(String attributesItem)
    • getAttributes

      @Nullable public List<String> getAttributes()
      A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(List<String> attributes)
    • metadata

      public ProductWithoutSkus metadata(Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Object metadata)
    • imageUrl

      public ProductWithoutSkus imageUrl(String imageUrl)
    • getImageUrl

      @Nullable public String getImageUrl()
      The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
      Returns:
      imageUrl
    • setImageUrl

      public void setImageUrl(String imageUrl)
    • createdAt

      public ProductWithoutSkus createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the product was created. The value is shown in the ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public ProductWithoutSkus updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp representing the date and time when the product was updated. The value is shown in the ISO 8601 format.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • _object

    • getObject

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

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

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