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 41 42 43 44 45 46 47
<?php
/**
*/
namespace Commercetools\Core\Error;
use Commercetools\Core\Model\Channel\ChannelReference;
use Commercetools\Core\Model\CustomerGroup\CustomerGroupReference;
/**
* @package Commercetools\Core\Error
*
* @method string getCode()
* @method MatchingPriceNotFoundError setCode(string $code = null)
* @method string getMessage()
* @method MatchingPriceNotFoundError setMessage(string $message = null)
* @method string getProductId()
* @method MatchingPriceNotFoundError setProductId(string $productId = null)
* @method string getVariantId()
* @method MatchingPriceNotFoundError setVariantId(string $variantId = null)
* @method string getCurrency()
* @method MatchingPriceNotFoundError setCurrency(string $currency = null)
* @method string getCountry()
* @method MatchingPriceNotFoundError setCountry(string $country = null)
* @method CustomerGroupReference getCustomerGroup()
* @method MatchingPriceNotFoundError setCustomerGroup(CustomerGroupReference $customerGroup = null)
* @method ChannelReference getChannel()
* @method MatchingPriceNotFoundError setChannel(ChannelReference $channel = null)
*/
class MatchingPriceNotFoundError extends ApiError
{
const CODE = 'MatchingPriceNotFound';
public function fieldDefinitions()
{
$definitions = parent::fieldDefinitions();
$definitions['productId'] = [static::TYPE => 'string'];
$definitions['variantId'] = [static::TYPE => 'string'];
$definitions['currency'] = [static::TYPE => 'string'];
$definitions['country'] = [static::TYPE => 'string'];
$definitions['customerGroup'] = [static::TYPE => CustomerGroupReference::class];
$definitions['channel'] = [static::TYPE => ChannelReference::class];
return $definitions;
}
}