commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
QuoteModel.php
1<?php
2
3declare(strict_types=1);
10
53use DateTimeImmutable;
54use stdClass;
55
59final class QuoteModel extends JsonObjectModel implements Quote
60{
65 protected $id;
66
71 protected $version;
72
77 protected $createdAt;
78
83 protected $lastModifiedAt;
84
89 protected $key;
90
95 protected $lastModifiedBy;
96
101 protected $createdBy;
102
107 protected $quoteRequest;
108
113 protected $stagedQuote;
114
119 protected $customer;
120
125 protected $customerGroup;
126
131 protected $validTo;
132
137 protected $sellerComment;
138
143 protected $buyerComment;
144
149 protected $store;
150
155 protected $lineItems;
156
162
167 protected $totalPrice;
168
173 protected $taxedPrice;
174
180
186
191 protected $inventoryMode;
192
197 protected $taxMode;
198
204
210
216
221 protected $country;
222
227 protected $shippingInfo;
228
233 protected $paymentInfo;
234
240
246
252
258
263 protected $custom;
264
269 protected $quoteState;
270
275 protected $state;
276
282
287 protected $businessUnit;
288
289
293 public function __construct(
294 ?string $id = null,
295 ?int $version = null,
296 ?DateTimeImmutable $createdAt = null,
297 ?DateTimeImmutable $lastModifiedAt = null,
298 ?string $key = null,
300 ?CreatedBy $createdBy = null,
305 ?DateTimeImmutable $validTo = null,
306 ?string $sellerComment = null,
307 ?string $buyerComment = null,
311 ?TypedMoney $totalPrice = null,
312 ?TaxedPrice $taxedPrice = null,
314 ?Address $billingAddress = null,
315 ?string $inventoryMode = null,
316 ?string $taxMode = null,
317 ?string $priceRoundingMode = null,
318 ?string $taxRoundingMode = null,
319 ?string $taxCalculationMode = null,
320 ?string $country = null,
327 ?CustomFields $custom = null,
328 ?string $quoteState = null,
329 ?StateReference $state = null,
330 ?string $purchaseOrderNumber = null,
332 ) {
333 $this->id = $id;
334 $this->version = $version;
335 $this->createdAt = $createdAt;
336 $this->lastModifiedAt = $lastModifiedAt;
337 $this->key = $key;
338 $this->lastModifiedBy = $lastModifiedBy;
339 $this->createdBy = $createdBy;
340 $this->quoteRequest = $quoteRequest;
341 $this->stagedQuote = $stagedQuote;
342 $this->customer = $customer;
343 $this->customerGroup = $customerGroup;
344 $this->validTo = $validTo;
345 $this->sellerComment = $sellerComment;
346 $this->buyerComment = $buyerComment;
347 $this->store = $store;
348 $this->lineItems = $lineItems;
349 $this->customLineItems = $customLineItems;
350 $this->totalPrice = $totalPrice;
351 $this->taxedPrice = $taxedPrice;
352 $this->shippingAddress = $shippingAddress;
353 $this->billingAddress = $billingAddress;
354 $this->inventoryMode = $inventoryMode;
355 $this->taxMode = $taxMode;
356 $this->priceRoundingMode = $priceRoundingMode;
357 $this->taxRoundingMode = $taxRoundingMode;
358 $this->taxCalculationMode = $taxCalculationMode;
359 $this->country = $country;
360 $this->shippingInfo = $shippingInfo;
361 $this->paymentInfo = $paymentInfo;
362 $this->shippingRateInput = $shippingRateInput;
363 $this->itemShippingAddresses = $itemShippingAddresses;
364 $this->directDiscounts = $directDiscounts;
365 $this->directDiscountsIgnoreCartDiscounts = $directDiscountsIgnoreCartDiscounts;
366 $this->custom = $custom;
367 $this->quoteState = $quoteState;
368 $this->state = $state;
369 $this->purchaseOrderNumber = $purchaseOrderNumber;
370 $this->businessUnit = $businessUnit;
371 }
372
379 public function getId()
380 {
381 if (is_null($this->id)) {
383 $data = $this->raw(self::FIELD_ID);
384 if (is_null($data)) {
385 return null;
386 }
387 $this->id = (string) $data;
388 }
389
390 return $this->id;
391 }
392
399 public function getVersion()
400 {
401 if (is_null($this->version)) {
403 $data = $this->raw(self::FIELD_VERSION);
404 if (is_null($data)) {
405 return null;
406 }
407 $this->version = (int) $data;
408 }
409
410 return $this->version;
411 }
412
419 public function getCreatedAt()
420 {
421 if (is_null($this->createdAt)) {
423 $data = $this->raw(self::FIELD_CREATED_AT);
424 if (is_null($data)) {
425 return null;
426 }
427 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
428 if (false === $data) {
429 return null;
430 }
431 $this->createdAt = $data;
432 }
433
434 return $this->createdAt;
435 }
436
443 public function getLastModifiedAt()
444 {
445 if (is_null($this->lastModifiedAt)) {
447 $data = $this->raw(self::FIELD_LAST_MODIFIED_AT);
448 if (is_null($data)) {
449 return null;
450 }
451 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
452 if (false === $data) {
453 return null;
454 }
455 $this->lastModifiedAt = $data;
456 }
457
459 }
460
467 public function getKey()
468 {
469 if (is_null($this->key)) {
471 $data = $this->raw(self::FIELD_KEY);
472 if (is_null($data)) {
473 return null;
474 }
475 $this->key = (string) $data;
476 }
477
478 return $this->key;
479 }
480
487 public function getLastModifiedBy()
488 {
489 if (is_null($this->lastModifiedBy)) {
491 $data = $this->raw(self::FIELD_LAST_MODIFIED_BY);
492 if (is_null($data)) {
493 return null;
494 }
495
496 $this->lastModifiedBy = LastModifiedByModel::of($data);
497 }
498
500 }
501
508 public function getCreatedBy()
509 {
510 if (is_null($this->createdBy)) {
512 $data = $this->raw(self::FIELD_CREATED_BY);
513 if (is_null($data)) {
514 return null;
515 }
516
517 $this->createdBy = CreatedByModel::of($data);
518 }
519
520 return $this->createdBy;
521 }
522
529 public function getQuoteRequest()
530 {
531 if (is_null($this->quoteRequest)) {
533 $data = $this->raw(self::FIELD_QUOTE_REQUEST);
534 if (is_null($data)) {
535 return null;
536 }
537
538 $this->quoteRequest = QuoteRequestReferenceModel::of($data);
539 }
540
541 return $this->quoteRequest;
542 }
543
550 public function getStagedQuote()
551 {
552 if (is_null($this->stagedQuote)) {
554 $data = $this->raw(self::FIELD_STAGED_QUOTE);
555 if (is_null($data)) {
556 return null;
557 }
558
559 $this->stagedQuote = StagedQuoteReferenceModel::of($data);
560 }
561
562 return $this->stagedQuote;
563 }
564
571 public function getCustomer()
572 {
573 if (is_null($this->customer)) {
575 $data = $this->raw(self::FIELD_CUSTOMER);
576 if (is_null($data)) {
577 return null;
578 }
579
580 $this->customer = CustomerReferenceModel::of($data);
581 }
582
583 return $this->customer;
584 }
585
594 public function getCustomerGroup()
595 {
596 if (is_null($this->customerGroup)) {
598 $data = $this->raw(self::FIELD_CUSTOMER_GROUP);
599 if (is_null($data)) {
600 return null;
601 }
602
603 $this->customerGroup = CustomerGroupReferenceModel::of($data);
604 }
605
607 }
608
615 public function getValidTo()
616 {
617 if (is_null($this->validTo)) {
619 $data = $this->raw(self::FIELD_VALID_TO);
620 if (is_null($data)) {
621 return null;
622 }
623 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
624 if (false === $data) {
625 return null;
626 }
627 $this->validTo = $data;
628 }
629
630 return $this->validTo;
631 }
632
639 public function getSellerComment()
640 {
641 if (is_null($this->sellerComment)) {
643 $data = $this->raw(self::FIELD_SELLER_COMMENT);
644 if (is_null($data)) {
645 return null;
646 }
647 $this->sellerComment = (string) $data;
648 }
649
651 }
652
659 public function getBuyerComment()
660 {
661 if (is_null($this->buyerComment)) {
663 $data = $this->raw(self::FIELD_BUYER_COMMENT);
664 if (is_null($data)) {
665 return null;
666 }
667 $this->buyerComment = (string) $data;
668 }
669
670 return $this->buyerComment;
671 }
672
679 public function getStore()
680 {
681 if (is_null($this->store)) {
683 $data = $this->raw(self::FIELD_STORE);
684 if (is_null($data)) {
685 return null;
686 }
687
688 $this->store = StoreKeyReferenceModel::of($data);
689 }
690
691 return $this->store;
692 }
693
700 public function getLineItems()
701 {
702 if (is_null($this->lineItems)) {
704 $data = $this->raw(self::FIELD_LINE_ITEMS);
705 if (is_null($data)) {
706 return null;
707 }
708 $this->lineItems = LineItemCollection::fromArray($data);
709 }
710
711 return $this->lineItems;
712 }
713
720 public function getCustomLineItems()
721 {
722 if (is_null($this->customLineItems)) {
724 $data = $this->raw(self::FIELD_CUSTOM_LINE_ITEMS);
725 if (is_null($data)) {
726 return null;
727 }
728 $this->customLineItems = CustomLineItemCollection::fromArray($data);
729 }
730
732 }
733
741 public function getTotalPrice()
742 {
743 if (is_null($this->totalPrice)) {
745 $data = $this->raw(self::FIELD_TOTAL_PRICE);
746 if (is_null($data)) {
747 return null;
748 }
749 $className = TypedMoneyModel::resolveDiscriminatorClass($data);
750 $this->totalPrice = $className::of($data);
751 }
752
753 return $this->totalPrice;
754 }
755
764 public function getTaxedPrice()
765 {
766 if (is_null($this->taxedPrice)) {
768 $data = $this->raw(self::FIELD_TAXED_PRICE);
769 if (is_null($data)) {
770 return null;
771 }
772
773 $this->taxedPrice = TaxedPriceModel::of($data);
774 }
775
776 return $this->taxedPrice;
777 }
778
786 public function getShippingAddress()
787 {
788 if (is_null($this->shippingAddress)) {
790 $data = $this->raw(self::FIELD_SHIPPING_ADDRESS);
791 if (is_null($data)) {
792 return null;
793 }
794
795 $this->shippingAddress = AddressModel::of($data);
796 }
797
799 }
800
807 public function getBillingAddress()
808 {
809 if (is_null($this->billingAddress)) {
811 $data = $this->raw(self::FIELD_BILLING_ADDRESS);
812 if (is_null($data)) {
813 return null;
814 }
815
816 $this->billingAddress = AddressModel::of($data);
817 }
818
820 }
821
828 public function getInventoryMode()
829 {
830 if (is_null($this->inventoryMode)) {
832 $data = $this->raw(self::FIELD_INVENTORY_MODE);
833 if (is_null($data)) {
834 return null;
835 }
836 $this->inventoryMode = (string) $data;
837 }
838
840 }
841
848 public function getTaxMode()
849 {
850 if (is_null($this->taxMode)) {
852 $data = $this->raw(self::FIELD_TAX_MODE);
853 if (is_null($data)) {
854 return null;
855 }
856 $this->taxMode = (string) $data;
857 }
858
859 return $this->taxMode;
860 }
861
868 public function getPriceRoundingMode()
869 {
870 if (is_null($this->priceRoundingMode)) {
872 $data = $this->raw(self::FIELD_PRICE_ROUNDING_MODE);
873 if (is_null($data)) {
874 return null;
875 }
876 $this->priceRoundingMode = (string) $data;
877 }
878
880 }
881
888 public function getTaxRoundingMode()
889 {
890 if (is_null($this->taxRoundingMode)) {
892 $data = $this->raw(self::FIELD_TAX_ROUNDING_MODE);
893 if (is_null($data)) {
894 return null;
895 }
896 $this->taxRoundingMode = (string) $data;
897 }
898
900 }
901
908 public function getTaxCalculationMode()
909 {
910 if (is_null($this->taxCalculationMode)) {
912 $data = $this->raw(self::FIELD_TAX_CALCULATION_MODE);
913 if (is_null($data)) {
914 return null;
915 }
916 $this->taxCalculationMode = (string) $data;
917 }
918
920 }
921
928 public function getCountry()
929 {
930 if (is_null($this->country)) {
932 $data = $this->raw(self::FIELD_COUNTRY);
933 if (is_null($data)) {
934 return null;
935 }
936 $this->country = (string) $data;
937 }
938
939 return $this->country;
940 }
941
948 public function getShippingInfo()
949 {
950 if (is_null($this->shippingInfo)) {
952 $data = $this->raw(self::FIELD_SHIPPING_INFO);
953 if (is_null($data)) {
954 return null;
955 }
956
957 $this->shippingInfo = ShippingInfoModel::of($data);
958 }
959
960 return $this->shippingInfo;
961 }
962
969 public function getPaymentInfo()
970 {
971 if (is_null($this->paymentInfo)) {
973 $data = $this->raw(self::FIELD_PAYMENT_INFO);
974 if (is_null($data)) {
975 return null;
976 }
977
978 $this->paymentInfo = PaymentInfoModel::of($data);
979 }
980
981 return $this->paymentInfo;
982 }
983
990 public function getShippingRateInput()
991 {
992 if (is_null($this->shippingRateInput)) {
994 $data = $this->raw(self::FIELD_SHIPPING_RATE_INPUT);
995 if (is_null($data)) {
996 return null;
997 }
998 $className = ShippingRateInputModel::resolveDiscriminatorClass($data);
999 $this->shippingRateInput = $className::of($data);
1000 }
1001
1003 }
1004
1015 {
1016 if (is_null($this->itemShippingAddresses)) {
1018 $data = $this->raw(self::FIELD_ITEM_SHIPPING_ADDRESSES);
1019 if (is_null($data)) {
1020 return null;
1021 }
1022 $this->itemShippingAddresses = AddressCollection::fromArray($data);
1023 }
1024
1026 }
1027
1034 public function getDirectDiscounts()
1035 {
1036 if (is_null($this->directDiscounts)) {
1038 $data = $this->raw(self::FIELD_DIRECT_DISCOUNTS);
1039 if (is_null($data)) {
1040 return null;
1041 }
1042 $this->directDiscounts = DirectDiscountCollection::fromArray($data);
1043 }
1044
1046 }
1047
1058 {
1059 if (is_null($this->directDiscountsIgnoreCartDiscounts)) {
1061 $data = $this->raw(self::FIELD_DIRECT_DISCOUNTS_IGNORE_CART_DISCOUNTS);
1062 if (is_null($data)) {
1063 return null;
1064 }
1065 $this->directDiscountsIgnoreCartDiscounts = (bool) $data;
1066 }
1067
1069 }
1070
1077 public function getCustom()
1078 {
1079 if (is_null($this->custom)) {
1081 $data = $this->raw(self::FIELD_CUSTOM);
1082 if (is_null($data)) {
1083 return null;
1084 }
1085
1086 $this->custom = CustomFieldsModel::of($data);
1087 }
1088
1089 return $this->custom;
1090 }
1091
1098 public function getQuoteState()
1099 {
1100 if (is_null($this->quoteState)) {
1102 $data = $this->raw(self::FIELD_QUOTE_STATE);
1103 if (is_null($data)) {
1104 return null;
1105 }
1106 $this->quoteState = (string) $data;
1107 }
1108
1109 return $this->quoteState;
1110 }
1111
1119 public function getState()
1120 {
1121 if (is_null($this->state)) {
1123 $data = $this->raw(self::FIELD_STATE);
1124 if (is_null($data)) {
1125 return null;
1126 }
1127
1128 $this->state = StateReferenceModel::of($data);
1129 }
1130
1131 return $this->state;
1132 }
1133
1141 public function getPurchaseOrderNumber()
1142 {
1143 if (is_null($this->purchaseOrderNumber)) {
1145 $data = $this->raw(self::FIELD_PURCHASE_ORDER_NUMBER);
1146 if (is_null($data)) {
1147 return null;
1148 }
1149 $this->purchaseOrderNumber = (string) $data;
1150 }
1151
1153 }
1154
1161 public function getBusinessUnit()
1162 {
1163 if (is_null($this->businessUnit)) {
1165 $data = $this->raw(self::FIELD_BUSINESS_UNIT);
1166 if (is_null($data)) {
1167 return null;
1168 }
1169
1170 $this->businessUnit = BusinessUnitKeyReferenceModel::of($data);
1171 }
1172
1173 return $this->businessUnit;
1174 }
1175
1176
1180 public function setId(?string $id): void
1181 {
1182 $this->id = $id;
1183 }
1184
1188 public function setVersion(?int $version): void
1189 {
1190 $this->version = $version;
1191 }
1192
1196 public function setCreatedAt(?DateTimeImmutable $createdAt): void
1197 {
1198 $this->createdAt = $createdAt;
1199 }
1200
1204 public function setLastModifiedAt(?DateTimeImmutable $lastModifiedAt): void
1205 {
1206 $this->lastModifiedAt = $lastModifiedAt;
1207 }
1208
1212 public function setKey(?string $key): void
1213 {
1214 $this->key = $key;
1215 }
1216
1221 {
1222 $this->lastModifiedBy = $lastModifiedBy;
1223 }
1224
1228 public function setCreatedBy(?CreatedBy $createdBy): void
1229 {
1230 $this->createdBy = $createdBy;
1231 }
1232
1237 {
1238 $this->quoteRequest = $quoteRequest;
1239 }
1240
1245 {
1246 $this->stagedQuote = $stagedQuote;
1247 }
1248
1253 {
1254 $this->customer = $customer;
1255 }
1256
1261 {
1262 $this->customerGroup = $customerGroup;
1263 }
1264
1268 public function setValidTo(?DateTimeImmutable $validTo): void
1269 {
1270 $this->validTo = $validTo;
1271 }
1272
1276 public function setSellerComment(?string $sellerComment): void
1277 {
1278 $this->sellerComment = $sellerComment;
1279 }
1280
1284 public function setBuyerComment(?string $buyerComment): void
1285 {
1286 $this->buyerComment = $buyerComment;
1287 }
1288
1292 public function setStore(?StoreKeyReference $store): void
1293 {
1294 $this->store = $store;
1295 }
1296
1301 {
1302 $this->lineItems = $lineItems;
1303 }
1304
1309 {
1310 $this->customLineItems = $customLineItems;
1311 }
1312
1316 public function setTotalPrice(?TypedMoney $totalPrice): void
1317 {
1318 $this->totalPrice = $totalPrice;
1319 }
1320
1324 public function setTaxedPrice(?TaxedPrice $taxedPrice): void
1325 {
1326 $this->taxedPrice = $taxedPrice;
1327 }
1328
1333 {
1334 $this->shippingAddress = $shippingAddress;
1335 }
1336
1341 {
1342 $this->billingAddress = $billingAddress;
1343 }
1344
1348 public function setInventoryMode(?string $inventoryMode): void
1349 {
1350 $this->inventoryMode = $inventoryMode;
1351 }
1352
1356 public function setTaxMode(?string $taxMode): void
1357 {
1358 $this->taxMode = $taxMode;
1359 }
1360
1364 public function setPriceRoundingMode(?string $priceRoundingMode): void
1365 {
1366 $this->priceRoundingMode = $priceRoundingMode;
1367 }
1368
1372 public function setTaxRoundingMode(?string $taxRoundingMode): void
1373 {
1374 $this->taxRoundingMode = $taxRoundingMode;
1375 }
1376
1380 public function setTaxCalculationMode(?string $taxCalculationMode): void
1381 {
1382 $this->taxCalculationMode = $taxCalculationMode;
1383 }
1384
1388 public function setCountry(?string $country): void
1389 {
1390 $this->country = $country;
1391 }
1392
1397 {
1398 $this->shippingInfo = $shippingInfo;
1399 }
1400
1405 {
1406 $this->paymentInfo = $paymentInfo;
1407 }
1408
1413 {
1414 $this->shippingRateInput = $shippingRateInput;
1415 }
1416
1421 {
1422 $this->itemShippingAddresses = $itemShippingAddresses;
1423 }
1424
1429 {
1430 $this->directDiscounts = $directDiscounts;
1431 }
1432
1437 {
1438 $this->directDiscountsIgnoreCartDiscounts = $directDiscountsIgnoreCartDiscounts;
1439 }
1440
1444 public function setCustom(?CustomFields $custom): void
1445 {
1446 $this->custom = $custom;
1447 }
1448
1452 public function setQuoteState(?string $quoteState): void
1453 {
1454 $this->quoteState = $quoteState;
1455 }
1456
1460 public function setState(?StateReference $state): void
1461 {
1462 $this->state = $state;
1463 }
1464
1468 public function setPurchaseOrderNumber(?string $purchaseOrderNumber): void
1469 {
1470 $this->purchaseOrderNumber = $purchaseOrderNumber;
1471 }
1472
1477 {
1478 $this->businessUnit = $businessUnit;
1479 }
1480
1481
1482 #[\ReturnTypeWillChange]
1483 public function jsonSerialize()
1484 {
1485 $data = $this->toArray();
1486 if (isset($data[Quote::FIELD_CREATED_AT]) && $data[Quote::FIELD_CREATED_AT] instanceof \DateTimeImmutable) {
1487 $data[Quote::FIELD_CREATED_AT] = $data[Quote::FIELD_CREATED_AT]->setTimeZone(new \DateTimeZone('UTC'))->format('c');
1488 }
1489
1490 if (isset($data[Quote::FIELD_LAST_MODIFIED_AT]) && $data[Quote::FIELD_LAST_MODIFIED_AT] instanceof \DateTimeImmutable) {
1491 $data[Quote::FIELD_LAST_MODIFIED_AT] = $data[Quote::FIELD_LAST_MODIFIED_AT]->setTimeZone(new \DateTimeZone('UTC'))->format('c');
1492 }
1493
1494 if (isset($data[Quote::FIELD_VALID_TO]) && $data[Quote::FIELD_VALID_TO] instanceof \DateTimeImmutable) {
1495 $data[Quote::FIELD_VALID_TO] = $data[Quote::FIELD_VALID_TO]->setTimeZone(new \DateTimeZone('UTC'))->format('c');
1496 }
1497 return (object) $data;
1498 }
1499}
setTaxRoundingMode(?string $taxRoundingMode)
setStore(?StoreKeyReference $store)
setPaymentInfo(?PaymentInfo $paymentInfo)
setBillingAddress(?Address $billingAddress)
__construct(?string $id=null, ?int $version=null, ?DateTimeImmutable $createdAt=null, ?DateTimeImmutable $lastModifiedAt=null, ?string $key=null, ?LastModifiedBy $lastModifiedBy=null, ?CreatedBy $createdBy=null, ?QuoteRequestReference $quoteRequest=null, ?StagedQuoteReference $stagedQuote=null, ?CustomerReference $customer=null, ?CustomerGroupReference $customerGroup=null, ?DateTimeImmutable $validTo=null, ?string $sellerComment=null, ?string $buyerComment=null, ?StoreKeyReference $store=null, ?LineItemCollection $lineItems=null, ?CustomLineItemCollection $customLineItems=null, ?TypedMoney $totalPrice=null, ?TaxedPrice $taxedPrice=null, ?Address $shippingAddress=null, ?Address $billingAddress=null, ?string $inventoryMode=null, ?string $taxMode=null, ?string $priceRoundingMode=null, ?string $taxRoundingMode=null, ?string $taxCalculationMode=null, ?string $country=null, ?ShippingInfo $shippingInfo=null, ?PaymentInfo $paymentInfo=null, ?ShippingRateInput $shippingRateInput=null, ?AddressCollection $itemShippingAddresses=null, ?DirectDiscountCollection $directDiscounts=null, ?bool $directDiscountsIgnoreCartDiscounts=null, ?CustomFields $custom=null, ?string $quoteState=null, ?StateReference $state=null, ?string $purchaseOrderNumber=null, ?BusinessUnitKeyReference $businessUnit=null)
setTaxCalculationMode(?string $taxCalculationMode)
setCustomer(?CustomerReference $customer)
setShippingRateInput(?ShippingRateInput $shippingRateInput)
setCustomLineItems(?CustomLineItemCollection $customLineItems)
setDirectDiscounts(?DirectDiscountCollection $directDiscounts)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setCreatedAt(?DateTimeImmutable $createdAt)
setPriceRoundingMode(?string $priceRoundingMode)
setLineItems(?LineItemCollection $lineItems)
setCustomerGroup(?CustomerGroupReference $customerGroup)
setStagedQuote(?StagedQuoteReference $stagedQuote)
setValidTo(?DateTimeImmutable $validTo)
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
setShippingAddress(?Address $shippingAddress)
setShippingInfo(?ShippingInfo $shippingInfo)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setPurchaseOrderNumber(?string $purchaseOrderNumber)
setQuoteRequest(?QuoteRequestReference $quoteRequest)
setItemShippingAddresses(?AddressCollection $itemShippingAddresses)
setDirectDiscountsIgnoreCartDiscounts(?bool $directDiscountsIgnoreCartDiscounts)