@gofynd/fdk-client-javascript 1.3.10-beta.3 → 1.3.11-beta.4

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.
Files changed (62) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/Cart/CartApplicationClient.js +28 -28
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -30
  5. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  6. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  7. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
  8. package/sdk/application/Content/ContentApplicationClient.js +19 -19
  9. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  10. package/sdk/application/Lead/LeadApplicationClient.js +7 -7
  11. package/sdk/application/Logistic/LogisticApplicationClient.js +5 -5
  12. package/sdk/application/Order/OrderApplicationClient.js +12 -12
  13. package/sdk/application/Payment/PaymentApplicationClient.js +42 -42
  14. package/sdk/application/PosCart/PosCartApplicationClient.js +27 -27
  15. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  16. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  17. package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
  18. package/sdk/application/User/UserApplicationClient.js +40 -40
  19. package/sdk/common/utils.js +1 -1
  20. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +3 -3
  21. package/sdk/partner/Theme/ThemePartnerClient.js +19 -19
  22. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -4
  23. package/sdk/platform/Billing/BillingPlatformClient.js +17 -17
  24. package/sdk/platform/Cart/CartPlatformApplicationClient.js +57 -57
  25. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +64 -64
  26. package/sdk/platform/Catalog/CatalogPlatformClient.js +77 -77
  27. package/sdk/platform/Common/CommonPlatformClient.js +2 -2
  28. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +59 -59
  29. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  30. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +14 -14
  31. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
  32. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +18 -18
  33. package/sdk/platform/Content/ContentPlatformApplicationClient.js +69 -69
  34. package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
  35. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +11 -11
  36. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
  37. package/sdk/platform/Finance/FinancePlatformClient.js +24 -24
  38. package/sdk/platform/Inventory/InventoryPlatformClient.js +12 -12
  39. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +13 -13
  40. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  41. package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
  42. package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
  43. package/sdk/platform/Order/OrderPlatformClient.js +125 -44
  44. package/sdk/platform/Order/OrderPlatformModel.d.ts +58 -1
  45. package/sdk/platform/Order/OrderPlatformModel.js +72 -0
  46. package/sdk/platform/Order/OrderPlatformValidator.d.ts +15 -1
  47. package/sdk/platform/Order/OrderPlatformValidator.js +14 -0
  48. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
  49. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +42 -42
  50. package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
  51. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
  52. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +14 -14
  53. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +18 -18
  54. package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
  55. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +28 -28
  56. package/sdk/platform/Theme/ThemePlatformClient.js +3 -3
  57. package/sdk/platform/User/UserPlatformApplicationClient.js +18 -18
  58. package/sdk/platform/Webhook/WebhookPlatformClient.js +16 -16
  59. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
  60. package/sdk/public/Inventory/InventoryPublicClient.js +6 -6
  61. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  62. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
@@ -47,6 +47,11 @@ export = OrderPlatformValidator;
47
47
  * @typedef FetchRefundModeConfigParam
48
48
  * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
49
49
  */
50
+ /**
51
+ * @typedef GenerateInvoiceIDParam
52
+ * @property {string} invoiceType - Mention the type of invoice id to generate
53
+ * @property {OrderPlatformModel.GenerateInvoiceIDRequest} body
54
+ */
50
55
  /**
51
56
  * @typedef GeneratePOSReceiptByOrderIdParam
52
57
  * @property {string} orderId
@@ -310,6 +315,8 @@ declare class OrderPlatformValidator {
310
315
  static fetchCreditBalanceDetail(): FetchCreditBalanceDetailParam;
311
316
  /** @returns {FetchRefundModeConfigParam} */
312
317
  static fetchRefundModeConfig(): FetchRefundModeConfigParam;
318
+ /** @returns {GenerateInvoiceIDParam} */
319
+ static generateInvoiceID(): GenerateInvoiceIDParam;
313
320
  /** @returns {GeneratePOSReceiptByOrderIdParam} */
314
321
  static generatePOSReceiptByOrderId(): GeneratePOSReceiptByOrderIdParam;
315
322
  /** @returns {GetAllowedStateTransitionParam} */
