tradly 1.0.97 → 1.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NetworkManager/NetworkManager.js +4 -0
- package/Roots/App.js +126 -1
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export var TradlyConfig = {
|
|
|
26
26
|
authKey: "",
|
|
27
27
|
refreshKey: "",
|
|
28
28
|
currency: "",
|
|
29
|
+
language: "",
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
class NetworkManager {
|
|
@@ -42,6 +43,9 @@ class NetworkManager {
|
|
|
42
43
|
if (config.refreshKey != undefined || config.refreshKey == "") {
|
|
43
44
|
header["X-Refresh-Key"] = config.refreshKey;
|
|
44
45
|
}
|
|
46
|
+
if (config.language != undefined || config.language == "") {
|
|
47
|
+
header["X-Language"] = config.language;
|
|
48
|
+
}
|
|
45
49
|
const [err, response] = await to(
|
|
46
50
|
axios({
|
|
47
51
|
url: url,
|
package/Roots/App.js
CHANGED
|
@@ -83,6 +83,7 @@ class App {
|
|
|
83
83
|
method: Method.DELETE,
|
|
84
84
|
authKey: param.authKey,
|
|
85
85
|
currency: param.currency,
|
|
86
|
+
language: param.language,
|
|
86
87
|
});
|
|
87
88
|
if (error) {
|
|
88
89
|
return error;
|
|
@@ -115,6 +116,7 @@ class App {
|
|
|
115
116
|
method: Method.GET,
|
|
116
117
|
authKey: param.authKey,
|
|
117
118
|
currency: param.currency,
|
|
119
|
+
language: param.language,
|
|
118
120
|
});
|
|
119
121
|
if (error) {
|
|
120
122
|
return error;
|
|
@@ -133,6 +135,7 @@ class App {
|
|
|
133
135
|
method: Method.GET,
|
|
134
136
|
authKey: param.authKey,
|
|
135
137
|
currency: param.currency,
|
|
138
|
+
language: param.language,
|
|
136
139
|
});
|
|
137
140
|
if (error) {
|
|
138
141
|
return error;
|
|
@@ -151,6 +154,7 @@ class App {
|
|
|
151
154
|
method: Method.GET,
|
|
152
155
|
authKey: param.authKey,
|
|
153
156
|
currency: param.currency,
|
|
157
|
+
language: param.language,
|
|
154
158
|
});
|
|
155
159
|
if (error) {
|
|
156
160
|
return error;
|
|
@@ -169,6 +173,7 @@ class App {
|
|
|
169
173
|
param: param.data,
|
|
170
174
|
authKey: param.authKey,
|
|
171
175
|
currency: param.currency,
|
|
176
|
+
language: param.language,
|
|
172
177
|
});
|
|
173
178
|
if (error) {
|
|
174
179
|
return error;
|
|
@@ -187,6 +192,7 @@ class App {
|
|
|
187
192
|
param: param.data,
|
|
188
193
|
authKey: param.authKey,
|
|
189
194
|
currency: param.currency,
|
|
195
|
+
language: param.language,
|
|
190
196
|
});
|
|
191
197
|
if (error) {
|
|
192
198
|
return error;
|
|
@@ -204,6 +210,7 @@ class App {
|
|
|
204
210
|
method: Method.GET,
|
|
205
211
|
authKey: param.authKey,
|
|
206
212
|
currency: param.currency,
|
|
213
|
+
language: param.language,
|
|
207
214
|
});
|
|
208
215
|
if (error) {
|
|
209
216
|
return error;
|
|
@@ -224,6 +231,7 @@ class App {
|
|
|
224
231
|
method: Method.GET,
|
|
225
232
|
authKey: param.authKey,
|
|
226
233
|
currency: param.currency,
|
|
234
|
+
language: param.language,
|
|
227
235
|
});
|
|
228
236
|
if (error) {
|
|
229
237
|
return error;
|
|
@@ -242,6 +250,7 @@ class App {
|
|
|
242
250
|
method: Method.GET,
|
|
243
251
|
authKey: param.authKey,
|
|
244
252
|
currency: param.currency,
|
|
253
|
+
language: param.language,
|
|
245
254
|
});
|
|
246
255
|
if (error) {
|
|
247
256
|
return error;
|
|
@@ -262,6 +271,7 @@ class App {
|
|
|
262
271
|
param: param.data,
|
|
263
272
|
authKey: param.authKey,
|
|
264
273
|
currency: param.currency,
|
|
274
|
+
language: param.language,
|
|
265
275
|
});
|
|
266
276
|
if (error) {
|
|
267
277
|
return error;
|
|
@@ -295,6 +305,7 @@ class App {
|
|
|
295
305
|
param: param.data,
|
|
296
306
|
authKey: param.authKey,
|
|
297
307
|
currency: param.currency,
|
|
308
|
+
language: param.language,
|
|
298
309
|
});
|
|
299
310
|
if (error) {
|
|
300
311
|
return error;
|
|
@@ -314,6 +325,7 @@ class App {
|
|
|
314
325
|
method: Method.GET,
|
|
315
326
|
authKey: param.authKey,
|
|
316
327
|
currency: param.currency,
|
|
328
|
+
language: param.language,
|
|
317
329
|
});
|
|
318
330
|
if (error) {
|
|
319
331
|
return error;
|
|
@@ -341,6 +353,7 @@ class App {
|
|
|
341
353
|
param: param.data,
|
|
342
354
|
authKey: param.authKey,
|
|
343
355
|
currency: param.currency,
|
|
356
|
+
language: param.language,
|
|
344
357
|
});
|
|
345
358
|
if (error) {
|
|
346
359
|
return error;
|
|
@@ -362,6 +375,7 @@ class App {
|
|
|
362
375
|
method: Method.GET,
|
|
363
376
|
authKey: param.authKey,
|
|
364
377
|
currency: param.currency,
|
|
378
|
+
language: param.language,
|
|
365
379
|
});
|
|
366
380
|
if (error) {
|
|
367
381
|
return error;
|
|
@@ -384,6 +398,7 @@ class App {
|
|
|
384
398
|
method: Method.GET,
|
|
385
399
|
authKey: param.authKey,
|
|
386
400
|
currency: param.currency,
|
|
401
|
+
language: param.language,
|
|
387
402
|
});
|
|
388
403
|
if (error) {
|
|
389
404
|
return error;
|
|
@@ -405,6 +420,7 @@ class App {
|
|
|
405
420
|
method: Method.GET,
|
|
406
421
|
authKey: param.authKey,
|
|
407
422
|
currency: param.currency,
|
|
423
|
+
language: param.language,
|
|
408
424
|
});
|
|
409
425
|
if (error) {
|
|
410
426
|
return error;
|
|
@@ -424,6 +440,7 @@ class App {
|
|
|
424
440
|
method: Method.GET,
|
|
425
441
|
authKey: param.authKey,
|
|
426
442
|
currency: param.currency,
|
|
443
|
+
language: param.language,
|
|
427
444
|
});
|
|
428
445
|
if (error) {
|
|
429
446
|
return error;
|
|
@@ -442,6 +459,7 @@ class App {
|
|
|
442
459
|
method: Method.GET,
|
|
443
460
|
authKey: param.authKey,
|
|
444
461
|
currency: param.currency,
|
|
462
|
+
language: param.language,
|
|
445
463
|
});
|
|
446
464
|
if (error) {
|
|
447
465
|
return error;
|
|
@@ -459,6 +477,7 @@ class App {
|
|
|
459
477
|
method: Method.DELETE,
|
|
460
478
|
authKey: param.authKey,
|
|
461
479
|
currency: param.currency,
|
|
480
|
+
language: param.language,
|
|
462
481
|
});
|
|
463
482
|
if (error) {
|
|
464
483
|
return error;
|
|
@@ -478,6 +497,7 @@ class App {
|
|
|
478
497
|
method: Method.GET,
|
|
479
498
|
authKey: param.authKey,
|
|
480
499
|
currency: param.currency,
|
|
500
|
+
language: param.language,
|
|
481
501
|
});
|
|
482
502
|
if (error) {
|
|
483
503
|
return error;
|
|
@@ -506,6 +526,7 @@ class App {
|
|
|
506
526
|
method: Method.GET,
|
|
507
527
|
authKey: param.authKey,
|
|
508
528
|
currency: param.currency,
|
|
529
|
+
language: param.language,
|
|
509
530
|
});
|
|
510
531
|
if (error) {
|
|
511
532
|
return error;
|
|
@@ -532,6 +553,7 @@ class App {
|
|
|
532
553
|
method: method,
|
|
533
554
|
authKey: param.authKey,
|
|
534
555
|
currency: param.currency,
|
|
556
|
+
language: param.language,
|
|
535
557
|
param: param.data,
|
|
536
558
|
});
|
|
537
559
|
if (error) {
|
|
@@ -553,6 +575,7 @@ class App {
|
|
|
553
575
|
method: method,
|
|
554
576
|
authKey: param.authKey,
|
|
555
577
|
currency: param.currency,
|
|
578
|
+
language: param.language,
|
|
556
579
|
param: param.data,
|
|
557
580
|
});
|
|
558
581
|
if (error) {
|
|
@@ -576,6 +599,7 @@ class App {
|
|
|
576
599
|
method: method,
|
|
577
600
|
authKey: param.authKey,
|
|
578
601
|
currency: param.currency,
|
|
602
|
+
language: param.language,
|
|
579
603
|
});
|
|
580
604
|
if (error) {
|
|
581
605
|
return error;
|
|
@@ -595,6 +619,7 @@ class App {
|
|
|
595
619
|
method: method,
|
|
596
620
|
authKey: param.authKey,
|
|
597
621
|
currency: param.currency,
|
|
622
|
+
language: param.language,
|
|
598
623
|
});
|
|
599
624
|
if (error) {
|
|
600
625
|
return error;
|
|
@@ -614,6 +639,7 @@ class App {
|
|
|
614
639
|
method: method,
|
|
615
640
|
authKey: param.authKey,
|
|
616
641
|
currency: param.currency,
|
|
642
|
+
language: param.language,
|
|
617
643
|
param: param.data,
|
|
618
644
|
});
|
|
619
645
|
if (error) {
|
|
@@ -633,6 +659,7 @@ class App {
|
|
|
633
659
|
method: Method.GET,
|
|
634
660
|
authKey: param.authKey,
|
|
635
661
|
currency: param.currency,
|
|
662
|
+
language: param.language,
|
|
636
663
|
});
|
|
637
664
|
if (error) {
|
|
638
665
|
return error;
|
|
@@ -651,6 +678,7 @@ class App {
|
|
|
651
678
|
method: Method.GET,
|
|
652
679
|
authKey: param.authKey,
|
|
653
680
|
currency: param.currency,
|
|
681
|
+
language: param.language,
|
|
654
682
|
});
|
|
655
683
|
if (error) {
|
|
656
684
|
return error;
|
|
@@ -673,6 +701,7 @@ class App {
|
|
|
673
701
|
method: Method.GET,
|
|
674
702
|
authKey: param.authKey,
|
|
675
703
|
currency: param.currency,
|
|
704
|
+
language: param.language,
|
|
676
705
|
});
|
|
677
706
|
if (error) {
|
|
678
707
|
return error;
|
|
@@ -694,6 +723,7 @@ class App {
|
|
|
694
723
|
method: Method.GET,
|
|
695
724
|
authKey: param.authKey,
|
|
696
725
|
currency: param.currency,
|
|
726
|
+
language: param.language,
|
|
697
727
|
});
|
|
698
728
|
if (error) {
|
|
699
729
|
return error;
|
|
@@ -722,6 +752,7 @@ class App {
|
|
|
722
752
|
method: Method.GET,
|
|
723
753
|
authKey: param.authKey,
|
|
724
754
|
currency: param.currency,
|
|
755
|
+
language: param.language,
|
|
725
756
|
});
|
|
726
757
|
if (error) {
|
|
727
758
|
return error;
|
|
@@ -746,6 +777,7 @@ class App {
|
|
|
746
777
|
method: Method.DELETE,
|
|
747
778
|
authKey: param.authKey,
|
|
748
779
|
currency: param.currency,
|
|
780
|
+
language: param.language,
|
|
749
781
|
});
|
|
750
782
|
if (error) {
|
|
751
783
|
return error;
|
|
@@ -771,6 +803,7 @@ class App {
|
|
|
771
803
|
method: method,
|
|
772
804
|
authKey: param.authKey,
|
|
773
805
|
currency: param.currency,
|
|
806
|
+
language: param.language,
|
|
774
807
|
param: param.data,
|
|
775
808
|
});
|
|
776
809
|
if (error) {
|
|
@@ -791,6 +824,7 @@ class App {
|
|
|
791
824
|
method: method,
|
|
792
825
|
authKey: param.authKey,
|
|
793
826
|
currency: param.currency,
|
|
827
|
+
language: param.language,
|
|
794
828
|
});
|
|
795
829
|
if (error) {
|
|
796
830
|
return error;
|
|
@@ -812,6 +846,7 @@ class App {
|
|
|
812
846
|
method: Method.GET,
|
|
813
847
|
authKey: param.authKey,
|
|
814
848
|
currency: param.currency,
|
|
849
|
+
language: param.language,
|
|
815
850
|
});
|
|
816
851
|
if (error) {
|
|
817
852
|
return error;
|
|
@@ -831,6 +866,7 @@ class App {
|
|
|
831
866
|
method: method,
|
|
832
867
|
authKey: param.authKey,
|
|
833
868
|
currency: param.currency,
|
|
869
|
+
language: param.language,
|
|
834
870
|
param: param.data,
|
|
835
871
|
});
|
|
836
872
|
if (error) {
|
|
@@ -853,6 +889,7 @@ class App {
|
|
|
853
889
|
method: param.Method,
|
|
854
890
|
authKey: param.authKey,
|
|
855
891
|
currency: param.currency,
|
|
892
|
+
language: param.language,
|
|
856
893
|
param: param.data,
|
|
857
894
|
});
|
|
858
895
|
if (error) {
|
|
@@ -872,6 +909,7 @@ class App {
|
|
|
872
909
|
method: Method.GET,
|
|
873
910
|
authKey: param.authKey,
|
|
874
911
|
currency: param.currency,
|
|
912
|
+
language: param.language,
|
|
875
913
|
});
|
|
876
914
|
if (error) {
|
|
877
915
|
return error;
|
|
@@ -891,6 +929,7 @@ class App {
|
|
|
891
929
|
method: Method.PUT,
|
|
892
930
|
authKey: param.authKey,
|
|
893
931
|
currency: param.currency,
|
|
932
|
+
language: param.language,
|
|
894
933
|
param: param.data,
|
|
895
934
|
});
|
|
896
935
|
if (error) {
|
|
@@ -914,6 +953,7 @@ class App {
|
|
|
914
953
|
method: Method.GET,
|
|
915
954
|
authKey: param.authKey,
|
|
916
955
|
currency: param.currency,
|
|
956
|
+
language: param.language,
|
|
917
957
|
});
|
|
918
958
|
if (error) {
|
|
919
959
|
return error;
|
|
@@ -932,6 +972,7 @@ class App {
|
|
|
932
972
|
method: Method.GET,
|
|
933
973
|
authKey: param.authKey,
|
|
934
974
|
currency: param.currency,
|
|
975
|
+
language: param.language,
|
|
935
976
|
});
|
|
936
977
|
if (error) {
|
|
937
978
|
return error;
|
|
@@ -949,6 +990,7 @@ class App {
|
|
|
949
990
|
method: Method.GET,
|
|
950
991
|
authKey: param.authKey,
|
|
951
992
|
currency: param.currency,
|
|
993
|
+
language: param.language,
|
|
952
994
|
});
|
|
953
995
|
if (error) {
|
|
954
996
|
return error;
|
|
@@ -972,6 +1014,7 @@ class App {
|
|
|
972
1014
|
method: Method.GET,
|
|
973
1015
|
authKey: param.authKey,
|
|
974
1016
|
currency: param.currency,
|
|
1017
|
+
language: param.language,
|
|
975
1018
|
});
|
|
976
1019
|
if (error) {
|
|
977
1020
|
return error;
|
|
@@ -1001,6 +1044,7 @@ class App {
|
|
|
1001
1044
|
param: param.data,
|
|
1002
1045
|
authKey: param.authKey,
|
|
1003
1046
|
currency: param.currency,
|
|
1047
|
+
language: param.language,
|
|
1004
1048
|
});
|
|
1005
1049
|
if (error) {
|
|
1006
1050
|
return error;
|
|
@@ -1023,6 +1067,7 @@ class App {
|
|
|
1023
1067
|
method: Method.DELETE,
|
|
1024
1068
|
authKey: param.authKey,
|
|
1025
1069
|
currency: param.currency,
|
|
1070
|
+
language: param.language,
|
|
1026
1071
|
});
|
|
1027
1072
|
if (error) {
|
|
1028
1073
|
return error;
|
|
@@ -1041,6 +1086,7 @@ class App {
|
|
|
1041
1086
|
method: Method.GET,
|
|
1042
1087
|
authKey: param.authKey,
|
|
1043
1088
|
currency: param.currency,
|
|
1089
|
+
language: param.language,
|
|
1044
1090
|
});
|
|
1045
1091
|
if (error) {
|
|
1046
1092
|
return error;
|
|
@@ -1067,6 +1113,7 @@ class App {
|
|
|
1067
1113
|
param: param.data,
|
|
1068
1114
|
authKey: param.authKey,
|
|
1069
1115
|
currency: param.currency,
|
|
1116
|
+
language: param.language,
|
|
1070
1117
|
});
|
|
1071
1118
|
if (error) {
|
|
1072
1119
|
return error;
|
|
@@ -1085,6 +1132,7 @@ class App {
|
|
|
1085
1132
|
method: Method.DELETE,
|
|
1086
1133
|
authKey: param.authKey,
|
|
1087
1134
|
currency: param.currency,
|
|
1135
|
+
language: param.language,
|
|
1088
1136
|
});
|
|
1089
1137
|
if (error) {
|
|
1090
1138
|
return error;
|
|
@@ -1104,6 +1152,7 @@ class App {
|
|
|
1104
1152
|
method: Method.GET,
|
|
1105
1153
|
authKey: param.authKey,
|
|
1106
1154
|
currency: param.currency,
|
|
1155
|
+
language: param.language,
|
|
1107
1156
|
});
|
|
1108
1157
|
if (error) {
|
|
1109
1158
|
return error;
|
|
@@ -1126,6 +1175,7 @@ class App {
|
|
|
1126
1175
|
method: Method.GET,
|
|
1127
1176
|
authKey: param.authKey,
|
|
1128
1177
|
currency: param.currency,
|
|
1178
|
+
language: param.language,
|
|
1129
1179
|
});
|
|
1130
1180
|
if (error) {
|
|
1131
1181
|
return error;
|
|
@@ -1155,6 +1205,7 @@ class App {
|
|
|
1155
1205
|
param: param.data,
|
|
1156
1206
|
authKey: param.authKey,
|
|
1157
1207
|
currency: param.currency,
|
|
1208
|
+
language: param.language,
|
|
1158
1209
|
});
|
|
1159
1210
|
if (error) {
|
|
1160
1211
|
return error;
|
|
@@ -1177,6 +1228,7 @@ class App {
|
|
|
1177
1228
|
method: Method.DELETE,
|
|
1178
1229
|
authKey: param.authKey,
|
|
1179
1230
|
currency: param.currency,
|
|
1231
|
+
language: param.language,
|
|
1180
1232
|
});
|
|
1181
1233
|
if (error) {
|
|
1182
1234
|
return error;
|
|
@@ -1199,6 +1251,7 @@ class App {
|
|
|
1199
1251
|
method: Method.GET,
|
|
1200
1252
|
authKey: param.authKey,
|
|
1201
1253
|
currency: param.currency,
|
|
1254
|
+
language: param.language,
|
|
1202
1255
|
});
|
|
1203
1256
|
if (error) {
|
|
1204
1257
|
return error;
|
|
@@ -1225,6 +1278,7 @@ class App {
|
|
|
1225
1278
|
param: param.data,
|
|
1226
1279
|
authKey: param.authKey,
|
|
1227
1280
|
currency: param.currency,
|
|
1281
|
+
language: param.language,
|
|
1228
1282
|
});
|
|
1229
1283
|
if (error) {
|
|
1230
1284
|
return error;
|
|
@@ -1242,6 +1296,7 @@ class App {
|
|
|
1242
1296
|
method: Method.DELETE,
|
|
1243
1297
|
authKey: param.authKey,
|
|
1244
1298
|
currency: param.currency,
|
|
1299
|
+
language: param.language,
|
|
1245
1300
|
});
|
|
1246
1301
|
if (error) {
|
|
1247
1302
|
return error;
|
|
@@ -1265,6 +1320,7 @@ class App {
|
|
|
1265
1320
|
method: Method.GET,
|
|
1266
1321
|
authKey: param.authKey,
|
|
1267
1322
|
currency: param.currency,
|
|
1323
|
+
language: param.language,
|
|
1268
1324
|
});
|
|
1269
1325
|
if (error) {
|
|
1270
1326
|
return error;
|
|
@@ -1291,6 +1347,7 @@ class App {
|
|
|
1291
1347
|
param: param.data,
|
|
1292
1348
|
authKey: param.authKey,
|
|
1293
1349
|
currency: param.currency,
|
|
1350
|
+
language: param.language,
|
|
1294
1351
|
});
|
|
1295
1352
|
if (error) {
|
|
1296
1353
|
return error;
|
|
@@ -1308,6 +1365,7 @@ class App {
|
|
|
1308
1365
|
method: Method.DELETE,
|
|
1309
1366
|
authKey: param.authKey,
|
|
1310
1367
|
currency: param.currency,
|
|
1368
|
+
language: param.language,
|
|
1311
1369
|
});
|
|
1312
1370
|
if (error) {
|
|
1313
1371
|
return error;
|
|
@@ -1327,6 +1385,7 @@ class App {
|
|
|
1327
1385
|
method: Method.GET,
|
|
1328
1386
|
authKey: param.authKey,
|
|
1329
1387
|
currency: param.currency,
|
|
1388
|
+
language: param.language,
|
|
1330
1389
|
});
|
|
1331
1390
|
if (error) {
|
|
1332
1391
|
return error;
|
|
@@ -1346,6 +1405,7 @@ class App {
|
|
|
1346
1405
|
method: Method.GET,
|
|
1347
1406
|
authKey: param.authKey,
|
|
1348
1407
|
currency: param.currency,
|
|
1408
|
+
language: param.language,
|
|
1349
1409
|
});
|
|
1350
1410
|
if (error) {
|
|
1351
1411
|
return error;
|
|
@@ -1375,6 +1435,7 @@ class App {
|
|
|
1375
1435
|
param: param.data,
|
|
1376
1436
|
authKey: param.authKey,
|
|
1377
1437
|
currency: param.currency,
|
|
1438
|
+
language: param.language,
|
|
1378
1439
|
});
|
|
1379
1440
|
if (error) {
|
|
1380
1441
|
return error;
|
|
@@ -1394,6 +1455,7 @@ class App {
|
|
|
1394
1455
|
method: Method.DELETE,
|
|
1395
1456
|
authKey: param.authKey,
|
|
1396
1457
|
currency: param.currency,
|
|
1458
|
+
language: param.language,
|
|
1397
1459
|
});
|
|
1398
1460
|
if (error) {
|
|
1399
1461
|
return error;
|
|
@@ -1413,6 +1475,7 @@ class App {
|
|
|
1413
1475
|
param: param.data,
|
|
1414
1476
|
authKey: param.authKey,
|
|
1415
1477
|
currency: param.currency,
|
|
1478
|
+
language: param.language,
|
|
1416
1479
|
});
|
|
1417
1480
|
if (error) {
|
|
1418
1481
|
return error;
|
|
@@ -1431,6 +1494,7 @@ class App {
|
|
|
1431
1494
|
param: param.data,
|
|
1432
1495
|
authKey: param.authKey,
|
|
1433
1496
|
currency: param.currency,
|
|
1497
|
+
language: param.language,
|
|
1434
1498
|
});
|
|
1435
1499
|
if (error) {
|
|
1436
1500
|
return error;
|
|
@@ -1452,6 +1516,7 @@ class App {
|
|
|
1452
1516
|
method: Method.GET,
|
|
1453
1517
|
authKey: param.authKey,
|
|
1454
1518
|
currency: param.currency,
|
|
1519
|
+
language: param.language,
|
|
1455
1520
|
});
|
|
1456
1521
|
if (error) {
|
|
1457
1522
|
return error;
|
|
@@ -1469,6 +1534,7 @@ class App {
|
|
|
1469
1534
|
method: Method.DELETE,
|
|
1470
1535
|
authKey: param.authKey,
|
|
1471
1536
|
currency: param.currency,
|
|
1537
|
+
language: param.language,
|
|
1472
1538
|
});
|
|
1473
1539
|
if (error) {
|
|
1474
1540
|
return error;
|
|
@@ -1486,6 +1552,7 @@ class App {
|
|
|
1486
1552
|
method: Method.POST,
|
|
1487
1553
|
authKey: param.authKey,
|
|
1488
1554
|
currency: param.currency,
|
|
1555
|
+
language: param.language,
|
|
1489
1556
|
param: param.data,
|
|
1490
1557
|
});
|
|
1491
1558
|
if (error) {
|
|
@@ -1504,6 +1571,7 @@ class App {
|
|
|
1504
1571
|
method: Method.POST,
|
|
1505
1572
|
authKey: param.authKey,
|
|
1506
1573
|
currency: param.currency,
|
|
1574
|
+
language: param.language,
|
|
1507
1575
|
param: param.data,
|
|
1508
1576
|
});
|
|
1509
1577
|
if (error) {
|
|
@@ -1522,6 +1590,7 @@ class App {
|
|
|
1522
1590
|
method: Method.POST,
|
|
1523
1591
|
authKey: param.authKey,
|
|
1524
1592
|
currency: param.currency,
|
|
1593
|
+
language: param.language,
|
|
1525
1594
|
param: param.data,
|
|
1526
1595
|
});
|
|
1527
1596
|
if (error) {
|
|
@@ -1540,6 +1609,7 @@ class App {
|
|
|
1540
1609
|
method: Method.POST,
|
|
1541
1610
|
authKey: param.authKey,
|
|
1542
1611
|
currency: param.currency,
|
|
1612
|
+
language: param.language,
|
|
1543
1613
|
param: param.data,
|
|
1544
1614
|
});
|
|
1545
1615
|
if (error) {
|
|
@@ -1560,6 +1630,7 @@ class App {
|
|
|
1560
1630
|
param: param.data,
|
|
1561
1631
|
authKey: param.authKey,
|
|
1562
1632
|
currency: param.currency,
|
|
1633
|
+
language: param.language,
|
|
1563
1634
|
});
|
|
1564
1635
|
if (error) {
|
|
1565
1636
|
return error;
|
|
@@ -1578,6 +1649,7 @@ class App {
|
|
|
1578
1649
|
param: param.data,
|
|
1579
1650
|
authKey: param.authKey,
|
|
1580
1651
|
currency: param.currency,
|
|
1652
|
+
language: param.language,
|
|
1581
1653
|
});
|
|
1582
1654
|
if (error) {
|
|
1583
1655
|
return error;
|
|
@@ -1597,6 +1669,7 @@ class App {
|
|
|
1597
1669
|
method: Method.GET,
|
|
1598
1670
|
authKey: param.authKey,
|
|
1599
1671
|
currency: param.currency,
|
|
1672
|
+
language: param.language,
|
|
1600
1673
|
});
|
|
1601
1674
|
if (error) {
|
|
1602
1675
|
return error;
|
|
@@ -1614,6 +1687,7 @@ class App {
|
|
|
1614
1687
|
method: Method.POST,
|
|
1615
1688
|
authKey: param.authKey,
|
|
1616
1689
|
currency: param.currency,
|
|
1690
|
+
language: param.language,
|
|
1617
1691
|
param: param.data,
|
|
1618
1692
|
});
|
|
1619
1693
|
if (error) {
|
|
@@ -1632,6 +1706,7 @@ class App {
|
|
|
1632
1706
|
method: Method.POST,
|
|
1633
1707
|
authKey: param.authKey,
|
|
1634
1708
|
currency: param.currency,
|
|
1709
|
+
language: param.language,
|
|
1635
1710
|
param: param.data,
|
|
1636
1711
|
});
|
|
1637
1712
|
if (error) {
|
|
@@ -1655,6 +1730,7 @@ class App {
|
|
|
1655
1730
|
method: Method.GET,
|
|
1656
1731
|
authKey: param.authKey,
|
|
1657
1732
|
currency: param.currency,
|
|
1733
|
+
language: param.language,
|
|
1658
1734
|
});
|
|
1659
1735
|
if (error) {
|
|
1660
1736
|
return error;
|
|
@@ -1676,6 +1752,7 @@ class App {
|
|
|
1676
1752
|
method: Method.GET,
|
|
1677
1753
|
authKey: param.authKey,
|
|
1678
1754
|
currency: param.currency,
|
|
1755
|
+
language: param.language,
|
|
1679
1756
|
});
|
|
1680
1757
|
if (error) {
|
|
1681
1758
|
return error;
|
|
@@ -1697,6 +1774,7 @@ class App {
|
|
|
1697
1774
|
method: Method.PATCH,
|
|
1698
1775
|
authKey: param.authKey,
|
|
1699
1776
|
currency: param.currency,
|
|
1777
|
+
language: param.language,
|
|
1700
1778
|
param: param.data,
|
|
1701
1779
|
});
|
|
1702
1780
|
if (error) {
|
|
@@ -1725,6 +1803,7 @@ class App {
|
|
|
1725
1803
|
method: Method.PATCH,
|
|
1726
1804
|
authKey: param.authKey,
|
|
1727
1805
|
currency: param.currency,
|
|
1806
|
+
language: param.language,
|
|
1728
1807
|
param: param.data,
|
|
1729
1808
|
});
|
|
1730
1809
|
if (error) {
|
|
@@ -1747,6 +1826,7 @@ class App {
|
|
|
1747
1826
|
method: Method.PATCH,
|
|
1748
1827
|
authKey: param.authKey,
|
|
1749
1828
|
currency: param.currency,
|
|
1829
|
+
language: param.language,
|
|
1750
1830
|
param: param.data,
|
|
1751
1831
|
});
|
|
1752
1832
|
if (error) {
|
|
@@ -1769,11 +1849,12 @@ class App {
|
|
|
1769
1849
|
const [error, responseJson] = await network.networkCall({
|
|
1770
1850
|
path:
|
|
1771
1851
|
ORDERS +
|
|
1772
|
-
`/${param.order_id}/shipments/${shipment_id}` +
|
|
1852
|
+
`/${param.order_id}/shipments/${param.shipment_id}` +
|
|
1773
1853
|
url,
|
|
1774
1854
|
method: Method.PATCH,
|
|
1775
1855
|
authKey: param.authKey,
|
|
1776
1856
|
currency: param.currency,
|
|
1857
|
+
language: param.language,
|
|
1777
1858
|
param: param.data,
|
|
1778
1859
|
});
|
|
1779
1860
|
if (error) {
|
|
@@ -1796,6 +1877,7 @@ class App {
|
|
|
1796
1877
|
method: Method.GET,
|
|
1797
1878
|
authKey: param.authKey,
|
|
1798
1879
|
currency: param.currency,
|
|
1880
|
+
language: param.language,
|
|
1799
1881
|
});
|
|
1800
1882
|
if (error) {
|
|
1801
1883
|
return error;
|
|
@@ -1813,6 +1895,7 @@ class App {
|
|
|
1813
1895
|
method: Method.POST,
|
|
1814
1896
|
authKey: param.authKey,
|
|
1815
1897
|
currency: param.currency,
|
|
1898
|
+
language: param.language,
|
|
1816
1899
|
param: param.data,
|
|
1817
1900
|
});
|
|
1818
1901
|
if (error) {
|
|
@@ -1831,6 +1914,7 @@ class App {
|
|
|
1831
1914
|
method: Method.PATCH,
|
|
1832
1915
|
authKey: param.authKey,
|
|
1833
1916
|
currency: param.currency,
|
|
1917
|
+
language: param.language,
|
|
1834
1918
|
param: param.data,
|
|
1835
1919
|
});
|
|
1836
1920
|
if (error) {
|
|
@@ -1849,6 +1933,7 @@ class App {
|
|
|
1849
1933
|
method: Method.GET,
|
|
1850
1934
|
authKey: param.authKey,
|
|
1851
1935
|
currency: param.currency,
|
|
1936
|
+
language: param.language,
|
|
1852
1937
|
});
|
|
1853
1938
|
if (error) {
|
|
1854
1939
|
return error;
|
|
@@ -1869,6 +1954,7 @@ class App {
|
|
|
1869
1954
|
method: Method.GET,
|
|
1870
1955
|
authKey: param.authKey,
|
|
1871
1956
|
currency: param.currency,
|
|
1957
|
+
language: param.language,
|
|
1872
1958
|
});
|
|
1873
1959
|
if (error) {
|
|
1874
1960
|
return error;
|
|
@@ -1911,6 +1997,7 @@ class App {
|
|
|
1911
1997
|
method: method,
|
|
1912
1998
|
authKey: param.authKey,
|
|
1913
1999
|
currency: param.currency,
|
|
2000
|
+
language: param.language,
|
|
1914
2001
|
param: param.data,
|
|
1915
2002
|
});
|
|
1916
2003
|
if (error) {
|
|
@@ -1929,6 +2016,7 @@ class App {
|
|
|
1929
2016
|
method: Method.DELETE,
|
|
1930
2017
|
authKey: param.authKey,
|
|
1931
2018
|
currency: param.currency,
|
|
2019
|
+
language: param.language,
|
|
1932
2020
|
});
|
|
1933
2021
|
if (error) {
|
|
1934
2022
|
return error;
|
|
@@ -1947,6 +2035,7 @@ class App {
|
|
|
1947
2035
|
method: Method.GET,
|
|
1948
2036
|
authKey: param.authKey,
|
|
1949
2037
|
currency: param.currency,
|
|
2038
|
+
language: param.language,
|
|
1950
2039
|
});
|
|
1951
2040
|
if (error) {
|
|
1952
2041
|
return error;
|
|
@@ -1964,6 +2053,7 @@ class App {
|
|
|
1964
2053
|
method: Method.GET,
|
|
1965
2054
|
authKey: param.authKey,
|
|
1966
2055
|
currency: param.currency,
|
|
2056
|
+
language: param.language,
|
|
1967
2057
|
});
|
|
1968
2058
|
if (error) {
|
|
1969
2059
|
return error;
|
|
@@ -1989,6 +2079,7 @@ class App {
|
|
|
1989
2079
|
method: method,
|
|
1990
2080
|
authKey: param.authKey,
|
|
1991
2081
|
currency: param.currency,
|
|
2082
|
+
language: param.language,
|
|
1992
2083
|
param: param.data,
|
|
1993
2084
|
});
|
|
1994
2085
|
if (error) {
|
|
@@ -2007,6 +2098,7 @@ class App {
|
|
|
2007
2098
|
method: Method.DELETE,
|
|
2008
2099
|
authKey: param.authKey,
|
|
2009
2100
|
currency: param.currency,
|
|
2101
|
+
language: param.language,
|
|
2010
2102
|
});
|
|
2011
2103
|
if (error) {
|
|
2012
2104
|
return error;
|
|
@@ -2029,6 +2121,7 @@ class App {
|
|
|
2029
2121
|
method: Method.GET,
|
|
2030
2122
|
authKey: param.authKey,
|
|
2031
2123
|
currency: param.currency,
|
|
2124
|
+
language: param.language,
|
|
2032
2125
|
});
|
|
2033
2126
|
if (error) {
|
|
2034
2127
|
return error;
|
|
@@ -2054,6 +2147,7 @@ class App {
|
|
|
2054
2147
|
method: method,
|
|
2055
2148
|
authKey: param.authKey,
|
|
2056
2149
|
currency: param.currency,
|
|
2150
|
+
language: param.language,
|
|
2057
2151
|
param: param.data,
|
|
2058
2152
|
});
|
|
2059
2153
|
if (error) {
|
|
@@ -2072,6 +2166,7 @@ class App {
|
|
|
2072
2166
|
method: Method.DELETE,
|
|
2073
2167
|
authKey: param.authKey,
|
|
2074
2168
|
currency: param.currency,
|
|
2169
|
+
language: param.language,
|
|
2075
2170
|
});
|
|
2076
2171
|
if (error) {
|
|
2077
2172
|
return error;
|
|
@@ -2094,6 +2189,7 @@ class App {
|
|
|
2094
2189
|
method: Method.GET,
|
|
2095
2190
|
authKey: param.authKey,
|
|
2096
2191
|
currency: param.currency,
|
|
2192
|
+
language: param.language,
|
|
2097
2193
|
});
|
|
2098
2194
|
if (error) {
|
|
2099
2195
|
return error;
|
|
@@ -2115,6 +2211,7 @@ class App {
|
|
|
2115
2211
|
method: Method.GET,
|
|
2116
2212
|
authKey: param.authKey,
|
|
2117
2213
|
currency: param.currency,
|
|
2214
|
+
language: param.language,
|
|
2118
2215
|
});
|
|
2119
2216
|
if (error) {
|
|
2120
2217
|
return error;
|
|
@@ -2137,6 +2234,7 @@ class App {
|
|
|
2137
2234
|
method: Method.GET,
|
|
2138
2235
|
authKey: param.authKey,
|
|
2139
2236
|
currency: param.currency,
|
|
2237
|
+
language: param.language,
|
|
2140
2238
|
});
|
|
2141
2239
|
if (error) {
|
|
2142
2240
|
return error;
|
|
@@ -2154,6 +2252,7 @@ class App {
|
|
|
2154
2252
|
method: Method.GET,
|
|
2155
2253
|
authKey: param.authKey,
|
|
2156
2254
|
currency: param.currency,
|
|
2255
|
+
language: param.language,
|
|
2157
2256
|
});
|
|
2158
2257
|
if (error) {
|
|
2159
2258
|
return error;
|
|
@@ -2171,6 +2270,7 @@ class App {
|
|
|
2171
2270
|
method: Method.GET,
|
|
2172
2271
|
authKey: param.authKey,
|
|
2173
2272
|
currency: param.currency,
|
|
2273
|
+
language: param.language,
|
|
2174
2274
|
});
|
|
2175
2275
|
if (error) {
|
|
2176
2276
|
return error;
|
|
@@ -2196,6 +2296,7 @@ class App {
|
|
|
2196
2296
|
method: method,
|
|
2197
2297
|
authKey: param.authKey,
|
|
2198
2298
|
currency: param.currency,
|
|
2299
|
+
language: param.language,
|
|
2199
2300
|
param: param.data,
|
|
2200
2301
|
});
|
|
2201
2302
|
if (error) {
|
|
@@ -2214,6 +2315,7 @@ class App {
|
|
|
2214
2315
|
method: Method.DELETE,
|
|
2215
2316
|
authKey: param.authKey,
|
|
2216
2317
|
currency: param.currency,
|
|
2318
|
+
language: param.language,
|
|
2217
2319
|
});
|
|
2218
2320
|
if (error) {
|
|
2219
2321
|
return error;
|
|
@@ -2237,6 +2339,7 @@ class App {
|
|
|
2237
2339
|
method: Method.GET,
|
|
2238
2340
|
authKey: param.authKey,
|
|
2239
2341
|
currency: param.currency,
|
|
2342
|
+
language: param.language,
|
|
2240
2343
|
});
|
|
2241
2344
|
if (error) {
|
|
2242
2345
|
return error;
|
|
@@ -2259,6 +2362,7 @@ class App {
|
|
|
2259
2362
|
method: Method.GET,
|
|
2260
2363
|
authKey: param.authKey,
|
|
2261
2364
|
currency: param.currency,
|
|
2365
|
+
language: param.language,
|
|
2262
2366
|
});
|
|
2263
2367
|
if (error) {
|
|
2264
2368
|
return error;
|
|
@@ -2281,6 +2385,7 @@ class App {
|
|
|
2281
2385
|
method: Method.GET,
|
|
2282
2386
|
authKey: param.authKey,
|
|
2283
2387
|
currency: param.currency,
|
|
2388
|
+
language: param.language,
|
|
2284
2389
|
});
|
|
2285
2390
|
if (error) {
|
|
2286
2391
|
return error;
|
|
@@ -2300,6 +2405,7 @@ class App {
|
|
|
2300
2405
|
method: Method.GET,
|
|
2301
2406
|
authKey: param.authKey,
|
|
2302
2407
|
currency: param.currency,
|
|
2408
|
+
language: param.language,
|
|
2303
2409
|
});
|
|
2304
2410
|
if (error) {
|
|
2305
2411
|
return error;
|
|
@@ -2317,6 +2423,7 @@ class App {
|
|
|
2317
2423
|
method: Method.POST,
|
|
2318
2424
|
authKey: param.authKey,
|
|
2319
2425
|
currency: param.currency,
|
|
2426
|
+
language: param.language,
|
|
2320
2427
|
param: param.data,
|
|
2321
2428
|
});
|
|
2322
2429
|
if (error) {
|
|
@@ -2341,6 +2448,7 @@ class App {
|
|
|
2341
2448
|
method: Method.GET,
|
|
2342
2449
|
authKey: param.authKey,
|
|
2343
2450
|
currency: param.currency,
|
|
2451
|
+
language: param.language,
|
|
2344
2452
|
});
|
|
2345
2453
|
if (error) {
|
|
2346
2454
|
return error;
|
|
@@ -2367,6 +2475,7 @@ class App {
|
|
|
2367
2475
|
method: method,
|
|
2368
2476
|
authKey: param.authKey,
|
|
2369
2477
|
currency: param.currency,
|
|
2478
|
+
language: param.language,
|
|
2370
2479
|
param: param.data,
|
|
2371
2480
|
});
|
|
2372
2481
|
if (error) {
|
|
@@ -2391,6 +2500,7 @@ class App {
|
|
|
2391
2500
|
method: Method.GET,
|
|
2392
2501
|
authKey: param.authKey,
|
|
2393
2502
|
currency: param.currency,
|
|
2503
|
+
language: param.language,
|
|
2394
2504
|
});
|
|
2395
2505
|
if (error) {
|
|
2396
2506
|
return error;
|
|
@@ -2415,6 +2525,7 @@ class App {
|
|
|
2415
2525
|
method: Method.GET,
|
|
2416
2526
|
authKey: param.authKey,
|
|
2417
2527
|
currency: param.currency,
|
|
2528
|
+
language: param.language,
|
|
2418
2529
|
});
|
|
2419
2530
|
if (error) {
|
|
2420
2531
|
return error;
|
|
@@ -2439,6 +2550,7 @@ class App {
|
|
|
2439
2550
|
method: Method.GET,
|
|
2440
2551
|
authKey: param.authKey,
|
|
2441
2552
|
currency: param.currency,
|
|
2553
|
+
language: param.language,
|
|
2442
2554
|
});
|
|
2443
2555
|
if (error) {
|
|
2444
2556
|
return error;
|
|
@@ -2462,6 +2574,7 @@ class App {
|
|
|
2462
2574
|
method: Method.GET,
|
|
2463
2575
|
authKey: param.authKey,
|
|
2464
2576
|
currency: param.currency,
|
|
2577
|
+
language: param.language,
|
|
2465
2578
|
});
|
|
2466
2579
|
if (error) {
|
|
2467
2580
|
return error;
|
|
@@ -2483,6 +2596,7 @@ class App {
|
|
|
2483
2596
|
method: Method.GET,
|
|
2484
2597
|
authKey: param.authKey,
|
|
2485
2598
|
currency: param.currency,
|
|
2599
|
+
language: param.language,
|
|
2486
2600
|
});
|
|
2487
2601
|
if (error) {
|
|
2488
2602
|
return error;
|
|
@@ -2500,6 +2614,7 @@ class App {
|
|
|
2500
2614
|
method: Method.POST,
|
|
2501
2615
|
authKey: param.authKey,
|
|
2502
2616
|
currency: param.currency,
|
|
2617
|
+
language: param.language,
|
|
2503
2618
|
param: param.data,
|
|
2504
2619
|
});
|
|
2505
2620
|
if (error) {
|
|
@@ -2518,6 +2633,7 @@ class App {
|
|
|
2518
2633
|
method: Method.POST,
|
|
2519
2634
|
authKey: param.authKey,
|
|
2520
2635
|
currency: param.currency,
|
|
2636
|
+
language: param.language,
|
|
2521
2637
|
param: param.data,
|
|
2522
2638
|
});
|
|
2523
2639
|
if (error) {
|
|
@@ -2542,6 +2658,7 @@ class App {
|
|
|
2542
2658
|
method: Method.GET,
|
|
2543
2659
|
authKey: param.authKey,
|
|
2544
2660
|
currency: param.currency,
|
|
2661
|
+
language: param.language,
|
|
2545
2662
|
});
|
|
2546
2663
|
if (error) {
|
|
2547
2664
|
return error;
|
|
@@ -2560,6 +2677,7 @@ class App {
|
|
|
2560
2677
|
method: Method.POST,
|
|
2561
2678
|
authKey: param.authKey,
|
|
2562
2679
|
currency: param.currency,
|
|
2680
|
+
language: param.language,
|
|
2563
2681
|
param: param.data,
|
|
2564
2682
|
});
|
|
2565
2683
|
if (error) {
|
|
@@ -2578,6 +2696,7 @@ class App {
|
|
|
2578
2696
|
method: Method.POST,
|
|
2579
2697
|
authKey: param.authKey,
|
|
2580
2698
|
currency: param.currency,
|
|
2699
|
+
language: param.language,
|
|
2581
2700
|
param: param.data,
|
|
2582
2701
|
});
|
|
2583
2702
|
if (error) {
|
|
@@ -2602,6 +2721,7 @@ class App {
|
|
|
2602
2721
|
method: Method.GET,
|
|
2603
2722
|
authKey: param.authKey,
|
|
2604
2723
|
currency: param.currency,
|
|
2724
|
+
language: param.language,
|
|
2605
2725
|
});
|
|
2606
2726
|
if (error) {
|
|
2607
2727
|
return error;
|
|
@@ -2625,6 +2745,7 @@ class App {
|
|
|
2625
2745
|
method: Method.GET,
|
|
2626
2746
|
authKey: param.authKey,
|
|
2627
2747
|
currency: param.currency,
|
|
2748
|
+
language: param.language,
|
|
2628
2749
|
});
|
|
2629
2750
|
if (error) {
|
|
2630
2751
|
return error;
|
|
@@ -2643,6 +2764,7 @@ class App {
|
|
|
2643
2764
|
method: Method.POST,
|
|
2644
2765
|
authKey: param.authKey,
|
|
2645
2766
|
currency: param.currency,
|
|
2767
|
+
language: param.language,
|
|
2646
2768
|
param: param.data,
|
|
2647
2769
|
});
|
|
2648
2770
|
if (error) {
|
|
@@ -2667,6 +2789,7 @@ class App {
|
|
|
2667
2789
|
method: Method.GET,
|
|
2668
2790
|
authKey: param.authKey,
|
|
2669
2791
|
currency: param.currency,
|
|
2792
|
+
language: param.language,
|
|
2670
2793
|
});
|
|
2671
2794
|
if (error) {
|
|
2672
2795
|
return error;
|
|
@@ -2684,6 +2807,7 @@ class App {
|
|
|
2684
2807
|
method: Method.DELETE,
|
|
2685
2808
|
authKey: param.authKey,
|
|
2686
2809
|
currency: param.currency,
|
|
2810
|
+
language: param.language,
|
|
2687
2811
|
});
|
|
2688
2812
|
if (error) {
|
|
2689
2813
|
return error;
|
|
@@ -2712,6 +2836,7 @@ class App {
|
|
|
2712
2836
|
method: method,
|
|
2713
2837
|
authKey: param.authKey,
|
|
2714
2838
|
currency: param.currency,
|
|
2839
|
+
language: param.language,
|
|
2715
2840
|
param: param.data,
|
|
2716
2841
|
});
|
|
2717
2842
|
if (error) {
|