tradly 1.0.86 → 1.0.89

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.
@@ -67,6 +67,7 @@ export const CART = "/products/v1/cart";
67
67
  export const CHECKOUT = "/checkout";
68
68
  export const EPHERMERALKEY = "/v1/payments/stripe/ephemeralKey";
69
69
  export const PAYMENTINTENT = "/v1/payments/stripe/paymentIntent";
70
+ export const COUPON = "/products/v1/cart/coupon";
70
71
 
71
72
  export const STRIPECONNECTACCOUNT =
72
73
  "/v1/payments/stripe/connect/account?account_id=";
package/Roots/App.js CHANGED
@@ -58,6 +58,7 @@ import {
58
58
  CREATE_FEEDBACK,
59
59
  GET_COMMENTS,
60
60
  CREATE_COMMENTS,
61
+ COUPON,
61
62
  } from "./../Constants/PathConstant.js";
62
63
  import serialization from "../Helper/Serialization.js";
63
64
  import { ImageConfig } from "../Helper/APIParam.js";
@@ -70,6 +71,7 @@ class App {
70
71
  path: path,
71
72
  method: Method.DELETE,
72
73
  authKey: param.authKey,
74
+ currency: param.currency,
73
75
  });
74
76
  if (error) {
75
77
  return error;
@@ -101,6 +103,7 @@ class App {
101
103
  path: TENANTSCOUNTRIES,
102
104
  method: Method.GET,
103
105
  authKey: param.authKey,
106
+ currency: param.currency,
104
107
  });
105
108
  if (error) {
106
109
  return error;
@@ -118,6 +121,7 @@ class App {
118
121
  path: url,
119
122
  method: Method.GET,
120
123
  authKey: param.authKey,
124
+ currency: param.currency,
121
125
  });
122
126
  if (error) {
123
127
  return error;
@@ -135,6 +139,7 @@ class App {
135
139
  path: url,
136
140
  method: Method.GET,
137
141
  authKey: param.authKey,
142
+ currency: param.currency,
138
143
  });
139
144
  if (error) {
140
145
  return error;
@@ -152,6 +157,7 @@ class App {
152
157
  method: Method.POST,
153
158
  param: param.data,
154
159
  authKey: param.authKey,
160
+ currency: param.currency,
155
161
  });
156
162
  if (error) {
157
163
  return error;
@@ -169,6 +175,7 @@ class App {
169
175
  method: Method.PATCH,
170
176
  param: param.data,
171
177
  authKey: param.authKey,
178
+ currency: param.currency,
172
179
  });
173
180
  if (error) {
174
181
  return error;
@@ -185,6 +192,7 @@ class App {
185
192
  path: HOME,
186
193
  method: Method.GET,
187
194
  authKey: param.authKey,
195
+ currency: param.currency,
188
196
  });
189
197
  if (error) {
190
198
  return error;
@@ -204,6 +212,7 @@ class App {
204
212
  path: LANGUAGES,
205
213
  method: Method.GET,
206
214
  authKey: param.authKey,
215
+ currency: param.currency,
207
216
  });
208
217
  if (error) {
209
218
  return error;
@@ -221,6 +230,7 @@ class App {
221
230
  path: TENANTLANGUAGES,
222
231
  method: Method.GET,
223
232
  authKey: param.authKey,
233
+ currency: param.currency,
224
234
  });
225
235
  if (error) {
226
236
  return error;
@@ -240,6 +250,7 @@ class App {
240
250
  method: Method.POST,
241
251
  param: param.data,
242
252
  authKey: param.authKey,
253
+ currency: param.currency,
243
254
  });
244
255
  if (error) {
245
256
  return error;
@@ -270,6 +281,7 @@ class App {
270
281
  path: USERS + `/${param.id}`,
271
282
  method: Method.GET,
272
283
  authKey: param.authKey,
284
+ currency: param.currency,
273
285
  });
274
286
  if (error) {
275
287
  return error;
@@ -296,6 +308,7 @@ class App {
296
308
  method: method,
297
309
  param: param.data,
298
310
  authKey: param.authKey,
311
+ currency: param.currency,
299
312
  });