@@ -378,7 +385,7 @@ declare class OrderPlatformValidator {
378
385
  static verifyMobileOTP(): VerifyMobileOTPParam;
379
386
  }
380
387
  declare namespace OrderPlatformValidator {
381
- export { AttachOrderUserParam, CheckOrderStatusParam, Click2CallParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FetchCreditBalanceDetailParam, FetchRefundModeConfigParam, GeneratePOSReceiptByOrderIdParam, GetAllowedStateTransitionParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetLaneConfigParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateTransitionMapParam, GetfiltersParam, InvalidateShipmentCacheParam, OrderUpdateParam, PostShipmentHistoryParam, ProcessManifestParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentParam, VerifyMobileOTPParam };
388
+ export { AttachOrderUserParam, CheckOrderStatusParam, Click2CallParam, CreateChannelConfigParam, CreateOrderParam, DispatchManifestParam, DownloadBulkActionTemplateParam, DownloadLanesReportParam, EInvoiceRetryParam, FetchCreditBalanceDetailParam, FetchRefundModeConfigParam, GenerateInvoiceIDParam, GeneratePOSReceiptByOrderIdParam, GetAllowedStateTransitionParam, GetAnnouncementsParam, GetBagByIdParam, GetBagsParam, GetBulkActionTemplateParam, GetBulkShipmentExcelFileParam, GetChannelConfigParam, GetLaneConfigParam, GetOrderByIdParam, GetOrdersParam, GetRoleBasedActionsParam, GetShipmentByIdParam, GetShipmentHistoryParam, GetShipmentReasonsParam, GetShipmentsParam, GetStateTransitionMapParam, GetfiltersParam, InvalidateShipmentCacheParam, OrderUpdateParam, PostShipmentHistoryParam, ProcessManifestParam, ReassignLocationParam, SendSmsNinjaParam, SendUserMobileOTPParam, TrackShipmentParam, UpdateAddressParam, UpdatePackagingDimensionsParam, UpdateShipmentLockParam, UpdateShipmentStatusParam, UpdateShipmentTrackingParam, UploadConsentParam, VerifyMobileOTPParam };
382
389
  }
