Home > @infiniteobjects/data-types > Sku
Signature:
export declare class Sku implements ISku
Implements: ISku
Constructor | Modifiers | Description |
---|---|---|
(constructor)(skuString) | Constructs a new instance of the Sku class |
Property | Modifiers | Type | Description |
---|---|---|---|
artist | Nullable<string> | Artist Name | |
customization | Nullable<SkuCustomization> | SkuCustomization for the IO null | |
isIo | readonly |
boolean | Determines if Sku is an IO hardware unit. This is set to true if there is a size and material |
material | Nullable<DeviceMaterial> | DeviceMaterial for the IO. DeviceMaterial.acrylic | |
orderType | Nullable<SkuOrderType> | SkuOrderType for the IO null | |
size | Nullable<DeviceSize> | DeviceSize for the IO. DeviceSize.sevenInch | |
tier | Nullable<string> | IO Product Tier null | |
title | Nullable<string> | Artwork Title ‘ORIGINALS’ | ‘SUNNY’ |
Method | Modifiers | Description |
---|---|---|
deviceMaterialFromSkuString(sku) | static |
Returns the DeviceMaterial from a sku string |
deviceMaterialToSkuMaterial(mat) | static |
Converts DeviceMaterial to SkuMaterial |
isIo(sku) | static |
Returns if the sku represents and IO device |
sizeFromSkuString(sku) | static |
Returns the DeviceSize from a sku string |
skuMaterialToDeviceMaterial(mat) | static |
Converts SkuMaterial to DeviceMaterial |
toSkuString() | Returns the Sku string | |
toSkuTuple() | Returns the Sku tuple |