Package io.voucherify.client.model
Class OrderCalculatedItemSku
java.lang.Object
io.voucherify.client.model.OrderCalculatedItemSku
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class OrderCalculatedItemSku
extends Object
An object containing details of the related SKU.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OrderCalculatedItemSkuCreate an instance of OrderCalculatedItemSku given an JSON stringgetId()A unique identifier that represents the SKU and is assigned by Voucherify.A set of custom key/value pairs that you can attach to an SKU.The override set to `true` is used to store the product information in the system.getPrice()SKU price.getSku()The SKU name.The merchant's SKU ID (if it is different than Voucherify's SKU ID).inthashCode()price(BigDecimal price) voidvoidsetMetadata(Object metadata) voidsetOverride(Boolean override) voidsetPrice(BigDecimal price) voidvoidsetSourceId(String sourceId) toJson()Convert an instance of OrderCalculatedItemSku to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_OVERRIDE
- See Also:
-
SERIALIZED_NAME_SKU
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OrderCalculatedItemSku
public OrderCalculatedItemSku()
-
-
Method Details
-
id
-
getId
A unique identifier that represents the SKU and is assigned by Voucherify.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
The merchant's SKU ID (if it is different than Voucherify's SKU ID). It is really useful in case of integration between multiple systems. It can be an ID from an eCommerce site, a database or a 3rd party service.- Returns:
- sourceId
-
setSourceId
-
override
-
getOverride
The override set to `true` is used to store the product information in the system. If the product does not exist, it will be created with a source_id; if it does exist, the provided values for the name, price, and metadata will replace those already stored in the system.- Returns:
- override
-
setOverride
-
sku
-
getSku
The SKU name.- Returns:
- sku
-
setSku
-
price
-
getPrice
SKU price. A positive integer in the smallest currency unit (e.g. 100 cents for $1.00).- Returns:
- price
-
setPrice
-
metadata
-
getMetadata
A set of custom key/value pairs that you can attach to an SKU. 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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of OrderCalculatedItemSku given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OrderCalculatedItemSku
- Throws:
IOException- if the JSON string is invalid with respect to OrderCalculatedItemSku
-
toJson
Convert an instance of OrderCalculatedItemSku to an JSON string- Returns:
- JSON string
-