Package io.voucherify.client.model
Class ProductsSkusCreateRequestBody
java.lang.Object
io.voucherify.client.model.ProductsSkusCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductsSkusCreateRequestBody
extends Object
Request body schema for **POST** `v1/products/{productId}/skus
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(Object attributes) booleanCreate an instance of ProductsSkusCreateRequestBody given an JSON stringThe attributes object stores values for all custom attributes inherited by the SKU from the parent product.SKU price currency.getId()Unique SKU ID.The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.The metadata object stores all custom attributes assigned to the SKU.getPrice()SKU unit price.getSku()Unique user-defined SKU name.A unique SKU identifier from your inventory system.inthashCode()voidsetAttributes(Object attributes) voidsetCurrency(String currency) voidvoidsetImageUrl(String imageUrl) voidsetMetadata(Object metadata) voidvoidvoidsetSourceId(String sourceId) toJson()Convert an instance of ProductsSkusCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_SKU
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_IMAGE_URL
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductsSkusCreateRequestBody
public ProductsSkusCreateRequestBody()
-
-
Method Details
-
id
-
getId
Unique SKU ID.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
A unique SKU identifier from your inventory system.- Returns:
- sourceId
-
setSourceId
-
sku
-
getSku
Unique user-defined SKU name.- Returns:
- sku
-
setSku
-
price
-
getPrice
SKU unit price. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.- Returns:
- price
-
setPrice
-
currency
-
getCurrency
SKU price currency.- Returns:
- currency
-
setCurrency
-
attributes
-
getAttributes
The attributes object stores values for all custom attributes inherited by the SKU from the parent product. A set of key/value pairs that are attached to a SKU object and are unique to each SKU within a product family.- Returns:
- attributes
-
setAttributes
-
imageUrl
-
getImageUrl
The HTTPS URL pointing to the .png or .jpg file that will be used to render the SKU image.- Returns:
- imageUrl
-
setImageUrl
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format.- Returns:
- metadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ProductsSkusCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductsSkusCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ProductsSkusCreateRequestBody
-
toJson
Convert an instance of ProductsSkusCreateRequestBody to an JSON string- Returns:
- JSON string
-