300
313
  if (error) {
301
314
  return error;
@@ -316,6 +329,7 @@ class App {
316
329
  path: ADDRESS + url,
317
330
  method: Method.GET,
318
331
  authKey: param.authKey,
332
+ currency: param.currency,
319
333
  });
320
334
  if (error) {
321
335
  return error;
@@ -337,6 +351,7 @@ class App {
337
351
  path: PLACES_ADDRESS + url,
338
352
  method: Method.GET,
339
353
  authKey: param.authKey,
354
+ currency: param.currency,
340
355
  });
341
356
  if (error) {
342
357
  return error;
@@ -357,6 +372,7 @@ class App {
357
372
  path: PLACES_ADDRESS_DETAIL + url,
358
373
  method: Method.GET,
359
374
  authKey: param.authKey,
375
+ currency: param.currency,
360
376
  });
361
377
  if (error) {
362
378
  return error;
@@ -375,6 +391,7 @@ class App {
375
391
  path: SEARCHADDRESS + url,
376
392
  method: Method.GET,
377
393
  authKey: param.authKey,
394
+ currency: param.currency,
378
395
  });
379
396
  if (error) {
380
397
  return error;
@@ -392,6 +409,7 @@ class App {
392
409
  path: ADDRESS + url,
393
410
  method: Method.GET,
394
411
  authKey: param.authKey,
412
+ currency: param.currency,
395
413
  });
396
414
  if (error) {
397
415
  return error;
@@ -408,6 +426,7 @@ class App {
408
426
  path: ADDRESS + `/${param.id}`,
409
427
  method: Method.DELETE,
410
428
  authKey: param.authKey,
429
+ currency: param.currency,
411
430
  });
412
431
  if (error) {
413
432
  return error;
@@ -426,6 +445,7 @@ class App {
426
445
  path: ACCOUNTS + `${url}`,
427
446
  method: Method.GET,
428
447
  authKey: param.authKey,
448
+ currency: param.currency,
429
449
  });
430
450
  if (error) {
431
451
  return error;
@@ -453,6 +473,7 @@ class App {
453
473
  path: ACCOUNTS + `${path}`,
454
474
  method: Method.GET,
455
475
  authKey: param.authKey,
476
+ currency: param.currency,
456
477
  });
457
478
  if (error) {
458
479
  return error;
@@ -478,6 +499,7 @@ class App {
478
499
  path: path,
479
500
  method: method,
480
501
  authKey: param.authKey,
502
+ currency: param.currency,
481
503
  param: param.data,
482
504
  });
483
505
  if (error) {
@@ -498,6 +520,7 @@ class App {
498
520
  path: path,
499
521
  method: method,
500
522
  authKey: param.authKey,
523
+ currency: param.currency,
501
524
  param: param.data,
502
525
  });
503
526
  if (error) {
@@ -520,6 +543,7 @@ class App {
520
543
  path: path,
521
544
  method: method,
522
545
  authKey: param.authKey,
546
+ currency: param.currency,
523
547
  });
524
548
  if (error) {
525
549
  return error;
@@ -538,6 +562,7 @@ class App {
538
562
  path: path,
539
563
  method: method,
540
564
  authKey: param.authKey,
565
+ currency: param.currency,
541
566
  });
542
567
  if (error) {
543
568
  return error;
@@ -556,6 +581,7 @@ class App {
556
581
  path: path,
557
582
  method: method,
558
583
  authKey: param.authKey,
584
+ currency: param.currency,
559
585
  param: param.data,
560
586
  });
561
587
  if (error) {
@@ -574,6 +600,7 @@ class App {
574
600
  path: BLOCKEDACCOUNT + `${url}`,
575
601
  method: Method.GET,
576
602
  authKey: param.authKey,
603
+ currency: param.currency,
577
604
  });
