commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
All Classes Namespaces Functions Variables Pages
OrderBuilder.php
1<?php
2
3declare(strict_types=1);
10
59use DateTimeImmutable;
60use stdClass;
61
65final class OrderBuilder implements Builder
66{
71 private $id;
72
77 private $version;
78
83 private $createdAt;
84
89 private $lastModifiedAt;
90
95 private $orderNumber;
96
101 private $purchaseOrderNumber;
102
107 private $customerId;
108
113 private $customerEmail;
114
119 private $customerGroup;
120
125 private $anonymousId;
126
131 private $businessUnit;
132
137 private $store;
138
143 private $lineItems;
144
149 private $customLineItems;
150
155 private $totalPrice;
156
161 private $taxedPrice;
162
167 private $taxedShippingPrice;
168
173 private $discountOnTotalPrice;
174
179 private $taxMode;
180
185 private $taxRoundingMode;
186
191 private $taxCalculationMode;
192
197 private $inventoryMode;
198
203 private $billingAddress;
204
209 private $shippingAddress;
210
215 private $shippingMode;
216
221 private $shippingKey;
222
227 private $shippingInfo;
228
233 private $shippingRateInput;
234
239 private $shippingCustomFields;
240
245 private $shipping;
246
251 private $itemShippingAddresses;
252
257 private $discountCodes;
258
263 private $directDiscounts;
264
269 private $refusedGifts;
270
275 private $paymentInfo;
276
281 private $country;
282
287 private $locale;
288
293 private $origin;
294
299 private $cart;
300
305 private $quote;
306
311 private $orderState;
312
317 private $shipmentState;
318
323 private $paymentState;
324
329 private $state;
330
335 private $syncInfo;
336
341 private $returnInfo;
342
347 private $discountTypeCombination;
348
353 private $lastMessageSequenceNumber;
354
359 private $custom;
360
365 private $completedAt;
366
371 private $lastModifiedBy;
372
377 private $createdBy;
378
385 public function getId()
386 {
387 return $this->id;
388 }
389
396 public function getVersion()
397 {
398 return $this->version;
399 }
400
407 public function getCreatedAt()
408 {
409 return $this->createdAt;
410 }
411
418 public function getLastModifiedAt()
419 {
420 return $this->lastModifiedAt;
421 }
422
429 public function getOrderNumber()
430 {
431 return $this->orderNumber;
432 }
433
441 public function getPurchaseOrderNumber()
442 {
443 return $this->purchaseOrderNumber;
444 }
445
452 public function getCustomerId()
453 {
454 return $this->customerId;
455 }
456
463 public function getCustomerEmail()
464 {
465 return $this->customerEmail;
466 }
467
475 public function getCustomerGroup()
476 {
477 return $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup;
478 }
479
486 public function getAnonymousId()
487 {
488 return $this->anonymousId;
489 }
490
497 public function getBusinessUnit()
498 {
499 return $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit;
500 }
501
508 public function getStore()
509 {
510 return $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store;
511 }
512
519 public function getLineItems()
520 {
521 return $this->lineItems;
522 }
523
530 public function getCustomLineItems()
531 {
532 return $this->customLineItems;
533 }
534
543 public function getTotalPrice()
544 {
545 return $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice;
546 }
547
558 public function getTaxedPrice()
559 {
560 return $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice;
561 }
562
569 public function getTaxedShippingPrice()
570 {
571 return $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice;
572 }
573
580 public function getDiscountOnTotalPrice()
581 {
582 return $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice;
583 }
584
591 public function getTaxMode()
592 {
593 return $this->taxMode;
594 }
595
602 public function getTaxRoundingMode()
603 {
604 return $this->taxRoundingMode;
605 }
606
613 public function getTaxCalculationMode()
614 {
615 return $this->taxCalculationMode;
616 }
617
624 public function getInventoryMode()
625 {
626 return $this->inventoryMode;
627 }
628
635 public function getBillingAddress()
636 {
637 return $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress;
638 }
639
647 public function getShippingAddress()
648 {
649 return $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress;
650 }
651
658 public function getShippingMode()
659 {
660 return $this->shippingMode;
661 }
662
669 public function getShippingKey()
670 {
671 return $this->shippingKey;
672 }
673
681 public function getShippingInfo()
682 {
683 return $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo;
684 }
685
698 public function getShippingRateInput()
699 {
700 return $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput;
701 }
702
709 public function getShippingCustomFields()
710 {
711 return $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields;
712 }
713
721 public function getShipping()
722 {
723 return $this->shipping;
724 }
725
733 public function getItemShippingAddresses()
734 {
735 return $this->itemShippingAddresses;
736 }
737
745 public function getDiscountCodes()
746 {
747 return $this->discountCodes;
748 }
749
757 public function getDirectDiscounts()
758 {
759 return $this->directDiscounts;
760 }
761
768 public function getRefusedGifts()
769 {
770 return $this->refusedGifts;
771 }
772
779 public function getPaymentInfo()
780 {
781 return $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo;
782 }
783
790 public function getCountry()
791 {
792 return $this->country;
793 }
794
802 public function getLocale()
803 {
804 return $this->locale;
805 }
806
813 public function getOrigin()
814 {
815 return $this->origin;
816 }
817
825 public function getCart()
826 {
827 return $this->cart instanceof CartReferenceBuilder ? $this->cart->build() : $this->cart;
828 }
829
836 public function getQuote()
837 {
838 return $this->quote instanceof QuoteReferenceBuilder ? $this->quote->build() : $this->quote;
839 }
840
847 public function getOrderState()
848 {
849 return $this->orderState;
850 }
851
858 public function getShipmentState()
859 {
860 return $this->shipmentState;
861 }
862
869 public function getPaymentState()
870 {
871 return $this->paymentState;
872 }
873
881 public function getState()
882 {
883 return $this->state instanceof StateReferenceBuilder ? $this->state->build() : $this->state;
884 }
885
893 public function getSyncInfo()
894 {
895 return $this->syncInfo;
896 }
897
904 public function getReturnInfo()
905 {
906 return $this->returnInfo;
907 }
908
916 {
917 return $this->discountTypeCombination instanceof DiscountTypeCombinationBuilder ? $this->discountTypeCombination->build() : $this->discountTypeCombination;
918 }
919
927 {
928 return $this->lastMessageSequenceNumber;
929 }
930
937 public function getCustom()
938 {
939 return $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom;
940 }
941
949 public function getCompletedAt()
950 {
951 return $this->completedAt;
952 }
953
960 public function getLastModifiedBy()
961 {
962 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
963 }
964
971 public function getCreatedBy()
972 {
973 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
974 }
975
980 public function withId(?string $id)
981 {
982 $this->id = $id;
983
984 return $this;
985 }
986
991 public function withVersion(?int $version)
992 {
993 $this->version = $version;
994
995 return $this;
996 }
997
1002 public function withCreatedAt(?DateTimeImmutable $createdAt)
1003 {
1004 $this->createdAt = $createdAt;
1005
1006 return $this;
1007 }
1008
1013 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
1014 {
1015 $this->lastModifiedAt = $lastModifiedAt;
1016
1017 return $this;
1018 }
1019
1024 public function withOrderNumber(?string $orderNumber)
1025 {
1026 $this->orderNumber = $orderNumber;
1027
1028 return $this;
1029 }
1030
1035 public function withPurchaseOrderNumber(?string $purchaseOrderNumber)
1036 {
1037 $this->purchaseOrderNumber = $purchaseOrderNumber;
1038
1039 return $this;
1040 }
1041
1046 public function withCustomerId(?string $customerId)
1047 {
1048 $this->customerId = $customerId;
1049
1050 return $this;
1051 }
1052
1057 public function withCustomerEmail(?string $customerEmail)
1058 {
1059 $this->customerEmail = $customerEmail;
1060
1061 return $this;
1062 }
1063
1068 public function withCustomerGroup(?CustomerGroupReference $customerGroup)
1069 {
1070 $this->customerGroup = $customerGroup;
1071
1072 return $this;
1073 }
1074
1079 public function withAnonymousId(?string $anonymousId)
1080 {
1081 $this->anonymousId = $anonymousId;
1082
1083 return $this;
1084 }
1085
1090 public function withBusinessUnit(?BusinessUnitKeyReference $businessUnit)
1091 {
1092 $this->businessUnit = $businessUnit;
1093
1094 return $this;
1095 }
1096
1101 public function withStore(?StoreKeyReference $store)
1102 {
1103 $this->store = $store;
1104
1105 return $this;
1106 }
1107
1112 public function withLineItems(?LineItemCollection $lineItems)
1113 {
1114 $this->lineItems = $lineItems;
1115
1116 return $this;
1117 }
1118
1123 public function withCustomLineItems(?CustomLineItemCollection $customLineItems)
1124 {
1125 $this->customLineItems = $customLineItems;
1126
1127 return $this;
1128 }
1129
1134 public function withTotalPrice(?CentPrecisionMoney $totalPrice)
1135 {
1136 $this->totalPrice = $totalPrice;
1137
1138 return $this;
1139 }
1140
1145 public function withTaxedPrice(?TaxedPrice $taxedPrice)
1146 {
1147 $this->taxedPrice = $taxedPrice;
1148
1149 return $this;
1150 }
1151
1156 public function withTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
1157 {
1158 $this->taxedShippingPrice = $taxedShippingPrice;
1159
1160 return $this;
1161 }
1162
1167 public function withDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice)
1168 {
1169 $this->discountOnTotalPrice = $discountOnTotalPrice;
1170
1171 return $this;
1172 }
1173
1178 public function withTaxMode(?string $taxMode)
1179 {
1180 $this->taxMode = $taxMode;
1181
1182 return $this;
1183 }
1184
1189 public function withTaxRoundingMode(?string $taxRoundingMode)
1190 {
1191 $this->taxRoundingMode = $taxRoundingMode;
1192
1193 return $this;
1194 }
1195
1200 public function withTaxCalculationMode(?string $taxCalculationMode)
1201 {
1202 $this->taxCalculationMode = $taxCalculationMode;
1203
1204 return $this;
1205 }
1206
1211 public function withInventoryMode(?string $inventoryMode)
1212 {
1213 $this->inventoryMode = $inventoryMode;
1214
1215 return $this;
1216 }
1217
1222 public function withBillingAddress(?Address $billingAddress)
1223 {
1224 $this->billingAddress = $billingAddress;
1225
1226 return $this;
1227 }
1228
1233 public function withShippingAddress(?Address $shippingAddress)
1234 {
1235 $this->shippingAddress = $shippingAddress;
1236
1237 return $this;
1238 }
1239
1244 public function withShippingMode(?string $shippingMode)
1245 {
1246 $this->shippingMode = $shippingMode;
1247
1248 return $this;
1249 }
1250
1255 public function withShippingKey(?string $shippingKey)
1256 {
1257 $this->shippingKey = $shippingKey;
1258
1259 return $this;
1260 }
1261
1266 public function withShippingInfo(?ShippingInfo $shippingInfo)
1267 {
1268 $this->shippingInfo = $shippingInfo;
1269
1270 return $this;
1271 }
1272
1277 public function withShippingRateInput(?ShippingRateInput $shippingRateInput)
1278 {
1279 $this->shippingRateInput = $shippingRateInput;
1280
1281 return $this;
1282 }
1283
1288 public function withShippingCustomFields(?CustomFields $shippingCustomFields)
1289 {
1290 $this->shippingCustomFields = $shippingCustomFields;
1291
1292 return $this;
1293 }
1294
1299 public function withShipping(?ShippingCollection $shipping)
1300 {
1301 $this->shipping = $shipping;
1302
1303 return $this;
1304 }
1305
1310 public function withItemShippingAddresses(?AddressCollection $itemShippingAddresses)
1311 {
1312 $this->itemShippingAddresses = $itemShippingAddresses;
1313
1314 return $this;
1315 }
1316
1321 public function withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
1322 {
1323 $this->discountCodes = $discountCodes;
1324
1325 return $this;
1326 }
1327
1332 public function withDirectDiscounts(?DirectDiscountCollection $directDiscounts)
1333 {
1334 $this->directDiscounts = $directDiscounts;
1335
1336 return $this;
1337 }
1338
1344 {
1345 $this->refusedGifts = $refusedGifts;
1346
1347 return $this;
1348 }
1349
1354 public function withPaymentInfo(?PaymentInfo $paymentInfo)
1355 {
1356 $this->paymentInfo = $paymentInfo;
1357
1358 return $this;
1359 }
1360
1365 public function withCountry(?string $country)
1366 {
1367 $this->country = $country;
1368
1369 return $this;
1370 }
1371
1376 public function withLocale(?string $locale)
1377 {
1378 $this->locale = $locale;
1379
1380 return $this;
1381 }
1382
1387 public function withOrigin(?string $origin)
1388 {
1389 $this->origin = $origin;
1390
1391 return $this;
1392 }
1393
1398 public function withCart(?CartReference $cart)
1399 {
1400 $this->cart = $cart;
1401
1402 return $this;
1403 }
1404
1409 public function withQuote(?QuoteReference $quote)
1410 {
1411 $this->quote = $quote;
1412
1413 return $this;
1414 }
1415
1420 public function withOrderState(?string $orderState)
1421 {
1422 $this->orderState = $orderState;
1423
1424 return $this;
1425 }
1426
1431 public function withShipmentState(?string $shipmentState)
1432 {
1433 $this->shipmentState = $shipmentState;
1434
1435 return $this;
1436 }
1437
1442 public function withPaymentState(?string $paymentState)
1443 {
1444 $this->paymentState = $paymentState;
1445
1446 return $this;
1447 }
1448
1453 public function withState(?StateReference $state)
1454 {
1455 $this->state = $state;
1456
1457 return $this;
1458 }
1459
1464 public function withSyncInfo(?SyncInfoCollection $syncInfo)
1465 {
1466 $this->syncInfo = $syncInfo;
1467
1468 return $this;
1469 }
1470
1475 public function withReturnInfo(?ReturnInfoCollection $returnInfo)
1476 {
1477 $this->returnInfo = $returnInfo;
1478
1479 return $this;
1480 }
1481
1486 public function withDiscountTypeCombination(?DiscountTypeCombination $discountTypeCombination)
1487 {
1488 $this->discountTypeCombination = $discountTypeCombination;
1489
1490 return $this;
1491 }
1492
1497 public function withLastMessageSequenceNumber(?int $lastMessageSequenceNumber)
1498 {
1499 $this->lastMessageSequenceNumber = $lastMessageSequenceNumber;
1500
1501 return $this;
1502 }
1503
1508 public function withCustom(?CustomFields $custom)
1509 {
1510 $this->custom = $custom;
1511
1512 return $this;
1513 }
1514
1519 public function withCompletedAt(?DateTimeImmutable $completedAt)
1520 {
1521 $this->completedAt = $completedAt;
1522
1523 return $this;
1524 }
1525
1530 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
1531 {
1532 $this->lastModifiedBy = $lastModifiedBy;
1533
1534 return $this;
1535 }
1536
1541 public function withCreatedBy(?CreatedBy $createdBy)
1542 {
1543 $this->createdBy = $createdBy;
1544
1545 return $this;
1546 }
1547
1553 {
1554 $this->customerGroup = $customerGroup;
1555
1556 return $this;
1557 }
1558
1564 {
1565 $this->businessUnit = $businessUnit;
1566
1567 return $this;
1568 }
1569
1575 {
1576 $this->store = $store;
1577
1578 return $this;
1579 }
1580
1586 {
1587 $this->totalPrice = $totalPrice;
1588
1589 return $this;
1590 }
1591
1596 public function withTaxedPriceBuilder(?TaxedPriceBuilder $taxedPrice)
1597 {
1598 $this->taxedPrice = $taxedPrice;
1599
1600 return $this;
1601 }
1602
1607 public function withTaxedShippingPriceBuilder(?TaxedPriceBuilder $taxedShippingPrice)
1608 {
1609 $this->taxedShippingPrice = $taxedShippingPrice;
1610
1611 return $this;
1612 }
1613
1618 public function withDiscountOnTotalPriceBuilder(?DiscountOnTotalPriceBuilder $discountOnTotalPrice)
1619 {
1620 $this->discountOnTotalPrice = $discountOnTotalPrice;
1621
1622 return $this;
1623 }
1624
1629 public function withBillingAddressBuilder(?AddressBuilder $billingAddress)
1630 {
1631 $this->billingAddress = $billingAddress;
1632
1633 return $this;
1634 }
1635
1640 public function withShippingAddressBuilder(?AddressBuilder $shippingAddress)
1641 {
1642 $this->shippingAddress = $shippingAddress;
1643
1644 return $this;
1645 }
1646
1651 public function withShippingInfoBuilder(?ShippingInfoBuilder $shippingInfo)
1652 {
1653 $this->shippingInfo = $shippingInfo;
1654
1655 return $this;
1656 }
1657
1662 public function withShippingRateInputBuilder(?ShippingRateInputBuilder $shippingRateInput)
1663 {
1664 $this->shippingRateInput = $shippingRateInput;
1665
1666 return $this;
1667 }
1668
1673 public function withShippingCustomFieldsBuilder(?CustomFieldsBuilder $shippingCustomFields)
1674 {
1675 $this->shippingCustomFields = $shippingCustomFields;
1676
1677 return $this;
1678 }
1679
1684 public function withPaymentInfoBuilder(?PaymentInfoBuilder $paymentInfo)
1685 {
1686 $this->paymentInfo = $paymentInfo;
1687
1688 return $this;
1689 }
1690
1696 {
1697 $this->cart = $cart;
1698
1699 return $this;
1700 }
1701
1707 {
1708 $this->quote = $quote;
1709
1710 return $this;
1711 }
1712
1718 {
1719 $this->state = $state;
1720
1721 return $this;
1722 }
1723
1729 {
1730 $this->discountTypeCombination = $discountTypeCombination;
1731
1732 return $this;
1733 }
1734
1739 public function withCustomBuilder(?CustomFieldsBuilder $custom)
1740 {
1741 $this->custom = $custom;
1742
1743 return $this;
1744 }
1745
1750 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
1751 {
1752 $this->lastModifiedBy = $lastModifiedBy;
1753
1754 return $this;
1755 }
1756
1761 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
1762 {
1763 $this->createdBy = $createdBy;
1764
1765 return $this;
1766 }
1767
1768 public function build(): Order
1769 {
1770 return new OrderModel(
1771 $this->id,
1772 $this->version,
1773 $this->createdAt,
1774 $this->lastModifiedAt,
1775 $this->orderNumber,
1776 $this->purchaseOrderNumber,
1777 $this->customerId,
1778 $this->customerEmail,
1779 $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup,
1780 $this->anonymousId,
1781 $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit,
1782 $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store,
1783 $this->lineItems,
1784 $this->customLineItems,
1785 $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice,
1786 $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice,
1787 $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice,
1788 $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice,
1789 $this->taxMode,
1790 $this->taxRoundingMode,
1791 $this->taxCalculationMode,
1792 $this->inventoryMode,
1793 $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress,
1794 $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress,
1795 $this->shippingMode,
1796 $this->shippingKey,
1797 $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo,
1798 $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput,
1799 $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields,
1800 $this->shipping,
1801 $this->itemShippingAddresses,
1802 $this->discountCodes,
1803 $this->directDiscounts,
1804 $this->refusedGifts,
1805 $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo,
1806 $this->country,
1807 $this->locale,
1808 $this->origin,
1809 $this->cart instanceof CartReferenceBuilder ? $this->cart->build() : $this->cart,
1810 $this->quote instanceof QuoteReferenceBuilder ? $this->quote->build() : $this->quote,
1811 $this->orderState,
1812 $this->shipmentState,
1813 $this->paymentState,
1814 $this->state instanceof StateReferenceBuilder ? $this->state->build() : $this->state,
1815 $this->syncInfo,
1816 $this->returnInfo,
1817 $this->discountTypeCombination instanceof DiscountTypeCombinationBuilder ? $this->discountTypeCombination->build() : $this->discountTypeCombination,
1818 $this->lastMessageSequenceNumber,
1819 $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom,
1820 $this->completedAt,
1821 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
1822 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy
1823 );
1824 }
1825
1826 public static function of(): OrderBuilder
1827 {
1828 return new self();
1829 }
1830}
withReturnInfo(?ReturnInfoCollection $returnInfo)
withDirectDiscounts(?DirectDiscountCollection $directDiscounts)
withTotalPriceBuilder(?CentPrecisionMoneyBuilder $totalPrice)
withStoreBuilder(?StoreKeyReferenceBuilder $store)
withCompletedAt(?DateTimeImmutable $completedAt)
withLastMessageSequenceNumber(?int $lastMessageSequenceNumber)
withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
withDiscountTypeCombinationBuilder(?DiscountTypeCombinationBuilder $discountTypeCombination)
withShippingInfoBuilder(?ShippingInfoBuilder $shippingInfo)
withBusinessUnit(?BusinessUnitKeyReference $businessUnit)
withShippingCustomFieldsBuilder(?CustomFieldsBuilder $shippingCustomFields)
withShippingCustomFields(?CustomFields $shippingCustomFields)
withItemShippingAddresses(?AddressCollection $itemShippingAddresses)
withDiscountOnTotalPriceBuilder(?DiscountOnTotalPriceBuilder $discountOnTotalPrice)
withCustomerGroup(?CustomerGroupReference $customerGroup)
withShippingAddress(?Address $shippingAddress)
withTotalPrice(?CentPrecisionMoney $totalPrice)
withShipping(?ShippingCollection $shipping)
withSyncInfo(?SyncInfoCollection $syncInfo)
withTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
withShippingRateInputBuilder(?ShippingRateInputBuilder $shippingRateInput)
withDiscountTypeCombination(?DiscountTypeCombination $discountTypeCombination)
withStateBuilder(?StateReferenceBuilder $state)
withLineItems(?LineItemCollection $lineItems)
withPaymentInfoBuilder(?PaymentInfoBuilder $paymentInfo)
withRefusedGifts(?CartDiscountReferenceCollection $refusedGifts)
withCustomerGroupBuilder(?CustomerGroupReferenceBuilder $customerGroup)
withCreatedAt(?DateTimeImmutable $createdAt)
withCreatedByBuilder(?CreatedByBuilder $createdBy)
withPurchaseOrderNumber(?string $purchaseOrderNumber)
withCustomBuilder(?CustomFieldsBuilder $custom)
withTaxedShippingPriceBuilder(?TaxedPriceBuilder $taxedShippingPrice)
withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
withQuoteBuilder(?QuoteReferenceBuilder $quote)
withTaxRoundingMode(?string $taxRoundingMode)
withDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice)
withTaxedPriceBuilder(?TaxedPriceBuilder $taxedPrice)
withBillingAddressBuilder(?AddressBuilder $billingAddress)
withCartBuilder(?CartReferenceBuilder $cart)
withCustomLineItems(?CustomLineItemCollection $customLineItems)
withShippingRateInput(?ShippingRateInput $shippingRateInput)
withBusinessUnitBuilder(?BusinessUnitKeyReferenceBuilder $businessUnit)
withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
withShippingInfo(?ShippingInfo $shippingInfo)
withShippingAddressBuilder(?AddressBuilder $shippingAddress)
withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
withTaxCalculationMode(?string $taxCalculationMode)