Package io.voucherify.client.model
Class ProductsUpdateInBulkRequestBody
java.lang.Object
io.voucherify.client.model.ProductsUpdateInBulkRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductsUpdateInBulkRequestBody
extends Object
Request schema for **POST** `v1/products/bulk/async`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(String attributesItem) attributes(List<String> attributes) booleanCreate an instance of ProductsUpdateInBulkRequestBody given an JSON stringA list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`.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.getPrice()Unit price.Unique product source ID from your inventory system.inthashCode()voidsetAttributes(List<String> attributes) voidsetImageUrl(String imageUrl) voidsetMetadata(Object metadata) voidvoidvoidsetSourceId(String sourceId) toJson()Convert an instance of ProductsUpdateInBulkRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_IMAGE_URL
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductsUpdateInBulkRequestBody
public ProductsUpdateInBulkRequestBody()
-
-
Method Details
-
sourceId
-
getSourceId
Unique product source ID from your inventory system.- 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
-
imageUrl
-
getImageUrl
The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.- Returns:
- imageUrl
-
setImageUrl
-
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.- Returns:
- metadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ProductsUpdateInBulkRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductsUpdateInBulkRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ProductsUpdateInBulkRequestBody
-
toJson
Convert an instance of ProductsUpdateInBulkRequestBody to an JSON string- Returns:
- JSON string
-