tradly 1.2.4 → 1.2.6
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 +5 -0
- package/Roots/App.js +236 -27
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -100,6 +100,7 @@ class App {
|
|
|
100
100
|
currency: param.currency,
|
|
101
101
|
language: param.language,
|
|
102
102
|
pkKey: param.pkKey,
|
|
103
|
+
baseURL: param.baseURL,
|
|
103
104
|
});
|
|
104
105
|
if (error) {
|
|
105
106
|
return error;
|
|
@@ -134,6 +135,7 @@ class App {
|
|
|
134
135
|
currency: param.currency,
|
|
135
136
|
language: param.language,
|
|
136
137
|
pkKey: param.pkKey,
|
|
138
|
+
baseURL: param.baseURL,
|
|
137
139
|
});
|
|
138
140
|
if (error) {
|
|
139
141
|
return error;
|
|
@@ -154,6 +156,7 @@ class App {
|
|
|
154
156
|
currency: param.currency,
|
|
155
157
|
language: param.language,
|
|
156
158
|
pkKey: param.pkKey,
|
|
159
|
+
baseURL: param.baseURL,
|
|
157
160
|
});
|
|
158
161
|
if (error) {
|
|
159
162
|
return error;
|
|
@@ -174,6 +177,7 @@ class App {
|
|
|
174
177
|
currency: param.currency,
|
|
175
178
|
language: param.language,
|
|
176
179
|
pkKey: param.pkKey,
|
|
180
|
+
baseURL: param.baseURL,
|
|
177
181
|
});
|
|
178
182
|
if (error) {
|
|
179
183
|
return error;
|
|
@@ -185,7 +189,7 @@ class App {
|
|
|
185
189
|
}
|
|
186
190
|
}
|
|
187
191
|
async getGroupedSecureConfigList(
|
|
188
|
-
param = { paramBody, authKey, domain_id, barrow_access_key }
|
|
192
|
+
param = { paramBody, authKey, domain_id, barrow_access_key },
|
|
189
193
|
) {
|
|
190
194
|
let url = `${GROUPCONFIGLIST}${param.paramBody}&domain_id=${APPCONSTANT.DOMAIN_ID}`;
|
|
191
195
|
try {
|
|
@@ -196,6 +200,7 @@ class App {
|
|
|
196
200
|
currency: param.currency,
|
|
197
201
|
language: param.language,
|
|
198
202
|
pkKey: param.pkKey,
|
|
203
|
+
baseURL: param.baseURL,
|
|
199
204
|
barrow_access_key: param.access_key,
|
|
200
205
|
});
|
|
201
206
|
if (error) {
|
|
@@ -217,6 +222,7 @@ class App {
|
|
|
217
222
|
currency: param.currency,
|
|
218
223
|
language: param.language,
|
|
219
224
|
pkKey: param.pkKey,
|
|
225
|
+
baseURL: param.baseURL,
|
|
220
226
|
});
|
|
221
227
|
if (error) {
|
|
222
228
|
return error;
|
|
@@ -237,6 +243,7 @@ class App {
|
|
|
237
243
|
currency: param.currency,
|
|
238
244
|
language: param.language,
|
|
239
245
|
pkKey: param.pkKey,
|
|
246
|
+
baseURL: param.baseURL,
|
|
240
247
|
});
|
|
241
248
|
if (error) {
|
|
242
249
|
return error;
|
|
@@ -256,6 +263,7 @@ class App {
|
|
|
256
263
|
currency: param.currency,
|
|
257
264
|
language: param.language,
|
|
258
265
|
pkKey: param.pkKey,
|
|
266
|
+
baseURL: param.baseURL,
|
|
259
267
|
});
|
|
260
268
|
if (error) {
|
|
261
269
|
return error;
|
|
@@ -278,6 +286,7 @@ class App {
|
|
|
278
286
|
currency: param.currency,
|
|
279
287
|
language: param.language,
|
|
280
288
|
pkKey: param.pkKey,
|
|
289
|
+
baseURL: param.baseURL,
|
|
281
290
|
});
|
|
282
291
|
if (error) {
|
|
283
292
|
return error;
|
|
@@ -298,6 +307,7 @@ class App {
|
|
|
298
307
|
currency: param.currency,
|
|
299
308
|
language: param.language,
|
|
300
309
|
pkKey: param.pkKey,
|
|
310
|
+
baseURL: param.baseURL,
|
|
301
311
|
});
|
|
302
312
|
if (error) {
|
|
303
313
|
return error;
|
|
@@ -320,6 +330,7 @@ class App {
|
|
|
320
330
|
currency: param.currency,
|
|
321
331
|
language: param.language,
|
|
322
332
|
pkKey: param.pkKey,
|
|
333
|
+
baseURL: param.baseURL,
|
|
323
334
|
});
|
|
324
335
|
if (error) {
|
|
325
336
|
return error;
|
|
@@ -332,9 +343,8 @@ class App {
|
|
|
332
343
|
}
|
|
333
344
|
async uploadS3Image(param = ImageConfig) {
|
|
334
345
|
try {
|
|
335
|
-
const [error, responseJson] =
|
|
336
|
-
param
|
|
337
|
-
);
|
|
346
|
+
const [error, responseJson] =
|
|
347
|
+
await network.uploadImage(param);
|
|
338
348
|
if (error) {
|
|
339
349
|
return error;
|
|
340
350
|
} else {
|
|
@@ -355,6 +365,7 @@ class App {
|
|
|
355
365
|
currency: param.currency,
|
|
356
366
|
language: param.language,
|
|
357
367
|
pkKey: param.pkKey,
|
|
368
|
+
baseURL: param.baseURL,
|
|
358
369
|
});
|
|
359
370
|
if (error) {
|
|
360
371
|
return error;
|
|
@@ -376,6 +387,7 @@ class App {
|
|
|
376
387
|
currency: param.currency,
|
|
377
388
|
language: param.language,
|
|
378
389
|
pkKey: param.pkKey,
|
|
390
|
+
baseURL: param.baseURL,
|
|
379
391
|
});
|
|
380
392
|
if (error) {
|
|
381
393
|
return error;
|
|
@@ -395,6 +407,7 @@ class App {
|
|
|
395
407
|
currency: param.currency,
|
|
396
408
|
language: param.language,
|
|
397
409
|
pkKey: param.pkKey,
|
|
410
|
+
baseURL: param.baseURL,
|
|
398
411
|
});
|
|
399
412
|
if (error) {
|
|
400
413
|
return error;
|
|
@@ -418,6 +431,7 @@ class App {
|
|
|
418
431
|
currency: param.currency,
|
|
419
432
|
language: param.language,
|
|
420
433
|
pkKey: param.pkKey,
|
|
434
|
+
baseURL: param.baseURL,
|
|
421
435
|
});
|
|
422
436
|
if (error) {
|
|
423
437
|
return error;
|
|
@@ -440,6 +454,7 @@ class App {
|
|
|
440
454
|
currency: param.currency,
|
|
441
455
|
language: param.language,
|
|
442
456
|
pkKey: param.pkKey,
|
|
457
|
+
baseURL: param.baseURL,
|
|
443
458
|
});
|
|
444
459
|
if (error) {
|
|
445
460
|
return error;
|
|
@@ -465,6 +480,7 @@ class App {
|
|
|
465
480
|
currency: param.currency,
|
|
466
481
|
language: param.language,
|
|
467
482
|
pkKey: param.pkKey,
|
|
483
|
+
baseURL: param.baseURL,
|
|
468
484
|
});
|
|
469
485
|
if (error) {
|
|
470
486
|
return error;
|
|
@@ -490,6 +506,7 @@ class App {
|
|
|
490
506
|
currency: param.currency,
|
|
491
507
|
language: param.language,
|
|
492
508
|
pkKey: param.pkKey,
|
|
509
|
+
baseURL: param.baseURL,
|
|
493
510
|
});
|
|
494
511
|
if (error) {
|
|
495
512
|
return error;
|
|
@@ -512,6 +529,7 @@ class App {
|
|
|
512
529
|
currency: param.currency,
|
|
513
530
|
language: param.language,
|
|
514
531
|
pkKey: param.pkKey,
|
|
532
|
+
baseURL: param.baseURL,
|
|
515
533
|
});
|
|
516
534
|
if (error) {
|
|
517
535
|
return error;
|
|
@@ -541,6 +559,7 @@ class App {
|
|
|
541
559
|
currency: param.currency,
|
|
542
560
|
language: param.language,
|
|
543
561
|
pkKey: param.pkKey,
|
|
562
|
+
baseURL: param.baseURL,
|
|
544
563
|
});
|
|
545
564
|
if (error) {
|
|
546
565
|
return error;
|
|
@@ -564,6 +583,7 @@ class App {
|
|
|
564
583
|
currency: param.currency,
|
|
565
584
|
language: param.language,
|
|
566
585
|
pkKey: param.pkKey,
|
|
586
|
+
baseURL: param.baseURL,
|
|
567
587
|
});
|
|
568
588
|
if (error) {
|
|
569
589
|
return error;
|
|
@@ -589,6 +609,7 @@ class App {
|
|
|
589
609
|
currency: param.currency,
|
|
590
610
|
language: param.language,
|
|
591
611
|
pkKey: param.pkKey,
|
|
612
|
+
baseURL: param.baseURL,
|
|
592
613
|
});
|
|
593
614
|
if (error) {
|
|
594
615
|
return error;
|
|
@@ -614,6 +635,7 @@ class App {
|
|
|
614
635
|
currency: param.currency,
|
|
615
636
|
language: param.language,
|
|
616
637
|
pkKey: param.pkKey,
|
|
638
|
+
baseURL: param.baseURL,
|
|
617
639
|
});
|
|
618
640
|
if (error) {
|
|
619
641
|
return error;
|
|
@@ -637,6 +659,7 @@ class App {
|
|
|
637
659
|
currency: param.currency,
|
|
638
660
|
language: param.language,
|
|
639
661
|
pkKey: param.pkKey,
|
|
662
|
+
baseURL: param.baseURL,
|
|
640
663
|
});
|
|
641
664
|
if (error) {
|
|
642
665
|
return error;
|
|
@@ -658,6 +681,7 @@ class App {
|
|
|
658
681
|
currency: param.currency,
|
|
659
682
|
language: param.language,
|
|
660
683
|
pkKey: param.pkKey,
|
|
684
|
+
baseURL: param.baseURL,
|
|
661
685
|
});
|
|
662
686
|
if (error) {
|
|
663
687
|
return error;
|
|
@@ -678,6 +702,7 @@ class App {
|
|
|
678
702
|
currency: param.currency,
|
|
679
703
|
language: param.language,
|
|
680
704
|
pkKey: param.pkKey,
|
|
705
|
+
baseURL: param.baseURL,
|
|
681
706
|
});
|
|
682
707
|
if (error) {
|
|
683
708
|
return error;
|
|
@@ -697,6 +722,7 @@ class App {
|
|
|
697
722
|
currency: param.currency,
|
|
698
723
|
language: param.language,
|
|
699
724
|
pkKey: param.pkKey,
|
|
725
|
+
baseURL: param.baseURL,
|
|
700
726
|
});
|
|
701
727
|
if (error) {
|
|
702
728
|
return error;
|
|
@@ -722,6 +748,7 @@ class App {
|
|
|
722
748
|
currency: param.currency,
|
|
723
749
|
language: param.language,
|
|
724
750
|
pkKey: param.pkKey,
|
|
751
|
+
baseURL: param.baseURL,
|
|
725
752
|
});
|
|
726
753
|
if (error) {
|
|
727
754
|
return error;
|
|
@@ -743,6 +770,7 @@ class App {
|
|
|
743
770
|
currency: param.currency,
|
|
744
771
|
language: param.language,
|
|
745
772
|
pkKey: param.pkKey,
|
|
773
|
+
baseURL: param.baseURL,
|
|
746
774
|
});
|
|
747
775
|
if (error) {
|
|
748
776
|
return error;
|
|
@@ -773,6 +801,7 @@ class App {
|
|
|
773
801
|
currency: param.currency,
|
|
774
802
|
language: param.language,
|
|
775
803
|
pkKey: param.pkKey,
|
|
804
|
+
baseURL: param.baseURL,
|
|
776
805
|
});
|
|
777
806
|
if (error) {
|
|
778
807
|
return error;
|
|
@@ -801,6 +830,7 @@ class App {
|
|
|
801
830
|
currency: param.currency,
|
|
802
831
|
language: param.language,
|
|
803
832
|
pkKey: param.pkKey,
|
|
833
|
+
baseURL: param.baseURL,
|
|
804
834
|
param: param.data,
|
|
805
835
|
});
|
|
806
836
|
if (error) {
|
|
@@ -824,6 +854,7 @@ class App {
|
|
|
824
854
|
currency: param.currency,
|
|
825
855
|
language: param.language,
|
|
826
856
|
pkKey: param.pkKey,
|
|
857
|
+
baseURL: param.baseURL,
|
|
827
858
|
param: param.data,
|
|
828
859
|
});
|
|
829
860
|
if (error) {
|
|
@@ -837,7 +868,7 @@ class App {
|
|
|
837
868
|
}
|
|
838
869
|
|
|
839
870
|
async followUnfollowAccounts(
|
|
840
|
-
param = { id, authKey, isFollowing: Boolean }
|
|
871
|
+
param = { id, authKey, isFollowing: Boolean },
|
|
841
872
|
) {
|
|
842
873
|
let method = param.isFollowing ? Method.DELETE : Method.POST;
|
|
843
874
|
let path = ACCOUNTS + `/${param.id}` + FOLLOW;
|
|
@@ -849,6 +880,7 @@ class App {
|
|
|
849
880
|
currency: param.currency,
|
|
850
881
|
language: param.language,
|
|
851
882
|
pkKey: param.pkKey,
|
|
883
|
+
baseURL: param.baseURL,
|
|
852
884
|
});
|
|
853
885
|
if (error) {
|
|
854
886
|
return error;
|
|
@@ -870,6 +902,7 @@ class App {
|
|
|
870
902
|
currency: param.currency,
|
|
871
903
|
language: param.language,
|
|
872
904
|
pkKey: param.pkKey,
|
|
905
|
+
baseURL: param.baseURL,
|
|
873
906
|
});
|
|
874
907
|
if (error) {
|
|
875
908
|
return error;
|
|
@@ -891,6 +924,7 @@ class App {
|
|
|
891
924
|
currency: param.currency,
|
|
892
925
|
language: param.language,
|
|
893
926
|
pkKey: param.pkKey,
|
|
927
|
+
baseURL: param.baseURL,
|
|
894
928
|
param: param.data,
|
|
895
929
|
});
|
|
896
930
|
if (error) {
|
|
@@ -912,6 +946,7 @@ class App {
|
|
|
912
946
|
currency: param.currency,
|
|
913
947
|
language: param.language,
|
|
914
948
|
pkKey: param.pkKey,
|
|
949
|
+
baseURL: param.baseURL,
|
|
915
950
|
});
|
|
916
951
|
if (error) {
|
|
917
952
|
return error;
|
|
@@ -932,6 +967,7 @@ class App {
|
|
|
932
967
|
currency: param.currency,
|
|
933
968
|
language: param.language,
|
|
934
969
|
pkKey: param.pkKey,
|
|
970
|
+
baseURL: param.baseURL,
|
|
935
971
|
});
|
|
936
972
|
if (error) {
|
|
937
973
|
return error;
|
|
@@ -953,7 +989,7 @@ class App {
|
|
|
953
989
|
param.rule_id == undefined || param.rule_id == ""
|
|
954
990
|
? LISTINGS + `/${param.listing_id}/price_rules`
|
|
955
991
|
: LISTINGS +
|
|
956
|
-
|
|
992
|
+
`/${param.listing_id}/price_rules/${param.rule_id}`;
|
|
957
993
|
try {
|
|
958
994
|
const [error, responseJson] = await network.networkCall({
|
|
959
995
|
path: path,
|
|
@@ -962,6 +998,7 @@ class App {
|
|
|
962
998
|
currency: param.currency,
|
|
963
999
|
language: param.language,
|
|
964
1000
|
pkKey: param.pkKey,
|
|
1001
|
+
baseURL: param.baseURL,
|
|
965
1002
|
param: param.data,
|
|
966
1003
|
});
|
|
967
1004
|
if (error) {
|
|
@@ -975,7 +1012,7 @@ class App {
|
|
|
975
1012
|
}
|
|
976
1013
|
|
|
977
1014
|
async getListingsPricingRules(
|
|
978
|
-
param = { bodyParam, authKey, listing_id }
|
|
1015
|
+
param = { bodyParam, authKey, listing_id },
|
|
979
1016
|
) {
|
|
980
1017
|
let url =
|
|
981
1018
|
param.bodyParam == undefined || param.bodyParam == ""
|
|
@@ -992,6 +1029,7 @@ class App {
|
|
|
992
1029
|
currency: param.currency,
|
|
993
1030
|
language: param.language,
|
|
994
1031
|
pkKey: param.pkKey,
|
|
1032
|
+
baseURL: param.baseURL,
|
|
995
1033
|
});
|
|
996
1034
|
if (error) {
|
|
997
1035
|
return error;
|
|
@@ -1003,7 +1041,7 @@ class App {
|
|
|
1003
1041
|
}
|
|
1004
1042
|
}
|
|
1005
1043
|
async getListingSinglePricingRule(
|
|
1006
|
-
param = { bodyParam, authKey, listing_id, rule_id }
|
|
1044
|
+
param = { bodyParam, authKey, listing_id, rule_id },
|
|
1007
1045
|
) {
|
|
1008
1046
|
let url =
|
|
1009
1047
|
param.bodyParam == undefined || param.bodyParam == ""
|
|
@@ -1020,6 +1058,7 @@ class App {
|
|
|
1020
1058
|
currency: param.currency,
|
|
1021
1059
|
language: param.language,
|
|
1022
1060
|
pkKey: param.pkKey,
|
|
1061
|
+
baseURL: param.baseURL,
|
|
1023
1062
|
});
|
|
1024
1063
|
if (error) {
|
|
1025
1064
|
return error;
|
|
@@ -1032,7 +1071,7 @@ class App {
|
|
|
1032
1071
|
}
|
|
1033
1072
|
|
|
1034
1073
|
async deleteListingPricingRule(
|
|
1035
|
-
param = { id, authKey, listing_id, rule_id }
|
|
1074
|
+
param = { id, authKey, listing_id, rule_id },
|
|
1036
1075
|
) {
|
|
1037
1076
|
try {
|
|
1038
1077
|
const [error, responseJson] = await network.networkCall({
|
|
@@ -1044,6 +1083,7 @@ class App {
|
|
|
1044
1083
|
currency: param.currency,
|
|
1045
1084
|
language: param.language,
|
|
1046
1085
|
pkKey: param.pkKey,
|
|
1086
|
+
baseURL: param.baseURL,
|
|
1047
1087
|
});
|
|
1048
1088
|
if (error) {
|
|
1049
1089
|
return error;
|
|
@@ -1069,6 +1109,7 @@ class App {
|
|
|
1069
1109
|
currency: param.currency,
|
|
1070
1110
|
language: param.language,
|
|
1071
1111
|
pkKey: param.pkKey,
|
|
1112
|
+
baseURL: param.baseURL,
|
|
1072
1113
|
});
|
|
1073
1114
|
if (error) {
|
|
1074
1115
|
return error;
|
|
@@ -1092,6 +1133,31 @@ class App {
|
|
|
1092
1133
|
currency: param.currency,
|
|
1093
1134
|
language: param.language,
|
|
1094
1135
|
pkKey: param.pkKey,
|
|
1136
|
+
baseURL: param.baseURL,
|
|
1137
|
+
});
|
|
1138
|
+
if (error) {
|
|
1139
|
+
return error;
|
|
1140
|
+
} else {
|
|
1141
|
+
return responseJson;
|
|
1142
|
+
}
|
|
1143
|
+
} catch (error) {
|
|
1144
|
+
return error;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
async getListingsSuggestion(param = { bodyParam, authKey }) {
|
|
1148
|
+
let url =
|
|
1149
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
1150
|
+
? ""
|
|
1151
|
+
: `?${serialization(param.bodyParam)}`;
|
|
1152
|
+
try {
|
|
1153
|
+
const [error, responseJson] = await network.networkCall({
|
|
1154
|
+
path: LISTINGS + "/search/suggestions" + url,
|
|
1155
|
+
method: Method.GET,
|
|
1156
|
+
authKey: param.authKey,
|
|
1157
|
+
currency: param.currency,
|
|
1158
|
+
language: param.language,
|
|
1159
|
+
pkKey: param.pkKey,
|
|
1160
|
+
baseURL: param.baseURL,
|
|
1095
1161
|
});
|
|
1096
1162
|
if (error) {
|
|
1097
1163
|
return error;
|
|
@@ -1122,6 +1188,7 @@ class App {
|
|
|
1122
1188
|
currency: param.currency,
|
|
1123
1189
|
language: param.language,
|
|
1124
1190
|
pkKey: param.pkKey,
|
|
1191
|
+
baseURL: param.baseURL,
|
|
1125
1192
|
});
|
|
1126
1193
|
if (error) {
|
|
1127
1194
|
return error;
|
|
@@ -1148,6 +1215,7 @@ class App {
|
|
|
1148
1215
|
currency: param.currency,
|
|
1149
1216
|
language: param.language,
|
|
1150
1217
|
pkKey: param.pkKey,
|
|
1218
|
+
baseURL: param.baseURL,
|
|
1151
1219
|
});
|
|
1152
1220
|
if (error) {
|
|
1153
1221
|
return error;
|
|
@@ -1175,6 +1243,7 @@ class App {
|
|
|
1175
1243
|
currency: param.currency,
|
|
1176
1244
|
language: param.language,
|
|
1177
1245
|
pkKey: param.pkKey,
|
|
1246
|
+
baseURL: param.baseURL,
|
|
1178
1247
|
param: param.data,
|
|
1179
1248
|
});
|
|
1180
1249
|
if (error) {
|
|
@@ -1197,6 +1266,7 @@ class App {
|
|
|
1197
1266
|
currency: param.currency,
|
|
1198
1267
|
language: param.language,
|
|
1199
1268
|
pkKey: param.pkKey,
|
|
1269
|
+
baseURL: param.baseURL,
|
|
1200
1270
|
});
|
|
1201
1271
|
if (error) {
|
|
1202
1272
|
return error;
|
|
@@ -1218,6 +1288,7 @@ class App {
|
|
|
1218
1288
|
currency: param.currency,
|
|
1219
1289
|
language: param.language,
|
|
1220
1290
|
pkKey: param.pkKey,
|
|
1291
|
+
baseURL: param.baseURL,
|
|
1221
1292
|
});
|
|
1222
1293
|
if (error) {
|
|
1223
1294
|
return error;
|
|
@@ -1239,6 +1310,7 @@ class App {
|
|
|
1239
1310
|
currency: param.currency,
|
|
1240
1311
|
language: param.language,
|
|
1241
1312
|
pkKey: param.pkKey,
|
|
1313
|
+
baseURL: param.baseURL,
|
|
1242
1314
|
param: param.data,
|
|
1243
1315
|
});
|
|
1244
1316
|
if (error) {
|
|
@@ -1264,6 +1336,7 @@ class App {
|
|
|
1264
1336
|
currency: param.currency,
|
|
1265
1337
|
language: param.language,
|
|
1266
1338
|
pkKey: param.pkKey,
|
|
1339
|
+
baseURL: param.baseURL,
|
|
1267
1340
|
});
|
|
1268
1341
|
if (error) {
|
|
1269
1342
|
return error;
|
|
@@ -1285,6 +1358,7 @@ class App {
|
|
|
1285
1358
|
currency: param.currency,
|
|
1286
1359
|
language: param.language,
|
|
1287
1360
|
pkKey: param.pkKey,
|
|
1361
|
+
baseURL: param.baseURL,
|
|
1288
1362
|
param: param.data,
|
|
1289
1363
|
});
|
|
1290
1364
|
if (error) {
|
|
@@ -1309,6 +1383,7 @@ class App {
|
|
|
1309
1383
|
currency: param.currency,
|
|
1310
1384
|
language: param.language,
|
|
1311
1385
|
pkKey: param.pkKey,
|
|
1386
|
+
baseURL: param.baseURL,
|
|
1312
1387
|
param: param.data,
|
|
1313
1388
|
});
|
|
1314
1389
|
if (error) {
|
|
@@ -1330,6 +1405,7 @@ class App {
|
|
|
1330
1405
|
currency: param.currency,
|
|
1331
1406
|
language: param.language,
|
|
1332
1407
|
pkKey: param.pkKey,
|
|
1408
|
+
baseURL: param.baseURL,
|
|
1333
1409
|
});
|
|
1334
1410
|
if (error) {
|
|
1335
1411
|
return error;
|
|
@@ -1355,6 +1431,7 @@ class App {
|
|
|
1355
1431
|
currency: param.currency,
|
|
1356
1432
|
language: param.language,
|
|
1357
1433
|
pkKey: param.pkKey,
|
|
1434
|
+
baseURL: param.baseURL,
|
|
1358
1435
|
param: param.data,
|
|
1359
1436
|
});
|
|
1360
1437
|
if (error) {
|
|
@@ -1383,6 +1460,7 @@ class App {
|
|
|
1383
1460
|
currency: param.currency,
|
|
1384
1461
|
language: param.language,
|
|
1385
1462
|
pkKey: param.pkKey,
|
|
1463
|
+
baseURL: param.baseURL,
|
|
1386
1464
|
param: param.data,
|
|
1387
1465
|
});
|
|
1388
1466
|
if (error) {
|
|
@@ -1411,6 +1489,7 @@ class App {
|
|
|
1411
1489
|
currency: param.currency,
|
|
1412
1490
|
language: param.language,
|
|
1413
1491
|
pkKey: param.pkKey,
|
|
1492
|
+
baseURL: param.baseURL,
|
|
1414
1493
|
});
|
|
1415
1494
|
if (error) {
|
|
1416
1495
|
return error;
|
|
@@ -1432,6 +1511,7 @@ class App {
|
|
|
1432
1511
|
currency: param.currency,
|
|
1433
1512
|
language: param.language,
|
|
1434
1513
|
pkKey: param.pkKey,
|
|
1514
|
+
baseURL: param.baseURL,
|
|
1435
1515
|
param: param.data,
|
|
1436
1516
|
});
|
|
1437
1517
|
if (error) {
|
|
@@ -1457,6 +1537,7 @@ class App {
|
|
|
1457
1537
|
currency: param.currency,
|
|
1458
1538
|
language: param.language,
|
|
1459
1539
|
pkKey: param.pkKey,
|
|
1540
|
+
baseURL: param.baseURL,
|
|
1460
1541
|
});
|
|
1461
1542
|
if (error) {
|
|
1462
1543
|
return error;
|
|
@@ -1477,6 +1558,7 @@ class App {
|
|
|
1477
1558
|
currency: param.currency,
|
|
1478
1559
|
language: param.language,
|
|
1479
1560
|
pkKey: param.pkKey,
|
|
1561
|
+
baseURL: param.baseURL,
|
|
1480
1562
|
});
|
|
1481
1563
|
if (error) {
|
|
1482
1564
|
return error;
|
|
@@ -1496,6 +1578,7 @@ class App {
|
|
|
1496
1578
|
currency: param.currency,
|
|
1497
1579
|
language: param.language,
|
|
1498
1580
|
pkKey: param.pkKey,
|
|
1581
|
+
baseURL: param.baseURL,
|
|
1499
1582
|
});
|
|
1500
1583
|
if (error) {
|
|
1501
1584
|
return error;
|
|
@@ -1507,7 +1590,7 @@ class App {
|
|
|
1507
1590
|
}
|
|
1508
1591
|
}
|
|
1509
1592
|
async getListingVariantDetails(
|
|
1510
|
-
param = { authKey, listingId, variant_id }
|
|
1593
|
+
param = { authKey, listingId, variant_id },
|
|
1511
1594
|
) {
|
|
1512
1595
|
try {
|
|
1513
1596
|
const [error, responseJson] = await network.networkCall({
|
|
@@ -1521,6 +1604,7 @@ class App {
|
|
|
1521
1604
|
currency: param.currency,
|
|
1522
1605
|
language: param.language,
|
|
1523
1606
|
pkKey: param.pkKey,
|
|
1607
|
+
baseURL: param.baseURL,
|
|
1524
1608
|
});
|
|
1525
1609
|
if (error) {
|
|
1526
1610
|
return error;
|
|
@@ -1540,9 +1624,9 @@ class App {
|
|
|
1540
1624
|
param.id == undefined || param.id == ""
|
|
1541
1625
|
? LISTINGS + `/${param.listingId}` + VARIANTS
|
|
1542
1626
|
: LISTINGS +
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1627
|
+
`/${param.listingId}` +
|
|
1628
|
+
VARIANTS +
|
|
1629
|
+
`/${param.id}`;
|
|
1546
1630
|
try {
|
|
1547
1631
|
const [error, responseJson] = await network.networkCall({
|
|
1548
1632
|
path: path,
|
|
@@ -1552,6 +1636,7 @@ class App {
|
|
|
1552
1636
|
currency: param.currency,
|
|
1553
1637
|
language: param.language,
|
|
1554
1638
|
pkKey: param.pkKey,
|
|
1639
|
+
baseURL: param.baseURL,
|
|
1555
1640
|
});
|
|
1556
1641
|
if (error) {
|
|
1557
1642
|
return error;
|
|
@@ -1576,6 +1661,7 @@ class App {
|
|
|
1576
1661
|
currency: param.currency,
|
|
1577
1662
|
language: param.language,
|
|
1578
1663
|
pkKey: param.pkKey,
|
|
1664
|
+
baseURL: param.baseURL,
|
|
1579
1665
|
});
|
|
1580
1666
|
if (error) {
|
|
1581
1667
|
return error;
|
|
@@ -1596,6 +1682,7 @@ class App {
|
|
|
1596
1682
|
currency: param.currency,
|
|
1597
1683
|
language: param.language,
|
|
1598
1684
|
pkKey: param.pkKey,
|
|
1685
|
+
baseURL: param.baseURL,
|
|
1599
1686
|
});
|
|
1600
1687
|
if (error) {
|
|
1601
1688
|
return error;
|
|
@@ -1624,6 +1711,7 @@ class App {
|
|
|
1624
1711
|
currency: param.currency,
|
|
1625
1712
|
language: param.language,
|
|
1626
1713
|
pkKey: param.pkKey,
|
|
1714
|
+
baseURL: param.baseURL,
|
|
1627
1715
|
});
|
|
1628
1716
|
if (error) {
|
|
1629
1717
|
return error;
|
|
@@ -1644,6 +1732,7 @@ class App {
|
|
|
1644
1732
|
currency: param.currency,
|
|
1645
1733
|
language: param.language,
|
|
1646
1734
|
pkKey: param.pkKey,
|
|
1735
|
+
baseURL: param.baseURL,
|
|
1647
1736
|
});
|
|
1648
1737
|
if (error) {
|
|
1649
1738
|
return error;
|
|
@@ -1665,6 +1754,7 @@ class App {
|
|
|
1665
1754
|
currency: param.currency,
|
|
1666
1755
|
language: param.language,
|
|
1667
1756
|
pkKey: param.pkKey,
|
|
1757
|
+
baseURL: param.baseURL,
|
|
1668
1758
|
});
|
|
1669
1759
|
if (error) {
|
|
1670
1760
|
return error;
|
|
@@ -1689,6 +1779,7 @@ class App {
|
|
|
1689
1779
|
currency: param.currency,
|
|
1690
1780
|
language: param.language,
|
|
1691
1781
|
pkKey: param.pkKey,
|
|
1782
|
+
baseURL: param.baseURL,
|
|
1692
1783
|
});
|
|
1693
1784
|
if (error) {
|
|
1694
1785
|
return error;
|
|
@@ -1704,9 +1795,9 @@ class App {
|
|
|
1704
1795
|
param.id == undefined || param.id == ""
|
|
1705
1796
|
? VARIANTTYPES + `/${param.id}` + VALUES
|
|
1706
1797
|
: VARIANTTYPES +
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1798
|
+
`/${param.id}` +
|
|
1799
|
+
VALUES +
|
|
1800
|
+
`/${param.valueID}`;
|
|
1710
1801
|
let method =
|
|
1711
1802
|
param.id == undefined || param.id == ""
|
|
1712
1803
|
? Method.POST
|
|
@@ -1720,6 +1811,7 @@ class App {
|
|
|
1720
1811
|
currency: param.currency,
|
|
1721
1812
|
language: param.language,
|
|
1722
1813
|
pkKey: param.pkKey,
|
|
1814
|
+
baseURL: param.baseURL,
|
|
1723
1815
|
});
|
|
1724
1816
|
if (error) {
|
|
1725
1817
|
return error;
|
|
@@ -1744,6 +1836,7 @@ class App {
|
|
|
1744
1836
|
currency: param.currency,
|
|
1745
1837
|
language: param.language,
|
|
1746
1838
|
pkKey: param.pkKey,
|
|
1839
|
+
baseURL: param.baseURL,
|
|
1747
1840
|
});
|
|
1748
1841
|
if (error) {
|
|
1749
1842
|
return error;
|
|
@@ -1768,6 +1861,7 @@ class App {
|
|
|
1768
1861
|
currency: param.currency,
|
|
1769
1862
|
language: param.language,
|
|
1770
1863
|
pkKey: param.pkKey,
|
|
1864
|
+
baseURL: param.baseURL,
|
|
1771
1865
|
});
|
|
1772
1866
|
if (error) {
|
|
1773
1867
|
return error;
|
|
@@ -1792,6 +1886,7 @@ class App {
|
|
|
1792
1886
|
currency: param.currency,
|
|
1793
1887
|
language: param.language,
|
|
1794
1888
|
pkKey: param.pkKey,
|
|
1889
|
+
baseURL: param.baseURL,
|
|
1795
1890
|
});
|
|
1796
1891
|
if (error) {
|
|
1797
1892
|
return error;
|
|
@@ -1812,7 +1907,7 @@ class App {
|
|
|
1812
1907
|
path:
|
|
1813
1908
|
CATEGORY +
|
|
1814
1909
|
`/by_slug/${encodeURIComponent(
|
|
1815
|
-
param.slug
|
|
1910
|
+
param.slug,
|
|
1816
1911
|
)}` +
|
|
1817
1912
|
url,
|
|
1818
1913
|
method: Method.GET,
|
|
@@ -1820,6 +1915,7 @@ class App {
|
|
|
1820
1915
|
currency: param.currency,
|
|
1821
1916
|
language: param.language,
|
|
1822
1917
|
pkKey: param.pkKey,
|
|
1918
|
+
baseURL: param.baseURL,
|
|
1823
1919
|
});
|
|
1824
1920
|
if (error) {
|
|
1825
1921
|
return error;
|
|
@@ -1848,6 +1944,7 @@ class App {
|
|
|
1848
1944
|
currency: param.currency,
|
|
1849
1945
|
language: param.language,
|
|
1850
1946
|
pkKey: param.pkKey,
|
|
1947
|
+
baseURL: param.baseURL,
|
|
1851
1948
|
});
|
|
1852
1949
|
if (error) {
|
|
1853
1950
|
return error;
|
|
@@ -1867,6 +1964,7 @@ class App {
|
|
|
1867
1964
|
currency: param.currency,
|
|
1868
1965
|
language: param.language,
|
|
1869
1966
|
pkKey: param.pkKey,
|
|
1967
|
+
baseURL: param.baseURL,
|
|
1870
1968
|
});
|
|
1871
1969
|
if (error) {
|
|
1872
1970
|
return error;
|
|
@@ -1892,6 +1990,7 @@ class App {
|
|
|
1892
1990
|
currency: param.currency,
|
|
1893
1991
|
language: param.language,
|
|
1894
1992
|
pkKey: param.pkKey,
|
|
1993
|
+
baseURL: param.baseURL,
|
|
1895
1994
|
});
|
|
1896
1995
|
if (error) {
|
|
1897
1996
|
return error;
|
|
@@ -1919,6 +2018,7 @@ class App {
|
|
|
1919
2018
|
currency: param.currency,
|
|
1920
2019
|
language: param.language,
|
|
1921
2020
|
pkKey: param.pkKey,
|
|
2021
|
+
baseURL: param.baseURL,
|
|
1922
2022
|
});
|
|
1923
2023
|
if (error) {
|
|
1924
2024
|
return error;
|
|
@@ -1942,6 +2042,7 @@ class App {
|
|
|
1942
2042
|
currency: param.currency,
|
|
1943
2043
|
language: param.language,
|
|
1944
2044
|
pkKey: param.pkKey,
|
|
2045
|
+
baseURL: param.baseURL,
|
|
1945
2046
|
});
|
|
1946
2047
|
if (error) {
|
|
1947
2048
|
return error;
|
|
@@ -1970,6 +2071,7 @@ class App {
|
|
|
1970
2071
|
currency: param.currency,
|
|
1971
2072
|
language: param.language,
|
|
1972
2073
|
pkKey: param.pkKey,
|
|
2074
|
+
baseURL: param.baseURL,
|
|
1973
2075
|
});
|
|
1974
2076
|
if (error) {
|
|
1975
2077
|
return error;
|
|
@@ -1989,6 +2091,7 @@ class App {
|
|
|
1989
2091
|
currency: param.currency,
|
|
1990
2092
|
language: param.language,
|
|
1991
2093
|
pkKey: param.pkKey,
|
|
2094
|
+
baseURL: param.baseURL,
|
|
1992
2095
|
});
|
|
1993
2096
|
if (error) {
|
|
1994
2097
|
return error;
|
|
@@ -2010,6 +2113,7 @@ class App {
|
|
|
2010
2113
|
currency: param.currency,
|
|
2011
2114
|
language: param.language,
|
|
2012
2115
|
pkKey: param.pkKey,
|
|
2116
|
+
baseURL: param.baseURL,
|
|
2013
2117
|
});
|
|
2014
2118
|
if (error) {
|
|
2015
2119
|
return error;
|
|
@@ -2031,6 +2135,7 @@ class App {
|
|
|
2031
2135
|
currency: param.currency,
|
|
2032
2136
|
language: param.language,
|
|
2033
2137
|
pkKey: param.pkKey,
|
|
2138
|
+
baseURL: param.baseURL,
|
|
2034
2139
|
});
|
|
2035
2140
|
if (error) {
|
|
2036
2141
|
return error;
|
|
@@ -2046,9 +2151,9 @@ class App {
|
|
|
2046
2151
|
param.id == undefined || param.id == ""
|
|
2047
2152
|
? ATTRIBUTE + `/${param.id}` + VALUES
|
|
2048
2153
|
: ATTRIBUTE +
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2154
|
+
`/${param.id}` +
|
|
2155
|
+
VALUES +
|
|
2156
|
+
`/${param.valueID}`;
|
|
2052
2157
|
let method =
|
|
2053
2158
|
param.id == undefined || param.id == ""
|
|
2054
2159
|
? Method.POST
|
|
@@ -2062,6 +2167,7 @@ class App {
|
|
|
2062
2167
|
currency: param.currency,
|
|
2063
2168
|
language: param.language,
|
|
2064
2169
|
pkKey: param.pkKey,
|
|
2170
|
+
baseURL: param.baseURL,
|
|
2065
2171
|
});
|
|
2066
2172
|
if (error) {
|
|
2067
2173
|
return error;
|
|
@@ -2083,6 +2189,7 @@ class App {
|
|
|
2083
2189
|
currency: param.currency,
|
|
2084
2190
|
language: param.language,
|
|
2085
2191
|
pkKey: param.pkKey,
|
|
2192
|
+
baseURL: param.baseURL,
|
|
2086
2193
|
});
|
|
2087
2194
|
if (error) {
|
|
2088
2195
|
return error;
|
|
@@ -2104,6 +2211,7 @@ class App {
|
|
|
2104
2211
|
currency: param.currency,
|
|
2105
2212
|
language: param.language,
|
|
2106
2213
|
pkKey: param.pkKey,
|
|
2214
|
+
baseURL: param.baseURL,
|
|
2107
2215
|
});
|
|
2108
2216
|
if (error) {
|
|
2109
2217
|
return error;
|
|
@@ -2124,6 +2232,7 @@ class App {
|
|
|
2124
2232
|
currency: param.currency,
|
|
2125
2233
|
language: param.language,
|
|
2126
2234
|
pkKey: param.pkKey,
|
|
2235
|
+
baseURL: param.baseURL,
|
|
2127
2236
|
});
|
|
2128
2237
|
if (error) {
|
|
2129
2238
|
return error;
|
|
@@ -2147,6 +2256,7 @@ class App {
|
|
|
2147
2256
|
currency: param.currency,
|
|
2148
2257
|
language: param.language,
|
|
2149
2258
|
pkKey: param.pkKey,
|
|
2259
|
+
baseURL: param.baseURL,
|
|
2150
2260
|
});
|
|
2151
2261
|
if (error) {
|
|
2152
2262
|
return error;
|
|
@@ -2170,6 +2280,7 @@ class App {
|
|
|
2170
2280
|
currency: param.currency,
|
|
2171
2281
|
language: param.language,
|
|
2172
2282
|
pkKey: param.pkKey,
|
|
2283
|
+
baseURL: param.baseURL,
|
|
2173
2284
|
});
|
|
2174
2285
|
if (error) {
|
|
2175
2286
|
return error;
|
|
@@ -2189,6 +2300,7 @@ class App {
|
|
|
2189
2300
|
currency: param.currency,
|
|
2190
2301
|
language: param.language,
|
|
2191
2302
|
pkKey: param.pkKey,
|
|
2303
|
+
baseURL: param.baseURL,
|
|
2192
2304
|
param: param.data,
|
|
2193
2305
|
});
|
|
2194
2306
|
if (error) {
|
|
@@ -2209,6 +2321,7 @@ class App {
|
|
|
2209
2321
|
currency: param.currency,
|
|
2210
2322
|
language: param.language,
|
|
2211
2323
|
pkKey: param.pkKey,
|
|
2324
|
+
baseURL: param.baseURL,
|
|
2212
2325
|
param: param.data,
|
|
2213
2326
|
});
|
|
2214
2327
|
if (error) {
|
|
@@ -2229,6 +2342,7 @@ class App {
|
|
|
2229
2342
|
currency: param.currency,
|
|
2230
2343
|
language: param.language,
|
|
2231
2344
|
pkKey: param.pkKey,
|
|
2345
|
+
baseURL: param.baseURL,
|
|
2232
2346
|
param: param.data,
|
|
2233
2347
|
});
|
|
2234
2348
|
if (error) {
|
|
@@ -2249,6 +2363,7 @@ class App {
|
|
|
2249
2363
|
currency: param.currency,
|
|
2250
2364
|
language: param.language,
|
|
2251
2365
|
pkKey: param.pkKey,
|
|
2366
|
+
baseURL: param.baseURL,
|
|
2252
2367
|
param: param.data,
|
|
2253
2368
|
});
|
|
2254
2369
|
if (error) {
|
|
@@ -2271,6 +2386,7 @@ class App {
|
|
|
2271
2386
|
currency: param.currency,
|
|
2272
2387
|
language: param.language,
|
|
2273
2388
|
pkKey: param.pkKey,
|
|
2389
|
+
baseURL: param.baseURL,
|
|
2274
2390
|
});
|
|
2275
2391
|
if (error) {
|
|
2276
2392
|
return error;
|
|
@@ -2291,6 +2407,7 @@ class App {
|
|
|
2291
2407
|
currency: param.currency,
|
|
2292
2408
|
language: param.language,
|
|
2293
2409
|
pkKey: param.pkKey,
|
|
2410
|
+
baseURL: param.baseURL,
|
|
2294
2411
|
});
|
|
2295
2412
|
if (error) {
|
|
2296
2413
|
return error;
|
|
@@ -2312,6 +2429,7 @@ class App {
|
|
|
2312
2429
|
currency: param.currency,
|
|
2313
2430
|
language: param.language,
|
|
2314
2431
|
pkKey: param.pkKey,
|
|
2432
|
+
baseURL: param.baseURL,
|
|
2315
2433
|
});
|
|
2316
2434
|
if (error) {
|
|
2317
2435
|
return error;
|
|
@@ -2331,6 +2449,7 @@ class App {
|
|
|
2331
2449
|
currency: param.currency,
|
|
2332
2450
|
language: param.language,
|
|
2333
2451
|
pkKey: param.pkKey,
|
|
2452
|
+
baseURL: param.baseURL,
|
|
2334
2453
|
});
|
|
2335
2454
|
if (error) {
|
|
2336
2455
|
return error;
|
|
@@ -2350,6 +2469,7 @@ class App {
|
|
|
2350
2469
|
currency: param.currency,
|
|
2351
2470
|
language: param.language,
|
|
2352
2471
|
pkKey: param.pkKey,
|
|
2472
|
+
baseURL: param.baseURL,
|
|
2353
2473
|
param: param.data,
|
|
2354
2474
|
});
|
|
2355
2475
|
if (error) {
|
|
@@ -2370,6 +2490,7 @@ class App {
|
|
|
2370
2490
|
currency: param.currency,
|
|
2371
2491
|
language: param.language,
|
|
2372
2492
|
pkKey: param.pkKey,
|
|
2493
|
+
baseURL: param.baseURL,
|
|
2373
2494
|
param: param.data,
|
|
2374
2495
|
});
|
|
2375
2496
|
if (error) {
|
|
@@ -2390,6 +2511,7 @@ class App {
|
|
|
2390
2511
|
currency: param.currency,
|
|
2391
2512
|
language: param.language,
|
|
2392
2513
|
pkKey: param.pkKey,
|
|
2514
|
+
baseURL: param.baseURL,
|
|
2393
2515
|
param: param.data,
|
|
2394
2516
|
});
|
|
2395
2517
|
if (error) {
|
|
@@ -2413,6 +2535,7 @@ class App {
|
|
|
2413
2535
|
currency: param.currency,
|
|
2414
2536
|
language: param.language,
|
|
2415
2537
|
pkKey: param.pkKey,
|
|
2538
|
+
baseURL: param.baseURL,
|
|
2416
2539
|
param: param.data,
|
|
2417
2540
|
});
|
|
2418
2541
|
if (error) {
|
|
@@ -2435,6 +2558,7 @@ class App {
|
|
|
2435
2558
|
currency: param.currency,
|
|
2436
2559
|
language: param.language,
|
|
2437
2560
|
pkKey: param.pkKey,
|
|
2561
|
+
baseURL: param.baseURL,
|
|
2438
2562
|
param: param.data,
|
|
2439
2563
|
});
|
|
2440
2564
|
if (error) {
|
|
@@ -2457,6 +2581,7 @@ class App {
|
|
|
2457
2581
|
currency: param.currency,
|
|
2458
2582
|
language: param.language,
|
|
2459
2583
|
pkKey: param.pkKey,
|
|
2584
|
+
baseURL: param.baseURL,
|
|
2460
2585
|
param: param.data,
|
|
2461
2586
|
});
|
|
2462
2587
|
if (error) {
|
|
@@ -2478,6 +2603,7 @@ class App {
|
|
|
2478
2603
|
currency: param.currency,
|
|
2479
2604
|
language: param.language,
|
|
2480
2605
|
pkKey: param.pkKey,
|
|
2606
|
+
baseURL: param.baseURL,
|
|
2481
2607
|
param: param.data,
|
|
2482
2608
|
});
|
|
2483
2609
|
if (error) {
|
|
@@ -2499,6 +2625,7 @@ class App {
|
|
|
2499
2625
|
currency: param.currency,
|
|
2500
2626
|
language: param.language,
|
|
2501
2627
|
pkKey: param.pkKey,
|
|
2628
|
+
baseURL: param.baseURL,
|
|
2502
2629
|
param: param.data,
|
|
2503
2630
|
});
|
|
2504
2631
|
if (error) {
|
|
@@ -2520,6 +2647,7 @@ class App {
|
|
|
2520
2647
|
currency: param.currency,
|
|
2521
2648
|
language: param.language,
|
|
2522
2649
|
pkKey: param.pkKey,
|
|
2650
|
+
baseURL: param.baseURL,
|
|
2523
2651
|
param: param.data,
|
|
2524
2652
|
});
|
|
2525
2653
|
if (error) {
|
|
@@ -2542,6 +2670,7 @@ class App {
|
|
|
2542
2670
|
currency: param.currency,
|
|
2543
2671
|
language: param.language,
|
|
2544
2672
|
pkKey: param.pkKey,
|
|
2673
|
+
baseURL: param.baseURL,
|
|
2545
2674
|
param: param.data,
|
|
2546
2675
|
});
|
|
2547
2676
|
if (error) {
|
|
@@ -2564,6 +2693,7 @@ class App {
|
|
|
2564
2693
|
currency: param.currency,
|
|
2565
2694
|
language: param.language,
|
|
2566
2695
|
pkKey: param.pkKey,
|
|
2696
|
+
baseURL: param.baseURL,
|
|
2567
2697
|
param: param.data,
|
|
2568
2698
|
});
|
|
2569
2699
|
if (error) {
|
|
@@ -2585,6 +2715,7 @@ class App {
|
|
|
2585
2715
|
currency: param.currency,
|
|
2586
2716
|
language: param.language,
|
|
2587
2717
|
pkKey: param.pkKey,
|
|
2718
|
+
baseURL: param.baseURL,
|
|
2588
2719
|
param: param.data,
|
|
2589
2720
|
});
|
|
2590
2721
|
if (error) {
|
|
@@ -2607,6 +2738,7 @@ class App {
|
|
|
2607
2738
|
currency: param.currency,
|
|
2608
2739
|
language: param.language,
|
|
2609
2740
|
pkKey: param.pkKey,
|
|
2741
|
+
baseURL: param.baseURL,
|
|
2610
2742
|
});
|
|
2611
2743
|
if (error) {
|
|
2612
2744
|
return error;
|
|
@@ -2626,6 +2758,7 @@ class App {
|
|
|
2626
2758
|
currency: param.currency,
|
|
2627
2759
|
language: param.language,
|
|
2628
2760
|
pkKey: param.pkKey,
|
|
2761
|
+
baseURL: param.baseURL,
|
|
2629
2762
|
});
|
|
2630
2763
|
if (error) {
|
|
2631
2764
|
return error;
|
|
@@ -2650,6 +2783,7 @@ class App {
|
|
|
2650
2783
|
currency: param.currency,
|
|
2651
2784
|
language: param.language,
|
|
2652
2785
|
pkKey: param.pkKey,
|
|
2786
|
+
baseURL: param.baseURL,
|
|
2653
2787
|
});
|
|
2654
2788
|
if (error) {
|
|
2655
2789
|
return error;
|
|
@@ -2674,6 +2808,7 @@ class App {
|
|
|
2674
2808
|
currency: param.currency,
|
|
2675
2809
|
language: param.language,
|
|
2676
2810
|
pkKey: param.pkKey,
|
|
2811
|
+
baseURL: param.baseURL,
|
|
2677
2812
|
});
|
|
2678
2813
|
if (error) {
|
|
2679
2814
|
return error;
|
|
@@ -2697,6 +2832,7 @@ class App {
|
|
|
2697
2832
|
currency: param.currency,
|
|
2698
2833
|
language: param.language,
|
|
2699
2834
|
pkKey: param.pkKey,
|
|
2835
|
+
baseURL: param.baseURL,
|
|
2700
2836
|
});
|
|
2701
2837
|
if (error) {
|
|
2702
2838
|
return error;
|
|
@@ -2720,6 +2856,7 @@ class App {
|
|
|
2720
2856
|
currency: param.currency,
|
|
2721
2857
|
language: param.language,
|
|
2722
2858
|
pkKey: param.pkKey,
|
|
2859
|
+
baseURL: param.baseURL,
|
|
2723
2860
|
param: param.data,
|
|
2724
2861
|
});
|
|
2725
2862
|
if (error) {
|
|
@@ -2732,7 +2869,7 @@ class App {
|
|
|
2732
2869
|
}
|
|
2733
2870
|
}
|
|
2734
2871
|
async updateShipmentStatus(
|
|
2735
|
-
param = { authKey, id, shipment_id, data, bodyParam }
|
|
2872
|
+
param = { authKey, id, shipment_id, data, bodyParam },
|
|
2736
2873
|
) {
|
|
2737
2874
|
let url =
|
|
2738
2875
|
param.bodyParam == undefined || param.bodyParam == ""
|
|
@@ -2750,6 +2887,7 @@ class App {
|
|
|
2750
2887
|
currency: param.currency,
|
|
2751
2888
|
language: param.language,
|
|
2752
2889
|
pkKey: param.pkKey,
|
|
2890
|
+
baseURL: param.baseURL,
|
|
2753
2891
|
param: param.data,
|
|
2754
2892
|
});
|
|
2755
2893
|
if (error) {
|
|
@@ -2774,6 +2912,7 @@ class App {
|
|
|
2774
2912
|
currency: param.currency,
|
|
2775
2913
|
language: param.language,
|
|
2776
2914
|
pkKey: param.pkKey,
|
|
2915
|
+
baseURL: param.baseURL,
|
|
2777
2916
|
param: param.data,
|
|
2778
2917
|
});
|
|
2779
2918
|
if (error) {
|
|
@@ -2786,7 +2925,7 @@ class App {
|
|
|
2786
2925
|
}
|
|
2787
2926
|
}
|
|
2788
2927
|
async updateOrderShipment(
|
|
2789
|
-
param = { authKey, order_id, shipment_id, data, bodyParam }
|
|
2928
|
+
param = { authKey, order_id, shipment_id, data, bodyParam },
|
|
2790
2929
|
) {
|
|
2791
2930
|
let url =
|
|
2792
2931
|
param.bodyParam == undefined || param.bodyParam == ""
|
|
@@ -2803,6 +2942,7 @@ class App {
|
|
|
2803
2942
|
currency: param.currency,
|
|
2804
2943
|
language: param.language,
|
|
2805
2944
|
pkKey: param.pkKey,
|
|
2945
|
+
baseURL: param.baseURL,
|
|
2806
2946
|
param: param.data,
|
|
2807
2947
|
});
|
|
2808
2948
|
if (error) {
|
|
@@ -2827,6 +2967,7 @@ class App {
|
|
|
2827
2967
|
currency: param.currency,
|
|
2828
2968
|
language: param.language,
|
|
2829
2969
|
pkKey: param.pkKey,
|
|
2970
|
+
baseURL: param.baseURL,
|
|
2830
2971
|
});
|
|
2831
2972
|
if (error) {
|
|
2832
2973
|
return error;
|
|
@@ -2846,6 +2987,7 @@ class App {
|
|
|
2846
2987
|
currency: param.currency,
|
|
2847
2988
|
language: param.language,
|
|
2848
2989
|
pkKey: param.pkKey,
|
|
2990
|
+
baseURL: param.baseURL,
|
|
2849
2991
|
param: param.data,
|
|
2850
2992
|
});
|
|
2851
2993
|
if (error) {
|
|
@@ -2866,6 +3008,7 @@ class App {
|
|
|
2866
3008
|
currency: param.currency,
|
|
2867
3009
|
language: param.language,
|
|
2868
3010
|
pkKey: param.pkKey,
|
|
3011
|
+
baseURL: param.baseURL,
|
|
2869
3012
|
param: param.data,
|
|
2870
3013
|
});
|
|
2871
3014
|
if (error) {
|
|
@@ -2886,6 +3029,7 @@ class App {
|
|
|
2886
3029
|
currency: param.currency,
|
|
2887
3030
|
language: param.language,
|
|
2888
3031
|
pkKey: param.pkKey,
|
|
3032
|
+
baseURL: param.baseURL,
|
|
2889
3033
|
});
|
|
2890
3034
|
if (error) {
|
|
2891
3035
|
return error;
|
|
@@ -2908,6 +3052,7 @@ class App {
|
|
|
2908
3052
|
currency: param.currency,
|
|
2909
3053
|
language: param.language,
|
|
2910
3054
|
pkKey: param.pkKey,
|
|
3055
|
+
baseURL: param.baseURL,
|
|
2911
3056
|
});
|
|
2912
3057
|
if (error) {
|
|
2913
3058
|
return error;
|
|
@@ -2930,6 +3075,7 @@ class App {
|
|
|
2930
3075
|
currency: param.currency,
|
|
2931
3076
|
language: param.language,
|
|
2932
3077
|
pkKey: param.pkKey,
|
|
3078
|
+
baseURL: param.baseURL,
|
|
2933
3079
|
param: param.data,
|
|
2934
3080
|
});
|
|
2935
3081
|
if (error) {
|
|
@@ -2942,7 +3088,7 @@ class App {
|
|
|
2942
3088
|
}
|
|
2943
3089
|
}
|
|
2944
3090
|
async confirmOrderByUser(
|
|
2945
|
-
param = { authKey, data, bodyParam, order_ref, access_key }
|
|
3091
|
+
param = { authKey, data, bodyParam, order_ref, access_key },
|
|
2946
3092
|
) {
|
|
2947
3093
|
try {
|
|
2948
3094
|
const [error, responseJson] = await network.networkCall({
|
|
@@ -2952,6 +3098,7 @@ class App {
|
|
|
2952
3098
|
currency: param.currency,
|
|
2953
3099
|
language: param.language,
|
|
2954
3100
|
pkKey: param.pkKey,
|
|
3101
|
+
baseURL: param.baseURL,
|
|
2955
3102
|
barrow_access_key: param.access_key,
|
|
2956
3103
|
param: param.data,
|
|
2957
3104
|
});
|
|
@@ -2974,6 +3121,7 @@ class App {
|
|
|
2974
3121
|
currency: param.currency,
|
|
2975
3122
|
language: param.language,
|
|
2976
3123
|
pkKey: param.pkKey,
|
|
3124
|
+
baseURL: param.baseURL,
|
|
2977
3125
|
});
|
|
2978
3126
|
if (error) {
|
|
2979
3127
|
return error;
|
|
@@ -2999,6 +3147,7 @@ class App {
|
|
|
2999
3147
|
currency: param.currency,
|
|
3000
3148
|
language: param.language,
|
|
3001
3149
|
pkKey: param.pkKey,
|
|
3150
|
+
baseURL: param.baseURL,
|
|
3002
3151
|
});
|
|
3003
3152
|
if (error) {
|
|
3004
3153
|
return error;
|
|
@@ -3022,6 +3171,7 @@ class App {
|
|
|
3022
3171
|
currency: param.currency,
|
|
3023
3172
|
language: param.language,
|
|
3024
3173
|
pkKey: param.pkKey,
|
|
3174
|
+
baseURL: param.baseURL,
|
|
3025
3175
|
});
|
|
3026
3176
|
if (error) {
|
|
3027
3177
|
return error;
|
|
@@ -3035,7 +3185,7 @@ class App {
|
|
|
3035
3185
|
|
|
3036
3186
|
//
|
|
3037
3187
|
async getExternalShipmentMethods(
|
|
3038
|
-
param = { authKey, shipping_method_id, bodyParam }
|
|
3188
|
+
param = { authKey, shipping_method_id, bodyParam },
|
|
3039
3189
|
) {
|
|
3040
3190
|
let url =
|
|
3041
3191
|
param.bodyParam == undefined || param.bodyParam == ""
|
|
@@ -3051,6 +3201,7 @@ class App {
|
|
|
3051
3201
|
currency: param.currency,
|
|
3052
3202
|
language: param.language,
|
|
3053
3203
|
pkKey: param.pkKey,
|
|
3204
|
+
baseURL: param.baseURL,
|
|
3054
3205
|
});
|
|
3055
3206
|
if (error) {
|
|
3056
3207
|
return error;
|
|
@@ -3063,7 +3214,7 @@ class App {
|
|
|
3063
3214
|
}
|
|
3064
3215
|
|
|
3065
3216
|
async getExternalShipmentLabel(
|
|
3066
|
-
param = { authKey, order_id, shipment_id }
|
|
3217
|
+
param = { authKey, order_id, shipment_id },
|
|
3067
3218
|
) {
|
|
3068
3219
|
try {
|
|
3069
3220
|
const [error, responseJson] = await network.networkCall({
|
|
@@ -3073,6 +3224,7 @@ class App {
|
|
|
3073
3224
|
currency: param.currency,
|
|
3074
3225
|
language: param.language,
|
|
3075
3226
|
pkKey: param.pkKey,
|
|
3227
|
+
baseURL: param.baseURL,
|
|
3076
3228
|
});
|
|
3077
3229
|
if (error) {
|
|
3078
3230
|
return error;
|
|
@@ -3117,6 +3269,7 @@ class App {
|
|
|
3117
3269
|
currency: param.currency,
|
|
3118
3270
|
language: param.language,
|
|
3119
3271
|
pkKey: param.pkKey,
|
|
3272
|
+
baseURL: param.baseURL,
|
|
3120
3273
|
param: param.data,
|
|
3121
3274
|
});
|
|
3122
3275
|
if (error) {
|
|
@@ -3137,6 +3290,7 @@ class App {
|
|
|
3137
3290
|
currency: param.currency,
|
|
3138
3291
|
language: param.language,
|
|
3139
3292
|
pkKey: param.pkKey,
|
|
3293
|
+
baseURL: param.baseURL,
|
|
3140
3294
|
});
|
|
3141
3295
|
if (error) {
|
|
3142
3296
|
return error;
|
|
@@ -3157,6 +3311,7 @@ class App {
|
|
|
3157
3311
|
currency: param.currency,
|
|
3158
3312
|
language: param.language,
|
|
3159
3313
|
pkKey: param.pkKey,
|
|
3314
|
+
baseURL: param.baseURL,
|
|
3160
3315
|
});
|
|
3161
3316
|
if (error) {
|
|
3162
3317
|
return error;
|
|
@@ -3176,6 +3331,7 @@ class App {
|
|
|
3176
3331
|
currency: param.currency,
|
|
3177
3332
|
language: param.language,
|
|
3178
3333
|
pkKey: param.pkKey,
|
|
3334
|
+
baseURL: param.baseURL,
|
|
3179
3335
|
});
|
|
3180
3336
|
if (error) {
|
|
3181
3337
|
return error;
|
|
@@ -3203,6 +3359,7 @@ class App {
|
|
|
3203
3359
|
currency: param.currency,
|
|
3204
3360
|
language: param.language,
|
|
3205
3361
|
pkKey: param.pkKey,
|
|
3362
|
+
baseURL: param.baseURL,
|
|
3206
3363
|
param: param.data,
|
|
3207
3364
|
});
|
|
3208
3365
|
if (error) {
|
|
@@ -3223,6 +3380,7 @@ class App {
|
|
|
3223
3380
|
currency: param.currency,
|
|
3224
3381
|
language: param.language,
|
|
3225
3382
|
pkKey: param.pkKey,
|
|
3383
|
+
baseURL: param.baseURL,
|
|
3226
3384
|
});
|
|
3227
3385
|
if (error) {
|
|
3228
3386
|
return error;
|
|
@@ -3248,6 +3406,7 @@ class App {
|
|
|
3248
3406
|
currency: param.currency,
|
|
3249
3407
|
language: param.language,
|
|
3250
3408
|
pkKey: param.pkKey,
|
|
3409
|
+
baseURL: param.baseURL,
|
|
3251
3410
|
});
|
|
3252
3411
|
if (error) {
|
|
3253
3412
|
return error;
|
|
@@ -3272,6 +3431,7 @@ class App {
|
|
|
3272
3431
|
currency: param.currency,
|
|
3273
3432
|
language: param.language,
|
|
3274
3433
|
pkKey: param.pkKey,
|
|
3434
|
+
baseURL: param.baseURL,
|
|
3275
3435
|
});
|
|
3276
3436
|
if (error) {
|
|
3277
3437
|
return error;
|
|
@@ -3299,6 +3459,7 @@ class App {
|
|
|
3299
3459
|
currency: param.currency,
|
|
3300
3460
|
language: param.language,
|
|
3301
3461
|
pkKey: param.pkKey,
|
|
3462
|
+
baseURL: param.baseURL,
|
|
3302
3463
|
param: param.data,
|
|
3303
3464
|
});
|
|
3304
3465
|
if (error) {
|
|
@@ -3319,6 +3480,7 @@ class App {
|
|
|
3319
3480
|
currency: param.currency,
|
|
3320
3481
|
language: param.language,
|
|
3321
3482
|
pkKey: param.pkKey,
|
|
3483
|
+
baseURL: param.baseURL,
|
|
3322
3484
|
});
|
|
3323
3485
|
if (error) {
|
|
3324
3486
|
return error;
|
|
@@ -3343,6 +3505,7 @@ class App {
|
|
|
3343
3505
|
currency: param.currency,
|
|
3344
3506
|
language: param.language,
|
|
3345
3507
|
pkKey: param.pkKey,
|
|
3508
|
+
baseURL: param.baseURL,
|
|
3346
3509
|
});
|
|
3347
3510
|
if (error) {
|
|
3348
3511
|
return error;
|
|
@@ -3366,6 +3529,7 @@ class App {
|
|
|
3366
3529
|
currency: param.currency,
|
|
3367
3530
|
language: param.language,
|
|
3368
3531
|
pkKey: param.pkKey,
|
|
3532
|
+
baseURL: param.baseURL,
|
|
3369
3533
|
});
|
|
3370
3534
|
if (error) {
|
|
3371
3535
|
return error;
|
|
@@ -3390,6 +3554,7 @@ class App {
|
|
|
3390
3554
|
currency: param.currency,
|
|
3391
3555
|
language: param.language,
|
|
3392
3556
|
pkKey: param.pkKey,
|
|
3557
|
+
baseURL: param.baseURL,
|
|
3393
3558
|
});
|
|
3394
3559
|
if (error) {
|
|
3395
3560
|
return error;
|
|
@@ -3409,6 +3574,7 @@ class App {
|
|
|
3409
3574
|
currency: param.currency,
|
|
3410
3575
|
language: param.language,
|
|
3411
3576
|
pkKey: param.pkKey,
|
|
3577
|
+
baseURL: param.baseURL,
|
|
3412
3578
|
});
|
|
3413
3579
|
if (error) {
|
|
3414
3580
|
return error;
|
|
@@ -3428,6 +3594,7 @@ class App {
|
|
|
3428
3594
|
currency: param.currency,
|
|
3429
3595
|
language: param.language,
|
|
3430
3596
|
pkKey: param.pkKey,
|
|
3597
|
+
baseURL: param.baseURL,
|
|
3431
3598
|
});
|
|
3432
3599
|
if (error) {
|
|
3433
3600
|
return error;
|
|
@@ -3455,6 +3622,7 @@ class App {
|
|
|
3455
3622
|
currency: param.currency,
|
|
3456
3623
|
language: param.language,
|
|
3457
3624
|
pkKey: param.pkKey,
|
|
3625
|
+
baseURL: param.baseURL,
|
|
3458
3626
|
param: param.data,
|
|
3459
3627
|
});
|
|
3460
3628
|
if (error) {
|
|
@@ -3475,6 +3643,7 @@ class App {
|
|
|
3475
3643
|
currency: param.currency,
|
|
3476
3644
|
language: param.language,
|
|
3477
3645
|
pkKey: param.pkKey,
|
|
3646
|
+
baseURL: param.baseURL,
|
|
3478
3647
|
});
|
|
3479
3648
|
if (error) {
|
|
3480
3649
|
return error;
|
|
@@ -3499,6 +3668,7 @@ class App {
|
|
|
3499
3668
|
currency: param.currency,
|
|
3500
3669
|
language: param.language,
|
|
3501
3670
|
pkKey: param.pkKey,
|
|
3671
|
+
baseURL: param.baseURL,
|
|
3502
3672
|
});
|
|
3503
3673
|
if (error) {
|
|
3504
3674
|
return error;
|
|
@@ -3527,6 +3697,7 @@ class App {
|
|
|
3527
3697
|
currency: param.currency,
|
|
3528
3698
|
language: param.language,
|
|
3529
3699
|
pkKey: param.pkKey,
|
|
3700
|
+
baseURL: param.baseURL,
|
|
3530
3701
|
param: param.data,
|
|
3531
3702
|
});
|
|
3532
3703
|
if (error) {
|
|
@@ -3547,6 +3718,7 @@ class App {
|
|
|
3547
3718
|
currency: param.currency,
|
|
3548
3719
|
language: param.language,
|
|
3549
3720
|
pkKey: param.pkKey,
|
|
3721
|
+
baseURL: param.baseURL,
|
|
3550
3722
|
});
|
|
3551
3723
|
if (error) {
|
|
3552
3724
|
return error;
|
|
@@ -3568,6 +3740,7 @@ class App {
|
|
|
3568
3740
|
currency: param.currency,
|
|
3569
3741
|
language: param.language,
|
|
3570
3742
|
pkKey: param.pkKey,
|
|
3743
|
+
baseURL: param.baseURL,
|
|
3571
3744
|
param: param.data,
|
|
3572
3745
|
});
|
|
3573
3746
|
if (error) {
|
|
@@ -3594,6 +3767,7 @@ class App {
|
|
|
3594
3767
|
currency: param.currency,
|
|
3595
3768
|
language: param.language,
|
|
3596
3769
|
pkKey: param.pkKey,
|
|
3770
|
+
baseURL: param.baseURL,
|
|
3597
3771
|
});
|
|
3598
3772
|
if (error) {
|
|
3599
3773
|
return error;
|
|
@@ -3619,6 +3793,7 @@ class App {
|
|
|
3619
3793
|
currency: param.currency,
|
|
3620
3794
|
language: param.language,
|
|
3621
3795
|
pkKey: param.pkKey,
|
|
3796
|
+
baseURL: param.baseURL,
|
|
3622
3797
|
});
|
|
3623
3798
|
if (error) {
|
|
3624
3799
|
return error;
|
|
@@ -3643,6 +3818,7 @@ class App {
|
|
|
3643
3818
|
currency: param.currency,
|
|
3644
3819
|
language: param.language,
|
|
3645
3820
|
pkKey: param.pkKey,
|
|
3821
|
+
baseURL: param.baseURL,
|
|
3646
3822
|
});
|
|
3647
3823
|
if (error) {
|
|
3648
3824
|
return error;
|
|
@@ -3667,6 +3843,7 @@ class App {
|
|
|
3667
3843
|
currency: param.currency,
|
|
3668
3844
|
language: param.language,
|
|
3669
3845
|
pkKey: param.pkKey,
|
|
3846
|
+
baseURL: param.baseURL,
|
|
3670
3847
|
});
|
|
3671
3848
|
if (error) {
|
|
3672
3849
|
return error;
|
|
@@ -3688,6 +3865,7 @@ class App {
|
|
|
3688
3865
|
currency: param.currency,
|
|
3689
3866
|
language: param.language,
|
|
3690
3867
|
pkKey: param.pkKey,
|
|
3868
|
+
baseURL: param.baseURL,
|
|
3691
3869
|
});
|
|
3692
3870
|
if (error) {
|
|
3693
3871
|
return error;
|
|
@@ -3707,6 +3885,7 @@ class App {
|
|
|
3707
3885
|
currency: param.currency,
|
|
3708
3886
|
language: param.language,
|
|
3709
3887
|
pkKey: param.pkKey,
|
|
3888
|
+
baseURL: param.baseURL,
|
|
3710
3889
|
param: param.data,
|
|
3711
3890
|
});
|
|
3712
3891
|
if (error) {
|
|
@@ -3733,6 +3912,7 @@ class App {
|
|
|
3733
3912
|
currency: param.currency,
|
|
3734
3913
|
language: param.language,
|
|
3735
3914
|
pkKey: param.pkKey,
|
|
3915
|
+
baseURL: param.baseURL,
|
|
3736
3916
|
});
|
|
3737
3917
|
if (error) {
|
|
3738
3918
|
return error;
|
|
@@ -3761,6 +3941,7 @@ class App {
|
|
|
3761
3941
|
currency: param.currency,
|
|
3762
3942
|
language: param.language,
|
|
3763
3943
|
pkKey: param.pkKey,
|
|
3944
|
+
baseURL: param.baseURL,
|
|
3764
3945
|
param: param.data,
|
|
3765
3946
|
});
|
|
3766
3947
|
if (error) {
|
|
@@ -3785,6 +3966,7 @@ class App {
|
|
|
3785
3966
|
currency: param.currency,
|
|
3786
3967
|
language: param.language,
|
|
3787
3968
|
pkKey: param.pkKey,
|
|
3969
|
+
baseURL: param.baseURL,
|
|
3788
3970
|
param: param.data,
|
|
3789
3971
|
});
|
|
3790
3972
|
if (error) {
|
|
@@ -3811,6 +3993,7 @@ class App {
|
|
|
3811
3993
|
currency: param.currency,
|
|
3812
3994
|
language: param.language,
|
|
3813
3995
|
pkKey: param.pkKey,
|
|
3996
|
+
baseURL: param.baseURL,
|
|
3814
3997
|
});
|
|
3815
3998
|
if (error) {
|
|
3816
3999
|
return error;
|
|
@@ -3837,6 +4020,7 @@ class App {
|
|
|
3837
4020
|
currency: param.currency,
|
|
3838
4021
|
language: param.language,
|
|
3839
4022
|
pkKey: param.pkKey,
|
|
4023
|
+
baseURL: param.baseURL,
|
|
3840
4024
|
});
|
|
3841
4025
|
if (error) {
|
|
3842
4026
|
return error;
|
|
@@ -3863,6 +4047,7 @@ class App {
|
|
|
3863
4047
|
currency: param.currency,
|
|
3864
4048
|
language: param.language,
|
|
3865
4049
|
pkKey: param.pkKey,
|
|
4050
|
+
baseURL: param.baseURL,
|
|
3866
4051
|
});
|
|
3867
4052
|
if (error) {
|
|
3868
4053
|
return error;
|
|
@@ -3888,6 +4073,7 @@ class App {
|
|
|
3888
4073
|
currency: param.currency,
|
|
3889
4074
|
language: param.language,
|
|
3890
4075
|
pkKey: param.pkKey,
|
|
4076
|
+
baseURL: param.baseURL,
|
|
3891
4077
|
});
|
|
3892
4078
|
if (error) {
|
|
3893
4079
|
return error;
|
|
@@ -3911,6 +4097,7 @@ class App {
|
|
|
3911
4097
|
currency: param.currency,
|
|
3912
4098
|
language: param.language,
|
|
3913
4099
|
pkKey: param.pkKey,
|
|
4100
|
+
baseURL: param.baseURL,
|
|
3914
4101
|
});
|
|
3915
4102
|
if (error) {
|
|
3916
4103
|
return error;
|
|
@@ -3930,6 +4117,7 @@ class App {
|
|
|
3930
4117
|
currency: param.currency,
|
|
3931
4118
|
language: param.language,
|
|
3932
4119
|
pkKey: param.pkKey,
|
|
4120
|
+
baseURL: param.baseURL,
|
|
3933
4121
|
param: param.data,
|
|
3934
4122
|
});
|
|
3935
4123
|
if (error) {
|
|
@@ -3950,6 +4138,7 @@ class App {
|
|
|
3950
4138
|
currency: param.currency,
|
|
3951
4139
|
language: param.language,
|
|
3952
4140
|
pkKey: param.pkKey,
|
|
4141
|
+
baseURL: param.baseURL,
|
|
3953
4142
|
param: param.data,
|
|
3954
4143
|
});
|
|
3955
4144
|
if (error) {
|
|
@@ -3976,6 +4165,7 @@ class App {
|
|
|
3976
4165
|
currency: param.currency,
|
|
3977
4166
|
language: param.language,
|
|
3978
4167
|
pkKey: param.pkKey,
|
|
4168
|
+
baseURL: param.baseURL,
|
|
3979
4169
|
});
|
|
3980
4170
|
if (error) {
|
|
3981
4171
|
return error;
|
|
@@ -3999,6 +4189,7 @@ class App {
|
|
|
3999
4189
|
currency: param.currency,
|
|
4000
4190
|
language: param.language,
|
|
4001
4191
|
pkKey: param.pkKey,
|
|
4192
|
+
baseURL: param.baseURL,
|
|
4002
4193
|
});
|
|
4003
4194
|
if (error) {
|
|
4004
4195
|
return error;
|
|
@@ -4019,6 +4210,7 @@ class App {
|
|
|
4019
4210
|
currency: param.currency,
|
|
4020
4211
|
language: param.language,
|
|
4021
4212
|
pkKey: param.pkKey,
|
|
4213
|
+
baseURL: param.baseURL,
|
|
4022
4214
|
param: param.data,
|
|
4023
4215
|
});
|
|
4024
4216
|
if (error) {
|
|
@@ -4039,6 +4231,7 @@ class App {
|
|
|
4039
4231
|
currency: param.currency,
|
|
4040
4232
|
language: param.language,
|
|
4041
4233
|
pkKey: param.pkKey,
|
|
4234
|
+
baseURL: param.baseURL,
|
|
4042
4235
|
param: param.data,
|
|
4043
4236
|
});
|
|
4044
4237
|
if (error) {
|
|
@@ -4064,6 +4257,7 @@ class App {
|
|
|
4064
4257
|
currency: param.currency,
|
|
4065
4258
|
language: param.language,
|
|
4066
4259
|
pkKey: param.pkKey,
|
|
4260
|
+
baseURL: param.baseURL,
|
|
4067
4261
|
});
|
|
4068
4262
|
if (error) {
|
|
4069
4263
|
return error;
|
|
@@ -4089,6 +4283,7 @@ class App {
|
|
|
4089
4283
|
currency: param.currency,
|
|
4090
4284
|
language: param.language,
|
|
4091
4285
|
pkKey: param.pkKey,
|
|
4286
|
+
baseURL: param.baseURL,
|
|
4092
4287
|
});
|
|
4093
4288
|
if (error) {
|
|
4094
4289
|
return error;
|
|
@@ -4114,6 +4309,7 @@ class App {
|
|
|
4114
4309
|
currency: param.currency,
|
|
4115
4310
|
language: param.language,
|
|
4116
4311
|
pkKey: param.pkKey,
|
|
4312
|
+
baseURL: param.baseURL,
|
|
4117
4313
|
});
|
|
4118
4314
|
if (error) {
|
|
4119
4315
|
return error;
|
|
@@ -4134,6 +4330,7 @@ class App {
|
|
|
4134
4330
|
currency: param.currency,
|
|
4135
4331
|
language: param.language,
|
|
4136
4332
|
pkKey: param.pkKey,
|
|
4333
|
+
baseURL: param.baseURL,
|
|
4137
4334
|
param: param.data,
|
|
4138
4335
|
});
|
|
4139
4336
|
if (error) {
|
|
@@ -4160,6 +4357,7 @@ class App {
|
|
|
4160
4357
|
currency: param.currency,
|
|
4161
4358
|
language: param.language,
|
|
4162
4359
|
pkKey: param.pkKey,
|
|
4360
|
+
baseURL: param.baseURL,
|
|
4163
4361
|
});
|
|
4164
4362
|
if (error) {
|
|
4165
4363
|
return error;
|
|
@@ -4179,6 +4377,7 @@ class App {
|
|
|
4179
4377
|
currency: param.currency,
|
|
4180
4378
|
language: param.language,
|
|
4181
4379
|
pkKey: param.pkKey,
|
|
4380
|
+
baseURL: param.baseURL,
|
|
4182
4381
|
});
|
|
4183
4382
|
if (error) {
|
|
4184
4383
|
return error;
|
|
@@ -4191,7 +4390,7 @@ class App {
|
|
|
4191
4390
|
}
|
|
4192
4391
|
|
|
4193
4392
|
async postAndEditDigitalContent(
|
|
4194
|
-
param = { listing_id, content_id, authKey, data }
|
|
4393
|
+
param = { listing_id, content_id, authKey, data },
|
|
4195
4394
|
) {
|
|
4196
4395
|
let method =
|
|
4197
4396
|
param.content_id == undefined || param.content_id == ""
|
|
@@ -4209,6 +4408,7 @@ class App {
|
|
|
4209
4408
|
currency: param.currency,
|
|
4210
4409
|
language: param.language,
|
|
4211
4410
|
pkKey: param.pkKey,
|
|
4411
|
+
baseURL: param.baseURL,
|
|
4212
4412
|
param: param.data,
|
|
4213
4413
|
});
|
|
4214
4414
|
if (error) {
|
|
@@ -4231,6 +4431,7 @@ class App {
|
|
|
4231
4431
|
currency: param.currency,
|
|
4232
4432
|
language: param.language,
|
|
4233
4433
|
pkKey: param.pkKey,
|
|
4434
|
+
baseURL: param.baseURL,
|
|
4234
4435
|
param: param.data,
|
|
4235
4436
|
});
|
|
4236
4437
|
if (error) {
|
|
@@ -4251,6 +4452,7 @@ class App {
|
|
|
4251
4452
|
currency: param.currency,
|
|
4252
4453
|
language: param.language,
|
|
4253
4454
|
pkKey: param.pkKey,
|
|
4455
|
+
baseURL: param.baseURL,
|
|
4254
4456
|
param: param.data,
|
|
4255
4457
|
});
|
|
4256
4458
|
if (error) {
|
|
@@ -4273,6 +4475,7 @@ class App {
|
|
|
4273
4475
|
currency: param.currency,
|
|
4274
4476
|
language: param.language,
|
|
4275
4477
|
pkKey: param.pkKey,
|
|
4478
|
+
baseURL: param.baseURL,
|
|
4276
4479
|
});
|
|
4277
4480
|
if (error) {
|
|
4278
4481
|
return error;
|
|
@@ -4297,6 +4500,7 @@ class App {
|
|
|
4297
4500
|
currency: param.currency,
|
|
4298
4501
|
language: param.language,
|
|
4299
4502
|
pkKey: param.pkKey,
|
|
4503
|
+
baseURL: param.baseURL,
|
|
4300
4504
|
});
|
|
4301
4505
|
if (error) {
|
|
4302
4506
|
return error;
|
|
@@ -4322,6 +4526,7 @@ class App {
|
|
|
4322
4526
|
currency: param.currency,
|
|
4323
4527
|
language: param.language,
|
|
4324
4528
|
pkKey: param.pkKey,
|
|
4529
|
+
baseURL: param.baseURL,
|
|
4325
4530
|
});
|
|
4326
4531
|
if (error) {
|
|
4327
4532
|
return error;
|
|
@@ -4347,6 +4552,7 @@ class App {
|
|
|
4347
4552
|
currency: param.currency,
|
|
4348
4553
|
language: param.language,
|
|
4349
4554
|
pkKey: param.pkKey,
|
|
4555
|
+
baseURL: param.baseURL,
|
|
4350
4556
|
});
|
|
4351
4557
|
if (error) {
|
|
4352
4558
|
return error;
|
|
@@ -4367,6 +4573,7 @@ class App {
|
|
|
4367
4573
|
currency: param.currency,
|
|
4368
4574
|
language: param.language,
|
|
4369
4575
|
pkKey: param.pkKey,
|
|
4576
|
+
baseURL: param.baseURL,
|
|
4370
4577
|
});
|
|
4371
4578
|
if (error) {
|
|
4372
4579
|
return error;
|
|
@@ -4380,7 +4587,7 @@ class App {
|
|
|
4380
4587
|
|
|
4381
4588
|
// get subscribeByMangopay details
|
|
4382
4589
|
async subscribeByMangopay(
|
|
4383
|
-
param = { listing_id, authKey, data, currency }
|
|
4590
|
+
param = { listing_id, authKey, data, currency },
|
|
4384
4591
|
) {
|
|
4385
4592
|
try {
|
|
4386
4593
|
const [error, responseJson] = await network.networkCall({
|
|
@@ -4391,6 +4598,7 @@ class App {
|
|
|
4391
4598
|
currency: param.currency,
|
|
4392
4599
|
language: param.language,
|
|
4393
4600
|
pkKey: param.pkKey,
|
|
4601
|
+
baseURL: param.baseURL,
|
|
4394
4602
|
});
|
|
4395
4603
|
if (error) {
|
|
4396
4604
|
return error;
|
|
@@ -4412,6 +4620,7 @@ class App {
|
|
|
4412
4620
|
currency: param.currency,
|
|
4413
4621
|
language: param.language,
|
|
4414
4622
|
pkKey: param.pkKey,
|
|
4623
|
+
baseURL: param.baseURL,
|
|
4415
4624
|
param: param.data,
|
|
4416
4625
|
});
|
|
4417
4626
|
if (error) {
|