commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ProductDraft.php
1<?php
2
3declare(strict_types=1);
10
18
19interface ProductDraft extends JsonObject
20{
21 public const FIELD_PRODUCT_TYPE = 'productType';
22 public const FIELD_NAME = 'name';
23 public const FIELD_SLUG = 'slug';
24 public const FIELD_KEY = 'key';
25 public const FIELD_DESCRIPTION = 'description';
26 public const FIELD_CATEGORIES = 'categories';
27 public const FIELD_CATEGORY_ORDER_HINTS = 'categoryOrderHints';
28 public const FIELD_META_TITLE = 'metaTitle';
29 public const FIELD_META_DESCRIPTION = 'metaDescription';
30 public const FIELD_META_KEYWORDS = 'metaKeywords';
31 public const FIELD_MASTER_VARIANT = 'masterVariant';
32 public const FIELD_VARIANTS = 'variants';
33 public const FIELD_TAX_CATEGORY = 'taxCategory';
34 public const FIELD_SEARCH_KEYWORDS = 'searchKeywords';
35 public const FIELD_STATE = 'state';
36 public const FIELD_PUBLISH = 'publish';
37 public const FIELD_PRICE_MODE = 'priceMode';
38
45 public function getProductType();
46
53 public function getName();
54
63 public function getSlug();
64
73 public function getKey();
74
81 public function getDescription();
82
89 public function getCategories();
90
97 public function getCategoryOrderHints();
98
105 public function getMetaTitle();
106
113 public function getMetaDescription();
114
121 public function getMetaKeywords();
122
129 public function getMasterVariant();
130
137 public function getVariants();
138
145 public function getTaxCategory();
146
153 public function getSearchKeywords();
154
161 public function getState();
162
169 public function getPublish();
170
177 public function getPriceMode();
178
182 public function setProductType(?ProductTypeResourceIdentifier $productType): void;
183
187 public function setName(?LocalizedString $name): void;
188
192 public function setSlug(?LocalizedString $slug): void;
193
197 public function setKey(?string $key): void;
198
202 public function setDescription(?LocalizedString $description): void;
203
207 public function setCategories(?CategoryResourceIdentifierCollection $categories): void;
208
212 public function setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints): void;
213
217 public function setMetaTitle(?LocalizedString $metaTitle): void;
218
222 public function setMetaDescription(?LocalizedString $metaDescription): void;
223
227 public function setMetaKeywords(?LocalizedString $metaKeywords): void;
228
232 public function setMasterVariant(?ProductVariantDraft $masterVariant): void;
233
237 public function setVariants(?ProductVariantDraftCollection $variants): void;
238
242 public function setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory): void;
243
247 public function setSearchKeywords(?SearchKeywords $searchKeywords): void;
248
252 public function setState(?StateResourceIdentifier $state): void;
253
257 public function setPublish(?bool $publish): void;
258
262 public function setPriceMode(?string $priceMode): void;
263}
setCategoryOrderHints(?CategoryOrderHints $categoryOrderHints)
setMetaKeywords(?LocalizedString $metaKeywords)
setVariants(?ProductVariantDraftCollection $variants)
setMetaTitle(?LocalizedString $metaTitle)
setCategories(?CategoryResourceIdentifierCollection $categories)
setSearchKeywords(?SearchKeywords $searchKeywords)
setDescription(?LocalizedString $description)
setMetaDescription(?LocalizedString $metaDescription)
setState(?StateResourceIdentifier $state)
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)
setMasterVariant(?ProductVariantDraft $masterVariant)
setProductType(?ProductTypeResourceIdentifier $productType)