commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartAddCustomLineItemAction.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 
19 {
20  public const FIELD_MONEY = 'money';
21  public const FIELD_NAME = 'name';
22  public const FIELD_KEY = 'key';
23  public const FIELD_QUANTITY = 'quantity';
24  public const FIELD_SLUG = 'slug';
25  public const FIELD_TAX_CATEGORY = 'taxCategory';
26  public const FIELD_EXTERNAL_TAX_RATE = 'externalTaxRate';
27  public const FIELD_SHIPPING_DETAILS = 'shippingDetails';
28  public const FIELD_CUSTOM = 'custom';
29  public const FIELD_PRICE_MODE = 'priceMode';
30 
38  public function getMoney();
39 
46  public function getName();
47 
54  public function getKey();
55 
62  public function getQuantity();
63 
71  public function getSlug();
72 
80  public function getTaxCategory();
81 
88  public function getExternalTaxRate();
89 
96  public function getShippingDetails();
97 
104  public function getCustom();
105 
116  public function getPriceMode();
117 
121  public function setMoney(?Money $money): void;
122 
126  public function setName(?LocalizedString $name): void;
127 
131  public function setKey(?string $key): void;
132 
136  public function setQuantity(?int $quantity): void;
137 
141  public function setSlug(?string $slug): void;
142 
146  public function setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory): void;
147 
151  public function setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate): void;
152 
156  public function setShippingDetails(?ItemShippingDetailsDraft $shippingDetails): void;
157 
161  public function setCustom(?CustomFieldsDraft $custom): void;
162 
166  public function setPriceMode(?string $priceMode): void;
167 }
setShippingDetails(?ItemShippingDetailsDraft $shippingDetails)
setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate)
setTaxCategory(?TaxCategoryResourceIdentifier $taxCategory)