383
390
  type AttachOrderUserParam = {
384
391
  body: OrderPlatformModel.AttachOrderUser;
@@ -435,6 +442,13 @@ type FetchCreditBalanceDetailParam = {
435
442
  type FetchRefundModeConfigParam = {
436
443
  body: OrderPlatformModel.RefundModeConfigRequestPayload;
437
444
  };
445
+ type GenerateInvoiceIDParam = {
446
+ /**
447
+ * - Mention the type of invoice id to generate
448
+ */
449
+ invoiceType: string;
450
+ body: OrderPlatformModel.GenerateInvoiceIDRequest;
451
+ };
438
452
  type GeneratePOSReceiptByOrderIdParam = {
439
453
  orderId: string;
440
454
  shipmentId?: string;
@@ -61,6 +61,12 @@ const OrderPlatformModel = require("./OrderPlatformModel");
61
61
  * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
62
62
  */
63
63
 
64
+ /**
65
+ * @typedef GenerateInvoiceIDParam
66
+ * @property {string} invoiceType - Mention the type of invoice id to generate
67
+ * @property {OrderPlatformModel.GenerateInvoiceIDRequest} body
68
+ */
69
+
64
70
  /**
65
71
  * @typedef GeneratePOSReceiptByOrderIdParam
66
72
  * @property {string} orderId
@@ -416,6 +422,14 @@ class OrderPlatformValidator {
416
422
  }).required();
417
423
  }
418
424
 
425
+ /** @returns {GenerateInvoiceIDParam} */
426
+ static generateInvoiceID() {
427
+ return Joi.object({
428
+ invoiceType: Joi.string().allow("").required(),
429
+ body: OrderPlatformModel.GenerateInvoiceIDRequest().required(),
430
+ }).required();
431
+ }
432
+
419
433
  /** @returns {GeneratePOSReceiptByOrderIdParam} */
420
434
  static generatePOSReceiptByOrderId() {
421
435
  return Joi.object({
@@ -76,7 +76,7 @@ class Partner {
76
76
  error: res_error,
77
77
  } = PartnerPlatformModel.AddProxyResponse().validate(responseData, {
78
78
  abortEarly: false,
79
- allowUnknown: false,
79
+ allowUnknown: true,
80
80
  });
81
81
 
82
82
  if (res_error) {
@@ -157,7 +157,7 @@ class Partner {
157
157
  error: res_error,
158
158
  } = PartnerPlatformModel.RemoveProxyResponse().validate(responseData, {
159
159
  abortEarly: false,
160
- allowUnknown: false,
160
+ allowUnknown: true,
161
161
  });
162
162
 
163
163
  if (res_error) {
@@ -76,7 +76,7 @@ class Payment {
76
76
  error: res_error,
77
77
  } = PaymentPlatformModel.EdcDeviceUpdateResponse().validate(responseData, {
78
78
  abortEarly: false,
79
- allowUnknown: false,
79
+ allowUnknown: true,
80
80
  });
81
81
 
82
82
  if (res_error) {
@@ -157,7 +157,7 @@ class Payment {
157
157
  error: res_error,
158
158
  } = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
159
159
  abortEarly: false,
160
- allowUnknown: false,
160
+ allowUnknown: true,
161
161
  });
162
162
 
163
163
  if (res_error) {
@@ -239,7 +239,7 @@ class Payment {
239
239
  error: res_error,
240
240
  } = PaymentPlatformModel.CancelPaymentLinkResponse().validate(
241
241
  responseData,
242
- { abortEarly: false, allowUnknown: false }
242
+ { abortEarly: false, allowUnknown: true }
243
243
  );
244
244
 
245
245
  if (res_error) {
@@ -321,7 +321,7 @@ class Payment {
321
321
  error: res_error,
322
322
  } = PaymentPlatformModel.PaymentStatusUpdateResponse().validate(
323
323
  responseData,
324
- { abortEarly: false, allowUnknown: false }
324
+ { abortEarly: false, allowUnknown: true }
325
325
  );
326
326
 
327
327
  if (res_error) {
@@ -401,7 +401,7 @@ class Payment {
401
401
  error: res_error,
402
402
  } = PaymentPlatformModel.PaymentConfirmationResponse().validate(
403
403
  responseData,
404
- { abortEarly: false, allowUnknown: false }
404
+ { abortEarly: false, allowUnknown: true }
405
405
  );
406
406
 
407
407
  if (res_error) {
@@ -486,7 +486,7 @@ class Payment {
486
486
  error: res_error,
487
487
  } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
488
488
  responseData,
489
- { abortEarly: false, allowUnknown: false }
489
+ { abortEarly: false, allowUnknown: true }
490
490
  );
491
491
 
492
492
  if (res_error) {
@@ -568,7 +568,7 @@ class Payment {
568
568
  error: res_error,
569
569
  } = PaymentPlatformModel.CreatePaymentLinkResponse().validate(
570
570
  responseData,
571
- { abortEarly: false, allowUnknown: false }
571
+ { abortEarly: false, allowUnknown: true }
572
572
  );
573
573
 
574
574
  if (res_error) {
@@ -647,7 +647,7 @@ class Payment {
647
647
  error: res_error,
648
648
  } = PaymentPlatformModel.EdcAggregatorAndModelListResponse().validate(
649
649
  responseData,
650
- { abortEarly: false, allowUnknown: false }
650
+ { abortEarly: false, allowUnknown: true }
651
651
  );
652
652
 
653
653
  if (res_error) {
@@ -741,7 +741,7 @@ class Payment {
741
741
  error: res_error,
742
742
  } = PaymentPlatformModel.EdcDeviceListResponse().validate(responseData, {
743
743
  abortEarly: false,
744
- allowUnknown: false,
744
+ allowUnknown: true,
745
745
  });
746
746
 
747
747
  if (res_error) {
@@ -816,7 +816,7 @@ class Payment {
816
816
  error: res_error,
817
817
  } = PaymentPlatformModel.EdcDeviceStatsResponse().validate(responseData, {
818
818
  abortEarly: false,
819
- allowUnknown: false,
819
+ allowUnknown: true,
820
820
  });
821
821
 
822
822
  if (res_error) {
@@ -903,7 +903,7 @@ class Payment {
903
903
  error: res_error,
904
904
  } = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
905
905
  abortEarly: false,
906
- allowUnknown: false,
906
+ allowUnknown: true,
907
907
  });
908
908
 
909
909
  if (res_error) {
@@ -989,7 +989,7 @@ class Payment {
989
989
  error: res_error,
990
990
  } = PaymentPlatformModel.PaymentGatewayConfigResponse().validate(
991
991
  responseData,
992
- { abortEarly: false, allowUnknown: false }
992
+ { abortEarly: false, allowUnknown: true }
993
993
  );
994
994
 
995
995
  if (res_error) {
@@ -1069,7 +1069,7 @@ class Payment {
1069
1069
  error: res_error,
1070
1070
  } = PaymentPlatformModel.EdcDeviceDetailsResponse().validate(responseData, {
1071
1071
  abortEarly: false,
1072
- allowUnknown: false,
1072
+ allowUnknown: true,
1073
1073
  });
1074
1074
 
1075
1075
  if (res_error) {
@@ -1159,7 +1159,7 @@ class Payment {
1159
1159
  error: res_error,
1160
1160
  } = PaymentPlatformModel.MerchnatPaymentModeResponse().validate(
1161
1161
  responseData,
1162
- { abortEarly: false, allowUnknown: false }
1162
+ { abortEarly: false, allowUnknown: true }
1163
1163
  );
1164
1164
 
1165
1165
  if (res_error) {
@@ -1237,7 +1237,7 @@ class Payment {
1237
1237
  error: res_error,
1238
1238
  } = PaymentPlatformModel.MerchnatPaymentModeResponse().validate(
1239
1239
  responseData,
1240
- { abortEarly: false, allowUnknown: false }
1240
+ { abortEarly: false, allowUnknown: true }
1241
1241
  );
1242
1242
 
1243
1243
  if (res_error) {
@@ -1320,7 +1320,7 @@ class Payment {
1320
1320
  error: res_error,
1321
1321
  } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
1322
1322
  responseData,
1323
- { abortEarly: false, allowUnknown: false }
1323
+ { abortEarly: false, allowUnknown: true }
1324
1324
  );
1325
1325
 
1326
1326
  if (res_error) {
@@ -1398,7 +1398,7 @@ class Payment {
1398
1398
  error: res_error,
1399
1399
  } = PaymentPlatformModel.MerchnatPaymentModeResponse().validate(
1400
1400
  responseData,
1401
- { abortEarly: false, allowUnknown: false }
1401
+ { abortEarly: false, allowUnknown: true }
1402
1402
  );
1403
1403
 
1404
1404
  if (res_error) {
@@ -1475,7 +1475,7 @@ class Payment {
1475
1475
  error: res_error,
1476
1476
  } = PaymentPlatformModel.GetPaymentCodeResponse().validate(responseData, {
1477
1477
  abortEarly: false,
1478
- allowUnknown: false,
1478
+ allowUnknown: true,
1479
1479
  });
1480
1480
 
1481
1481
  if (res_error) {
@@ -1555,7 +1555,7 @@ class Payment {
1555
1555
  error: res_error,
1556
1556
  } = PaymentPlatformModel.GetPaymentLinkResponse().validate(responseData, {
1557
1557
  abortEarly: false,
1558
- allowUnknown: false,
1558
+ allowUnknown: true,
1559
1559
  });
1560
1560
 
1561
1561
  if (res_error) {
@@ -1640,7 +1640,7 @@ class Payment {
1640
1640
  error: res_error,
1641
1641
  } = PaymentPlatformModel.PaymentOptionsResponse().validate(responseData, {
1642
1642
  abortEarly: false,
1643
- allowUnknown: false,
1643
+ allowUnknown: true,
1644
1644
  });
1645
1645
 
1646
1646
  if (res_error) {
@@ -1753,7 +1753,7 @@ class Payment {
1753
1753
  error: res_error,
1754
1754
  } = PaymentPlatformModel.PaymentOptionsResponse().validate(responseData, {
1755
1755
  abortEarly: false,
1756
- allowUnknown: false,
1756
+ allowUnknown: true,
1757
1757
  });
1758
1758
 
1759
1759
  if (res_error) {
@@ -1832,7 +1832,7 @@ class Payment {
1832
1832
  error: res_error,
1833
1833
  } = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
1834
1834
  abortEarly: false,
1835
- allowUnknown: false,
1835
+ allowUnknown: true,
1836
1836
  });
1837
1837
 
1838
1838
  if (res_error) {
@@ -1917,7 +1917,7 @@ class Payment {
1917
1917
  error: res_error,
1918
1918
  } = PaymentPlatformModel.GetUserCODLimitResponse().validate(responseData, {
1919
1919
  abortEarly: false,
1920
- allowUnknown: false,
1920
+ allowUnknown: true,
1921
1921
  });
1922
1922
 
1923
1923
  if (res_error) {
@@ -1996,7 +1996,7 @@ class Payment {
1996
1996
  error: res_error,
1997
1997
  } = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
1998
1998
  abortEarly: false,
1999
- allowUnknown: false,
1999
+ allowUnknown: true,
2000
2000
  });
2001
2001
 
2002
2002
  if (res_error) {
@@ -2078,7 +2078,7 @@ class Payment {
2078
2078
  error: res_error,
2079
2079
  } = PaymentPlatformModel.PaymentInitializationResponse().validate(
2080
2080
  responseData,
2081
- { abortEarly: false, allowUnknown: false }
2081
+ { abortEarly: false, allowUnknown: true }
2082
2082
  );
2083
2083
 
2084
2084
  if (res_error) {
@@ -2160,7 +2160,7 @@ class Payment {
2160
2160
  error: res_error,
2161
2161
  } = PaymentPlatformModel.MerchantOnBoardingResponse().validate(
2162
2162
  responseData,
2163
- { abortEarly: false, allowUnknown: false }
2163
+ { abortEarly: false, allowUnknown: true }
2164
2164
  );
2165
2165
 
2166
2166
  if (res_error) {
@@ -2247,7 +2247,7 @@ class Payment {
2247
2247
  error: res_error,
2248
2248
  } = PaymentPlatformModel.GetOauthUrlResponse().validate(responseData, {
2249
2249
  abortEarly: false,
2250
- allowUnknown: false,
2250
+ allowUnknown: true,
2251
2251
  });
2252
2252
 
2253
2253
  if (res_error) {
@@ -2331,7 +2331,7 @@ class Payment {
2331
2331
  error: res_error,
2332
2332
  } = PaymentPlatformModel.MerchnatPaymentModeResponse().validate(
2333
2333
  responseData,
2334
- { abortEarly: false, allowUnknown: false }
2334
+ { abortEarly: false, allowUnknown: true }
2335
2335
  );
2336
2336
 
2337
2337
  if (res_error) {
@@ -2413,7 +2413,7 @@ class Payment {
2413
2413
  error: res_error,
2414
2414
  } = PaymentPlatformModel.MerchnatPaymentModeResponse().validate(
2415
2415
  responseData,
2416
- { abortEarly: false, allowUnknown: false }
2416
+ { abortEarly: false, allowUnknown: true }
2417
2417
  );
2418
2418
 
2419
2419
  if (res_error) {
@@ -2496,7 +2496,7 @@ class Payment {
2496
2496
  error: res_error,
2497
2497
  } = PaymentPlatformModel.PaymentStatusBulkHandlerResponse().validate(
2498
2498
  responseData,
2499
- { abortEarly: false, allowUnknown: false }
2499
+ { abortEarly: false, allowUnknown: true }
2500
2500
  );
2501
2501
 
2502
2502
  if (res_error) {
@@ -2579,7 +2579,7 @@ class Payment {
2579
2579
  error: res_error,
2580
2580
  } = PaymentPlatformModel.PollingPaymentLinkResponse().validate(
2581
2581
  responseData,
2582
- { abortEarly: false, allowUnknown: false }
2582
+ { abortEarly: false, allowUnknown: true }
2583
2583
  );
2584
2584
 
2585
2585
  if (res_error) {
@@ -2658,7 +2658,7 @@ class Payment {
2658
2658
  error: res_error,
2659
2659
  } = PaymentPlatformModel.RepaymentResponse().validate(responseData, {
2660
2660
  abortEarly: false,
2661
- allowUnknown: false,
2661
+ allowUnknown: true,
2662
2662
  });
2663
2663
 
2664
2664
  if (res_error) {
@@ -2740,7 +2740,7 @@ class Payment {
2740
2740
  error: res_error,
2741
2741
  } = PaymentPlatformModel.ResendOrCancelPaymentResponse().validate(
2742
2742
  responseData,
2743
- { abortEarly: false, allowUnknown: false }
2743
+ { abortEarly: false, allowUnknown: true }
2744
2744
  );
2745
2745
 
2746
2746
  if (res_error) {
@@ -2822,7 +2822,7 @@ class Payment {
2822
2822
  error: res_error,
2823
2823
  } = PaymentPlatformModel.ResendPaymentLinkResponse().validate(
2824
2824
  responseData,
2825
- { abortEarly: false, allowUnknown: false }
2825
+ { abortEarly: false, allowUnknown: true }
2826
2826
  );
2827
2827
 
2828
2828
  if (res_error) {
@@ -2901,7 +2901,7 @@ class Payment {
2901
2901
  error: res_error,
2902
2902
  } = PaymentPlatformModel.RevokeOAuthToken().validate(responseData, {
2903
2903
  abortEarly: false,
2904
- allowUnknown: false,
2904
+ allowUnknown: true,
2905
2905
  });
2906
2906
 
2907
2907
  if (res_error) {
@@ -2983,7 +2983,7 @@ class Payment {
2983
2983
  error: res_error,
2984
2984
  } = PaymentPlatformModel.PaymentGatewayToBeReviewed().validate(
2985
2985
  responseData,
2986
- { abortEarly: false, allowUnknown: false }
2986
+ { abortEarly: false, allowUnknown: true }
2987
2987
  );
2988
2988
 
2989
2989
  if (res_error) {
@@ -3064,7 +3064,7 @@ class Payment {
3064
3064
  error: res_error,
3065
3065
  } = PaymentPlatformModel.SetCODOptionResponse().validate(responseData, {
3066
3066
  abortEarly: false,
3067
- allowUnknown: false,
3067
+ allowUnknown: true,
3068
3068
  });
3069
3069
 
3070
3070
  if (res_error) {
@@ -3143,7 +3143,7 @@ class Payment {
3143
3143
  error: res_error,
3144
3144
  } = PaymentPlatformModel.EdcDeviceAddResponse().validate(responseData, {
3145
3145
  abortEarly: false,
3146
- allowUnknown: false,
3146
+ allowUnknown: true,
3147
3147
  });
3148
3148
 
3149
3149
  if (res_error) {
@@ -3228,7 +3228,7 @@ class Payment {
3228
3228
  error: res_error,
3229
3229
  } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
3230
3230
  responseData,
3231
- { abortEarly: false, allowUnknown: false }
3231
+ { abortEarly: false, allowUnknown: true }
3232
3232
  );
3233
3233
 
3234
3234
  if (res_error) {
@@ -3313,7 +3313,7 @@ class Payment {
3313
3313
  error: res_error,
3314
3314
  } = PaymentPlatformModel.PaymentSessionResponseSerializer().validate(
3315
3315
  responseData,
3316
- { abortEarly: false, allowUnknown: false }
3316
+ { abortEarly: false, allowUnknown: true }
3317
3317
  );
3318
3318
 
3319
3319
  if (res_error) {
@@ -3400,7 +3400,7 @@ class Payment {
3400
3400
  error: res_error,
3401
3401
  } = PaymentPlatformModel.RefundSessionResponseSerializer().validate(
3402
3402
  responseData,
3403
- { abortEarly: false, allowUnknown: false }
3403
+ { abortEarly: false, allowUnknown: true }
3404
3404
  );
3405
3405
 
3406
3406
  if (res_error) {
@@ -3482,7 +3482,7 @@ class Payment {
3482
3482
  error: res_error,
3483
3483
  } = PaymentPlatformModel.ValidateCustomerResponse().validate(responseData, {
3484
3484
  abortEarly: false,
3485
- allowUnknown: false,
3485
+ allowUnknown: true,
3486
3486
  });
3487
3487
 
3488
3488
  if (res_error) {
@@ -80,7 +80,7 @@ class Payment {
80
80
  error: res_error,
81
81
  } = PaymentPlatformModel.UpdatePayoutResponse().validate(responseData, {
82
82
  abortEarly: false,
83
- allowUnknown: false,
83
+ allowUnknown: true,
84
84
  });
85
85
 
86
86
  if (res_error) {
@@ -159,7 +159,7 @@ class Payment {
159
159
  error: res_error,
160
160
  } = PaymentPlatformModel.DeletePayoutResponse().validate(responseData, {
161
161
  abortEarly: false,
162
- allowUnknown: false,
162
+ allowUnknown: true,
163
163
  });
164
164
 
165
165
  if (res_error) {
@@ -250,7 +250,7 @@ class Payment {
250
250
  error: res_error,
251
251
  } = PaymentPlatformModel.DeleteSubscriptionPaymentMethodResponse().validate(
252
252
  responseData,
253
- { abortEarly: false, allowUnknown: false }
253
+ { abortEarly: false, allowUnknown: true }
254
254
  );
255
255
 
256
256
  if (res_error) {
@@ -330,7 +330,7 @@ class Payment {
330
330
  error: res_error,
331
331
  } = PaymentPlatformModel.PayoutsResponse().validate(responseData, {
332
332
  abortEarly: false,
333
- allowUnknown: false,
333
+ allowUnknown: true,
334
334
  });
335
335
 
336
336
  if (res_error) {
@@ -406,7 +406,7 @@ class Payment {
406
406
  error: res_error,
407
407
  } = PaymentPlatformModel.SubscriptionConfigResponse().validate(
408
408
  responseData,
409
- { abortEarly: false, allowUnknown: false }
409
+ { abortEarly: false, allowUnknown: true }
410
410
  );
411
411
 
412
412
  if (res_error) {
@@ -492,7 +492,7 @@ class Payment {
492
492
  error: res_error,
493
493
  } = PaymentPlatformModel.SubscriptionPaymentMethodResponse().validate(
494
494
  responseData,
495
- { abortEarly: false, allowUnknown: false }
495
+ { abortEarly: false, allowUnknown: true }
496
496
  );
497
497
 
498
498
  if (res_error) {
@@ -569,7 +569,7 @@ class Payment {
569
569
  error: res_error,
570
570
  } = PaymentPlatformModel.PayoutResponse().validate(responseData, {
571
571
  abortEarly: false,
572
- allowUnknown: false,
572
+ allowUnknown: true,
573
573
  });
574
574
 
575
575
  if (res_error) {
@@ -652,7 +652,7 @@ class Payment {
652
652
  error: res_error,
653
653
  } = PaymentPlatformModel.SaveSubscriptionSetupIntentResponse().validate(
654
654
  responseData,
655
- { abortEarly: false, allowUnknown: false }
655
+ { abortEarly: false, allowUnknown: true }
656
656
  );
657
657
 
658
658
  if (res_error) {
@@ -733,7 +733,7 @@ class Payment {
733
733
  error: res_error,
734
734
  } = PaymentPlatformModel.UpdatePayoutResponse().validate(responseData, {
735
735
  abortEarly: false,
736
- allowUnknown: false,
736
+ allowUnknown: true,
737
737
  });
738
738
 
739
739
  if (res_error) {
@@ -813,7 +813,7 @@ class Payment {
813
813
  error: res_error,
814
814
  } = PaymentPlatformModel.IfscCodeResponse().validate(responseData, {
815
815
  abortEarly: false,
816
- allowUnknown: false,
816
+ allowUnknown: true,
817
817
  });
818
818
 
819
819
  if (res_error) {
@@ -74,7 +74,7 @@ class Rewards {
74
74
  error: res_error,
75
75
  } = RewardsPlatformModel.Giveaway().validate(responseData, {
76
76
  abortEarly: false,
77
- allowUnknown: false,
77
+ allowUnknown: true,
78
78
  });
79
79
 
80
80
  if (res_error) {
@@ -149,7 +149,7 @@ class Rewards {
149
149
  error: res_error,
150
150
  } = RewardsPlatformModel.Offer().validate(responseData, {
151
151
  abortEarly: false,
152
- allowUnknown: false,
152
+ allowUnknown: true,
153
153
  });
154
154
 
155
155
  if (res_error) {
@@ -226,7 +226,7 @@ class Rewards {
226
226
  error: res_error,
227
227
  } = RewardsPlatformModel.ConfigurationRes().validate(responseData, {
228
228
  abortEarly: false,
229
- allowUnknown: false,
229
+ allowUnknown: true,
230
230
  });
231
231
 
232
232
  if (res_error) {
@@ -301,7 +301,7 @@ class Rewards {
301
301
  error: res_error,
302
302
  } = RewardsPlatformModel.UserRes().validate(responseData, {
303
303
  abortEarly: false,
304
- allowUnknown: false,
304
+ allowUnknown: true,
305
305
  });
306
306
 
307
307
  if (res_error) {
@@ -390,7 +390,7 @@ class Rewards {
390
390
  error: res_error,
391
391
  } = RewardsPlatformModel.HistoryRes().validate(responseData, {
392
392
  abortEarly: false,
393
- allowUnknown: false,
393
+ allowUnknown: true,
394
394
  });
395
395
 
396
396
  if (res_error) {
@@ -507,7 +507,7 @@ class Rewards {
507
507
  error: res_error,
508
508
  } = RewardsPlatformModel.Giveaway().validate(responseData, {
509
509
  abortEarly: false,
510
- allowUnknown: false,
510
+ allowUnknown: true,
511
511
  });
512
512
 
513
513
  if (res_error) {
@@ -588,7 +588,7 @@ class Rewards {
588
588
  error: res_error,
589
589
  } = RewardsPlatformModel.SetConfigurationRes().validate(responseData, {
590
590
  abortEarly: false,
591
- allowUnknown: false,
591
+ allowUnknown: true,
592
592
  });
593
593
 
594
594
  if (res_error) {
@@ -671,7 +671,7 @@ class Rewards {
671
671
  error: res_error,
672
672
  } = RewardsPlatformModel.GiveawayResponse().validate(responseData, {
673
673
  abortEarly: false,
674
- allowUnknown: false,
674
+ allowUnknown: true,
675
675
  });
676
676
 
677
677
  if (res_error) {
@@ -742,7 +742,7 @@ class Rewards {
742
742
 
743
743
  const { error: res_error } = Joi.array()
744
744
  .items(RewardsPlatformModel.Offer())
745
- .validate(responseData, { abortEarly: false, allowUnknown: false });
745
+ .validate(responseData, { abortEarly: false, allowUnknown: true });
746
746
 
747
747
  if (res_error) {
748
748
  if (this.config.options.strictResponseCheck === true) {
@@ -822,7 +822,7 @@ class Rewards {
822
822
  error: res_error,
823
823
  } = RewardsPlatformModel.Giveaway().validate(responseData, {
824
824
  abortEarly: false,
825
- allowUnknown: false,
825
+ allowUnknown: true,
826
826
  });
827
827
 
828
828
  if (res_error) {
@@ -907,7 +907,7 @@ class Rewards {
907
907
  error: res_error,
908
908
  } = RewardsPlatformModel.Offer().validate(responseData, {
909
909
  abortEarly: false,
910
- allowUnknown: false,
910
+ allowUnknown: true,
911
911
  });
912
912
 
913
913
  if (res_error) {
@@ -990,7 +990,7 @@ class Rewards {
990
990
  error: res_error,
991
991
  } = RewardsPlatformModel.AppUser().validate(responseData, {
992
992
  abortEarly: false,
993
- allowUnknown: false,
993
+ allowUnknown: true,
994
994
  });
995
995
 
996
996
  if (res_error) {