commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ParcelDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
14 
15 interface ParcelDraft extends JsonObject
16 {
17  public const FIELD_KEY = 'key';
18  public const FIELD_MEASUREMENTS = 'measurements';
19  public const FIELD_TRACKING_DATA = 'trackingData';
20  public const FIELD_ITEMS = 'items';
21  public const FIELD_CUSTOM = 'custom';
22 
29  public function getKey();
30 
37  public function getMeasurements();
38 
45  public function getTrackingData();
46 
53  public function getItems();
54 
61  public function getCustom();
62 
66  public function setKey(?string $key): void;
67 
71  public function setMeasurements(?ParcelMeasurements $measurements): void;
72 
76  public function setTrackingData(?TrackingData $trackingData): void;
77 
81  public function setItems(?DeliveryItemCollection $items): void;
82 
86  public function setCustom(?CustomFieldsDraft $custom): void;
87 }
setCustom(?CustomFieldsDraft $custom)
setTrackingData(?TrackingData $trackingData)
setItems(?DeliveryItemCollection $items)
setMeasurements(?ParcelMeasurements $measurements)