578
605
  if (error) {
579
606
  return error;
@@ -591,6 +618,7 @@ class App {
591
618
  path: FOLLOWINGACCOUNT + `${url}`,
592
619
  method: Method.GET,
593
620
  authKey: param.authKey,
621
+ currency: param.currency,
594
622
  });
595
623
  if (error) {
596
624
  return error;
@@ -612,6 +640,7 @@ class App {
612
640
  path: LISTINGSUNIQUELOCATIONS + url,
613
641
  method: Method.GET,
614
642
  authKey: param.authKey,
643
+ currency: param.currency,
615
644
  });
616
645
  if (error) {
617
646
  return error;
@@ -632,6 +661,7 @@ class App {
632
661
  path: LISTINGS + url,
633
662
  method: Method.GET,
634
663
  authKey: param.authKey,
664
+ currency: param.currency,
635
665
  });
636
666
  if (error) {
637
667
  return error;
@@ -659,6 +689,7 @@ class App {
659
689
  path: LISTINGS + `${path}`,
660
690
  method: Method.GET,
661
691
  authKey: param.authKey,
692
+ currency: param.currency,
662
693
  });
663
694
  if (error) {
664
695
  return error;
@@ -682,6 +713,7 @@ class App {
682
713
  path: LISTINGS + `/${param.id}`,
683
714
  method: Method.DELETE,
684
715
  authKey: param.authKey,
716
+ currency: param.currency,
685
717
  });
686
718
  if (error) {
687
719
  return error;
@@ -706,6 +738,7 @@ class App {
706
738
  path: path,
707
739
  method: method,
708
740
  authKey: param.authKey,
741
+ currency: param.currency,
709
742
  param: param.data,
710
743
  });
711
744
  if (error) {
@@ -725,6 +758,7 @@ class App {
725
758
  path: path,
726
759
  method: method,
727
760
  authKey: param.authKey,
761
+ currency: param.currency,
728
762
  });
729
763
  if (error) {
730
764
  return error;
@@ -745,6 +779,7 @@ class App {
745
779
  path: LISTINGS + LIKE + url,
746
780
  method: Method.GET,
747
781
  authKey: param.authKey,
782
+ currency: param.currency,
748
783
  });
749
784
  if (error) {
750
785
  return error;
@@ -763,6 +798,7 @@ class App {
763
798
  path: path,
764
799
  method: method,
765
800
  authKey: param.authKey,
801
+ currency: param.currency,
766
802
  param: param.data,
767
803
  });
768
804
  if (error) {
@@ -784,6 +820,7 @@ class App {
784
820
  path: param.path + url,
785
821
  method: param.Method,
786
822
  authKey: param.authKey,
823
+ currency: param.currency,
787
824
  param: param.data,
788
825
  });
789
826
  if (error) {
@@ -802,6 +839,7 @@ class App {
802
839
  path: FOLLOWINGLISTING + `${url}`,
803
840
  method: Method.GET,
804
841
  authKey: param.authKey,
842
+ currency: param.currency,
805
843
  });
806
844
  if (error) {
807
845
  return error;
@@ -820,6 +858,7 @@ class App {
820
858
  path: path,
821
859
  method: Method.PUT,
822
860
  authKey: param.authKey,
861
+ currency: param.currency,
823
862
  param: param.data,
824
863
  });
825
864
  if (error) {
@@ -842,6 +881,7 @@ class App {
842
881
  path: path + url,
843
882
  method: Method.GET,
844
883
  authKey: param.authKey,
884
+ currency: param.currency,
845
885
  });
846
886
  if (error) {
847
887
  return error;
@@ -859,6 +899,7 @@ class App {
859
899
  path: VARIANTS,
860
900
  method: Method.GET,
861
901
  authKey: param.authKey,
902
+ currency: param.currency,
862
903
  });
863
904
  if (error) {
864
905
  return error;
@@ -887,6 +928,7 @@ class App {
887
928
  method: method,
888
929
  param: param.data,
889
930
  authKey: param.authKey,
931
+ currency: param.currency,
890
932
  });
