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.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) voidvoidsetOverride(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:
-
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
-
setSku
-
price
-
getPrice
SKU price. A positive integer in the smallest currency unit (e.g. 100 cents for $1.00).- Returns:
- price
-
setPrice
-
equals
-
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
-