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
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Model\Order;
use Commercetools\Core\Model\Common\JsonObject;
/**
* @package Commercetools\Core\Model\Order
* @link https://docs.commercetools.com/http-api-projects-orders.html#parcelmeasurements
* @method int getHeightInMillimeter()
* @method ParcelMeasurements setHeightInMillimeter(int $heightInMillimeter = null)
* @method int getLengthInMillimeter()
* @method ParcelMeasurements setLengthInMillimeter(int $lengthInMillimeter = null)
* @method int getWidthInMillimeter()
* @method ParcelMeasurements setWidthInMillimeter(int $widthInMillimeter = null)
* @method int getWeightInGram()
* @method ParcelMeasurements setWeightInGram(int $weightInGram = null)
*/
class ParcelMeasurements extends JsonObject
{
public function fieldDefinitions()
{
return [
'heightInMillimeter' => [static::TYPE => 'int', static::OPTIONAL => true],
'lengthInMillimeter' => [static::TYPE => 'int', static::OPTIONAL => true],
'widthInMillimeter' => [static::TYPE => 'int', static::OPTIONAL => true],
'weightInGram' => [static::TYPE => 'int', static::OPTIONAL => true],
];
}
}