891
933
  if (error) {
892
934
  return error;
@@ -908,6 +950,7 @@ class App {
908
950
  path: url,
909
951
  method: Method.DELETE,
910
952
  authKey: param.authKey,
953
+ currency: param.currency,
911
954
  });
912
955
  if (error) {
913
956
  return error;
@@ -925,6 +968,7 @@ class App {
925
968
  path: VARIANTTYPES,
926
969
  method: Method.GET,
927
970
  authKey: param.authKey,
971
+ currency: param.currency,
928
972
  });
929
973
  if (error) {
930
974
  return error;
@@ -950,6 +994,7 @@ class App {
950
994
  method: method,
951
995
  param: param.data,
952
996
  authKey: param.authKey,
997
+ currency: param.currency,
953
998
  });
954
999
  if (error) {
955
1000
  return error;
@@ -967,6 +1012,7 @@ class App {
967
1012
  path: url,
968
1013
  method: Method.DELETE,
969
1014
  authKey: param.authKey,
1015
+ currency: param.currency,
970
1016
  });
971
1017
  if (error) {
972
1018
  return error;
@@ -985,6 +1031,7 @@ class App {
985
1031
  path: url,
986
1032
  method: Method.GET,
987
1033
  authKey: param.authKey,
1034
+ currency: param.currency,
988
1035
  });
989
1036
  if (error) {
990
1037
  return error;
@@ -1006,6 +1053,7 @@ class App {
1006
1053
  path: url,
1007
1054
  method: Method.GET,
1008
1055
  authKey: param.authKey,
1056
+ currency: param.currency,
1009
1057
  });
1010
1058
  if (error) {
1011
1059
  return error;
@@ -1034,6 +1082,7 @@ class App {
1034
1082
  method: method,
1035
1083
  param: param.data,
1036
1084
  authKey: param.authKey,
1085
+ currency: param.currency,
1037
1086
  });
1038
1087
  if (error) {
1039
1088
  return error;
@@ -1055,6 +1104,7 @@ class App {
1055
1104
  path: url,
1056
1105
  method: Method.DELETE,
1057
1106
  authKey: param.authKey,
1107
+ currency: param.currency,
1058
1108
  });
1059
1109
  if (error) {
1060
1110
  return error;
@@ -1076,6 +1126,7 @@ class App {
1076
1126
  path: CATEGORY + url,
1077
1127
  method: Method.GET,
1078
1128
  authKey: param.authKey,
1129
+ currency: param.currency,
1079
1130
  });
1080
1131
  if (error) {
1081
1132
  return error;
@@ -1101,6 +1152,7 @@ class App {
1101
1152
  method: method,
1102
1153
  param: param.data,
1103
1154
  authKey: param.authKey,
1155
+ currency: param.currency,
1104
1156
  });
1105
1157
  if (error) {
1106
1158
  return error;
@@ -1117,6 +1169,7 @@ class App {
1117
1169
  path: CATEGORY + `/${param.id}`,
1118
1170
  method: Method.DELETE,
1119
1171
  authKey: param.authKey,
1172
+ currency: param.currency,
1120
1173
  });
1121
1174
  if (error) {
1122
1175
  return error;
@@ -1139,6 +1192,7 @@ class App {
1139
1192
  path: ATTRIBUTE + url,
1140
1193
  method: Method.GET,
1141
1194
  authKey: param.authKey,
1195
+ currency: param.currency,
1142
1196
  });
1143
1197
  if (error) {
1144
1198
  return error;
@@ -1164,6 +1218,7 @@ class App {
1164
1218
  method: method,
1165
1219
  param: param.data,
1166
1220
  authKey: param.authKey,
1221
+ currency: param.currency,
1167
1222
  });
1168
1223
  if (error) {
1169
1224
  return error;
@@ -1180,6 +1235,7 @@ class App {
1180
1235
  path: ATTRIBUTE + `/${param.id}`,
1181
1236
  method: Method.DELETE,
1182
1237
  authKey: param.authKey,
1238
+ currency: param.currency,
1183
1239
  });
