| @@ 20-31 (lines=12) @@ | ||
| 17 | * @method string getContentType() |
|
| 18 | * @method AssetSource setContentType(string $contentType = null) |
|
| 19 | */ |
|
| 20 | class AssetSource extends JsonObject |
|
| 21 | { |
|
| 22 | public function fieldDefinitions() |
|
| 23 | { |
|
| 24 | return [ |
|
| 25 | 'uri' => [static::TYPE => 'string'], |
|
| 26 | 'key' => [static::TYPE => 'string'], |
|
| 27 | 'dimensions' => [static::TYPE => '\Commercetools\Core\Model\Common\AssetDimension'], |
|
| 28 | 'contentType' => [static::TYPE => 'string'], |
|
| 29 | ]; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 23-37 (lines=15) @@ | ||
| 20 | * @method ParcelCollection getParcels() |
|
| 21 | * @method Delivery setParcels(ParcelCollection $parcels = null) |
|
| 22 | */ |
|
| 23 | class Delivery extends JsonObject |
|
| 24 | { |
|
| 25 | public function fieldDefinitions() |
|
| 26 | { |
|
| 27 | return [ |
|
| 28 | 'id' => [static::TYPE => 'string'], |
|
| 29 | 'createdAt' => [ |
|
| 30 | static::TYPE => '\DateTime', |
|
| 31 | static::DECORATOR => '\Commercetools\Core\Model\Common\DateTimeDecorator' |
|
| 32 | ], |
|
| 33 | 'items' => [static::TYPE => '\Commercetools\Core\Model\Order\DeliveryItemCollection'], |
|
| 34 | 'parcels' => [static::TYPE => '\Commercetools\Core\Model\Order\ParcelCollection'], |
|
| 35 | ]; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 23-37 (lines=15) @@ | ||
| 20 | * @method TrackingData getTrackingData() |
|
| 21 | * @method Parcel setTrackingData(TrackingData $trackingData = null) |
|
| 22 | */ |
|
| 23 | class Parcel extends JsonObject |
|
| 24 | { |
|
| 25 | public function fieldDefinitions() |
|
| 26 | { |
|
| 27 | return [ |
|
| 28 | 'id' => [static::TYPE => 'string'], |
|
| 29 | 'createdAt' => [ |
|
| 30 | static::TYPE => '\DateTime', |
|
| 31 | static::DECORATOR => '\Commercetools\Core\Model\Common\DateTimeDecorator' |
|
| 32 | ], |
|
| 33 | 'measurements' => [static::TYPE => '\Commercetools\Core\Model\Order\ParcelMeasurements'], |
|
| 34 | 'trackingData' => [static::TYPE => '\Commercetools\Core\Model\Order\TrackingData'], |
|
| 35 | ]; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||