Package io.voucherify.client.model
Class ProductsSkusUpdateRequestBody
java.lang.Object
io.voucherify.client.model.ProductsSkusUpdateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductsSkusUpdateRequestBody
extends Object
Request body schema for **PUT** `v1/products/{productId}/skus/{skuId}`.
-
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 ProductsSkusUpdateRequestBody given an JSON stringThe attributes object stores values for all custom attributes inherited by the SKU from the parent product.SKU price currency.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.inthashCode()voidsetAttributes(Object attributes) voidsetCurrency(String currency) voidsetImageUrl(String imageUrl) voidsetMetadata(Object metadata) voidvoidtoJson()Convert an instance of ProductsSkusUpdateRequestBody to an JSON stringtoString()
-
Field Details
-
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
-
ProductsSkusUpdateRequestBody
public ProductsSkusUpdateRequestBody()
-
-
Method Details
-
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 ProductsSkusUpdateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductsSkusUpdateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ProductsSkusUpdateRequestBody
-
toJson
Convert an instance of ProductsSkusUpdateRequestBody to an JSON string- Returns:
- JSON string
-