commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
ParcelDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
10
11
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Api\Models\Order\DeliveryItemCollection
Definition:
DeliveryItemCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Order\ParcelDraft
Definition:
ParcelDraft.php:16
Commercetools\Api\Models\Order\ParcelDraft\getItems
getItems()
Commercetools\Api\Models\Order\ParcelDraft\getTrackingData
getTrackingData()
Commercetools\Api\Models\Order\ParcelDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Order\ParcelDraft\FIELD_KEY
const FIELD_KEY
Definition:
ParcelDraft.php:17
Commercetools\Api\Models\Order\ParcelDraft\setTrackingData
setTrackingData(?TrackingData $trackingData)
Commercetools\Api\Models\Order\ParcelDraft\FIELD_ITEMS
const FIELD_ITEMS
Definition:
ParcelDraft.php:20
Commercetools\Api\Models\Order\ParcelDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ParcelDraft.php:21
Commercetools\Api\Models\Order\ParcelDraft\FIELD_TRACKING_DATA
const FIELD_TRACKING_DATA
Definition:
ParcelDraft.php:19
Commercetools\Api\Models\Order\ParcelDraft\getKey
getKey()
Commercetools\Api\Models\Order\ParcelDraft\getMeasurements
getMeasurements()
Commercetools\Api\Models\Order\ParcelDraft\getCustom
getCustom()
Commercetools\Api\Models\Order\ParcelDraft\setItems
setItems(?DeliveryItemCollection $items)
Commercetools\Api\Models\Order\ParcelDraft\setMeasurements
setMeasurements(?ParcelMeasurements $measurements)
Commercetools\Api\Models\Order\ParcelDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Order\ParcelDraft\FIELD_MEASUREMENTS
const FIELD_MEASUREMENTS
Definition:
ParcelDraft.php:18
Commercetools\Api\Models\Order\ParcelMeasurements
Definition:
ParcelMeasurements.php:15
Commercetools\Api\Models\Order\TrackingData
Definition:
TrackingData.php:15
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1