commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductAddPriceAction.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Common\PriceDraft
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
15
interface
ProductAddPriceAction
extends
ProductUpdateAction
16
{
17
public
const
FIELD_VARIANT_ID
=
'variantId'
;
18
public
const
FIELD_SKU
=
'sku'
;
19
public
const
FIELD_PRICE
=
'price'
;
20
public
const
FIELD_STAGED
=
'staged'
;
21
28
public
function
getVariantId
();
29
36
public
function
getSku
();
37
44
public
function
getPrice
();
45
52
public
function
getStaged
();
53
57
public
function
setVariantId
(?
int
$variantId): void;
58
62
public
function
setSku
(?
string
$sku): void;
63
67
public
function
setPrice
(?
PriceDraft
$price): void;
68
72
public
function
setStaged
(?
bool
$staged): void;
73
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\PriceDraft
Definition:
PriceDraft.php:19
Commercetools\Api\Models\Product\ProductAddPriceAction
Definition:
ProductAddPriceAction.php:16
Commercetools\Api\Models\Product\ProductAddPriceAction\getSku
getSku()
Commercetools\Api\Models\Product\ProductAddPriceAction\getPrice
getPrice()
Commercetools\Api\Models\Product\ProductAddPriceAction\setPrice
setPrice(?PriceDraft $price)
Commercetools\Api\Models\Product\ProductAddPriceAction\FIELD_SKU
const FIELD_SKU
Definition:
ProductAddPriceAction.php:18
Commercetools\Api\Models\Product\ProductAddPriceAction\FIELD_STAGED
const FIELD_STAGED
Definition:
ProductAddPriceAction.php:20
Commercetools\Api\Models\Product\ProductAddPriceAction\setVariantId
setVariantId(?int $variantId)
Commercetools\Api\Models\Product\ProductAddPriceAction\getStaged
getStaged()
Commercetools\Api\Models\Product\ProductAddPriceAction\setSku
setSku(?string $sku)
Commercetools\Api\Models\Product\ProductAddPriceAction\FIELD_PRICE
const FIELD_PRICE
Definition:
ProductAddPriceAction.php:19
Commercetools\Api\Models\Product\ProductAddPriceAction\FIELD_VARIANT_ID
const FIELD_VARIANT_ID
Definition:
ProductAddPriceAction.php:17
Commercetools\Api\Models\Product\ProductAddPriceAction\getVariantId
getVariantId()
Commercetools\Api\Models\Product\ProductAddPriceAction\setStaged
setStaged(?bool $staged)
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