Package io.voucherify.client.model
Class ProductsSkusUpdateResponseBody
java.lang.Object
io.voucherify.client.model.ProductsSkusUpdateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductsSkusUpdateResponseBody
extends Object
Response body schema for **PUT** `v1/products/{productId}/skus/{skuId}`.
-
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 TypeMethodDescriptionattributes(Object attributes) createdAt(OffsetDateTime createdAt) booleanCreate an instance of ProductsSkusUpdateResponseBody given an JSON stringThe attributes object stores values for all custom attributes inherited by the SKU from the parent product.Timestamp representing the date and time when the SKU was created.SKU price currency.getId()A unique identifier that represents the SKU and is assigned by Voucherify.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.The type of the object represented by JSON.getPrice()Unit price.The parent product's unique ID.getSku()Unique user-defined SKU name.A unique SKU identifier from your inventory system.Timestamp representing the date and time when the SKU was updated.inthashCode()voidsetAttributes(Object attributes) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidvoidsetImageUrl(String imageUrl) voidsetMetadata(Object metadata) voidvoidvoidsetProductId(String productId) voidvoidsetSourceId(String sourceId) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of ProductsSkusUpdateResponseBody to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_PRODUCT_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:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductsSkusUpdateResponseBody
public ProductsSkusUpdateResponseBody()
-
-
Method Details
-
id
-
getId
A unique identifier that represents the SKU and is assigned by Voucherify.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
A unique SKU identifier from your inventory system.- Returns:
- sourceId
-
setSourceId
-
productId
-
getProductId
The parent product's unique ID.- Returns:
- productId
-
setProductId
-
sku
-
getSku
Unique user-defined SKU name.- Returns:
- sku
-
setSku
-
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
-
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. It can be used to create product collections.- Returns:
- metadata
-
setMetadata
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the SKU was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the SKU 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 `SKU`.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ProductsSkusUpdateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductsSkusUpdateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ProductsSkusUpdateResponseBody
-
toJson
Convert an instance of ProductsSkusUpdateResponseBody to an JSON string- Returns:
- JSON string
-