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
38use DateTimeImmutable;
39use stdClass;
40
44final class CartBuilder implements Builder
45{
50 private $id;
51
56 private $version;
57
62 private $createdAt;
63
68 private $lastModifiedAt;
69
74 private $key;
75
80 private $customerId;
81
86 private $customerEmail;
87
92 private $customerGroup;
93
98 private $anonymousId;
99
104 private $businessUnit;
105
110 private $store;
111
116 private $lineItems;
117
122 private $customLineItems;
123
128 private $totalLineItemQuantity;
129
134 private $totalPrice;
135
140 private $taxedPrice;
141
146 private $taxedShippingPrice;
147
152 private $discountOnTotalPrice;
153
158 private $taxMode;
159
164 private $priceRoundingMode;
165
170 private $taxRoundingMode;
171
176 private $taxCalculationMode;
177
182 private $inventoryMode;
183
188 private $cartState;
189
194 private $freezeStrategy;
195
200 private $billingAddress;
201
206 private $shippingAddress;
207
212 private $shippingMode;
213
218 private $shippingKey;
219
224 private $shippingInfo;
225
230 private $shippingRateInput;
231
236 private $shippingCustomFields;
237
242 private $shipping;
243
248 private $itemShippingAddresses;
249
254 private $discountCodes;
255
260 private $directDiscounts;
261
266 private $refusedGifts;
267
272 private $paymentInfo;
273
278 private $country;
279
284 private $locale;
285
290 private $origin;
291
296 private $custom;
297
302 private $discountTypeCombination;
303
308 private $lock;
309
314 private $deleteDaysAfterLastModification;
315
320 private $purchaseOrderNumber;
321
326 private $lastModifiedBy;
327
332 private $createdBy;
333
340 public function getId()
341 {
342 return $this->id;
343 }
344
351 public function getVersion()
352 {
353 return $this->version;
354 }
355
362 public function getCreatedAt()
363 {
364 return $this->createdAt;
365 }
366
373 public function getLastModifiedAt()
374 {
375 return $this->lastModifiedAt;
376 }
377
384 public function getKey()
385 {
386 return $this->key;
387 }
388
395 public function getCustomerId()
396 {
397 return $this->customerId;
398 }
399
406 public function getCustomerEmail()
407 {
408 return $this->customerEmail;
409 }
410
417 public function getCustomerGroup()
418 {
419 return $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup;
420 }
421
428 public function getAnonymousId()
429 {
430 return $this->anonymousId;
431 }
432
439 public function getBusinessUnit()
440 {
441 return $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit;
442 }
443
450 public function getStore()
451 {
452 return $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store;
453 }
454
461 public function getLineItems()
462 {
463 return $this->lineItems;
464 }
465
472 public function getCustomLineItems()
473 {
474 return $this->customLineItems;
475 }
476
483 public function getTotalLineItemQuantity()
484 {
485 return $this->totalLineItemQuantity;
486 }
487
496 public function getTotalPrice()
497 {
498 return $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice;
499 }
500
511 public function getTaxedPrice()
512 {
513 return $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice;
514 }
515
523 public function getTaxedShippingPrice()
524 {
525 return $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice;
526 }
527
534 public function getDiscountOnTotalPrice()
535 {
536 return $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice;
537 }
538
545 public function getTaxMode()
546 {
547 return $this->taxMode;
548 }
549
556 public function getPriceRoundingMode()
557 {
558 return $this->priceRoundingMode;
559 }
560
567 public function getTaxRoundingMode()
568 {
569 return $this->taxRoundingMode;
570 }
571
578 public function getTaxCalculationMode()
579 {
580 return $this->taxCalculationMode;
581 }
582
589 public function getInventoryMode()
590 {
591 return $this->inventoryMode;
592 }
593
600 public function getCartState()
601 {
602 return $this->cartState;
603 }
604
611 public function getFreezeStrategy()
612 {
613 return $this->freezeStrategy;
614 }
615
622 public function getBillingAddress()
623 {
624 return $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress;
625 }
626
633 public function getShippingAddress()
634 {
635 return $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress;
636 }
637
644 public function getShippingMode()
645 {
646 return $this->shippingMode;
647 }
648
655 public function getShippingKey()
656 {
657 return $this->shippingKey;
658 }
659
666 public function getShippingInfo()
667 {
668 return $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo;
669 }
670
683 public function getShippingRateInput()
684 {
685 return $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput;
686 }
687
694 public function getShippingCustomFields()
695 {
696 return $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields;
697 }
698
705 public function getShipping()
706 {
707 return $this->shipping;
708 }
709
717 public function getItemShippingAddresses()
718 {
719 return $this->itemShippingAddresses;
720 }
721
728 public function getDiscountCodes()
729 {
730 return $this->discountCodes;
731 }
732
739 public function getDirectDiscounts()
740 {
741 return $this->directDiscounts;
742 }
743
750 public function getRefusedGifts()
751 {
752 return $this->refusedGifts;
753 }
754
761 public function getPaymentInfo()
762 {
763 return $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo;
764 }
765
772 public function getCountry()
773 {
774 return $this->country;
775 }
776
783 public function getLocale()
784 {
785 return $this->locale;
786 }
787
794 public function getOrigin()
795 {
796 return $this->origin;
797 }
798
805 public function getCustom()
806 {
807 return $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom;
808 }
809
817 {
818 return $this->discountTypeCombination instanceof DiscountTypeCombinationBuilder ? $this->discountTypeCombination->build() : $this->discountTypeCombination;
819 }
820
827 public function getLock()
828 {
829 return $this->lock instanceof CartLockBuilder ? $this->lock->build() : $this->lock;
830 }
831
839 {
840 return $this->deleteDaysAfterLastModification;
841 }
842
850 public function getPurchaseOrderNumber()
851 {
852 return $this->purchaseOrderNumber;
853 }
854
861 public function getLastModifiedBy()
862 {
863 return $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy;
864 }
865
872 public function getCreatedBy()
873 {
874 return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
875 }
876
881 public function withId(?string $id)
882 {
883 $this->id = $id;
884
885 return $this;
886 }
887
892 public function withVersion(?int $version)
893 {
894 $this->version = $version;
895
896 return $this;
897 }
898
903 public function withCreatedAt(?DateTimeImmutable $createdAt)
904 {
905 $this->createdAt = $createdAt;
906
907 return $this;
908 }
909
914 public function withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
915 {
916 $this->lastModifiedAt = $lastModifiedAt;
917
918 return $this;
919 }
920
925 public function withKey(?string $key)
926 {
927 $this->key = $key;
928
929 return $this;
930 }
931
936 public function withCustomerId(?string $customerId)
937 {
938 $this->customerId = $customerId;
939
940 return $this;
941 }
942
947 public function withCustomerEmail(?string $customerEmail)
948 {
949 $this->customerEmail = $customerEmail;
950
951 return $this;
952 }
953
958 public function withCustomerGroup(?CustomerGroupReference $customerGroup)
959 {
960 $this->customerGroup = $customerGroup;
961
962 return $this;
963 }
964
969 public function withAnonymousId(?string $anonymousId)
970 {
971 $this->anonymousId = $anonymousId;
972
973 return $this;
974 }
975
980 public function withBusinessUnit(?BusinessUnitKeyReference $businessUnit)
981 {
982 $this->businessUnit = $businessUnit;
983
984 return $this;
985 }
986
991 public function withStore(?StoreKeyReference $store)
992 {
993 $this->store = $store;
994
995 return $this;
996 }
997
1002 public function withLineItems(?LineItemCollection $lineItems)
1003 {
1004 $this->lineItems = $lineItems;
1005
1006 return $this;
1007 }
1008
1013 public function withCustomLineItems(?CustomLineItemCollection $customLineItems)
1014 {
1015 $this->customLineItems = $customLineItems;
1016
1017 return $this;
1018 }
1019
1024 public function withTotalLineItemQuantity(?int $totalLineItemQuantity)
1025 {
1026 $this->totalLineItemQuantity = $totalLineItemQuantity;
1027
1028 return $this;
1029 }
1030
1035 public function withTotalPrice(?CentPrecisionMoney $totalPrice)
1036 {
1037 $this->totalPrice = $totalPrice;
1038
1039 return $this;
1040 }
1041
1046 public function withTaxedPrice(?TaxedPrice $taxedPrice)
1047 {
1048 $this->taxedPrice = $taxedPrice;
1049
1050 return $this;
1051 }
1052
1057 public function withTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
1058 {
1059 $this->taxedShippingPrice = $taxedShippingPrice;
1060
1061 return $this;
1062 }
1063
1068 public function withDiscountOnTotalPrice(?DiscountOnTotalPrice $discountOnTotalPrice)
1069 {
1070 $this->discountOnTotalPrice = $discountOnTotalPrice;
1071
1072 return $this;
1073 }
1074
1079 public function withTaxMode(?string $taxMode)
1080 {
1081 $this->taxMode = $taxMode;
1082
1083 return $this;
1084 }
1085
1090 public function withPriceRoundingMode(?string $priceRoundingMode)
1091 {
1092 $this->priceRoundingMode = $priceRoundingMode;
1093
1094 return $this;
1095 }
1096
1101 public function withTaxRoundingMode(?string $taxRoundingMode)
1102 {
1103 $this->taxRoundingMode = $taxRoundingMode;
1104
1105 return $this;
1106 }
1107
1112 public function withTaxCalculationMode(?string $taxCalculationMode)
1113 {
1114 $this->taxCalculationMode = $taxCalculationMode;
1115
1116 return $this;
1117 }
1118
1123 public function withInventoryMode(?string $inventoryMode)
1124 {
1125 $this->inventoryMode = $inventoryMode;
1126
1127 return $this;
1128 }
1129
1134 public function withCartState(?string $cartState)
1135 {
1136 $this->cartState = $cartState;
1137
1138 return $this;
1139 }
1140
1145 public function withFreezeStrategy(?string $freezeStrategy)
1146 {
1147 $this->freezeStrategy = $freezeStrategy;
1148
1149 return $this;
1150 }
1151
1156 public function withBillingAddress(?Address $billingAddress)
1157 {
1158 $this->billingAddress = $billingAddress;
1159
1160 return $this;
1161 }
1162
1167 public function withShippingAddress(?Address $shippingAddress)
1168 {
1169 $this->shippingAddress = $shippingAddress;
1170
1171 return $this;
1172 }
1173
1178 public function withShippingMode(?string $shippingMode)
1179 {
1180 $this->shippingMode = $shippingMode;
1181
1182 return $this;
1183 }
1184
1189 public function withShippingKey(?string $shippingKey)
1190 {
1191 $this->shippingKey = $shippingKey;
1192
1193 return $this;
1194 }
1195
1200 public function withShippingInfo(?ShippingInfo $shippingInfo)
1201 {
1202 $this->shippingInfo = $shippingInfo;
1203
1204 return $this;
1205 }
1206
1211 public function withShippingRateInput(?ShippingRateInput $shippingRateInput)
1212 {
1213 $this->shippingRateInput = $shippingRateInput;
1214
1215 return $this;
1216 }
1217
1222 public function withShippingCustomFields(?CustomFields $shippingCustomFields)
1223 {
1224 $this->shippingCustomFields = $shippingCustomFields;
1225
1226 return $this;
1227 }
1228
1233 public function withShipping(?ShippingCollection $shipping)
1234 {
1235 $this->shipping = $shipping;
1236
1237 return $this;
1238 }
1239
1244 public function withItemShippingAddresses(?AddressCollection $itemShippingAddresses)
1245 {
1246 $this->itemShippingAddresses = $itemShippingAddresses;
1247
1248 return $this;
1249 }
1250
1255 public function withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
1256 {
1257 $this->discountCodes = $discountCodes;
1258
1259 return $this;
1260 }
1261
1266 public function withDirectDiscounts(?DirectDiscountCollection $directDiscounts)
1267 {
1268 $this->directDiscounts = $directDiscounts;
1269
1270 return $this;
1271 }
1272
1278 {
1279 $this->refusedGifts = $refusedGifts;
1280
1281 return $this;
1282 }
1283
1288 public function withPaymentInfo(?PaymentInfo $paymentInfo)
1289 {
1290 $this->paymentInfo = $paymentInfo;
1291
1292 return $this;
1293 }
1294
1299 public function withCountry(?string $country)
1300 {
1301 $this->country = $country;
1302
1303 return $this;
1304 }
1305
1310 public function withLocale(?string $locale)
1311 {
1312 $this->locale = $locale;
1313
1314 return $this;
1315 }
1316
1321 public function withOrigin(?string $origin)
1322 {
1323 $this->origin = $origin;
1324
1325 return $this;
1326 }
1327
1332 public function withCustom(?CustomFields $custom)
1333 {
1334 $this->custom = $custom;
1335
1336 return $this;
1337 }
1338
1343 public function withDiscountTypeCombination(?DiscountTypeCombination $discountTypeCombination)
1344 {
1345 $this->discountTypeCombination = $discountTypeCombination;
1346
1347 return $this;
1348 }
1349
1354 public function withLock(?CartLock $lock)
1355 {
1356 $this->lock = $lock;
1357
1358 return $this;
1359 }
1360
1365 public function withDeleteDaysAfterLastModification(?int $deleteDaysAfterLastModification)
1366 {
1367 $this->deleteDaysAfterLastModification = $deleteDaysAfterLastModification;
1368
1369 return $this;
1370 }
1371
1376 public function withPurchaseOrderNumber(?string $purchaseOrderNumber)
1377 {
1378 $this->purchaseOrderNumber = $purchaseOrderNumber;
1379
1380 return $this;
1381 }
1382
1387 public function withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
1388 {
1389 $this->lastModifiedBy = $lastModifiedBy;
1390
1391 return $this;
1392 }
1393
1398 public function withCreatedBy(?CreatedBy $createdBy)
1399 {
1400 $this->createdBy = $createdBy;
1401
1402 return $this;
1403 }
1404
1410 {
1411 $this->customerGroup = $customerGroup;
1412
1413 return $this;
1414 }
1415
1421 {
1422 $this->businessUnit = $businessUnit;
1423
1424 return $this;
1425 }
1426
1432 {
1433 $this->store = $store;
1434
1435 return $this;
1436 }
1437
1443 {
1444 $this->totalPrice = $totalPrice;
1445
1446 return $this;
1447 }
1448
1453 public function withTaxedPriceBuilder(?TaxedPriceBuilder $taxedPrice)
1454 {
1455 $this->taxedPrice = $taxedPrice;
1456
1457 return $this;
1458 }
1459
1464 public function withTaxedShippingPriceBuilder(?TaxedPriceBuilder $taxedShippingPrice)
1465 {
1466 $this->taxedShippingPrice = $taxedShippingPrice;
1467
1468 return $this;
1469 }
1470
1475 public function withDiscountOnTotalPriceBuilder(?DiscountOnTotalPriceBuilder $discountOnTotalPrice)
1476 {
1477 $this->discountOnTotalPrice = $discountOnTotalPrice;
1478
1479 return $this;
1480 }
1481
1486 public function withBillingAddressBuilder(?AddressBuilder $billingAddress)
1487 {
1488 $this->billingAddress = $billingAddress;
1489
1490 return $this;
1491 }
1492
1497 public function withShippingAddressBuilder(?AddressBuilder $shippingAddress)
1498 {
1499 $this->shippingAddress = $shippingAddress;
1500
1501 return $this;
1502 }
1503
1508 public function withShippingInfoBuilder(?ShippingInfoBuilder $shippingInfo)
1509 {
1510 $this->shippingInfo = $shippingInfo;
1511
1512 return $this;
1513 }
1514
1519 public function withShippingRateInputBuilder(?ShippingRateInputBuilder $shippingRateInput)
1520 {
1521 $this->shippingRateInput = $shippingRateInput;
1522
1523 return $this;
1524 }
1525
1530 public function withShippingCustomFieldsBuilder(?CustomFieldsBuilder $shippingCustomFields)
1531 {
1532 $this->shippingCustomFields = $shippingCustomFields;
1533
1534 return $this;
1535 }
1536
1541 public function withPaymentInfoBuilder(?PaymentInfoBuilder $paymentInfo)
1542 {
1543 $this->paymentInfo = $paymentInfo;
1544
1545 return $this;
1546 }
1547
1552 public function withCustomBuilder(?CustomFieldsBuilder $custom)
1553 {
1554 $this->custom = $custom;
1555
1556 return $this;
1557 }
1558
1564 {
1565 $this->discountTypeCombination = $discountTypeCombination;
1566
1567 return $this;
1568 }
1569
1574 public function withLockBuilder(?CartLockBuilder $lock)
1575 {
1576 $this->lock = $lock;
1577
1578 return $this;
1579 }
1580
1585 public function withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
1586 {
1587 $this->lastModifiedBy = $lastModifiedBy;
1588
1589 return $this;
1590 }
1591
1596 public function withCreatedByBuilder(?CreatedByBuilder $createdBy)
1597 {
1598 $this->createdBy = $createdBy;
1599
1600 return $this;
1601 }
1602
1603 public function build(): Cart
1604 {
1605 return new CartModel(
1606 $this->id,
1607 $this->version,
1608 $this->createdAt,
1609 $this->lastModifiedAt,
1610 $this->key,
1611 $this->customerId,
1612 $this->customerEmail,
1613 $this->customerGroup instanceof CustomerGroupReferenceBuilder ? $this->customerGroup->build() : $this->customerGroup,
1614 $this->anonymousId,
1615 $this->businessUnit instanceof BusinessUnitKeyReferenceBuilder ? $this->businessUnit->build() : $this->businessUnit,
1616 $this->store instanceof StoreKeyReferenceBuilder ? $this->store->build() : $this->store,
1617 $this->lineItems,
1618 $this->customLineItems,
1619 $this->totalLineItemQuantity,
1620 $this->totalPrice instanceof CentPrecisionMoneyBuilder ? $this->totalPrice->build() : $this->totalPrice,
1621 $this->taxedPrice instanceof TaxedPriceBuilder ? $this->taxedPrice->build() : $this->taxedPrice,
1622 $this->taxedShippingPrice instanceof TaxedPriceBuilder ? $this->taxedShippingPrice->build() : $this->taxedShippingPrice,
1623 $this->discountOnTotalPrice instanceof DiscountOnTotalPriceBuilder ? $this->discountOnTotalPrice->build() : $this->discountOnTotalPrice,
1624 $this->taxMode,
1625 $this->priceRoundingMode,
1626 $this->taxRoundingMode,
1627 $this->taxCalculationMode,
1628 $this->inventoryMode,
1629 $this->cartState,
1630 $this->freezeStrategy,
1631 $this->billingAddress instanceof AddressBuilder ? $this->billingAddress->build() : $this->billingAddress,
1632 $this->shippingAddress instanceof AddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress,
1633 $this->shippingMode,
1634 $this->shippingKey,
1635 $this->shippingInfo instanceof ShippingInfoBuilder ? $this->shippingInfo->build() : $this->shippingInfo,
1636 $this->shippingRateInput instanceof ShippingRateInputBuilder ? $this->shippingRateInput->build() : $this->shippingRateInput,
1637 $this->shippingCustomFields instanceof CustomFieldsBuilder ? $this->shippingCustomFields->build() : $this->shippingCustomFields,
1638 $this->shipping,
1639 $this->itemShippingAddresses,
1640 $this->discountCodes,
1641 $this->directDiscounts,
1642 $this->refusedGifts,
1643 $this->paymentInfo instanceof PaymentInfoBuilder ? $this->paymentInfo->build() : $this->paymentInfo,
1644 $this->country,
1645 $this->locale,
1646 $this->origin,
1647 $this->custom instanceof CustomFieldsBuilder ? $this->custom->build() : $this->custom,
1648 $this->discountTypeCombination instanceof DiscountTypeCombinationBuilder ? $this->discountTypeCombination->build() : $this->discountTypeCombination,
1649 $this->lock instanceof CartLockBuilder ? $this->lock->build() : $this->lock,
1650 $this->deleteDaysAfterLastModification,
1651 $this->purchaseOrderNumber,
1652 $this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
1653 $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy
1654 );
1655 }
1656
1657 public static function of(): CartBuilder
1658 {
1659 return new self();
1660 }
1661}
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)
withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
withStoreBuilder(?StoreKeyReferenceBuilder $store)
withShippingInfo(?ShippingInfo $shippingInfo)
withShipping(?ShippingCollection $shipping)
withDiscountCodes(?DiscountCodeInfoCollection $discountCodes)
withBusinessUnitBuilder(?BusinessUnitKeyReferenceBuilder $businessUnit)
withShippingInfoBuilder(?ShippingInfoBuilder $shippingInfo)
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)
withTaxedShippingPrice(?TaxedPrice $taxedShippingPrice)
withShippingAddress(?Address $shippingAddress)
withTaxedShippingPriceBuilder(?TaxedPriceBuilder $taxedShippingPrice)
withCreatedByBuilder(?CreatedByBuilder $createdBy)
withDiscountOnTotalPriceBuilder(?DiscountOnTotalPriceBuilder $discountOnTotalPrice)
withTotalPrice(?CentPrecisionMoney $totalPrice)
withItemShippingAddresses(?AddressCollection $itemShippingAddresses)
withBillingAddress(?Address $billingAddress)
withCustomerGroupBuilder(?CustomerGroupReferenceBuilder $customerGroup)
withStore(?StoreKeyReference $store)
withPaymentInfoBuilder(?PaymentInfoBuilder $paymentInfo)
withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
withCustomBuilder(?CustomFieldsBuilder $custom)
withCustomerEmail(?string $customerEmail)