Class ProductsGetResponseBody

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ProductsGetResponseBody extends Object
Response body schema for **GET** `v1/products/{productId}`.
  • Field Details

  • Constructor Details

    • ProductsGetResponseBody

      public ProductsGetResponseBody()
  • Method Details

    • id

    • getId

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

      public void setId(String id)
    • sourceId

      public ProductsGetResponseBody sourceId(String sourceId)
    • getSourceId

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

      public void setSourceId(String sourceId)
    • name

      public ProductsGetResponseBody name(String name)
    • getName

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

      public void setName(String name)
    • price

      public ProductsGetResponseBody 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 ProductsGetResponseBody attributes(List<String> attributes)
    • addAttributesItem

      public ProductsGetResponseBody 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 ProductsGetResponseBody 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 ProductsGetResponseBody 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 ProductsGetResponseBody 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 ProductsGetResponseBody 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 ProductsGetResponseBody.ObjectEnum getObject()
      The type of the object represented by JSON. This object stores information about the product.
      Returns:
      _object
    • setObject

      public void setObject(ProductsGetResponseBody.ObjectEnum _object)
    • skus

    • getSkus

      @Nullable public SkusListForProduct getSkus()
      Get skus
      Returns:
      skus
    • setSkus

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

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