commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
MyLineItemDraft.php
1<?php
2
3declare(strict_types=1);
10
16use DateTimeImmutable;
17
18interface MyLineItemDraft extends JsonObject
19{
20 public const FIELD_KEY = 'key';
21 public const FIELD_PRODUCT_ID = 'productId';
22 public const FIELD_VARIANT_ID = 'variantId';
23 public const FIELD_SKU = 'sku';
24 public const FIELD_QUANTITY = 'quantity';
25 public const FIELD_ADDED_AT = 'addedAt';
26 public const FIELD_SUPPLY_CHANNEL = 'supplyChannel';
27 public const FIELD_DISTRIBUTION_CHANNEL = 'distributionChannel';
28 public const FIELD_SHIPPING_DETAILS = 'shippingDetails';
29 public const FIELD_CUSTOM = 'custom';
30
37 public function getKey();
38
45 public function getProductId();
46
54 public function getVariantId();
55
62 public function getSku();
63
70 public function getQuantity();
71
80 public function getAddedAt();
81
89 public function getSupplyChannel();
90
100 public function getDistributionChannel();
101
108 public function getShippingDetails();
109
116 public function getCustom();
117
121 public function setKey(?string $key): void;
122
126 public function setProductId(?string $productId): void;
127
131 public function setVariantId(?int $variantId): void;
132
136 public function setSku(?string $sku): void;
137
141 public function setQuantity(?int $quantity): void;
142
146 public function setAddedAt(?DateTimeImmutable $addedAt): void;
147
151 public function setSupplyChannel(?ChannelResourceIdentifier $supplyChannel): void;
152
156 public function setDistributionChannel(?ChannelResourceIdentifier $distributionChannel): void;
157
161 public function setShippingDetails(?ItemShippingDetailsDraft $shippingDetails): void;
162
166 public function setCustom(?CustomFieldsDraft $custom): void;
167}
setCustom(?CustomFieldsDraft $custom)
setDistributionChannel(?ChannelResourceIdentifier $distributionChannel)
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
setSupplyChannel(?ChannelResourceIdentifier $supplyChannel)
setAddedAt(?DateTimeImmutable $addedAt)