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
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Model\ShippingMethod;
use Commercetools\Core\Model\Common\JsonObject;
use Commercetools\Core\Model\Zone\ZoneReference;
/**
* @package Commercetools\Core\Model\ShippingMethod
* @link https://docs.commercetools.com/http-api-projects-shippingMethods.html#zonerate
* @method ZoneReference getZone()
* @method ZoneRate setZone(ZoneReference $zone = null)
* @method ShippingRateCollection getShippingRates()
* @method ZoneRate setShippingRates(ShippingRateCollection $shippingRates = null)
*/
class ZoneRate extends ZoneRateDraft
{
public function fieldDefinitions()
{
return [
'zone' => [static::TYPE => ZoneReference::class],
'shippingRates' => [static::TYPE => ShippingRateCollection::class]
];
}
}