Package io.voucherify.client.model
Class ProductsUpdateResponseBody
java.lang.Object
io.voucherify.client.model.ProductsUpdateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductsUpdateResponseBody
extends Object
Response body schema for **PUT** `v1/products/{productId}`.
-
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 TypeMethodDescriptionaddAttributesItem(String attributesItem) attributes(List<String> attributes) createdAt(OffsetDateTime createdAt) booleanstatic ProductsUpdateResponseBodyCreate an instance of ProductsUpdateResponseBody 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.getSkus()Get skusUnique 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) voidvoidvoidvoidsetSkus(SkusListForProduct skus) voidsetSourceId(String sourceId) voidsetUpdatedAt(OffsetDateTime updatedAt) skus(SkusListForProduct skus) toJson()Convert an instance of ProductsUpdateResponseBody 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:
-
SERIALIZED_NAME_SKUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductsUpdateResponseBody
public ProductsUpdateResponseBody()
-
-
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
-
skus
-
getSkus
Get skus- Returns:
- skus
-
setSkus
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ProductsUpdateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductsUpdateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ProductsUpdateResponseBody
-
toJson
Convert an instance of ProductsUpdateResponseBody to an JSON string- Returns:
- JSON string
-