@gofynd/fdk-client-javascript 1.0.0 → 1.0.1
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/documentation/application/CATALOG.md +371 -371
- package/documentation/application/ORDER.md +272 -272
- package/documentation/application/PAYMENT.md +269 -269
- package/documentation/platform/CATALOG.md +1678 -1664
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/ORDER.md +1442 -1323
- package/documentation/platform/PAYMENT.md +88 -88
- package/index.js +7 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +302 -0
- package/sdk/application/Cart/CartApplicationValidator.js +1 -0
- package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
- package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
- package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
- package/sdk/application/Common/CommonApplicationClient.js +22 -0
- package/sdk/application/Common/CommonApplicationValidator.js +1 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
- package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationClient.js +215 -0
- package/sdk/application/Content/ContentApplicationValidator.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
- package/sdk/application/Lead/LeadApplicationClient.js +81 -0
- package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.js +146 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
- package/sdk/application/Order/OrderApplicationModel.js +329 -329
- package/sdk/application/Order/OrderApplicationValidator.js +1 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
- package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
- package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
- package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
- package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
- package/sdk/application/Share/ShareApplicationClient.js +87 -0
- package/sdk/application/Share/ShareApplicationValidator.js +1 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
- package/sdk/application/User/UserApplicationClient.js +405 -0
- package/sdk/application/User/UserApplicationValidator.js +1 -0
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
- package/sdk/platform/Common/CommonPlatformClient.js +26 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
- package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
- package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
- package/sdk/platform/Order/OrderPlatformClient.js +674 -15
- package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
- package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
- package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
- package/sdk/platform/PlatformApplicationClient.js +2514 -2524
- package/sdk/platform/PlatformClient.d.ts +2217 -2243
- package/sdk/platform/PlatformClient.js +2514 -2524
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
- package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
- package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
- package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
|
@@ -76,6 +76,17 @@ class PosCart {
|
|
|
76
76
|
if (error) {
|
|
77
77
|
return Promise.reject(new FDKClientValidationError(error));
|
|
78
78
|
}
|
|
79
|
+
|
|
80
|
+
// Showing warrnings if extra unknown parameters are found
|
|
81
|
+
const { error: warrning } = PosCartValidator.getCart().validate(
|
|
82
|
+
{ id, i, b, assignCardId, areaCode, buyNow },
|
|
83
|
+
{ abortEarly: false, allowUnknown: false }
|
|
84
|
+
);
|
|
85
|
+
if (warrning) {
|
|
86
|
+
console.log("Parameter Validation warrnings for getCart");
|
|
87
|
+
console.log(warrning);
|
|
88
|
+
}
|
|
89
|
+
|
|
79
90
|
const query_params = {};
|
|
80
91
|
query_params["id"] = id;
|
|
81
92
|
query_params["i"] = i;
|
|
@@ -114,6 +125,17 @@ class PosCart {
|
|
|
114
125
|
if (error) {
|
|
115
126
|
return Promise.reject(new FDKClientValidationError(error));
|
|
116
127
|
}
|
|
128
|
+
|
|
129
|
+
// Showing warrnings if extra unknown parameters are found
|
|
130
|
+
const { error: warrning } = PosCartValidator.getCartLastModified().validate(
|
|
131
|
+
{ id },
|
|
132
|
+
{ abortEarly: false, allowUnknown: false }
|
|
133
|
+
);
|
|
134
|
+
if (warrning) {
|
|
135
|
+
console.log("Parameter Validation warrnings for getCartLastModified");
|
|
136
|
+
console.log(warrning);
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
const query_params = {};
|
|
118
140
|
query_params["id"] = id;
|
|
119
141
|
|
|
@@ -151,6 +173,17 @@ class PosCart {
|
|
|
151
173
|
if (error) {
|
|
152
174
|
return Promise.reject(new FDKClientValidationError(error));
|
|
153
175
|
}
|
|
176
|
+
|
|
177
|
+
// Showing warrnings if extra unknown parameters are found
|
|
178
|
+
const { error: warrning } = PosCartValidator.addItems().validate(
|
|
179
|
+
{ body, i, b, areaCode, buyNow },
|
|
180
|
+
{ abortEarly: false, allowUnknown: false }
|
|
181
|
+
);
|
|
182
|
+
if (warrning) {
|
|
183
|
+
console.log("Parameter Validation warrnings for addItems");
|
|
184
|
+
console.log(warrning);
|
|
185
|
+
}
|
|
186
|
+
|
|
154
187
|
const query_params = {};
|
|
155
188
|
query_params["i"] = i;
|
|
156
189
|
query_params["b"] = b;
|
|
@@ -192,6 +225,17 @@ class PosCart {
|
|
|
192
225
|
if (error) {
|
|
193
226
|
return Promise.reject(new FDKClientValidationError(error));
|
|
194
227
|
}
|
|
228
|
+
|
|
229
|
+
// Showing warrnings if extra unknown parameters are found
|
|
230
|
+
const { error: warrning } = PosCartValidator.updateCart().validate(
|
|
231
|
+
{ body, id, i, b, areaCode, buyNow },
|
|
232
|
+
{ abortEarly: false, allowUnknown: false }
|
|
233
|
+
);
|
|
234
|
+
if (warrning) {
|
|
235
|
+
console.log("Parameter Validation warrnings for updateCart");
|
|
236
|
+
console.log(warrning);
|
|
237
|
+
}
|
|
238
|
+
|
|
195
239
|
const query_params = {};
|
|
196
240
|
query_params["id"] = id;
|
|
197
241
|
query_params["i"] = i;
|
|
@@ -230,6 +274,17 @@ class PosCart {
|
|
|
230
274
|
if (error) {
|
|
231
275
|
return Promise.reject(new FDKClientValidationError(error));
|
|
232
276
|
}
|
|
277
|
+
|
|
278
|
+
// Showing warrnings if extra unknown parameters are found
|
|
279
|
+
const { error: warrning } = PosCartValidator.getItemCount().validate(
|
|
280
|
+
{ id, buyNow },
|
|
281
|
+
{ abortEarly: false, allowUnknown: false }
|
|
282
|
+
);
|
|
283
|
+
if (warrning) {
|
|
284
|
+
console.log("Parameter Validation warrnings for getItemCount");
|
|
285
|
+
console.log(warrning);
|
|
286
|
+
}
|
|
287
|
+
|
|
233
288
|
const query_params = {};
|
|
234
289
|
query_params["id"] = id;
|
|
235
290
|
query_params["buy_now"] = buyNow;
|
|
@@ -265,6 +320,17 @@ class PosCart {
|
|
|
265
320
|
if (error) {
|
|
266
321
|
return Promise.reject(new FDKClientValidationError(error));
|
|
267
322
|
}
|
|
323
|
+
|
|
324
|
+
// Showing warrnings if extra unknown parameters are found
|
|
325
|
+
const { error: warrning } = PosCartValidator.getCoupons().validate(
|
|
326
|
+
{ id, buyNow },
|
|
327
|
+
{ abortEarly: false, allowUnknown: false }
|
|
328
|
+
);
|
|
329
|
+
if (warrning) {
|
|
330
|
+
console.log("Parameter Validation warrnings for getCoupons");
|
|
331
|
+
console.log(warrning);
|
|
332
|
+
}
|
|
333
|
+
|
|
268
334
|
const query_params = {};
|
|
269
335
|
query_params["id"] = id;
|
|
270
336
|
query_params["buy_now"] = buyNow;
|
|
@@ -304,6 +370,17 @@ class PosCart {
|
|
|
304
370
|
if (error) {
|
|
305
371
|
return Promise.reject(new FDKClientValidationError(error));
|
|
306
372
|
}
|
|
373
|
+
|
|
374
|
+
// Showing warrnings if extra unknown parameters are found
|
|
375
|
+
const { error: warrning } = PosCartValidator.applyCoupon().validate(
|
|
376
|
+
{ body, i, b, p, id, buyNow },
|
|
377
|
+
{ abortEarly: false, allowUnknown: false }
|
|
378
|
+
);
|
|
379
|
+
if (warrning) {
|
|
380
|
+
console.log("Parameter Validation warrnings for applyCoupon");
|
|
381
|
+
console.log(warrning);
|
|
382
|
+
}
|
|
383
|
+
|
|
307
384
|
const query_params = {};
|
|
308
385
|
query_params["i"] = i;
|
|
309
386
|
query_params["b"] = b;
|
|
@@ -342,6 +419,17 @@ class PosCart {
|
|
|
342
419
|
if (error) {
|
|
343
420
|
return Promise.reject(new FDKClientValidationError(error));
|
|
344
421
|
}
|
|
422
|
+
|
|
423
|
+
// Showing warrnings if extra unknown parameters are found
|
|
424
|
+
const { error: warrning } = PosCartValidator.removeCoupon().validate(
|
|
425
|
+
{ id, buyNow },
|
|
426
|
+
{ abortEarly: false, allowUnknown: false }
|
|
427
|
+
);
|
|
428
|
+
if (warrning) {
|
|
429
|
+
console.log("Parameter Validation warrnings for removeCoupon");
|
|
430
|
+
console.log(warrning);
|
|
431
|
+
}
|
|
432
|
+
|
|
345
433
|
const query_params = {};
|
|
346
434
|
query_params["id"] = id;
|
|
347
435
|
query_params["buy_now"] = buyNow;
|
|
@@ -381,6 +469,19 @@ class PosCart {
|
|
|
381
469
|
if (error) {
|
|
382
470
|
return Promise.reject(new FDKClientValidationError(error));
|
|
383
471
|
}
|
|
472
|
+
|
|
473
|
+
// Showing warrnings if extra unknown parameters are found
|
|
474
|
+
const {
|
|
475
|
+
error: warrning,
|
|
476
|
+
} = PosCartValidator.getBulkDiscountOffers().validate(
|
|
477
|
+
{ itemId, articleId, uid, slug },
|
|
478
|
+
{ abortEarly: false, allowUnknown: false }
|
|
479
|
+
);
|
|
480
|
+
if (warrning) {
|
|
481
|
+
console.log("Parameter Validation warrnings for getBulkDiscountOffers");
|
|
482
|
+
console.log(warrning);
|
|
483
|
+
}
|
|
484
|
+
|
|
384
485
|
const query_params = {};
|
|
385
486
|
query_params["item_id"] = itemId;
|
|
386
487
|
query_params["article_id"] = articleId;
|
|
@@ -421,6 +522,17 @@ class PosCart {
|
|
|
421
522
|
if (error) {
|
|
422
523
|
return Promise.reject(new FDKClientValidationError(error));
|
|
423
524
|
}
|
|
525
|
+
|
|
526
|
+
// Showing warrnings if extra unknown parameters are found
|
|
527
|
+
const { error: warrning } = PosCartValidator.applyRewardPoints().validate(
|
|
528
|
+
{ body, id, i, b, buyNow },
|
|
529
|
+
{ abortEarly: false, allowUnknown: false }
|
|
530
|
+
);
|
|
531
|
+
if (warrning) {
|
|
532
|
+
console.log("Parameter Validation warrnings for applyRewardPoints");
|
|
533
|
+
console.log(warrning);
|
|
534
|
+
}
|
|
535
|
+
|
|
424
536
|
const query_params = {};
|
|
425
537
|
query_params["id"] = id;
|
|
426
538
|
query_params["i"] = i;
|
|
@@ -469,6 +581,17 @@ class PosCart {
|
|
|
469
581
|
if (error) {
|
|
470
582
|
return Promise.reject(new FDKClientValidationError(error));
|
|
471
583
|
}
|
|
584
|
+
|
|
585
|
+
// Showing warrnings if extra unknown parameters are found
|
|
586
|
+
const { error: warrning } = PosCartValidator.getAddresses().validate(
|
|
587
|
+
{ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
588
|
+
{ abortEarly: false, allowUnknown: false }
|
|
589
|
+
);
|
|
590
|
+
if (warrning) {
|
|
591
|
+
console.log("Parameter Validation warrnings for getAddresses");
|
|
592
|
+
console.log(warrning);
|
|
593
|
+
}
|
|
594
|
+
|
|
472
595
|
const query_params = {};
|
|
473
596
|
query_params["cart_id"] = cartId;
|
|
474
597
|
query_params["buy_now"] = buyNow;
|
|
@@ -507,6 +630,17 @@ class PosCart {
|
|
|
507
630
|
if (error) {
|
|
508
631
|
return Promise.reject(new FDKClientValidationError(error));
|
|
509
632
|
}
|
|
633
|
+
|
|
634
|
+
// Showing warrnings if extra unknown parameters are found
|
|
635
|
+
const { error: warrning } = PosCartValidator.addAddress().validate(
|
|
636
|
+
{ body },
|
|
637
|
+
{ abortEarly: false, allowUnknown: false }
|
|
638
|
+
);
|
|
639
|
+
if (warrning) {
|
|
640
|
+
console.log("Parameter Validation warrnings for addAddress");
|
|
641
|
+
console.log(warrning);
|
|
642
|
+
}
|
|
643
|
+
|
|
510
644
|
const query_params = {};
|
|
511
645
|
|
|
512
646
|
const xHeaders = {};
|
|
@@ -553,6 +687,17 @@ class PosCart {
|
|
|
553
687
|
if (error) {
|
|
554
688
|
return Promise.reject(new FDKClientValidationError(error));
|
|
555
689
|
}
|
|
690
|
+
|
|
691
|
+
// Showing warrnings if extra unknown parameters are found
|
|
692
|
+
const { error: warrning } = PosCartValidator.getAddressById().validate(
|
|
693
|
+
{ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
694
|
+
{ abortEarly: false, allowUnknown: false }
|
|
695
|
+
);
|
|
696
|
+
if (warrning) {
|
|
697
|
+
console.log("Parameter Validation warrnings for getAddressById");
|
|
698
|
+
console.log(warrning);
|
|
699
|
+
}
|
|
700
|
+
|
|
556
701
|
const query_params = {};
|
|
557
702
|
query_params["cart_id"] = cartId;
|
|
558
703
|
query_params["buy_now"] = buyNow;
|
|
@@ -592,6 +737,17 @@ class PosCart {
|
|
|
592
737
|
if (error) {
|
|
593
738
|
return Promise.reject(new FDKClientValidationError(error));
|
|
594
739
|
}
|
|
740
|
+
|
|
741
|
+
// Showing warrnings if extra unknown parameters are found
|
|
742
|
+
const { error: warrning } = PosCartValidator.updateAddress().validate(
|
|
743
|
+
{ id, body },
|
|
744
|
+
{ abortEarly: false, allowUnknown: false }
|
|
745
|
+
);
|
|
746
|
+
if (warrning) {
|
|
747
|
+
console.log("Parameter Validation warrnings for updateAddress");
|
|
748
|
+
console.log(warrning);
|
|
749
|
+
}
|
|
750
|
+
|
|
595
751
|
const query_params = {};
|
|
596
752
|
|
|
597
753
|
const xHeaders = {};
|
|
@@ -624,6 +780,17 @@ class PosCart {
|
|
|
624
780
|
if (error) {
|
|
625
781
|
return Promise.reject(new FDKClientValidationError(error));
|
|
626
782
|
}
|
|
783
|
+
|
|
784
|
+
// Showing warrnings if extra unknown parameters are found
|
|
785
|
+
const { error: warrning } = PosCartValidator.removeAddress().validate(
|
|
786
|
+
{ id },
|
|
787
|
+
{ abortEarly: false, allowUnknown: false }
|
|
788
|
+
);
|
|
789
|
+
if (warrning) {
|
|
790
|
+
console.log("Parameter Validation warrnings for removeAddress");
|
|
791
|
+
console.log(warrning);
|
|
792
|
+
}
|
|
793
|
+
|
|
627
794
|
const query_params = {};
|
|
628
795
|
|
|
629
796
|
const xHeaders = {};
|
|
@@ -660,6 +827,17 @@ class PosCart {
|
|
|
660
827
|
if (error) {
|
|
661
828
|
return Promise.reject(new FDKClientValidationError(error));
|
|
662
829
|
}
|
|
830
|
+
|
|
831
|
+
// Showing warrnings if extra unknown parameters are found
|
|
832
|
+
const { error: warrning } = PosCartValidator.selectAddress().validate(
|
|
833
|
+
{ body, cartId, buyNow, i, b },
|
|
834
|
+
{ abortEarly: false, allowUnknown: false }
|
|
835
|
+
);
|
|
836
|
+
if (warrning) {
|
|
837
|
+
console.log("Parameter Validation warrnings for selectAddress");
|
|
838
|
+
console.log(warrning);
|
|
839
|
+
}
|
|
840
|
+
|
|
663
841
|
const query_params = {};
|
|
664
842
|
query_params["cart_id"] = cartId;
|
|
665
843
|
query_params["buy_now"] = buyNow;
|
|
@@ -698,6 +876,17 @@ class PosCart {
|
|
|
698
876
|
if (error) {
|
|
699
877
|
return Promise.reject(new FDKClientValidationError(error));
|
|
700
878
|
}
|
|
879
|
+
|
|
880
|
+
// Showing warrnings if extra unknown parameters are found
|
|
881
|
+
const { error: warrning } = PosCartValidator.selectPaymentMode().validate(
|
|
882
|
+
{ body, id, buyNow },
|
|
883
|
+
{ abortEarly: false, allowUnknown: false }
|
|
884
|
+
);
|
|
885
|
+
if (warrning) {
|
|
886
|
+
console.log("Parameter Validation warrnings for selectPaymentMode");
|
|
887
|
+
console.log(warrning);
|
|
888
|
+
}
|
|
889
|
+
|
|
701
890
|
const query_params = {};
|
|
702
891
|
query_params["id"] = id;
|
|
703
892
|
query_params["buy_now"] = buyNow;
|
|
@@ -754,6 +943,29 @@ class PosCart {
|
|
|
754
943
|
if (error) {
|
|
755
944
|
return Promise.reject(new FDKClientValidationError(error));
|
|
756
945
|
}
|
|
946
|
+
|
|
947
|
+
// Showing warrnings if extra unknown parameters are found
|
|
948
|
+
const {
|
|
949
|
+
error: warrning,
|
|
950
|
+
} = PosCartValidator.validateCouponForPayment().validate(
|
|
951
|
+
{
|
|
952
|
+
id,
|
|
953
|
+
buyNow,
|
|
954
|
+
addressId,
|
|
955
|
+
paymentMode,
|
|
956
|
+
paymentIdentifier,
|
|
957
|
+
aggregatorName,
|
|
958
|
+
merchantCode,
|
|
959
|
+
},
|
|
960
|
+
{ abortEarly: false, allowUnknown: false }
|
|
961
|
+
);
|
|
962
|
+
if (warrning) {
|
|
963
|
+
console.log(
|
|
964
|
+
"Parameter Validation warrnings for validateCouponForPayment"
|
|
965
|
+
);
|
|
966
|
+
console.log(warrning);
|
|
967
|
+
}
|
|
968
|
+
|
|
757
969
|
const query_params = {};
|
|
758
970
|
query_params["id"] = id;
|
|
759
971
|
query_params["buy_now"] = buyNow;
|
|
@@ -819,6 +1031,25 @@ class PosCart {
|
|
|
819
1031
|
if (error) {
|
|
820
1032
|
return Promise.reject(new FDKClientValidationError(error));
|
|
821
1033
|
}
|
|
1034
|
+
|
|
1035
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1036
|
+
const { error: warrning } = PosCartValidator.getShipments().validate(
|
|
1037
|
+
{
|
|
1038
|
+
pickAtStoreUid,
|
|
1039
|
+
orderingStoreId,
|
|
1040
|
+
p,
|
|
1041
|
+
id,
|
|
1042
|
+
addressId,
|
|
1043
|
+
areaCode,
|
|
1044
|
+
orderType,
|
|
1045
|
+
},
|
|
1046
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1047
|
+
);
|
|
1048
|
+
if (warrning) {
|
|
1049
|
+
console.log("Parameter Validation warrnings for getShipments");
|
|
1050
|
+
console.log(warrning);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
822
1053
|
const query_params = {};
|
|
823
1054
|
query_params["pick_at_store_uid"] = pickAtStoreUid;
|
|
824
1055
|
query_params["ordering_store_id"] = orderingStoreId;
|
|
@@ -867,6 +1098,17 @@ class PosCart {
|
|
|
867
1098
|
if (error) {
|
|
868
1099
|
return Promise.reject(new FDKClientValidationError(error));
|
|
869
1100
|
}
|
|
1101
|
+
|
|
1102
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1103
|
+
const { error: warrning } = PosCartValidator.updateShipments().validate(
|
|
1104
|
+
{ body, i, p, id, addressId, orderType },
|
|
1105
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1106
|
+
);
|
|
1107
|
+
if (warrning) {
|
|
1108
|
+
console.log("Parameter Validation warrnings for updateShipments");
|
|
1109
|
+
console.log(warrning);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
870
1112
|
const query_params = {};
|
|
871
1113
|
query_params["i"] = i;
|
|
872
1114
|
query_params["p"] = p;
|
|
@@ -905,6 +1147,17 @@ class PosCart {
|
|
|
905
1147
|
if (error) {
|
|
906
1148
|
return Promise.reject(new FDKClientValidationError(error));
|
|
907
1149
|
}
|
|
1150
|
+
|
|
1151
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1152
|
+
const { error: warrning } = PosCartValidator.checkoutCart().validate(
|
|
1153
|
+
{ body, id },
|
|
1154
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1155
|
+
);
|
|
1156
|
+
if (warrning) {
|
|
1157
|
+
console.log("Parameter Validation warrnings for checkoutCart");
|
|
1158
|
+
console.log(warrning);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
908
1161
|
const query_params = {};
|
|
909
1162
|
query_params["id"] = id;
|
|
910
1163
|
|
|
@@ -940,6 +1193,17 @@ class PosCart {
|
|
|
940
1193
|
if (error) {
|
|
941
1194
|
return Promise.reject(new FDKClientValidationError(error));
|
|
942
1195
|
}
|
|
1196
|
+
|
|
1197
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1198
|
+
const { error: warrning } = PosCartValidator.updateCartMeta().validate(
|
|
1199
|
+
{ body, id, buyNow },
|
|
1200
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1201
|
+
);
|
|
1202
|
+
if (warrning) {
|
|
1203
|
+
console.log("Parameter Validation warrnings for updateCartMeta");
|
|
1204
|
+
console.log(warrning);
|
|
1205
|
+
}
|
|
1206
|
+
|
|
943
1207
|
const query_params = {};
|
|
944
1208
|
query_params["id"] = id;
|
|
945
1209
|
query_params["buy_now"] = buyNow;
|
|
@@ -975,6 +1239,21 @@ class PosCart {
|
|
|
975
1239
|
if (error) {
|
|
976
1240
|
return Promise.reject(new FDKClientValidationError(error));
|
|
977
1241
|
}
|
|
1242
|
+
|
|
1243
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1244
|
+
const {
|
|
1245
|
+
error: warrning,
|
|
1246
|
+
} = PosCartValidator.getAvailableDeliveryModes().validate(
|
|
1247
|
+
{ areaCode, id },
|
|
1248
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1249
|
+
);
|
|
1250
|
+
if (warrning) {
|
|
1251
|
+
console.log(
|
|
1252
|
+
"Parameter Validation warrnings for getAvailableDeliveryModes"
|
|
1253
|
+
);
|
|
1254
|
+
console.log(warrning);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
978
1257
|
const query_params = {};
|
|
979
1258
|
query_params["area_code"] = areaCode;
|
|
980
1259
|
query_params["id"] = id;
|
|
@@ -1009,6 +1288,19 @@ class PosCart {
|
|
|
1009
1288
|
if (error) {
|
|
1010
1289
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1011
1290
|
}
|
|
1291
|
+
|
|
1292
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1293
|
+
const {
|
|
1294
|
+
error: warrning,
|
|
1295
|
+
} = PosCartValidator.getStoreAddressByUid().validate(
|
|
1296
|
+
{ storeUid },
|
|
1297
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1298
|
+
);
|
|
1299
|
+
if (warrning) {
|
|
1300
|
+
console.log("Parameter Validation warrnings for getStoreAddressByUid");
|
|
1301
|
+
console.log(warrning);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1012
1304
|
const query_params = {};
|
|
1013
1305
|
query_params["store_uid"] = storeUid;
|
|
1014
1306
|
|
|
@@ -1042,6 +1334,17 @@ class PosCart {
|
|
|
1042
1334
|
if (error) {
|
|
1043
1335
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1044
1336
|
}
|
|
1337
|
+
|
|
1338
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1339
|
+
const { error: warrning } = PosCartValidator.getCartShareLink().validate(
|
|
1340
|
+
{ body },
|
|
1341
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1342
|
+
);
|
|
1343
|
+
if (warrning) {
|
|
1344
|
+
console.log("Parameter Validation warrnings for getCartShareLink");
|
|
1345
|
+
console.log(warrning);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1045
1348
|
const query_params = {};
|
|
1046
1349
|
|
|
1047
1350
|
const xHeaders = {};
|
|
@@ -1074,6 +1377,17 @@ class PosCart {
|
|
|
1074
1377
|
if (error) {
|
|
1075
1378
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1076
1379
|
}
|
|
1380
|
+
|
|
1381
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1382
|
+
const { error: warrning } = PosCartValidator.getCartSharedItems().validate(
|
|
1383
|
+
{ token },
|
|
1384
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1385
|
+
);
|
|
1386
|
+
if (warrning) {
|
|
1387
|
+
console.log("Parameter Validation warrnings for getCartSharedItems");
|
|
1388
|
+
console.log(warrning);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1077
1391
|
const query_params = {};
|
|
1078
1392
|
|
|
1079
1393
|
const xHeaders = {};
|
|
@@ -1108,6 +1422,21 @@ class PosCart {
|
|
|
1108
1422
|
if (error) {
|
|
1109
1423
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1110
1424
|
}
|
|
1425
|
+
|
|
1426
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1427
|
+
const {
|
|
1428
|
+
error: warrning,
|
|
1429
|
+
} = PosCartValidator.updateCartWithSharedItems().validate(
|
|
1430
|
+
{ token, action },
|
|
1431
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1432
|
+
);
|
|
1433
|
+
if (warrning) {
|
|
1434
|
+
console.log(
|
|
1435
|
+
"Parameter Validation warrnings for updateCartWithSharedItems"
|
|
1436
|
+
);
|
|
1437
|
+
console.log(warrning);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1111
1440
|
const query_params = {};
|
|
1112
1441
|
|
|
1113
1442
|
const xHeaders = {};
|
|
@@ -52,6 +52,17 @@ class Rewards {
|
|
|
52
52
|
if (error) {
|
|
53
53
|
return Promise.reject(new FDKClientValidationError(error));
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
// Showing warrnings if extra unknown parameters are found
|
|
57
|
+
const { error: warrning } = RewardsValidator.getOfferByName().validate(
|
|
58
|
+
{ name },
|
|
59
|
+
{ abortEarly: false, allowUnknown: false }
|
|
60
|
+
);
|
|
61
|
+
if (warrning) {
|
|
62
|
+
console.log("Parameter Validation warrnings for getOfferByName");
|
|
63
|
+
console.log(warrning);
|
|
64
|
+
}
|
|
65
|
+
|
|
55
66
|
const query_params = {};
|
|
56
67
|
|
|
57
68
|
const xHeaders = {};
|
|
@@ -84,6 +95,17 @@ class Rewards {
|
|
|
84
95
|
if (error) {
|
|
85
96
|
return Promise.reject(new FDKClientValidationError(error));
|
|
86
97
|
}
|
|
98
|
+
|
|
99
|
+
// Showing warrnings if extra unknown parameters are found
|
|
100
|
+
const { error: warrning } = RewardsValidator.catalogueOrder().validate(
|
|
101
|
+
{ body },
|
|
102
|
+
{ abortEarly: false, allowUnknown: false }
|
|
103
|
+
);
|
|
104
|
+
if (warrning) {
|
|
105
|
+
console.log("Parameter Validation warrnings for catalogueOrder");
|
|
106
|
+
console.log(warrning);
|
|
107
|
+
}
|
|
108
|
+
|
|
87
109
|
const query_params = {};
|
|
88
110
|
|
|
89
111
|
const xHeaders = {};
|
|
@@ -118,6 +140,19 @@ class Rewards {
|
|
|
118
140
|
if (error) {
|
|
119
141
|
return Promise.reject(new FDKClientValidationError(error));
|
|
120
142
|
}
|
|
143
|
+
|
|
144
|
+
// Showing warrnings if extra unknown parameters are found
|
|
145
|
+
const {
|
|
146
|
+
error: warrning,
|
|
147
|
+
} = RewardsValidator.getUserPointsHistory().validate(
|
|
148
|
+
{ pageId, pageSize },
|
|
149
|
+
{ abortEarly: false, allowUnknown: false }
|
|
150
|
+
);
|
|
151
|
+
if (warrning) {
|
|
152
|
+
console.log("Parameter Validation warrnings for getUserPointsHistory");
|
|
153
|
+
console.log(warrning);
|
|
154
|
+
}
|
|
155
|
+
|
|
121
156
|
const query_params = {};
|
|
122
157
|
query_params["page_id"] = pageId;
|
|
123
158
|
query_params["page_size"] = pageSize;
|
|
@@ -177,6 +212,17 @@ class Rewards {
|
|
|
177
212
|
if (error) {
|
|
178
213
|
return Promise.reject(new FDKClientValidationError(error));
|
|
179
214
|
}
|
|
215
|
+
|
|
216
|
+
// Showing warrnings if extra unknown parameters are found
|
|
217
|
+
const { error: warrning } = RewardsValidator.getUserPoints().validate(
|
|
218
|
+
{},
|
|
219
|
+
{ abortEarly: false, allowUnknown: false }
|
|
220
|
+
);
|
|
221
|
+
if (warrning) {
|
|
222
|
+
console.log("Parameter Validation warrnings for getUserPoints");
|
|
223
|
+
console.log(warrning);
|
|
224
|
+
}
|
|
225
|
+
|
|
180
226
|
const query_params = {};
|
|
181
227
|
|
|
182
228
|
const xHeaders = {};
|
|
@@ -208,6 +254,19 @@ class Rewards {
|
|
|
208
254
|
if (error) {
|
|
209
255
|
return Promise.reject(new FDKClientValidationError(error));
|
|
210
256
|
}
|
|
257
|
+
|
|
258
|
+
// Showing warrnings if extra unknown parameters are found
|
|
259
|
+
const {
|
|
260
|
+
error: warrning,
|
|
261
|
+
} = RewardsValidator.getUserReferralDetails().validate(
|
|
262
|
+
{},
|
|
263
|
+
{ abortEarly: false, allowUnknown: false }
|
|
264
|
+
);
|
|
265
|
+
if (warrning) {
|
|
266
|
+
console.log("Parameter Validation warrnings for getUserReferralDetails");
|
|
267
|
+
console.log(warrning);
|
|
268
|
+
}
|
|
269
|
+
|
|
211
270
|
const query_params = {};
|
|
212
271
|
|
|
213
272
|
const xHeaders = {};
|
|
@@ -240,6 +299,17 @@ class Rewards {
|
|
|
240
299
|
if (error) {
|
|
241
300
|
return Promise.reject(new FDKClientValidationError(error));
|
|
242
301
|
}
|
|
302
|
+
|
|
303
|
+
// Showing warrnings if extra unknown parameters are found
|
|
304
|
+
const { error: warrning } = RewardsValidator.getOrderDiscount().validate(
|
|
305
|
+
{ body },
|
|
306
|
+
{ abortEarly: false, allowUnknown: false }
|
|
307
|
+
);
|
|
308
|
+
if (warrning) {
|
|
309
|
+
console.log("Parameter Validation warrnings for getOrderDiscount");
|
|
310
|
+
console.log(warrning);
|
|
311
|
+
}
|
|
312
|
+
|
|
243
313
|
const query_params = {};
|
|
244
314
|
|
|
245
315
|
const xHeaders = {};
|
|
@@ -272,6 +342,17 @@ class Rewards {
|
|
|
272
342
|
if (error) {
|
|
273
343
|
return Promise.reject(new FDKClientValidationError(error));
|
|
274
344
|
}
|
|
345
|
+
|
|
346
|
+
// Showing warrnings if extra unknown parameters are found
|
|
347
|
+
const { error: warrning } = RewardsValidator.redeemReferralCode().validate(
|
|
348
|
+
{ body },
|
|
349
|
+
{ abortEarly: false, allowUnknown: false }
|
|
350
|
+
);
|
|
351
|
+
if (warrning) {
|
|
352
|
+
console.log("Parameter Validation warrnings for redeemReferralCode");
|
|
353
|
+
console.log(warrning);
|
|
354
|
+
}
|
|
355
|
+
|
|
275
356
|
const query_params = {};
|
|
276
357
|
|
|
277
358
|
const xHeaders = {};
|