commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductAddAssetAction.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Common\AssetDraft
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
15
interface
ProductAddAssetAction
extends
ProductUpdateAction
16
{
17
public
const
FIELD_VARIANT_ID
=
'variantId'
;
18
public
const
FIELD_SKU
=
'sku'
;
19
public
const
FIELD_STAGED
=
'staged'
;
20
public
const
FIELD_ASSET
=
'asset'
;
21
public
const
FIELD_POSITION
=
'position'
;
22
29
public
function
getVariantId
();
30
37
public
function
getSku
();
38
45
public
function
getStaged
();
46
53
public
function
getAsset
();
54
61
public
function
getPosition
();
62
66
public
function
setVariantId
(?
int
$variantId): void;
67
71
public
function
setSku
(?
string
$sku): void;
72
76
public
function
setStaged
(?
bool
$staged): void;
77
81
public
function
setAsset
(?
AssetDraft
$asset): void;
82
86
public
function
setPosition
(?
int
$position): void;
87
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\AssetDraft
Definition:
AssetDraft.php:16
Commercetools\Api\Models\Product\ProductAddAssetAction
Definition:
ProductAddAssetAction.php:16
Commercetools\Api\Models\Product\ProductAddAssetAction\getStaged
getStaged()
Commercetools\Api\Models\Product\ProductAddAssetAction\setSku
setSku(?string $sku)
Commercetools\Api\Models\Product\ProductAddAssetAction\getVariantId
getVariantId()
Commercetools\Api\Models\Product\ProductAddAssetAction\getPosition
getPosition()
Commercetools\Api\Models\Product\ProductAddAssetAction\FIELD_SKU
const FIELD_SKU
Definition:
ProductAddAssetAction.php:18
Commercetools\Api\Models\Product\ProductAddAssetAction\setVariantId
setVariantId(?int $variantId)
Commercetools\Api\Models\Product\ProductAddAssetAction\setStaged
setStaged(?bool $staged)
Commercetools\Api\Models\Product\ProductAddAssetAction\setAsset
setAsset(?AssetDraft $asset)
Commercetools\Api\Models\Product\ProductAddAssetAction\setPosition
setPosition(?int $position)
Commercetools\Api\Models\Product\ProductAddAssetAction\FIELD_POSITION
const FIELD_POSITION
Definition:
ProductAddAssetAction.php:21
Commercetools\Api\Models\Product\ProductAddAssetAction\getSku
getSku()
Commercetools\Api\Models\Product\ProductAddAssetAction\FIELD_ASSET
const FIELD_ASSET
Definition:
ProductAddAssetAction.php:20
Commercetools\Api\Models\Product\ProductAddAssetAction\FIELD_VARIANT_ID
const FIELD_VARIANT_ID
Definition:
ProductAddAssetAction.php:17
Commercetools\Api\Models\Product\ProductAddAssetAction\getAsset
getAsset()
Commercetools\Api\Models\Product\ProductAddAssetAction\FIELD_STAGED
const FIELD_STAGED
Definition:
ProductAddAssetAction.php:19
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