1184
1240
  if (error) {
1185
1241
  return error;
@@ -1198,6 +1254,7 @@ class App {
1198
1254
  path: url,
1199
1255
  method: Method.GET,
1200
1256
  authKey: param.authKey,
1257
+ currency: param.currency,
1201
1258
  });
1202
1259
  if (error) {
1203
1260
  return error;
@@ -1216,6 +1273,7 @@ class App {
1216
1273
  path: url,
1217
1274
  method: Method.GET,
1218
1275
  authKey: param.authKey,
1276
+ currency: param.currency,
1219
1277
  });
1220
1278
  if (error) {
1221
1279
  return error;
@@ -1244,6 +1302,7 @@ class App {
1244
1302
  method: method,
1245
1303
  param: param.data,
1246
1304
  authKey: param.authKey,
1305
+ currency: param.currency,
1247
1306
  });
1248
1307
  if (error) {
1249
1308
  return error;
@@ -1262,6 +1321,7 @@ class App {
1262
1321
  path: url,
1263
1322
  method: Method.DELETE,
1264
1323
  authKey: param.authKey,
1324
+ currency: param.currency,
1265
1325
  });
1266
1326
  if (error) {
1267
1327
  return error;
@@ -1280,6 +1340,7 @@ class App {
1280
1340
  method: Method.POST,
1281
1341
  param: param.data,
1282
1342
  authKey: param.authKey,
1343
+ currency: param.currency,
1283
1344
  });
1284
1345
  if (error) {
1285
1346
  return error;
@@ -1297,6 +1358,7 @@ class App {
1297
1358
  method: Method.PATCH,
1298
1359
  param: param.data,
1299
1360
  authKey: param.authKey,
1361
+ currency: param.currency,
1300
1362
  });
1301
1363
  if (error) {
1302
1364
  return error;
@@ -1334,6 +1396,7 @@ class App {
1334
1396
  path: CART,
1335
1397
  method: Method.DELETE,
1336
1398
  authKey: param.authKey,
1399
+ currency: param.currency,
1337
1400
  });
1338
1401
  if (error) {
1339
1402
  return error;
@@ -1350,8 +1413,8 @@ class App {
1350
1413
  path: CART + CHECKOUT,
1351
1414
  method: Method.POST,
1352
1415
  authKey: param.authKey,
1353
- param: param.data,
1354
1416
  currency: param.currency,
1417
+ param: param.data,
1355
1418
  });
1356
1419
  if (error) {
1357
1420
  return error;
@@ -1368,8 +1431,8 @@ class App {
1368
1431
  path: LISTINGS + `/${param.id}` + CHECKOUT,
1369
1432
  method: Method.POST,
1370
1433
  authKey: param.authKey,
1371
- param: param.data,
1372
1434
  currency: param.currency,
1435
+ param: param.data,
1373
1436
  });
1374
1437
  if (error) {
1375
1438
  return error;
@@ -1386,6 +1449,7 @@ class App {
1386
1449
  path: EPHERMERALKEY,
1387
1450
  method: Method.POST,
1388
1451
  authKey: param.authKey,
1452
+ currency: param.currency,
1389
1453
  param: param.data,
1390
1454
  });
1391
1455
  if (error) {
@@ -1403,6 +1467,7 @@ class App {
1403
1467
  path: PAYMENTINTENT,
1404
1468
  method: Method.POST,
1405
1469
  authKey: param.authKey,
1470
+ currency: param.currency,
1406
1471
  param: param.data,
1407
1472
  });
1408
1473
  if (error) {
@@ -1414,6 +1479,44 @@ class App {
1414
1479
  return error;
1415
1480
  }
1416
1481
  }
