commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
LineItemDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use DateTimeImmutable;
17 
18 interface LineItemDraft 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_DISTRIBUTION_CHANNEL = 'distributionChannel';
27  public const FIELD_SUPPLY_CHANNEL = 'supplyChannel';
28  public const FIELD_EXTERNAL_PRICE = 'externalPrice';
29  public const FIELD_EXTERNAL_TOTAL_PRICE = 'externalTotalPrice';
30  public const FIELD_EXTERNAL_TAX_RATE = 'externalTaxRate';
31  public const FIELD_PER_METHOD_EXTERNAL_TAX_RATE = 'perMethodExternalTaxRate';
32  public const FIELD_INVENTORY_MODE = 'inventoryMode';
33  public const FIELD_SHIPPING_DETAILS = 'shippingDetails';
34  public const FIELD_CUSTOM = 'custom';
35 
42  public function getKey();
43 
50  public function getProductId();
51 
59  public function getVariantId();
60 
67  public function getSku();
68 
75  public function getQuantity();
76 
85  public function getAddedAt();
86 
96  public function getDistributionChannel();
97 
105  public function getSupplyChannel();
106 
113  public function getExternalPrice();
114 
121  public function getExternalTotalPrice();
122 
129  public function getExternalTaxRate();
130 
137  public function getPerMethodExternalTaxRate();
138 
146  public function getInventoryMode();
147 
154  public function getShippingDetails();
155 
162  public function getCustom();
163 
167  public function setKey(?string $key): void;
168 
172  public function setProductId(?string $productId): void;
173 
177  public function setVariantId(?int $variantId): void;
178 
182  public function setSku(?string $sku): void;
183 
187  public function setQuantity(?int $quantity): void;
188 
192  public function setAddedAt(?DateTimeImmutable $addedAt): void;
193 
197  public function setDistributionChannel(?ChannelResourceIdentifier $distributionChannel): void;
198 
202  public function setSupplyChannel(?ChannelResourceIdentifier $supplyChannel): void;
203 
207  public function setExternalPrice(?Money $externalPrice): void;
208 
212  public function setExternalTotalPrice(?ExternalLineItemTotalPrice $externalTotalPrice): void;
213 
217  public function setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate): void;
218 
222  public function setPerMethodExternalTaxRate(?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate): void;
223 
227  public function setInventoryMode(?string $inventoryMode): void;
228 
232  public function setShippingDetails(?ItemShippingDetailsDraft $shippingDetails): void;
233 
237  public function setCustom(?CustomFieldsDraft $custom): void;
238 }
setSupplyChannel(?ChannelResourceIdentifier $supplyChannel)
setInventoryMode(?string $inventoryMode)
setAddedAt(?DateTimeImmutable $addedAt)
setExternalTotalPrice(?ExternalLineItemTotalPrice $externalTotalPrice)
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
setDistributionChannel(?ChannelResourceIdentifier $distributionChannel)
setPerMethodExternalTaxRate(?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate)
setCustom(?CustomFieldsDraft $custom)