@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
|
@@ -73,6 +73,17 @@ class Cart {
|
|
|
73
73
|
if (error) {
|
|
74
74
|
return Promise.reject(new FDKClientValidationError(error));
|
|
75
75
|
}
|
|
76
|
+
|
|
77
|
+
// Showing warrnings if extra unknown parameters are found
|
|
78
|
+
const { error: warrning } = CartValidator.getCart().validate(
|
|
79
|
+
{ id, i, b, assignCardId, areaCode, buyNow },
|
|
80
|
+
{ abortEarly: false, allowUnknown: false }
|
|
81
|
+
);
|
|
82
|
+
if (warrning) {
|
|
83
|
+
console.log("Parameter Validation warrnings for getCart");
|
|
84
|
+
console.log(warrning);
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
const query_params = {};
|
|
77
88
|
query_params["id"] = id;
|
|
78
89
|
query_params["i"] = i;
|
|
@@ -111,6 +122,17 @@ class Cart {
|
|
|
111
122
|
if (error) {
|
|
112
123
|
return Promise.reject(new FDKClientValidationError(error));
|
|
113
124
|
}
|
|
125
|
+
|
|
126
|
+
// Showing warrnings if extra unknown parameters are found
|
|
127
|
+
const { error: warrning } = CartValidator.getCartLastModified().validate(
|
|
128
|
+
{ id },
|
|
129
|
+
{ abortEarly: false, allowUnknown: false }
|
|
130
|
+
);
|
|
131
|
+
if (warrning) {
|
|
132
|
+
console.log("Parameter Validation warrnings for getCartLastModified");
|
|
133
|
+
console.log(warrning);
|
|
134
|
+
}
|
|
135
|
+
|
|
114
136
|
const query_params = {};
|
|
115
137
|
query_params["id"] = id;
|
|
116
138
|
|
|
@@ -148,6 +170,17 @@ class Cart {
|
|
|
148
170
|
if (error) {
|
|
149
171
|
return Promise.reject(new FDKClientValidationError(error));
|
|
150
172
|
}
|
|
173
|
+
|
|
174
|
+
// Showing warrnings if extra unknown parameters are found
|
|
175
|
+
const { error: warrning } = CartValidator.addItems().validate(
|
|
176
|
+
{ body, i, b, areaCode, buyNow },
|
|
177
|
+
{ abortEarly: false, allowUnknown: false }
|
|
178
|
+
);
|
|
179
|
+
if (warrning) {
|
|
180
|
+
console.log("Parameter Validation warrnings for addItems");
|
|
181
|
+
console.log(warrning);
|
|
182
|
+
}
|
|
183
|
+
|
|
151
184
|
const query_params = {};
|
|
152
185
|
query_params["i"] = i;
|
|
153
186
|
query_params["b"] = b;
|
|
@@ -189,6 +222,17 @@ class Cart {
|
|
|
189
222
|
if (error) {
|
|
190
223
|
return Promise.reject(new FDKClientValidationError(error));
|
|
191
224
|
}
|
|
225
|
+
|
|
226
|
+
// Showing warrnings if extra unknown parameters are found
|
|
227
|
+
const { error: warrning } = CartValidator.updateCart().validate(
|
|
228
|
+
{ body, id, i, b, areaCode, buyNow },
|
|
229
|
+
{ abortEarly: false, allowUnknown: false }
|
|
230
|
+
);
|
|
231
|
+
if (warrning) {
|
|
232
|
+
console.log("Parameter Validation warrnings for updateCart");
|
|
233
|
+
console.log(warrning);
|
|
234
|
+
}
|
|
235
|
+
|
|
192
236
|
const query_params = {};
|
|
193
237
|
query_params["id"] = id;
|
|
194
238
|
query_params["i"] = i;
|
|
@@ -227,6 +271,17 @@ class Cart {
|
|
|
227
271
|
if (error) {
|
|
228
272
|
return Promise.reject(new FDKClientValidationError(error));
|
|
229
273
|
}
|
|
274
|
+
|
|
275
|
+
// Showing warrnings if extra unknown parameters are found
|
|
276
|
+
const { error: warrning } = CartValidator.getItemCount().validate(
|
|
277
|
+
{ id, buyNow },
|
|
278
|
+
{ abortEarly: false, allowUnknown: false }
|
|
279
|
+
);
|
|
280
|
+
if (warrning) {
|
|
281
|
+
console.log("Parameter Validation warrnings for getItemCount");
|
|
282
|
+
console.log(warrning);
|
|
283
|
+
}
|
|
284
|
+
|
|
230
285
|
const query_params = {};
|
|
231
286
|
query_params["id"] = id;
|
|
232
287
|
query_params["buy_now"] = buyNow;
|
|
@@ -262,6 +317,17 @@ class Cart {
|
|
|
262
317
|
if (error) {
|
|
263
318
|
return Promise.reject(new FDKClientValidationError(error));
|
|
264
319
|
}
|
|
320
|
+
|
|
321
|
+
// Showing warrnings if extra unknown parameters are found
|
|
322
|
+
const { error: warrning } = CartValidator.getCoupons().validate(
|
|
323
|
+
{ id, buyNow },
|
|
324
|
+
{ abortEarly: false, allowUnknown: false }
|
|
325
|
+
);
|
|
326
|
+
if (warrning) {
|
|
327
|
+
console.log("Parameter Validation warrnings for getCoupons");
|
|
328
|
+
console.log(warrning);
|
|
329
|
+
}
|
|
330
|
+
|
|
265
331
|
const query_params = {};
|
|
266
332
|
query_params["id"] = id;
|
|
267
333
|
query_params["buy_now"] = buyNow;
|
|
@@ -301,6 +367,17 @@ class Cart {
|
|
|
301
367
|
if (error) {
|
|
302
368
|
return Promise.reject(new FDKClientValidationError(error));
|
|
303
369
|
}
|
|
370
|
+
|
|
371
|
+
// Showing warrnings if extra unknown parameters are found
|
|
372
|
+
const { error: warrning } = CartValidator.applyCoupon().validate(
|
|
373
|
+
{ body, i, b, p, id, buyNow },
|
|
374
|
+
{ abortEarly: false, allowUnknown: false }
|
|
375
|
+
);
|
|
376
|
+
if (warrning) {
|
|
377
|
+
console.log("Parameter Validation warrnings for applyCoupon");
|
|
378
|
+
console.log(warrning);
|
|
379
|
+
}
|
|
380
|
+
|
|
304
381
|
const query_params = {};
|
|
305
382
|
query_params["i"] = i;
|
|
306
383
|
query_params["b"] = b;
|
|
@@ -339,6 +416,17 @@ class Cart {
|
|
|
339
416
|
if (error) {
|
|
340
417
|
return Promise.reject(new FDKClientValidationError(error));
|
|
341
418
|
}
|
|
419
|
+
|
|
420
|
+
// Showing warrnings if extra unknown parameters are found
|
|
421
|
+
const { error: warrning } = CartValidator.removeCoupon().validate(
|
|
422
|
+
{ id, buyNow },
|
|
423
|
+
{ abortEarly: false, allowUnknown: false }
|
|
424
|
+
);
|
|
425
|
+
if (warrning) {
|
|
426
|
+
console.log("Parameter Validation warrnings for removeCoupon");
|
|
427
|
+
console.log(warrning);
|
|
428
|
+
}
|
|
429
|
+
|
|
342
430
|
const query_params = {};
|
|
343
431
|
query_params["id"] = id;
|
|
344
432
|
query_params["buy_now"] = buyNow;
|
|
@@ -378,6 +466,17 @@ class Cart {
|
|
|
378
466
|
if (error) {
|
|
379
467
|
return Promise.reject(new FDKClientValidationError(error));
|
|
380
468
|
}
|
|
469
|
+
|
|
470
|
+
// Showing warrnings if extra unknown parameters are found
|
|
471
|
+
const { error: warrning } = CartValidator.getBulkDiscountOffers().validate(
|
|
472
|
+
{ itemId, articleId, uid, slug },
|
|
473
|
+
{ abortEarly: false, allowUnknown: false }
|
|
474
|
+
);
|
|
475
|
+
if (warrning) {
|
|
476
|
+
console.log("Parameter Validation warrnings for getBulkDiscountOffers");
|
|
477
|
+
console.log(warrning);
|
|
478
|
+
}
|
|
479
|
+
|
|
381
480
|
const query_params = {};
|
|
382
481
|
query_params["item_id"] = itemId;
|
|
383
482
|
query_params["article_id"] = articleId;
|
|
@@ -418,6 +517,17 @@ class Cart {
|
|
|
418
517
|
if (error) {
|
|
419
518
|
return Promise.reject(new FDKClientValidationError(error));
|
|
420
519
|
}
|
|
520
|
+
|
|
521
|
+
// Showing warrnings if extra unknown parameters are found
|
|
522
|
+
const { error: warrning } = CartValidator.applyRewardPoints().validate(
|
|
523
|
+
{ body, id, i, b, buyNow },
|
|
524
|
+
{ abortEarly: false, allowUnknown: false }
|
|
525
|
+
);
|
|
526
|
+
if (warrning) {
|
|
527
|
+
console.log("Parameter Validation warrnings for applyRewardPoints");
|
|
528
|
+
console.log(warrning);
|
|
529
|
+
}
|
|
530
|
+
|
|
421
531
|
const query_params = {};
|
|
422
532
|
query_params["id"] = id;
|
|
423
533
|
query_params["i"] = i;
|
|
@@ -466,6 +576,17 @@ class Cart {
|
|
|
466
576
|
if (error) {
|
|
467
577
|
return Promise.reject(new FDKClientValidationError(error));
|
|
468
578
|
}
|
|
579
|
+
|
|
580
|
+
// Showing warrnings if extra unknown parameters are found
|
|
581
|
+
const { error: warrning } = CartValidator.getAddresses().validate(
|
|
582
|
+
{ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
583
|
+
{ abortEarly: false, allowUnknown: false }
|
|
584
|
+
);
|
|
585
|
+
if (warrning) {
|
|
586
|
+
console.log("Parameter Validation warrnings for getAddresses");
|
|
587
|
+
console.log(warrning);
|
|
588
|
+
}
|
|
589
|
+
|
|
469
590
|
const query_params = {};
|
|
470
591
|
query_params["cart_id"] = cartId;
|
|
471
592
|
query_params["buy_now"] = buyNow;
|
|
@@ -504,6 +625,17 @@ class Cart {
|
|
|
504
625
|
if (error) {
|
|
505
626
|
return Promise.reject(new FDKClientValidationError(error));
|
|
506
627
|
}
|
|
628
|
+
|
|
629
|
+
// Showing warrnings if extra unknown parameters are found
|
|
630
|
+
const { error: warrning } = CartValidator.addAddress().validate(
|
|
631
|
+
{ body },
|
|
632
|
+
{ abortEarly: false, allowUnknown: false }
|
|
633
|
+
);
|
|
634
|
+
if (warrning) {
|
|
635
|
+
console.log("Parameter Validation warrnings for addAddress");
|
|
636
|
+
console.log(warrning);
|
|
637
|
+
}
|
|
638
|
+
|
|
507
639
|
const query_params = {};
|
|
508
640
|
|
|
509
641
|
const xHeaders = {};
|
|
@@ -550,6 +682,17 @@ class Cart {
|
|
|
550
682
|
if (error) {
|
|
551
683
|
return Promise.reject(new FDKClientValidationError(error));
|
|
552
684
|
}
|
|
685
|
+
|
|
686
|
+
// Showing warrnings if extra unknown parameters are found
|
|
687
|
+
const { error: warrning } = CartValidator.getAddressById().validate(
|
|
688
|
+
{ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault },
|
|
689
|
+
{ abortEarly: false, allowUnknown: false }
|
|
690
|
+
);
|
|
691
|
+
if (warrning) {
|
|
692
|
+
console.log("Parameter Validation warrnings for getAddressById");
|
|
693
|
+
console.log(warrning);
|
|
694
|
+
}
|
|
695
|
+
|
|
553
696
|
const query_params = {};
|
|
554
697
|
query_params["cart_id"] = cartId;
|
|
555
698
|
query_params["buy_now"] = buyNow;
|
|
@@ -589,6 +732,17 @@ class Cart {
|
|
|
589
732
|
if (error) {
|
|
590
733
|
return Promise.reject(new FDKClientValidationError(error));
|
|
591
734
|
}
|
|
735
|
+
|
|
736
|
+
// Showing warrnings if extra unknown parameters are found
|
|
737
|
+
const { error: warrning } = CartValidator.updateAddress().validate(
|
|
738
|
+
{ id, body },
|
|
739
|
+
{ abortEarly: false, allowUnknown: false }
|
|
740
|
+
);
|
|
741
|
+
if (warrning) {
|
|
742
|
+
console.log("Parameter Validation warrnings for updateAddress");
|
|
743
|
+
console.log(warrning);
|
|
744
|
+
}
|
|
745
|
+
|
|
592
746
|
const query_params = {};
|
|
593
747
|
|
|
594
748
|
const xHeaders = {};
|
|
@@ -621,6 +775,17 @@ class Cart {
|
|
|
621
775
|
if (error) {
|
|
622
776
|
return Promise.reject(new FDKClientValidationError(error));
|
|
623
777
|
}
|
|
778
|
+
|
|
779
|
+
// Showing warrnings if extra unknown parameters are found
|
|
780
|
+
const { error: warrning } = CartValidator.removeAddress().validate(
|
|
781
|
+
{ id },
|
|
782
|
+
{ abortEarly: false, allowUnknown: false }
|
|
783
|
+
);
|
|
784
|
+
if (warrning) {
|
|
785
|
+
console.log("Parameter Validation warrnings for removeAddress");
|
|
786
|
+
console.log(warrning);
|
|
787
|
+
}
|
|
788
|
+
|
|
624
789
|
const query_params = {};
|
|
625
790
|
|
|
626
791
|
const xHeaders = {};
|
|
@@ -657,6 +822,17 @@ class Cart {
|
|
|
657
822
|
if (error) {
|
|
658
823
|
return Promise.reject(new FDKClientValidationError(error));
|
|
659
824
|
}
|
|
825
|
+
|
|
826
|
+
// Showing warrnings if extra unknown parameters are found
|
|
827
|
+
const { error: warrning } = CartValidator.selectAddress().validate(
|
|
828
|
+
{ body, cartId, buyNow, i, b },
|
|
829
|
+
{ abortEarly: false, allowUnknown: false }
|
|
830
|
+
);
|
|
831
|
+
if (warrning) {
|
|
832
|
+
console.log("Parameter Validation warrnings for selectAddress");
|
|
833
|
+
console.log(warrning);
|
|
834
|
+
}
|
|
835
|
+
|
|
660
836
|
const query_params = {};
|
|
661
837
|
query_params["cart_id"] = cartId;
|
|
662
838
|
query_params["buy_now"] = buyNow;
|
|
@@ -695,6 +871,17 @@ class Cart {
|
|
|
695
871
|
if (error) {
|
|
696
872
|
return Promise.reject(new FDKClientValidationError(error));
|
|
697
873
|
}
|
|
874
|
+
|
|
875
|
+
// Showing warrnings if extra unknown parameters are found
|
|
876
|
+
const { error: warrning } = CartValidator.selectPaymentMode().validate(
|
|
877
|
+
{ body, id, buyNow },
|
|
878
|
+
{ abortEarly: false, allowUnknown: false }
|
|
879
|
+
);
|
|
880
|
+
if (warrning) {
|
|
881
|
+
console.log("Parameter Validation warrnings for selectPaymentMode");
|
|
882
|
+
console.log(warrning);
|
|
883
|
+
}
|
|
884
|
+
|
|
698
885
|
const query_params = {};
|
|
699
886
|
query_params["id"] = id;
|
|
700
887
|
query_params["buy_now"] = buyNow;
|
|
@@ -751,6 +938,29 @@ class Cart {
|
|
|
751
938
|
if (error) {
|
|
752
939
|
return Promise.reject(new FDKClientValidationError(error));
|
|
753
940
|
}
|
|
941
|
+
|
|
942
|
+
// Showing warrnings if extra unknown parameters are found
|
|
943
|
+
const {
|
|
944
|
+
error: warrning,
|
|
945
|
+
} = CartValidator.validateCouponForPayment().validate(
|
|
946
|
+
{
|
|
947
|
+
id,
|
|
948
|
+
buyNow,
|
|
949
|
+
addressId,
|
|
950
|
+
paymentMode,
|
|
951
|
+
paymentIdentifier,
|
|
952
|
+
aggregatorName,
|
|
953
|
+
merchantCode,
|
|
954
|
+
},
|
|
955
|
+
{ abortEarly: false, allowUnknown: false }
|
|
956
|
+
);
|
|
957
|
+
if (warrning) {
|
|
958
|
+
console.log(
|
|
959
|
+
"Parameter Validation warrnings for validateCouponForPayment"
|
|
960
|
+
);
|
|
961
|
+
console.log(warrning);
|
|
962
|
+
}
|
|
963
|
+
|
|
754
964
|
const query_params = {};
|
|
755
965
|
query_params["id"] = id;
|
|
756
966
|
query_params["buy_now"] = buyNow;
|
|
@@ -796,6 +1006,17 @@ class Cart {
|
|
|
796
1006
|
if (error) {
|
|
797
1007
|
return Promise.reject(new FDKClientValidationError(error));
|
|
798
1008
|
}
|
|
1009
|
+
|
|
1010
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1011
|
+
const { error: warrning } = CartValidator.getShipments().validate(
|
|
1012
|
+
{ p, id, buyNow, addressId, areaCode },
|
|
1013
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1014
|
+
);
|
|
1015
|
+
if (warrning) {
|
|
1016
|
+
console.log("Parameter Validation warrnings for getShipments");
|
|
1017
|
+
console.log(warrning);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
799
1020
|
const query_params = {};
|
|
800
1021
|
query_params["p"] = p;
|
|
801
1022
|
query_params["id"] = id;
|
|
@@ -834,6 +1055,17 @@ class Cart {
|
|
|
834
1055
|
if (error) {
|
|
835
1056
|
return Promise.reject(new FDKClientValidationError(error));
|
|
836
1057
|
}
|
|
1058
|
+
|
|
1059
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1060
|
+
const { error: warrning } = CartValidator.checkoutCart().validate(
|
|
1061
|
+
{ body, buyNow },
|
|
1062
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1063
|
+
);
|
|
1064
|
+
if (warrning) {
|
|
1065
|
+
console.log("Parameter Validation warrnings for checkoutCart");
|
|
1066
|
+
console.log(warrning);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
837
1069
|
const query_params = {};
|
|
838
1070
|
query_params["buy_now"] = buyNow;
|
|
839
1071
|
|
|
@@ -869,6 +1101,17 @@ class Cart {
|
|
|
869
1101
|
if (error) {
|
|
870
1102
|
return Promise.reject(new FDKClientValidationError(error));
|
|
871
1103
|
}
|
|
1104
|
+
|
|
1105
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1106
|
+
const { error: warrning } = CartValidator.updateCartMeta().validate(
|
|
1107
|
+
{ body, id, buyNow },
|
|
1108
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1109
|
+
);
|
|
1110
|
+
if (warrning) {
|
|
1111
|
+
console.log("Parameter Validation warrnings for updateCartMeta");
|
|
1112
|
+
console.log(warrning);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
872
1115
|
const query_params = {};
|
|
873
1116
|
query_params["id"] = id;
|
|
874
1117
|
query_params["buy_now"] = buyNow;
|
|
@@ -903,6 +1146,17 @@ class Cart {
|
|
|
903
1146
|
if (error) {
|
|
904
1147
|
return Promise.reject(new FDKClientValidationError(error));
|
|
905
1148
|
}
|
|
1149
|
+
|
|
1150
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1151
|
+
const { error: warrning } = CartValidator.getCartShareLink().validate(
|
|
1152
|
+
{ body },
|
|
1153
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1154
|
+
);
|
|
1155
|
+
if (warrning) {
|
|
1156
|
+
console.log("Parameter Validation warrnings for getCartShareLink");
|
|
1157
|
+
console.log(warrning);
|
|
1158
|
+
}
|
|
1159
|
+
|
|
906
1160
|
const query_params = {};
|
|
907
1161
|
|
|
908
1162
|
const xHeaders = {};
|
|
@@ -935,6 +1189,17 @@ class Cart {
|
|
|
935
1189
|
if (error) {
|
|
936
1190
|
return Promise.reject(new FDKClientValidationError(error));
|
|
937
1191
|
}
|
|
1192
|
+
|
|
1193
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1194
|
+
const { error: warrning } = CartValidator.getCartSharedItems().validate(
|
|
1195
|
+
{ token },
|
|
1196
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1197
|
+
);
|
|
1198
|
+
if (warrning) {
|
|
1199
|
+
console.log("Parameter Validation warrnings for getCartSharedItems");
|
|
1200
|
+
console.log(warrning);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
938
1203
|
const query_params = {};
|
|
939
1204
|
|
|
940
1205
|
const xHeaders = {};
|
|
@@ -969,6 +1234,21 @@ class Cart {
|
|
|
969
1234
|
if (error) {
|
|
970
1235
|
return Promise.reject(new FDKClientValidationError(error));
|
|
971
1236
|
}
|
|
1237
|
+
|
|
1238
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1239
|
+
const {
|
|
1240
|
+
error: warrning,
|
|
1241
|
+
} = CartValidator.updateCartWithSharedItems().validate(
|
|
1242
|
+
{ token, action },
|
|
1243
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1244
|
+
);
|
|
1245
|
+
if (warrning) {
|
|
1246
|
+
console.log(
|
|
1247
|
+
"Parameter Validation warrnings for updateCartWithSharedItems"
|
|
1248
|
+
);
|
|
1249
|
+
console.log(warrning);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
972
1252
|
const query_params = {};
|
|
973
1253
|
|
|
974
1254
|
const xHeaders = {};
|
|
@@ -1005,6 +1285,17 @@ class Cart {
|
|
|
1005
1285
|
if (error) {
|
|
1006
1286
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1007
1287
|
}
|
|
1288
|
+
|
|
1289
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1290
|
+
const { error: warrning } = CartValidator.getPromotionOffers().validate(
|
|
1291
|
+
{ slug, pageSize, promotionGroup },
|
|
1292
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1293
|
+
);
|
|
1294
|
+
if (warrning) {
|
|
1295
|
+
console.log("Parameter Validation warrnings for getPromotionOffers");
|
|
1296
|
+
console.log(warrning);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1008
1299
|
const query_params = {};
|
|
1009
1300
|
query_params["slug"] = slug;
|
|
1010
1301
|
query_params["page_size"] = pageSize;
|
|
@@ -1047,6 +1338,17 @@ class Cart {
|
|
|
1047
1338
|
if (error) {
|
|
1048
1339
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1049
1340
|
}
|
|
1341
|
+
|
|
1342
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1343
|
+
const { error: warrning } = CartValidator.getLadderOffers().validate(
|
|
1344
|
+
{ slug, storeId, promotionId, pageSize },
|
|
1345
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1346
|
+
);
|
|
1347
|
+
if (warrning) {
|
|
1348
|
+
console.log("Parameter Validation warrnings for getLadderOffers");
|
|
1349
|
+
console.log(warrning);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1050
1352
|
const query_params = {};
|
|
1051
1353
|
query_params["slug"] = slug;
|
|
1052
1354
|
query_params["store_id"] = storeId;
|