Home > @poq/sdk-sfcc > Product > (constructor)
Constructs a new instance of the Product
class
Signature:
constructor(params?: {
id: string;
brand?: string;
bundledProducts?: Array<BundledProduct>;
cAvailableForInStorePickup?: boolean;
cBatteryLife?: string;
cBatteryType?: string;
cBootType?: Array<ProductCBootTypeEnum>;
cBottomType?: Array<ProductCBottomTypeEnum>;
cColor?: string;
cConsoleWarranty?: string;
cCustomCSSFile?: string;
cDigitalCameraFeatures?: Array<ProductCDigitalCameraFeaturesEnum>;
cDigitalCameraPixels?: string;
cDigitalCameraType?: string;
cDigitalCameraWarranty?: string;
cDimDepth?: string;
cDimHeight?: string;
cDimWeight?: string;
cDimWidth?: string;
cDisplaySize?: string;
cGameGenre?: Array<ProductCGameGenreEnum>;
cGameRating?: string;
cGameSystemType?: string;
cGpsFeatures?: Array<ProductCGpsFeaturesEnum>;
cGpsType?: Array<ProductCGpsTypeEnum>;
cGpsWarranty?: string;
cImageAspectRatio?: string;
cIsNew?: boolean;
cIsNewtest?: boolean;
cIsSale?: boolean;
cKidsAge?: ProductCKidsAgeEnum;
cLength?: string;
cLensAperture?: string;
cMaterialTest?: Array<ProductCMaterialTestEnum>;
cMediaFormat?: Array<ProductCMediaFormatEnum>;
cMemorySize?: string;
cMemoryType?: Array<ProductCMemoryTypeEnum>;
cMusicStorage?: string;
cOpticalZoom?: string;
cOuterwearType?: ProductCOuterwearTypeEnum;
cPortableAudioType?: Array<ProductCPortableAudioTypeEnum>;
cRefinementColor?: ProductCRefinementColorEnum;
cResolution?: string;
cSandalType?: ProductCSandalTypeEnum;
cSheets?: Array<ProductCSheetsEnum>;
cShoeType?: ProductCShoeTypeEnum;
cSize?: string;
cSkinConcern?: Array<ProductCSkinConcernEnum>;
cStyleNumber?: string;
cTabDescription?: string;
cTabDetails?: string;
cTopType?: string;
cTvSignalFormat?: string;
cTvSize?: string;
cTvType?: ProductCTvTypeEnum;
cTvWarranty?: string;
cVideoStorage?: string;
cWaist?: string;
cWidth?: string;
currency?: string;
ean?: string;
fetchDate?: number;
imageGroups?: Array<ImageGroup>;
inventories?: Array<Inventory>;
inventory?: Inventory;
longDescription?: string;
manufacturerName?: string;
manufacturerSku?: string;
master?: Master;
minOrderQuantity?: number;
name?: string;
options?: Array<Option>;
pageDescription?: string;
pageKeywords?: string;
pageTitle?: string;
price?: number;
priceMax?: number;
pricePerUnit?: number;
pricePerUnitMax?: number;
prices?: {
[key: string]: number;
};
primaryCategoryId?: string;
productLinks?: Array<ProductLink>;
productPromotions?: Array<ProductPromotion>;
recommendations?: Array<Recommendation>;
setProducts?: Array<Product>;
shortDescription?: string;
stepQuantity?: number;
type?: ProductType;
unit?: string;
unitMeasure?: string;
unitQuantity?: number;
upc?: string;
validFrom?: string;
validTo?: string;
variants?: Array<Variant>;
variationAttributes?: Array<VariationAttribute>;
variationGroups?: Array<VariationGroup>;
variationValues?: {
[key: string]: string;
};
});
Parameter | Type | Description |
---|---|---|
params | { id: string; brand?: string; bundledProducts?: Array<BundledProduct>; cAvailableForInStorePickup?: boolean; cBatteryLife?: string; cBatteryType?: string; cBootType?: Array<ProductCBootTypeEnum>; cBottomType?: Array<ProductCBottomTypeEnum>; cColor?: string; cConsoleWarranty?: string; cCustomCSSFile?: string; cDigitalCameraFeatures?: Array<ProductCDigitalCameraFeaturesEnum>; cDigitalCameraPixels?: string; cDigitalCameraType?: string; cDigitalCameraWarranty?: string; cDimDepth?: string; cDimHeight?: string; cDimWeight?: string; cDimWidth?: string; cDisplaySize?: string; cGameGenre?: Array<ProductCGameGenreEnum>; cGameRating?: string; cGameSystemType?: string; cGpsFeatures?: Array<ProductCGpsFeaturesEnum>; cGpsType?: Array<ProductCGpsTypeEnum>; cGpsWarranty?: string; cImageAspectRatio?: string; cIsNew?: boolean; cIsNewtest?: boolean; cIsSale?: boolean; cKidsAge?: ProductCKidsAgeEnum; cLength?: string; cLensAperture?: string; cMaterialTest?: Array<ProductCMaterialTestEnum>; cMediaFormat?: Array<ProductCMediaFormatEnum>; cMemorySize?: string; cMemoryType?: Array<ProductCMemoryTypeEnum>; cMusicStorage?: string; cOpticalZoom?: string; cOuterwearType?: ProductCOuterwearTypeEnum; cPortableAudioType?: Array<ProductCPortableAudioTypeEnum>; cRefinementColor?: ProductCRefinementColorEnum; cResolution?: string; cSandalType?: ProductCSandalTypeEnum; cSheets?: Array<ProductCSheetsEnum>; cShoeType?: ProductCShoeTypeEnum; cSize?: string; cSkinConcern?: Array<ProductCSkinConcernEnum>; cStyleNumber?: string; cTabDescription?: string; cTabDetails?: string; cTopType?: string; cTvSignalFormat?: string; cTvSize?: string; cTvType?: ProductCTvTypeEnum; cTvWarranty?: string; cVideoStorage?: string; cWaist?: string; cWidth?: string; currency?: string; ean?: string; fetchDate?: number; imageGroups?: Array<ImageGroup>; inventories?: Array<Inventory>; inventory?: Inventory; longDescription?: string; manufacturerName?: string; manufacturerSku?: string; master?: Master; minOrderQuantity?: number; name?: string; options?: Array<Option>; pageDescription?: string; pageKeywords?: string; pageTitle?: string; price?: number; priceMax?: number; pricePerUnit?: number; pricePerUnitMax?: number; prices?: { [key: string]: number; }; primaryCategoryId?: string; productLinks?: Array<ProductLink>; productPromotions?: Array<ProductPromotion>; recommendations?: Array<Recommendation>; setProducts?: Array<Product>; shortDescription?: string; stepQuantity?: number; type?: ProductType; unit?: string; unitMeasure?: string; unitQuantity?: number; upc?: string; validFrom?: string; validTo?: string; variants?: Array<Variant>; variationAttributes?: Array<VariationAttribute>; variationGroups?: Array<VariationGroup>; variationValues?: { [key: string]: string; }; } | (Optional) |