1482
+
1483
+ async applyCoupon(param = { authKey, data }) {
1484
+ try {
1485
+ const [error, responseJson] = await network.networkCall({
1486
+ path: COUPON,
1487
+ method: Method.POST,
1488
+ param: param.data,
1489
+ authKey: param.authKey,
1490
+ currency: param.currency,
1491
+ });
1492
+ if (error) {
1493
+ return error;
1494
+ } else {
1495
+ return responseJson;
1496
+ }
1497
+ } catch (error) {
1498
+ return error;
1499
+ }
1500
+ }
1501
+ async removeCoupon(param = { authKey, data }) {
1502
+ try {
1503
+ const [error, responseJson] = await network.networkCall({
1504
+ path: COUPON,
1505
+ method: Method.DELETE,
1506
+ param: param.data,
1507
+ authKey: param.authKey,
1508
+ currency: param.currency,
1509
+ });
1510
+ if (error) {
1511
+ return error;
1512
+ } else {
1513
+ return responseJson;
1514
+ }
1515
+ } catch (error) {
1516
+ return error;
1517
+ }
1518
+ }
1519
+
1417
1520
  //MARK:-  KYC 
1418
1521
  async getStripeConnectAccount(param = { authKey, id }) {
1419
1522
  try {
@@ -1421,6 +1524,7 @@ class App {
1421
1524
  path: STRIPECONNECTACCOUNT + `${param.id}`,
1422
1525
  method: Method.GET,
1423
1526
  authKey: param.authKey,
1527
+ currency: param.currency,
1424
1528
  });
1425
1529
  if (error) {
1426
1530
  return error;
@@ -1437,6 +1541,7 @@ class App {
1437
1541
  path: CREATEACCOUNTLINK,
1438
1542
  method: Method.POST,
1439
1543
  authKey: param.authKey,
1544
+ currency: param.currency,
1440
1545
  param: param.data,
1441
1546
  });
1442
1547
  if (error) {
@@ -1454,6 +1559,7 @@ class App {
1454
1559
  path: CREATEEXPRESSLOGINLINK,
1455
1560
  method: Method.POST,
1456
1561
  authKey: param.authKey,
1562
+ currency: param.currency,
1457
1563
  param: param.data,
1458
1564
  });
1459
1565
  if (error) {
@@ -1476,6 +1582,7 @@ class App {
1476
1582
  path: ORDERS + url,
1477
1583
  method: Method.GET,
1478
1584
  authKey: param.authKey,
1585
+ currency: param.currency,
1479
1586
  });
1480
1587
  if (error) {
1481
1588
  return error;
@@ -1496,6 +1603,7 @@ class App {
1496
1603
  path: ORDERS + `/${param.id}` + url,
1497
1604
  method: Method.GET,
1498
1605
  authKey: param.authKey,
1606
+ currency: param.currency,
1499
1607
  });
1500
1608
  if (error) {
1501
1609
  return error;
@@ -1516,6 +1624,7 @@ class App {
1516
1624
  path: ORDERS + `/${param.id}` + STATUS + url,
1517
1625
  method: Method.PATCH,
1518
1626
  authKey: param.authKey,
1627
+ currency: param.currency,
1519
1628
  param: param.data,
1520
1629
  });
1521
1630
  if (error) {
@@ -1537,6 +1646,7 @@ class App {
1537
1646
  path: ORDERS + `/${param.id}` + url,
1538
1647
  method: Method.PATCH,
1539
1648
  authKey: param.authKey,
1649
+ currency: param.currency,
1540
1650
  param: param.data,
1541
1651
  });
1542
1652
  if (error) {
@@ -1558,6 +1668,7 @@ class App {
1558
1668
  path: REVIEW + url,
1559
1669
  method: Method.GET,
1560
1670
  authKey: param.authKey,
1671
+ currency: param.currency,
1561
1672
  });
1562
1673
  if (error) {
1563
1674
  return error;
@@ -1574,6 +1685,7 @@ class App {
1574
1685
  path: REVIEW,
1575
1686
  method: Method.POST,
1576
1687
  authKey: param.authKey,
1688
+ currency: param.currency,
1577
1689
  param: param.data,
1578
1690
  });
1579
1691
  if (error) {
@@ -1591,6 +1703,7 @@ class App {
1591
1703
  path: REVIEW + `/${param.id}/like`,
1592
1704
  method: Method.PATCH,
1593
1705
  authKey: param.authKey,
1706
+ currency: param.currency,
1594
1707
  param: param.data,
1595
1708
  });
1596
1709
  if (error) {
@@ -1608,6 +1721,7 @@ class App {
1608
1721
  path: PAYMENTSMETHODS,
1609
1722
  method: Method.GET,
1610
1723
  authKey: param.authKey,
1724
+ currency: param.currency,
1611
1725
  });
1612
1726
  if (error) {
1613
1727
  return error;
@@ -1627,6 +1741,7 @@ class App {
1627
1741
  : `${TENANTSHIPPINGMETHOD}?account_id=${param?.account_id}`,
1628
1742
  method: Method.GET,
1629
1743
  authKey: param.authKey,
1744
+ currency: param.currency,
1630
1745
  });
1631
1746
  if (error) {
1632
1747
  return error;
@@ -1668,6 +1783,7 @@ class App {
1668
1783
  path: path,
1669
1784
  method: method,
1670
1785
  authKey: param.authKey,
1786
+ currency: param.currency,
1671
1787
  param: param.data,
1672
1788
  });
1673
1789
  if (error) {
@@ -1685,6 +1801,7 @@ class App {
1685
1801
  path: CURRENCY + `/${param.id}`,
1686
1802
  method: Method.DELETE,
1687
1803
  authKey: param.authKey,
1804
+ currency: param.currency,
1688
1805
  });
1689
1806
  if (error) {
1690
1807
  return error;
@@ -1702,6 +1819,7 @@ class App {
1702
1819
  path: COLLECTIONS,
1703
1820
  method: Method.GET,
1704
1821
  authKey: param.authKey,
1822
+ currency: param.currency,
1705
1823
  });
1706
1824
  if (error) {
1707
1825
  return error;
@@ -1718,6 +1836,7 @@ class App {
1718
1836
  path: COLLECTIONS + `/${param.id}`,
1719
1837
  method: Method.GET,
1720
1838
  authKey: param.authKey,
1839
+ currency: param.currency,
1721
1840
  });
1722
1841
  if (error) {
1723
1842
  return error;
@@ -1742,6 +1861,7 @@ class App {
1742
1861
  path: path,
1743
1862
  method: method,
1744
1863
  authKey: param.authKey,
1864
+ currency: param.currency,
1745
1865
  param: param.data,
1746
1866
  });
1747
1867
  if (error) {
@@ -1759,6 +1879,7 @@ class App {
1759
1879
  path: COLLECTIONS + `/${param.id}`,
1760
1880
  method: Method.DELETE,
1761
1881
  authKey: param.authKey,
1882
+ currency: param.currency,
1762
1883
  });
1763
1884
  if (error) {
1764
1885
  return error;
@@ -1780,6 +1901,7 @@ class App {
1780
1901
  path: PROMO + url,
1781
1902
  method: Method.GET,
1782
1903
  authKey: param.authKey,
1904
+ currency: param.currency,
1783
1905
  });
1784
1906
  if (error) {
1785
1907
  return error;
@@ -1804,6 +1926,7 @@ class App {
1804
1926
  path: path,
1805
1927
  method: method,
1806
1928
  authKey: param.authKey,
1929
+ currency: param.currency,
1807
1930
  param: param.data,
1808
1931
  });
1809
1932
  if (error) {
@@ -1821,6 +1944,7 @@ class App {
1821
1944
  path: PROMO + `/${param.id}`,
1822
1945
  method: Method.DELETE,
1823
1946
  authKey: param.authKey,
1947
+ currency: param.currency,
1824
1948
  });
1825
1949
  if (error) {
1826
1950
  return error;
@@ -1842,6 +1966,7 @@ class App {
1842
1966
  path: TRANSACTIONS + url,
1843
1967
  method: Method.GET,
1844
1968
  authKey: param.authKey,
1969
+ currency: param.currency,
1845
1970
  });
1846
1971
  if (error) {
1847
1972
  return error;
@@ -1862,6 +1987,7 @@ class App {
1862
1987
  path: EARNINGS + url,
1863
1988
  method: Method.GET,
1864
1989
  authKey: param.authKey,
1990
+ currency: param.currency,
1865
1991
  });
1866
1992
  if (error) {
1867
1993
  return error;
@@ -1883,6 +2009,7 @@ class App {
1883
2009
  path: LAYER + url,
1884
2010
  method: Method.GET,
1885
2011
  authKey: param.authKey,
2012
+ currency: param.currency,
1886
2013
  });
1887
2014
  if (error) {
1888
2015
  return error;
@@ -1899,6 +2026,7 @@ class App {
1899
2026
  path: LAYER + `/${param.id}`,
1900
2027
  method: Method.GET,
1901
2028
  authKey: param.authKey,
2029
+ currency: param.currency,
1902
2030
  });
1903
2031
  if (error) {
1904
2032
  return error;
@@ -1915,6 +2043,7 @@ class App {
1915
2043
  path: LAYER + SLUG + `${param.id}`,
1916
2044
  method: Method.GET,
1917
2045
  authKey: param.authKey,
2046
+ currency: param.currency,
1918
2047
  });
1919
2048
  if (error) {
1920
2049
  return error;
@@ -1939,6 +2068,7 @@ class App {
1939
2068
  path: path,
1940
2069
  method: method,
1941
2070
  authKey: param.authKey,
2071
+ currency: param.currency,
1942
2072
  param: param.data,
1943
2073
  });
1944
2074
  if (error) {
@@ -1956,6 +2086,7 @@ class App {
1956
2086
  path: LAYER + `/${param.id}`,
1957
2087
  method: Method.DELETE,
1958
2088
  authKey: param.authKey,
2089
+ currency: param.currency,
1959
2090
  });
1960
2091
  if (error) {
1961
2092
  return error;
@@ -1978,6 +2109,7 @@ class App {
1978
2109
  path: CLIENTTRANSLATION_GROUPS + url,
1979
2110
  method: Method.GET,
1980
2111
  authKey: param.authKey,
2112
+ currency: param.currency,
1981
2113
  });
1982
2114
  if (error) {
1983
2115
  return error;
@@ -1999,6 +2131,7 @@ class App {
1999
2131
  path: CLIENTTRANSLATION_VALUES + url,
2000
2132
  method: Method.GET,
2001
2133
  authKey: param.authKey,
2134
+ currency: param.currency,
2002
2135
  });
2003
2136
  if (error) {
2004
2137
  return error;
@@ -2020,6 +2153,7 @@ class App {
2020
2153
  path: CLIENTTRANSLATION_VALUES_GROUP + url,
2021
2154
  method: Method.GET,
2022
2155
  authKey: param.authKey,
2156
+ currency: param.currency,
2023
2157
  });
2024
2158
  if (error) {
2025
2159
  return error;
@@ -2038,6 +2172,7 @@ class App {
2038
2172
  path: FEEDBACK_CATEGORIES,
2039
2173
  method: Method.GET,
2040
2174
  authKey: param.authKey,
2175
+ currency: param.currency,
2041
2176
  });
2042
2177
  if (error) {
2043
2178
  return error;
@@ -2054,6 +2189,7 @@ class App {
2054
2189
  path: CREATE_FEEDBACK,
2055
2190
  method: Method.POST,
2056
2191
  authKey: param.authKey,
2192
+ currency: param.currency,
2057
2193
  param: param.data,
2058
2194
  });
2059
2195
  if (error) {
@@ -2077,6 +2213,7 @@ class App {
2077
2213
  path: GET_COMMENTS + url,
2078
2214
  method: Method.GET,
2079
2215
  authKey: param.authKey,
2216
+ currency: param.currency,
2080
2217
  });
2081
2218
  if (error) {
2082
2219
  return error;
@@ -2102,6 +2239,7 @@ class App {
2102
2239
  path: path,
2103
2240
  method: method,
2104
2241
  authKey: param.authKey,
2242
+ currency: param.currency,
2105
2243
  param: param.data,
2106
2244
  });
2107
2245
  if (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.0.86",
3
+ "version": "1.0.89",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",