commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
OrderBuilder.php
1<?php
2
3declare(strict_types=1);
10
57use DateTimeImmutable;
58use stdClass;
59
63final class OrderBuilder implements Builder
64{
69 private $id;
70
75 private $version;
76
81 private $createdAt;
82
87 private $lastModifiedAt;
88
93 private $orderNumber;
94
99 private $purchaseOrderNumber;
100
105 private $customerId;
106
111 private $customerEmail;
112
117 private $customerGroup;
118
123 private $anonymousId;
124
129 private $businessUnit;
130
135 private $store;
136
141 private $lineItems;
142
147 private $customLineItems;
148
153 private $totalPrice;
154
159 private $taxedPrice;
160
165 private $taxedShippingPrice;
166
171 private $discountOnTotalPrice;
172
177 private $taxMode;
178
183 private $taxRoundingMode;
184
189 private $taxCalculationMode;
190
195 private $inventoryMode;
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 $refusedGifts;
268
273 private $paymentInfo;
274
279 private $country;
280
285 private $locale;
286
291 private $origin;
292
297 private $cart;
298
303 private $quote;
304
309 private $orderState;
310
315 private $shipmentState;
316
321 private $paymentState;
322
327 private $state;
328
333 private $syncInfo;
334
339 private $returnInfo;
340
345 private $lastMessageSequenceNumber;
346
351 private $custom;
352
357 private $completedAt;
358
363 private $lastModifiedBy;
364
369 private $createdBy;
370
377 public function getId()
378 {
379 return $this->id;
380 }
381
388 public function getVersion()
389 {
390 return $this->version;
391 }
392
399 public function getCreatedAt()
400 {
401 return $this->createdAt;
402 }
403
410 public function getLastModifiedAt()
411 {
412 return $this->lastModifiedAt;
413 }
414
421 public function getOrderNumber()
422 {
423 return $this->orderNumber;
424 }
425
433 public function getPurchaseOrderNumber()
434 {
435 return $this->purchaseOrderNumber;
436 }
437
444 public function getCustomerId()
445 {
446 return $this->customerId;
447 }
448
455 public function getCustomerEmail()
456 {
457 return $this->customerEmail;
458 }
459
467 public function getCustomerGroup()
468 {
469 return $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup;
470 }
471
478 public function getAnonymousId()
479 {
480 return $this->anonymousId;
481 }
482
489 public function getBusinessUnit()
490 {
491 return $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit;
492 }
493
500 public function getStore()
501 {
502 return $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store;
503 }
504
511 public function getLineItems()
512 {
513 return $this->lineItems;
514 }
515
522 public function getCustomLineItems()
523 {
524 return $this->customLineItems;
525 }
526
535 public function getTotalPrice()
536 {
537 return $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice;
538 }
539
550 public function getTaxedPrice()
551 {
552 return $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice;
553 }
554
561 public function getTaxedShippingPrice()
562 {
563 return $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice;
564 }
565
572 public function getDiscountOnTotalPrice()
573 {
574 return $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice;
575 }
576
583 public function getTaxMode()
584 {
585 return $this->taxMode;
586 }
587
594 public function getTaxRoundingMode()
595 {
596 return $this->taxRoundingMode;
597 }
598
605 public function getTaxCalculationMode()
606 {
607 return $this->taxCalculationMode;
608 }
609
616 public function getInventoryMode()
617 {
618 return $this->inventoryMode;
619 }
620
627 public function getBillingAddress()
628 {
629 return $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress;
630 }
631
639 public function getShippingAddress()
640 {
641 return $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress;
642 }
643
650 public function getShippingMode()
651 {
652 return $this->shippingMode;
653 }
654
661 public function getShippingKey()
662 {
663 return $this->shippingKey;
664 }
665
673 public function getShippingInfo()
674 {
675 return $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo;
676 }
677
690 public function getShippingRateInput()
691 {
692 return $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput;
693 }
694
701 public function getShippingCustomFields()
702 {
703 return $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields;
704 }
705
713 public function getShipping()
714 {
715 return $this->shipping;
716 }
717
725 public function getItemShippingAddresses()
726 {
727 return $this->itemShippingAddresses;
728 }
729
737 public function getDiscountCodes()
738 {
739 return $this->discountCodes;
740 }
741
749 public function getDirectDiscounts()
750 {
751 return $this->directDiscounts;
752 }
753
760 public function getRefusedGifts()
761 {
762 return $this->refusedGifts;
763 }
764
771 public function getPaymentInfo()
772 {
773 return $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo;
774 }
775
782 public function getCountry()
783 {
784 return $this->country;
785 }
786
794 public function getLocale()
795 {
796 return $this->locale;
797 }
798
805 public function getOrigin()
806 {
807 return $this->origin;
808 }
809
817 public function getCart()
818 {
819 return $this->cart instanceof CartReferenceBuilder ? $this->cart->build() : $this->cart;
820 }
821
828 public function getQuote()
829 {
830 return $this->quote instanceof QuoteReferenceBuilder ? $this->quote->build() : $this->quote;
831 }
832
839 public function getOrderState()
840 {
841 return $this->orderState;
842 }
843
850 public function getShipmentState()
851 {
852 return $this->shipmentState;
853 }
854
861 public function getPaymentState()
862 {
863 return $this->paymentState;
864 }
865
873 public function getState()
874 {
875 return $this->state instanceof StateReferenceBuilder ? $this->state->build() : $this->state;
876 }
877
885 public function getSyncInfo()
886 {
887 return $this->syncInfo;
888 }
889
896 public function getReturnInfo()
897 {
898 return $this->returnInfo;
899 }
900
908 {
909 return $this->lastMessageSequenceNumber;
910 }
911
918 public function getCustom()
919 {
920 return $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom;
921 }
922
930 public function getCompletedAt()
931 {
932 return $this->completedAt;
933 }
934
941 public function getLastModifiedBy()
942 {
943 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
944 }
945
952 public function getCreatedBy()
953 {
954 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
955 }
956
961 public function withId(?string $id)
962 {
963 $this->id = $id;
964
965 return $this;
966 }
967
972 public function withVersion(?int $version)
973 {
974 $this->version = $version;
975
976 return $this;
977 }
978
983 public function withCreatedAt(?DateTimeImmutable $createdAt)
984 {
985 $this->createdAt = $createdAt;
986
987 return $this;
988 }
989
994 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
995 {
996 $this->lastModifiedAt = $lastModifiedAt;
997
998 return $this;
999 }
1000
1005 public function withOrderNumber(?string $orderNumber)
1006 {
1007 $this->orderNumber = $orderNumber;
1008
1009 return $this;
1010 }
1011
1016 public function withPurchaseOrderNumber(?string $purchaseOrderNumber)
1017 {
1018 $this->purchaseOrderNumber = $purchaseOrderNumber;
1019
1020 return $this;
1021 }
1022
1027 public function withCustomerId(?string $customerId)
1028 {
1029 $this->customerId = $customerId;
1030
1031 return $this;
1032 }
1033
1038 public function withCustomerEmail(?string $customerEmail)
1039 {
1040 $this->customerEmail = $customerEmail;
1041
1042 return $this;
1043 }
1044
1049 public function withCustomerGroup(?CustomerGroupReference $customerGroup)
1050 {
1051 $this->customerGroup = $customerGroup;
1052
1053 return $this;
1054 }
1055
1060 public function withAnonymousId(?string $anonymousId)
1061 {
1062 $this->anonymousId = $anonymousId;
1063
1064 return $this;
1065 }
1066
1071 public function withBusinessUnit(?BusinessUnitKeyReference $businessUnit)
1072 {
1073 $this->businessUnit = $businessUnit;
1074
1075 return $this;
1076 }
1077
1082 public function withStore(?StoreKeyReference $store)
1083 {
1084 $this->store = $store;
1085
1086 return $this;
1087 }
1088
1093 public function withLineItems(?LineItemCollection $lineItems)
1094 {
1095 $this->lineItems = $lineItems;
1096
1097 return $this;
1098 }
1099
1104 public function withCustomLineItems(?CustomLineItemCollection $customLineItems)
1105 {
1106 $this->customLineItems = $customLineItems;
1107
1108 return $this;
1109 }
1110
1115 public function withTotalPrice(?CentPrecisionMoney $totalPrice)
1116 {
1117 $this->totalPrice = $totalPrice;
1118
1119 return $this;
1120 }
1121
1126 public function withTaxedPrice(?TaxedPrice $taxedPrice)
1127 {
1128 $this->taxedPrice = $taxedPrice;
1129
1130 return $this;
1131 }
1132
1137 public function withTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
1138 {
1139 $this->taxedShippingPrice = $taxedShippingPrice;
1140
1141 return $this;
1142 }
1143
1148 public function withDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice)
1149 {
1150 $this->discountOnTotalPrice = $discountOnTotalPrice;
1151
1152 return $this;
1153 }
1154
1159 public function withTaxMode(?string $taxMode)
1160 {
1161 $this->taxMode = $taxMode;
1162
1163 return $this;
1164 }
1165
1170 public function withTaxRoundingMode(?string $taxRoundingMode)
1171 {
1172 $this->taxRoundingMode = $taxRoundingMode;
1173
1174 return $this;
1175 }
1176
1181 public function withTaxCalculationMode(?string $taxCalculationMode)
1182 {
1183 $this->taxCalculationMode = $taxCalculationMode;
1184
1185 return $this;
1186 }
1187
1192 public function withInventoryMode(?string $inventoryMode)
1193 {
1194 $this->inventoryMode = $inventoryMode;
1195
1196 return $this;
1197 }
1198
1203 public function withBillingAddress(?Address $billingAddress)
1204 {
1205 $this->billingAddress = $billingAddress;
1206
1207 return $this;
1208 }
1209
1214 public function withShippingAddress(?Address $shippingAddress)
1215 {
1216 $this->shippingAddress = $shippingAddress;
1217
1218 return $this;
1219 }
1220
1225 public function withShippingMode(?string $shippingMode)
1226 {
1227 $this->shippingMode = $shippingMode;
1228
1229 return $this;
1230 }
1231
1236 public function withShippingKey(?string $shippingKey)
1237 {
1238 $this->shippingKey = $shippingKey;
1239
1240 return $this;
1241 }
1242
1247 public function withShippingInfo(?ShippingInfo $shippingInfo)
1248 {
1249 $this->shippingInfo = $shippingInfo;
1250
1251 return $this;
1252 }
1253
1258 public function withShippingRateInput(?ShippingRateInput $shippingRateInput)
1259 {
1260 $this->shippingRateInput = $shippingRateInput;
1261
1262 return $this;
1263 }
1264
1269 public function withShippingCustomFields(?CustomFields $shippingCustomFields)
1270 {
1271 $this->shippingCustomFields = $shippingCustomFields;
1272
1273 return $this;
1274 }
1275
1280 public function withShipping(?ShippingCollection $shipping)
1281 {
1282 $this->shipping = $shipping;
1283
1284 return $this;
1285 }
1286
1291 public function withItemShippingAddresses(?AddressCollection $itemShippingAddresses)
1292 {
1293 $this->itemShippingAddresses = $itemShippingAddresses;
1294
1295 return $this;
1296 }
1297
1302 public function withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
1303 {
1304 $this->discountCodes = $discountCodes;
1305
1306 return $this;
1307 }
1308
1313 public function withDirectDiscounts(?DirectDiscountCollection $directDiscounts)
1314 {
1315 $this->directDiscounts = $directDiscounts;
1316
1317 return $this;
1318 }
1319
1325 {
1326 $this->refusedGifts = $refusedGifts;
1327
1328 return $this;
1329 }
1330
1335 public function withPaymentInfo(?PaymentInfo $paymentInfo)
1336 {
1337 $this->paymentInfo = $paymentInfo;
1338
1339 return $this;
1340 }
1341
1346 public function withCountry(?string $country)
1347 {
1348 $this->country = $country;
1349
1350 return $this;
1351 }
1352
1357 public function withLocale(?string $locale)
1358 {
1359 $this->locale = $locale;
1360
1361 return $this;
1362 }
1363
1368 public function withOrigin(?string $origin)
1369 {
1370 $this->origin = $origin;
1371
1372 return $this;
1373 }
1374
1379 public function withCart(?CartReference $cart)
1380 {
1381 $this->cart = $cart;
1382
1383 return $this;
1384 }
1385
1390 public function withQuote(?QuoteReference $quote)
1391 {
1392 $this->quote = $quote;
1393
1394 return $this;
1395 }
1396
1401 public function withOrderState(?string $orderState)
1402 {
1403 $this->orderState = $orderState;
1404
1405 return $this;
1406 }
1407
1412 public function withShipmentState(?string $shipmentState)
1413 {
1414 $this->shipmentState = $shipmentState;
1415
1416 return $this;
1417 }
1418
1423 public function withPaymentState(?string $paymentState)
1424 {
1425 $this->paymentState = $paymentState;
1426
1427 return $this;
1428 }
1429
1434 public function withState(?StateReference $state)
1435 {
1436 $this->state = $state;
1437
1438 return $this;
1439 }
1440
1445 public function withSyncInfo(?SyncInfoCollection $syncInfo)
1446 {
1447 $this->syncInfo = $syncInfo;
1448
1449 return $this;
1450 }
1451
1456 public function withReturnInfo(?ReturnInfoCollection $returnInfo)
1457 {
1458 $this->returnInfo = $returnInfo;
1459
1460 return $this;
1461 }
1462
1467 public function withLastMessageSequenceNumber(?int $lastMessageSequenceNumber)
1468 {
1469 $this->lastMessageSequenceNumber = $lastMessageSequenceNumber;
1470
1471 return $this;
1472 }
1473
1478 public function withCustom(?CustomFields $custom)
1479 {
1480 $this->custom = $custom;
1481
1482 return $this;
1483 }
1484
1489 public function withCompletedAt(?DateTimeImmutable $completedAt)
1490 {
1491 $this->completedAt = $completedAt;
1492
1493 return $this;
1494 }
1495
1500 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
1501 {
1502 $this->lastModifiedBy = $lastModifiedBy;
1503
1504 return $this;
1505 }
1506
1511 public function withCreatedBy(?CreatedBy $createdBy)
1512 {
1513 $this->createdBy = $createdBy;
1514
1515 return $this;
1516 }
1517
1523 {
1524 $this->customerGroup = $customerGroup;
1525
1526 return $this;
1527 }
1528
1534 {
1535 $this->businessUnit = $businessUnit;
1536
1537 return $this;
1538 }
1539
1545 {
1546 $this->store = $store;
1547
1548 return $this;
1549 }
1550
1556 {
1557 $this->totalPrice = $totalPrice;
1558
1559 return $this;
1560 }
1561
1566 public function withTaxedPriceBuilder(?TaxedPriceBuilder $taxedPrice)
1567 {
1568 $this->taxedPrice = $taxedPrice;
1569
1570 return $this;
1571 }
1572
1577 public function withTaxedShippingPriceBuilder(?TaxedPriceBuilder $taxedShippingPrice)
1578 {
1579 $this->taxedShippingPrice = $taxedShippingPrice;
1580
1581 return $this;
1582 }
1583
1588 public function withDiscountOnTotalPriceBuilder(?DiscountOnTotalPriceBuilder $discountOnTotalPrice)
1589 {
1590 $this->discountOnTotalPrice = $discountOnTotalPrice;
1591
1592 return $this;
1593 }
1594
1599 public function withBillingAddressBuilder(?AddressBuilder $billingAddress)
1600 {
1601 $this->billingAddress = $billingAddress;
1602
1603 return $this;
1604 }
1605
1610 public function withShippingAddressBuilder(?AddressBuilder $shippingAddress)
1611 {
1612 $this->shippingAddress = $shippingAddress;
1613
1614 return $this;
1615 }
1616
1621 public function withShippingInfoBuilder(?ShippingInfoBuilder $shippingInfo)
1622 {
1623 $this->shippingInfo = $shippingInfo;
1624
1625 return $this;
1626 }
1627
1632 public function withShippingRateInputBuilder(?ShippingRateInputBuilder $shippingRateInput)
1633 {
1634 $this->shippingRateInput = $shippingRateInput;
1635
1636 return $this;
1637 }
1638
1643 public function withShippingCustomFieldsBuilder(?CustomFieldsBuilder $shippingCustomFields)
1644 {
1645 $this->shippingCustomFields = $shippingCustomFields;
1646
1647 return $this;
1648 }
1649
1654 public function withPaymentInfoBuilder(?PaymentInfoBuilder $paymentInfo)
1655 {
1656 $this->paymentInfo = $paymentInfo;
1657
1658 return $this;
1659 }
1660
1666 {
1667 $this->cart = $cart;
1668
1669 return $this;
1670 }
1671
1677 {
1678 $this->quote = $quote;
1679
1680 return $this;
1681 }
1682
1688 {
1689 $this->state = $state;
1690
1691 return $this;
1692 }
1693
1698 public function withCustomBuilder(?CustomFieldsBuilder $custom)
1699 {
1700 $this->custom = $custom;
1701
1702 return $this;
1703 }
1704
1709 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
1710 {
1711 $this->lastModifiedBy = $lastModifiedBy;
1712
1713 return $this;
1714 }
1715
1720 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
1721 {
1722 $this->createdBy = $createdBy;
1723
1724 return $this;
1725 }
1726
1727 public function build(): Order
1728 {
1729 return new OrderModel(
1730 $this->id,
1731 $this->version,
1732 $this->createdAt,
1733 $this->lastModifiedAt,
1734 $this->orderNumber,
1735 $this->purchaseOrderNumber,
1736 $this->customerId,
1737 $this->customerEmail,
1738 $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup,
1739 $this->anonymousId,
1740 $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit,
1741 $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store,
1742 $this->lineItems,
1743 $this->customLineItems,
1744 $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice,
1745 $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice,
1746 $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice,
1747 $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice,
1748 $this->taxMode,
1749 $this->taxRoundingMode,
1750 $this->taxCalculationMode,
1751 $this->inventoryMode,
1752 $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress,
1753 $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress,
1754 $this->shippingMode,
1755 $this->shippingKey,
1756 $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo,
1757 $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput,
1758 $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields,
1759 $this->shipping,
1760 $this->itemShippingAddresses,
1761 $this->discountCodes,
1762 $this->directDiscounts,
1763 $this->refusedGifts,
1764 $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo,
1765 $this->country,
1766 $this->locale,
1767 $this->origin,
1768 $this->cart instanceof CartReferenceBuilder ? $this->cart->build() : $this->cart,
1769 $this->quote instanceof QuoteReferenceBuilder ? $this->quote->build() : $this->quote,
1770 $this->orderState,
1771 $this->shipmentState,
1772 $this->paymentState,
1773 $this->state instanceof StateReferenceBuilder ? $this->state->build() : $this->state,
1774 $this->syncInfo,
1775 $this->returnInfo,
1776 $this->lastMessageSequenceNumber,
1777 $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom,
1778 $this->completedAt,
1779 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
1780 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy
1781 );
1782 }
1783
1784 public static function of(): OrderBuilder
1785 {
1786 return new self();
1787 }
1788}
withReturnInfo(?ReturnInfoCollection $returnInfo)
withDirectDiscounts(?DirectDiscountCollection $directDiscounts)
withTotalPriceBuilder(?CentPrecisionMoneyBuilder $totalPrice)
withStoreBuilder(?StoreKeyReferenceBuilder $store)
withCompletedAt(?DateTimeImmutable $completedAt)
withLastMessageSequenceNumber(?int $lastMessageSequenceNumber)
withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
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)
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)