commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductAddVariantAction.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Common\AssetDraftCollection
;
12
use
Commercetools\Api\Models\Common\ImageCollection
;
13
use
Commercetools\Api\Models\Common\PriceDraftCollection
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
17
interface
ProductAddVariantAction
extends
ProductUpdateAction
18
{
19
public
const
FIELD_SKU
=
'sku'
;
20
public
const
FIELD_KEY
=
'key'
;
21
public
const
FIELD_PRICES
=
'prices'
;
22
public
const
FIELD_IMAGES
=
'images'
;
23
public
const
FIELD_ATTRIBUTES
=
'attributes'
;
24
public
const
FIELD_STAGED
=
'staged'
;
25
public
const
FIELD_ASSETS
=
'assets'
;
26
33
public
function
getSku
();
34
41
public
function
getKey
();
42
49
public
function
getPrices
();
50
57
public
function
getImages
();
58
65
public
function
getAttributes
();
66
73
public
function
getStaged
();
74
81
public
function
getAssets
();
82
86
public
function
setSku
(?
string
$sku): void;
87
91
public
function
setKey
(?
string
$key): void;
92
96
public
function
setPrices
(?
PriceDraftCollection
$prices): void;
97
101
public
function
setImages
(?
ImageCollection
$images): void;
102
106
public
function
setAttributes
(?
AttributeCollection
$attributes): void;
107
111
public
function
setStaged
(?
bool
$staged): void;
112
116
public
function
setAssets
(?
AssetDraftCollection
$assets): void;
117
}
Commercetools\Api\Models\Common\AssetDraftCollection
Definition:
AssetDraftCollection.php:22
Commercetools\Api\Models\Common\ImageCollection
Definition:
ImageCollection.php:22
Commercetools\Api\Models\Common\PriceDraftCollection
Definition:
PriceDraftCollection.php:22
Commercetools\Api\Models\Product\AttributeCollection
Definition:
AttributeCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Product\ProductAddVariantAction
Definition:
ProductAddVariantAction.php:18
Commercetools\Api\Models\Product\ProductAddVariantAction\setAttributes
setAttributes(?AttributeCollection $attributes)
Commercetools\Api\Models\Product\ProductAddVariantAction\setAssets
setAssets(?AssetDraftCollection $assets)
Commercetools\Api\Models\Product\ProductAddVariantAction\FIELD_ASSETS
const FIELD_ASSETS
Definition:
ProductAddVariantAction.php:25
Commercetools\Api\Models\Product\ProductAddVariantAction\getStaged
getStaged()
Commercetools\Api\Models\Product\ProductAddVariantAction\FIELD_KEY
const FIELD_KEY
Definition:
ProductAddVariantAction.php:20
Commercetools\Api\Models\Product\ProductAddVariantAction\setPrices
setPrices(?PriceDraftCollection $prices)
Commercetools\Api\Models\Product\ProductAddVariantAction\getKey
getKey()
Commercetools\Api\Models\Product\ProductAddVariantAction\FIELD_IMAGES
const FIELD_IMAGES
Definition:
ProductAddVariantAction.php:22
Commercetools\Api\Models\Product\ProductAddVariantAction\getAttributes
getAttributes()
Commercetools\Api\Models\Product\ProductAddVariantAction\setKey
setKey(?string $key)
Commercetools\Api\Models\Product\ProductAddVariantAction\getImages
getImages()
Commercetools\Api\Models\Product\ProductAddVariantAction\getAssets
getAssets()
Commercetools\Api\Models\Product\ProductAddVariantAction\getPrices
getPrices()
Commercetools\Api\Models\Product\ProductAddVariantAction\FIELD_ATTRIBUTES
const FIELD_ATTRIBUTES
Definition:
ProductAddVariantAction.php:23
Commercetools\Api\Models\Product\ProductAddVariantAction\FIELD_SKU
const FIELD_SKU
Definition:
ProductAddVariantAction.php:19
Commercetools\Api\Models\Product\ProductAddVariantAction\getSku
getSku()
Commercetools\Api\Models\Product\ProductAddVariantAction\setSku
setSku(?string $sku)
Commercetools\Api\Models\Product\ProductAddVariantAction\FIELD_STAGED
const FIELD_STAGED
Definition:
ProductAddVariantAction.php:24
Commercetools\Api\Models\Product\ProductAddVariantAction\setStaged
setStaged(?bool $staged)
Commercetools\Api\Models\Product\ProductAddVariantAction\FIELD_PRICES
const FIELD_PRICES
Definition:
ProductAddVariantAction.php:21
Commercetools\Api\Models\Product\ProductAddVariantAction\setImages
setImages(?ImageCollection $images)
Commercetools\Api\Models\Product\ProductUpdateAction
Definition:
ProductUpdateAction.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Product
Definition:
AttributeAccessor.php:4
Generated by
1.9.1