commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CartBuilder.php
1<?php
2
3declare(strict_types=1);
10
39use DateTimeImmutable;
40use stdClass;
41
45final class CartBuilder implements Builder
46{
51 private $id;
52
57 private $version;
58
63 private $createdAt;
64
69 private $lastModifiedAt;
70
75 private $key;
76
81 private $customerId;
82
87 private $customerEmail;
88
93 private $customerGroup;
94
99 private $anonymousId;
100
105 private $businessUnit;
106
111 private $store;
112
117 private $lineItems;
118
123 private $customLineItems;
124
129 private $totalLineItemQuantity;
130
135 private $totalPrice;
136
141 private $taxedPrice;
142
147 private $taxedShippingPrice;
148
153 private $discountOnTotalPrice;
154
159 private $taxMode;
160
165 private $priceRoundingMode;
166
171 private $taxRoundingMode;
172
177 private $taxCalculationMode;
178
183 private $inventoryMode;
184
189 private $cartState;
190
195 private $freezeStrategy;
196
201 private $billingAddress;
202
207 private $shippingAddress;
208
213 private $shippingMode;
214
219 private $shippingKey;
220
225 private $shippingInfo;
226
231 private $shippingRateInput;
232
237 private $shippingCustomFields;
238
243 private $shipping;
244
249 private $itemShippingAddresses;
250
255 private $discountCodes;
256
261 private $directDiscounts;
262
267 private $directDiscountsIgnoreCartDiscounts;
268
273 private $refusedGifts;
274
279 private $paymentInfo;
280
285 private $country;
286
291 private $locale;
292
297 private $origin;
298
303 private $custom;
304
309 private $recurringPaymentConfiguration;
310
315 private $discountTypeCombination;
316
321 private $lock;
322
327 private $deleteDaysAfterLastModification;
328
333 private $purchaseOrderNumber;
334
339 private $lastModifiedBy;
340
345 private $createdBy;
346
351 private $warnings;
352
359 public function getId()
360 {
361 return $this->id;
362 }
363
370 public function getVersion()
371 {
372 return $this->version;
373 }
374
381 public function getCreatedAt()
382 {
383 return $this->createdAt;
384 }
385
392 public function getLastModifiedAt()
393 {
394 return $this->lastModifiedAt;
395 }
396
403 public function getKey()
404 {
405 return $this->key;
406 }
407
414 public function getCustomerId()
415 {
416 return $this->customerId;
417 }
418
425 public function getCustomerEmail()
426 {
427 return $this->customerEmail;
428 }
429
436 public function getCustomerGroup()
437 {
438 return $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup;
439 }
440
447 public function getAnonymousId()
448 {
449 return $this->anonymousId;
450 }
451
458 public function getBusinessUnit()
459 {
460 return $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit;
461 }
462
469 public function getStore()
470 {
471 return $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store;
472 }
473
480 public function getLineItems()
481 {
482 return $this->lineItems;
483 }
484
491 public function getCustomLineItems()
492 {
493 return $this->customLineItems;
494 }
495
502 public function getTotalLineItemQuantity()
503 {
504 return $this->totalLineItemQuantity;
505 }
506
515 public function getTotalPrice()
516 {
517 return $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice;
518 }
519
530 public function getTaxedPrice()
531 {
532 return $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice;
533 }
534
542 public function getTaxedShippingPrice()
543 {
544 return $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice;
545 }
546
553 public function getDiscountOnTotalPrice()
554 {
555 return $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice;
556 }
557
564 public function getTaxMode()
565 {
566 return $this->taxMode;
567 }
568
575 public function getPriceRoundingMode()
576 {
577 return $this->priceRoundingMode;
578 }
579
586 public function getTaxRoundingMode()
587 {
588 return $this->taxRoundingMode;
589 }
590
597 public function getTaxCalculationMode()
598 {
599 return $this->taxCalculationMode;
600 }
601
608 public function getInventoryMode()
609 {
610 return $this->inventoryMode;
611 }
612
619 public function getCartState()
620 {
621 return $this->cartState;
622 }
623
630 public function getFreezeStrategy()
631 {
632 return $this->freezeStrategy;
633 }
634
641 public function getBillingAddress()
642 {
643 return $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress;
644 }
645
652 public function getShippingAddress()
653 {
654 return $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress;
655 }
656
663 public function getShippingMode()
664 {
665 return $this->shippingMode;
666 }
667
674 public function getShippingKey()
675 {
676 return $this->shippingKey;
677 }
678
685 public function getShippingInfo()
686 {
687 return $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo;
688 }
689
702 public function getShippingRateInput()
703 {
704 return $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput;
705 }
706
713 public function getShippingCustomFields()
714 {
715 return $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields;
716 }
717
724 public function getShipping()
725 {
726 return $this->shipping;
727 }
728
736 public function getItemShippingAddresses()
737 {
738 return $this->itemShippingAddresses;
739 }
740
748 public function getDiscountCodes()
749 {
750 return $this->discountCodes;
751 }
752
760 public function getDirectDiscounts()
761 {
762 return $this->directDiscounts;
763 }
764
775 {
776 return $this->directDiscountsIgnoreCartDiscounts;
777 }
778
785 public function getRefusedGifts()
786 {
787 return $this->refusedGifts;
788 }
789
796 public function getPaymentInfo()
797 {
798 return $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo;
799 }
800
807 public function getCountry()
808 {
809 return $this->country;
810 }
811
818 public function getLocale()
819 {
820 return $this->locale;
821 }
822
829 public function getOrigin()
830 {
831 return $this->origin;
832 }
833
840 public function getCustom()
841 {
842 return $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom;
843 }
844
852 {
853 return $this->recurringPaymentConfiguration instanceof RecurringPaymentConfigurationBuilder ? $this->recurringPaymentConfiguration->build() : $this->recurringPaymentConfiguration;
854 }
855
863 {
864 return $this->discountTypeCombination instanceof DiscountTypeCombinationBuilder ? $this->discountTypeCombination->build() : $this->discountTypeCombination;
865 }
866
873 public function getLock()
874 {
875 return $this->lock instanceof CartLockBuilder ? $this->lock->build() : $this->lock;
876 }
877
885 {
886 return $this->deleteDaysAfterLastModification;
887 }
888
896 public function getPurchaseOrderNumber()
897 {
898 return $this->purchaseOrderNumber;
899 }
900
907 public function getLastModifiedBy()
908 {
909 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
910 }
911
918 public function getCreatedBy()
919 {
920 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
921 }
922
929 public function getWarnings()
930 {
931 return $this->warnings;
932 }
933
938 public function withId(?string $id)
939 {
940 $this->id = $id;
941
942 return $this;
943 }
944
949 public function withVersion(?int $version)
950 {
951 $this->version = $version;
952
953 return $this;
954 }
955
960 public function withCreatedAt(?DateTimeImmutable $createdAt)
961 {
962 $this->createdAt = $createdAt;
963
964 return $this;
965 }
966
971 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
972 {
973 $this->lastModifiedAt = $lastModifiedAt;
974
975 return $this;
976 }
977
982 public function withKey(?string $key)
983 {
984 $this->key = $key;
985
986 return $this;
987 }
988
993 public function withCustomerId(?string $customerId)
994 {
995 $this->customerId = $customerId;
996
997 return $this;
998 }
999
1004 public function withCustomerEmail(?string $customerEmail)
1005 {
1006 $this->customerEmail = $customerEmail;
1007
1008 return $this;
1009 }
1010
1015 public function withCustomerGroup(?CustomerGroupReference $customerGroup)
1016 {
1017 $this->customerGroup = $customerGroup;
1018
1019 return $this;
1020 }
1021
1026 public function withAnonymousId(?string $anonymousId)
1027 {
1028 $this->anonymousId = $anonymousId;
1029
1030 return $this;
1031 }
1032
1037 public function withBusinessUnit(?BusinessUnitKeyReference $businessUnit)
1038 {
1039 $this->businessUnit = $businessUnit;
1040
1041 return $this;
1042 }
1043
1048 public function withStore(?StoreKeyReference $store)
1049 {
1050 $this->store = $store;
1051
1052 return $this;
1053 }
1054
1059 public function withLineItems(?LineItemCollection $lineItems)
1060 {
1061 $this->lineItems = $lineItems;
1062
1063 return $this;
1064 }
1065
1070 public function withCustomLineItems(?CustomLineItemCollection $customLineItems)
1071 {
1072 $this->customLineItems = $customLineItems;
1073
1074 return $this;
1075 }
1076
1081 public function withTotalLineItemQuantity(?int $totalLineItemQuantity)
1082 {
1083 $this->totalLineItemQuantity = $totalLineItemQuantity;
1084
1085 return $this;
1086 }
1087
1092 public function withTotalPrice(?CentPrecisionMoney $totalPrice)
1093 {
1094 $this->totalPrice = $totalPrice;
1095
1096 return $this;
1097 }
1098
1103 public function withTaxedPrice(?TaxedPrice $taxedPrice)
1104 {
1105 $this->taxedPrice = $taxedPrice;
1106
1107 return $this;
1108 }
1109
1114 public function withTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
1115 {
1116 $this->taxedShippingPrice = $taxedShippingPrice;
1117
1118 return $this;
1119 }
1120
1125 public function withDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice)
1126 {
1127 $this->discountOnTotalPrice = $discountOnTotalPrice;
1128
1129 return $this;
1130 }
1131
1136 public function withTaxMode(?string $taxMode)
1137 {
1138 $this->taxMode = $taxMode;
1139
1140 return $this;
1141 }
1142
1147 public function withPriceRoundingMode(?string $priceRoundingMode)
1148 {
1149 $this->priceRoundingMode = $priceRoundingMode;
1150
1151 return $this;
1152 }
1153
1158 public function withTaxRoundingMode(?string $taxRoundingMode)
1159 {
1160 $this->taxRoundingMode = $taxRoundingMode;
1161
1162 return $this;
1163 }
1164
1169 public function withTaxCalculationMode(?string $taxCalculationMode)
1170 {
1171 $this->taxCalculationMode = $taxCalculationMode;
1172
1173 return $this;
1174 }
1175
1180 public function withInventoryMode(?string $inventoryMode)
1181 {
1182 $this->inventoryMode = $inventoryMode;
1183
1184 return $this;
1185 }
1186
1191 public function withCartState(?string $cartState)
1192 {
1193 $this->cartState = $cartState;
1194
1195 return $this;
1196 }
1197
1202 public function withFreezeStrategy(?string $freezeStrategy)
1203 {
1204 $this->freezeStrategy = $freezeStrategy;
1205
1206 return $this;
1207 }
1208
1213 public function withBillingAddress(?Address $billingAddress)
1214 {
1215 $this->billingAddress = $billingAddress;
1216
1217 return $this;
1218 }
1219
1224 public function withShippingAddress(?Address $shippingAddress)
1225 {
1226 $this->shippingAddress = $shippingAddress;
1227
1228 return $this;
1229 }
1230
1235 public function withShippingMode(?string $shippingMode)
1236 {
1237 $this->shippingMode = $shippingMode;
1238
1239 return $this;
1240 }
1241
1246 public function withShippingKey(?string $shippingKey)
1247 {
1248 $this->shippingKey = $shippingKey;
1249
1250 return $this;
1251 }
1252
1257 public function withShippingInfo(?ShippingInfo $shippingInfo)
1258 {
1259 $this->shippingInfo = $shippingInfo;
1260
1261 return $this;
1262 }
1263
1268 public function withShippingRateInput(?ShippingRateInput $shippingRateInput)
1269 {
1270 $this->shippingRateInput = $shippingRateInput;
1271
1272 return $this;
1273 }
1274
1279 public function withShippingCustomFields(?CustomFields $shippingCustomFields)
1280 {
1281 $this->shippingCustomFields = $shippingCustomFields;
1282
1283 return $this;
1284 }
1285
1290 public function withShipping(?ShippingCollection $shipping)
1291 {
1292 $this->shipping = $shipping;
1293
1294 return $this;
1295 }
1296
1301 public function withItemShippingAddresses(?AddressCollection $itemShippingAddresses)
1302 {
1303 $this->itemShippingAddresses = $itemShippingAddresses;
1304
1305 return $this;
1306 }
1307
1312 public function withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
1313 {
1314 $this->discountCodes = $discountCodes;
1315
1316 return $this;
1317 }
1318
1323 public function withDirectDiscounts(?DirectDiscountCollection $directDiscounts)
1324 {
1325 $this->directDiscounts = $directDiscounts;
1326
1327 return $this;
1328 }
1329
1334 public function withDirectDiscountsIgnoreCartDiscounts(?bool $directDiscountsIgnoreCartDiscounts)
1335 {
1336 $this->directDiscountsIgnoreCartDiscounts = $directDiscountsIgnoreCartDiscounts;
1337
1338 return $this;
1339 }
1340
1346 {
1347 $this->refusedGifts = $refusedGifts;
1348
1349 return $this;
1350 }
1351
1356 public function withPaymentInfo(?PaymentInfo $paymentInfo)
1357 {
1358 $this->paymentInfo = $paymentInfo;
1359
1360 return $this;
1361 }
1362
1367 public function withCountry(?string $country)
1368 {
1369 $this->country = $country;
1370
1371 return $this;
1372 }
1373
1378 public function withLocale(?string $locale)
1379 {
1380 $this->locale = $locale;
1381
1382 return $this;
1383 }
1384
1389 public function withOrigin(?string $origin)
1390 {
1391 $this->origin = $origin;
1392
1393 return $this;
1394 }
1395
1400 public function withCustom(?CustomFields $custom)
1401 {
1402 $this->custom = $custom;
1403
1404 return $this;
1405 }
1406
1411 public function withRecurringPaymentConfiguration(?RecurringPaymentConfiguration $recurringPaymentConfiguration)
1412 {
1413 $this->recurringPaymentConfiguration = $recurringPaymentConfiguration;
1414
1415 return $this;
1416 }
1417
1422 public function withDiscountTypeCombination(?DiscountTypeCombination $discountTypeCombination)
1423 {
1424 $this->discountTypeCombination = $discountTypeCombination;
1425
1426 return $this;
1427 }
1428
1433 public function withLock(?CartLock $lock)
1434 {
1435 $this->lock = $lock;
1436
1437 return $this;
1438 }
1439
1444 public function withDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
1445 {
1446 $this->deleteDaysAfterLastModification = $deleteDaysAfterLastModification;
1447
1448 return $this;
1449 }
1450
1455 public function withPurchaseOrderNumber(?string $purchaseOrderNumber)
1456 {
1457 $this->purchaseOrderNumber = $purchaseOrderNumber;
1458
1459 return $this;
1460 }
1461
1466 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
1467 {
1468 $this->lastModifiedBy = $lastModifiedBy;
1469
1470 return $this;
1471 }
1472
1477 public function withCreatedBy(?CreatedBy $createdBy)
1478 {
1479 $this->createdBy = $createdBy;
1480
1481 return $this;
1482 }
1483
1488 public function withWarnings(?WarningObjectCollection $warnings)
1489 {
1490 $this->warnings = $warnings;
1491
1492 return $this;
1493 }
1494
1500 {
1501 $this->customerGroup = $customerGroup;
1502
1503 return $this;
1504 }
1505
1511 {
1512 $this->businessUnit = $businessUnit;
1513
1514 return $this;
1515 }
1516
1522 {
1523 $this->store = $store;
1524
1525 return $this;
1526 }
1527
1533 {
1534 $this->totalPrice = $totalPrice;
1535
1536 return $this;
1537 }
1538
1543 public function withTaxedPriceBuilder(?TaxedPriceBuilder $taxedPrice)
1544 {
1545 $this->taxedPrice = $taxedPrice;
1546
1547 return $this;
1548 }
1549
1554 public function withTaxedShippingPriceBuilder(?TaxedPriceBuilder $taxedShippingPrice)
1555 {
1556 $this->taxedShippingPrice = $taxedShippingPrice;
1557
1558 return $this;
1559 }
1560
1565 public function withDiscountOnTotalPriceBuilder(?DiscountOnTotalPriceBuilder $discountOnTotalPrice)
1566 {
1567 $this->discountOnTotalPrice = $discountOnTotalPrice;
1568
1569 return $this;
1570 }
1571
1576 public function withBillingAddressBuilder(?AddressBuilder $billingAddress)
1577 {
1578 $this->billingAddress = $billingAddress;
1579
1580 return $this;
1581 }
1582
1587 public function withShippingAddressBuilder(?AddressBuilder $shippingAddress)
1588 {
1589 $this->shippingAddress = $shippingAddress;
1590
1591 return $this;
1592 }
1593
1598 public function withShippingInfoBuilder(?ShippingInfoBuilder $shippingInfo)
1599 {
1600 $this->shippingInfo = $shippingInfo;
1601
1602 return $this;
1603 }
1604
1609 public function withShippingRateInputBuilder(?ShippingRateInputBuilder $shippingRateInput)
1610 {
1611 $this->shippingRateInput = $shippingRateInput;
1612
1613 return $this;
1614 }
1615
1620 public function withShippingCustomFieldsBuilder(?CustomFieldsBuilder $shippingCustomFields)
1621 {
1622 $this->shippingCustomFields = $shippingCustomFields;
1623
1624 return $this;
1625 }
1626
1631 public function withPaymentInfoBuilder(?PaymentInfoBuilder $paymentInfo)
1632 {
1633 $this->paymentInfo = $paymentInfo;
1634
1635 return $this;
1636 }
1637
1642 public function withCustomBuilder(?CustomFieldsBuilder $custom)
1643 {
1644 $this->custom = $custom;
1645
1646 return $this;
1647 }
1648
1654 {
1655 $this->recurringPaymentConfiguration = $recurringPaymentConfiguration;
1656
1657 return $this;
1658 }
1659
1665 {
1666 $this->discountTypeCombination = $discountTypeCombination;
1667
1668 return $this;
1669 }
1670
1675 public function withLockBuilder(?CartLockBuilder $lock)
1676 {
1677 $this->lock = $lock;
1678
1679 return $this;
1680 }
1681
1686 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
1687 {
1688 $this->lastModifiedBy = $lastModifiedBy;
1689
1690 return $this;
1691 }
1692
1697 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
1698 {
1699 $this->createdBy = $createdBy;
1700
1701 return $this;
1702 }
1703
1704 public function build(): Cart
1705 {
1706 return new CartModel(
1707 $this->id,
1708 $this->version,
1709 $this->createdAt,
1710 $this->lastModifiedAt,
1711 $this->key,
1712 $this->customerId,
1713 $this->customerEmail,
1714 $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup,
1715 $this->anonymousId,
1716 $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit,
1717 $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store,
1718 $this->lineItems,
1719 $this->customLineItems,
1720 $this->totalLineItemQuantity,
1721 $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice,
1722 $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice,
1723 $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice,
1724 $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice,
1725 $this->taxMode,
1726 $this->priceRoundingMode,
1727 $this->taxRoundingMode,
1728 $this->taxCalculationMode,
1729 $this->inventoryMode,
1730 $this->cartState,
1731 $this->freezeStrategy,
1732 $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress,
1733 $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress,
1734 $this->shippingMode,
1735 $this->shippingKey,
1736 $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo,
1737 $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput,
1738 $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields,
1739 $this->shipping,
1740 $this->itemShippingAddresses,
1741 $this->discountCodes,
1742 $this->directDiscounts,
1743 $this->directDiscountsIgnoreCartDiscounts,
1744 $this->refusedGifts,
1745 $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo,
1746 $this->country,
1747 $this->locale,
1748 $this->origin,
1749 $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom,
1750 $this->recurringPaymentConfiguration instanceof RecurringPaymentConfigurationBuilder ? $this->recurringPaymentConfiguration->build() : $this->recurringPaymentConfiguration,
1751 $this->discountTypeCombination instanceof DiscountTypeCombinationBuilder ? $this->discountTypeCombination->build() : $this->discountTypeCombination,
1752 $this->lock instanceof CartLockBuilder ? $this->lock->build() : $this->lock,
1753 $this->deleteDaysAfterLastModification,
1754 $this->purchaseOrderNumber,
1755 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
1756 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
1757 $this->warnings
1758 );
1759 }
1760
1761 public static function of(): CartBuilder
1762 {
1763 return new self();
1764 }
1765}
withDiscountTypeCombination(?DiscountTypeCombination $discountTypeCombination)
withTotalPriceBuilder(?CentPrecisionMoneyBuilder $totalPrice)
withShippingAddressBuilder(?AddressBuilder $shippingAddress)
withLineItems(?LineItemCollection $lineItems)
withFreezeStrategy(?string $freezeStrategy)
withTaxedPriceBuilder(?TaxedPriceBuilder $taxedPrice)
withBusinessUnit(?BusinessUnitKeyReference $businessUnit)
withDiscountTypeCombinationBuilder(?DiscountTypeCombinationBuilder $discountTypeCombination)
withTaxCalculationMode(?string $taxCalculationMode)
withShippingRateInput(?ShippingRateInput $shippingRateInput)
withRefusedGifts(?CartDiscountReferenceCollection $refusedGifts)
withCustomerGroup(?CustomerGroupReference $customerGroup)
withShippingCustomFieldsBuilder(?CustomFieldsBuilder $shippingCustomFields)
withRecurringPaymentConfiguration(?RecurringPaymentConfiguration $recurringPaymentConfiguration)
withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
withStoreBuilder(?StoreKeyReferenceBuilder $store)
withShippingInfo(?ShippingInfo $shippingInfo)
withShipping(?ShippingCollection $shipping)
withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
withBusinessUnitBuilder(?BusinessUnitKeyReferenceBuilder $businessUnit)
withShippingInfoBuilder(?ShippingInfoBuilder $shippingInfo)
withDirectDiscountsIgnoreCartDiscounts(?bool $directDiscountsIgnoreCartDiscounts)
withDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice)
withDirectDiscounts(?DirectDiscountCollection $directDiscounts)
withTaxRoundingMode(?string $taxRoundingMode)
withCustomLineItems(?CustomLineItemCollection $customLineItems)
withPurchaseOrderNumber(?string $purchaseOrderNumber)
withPriceRoundingMode(?string $priceRoundingMode)
withBillingAddressBuilder(?AddressBuilder $billingAddress)
withDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
withPaymentInfo(?PaymentInfo $paymentInfo)
withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
withCreatedAt(?DateTimeImmutable $createdAt)
withShippingRateInputBuilder(?ShippingRateInputBuilder $shippingRateInput)
withTotalLineItemQuantity(?int $totalLineItemQuantity)
withShippingCustomFields(?CustomFields $shippingCustomFields)
withWarnings(?WarningObjectCollection $warnings)
withTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
withShippingAddress(?Address $shippingAddress)
withTaxedShippingPriceBuilder(?TaxedPriceBuilder $taxedShippingPrice)
withCreatedByBuilder(?CreatedByBuilder $createdBy)
withRecurringPaymentConfigurationBuilder(?RecurringPaymentConfigurationBuilder $recurringPaymentConfiguration)
withDiscountOnTotalPriceBuilder(?DiscountOnTotalPriceBuilder $discountOnTotalPrice)
withTotalPrice(?CentPrecisionMoney $totalPrice)
withItemShippingAddresses(?AddressCollection $itemShippingAddresses)
withBillingAddress(?Address $billingAddress)
withCustomerGroupBuilder(?CustomerGroupReferenceBuilder $customerGroup)
withPaymentInfoBuilder(?PaymentInfoBuilder $paymentInfo)
withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
withCustomBuilder(?CustomFieldsBuilder $custom)