commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Productdrafts
ProductDraftImport.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Productdrafts
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Import\Models\Common\CategoryKeyReferenceCollection
;
14
use
Commercetools\Import\Models\Common\ImportResource
;
15
use
Commercetools\Import\Models\Common\LocalizedString
;
16
use
Commercetools\Import\Models\Common\ProductTypeKeyReference
;
17
use
Commercetools\Import\Models\Common\StateKeyReference
;
18
use
Commercetools\Import\Models\Common\TaxCategoryKeyReference
;
19
use
Commercetools\Import\Models\Products\SearchKeywords
;
20
21
interface
ProductDraftImport
extends
ImportResource
22
{
23
public
const
FIELD_PRODUCT_TYPE
=
'productType'
;
24
public
const
FIELD_NAME
=
'name'
;
25
public
const
FIELD_SLUG
=
'slug'
;
26
public
const
FIELD_DESCRIPTION
=
'description'
;
27
public
const
FIELD_CATEGORIES
=
'categories'
;
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
getKey
();
46
56
public
function
getProductType
();
57
62
public
function
getName
();
63
71
public
function
getSlug
();
72
79
public
function
getDescription
();
80
88
public
function
getCategories
();
89
101
public
function
getMetaTitle
();
102
114
public
function
getMetaDescription
();
115
127
public
function
getMetaKeywords
();
128
136
public
function
getMasterVariant
();
137
144
public
function
getVariants
();
145
153
public
function
getTaxCategory
();
154
177
public
function
getSearchKeywords
();
178
186
public
function
getState
();
187
194
public
function
getPublish
();
195
202
public
function
getPriceMode
();
203
207
public
function
setKey
(?
string
$key): void;
208
212
public
function
setProductType
(?
ProductTypeKeyReference
$productType): void;
213
217
public
function
setName
(?
LocalizedString
$name): void;
218
222
public
function
setSlug
(?
LocalizedString
$slug): void;
223
227
public
function
setDescription
(?
LocalizedString
$description): void;
228
232
public
function
setCategories
(?
CategoryKeyReferenceCollection
$categories): void;
233
237
public
function
setMetaTitle
(?
LocalizedString
$metaTitle): void;
238
242
public
function
setMetaDescription
(?
LocalizedString
$metaDescription): void;
243
247
public
function
setMetaKeywords
(?
LocalizedString
$metaKeywords): void;
248
252
public
function
setMasterVariant
(?
ProductVariantDraftImport
$masterVariant): void;
253
257
public
function
setVariants
(?
ProductVariantDraftImportCollection
$variants): void;
258
262
public
function
setTaxCategory
(?
TaxCategoryKeyReference
$taxCategory): void;
263
267
public
function
setSearchKeywords
(?
SearchKeywords
$searchKeywords): void;
268
272
public
function
setState
(?
StateKeyReference
$state): void;
273
277
public
function
setPublish
(?
bool
$publish): void;
278
282
public
function
setPriceMode
(?
string
$priceMode): void;
283
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Import\Models\Common\CategoryKeyReferenceCollection
Definition:
CategoryKeyReferenceCollection.php:22
Commercetools\Import\Models\Productdrafts\ProductVariantDraftImportCollection
Definition:
ProductVariantDraftImportCollection.php:22
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Common\ImportResource
Definition:
ImportResource.php:26
Commercetools\Import\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Import\Models\Common\ProductTypeKeyReference
Definition:
ProductTypeKeyReference.php:15
Commercetools\Import\Models\Common\StateKeyReference
Definition:
StateKeyReference.php:15
Commercetools\Import\Models\Common\TaxCategoryKeyReference
Definition:
TaxCategoryKeyReference.php:15
Commercetools\Import\Models\Productdrafts\ProductDraftImport
Definition:
ProductDraftImport.php:22
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setPublish
setPublish(?bool $publish)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setPriceMode
setPriceMode(?string $priceMode)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getVariants
getVariants()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getDescription
getDescription()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getProductType
getProductType()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setCategories
setCategories(?CategoryKeyReferenceCollection $categories)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ProductDraftImport.php:26
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setProductType
setProductType(?ProductTypeKeyReference $productType)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_SLUG
const FIELD_SLUG
Definition:
ProductDraftImport.php:25
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setState
setState(?StateKeyReference $state)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_META_DESCRIPTION
const FIELD_META_DESCRIPTION
Definition:
ProductDraftImport.php:29
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getPublish
getPublish()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_MASTER_VARIANT
const FIELD_MASTER_VARIANT
Definition:
ProductDraftImport.php:31
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getSlug
getSlug()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setMetaKeywords
setMetaKeywords(?LocalizedString $metaKeywords)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setMetaTitle
setMetaTitle(?LocalizedString $metaTitle)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setTaxCategory
setTaxCategory(?TaxCategoryKeyReference $taxCategory)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setMasterVariant
setMasterVariant(?ProductVariantDraftImport $masterVariant)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_PRICE_MODE
const FIELD_PRICE_MODE
Definition:
ProductDraftImport.php:37
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_VARIANTS
const FIELD_VARIANTS
Definition:
ProductDraftImport.php:32
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_PRODUCT_TYPE
const FIELD_PRODUCT_TYPE
Definition:
ProductDraftImport.php:23
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getMetaKeywords
getMetaKeywords()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_META_KEYWORDS
const FIELD_META_KEYWORDS
Definition:
ProductDraftImport.php:30
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setName
setName(?LocalizedString $name)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setMetaDescription
setMetaDescription(?LocalizedString $metaDescription)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setKey
setKey(?string $key)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_SEARCH_KEYWORDS
const FIELD_SEARCH_KEYWORDS
Definition:
ProductDraftImport.php:34
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getTaxCategory
getTaxCategory()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_CATEGORIES
const FIELD_CATEGORIES
Definition:
ProductDraftImport.php:27
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setSearchKeywords
setSearchKeywords(?SearchKeywords $searchKeywords)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getSearchKeywords
getSearchKeywords()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_META_TITLE
const FIELD_META_TITLE
Definition:
ProductDraftImport.php:28
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getPriceMode
getPriceMode()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getName
getName()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_NAME
const FIELD_NAME
Definition:
ProductDraftImport.php:24
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getCategories
getCategories()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_STATE
const FIELD_STATE
Definition:
ProductDraftImport.php:35
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setSlug
setSlug(?LocalizedString $slug)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setDescription
setDescription(?LocalizedString $description)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getMetaDescription
getMetaDescription()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getState
getState()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getMasterVariant
getMasterVariant()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getMetaTitle
getMetaTitle()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\setVariants
setVariants(?ProductVariantDraftImportCollection $variants)
Commercetools\Import\Models\Productdrafts\ProductDraftImport\getKey
getKey()
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_TAX_CATEGORY
const FIELD_TAX_CATEGORY
Definition:
ProductDraftImport.php:33
Commercetools\Import\Models\Productdrafts\ProductDraftImport\FIELD_PUBLISH
const FIELD_PUBLISH
Definition:
ProductDraftImport.php:36
Commercetools\Import\Models\Productdrafts\ProductVariantDraftImport
Definition:
ProductVariantDraftImport.php:18
Commercetools\Import\Models\Products\SearchKeywords
Definition:
SearchKeywords.php:15
Commercetools\Import\Models\Productdrafts
Definition:
PriceDraftImport.php:9
Generated by
1.9.1