Package io.voucherify.client.model
Class ProductWithoutSkus
java.lang.Object
io.voucherify.client.model.ProductWithoutSkus
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductWithoutSkus
extends Object
ProductWithoutSkus
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(ProductWithoutSkus.ObjectEnum _object) addAttributesItem(String attributesItem) attributes(List<String> attributes) createdAt(OffsetDateTime createdAt) booleanstatic ProductWithoutSkusCreate an instance of ProductWithoutSkus given an JSON stringA list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`.Timestamp representing the date and time when the product was created.getId()Unique product ID assigned by Voucherify.The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.The metadata object stores all custom attributes assigned to the product.getName()Unique user-defined product name.The type of the object represented by JSON.getPrice()Unit price.Unique product source ID.Timestamp representing the date and time when the product was updated.inthashCode()voidsetAttributes(List<String> attributes) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetImageUrl(String imageUrl) voidsetMetadata(Object metadata) voidvoidsetObject(ProductWithoutSkus.ObjectEnum _object) voidvoidsetSourceId(String sourceId) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of ProductWithoutSkus to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_IMAGE_URL
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductWithoutSkus
public ProductWithoutSkus()
-
-
Method Details
-
id
-
getId
Unique product ID assigned by Voucherify.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
Unique product source ID.- Returns:
- sourceId
-
setSourceId
-
name
-
getName
Unique user-defined product name.- Returns:
- name
-
setName
-
price
-
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
-
attributes
-
addAttributesItem
-
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
-
metadata
-
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
-
imageUrl
-
getImageUrl
The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.- Returns:
- imageUrl
-
setImageUrl
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the product was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the product was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about the product.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of ProductWithoutSkus to an JSON string- Returns:
- JSON string
-