1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
<?php
/**
*/
namespace Commercetools\Core\Model\Message;
use Commercetools\Core\Model\Common\DiscountedPrice;
use Commercetools\Core\Model\Common\JsonObject;
/**
* @package Commercetools\Core\Model\Message
* @link https://docs.commercetools.com/http-api-message-types.html#productpricediscountsset-message
* @method int getVariantId()
* @method ProductPriceDiscountsSetUpdatedPrice setVariantId(int $variantId = null)
* @method string getVariantKey()
* @method ProductPriceDiscountsSetUpdatedPrice setVariantKey(string $variantKey = null)
* @method string getSku()
* @method ProductPriceDiscountsSetUpdatedPrice setSku(string $sku = null)
* @method string getPriceId()
* @method ProductPriceDiscountsSetUpdatedPrice setPriceId(string $priceId = null)
* @method DiscountedPrice getDiscounted()
* @method ProductPriceDiscountsSetUpdatedPrice setDiscounted(DiscountedPrice $discounted = null)
* @method bool getStaged()
* @method ProductPriceDiscountsSetUpdatedPrice setStaged(bool $staged = null)
*/
class ProductPriceDiscountsSetUpdatedPrice extends JsonObject
{
public function fieldDefinitions()
{
return [
'variantId' => [static::TYPE => 'int'],
'variantKey' => [static::TYPE => 'string', static::OPTIONAL => true],
'sku' => [static::TYPE => 'string', static::OPTIONAL => true],
'priceId' => [static::TYPE => 'string'],
'discounted' => [static::TYPE => DiscountedPrice::class, static::OPTIONAL => true],
'staged' => [static::TYPE => 'bool'],
];
}
}