1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Sales\Api\Data;
/**
* Order interface.
*
* An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product
* items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as
* a purchase order, is emailed to the customer.
* @api
* @since 100.0.2
*/
interface OrderInterface extends \Magento\Framework\Api\ExtensibleDataInterface
{
/**#@+
* Constants for keys of data array. Identical to the name of the getter in snake case.
*/
/*
* Entity ID.
*/
const ENTITY_ID = 'entity_id';
/*
* State.
*/
const STATE = 'state';
/*
* Status.
*/
const STATUS = 'status';
/*
* Coupon code.
*/
const COUPON_CODE = 'coupon_code';
/*
* Protect code.
*/
const PROTECT_CODE = 'protect_code';
/*
* Shipping description.
*/
const SHIPPING_DESCRIPTION = 'shipping_description';
/*
* Is-virtual flag.
*/
const IS_VIRTUAL = 'is_virtual';
/*
* Store ID.
*/
const STORE_ID = 'store_id';
/*
* Customer ID.
*/
const CUSTOMER_ID = 'customer_id';
/*
* Base discount amount.
*/
const BASE_DISCOUNT_AMOUNT = 'base_discount_amount';
/*
* Base discount canceled.
*/
const BASE_DISCOUNT_CANCELED = 'base_discount_canceled';
/*
* Base discount invoiced.
*/
const BASE_DISCOUNT_INVOICED = 'base_discount_invoiced';
/*
* Base discount refunded.
*/
const BASE_DISCOUNT_REFUNDED = 'base_discount_refunded';
/*
* Base grand total.
*/
const BASE_GRAND_TOTAL = 'base_grand_total';
/*
* Base shipping amount.
*/
const BASE_SHIPPING_AMOUNT = 'base_shipping_amount';
/*
* Base shipping canceled.
*/
const BASE_SHIPPING_CANCELED = 'base_shipping_canceled';
/*
* Base shipping invoiced.
*/
const BASE_SHIPPING_INVOICED = 'base_shipping_invoiced';
/*
* Base shipping refunded.
*/
const BASE_SHIPPING_REFUNDED = 'base_shipping_refunded';
/*
* Base shipping tax amount.
*/
const BASE_SHIPPING_TAX_AMOUNT = 'base_shipping_tax_amount';
/*
* Base shipping tax refunded.
*/
const BASE_SHIPPING_TAX_REFUNDED = 'base_shipping_tax_refunded';
/*
* Base subtotal.
*/
const BASE_SUBTOTAL = 'base_subtotal';
/*
* Base subtotal canceled.
*/
const BASE_SUBTOTAL_CANCELED = 'base_subtotal_canceled';
/*
* Base subtotal invoiced.
*/
const BASE_SUBTOTAL_INVOICED = 'base_subtotal_invoiced';
/*
* Base subtotal refunded.
*/
const BASE_SUBTOTAL_REFUNDED = 'base_subtotal_refunded';
/*
* Base tax amount.
*/
const BASE_TAX_AMOUNT = 'base_tax_amount';
/*
* Base tax canceled.
*/
const BASE_TAX_CANCELED = 'base_tax_canceled';
/*
* Base tax invoiced.
*/
const BASE_TAX_INVOICED = 'base_tax_invoiced';
/*
* Base tax refunded.
*/
const BASE_TAX_REFUNDED = 'base_tax_refunded';
/*
* Base-to-global rate.
*/
const BASE_TO_GLOBAL_RATE = 'base_to_global_rate';
/*
* Base-to-order rate.
*/
const BASE_TO_ORDER_RATE = 'base_to_order_rate';
/*
* Base total canceled.
*/
const BASE_TOTAL_CANCELED = 'base_total_canceled';
/*
* Base total invoiced.
*/
const BASE_TOTAL_INVOICED = 'base_total_invoiced';
/*
* Base total invoiced cost.
*/
const BASE_TOTAL_INVOICED_COST = 'base_total_invoiced_cost';
/*
* Base total offline refunded.
*/
const BASE_TOTAL_OFFLINE_REFUNDED = 'base_total_offline_refunded';
/*
* Base total online refunded.
*/
const BASE_TOTAL_ONLINE_REFUNDED = 'base_total_online_refunded';
/*
* Base total paid.
*/
const BASE_TOTAL_PAID = 'base_total_paid';
/*
* Base total quantity ordered.
*/
const BASE_TOTAL_QTY_ORDERED = 'base_total_qty_ordered';
/*
* Base total refunded.
*/
const BASE_TOTAL_REFUNDED = 'base_total_refunded';
/*
* Discount amount.
*/
const DISCOUNT_AMOUNT = 'discount_amount';
/*
* Discount canceled.
*/
const DISCOUNT_CANCELED = 'discount_canceled';
/*
* Discount invoiced.
*/
const DISCOUNT_INVOICED = 'discount_invoiced';
/*
* Discount refunded.
*/
const DISCOUNT_REFUNDED = 'discount_refunded';
/*
* Grand total.
*/
const GRAND_TOTAL = 'grand_total';
/*
* Shipping amount.
*/
const SHIPPING_AMOUNT = 'shipping_amount';
/*
* Shipping canceled.
*/
const SHIPPING_CANCELED = 'shipping_canceled';
/*
* Shipping invoiced.
*/
const SHIPPING_INVOICED = 'shipping_invoiced';
/*
* Shipping refunded.
*/
const SHIPPING_REFUNDED = 'shipping_refunded';
/*
* Shipping tax amount.
*/
const SHIPPING_TAX_AMOUNT = 'shipping_tax_amount';
/*
* Shipping tax refunded.
*/
const SHIPPING_TAX_REFUNDED = 'shipping_tax_refunded';
/*
* Store-to-base rate.
*/
const STORE_TO_BASE_RATE = 'store_to_base_rate';
/*
* Store-to-order rate.
*/
const STORE_TO_ORDER_RATE = 'store_to_order_rate';
/*
* Subtotal.
*/
const SUBTOTAL = 'subtotal';
/*
* Subtotal canceled.
*/
const SUBTOTAL_CANCELED = 'subtotal_canceled';
/*
* Subtotal invoiced.
*/
const SUBTOTAL_INVOICED = 'subtotal_invoiced';
/*
* Subtotal refunded.
*/
const SUBTOTAL_REFUNDED = 'subtotal_refunded';
/*
* Tax amount.
*/
const TAX_AMOUNT = 'tax_amount';
/*
* Tax canceled.
*/
const TAX_CANCELED = 'tax_canceled';
/*
* Tax invoiced.
*/
const TAX_INVOICED = 'tax_invoiced';
/*
* Tax refunded.
*/
const TAX_REFUNDED = 'tax_refunded';
/*
* Total canceled.
*/
const TOTAL_CANCELED = 'total_canceled';
/*
* Total invoiced.
*/
const TOTAL_INVOICED = 'total_invoiced';
/*
* Total refunded offline.
*/
const TOTAL_OFFLINE_REFUNDED = 'total_offline_refunded';
/*
* Total refunded online.
*/
const TOTAL_ONLINE_REFUNDED = 'total_online_refunded';
/*
* Total paid.
*/
const TOTAL_PAID = 'total_paid';
/*
* Total quantity ordered.
*/
const TOTAL_QTY_ORDERED = 'total_qty_ordered';
/*
* Total refunded.
*/
const TOTAL_REFUNDED = 'total_refunded';
/*
* Can-ship-partially flag.
*/
const CAN_SHIP_PARTIALLY = 'can_ship_partially';
/*
* Can-ship-item-partially flag.
*/
const CAN_SHIP_PARTIALLY_ITEM = 'can_ship_partially_item';
/*
* Customer-is-guest flag.
*/
const CUSTOMER_IS_GUEST = 'customer_is_guest';
/*
* Customer-note-notify flag.
*/
const CUSTOMER_NOTE_NOTIFY = 'customer_note_notify';
/*
* Billing address ID.
*/
const BILLING_ADDRESS_ID = 'billing_address_id';
/*
* Customer group ID.
*/
const CUSTOMER_GROUP_ID = 'customer_group_id';
/*
* Edit increment value.
*/
const EDIT_INCREMENT = 'edit_increment';
/*
* Email-sent flag.
*/
const EMAIL_SENT = 'email_sent';
/*
* Forced-shipment-with-invoice flag.
*/
const FORCED_SHIPMENT_WITH_INVOICE = 'forced_shipment_with_invoice';
/*
* Payment authorization expiration date.
*/
const PAYMENT_AUTH_EXPIRATION = 'payment_auth_expiration';
/*
* Quote address ID.
*/
const QUOTE_ADDRESS_ID = 'quote_address_id';
/*
* Quote ID.
*/
const QUOTE_ID = 'quote_id';
/*
* Negative adjustment.
*/
const ADJUSTMENT_NEGATIVE = 'adjustment_negative';
/*
* Positive adjustment.
*/
const ADJUSTMENT_POSITIVE = 'adjustment_positive';
/*
* Base negative adjustment.
*/
const BASE_ADJUSTMENT_NEGATIVE = 'base_adjustment_negative';
/*
* Base positive adjustment.
*/
const BASE_ADJUSTMENT_POSITIVE = 'base_adjustment_positive';
/*
* Base shipping discount amount.
*/
const BASE_SHIPPING_DISCOUNT_AMOUNT = 'base_shipping_discount_amount';
/*
* Base subtotal including tax.
*/
const BASE_SUBTOTAL_INCL_TAX = 'base_subtotal_incl_tax';
/*
* Base total due.
*/
const BASE_TOTAL_DUE = 'base_total_due';
/*
* Payment authorization amount.
*/
const PAYMENT_AUTHORIZATION_AMOUNT = 'payment_authorization_amount';
/*
* Shipping discount amount.
*/
const SHIPPING_DISCOUNT_AMOUNT = 'shipping_discount_amount';
/*
* Subtotal including tax.
*/
const SUBTOTAL_INCL_TAX = 'subtotal_incl_tax';
/*
* Total due.
*/
const TOTAL_DUE = 'total_due';
/*
* Weight.
*/
const WEIGHT = 'weight';
/*
* Customer date-of-birth (DOB).
*/
const CUSTOMER_DOB = 'customer_dob';
/*
* Increment ID.
*/
const INCREMENT_ID = 'increment_id';
/*
* Applied rule IDs.
*/
const APPLIED_RULE_IDS = 'applied_rule_ids';
/*
* Base currency code.
*/
const BASE_CURRENCY_CODE = 'base_currency_code';
/*
* Customer email address.
*/
const CUSTOMER_EMAIL = 'customer_email';
/*
* Customer first name.
*/
const CUSTOMER_FIRSTNAME = 'customer_firstname';
/*
* Customer last name.
*/
const CUSTOMER_LASTNAME = 'customer_lastname';
/*
* Customer middle name.
*/
const CUSTOMER_MIDDLENAME = 'customer_middlename';
/*
* Customer prefix.
*/
const CUSTOMER_PREFIX = 'customer_prefix';
/*
* Customer suffix.
*/
const CUSTOMER_SUFFIX = 'customer_suffix';
/*
* Customer value-added tax (VAT).
*/
const CUSTOMER_TAXVAT = 'customer_taxvat';
/*
* Discount description.
*/
const DISCOUNT_DESCRIPTION = 'discount_description';
/*
* External customer ID.
*/
const EXT_CUSTOMER_ID = 'ext_customer_id';
/*
* External order ID.
*/
const EXT_ORDER_ID = 'ext_order_id';
/*
* Global currency code.
*/
const GLOBAL_CURRENCY_CODE = 'global_currency_code';
/*
* Hold before state.
*/
const HOLD_BEFORE_STATE = 'hold_before_state';
/*
* Hold before status.
*/
const HOLD_BEFORE_STATUS = 'hold_before_status';
/*
* Order currency code.
*/
const ORDER_CURRENCY_CODE = 'order_currency_code';
/*
* Original increment ID.
*/
const ORIGINAL_INCREMENT_ID = 'original_increment_id';
/*
* Relation child ID.
*/
const RELATION_CHILD_ID = 'relation_child_id';
/*
* Relation child real ID.
*/
const RELATION_CHILD_REAL_ID = 'relation_child_real_id';
/*
* Relation parent ID.
*/
const RELATION_PARENT_ID = 'relation_parent_id';
/*
* Relation parent real ID.
*/
const RELATION_PARENT_REAL_ID = 'relation_parent_real_id';
/*
* Remote IP address.
*/
const REMOTE_IP = 'remote_ip';
/*
* Store currency code.
*/
const STORE_CURRENCY_CODE = 'store_currency_code';
/*
* Store name.
*/
const STORE_NAME = 'store_name';
/*
* X-Forwarded-For HTTP header field.
*/
const X_FORWARDED_FOR = 'x_forwarded_for';
/*
* Customer note.
*/
const CUSTOMER_NOTE = 'customer_note';
/*
* Created-at timestamp.
*/
const CREATED_AT = 'created_at';
/*
* Updated-at timestamp.
*/
const UPDATED_AT = 'updated_at';
/*
* Total item count.
*/
const TOTAL_ITEM_COUNT = 'total_item_count';
/*
* Customer gender.
*/
const CUSTOMER_GENDER = 'customer_gender';
/*
* Discount tax compensation amount.
*/
const DISCOUNT_TAX_COMPENSATION_AMOUNT = 'discount_tax_compensation_amount';
/*
* Base discount tax compensation amount.
*/
const BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'base_discount_tax_compensation_amount';
/*
* Shipping discount tax compensation amount.
*/
const SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'shipping_discount_tax_compensation_amount';
/*
* Base shipping discount tax compensation amount.
*/
const BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT = 'base_shipping_discount_tax_compensation_amnt';
/*
* Discount tax compensation invoiced.
*/
const DISCOUNT_TAX_COMPENSATION_INVOICED = 'discount_tax_compensation_invoiced';
/*
* Base discount tax compensation invoiced.
*/
const BASE_DISCOUNT_TAX_COMPENSATION_INVOICED = 'base_discount_tax_compensation_invoiced';
/*
* Discount tax compensation refunded.
*/
const DISCOUNT_TAX_COMPENSATION_REFUNDED = 'discount_tax_compensation_refunded';
/*
* Base discount tax compensation refunded.
*/
const BASE_DISCOUNT_TAX_COMPENSATION_REFUNDED = 'base_discount_tax_compensation_refunded';
/*
* Shipping including tax.
*/
const SHIPPING_INCL_TAX = 'shipping_incl_tax';
/*
* Base shipping including tax.
*/
const BASE_SHIPPING_INCL_TAX = 'base_shipping_incl_tax';
/*
* Items.
*/
const ITEMS = 'items';
/*
* Billing address.
*/
const BILLING_ADDRESS = 'billing_address';
/*
* Payment.
*/
const PAYMENT = 'payment';
/*
* Status histories.
*/
const STATUS_HISTORIES = 'status_histories';
/**
* Gets the negative adjustment value for the order.
*
* @return float|null Negative adjustment value.
*/
public function getAdjustmentNegative();
/**
* Gets the positive adjustment value for the order.
*
* @return float|null Positive adjustment value.
*/
public function getAdjustmentPositive();
/**
* Gets the applied rule IDs for the order.
*
* Rules are comma separated if there are more than one.
*
* @return string|null Applied rule IDs.
*/
public function getAppliedRuleIds();
/**
* Gets the base negative adjustment value for the order.
*
* @return float|null Base negative adjustment value.
*/
public function getBaseAdjustmentNegative();
/**
* Gets the base positive adjustment value for the order.
*
* @return float|null Base positive adjustment value.
*/
public function getBaseAdjustmentPositive();
/**
* Gets the base currency code for the order.
*
* @return string|null Base currency code.
*/
public function getBaseCurrencyCode();
/**
* Gets the base discount amount for the order.
*
* @return float|null Base discount amount.
*/
public function getBaseDiscountAmount();
/**
* Gets the base discount canceled for the order.
*
* @return float|null Base discount canceled.
*/
public function getBaseDiscountCanceled();
/**
* Gets the base discount invoiced amount for the order.
*
* @return float|null Base discount invoiced.
*/
public function getBaseDiscountInvoiced();
/**
* Gets the base discount refunded amount for the order.
*
* @return float|null Base discount refunded.
*/
public function getBaseDiscountRefunded();
/**
* Gets the base grand total for the order.
*
* @return float Base grand total.
*/
public function getBaseGrandTotal();
/**
* Gets the base discount tax compensation amount for the order.
*
* @return float|null Base discount tax compensation amount.
*/
public function getBaseDiscountTaxCompensationAmount();
/**
* Gets the base discount tax compensation invoiced amount for the order.
*
* @return float|null Base discount tax compensation invoiced.
*/
public function getBaseDiscountTaxCompensationInvoiced();
/**
* Gets the base discount tax compensation refunded amount for the order.
*
* @return float|null Base discount tax compensation refunded.
*/
public function getBaseDiscountTaxCompensationRefunded();
/**
* Gets the base shipping amount for the order.
*
* @return float|null Base shipping amount.
*/
public function getBaseShippingAmount();
/**
* Gets the base shipping canceled for the order.
*
* @return float|null Base shipping canceled.
*/
public function getBaseShippingCanceled();
/**
* Gets the base shipping discount amount for the order.
*
* @return float|null Base shipping discount amount.
*/
public function getBaseShippingDiscountAmount();
/**
* Gets the base shipping discount tax compensation amount for the order.
*
* @return float|null Base shipping discount tax compensation amount.
*/
public function getBaseShippingDiscountTaxCompensationAmnt();
/**
* Gets the base shipping including tax for the order.
*
* @return float|null Base shipping including tax.
*/
public function getBaseShippingInclTax();
/**
* Gets the base shipping invoiced amount for the order.
*
* @return float|null Base shipping invoiced.
*/
public function getBaseShippingInvoiced();
/**
* Gets the base shipping refunded amount for the order.
*
* @return float|null Base shipping refunded.
*/
public function getBaseShippingRefunded();
/**
* Gets the base shipping tax amount for the order.
*
* @return float|null Base shipping tax amount.
*/
public function getBaseShippingTaxAmount();
/**
* Gets the base shipping tax refunded amount for the order.
*
* @return float|null Base shipping tax refunded.
*/
public function getBaseShippingTaxRefunded();
/**
* Gets the base subtotal for the order.
*
* @return float|null Base subtotal.
*/
public function getBaseSubtotal();
/**
* Gets the base subtotal canceled for the order.
*
* @return float|null Base subtotal canceled.
*/
public function getBaseSubtotalCanceled();
/**
* Gets the base subtotal including tax for the order.
*
* @return float|null Base subtotal including tax.
*/
public function getBaseSubtotalInclTax();
/**
* Gets the base subtotal invoiced amount for the order.
*
* @return float|null Base subtotal invoiced.
*/
public function getBaseSubtotalInvoiced();
/**
* Gets the base subtotal refunded amount for the order.
*
* @return float|null Base subtotal refunded.
*/
public function getBaseSubtotalRefunded();
/**
* Gets the base tax amount for the order.
*
* @return float|null Base tax amount.
*/
public function getBaseTaxAmount();
/**
* Gets the base tax canceled for the order.
*
* @return float|null Base tax canceled.
*/
public function getBaseTaxCanceled();
/**
* Gets the base tax invoiced amount for the order.
*
* @return float|null Base tax invoiced.
*/
public function getBaseTaxInvoiced();
/**
* Gets the base tax refunded amount for the order.
*
* @return float|null Base tax refunded.
*/
public function getBaseTaxRefunded();
/**
* Gets the base total canceled for the order.
*
* @return float|null Base total canceled.
*/
public function getBaseTotalCanceled();
/**
* Gets the base total due for the order.
*
* @return float|null Base total due.
*/
public function getBaseTotalDue();
/**
* Gets the base total invoiced amount for the order.
*
* @return float|null Base total invoiced.
*/
public function getBaseTotalInvoiced();
/**
* Gets the base total invoiced cost for the order.
*
* @return float|null Base total invoiced cost.
*/
public function getBaseTotalInvoicedCost();
/**
* Gets the base total offline refunded amount for the order.
*
* @return float|null Base total offline refunded.
*/
public function getBaseTotalOfflineRefunded();
/**
* Gets the base total online refunded amount for the order.
*
* @return float|null Base total online refunded.
*/
public function getBaseTotalOnlineRefunded();
/**
* Gets the base total paid for the order.
*
* @return float|null Base total paid.
*/
public function getBaseTotalPaid();
/**
* Gets the base total quantity ordered for the order.
*
* @return float|null Base total quantity ordered.
*/
public function getBaseTotalQtyOrdered();
/**
* Gets the base total refunded amount for the order.
*
* @return float|null Base total refunded.
*/
public function getBaseTotalRefunded();
/**
* Gets the base-to-global rate for the order.
*
* @return float|null Base-to-global rate.
*/
public function getBaseToGlobalRate();
/**
* Gets the base-to-order rate for the order.
*
* @return float|null Base-to-order rate.
*/
public function getBaseToOrderRate();
/**
* Gets the billing address ID for the order.
*
* @return int|null Billing address ID.
*/
public function getBillingAddressId();
/**
* Gets the can-ship-partially flag value for the order.
*
* @return int|null Can-ship-partially flag value.
*/
public function getCanShipPartially();
/**
* Gets the can-ship-partially-item flag value for the order.
*
* @return int|null Can-ship-partially-item flag value.
*/
public function getCanShipPartiallyItem();
/**
* Gets the coupon code for the order.
*
* @return string|null Coupon code.
*/
public function getCouponCode();
/**
* Gets the created-at timestamp for the order.
*
* @return string|null Created-at timestamp.
*/
public function getCreatedAt();
/**
* Sets the created-at timestamp for the order.
*
* @param string $createdAt timestamp
* @return $this
*/
public function setCreatedAt($createdAt);
/**
* Gets the customer date-of-birth (DOB) for the order.
*
* @return string|null Customer date-of-birth (DOB).
*/
public function getCustomerDob();
/**
* Gets the customer email address for the order.
*
* @return string Customer email address.
*/
public function getCustomerEmail();
/**
* Gets the customer first name for the order.
*
* @return string|null Customer first name.
*/
public function getCustomerFirstname();
/**
* Gets the customer gender for the order.
*
* @return int|null Customer gender.
*/
public function getCustomerGender();
/**
* Gets the customer group ID for the order.
*
* @return int|null Customer group ID.
*/
public function getCustomerGroupId();
/**
* Gets the customer ID for the order.
*
* @return int|null Customer ID.
*/
public function getCustomerId();
/**
* Gets the customer-is-guest flag value for the order.
*
* @return int|null Customer-is-guest flag value.
*/
public function getCustomerIsGuest();
/**
* Gets the customer last name for the order.
*
* @return string|null Customer last name.
*/
public function getCustomerLastname();
/**
* Gets the customer middle name for the order.
*
* @return string|null Customer middle name.
*/
public function getCustomerMiddlename();
/**
* Gets the customer note for the order.
*
* @return string|null Customer note.
*/
public function getCustomerNote();
/**
* Gets the customer-note-notify flag value for the order.
*
* @return int|null Customer-note-notify flag value.
*/
public function getCustomerNoteNotify();
/**
* Gets the customer prefix for the order.
*
* @return string|null Customer prefix.
*/
public function getCustomerPrefix();
/**
* Gets the customer suffix for the order.
*
* @return string|null Customer suffix.
*/
public function getCustomerSuffix();
/**
* Gets the customer value-added tax (VAT) for the order.
*
* @return string|null Customer value-added tax (VAT).
*/
public function getCustomerTaxvat();
/**
* Gets the discount amount for the order.
*
* @return float|null Discount amount.
*/
public function getDiscountAmount();
/**
* Gets the discount canceled for the order.
*
* @return float|null Discount canceled.
*/
public function getDiscountCanceled();
/**
* Gets the discount description for the order.
*
* @return string|null Discount description.
*/
public function getDiscountDescription();
/**
* Gets the discount invoiced amount for the order.
*
* @return float|null Discount invoiced.
*/
public function getDiscountInvoiced();
/**
* Gets the discount refunded amount for the order.
*
* @return float|null Discount refunded amount.
*/
public function getDiscountRefunded();
/**
* Gets the edit increment value for the order.
*
* @return int|null Edit increment value.
*/
public function getEditIncrement();
/**
* Gets the email-sent flag value for the order.
*
* @return int|null Email-sent flag value.
*/
public function getEmailSent();
/**
* Gets the ID for the order.
*
* @return int|null Order ID.
*/
public function getEntityId();
/**
* Sets entity ID.
*
* @param int $entityId
* @return $this
*/
public function setEntityId($entityId);
/**
* Gets the external customer ID for the order.
*
* @return string|null External customer ID.
*/
public function getExtCustomerId();
/**
* Gets the external order ID for the order.
*
* @return string|null External order ID.
*/
public function getExtOrderId();
/**
* Gets the forced-shipment-with-invoice flag value for the order.
*
* @return int|null Forced-shipment-with-invoice flag value.
*/
public function getForcedShipmentWithInvoice();
/**
* Gets the global currency code for the order.
*
* @return string|null Global currency code.
*/
public function getGlobalCurrencyCode();
/**
* Gets the grand total for the order.
*
* @return float Grand total.
*/
public function getGrandTotal();
/**
* Gets the discount tax compensation amount for the order.
*
* @return float|null Discount tax compensation amount.
*/
public function getDiscountTaxCompensationAmount();
/**
* Gets the discount tax compensation invoiced amount for the order.
*
* @return float|null Discount tax compensation invoiced amount.
*/
public function getDiscountTaxCompensationInvoiced();
/**
* Gets the discount tax compensation refunded amount for the order.
*
* @return float|null Discount tax compensation refunded amount.
*/
public function getDiscountTaxCompensationRefunded();
/**
* Gets the hold before state for the order.
*
* @return string|null Hold before state.
*/
public function getHoldBeforeState();
/**
* Gets the hold before status for the order.
*
* @return string|null Hold before status.
*/
public function getHoldBeforeStatus();
/**
* Gets the increment ID for the order.
*
* @return string|null Increment ID.
*/
public function getIncrementId();
/**
* Gets the is-virtual flag value for the order.
*
* @return int|null Is-virtual flag value.
*/
public function getIsVirtual();
/**
* Gets the order currency code for the order.
*
* @return string|null Order currency code.
*/
public function getOrderCurrencyCode();
/**
* Gets the original increment ID for the order.
*
* @return string|null Original increment ID.
*/
public function getOriginalIncrementId();
/**
* Gets the payment authorization amount for the order.
*
* @return float|null Payment authorization amount.
*/
public function getPaymentAuthorizationAmount();
/**
* Gets the payment authorization expiration date for the order.
*
* @return int|null Payment authorization expiration date.
*/
public function getPaymentAuthExpiration();
/**
* Gets the protect code for the order.
*
* @return string|null Protect code.
*/
public function getProtectCode();
/**
* Gets the quote address ID for the order.
*
* @return int|null Quote address ID.
*/
public function getQuoteAddressId();
/**
* Gets the quote ID for the order.
*
* @return int|null Quote ID.
*/
public function getQuoteId();
/**
* Gets the relation child ID for the order.
*
* @return string|null Relation child ID.
*/
public function getRelationChildId();
/**
* Gets the relation child real ID for the order.
*
* @return string|null Relation child real ID.
*/
public function getRelationChildRealId();
/**
* Gets the relation parent ID for the order.
*
* @return string|null Relation parent ID.
*/
public function getRelationParentId();
/**
* Gets the relation parent real ID for the order.
*
* @return string|null Relation parent real ID.
*/
public function getRelationParentRealId();
/**
* Gets the remote IP address for the order.
*
* @return string|null Remote IP address.
*/
public function getRemoteIp();
/**
* Gets the shipping amount for the order.
*
* @return float|null Shipping amount.
*/
public function getShippingAmount();
/**
* Gets the shipping canceled amount for the order.
*
* @return float|null Shipping canceled amount.
*/
public function getShippingCanceled();
/**
* Gets the shipping description for the order.
*
* @return string|null Shipping description.
*/
public function getShippingDescription();
/**
* Gets the shipping discount amount for the order.
*
* @return float|null Shipping discount amount.
*/
public function getShippingDiscountAmount();
/**
* Gets the shipping discount tax compensation amount for the order.
*
* @return float|null Shipping discount tax compensation amount.
*/
public function getShippingDiscountTaxCompensationAmount();
/**
* Gets the shipping including tax amount for the order.
*
* @return float|null Shipping including tax amount.
*/
public function getShippingInclTax();
/**
* Gets the shipping invoiced amount for the order.
*
* @return float|null Shipping invoiced amount.
*/
public function getShippingInvoiced();
/**
* Gets the shipping refunded amount for the order.
*
* @return float|null Shipping refunded amount.
*/
public function getShippingRefunded();
/**
* Gets the shipping tax amount for the order.
*
* @return float|null Shipping tax amount.
*/
public function getShippingTaxAmount();
/**
* Gets the shipping tax refunded amount for the order.
*
* @return float|null Shipping tax refunded amount.
*/
public function getShippingTaxRefunded();
/**
* Gets the state for the order.
*
* @return string|null State.
*/
public function getState();
/**
* Gets the status for the order.
*
* @return string|null Status.
*/
public function getStatus();
/**
* Gets the store currency code for the order.
*
* @return string|null Store currency code.
*/
public function getStoreCurrencyCode();
/**
* Gets the store ID for the order.
*
* @return int|null Store ID.
*/
public function getStoreId();
/**
* Gets the store name for the order.
*
* @return string|null Store name.
*/
public function getStoreName();
/**
* Gets the store-to-base rate for the order.
*
* @return float|null Store-to-base rate.
*/
public function getStoreToBaseRate();
/**
* Gets the store-to-order rate for the order.
*
* @return float|null Store-to-order rate.
*/
public function getStoreToOrderRate();
/**
* Gets the subtotal for the order.
*
* @return float|null Subtotal.
*/
public function getSubtotal();
/**
* Gets the subtotal canceled amount for the order.
*
* @return float|null Subtotal canceled amount.
*/
public function getSubtotalCanceled();
/**
* Gets the subtotal including tax amount for the order.
*
* @return float|null Subtotal including tax amount.
*/
public function getSubtotalInclTax();
/**
* Gets the subtotal invoiced amount for the order.
*
* @return float|null Subtotal invoiced amount.
*/
public function getSubtotalInvoiced();
/**
* Gets the subtotal refunded amount for the order.
*
* @return float|null Subtotal refunded amount.
*/
public function getSubtotalRefunded();
/**
* Gets the tax amount for the order.
*
* @return float|null Tax amount.
*/
public function getTaxAmount();
/**
* Gets the tax canceled amount for the order.
*
* @return float|null Tax canceled amount.
*/
public function getTaxCanceled();
/**
* Gets the tax invoiced amount for the order.
*
* @return float|null Tax invoiced amount.
*/
public function getTaxInvoiced();
/**
* Gets the tax refunded amount for the order.
*
* @return float|null Tax refunded amount.
*/
public function getTaxRefunded();
/**
* Gets the total canceled for the order.
*
* @return float|null Total canceled.
*/
public function getTotalCanceled();
/**
* Gets the total due for the order.
*
* @return float|null Total due.
*/
public function getTotalDue();
/**
* Gets the total invoiced amount for the order.
*
* @return float|null Total invoiced amount.
*/
public function getTotalInvoiced();
/**
* Gets the total item count for the order.
*
* @return int|null Total item count.
*/
public function getTotalItemCount();
/**
* Gets the total offline refunded amount for the order.
*
* @return float|null Total offline refunded amount.
*/
public function getTotalOfflineRefunded();
/**
* Gets the total online refunded amount for the order.
*
* @return float|null Total online refunded amount.
*/
public function getTotalOnlineRefunded();
/**
* Gets the total paid for the order.
*
* @return float|null Total paid.
*/
public function getTotalPaid();
/**
* Gets the total quantity ordered for the order.
*
* @return float|null Total quantity ordered.
*/
public function getTotalQtyOrdered();
/**
* Gets the total amount refunded amount for the order.
*
* @return float|null Total amount refunded.
*/
public function getTotalRefunded();
/**
* Gets the updated-at timestamp for the order.
*
* @return string|null Updated-at timestamp.
*/
public function getUpdatedAt();
/**
* Gets the weight for the order.
*
* @return float|null Weight.
*/
public function getWeight();
/**
* Gets the X-Forwarded-For HTTP header field for the order.
*
* This field identifies the originating IP address of a client
* connecting to a web server through an HTTP proxy or load balancer.
*
* @return string|null X-Forwarded-For field value.
*/
public function getXForwardedFor();
/**
* Gets items for the order.
*
* @return \Magento\Sales\Api\Data\OrderItemInterface[] Array of items.
*/
public function getItems();
/**
* Sets items for the order.
*
* @param \Magento\Sales\Api\Data\OrderItemInterface[] $items
* @return $this
*/
public function setItems($items);
/**
* Gets the billing address, if any, for the order.
*
* @return \Magento\Sales\Api\Data\OrderAddressInterface|null Billing address. Otherwise, null.
*/
public function getBillingAddress();
/**
* Sets the billing address, if any, for the order.
*
* @param \Magento\Sales\Api\Data\OrderAddressInterface $billingAddress
* @return $this
*/
public function setBillingAddress(\Magento\Sales\Api\Data\OrderAddressInterface $billingAddress = null);
/**
* Gets order payment
*
* @return \Magento\Sales\Api\Data\OrderPaymentInterface|null
*/
public function getPayment();
/**
* Sets order payment
*
* @param \Magento\Sales\Api\Data\OrderPaymentInterface|null $payment
* @return \Magento\Sales\Api\Data\OrderPaymentInterface
*/
public function setPayment(\Magento\Sales\Api\Data\OrderPaymentInterface $payment = null);
/**
* Gets status histories for the order.
*
* @return \Magento\Sales\Api\Data\OrderStatusHistoryInterface[]|null Array of status histories.
*/
public function getStatusHistories();
/**
* Sets status histories for the order.
*
* @param \Magento\Sales\Api\Data\OrderStatusHistoryInterface[] $statusHistories
* @return $this
*/
public function setStatusHistories(array $statusHistories = null);
/**
* Sets the state for the order.
*
* @param string $state
* @return $this
*/
public function setState($state);
/**
* Sets the status for the order.
*
* @param string $status
* @return $this
*/
public function setStatus($status);
/**
* Sets the coupon code for the order.
*
* @param string $code
* @return $this
*/
public function setCouponCode($code);
/**
* Sets the protect code for the order.
*
* @param string $code
* @return $this
*/
public function setProtectCode($code);
/**
* Sets the shipping description for the order.
*
* @param string $description
* @return $this
*/
public function setShippingDescription($description);
/**
* Sets the is-virtual flag value for the order.
*
* @param int $isVirtual
* @return $this
*/
public function setIsVirtual($isVirtual);
/**
* Sets the store ID for the order.
*
* @param int $id
* @return $this
*/
public function setStoreId($id);
/**
* Sets the customer ID for the order.
*
* @param int $id
* @return $this
*/
public function setCustomerId($id);
/**
* Sets the base discount amount for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseDiscountAmount($amount);
/**
* Sets the base discount canceled for the order.
*
* @param float $baseDiscountCanceled
* @return $this
*/
public function setBaseDiscountCanceled($baseDiscountCanceled);
/**
* Sets the base discount invoiced amount for the order.
*
* @param float $baseDiscountInvoiced
* @return $this
*/
public function setBaseDiscountInvoiced($baseDiscountInvoiced);
/**
* Sets the base discount refunded amount for the order.
*
* @param float $baseDiscountRefunded
* @return $this
*/
public function setBaseDiscountRefunded($baseDiscountRefunded);
/**
* Sets the base grand total for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseGrandTotal($amount);
/**
* Sets the base shipping amount for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseShippingAmount($amount);
/**
* Sets the base shipping canceled for the order.
*
* @param float $baseShippingCanceled
* @return $this
*/
public function setBaseShippingCanceled($baseShippingCanceled);
/**
* Sets the base shipping invoiced amount for the order.
*
* @param float $baseShippingInvoiced
* @return $this
*/
public function setBaseShippingInvoiced($baseShippingInvoiced);
/**
* Sets the base shipping refunded amount for the order.
*
* @param float $baseShippingRefunded
* @return $this
*/
public function setBaseShippingRefunded($baseShippingRefunded);
/**
* Sets the base shipping tax amount for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseShippingTaxAmount($amount);
/**
* Sets the base shipping tax refunded amount for the order.
*
* @param float $baseShippingTaxRefunded
* @return $this
*/
public function setBaseShippingTaxRefunded($baseShippingTaxRefunded);
/**
* Sets the base subtotal for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseSubtotal($amount);
/**
* Sets the base subtotal canceled for the order.
*
* @param float $baseSubtotalCanceled
* @return $this
*/
public function setBaseSubtotalCanceled($baseSubtotalCanceled);
/**
* Sets the base subtotal invoiced amount for the order.
*
* @param float $baseSubtotalInvoiced
* @return $this
*/
public function setBaseSubtotalInvoiced($baseSubtotalInvoiced);
/**
* Sets the base subtotal refunded amount for the order.
*
* @param float $baseSubtotalRefunded
* @return $this
*/
public function setBaseSubtotalRefunded($baseSubtotalRefunded);
/**
* Sets the base tax amount for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseTaxAmount($amount);
/**
* Sets the base tax canceled for the order.
*
* @param float $baseTaxCanceled
* @return $this
*/
public function setBaseTaxCanceled($baseTaxCanceled);
/**
* Sets the base tax invoiced amount for the order.
*
* @param float $baseTaxInvoiced
* @return $this
*/
public function setBaseTaxInvoiced($baseTaxInvoiced);
/**
* Sets the base tax refunded amount for the order.
*
* @param float $baseTaxRefunded
* @return $this
*/
public function setBaseTaxRefunded($baseTaxRefunded);
/**
* Sets the base-to-global rate for the order.
*
* @param float $rate
* @return $this
*/
public function setBaseToGlobalRate($rate);
/**
* Sets the base-to-order rate for the order.
*
* @param float $rate
* @return $this
*/
public function setBaseToOrderRate($rate);
/**
* Sets the base total canceled for the order.
*
* @param float $baseTotalCanceled
* @return $this
*/
public function setBaseTotalCanceled($baseTotalCanceled);
/**
* Sets the base total invoiced amount for the order.
*
* @param float $baseTotalInvoiced
* @return $this
*/
public function setBaseTotalInvoiced($baseTotalInvoiced);
/**
* Sets the base total invoiced cost for the order.
*
* @param float $baseTotalInvoicedCost
* @return $this
*/
public function setBaseTotalInvoicedCost($baseTotalInvoicedCost);
/**
* Sets the base total offline refunded amount for the order.
*
* @param float $baseTotalOfflineRefunded
* @return $this
*/
public function setBaseTotalOfflineRefunded($baseTotalOfflineRefunded);
/**
* Sets the base total online refunded amount for the order.
*
* @param float $baseTotalOnlineRefunded
* @return $this
*/
public function setBaseTotalOnlineRefunded($baseTotalOnlineRefunded);
/**
* Sets the base total paid for the order.
*
* @param float $baseTotalPaid
* @return $this
*/
public function setBaseTotalPaid($baseTotalPaid);
/**
* Sets the base total quantity ordered for the order.
*
* @param float $baseTotalQtyOrdered
* @return $this
*/
public function setBaseTotalQtyOrdered($baseTotalQtyOrdered);
/**
* Sets the base total refunded amount for the order.
*
* @param float $baseTotalRefunded
* @return $this
*/
public function setBaseTotalRefunded($baseTotalRefunded);
/**
* Sets the discount amount for the order.
*
* @param float $amount
* @return $this
*/
public function setDiscountAmount($amount);
/**
* Sets the discount canceled for the order.
*
* @param float $discountCanceled
* @return $this
*/
public function setDiscountCanceled($discountCanceled);
/**
* Sets the discount invoiced amount for the order.
*
* @param float $discountInvoiced
* @return $this
*/
public function setDiscountInvoiced($discountInvoiced);
/**
* Sets the discount refunded amount for the order.
*
* @param float $discountRefunded
* @return $this
*/
public function setDiscountRefunded($discountRefunded);
/**
* Sets the grand total for the order.
*
* @param float $amount
* @return $this
*/
public function setGrandTotal($amount);
/**
* Sets the shipping amount for the order.
*
* @param float $amount
* @return $this
*/
public function setShippingAmount($amount);
/**
* Sets the shipping canceled amount for the order.
*
* @param float $shippingCanceled
* @return $this
*/
public function setShippingCanceled($shippingCanceled);
/**
* Sets the shipping invoiced amount for the order.
*
* @param float $shippingInvoiced
* @return $this
*/
public function setShippingInvoiced($shippingInvoiced);
/**
* Sets the shipping refunded amount for the order.
*
* @param float $shippingRefunded
* @return $this
*/
public function setShippingRefunded($shippingRefunded);
/**
* Sets the shipping tax amount for the order.
*
* @param float $amount
* @return $this
*/
public function setShippingTaxAmount($amount);
/**
* Sets the shipping tax refunded amount for the order.
*
* @param float $shippingTaxRefunded
* @return $this
*/
public function setShippingTaxRefunded($shippingTaxRefunded);
/**
* Sets the store-to-base rate for the order.
*
* @param float $rate
* @return $this
*/
public function setStoreToBaseRate($rate);
/**
* Sets the store-to-order rate for the order.
*
* @param float $rate
* @return $this
*/
public function setStoreToOrderRate($rate);
/**
* Sets the subtotal for the order.
*
* @param float $amount
* @return $this
*/
public function setSubtotal($amount);
/**
* Sets the subtotal canceled amount for the order.
*
* @param float $subtotalCanceled
* @return $this
*/
public function setSubtotalCanceled($subtotalCanceled);
/**
* Sets the subtotal invoiced amount for the order.
*
* @param float $subtotalInvoiced
* @return $this
*/
public function setSubtotalInvoiced($subtotalInvoiced);
/**
* Sets the subtotal refunded amount for the order.
*
* @param float $subtotalRefunded
* @return $this
*/
public function setSubtotalRefunded($subtotalRefunded);
/**
* Sets the tax amount for the order.
*
* @param float $amount
* @return $this
*/
public function setTaxAmount($amount);
/**
* Sets the tax canceled amount for the order.
*
* @param float $taxCanceled
* @return $this
*/
public function setTaxCanceled($taxCanceled);
/**
* Sets the tax invoiced amount for the order.
*
* @param float $taxInvoiced
* @return $this
*/
public function setTaxInvoiced($taxInvoiced);
/**
* Sets the tax refunded amount for the order.
*
* @param float $taxRefunded
* @return $this
*/
public function setTaxRefunded($taxRefunded);
/**
* Sets the total canceled for the order.
*
* @param float $totalCanceled
* @return $this
*/
public function setTotalCanceled($totalCanceled);
/**
* Sets the total invoiced amount for the order.
*
* @param float $totalInvoiced
* @return $this
*/
public function setTotalInvoiced($totalInvoiced);
/**
* Sets the total offline refunded amount for the order.
*
* @param float $totalOfflineRefunded
* @return $this
*/
public function setTotalOfflineRefunded($totalOfflineRefunded);
/**
* Sets the total online refunded amount for the order.
*
* @param float $totalOnlineRefunded
* @return $this
*/
public function setTotalOnlineRefunded($totalOnlineRefunded);
/**
* Sets the total paid for the order.
*
* @param float $totalPaid
* @return $this
*/
public function setTotalPaid($totalPaid);
/**
* Sets the total quantity ordered for the order.
*
* @param float $totalQtyOrdered
* @return $this
*/
public function setTotalQtyOrdered($totalQtyOrdered);
/**
* Sets the total amount refunded amount for the order.
*
* @param float $totalRefunded
* @return $this
*/
public function setTotalRefunded($totalRefunded);
/**
* Sets the can-ship-partially flag value for the order.
*
* @param int $flag
* @return $this
*/
public function setCanShipPartially($flag);
/**
* Sets the can-ship-partially-item flag value for the order.
*
* @param int $flag
* @return $this
*/
public function setCanShipPartiallyItem($flag);
/**
* Sets the customer-is-guest flag value for the order.
*
* @param int $customerIsGuest
* @return $this
*/
public function setCustomerIsGuest($customerIsGuest);
/**
* Sets the customer-note-notify flag value for the order.
*
* @param int $customerNoteNotify
* @return $this
*/
public function setCustomerNoteNotify($customerNoteNotify);
/**
* Sets the billing address ID for the order.
*
* @param int $id
* @return $this
*/
public function setBillingAddressId($id);
/**
* Sets the customer group ID for the order.
*
* @param int $id
* @return $this
*/
public function setCustomerGroupId($id);
/**
* Sets the edit increment value for the order.
*
* @param int $editIncrement
* @return $this
*/
public function setEditIncrement($editIncrement);
/**
* Sets the email-sent flag value for the order.
*
* @param int $emailSent
* @return $this
*/
public function setEmailSent($emailSent);
/**
* Sets the forced-shipment-with-invoice flag value for the order.
*
* @param int $forcedShipmentWithInvoice
* @return $this
*/
public function setForcedShipmentWithInvoice($forcedShipmentWithInvoice);
/**
* Sets the payment authorization expiration date for the order.
*
* @param int $paymentAuthExpiration
* @return $this
*/
public function setPaymentAuthExpiration($paymentAuthExpiration);
/**
* Sets the quote address ID for the order.
*
* @param int $id
* @return $this
*/
public function setQuoteAddressId($id);
/**
* Sets the quote ID for the order.
*
* @param int $id
* @return $this
*/
public function setQuoteId($id);
/**
* Sets the negative adjustment value for the order.
*
* @param float $adjustmentNegative
* @return $this
*/
public function setAdjustmentNegative($adjustmentNegative);
/**
* Sets the positive adjustment value for the order.
*
* @param float $adjustmentPositive
* @return $this
*/
public function setAdjustmentPositive($adjustmentPositive);
/**
* Sets the base negative adjustment value for the order.
*
* @param float $baseAdjustmentNegative
* @return $this
*/
public function setBaseAdjustmentNegative($baseAdjustmentNegative);
/**
* Sets the base positive adjustment value for the order.
*
* @param float $baseAdjustmentPositive
* @return $this
*/
public function setBaseAdjustmentPositive($baseAdjustmentPositive);
/**
* Sets the base shipping discount amount for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseShippingDiscountAmount($amount);
/**
* Sets the base subtotal including tax for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseSubtotalInclTax($amount);
/**
* Sets the base total due for the order.
*
* @param float $baseTotalDue
* @return $this
*/
public function setBaseTotalDue($baseTotalDue);
/**
* Sets the payment authorization amount for the order.
*
* @param float $amount
* @return $this
*/
public function setPaymentAuthorizationAmount($amount);
/**
* Sets the shipping discount amount for the order.
*
* @param float $amount
* @return $this
*/
public function setShippingDiscountAmount($amount);
/**
* Sets the subtotal including tax amount for the order.
*
* @param float $amount
* @return $this
*/
public function setSubtotalInclTax($amount);
/**
* Sets the total due for the order.
*
* @param float $totalDue
* @return $this
*/
public function setTotalDue($totalDue);
/**
* Sets the weight for the order.
*
* @param float $weight
* @return $this
*/
public function setWeight($weight);
/**
* Sets the customer date-of-birth (DOB) for the order.
*
* @param string $customerDob
* @return $this
*/
public function setCustomerDob($customerDob);
/**
* Sets the increment ID for the order.
*
* @param string $id
* @return $this
*/
public function setIncrementId($id);
/**
* Sets the applied rule IDs for the order.
*
* @param string $appliedRuleIds
* @return $this
*/
public function setAppliedRuleIds($appliedRuleIds);
/**
* Sets the base currency code for the order.
*
* @param string $code
* @return $this
*/
public function setBaseCurrencyCode($code);
/**
* Sets the customer email address for the order.
*
* @param string $customerEmail
* @return $this
*/
public function setCustomerEmail($customerEmail);
/**
* Sets the customer first name for the order.
*
* @param string $customerFirstname
* @return $this
*/
public function setCustomerFirstname($customerFirstname);
/**
* Sets the customer last name for the order.
*
* @param string $customerLastname
* @return $this
*/
public function setCustomerLastname($customerLastname);
/**
* Sets the customer middle name for the order.
*
* @param string $customerMiddlename
* @return $this
*/
public function setCustomerMiddlename($customerMiddlename);
/**
* Sets the customer prefix for the order.
*
* @param string $customerPrefix
* @return $this
*/
public function setCustomerPrefix($customerPrefix);
/**
* Sets the customer suffix for the order.
*
* @param string $customerSuffix
* @return $this
*/
public function setCustomerSuffix($customerSuffix);
/**
* Sets the customer value-added tax (VAT) for the order.
*
* @param string $customerTaxvat
* @return $this
*/
public function setCustomerTaxvat($customerTaxvat);
/**
* Sets the discount description for the order.
*
* @param string $description
* @return $this
*/
public function setDiscountDescription($description);
/**
* Sets the external customer ID for the order.
*
* @param string $id
* @return $this
*/
public function setExtCustomerId($id);
/**
* Sets the external order ID for the order.
*
* @param string $id
* @return $this
*/
public function setExtOrderId($id);
/**
* Sets the global currency code for the order.
*
* @param string $code
* @return $this
*/
public function setGlobalCurrencyCode($code);
/**
* Sets the hold before state for the order.
*
* @param string $holdBeforeState
* @return $this
*/
public function setHoldBeforeState($holdBeforeState);
/**
* Sets the hold before status for the order.
*
* @param string $holdBeforeStatus
* @return $this
*/
public function setHoldBeforeStatus($holdBeforeStatus);
/**
* Sets the order currency code for the order.
*
* @param string $code
* @return $this
*/
public function setOrderCurrencyCode($code);
/**
* Sets the original increment ID for the order.
*
* @param string $id
* @return $this
*/
public function setOriginalIncrementId($id);
/**
* Sets the relation child ID for the order.
*
* @param string $id
* @return $this
*/
public function setRelationChildId($id);
/**
* Sets the relation child real ID for the order.
*
* @param string $realId
* @return $this
*/
public function setRelationChildRealId($realId);
/**
* Sets the relation parent ID for the order.
*
* @param string $id
* @return $this
*/
public function setRelationParentId($id);
/**
* Sets the relation parent real ID for the order.
*
* @param string $realId
* @return $this
*/
public function setRelationParentRealId($realId);
/**
* Sets the remote IP address for the order.
*
* @param string $remoteIp
* @return $this
*/
public function setRemoteIp($remoteIp);
/**
* Sets the store currency code for the order.
*
* @param string $code
* @return $this
*/
public function setStoreCurrencyCode($code);
/**
* Sets the store name for the order.
*
* @param string $storeName
* @return $this
*/
public function setStoreName($storeName);
/**
* Sets the X-Forwarded-For HTTP header field for the order.
*
* @param string $xForwardedFor
* @return $this
*/
public function setXForwardedFor($xForwardedFor);
/**
* Sets the customer note for the order.
*
* @param string $customerNote
* @return $this
*/
public function setCustomerNote($customerNote);
/**
* Sets the updated-at timestamp for the order.
*
* @param string $timestamp
* @return $this
*/
public function setUpdatedAt($timestamp);
/**
* Sets the total item count for the order.
*
* @param int $totalItemCount
* @return $this
*/
public function setTotalItemCount($totalItemCount);
/**
* Sets the customer gender for the order.
*
* @param int $customerGender
* @return $this
*/
public function setCustomerGender($customerGender);
/**
* Sets the discount tax compensation amount for the order.
*
* @param float $amount
* @return $this
*/
public function setDiscountTaxCompensationAmount($amount);
/**
* Sets the base discount tax compensation amount for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseDiscountTaxCompensationAmount($amount);
/**
* Sets the shipping discount tax compensation amount for the order.
*
* @param float $amount
* @return $this
*/
public function setShippingDiscountTaxCompensationAmount($amount);
/**
* Sets the base shipping discount tax compensation amount for the order.
*
* @param float $amnt
* @return $this
*/
public function setBaseShippingDiscountTaxCompensationAmnt($amnt);
/**
* Sets the discount tax compensation invoiced amount for the order.
*
* @param float $discountTaxCompensationInvoiced
* @return $this
*/
public function setDiscountTaxCompensationInvoiced($discountTaxCompensationInvoiced);
/**
* Sets the base discount tax compensation invoiced amount for the order.
*
* @param float $baseDiscountTaxCompensationInvoiced
* @return $this
*/
public function setBaseDiscountTaxCompensationInvoiced($baseDiscountTaxCompensationInvoiced);
/**
* Sets the discount tax compensation refunded amount for the order.
*
* @param float $discountTaxCompensationRefunded
* @return $this
*/
public function setDiscountTaxCompensationRefunded($discountTaxCompensationRefunded);
/**
* Sets the base discount tax compensation refunded amount for the order.
*
* @param float $baseDiscountTaxCompensationRefunded
* @return $this
*/
public function setBaseDiscountTaxCompensationRefunded($baseDiscountTaxCompensationRefunded);
/**
* Sets the shipping including tax amount for the order.
*
* @param float $amount
* @return $this
*/
public function setShippingInclTax($amount);
/**
* Sets the base shipping including tax for the order.
*
* @param float $amount
* @return $this
*/
public function setBaseShippingInclTax($amount);
/**
* Retrieve existing extension attributes object or create a new one.
*
* @return \Magento\Sales\Api\Data\OrderExtensionInterface|null
*/
public function getExtensionAttributes();
/**
* Set an extension attributes object.
*
* @param \Magento\Sales\Api\Data\OrderExtensionInterface $extensionAttributes
* @return $this
*/
public function setExtensionAttributes(\Magento\Sales\Api\Data\OrderExtensionInterface $extensionAttributes);
}