@gofynd/fdk-client-javascript 1.3.10-beta.2 → 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 (66) 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/Cart/CartApplicationModel.d.ts +4 -0
  5. package/sdk/application/Cart/CartApplicationModel.js +4 -0
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -30
  7. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
  10. package/sdk/application/Content/ContentApplicationClient.js +19 -19
  11. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  12. package/sdk/application/Lead/LeadApplicationClient.js +7 -7
  13. package/sdk/application/Logistic/LogisticApplicationClient.js +5 -5
  14. package/sdk/application/Order/OrderApplicationClient.js +12 -12
  15. package/sdk/application/Payment/PaymentApplicationClient.js +42 -42
  16. package/sdk/application/PosCart/PosCartApplicationClient.js +27 -27
  17. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  18. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  19. package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
  20. package/sdk/application/User/UserApplicationClient.js +40 -40
  21. package/sdk/common/utils.js +1 -1
  22. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +3 -3
  23. package/sdk/partner/Theme/ThemePartnerClient.js +19 -19
  24. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -4
  25. package/sdk/platform/Billing/BillingPlatformClient.js +17 -17
  26. package/sdk/platform/Cart/CartPlatformApplicationClient.js +57 -57
  27. package/sdk/platform/Cart/CartPlatformModel.d.ts +89 -1
  28. package/sdk/platform/Cart/CartPlatformModel.js +100 -0
  29. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +64 -64
  30. package/sdk/platform/Catalog/CatalogPlatformClient.js +77 -77
  31. package/sdk/platform/Common/CommonPlatformClient.js +2 -2
  32. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +59 -59
  33. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  34. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +14 -14
  35. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
  36. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +18 -18
  37. package/sdk/platform/Content/ContentPlatformApplicationClient.js +69 -69
  38. package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
  39. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +11 -11
  40. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
  41. package/sdk/platform/Finance/FinancePlatformClient.js +24 -24
  42. package/sdk/platform/Inventory/InventoryPlatformClient.js +12 -12
  43. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +13 -13
  44. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  45. package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
  46. package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
  47. package/sdk/platform/Order/OrderPlatformClient.js +125 -44
  48. package/sdk/platform/Order/OrderPlatformModel.d.ts +58 -1
  49. package/sdk/platform/Order/OrderPlatformModel.js +72 -0
  50. package/sdk/platform/Order/OrderPlatformValidator.d.ts +15 -1
  51. package/sdk/platform/Order/OrderPlatformValidator.js +14 -0
  52. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
  53. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +42 -42
  54. package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
  55. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
  56. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +14 -14
  57. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +18 -18
  58. package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
  59. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +28 -28
  60. package/sdk/platform/Theme/ThemePlatformClient.js +3 -3
  61. package/sdk/platform/User/UserPlatformApplicationClient.js +18 -18
  62. package/sdk/platform/Webhook/WebhookPlatformClient.js +16 -16
  63. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
  64. package/sdk/public/Inventory/InventoryPublicClient.js +6 -6
  65. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  66. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
@@ -117,6 +117,16 @@ declare class Order {
117
117
  * @description: Fetch Refund Mode Config - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/fetchRefundModeConfig/).
118
118
  */
119
119
  fetchRefundModeConfig({ body, requestHeaders }?: OrderPlatformValidator.FetchRefundModeConfigParam, { responseHeaders }?: object): Promise<OrderPlatformModel.RefundModeConfigResponsePayload>;
120
+ /**
121
+ * @param {OrderPlatformValidator.GenerateInvoiceIDParam} arg - Arg object
122
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
123
+ * @param {import("../PlatformAPIClient").Options} - Options
124
+ * @returns {Promise<OrderPlatformModel.GenerateInvoiceIDResponse>} - Success response
125
+ * @name generateInvoiceID
126
+ * @summary:
127
+ * @description: This API is used to manually generate Invoice ID against shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateInvoiceID/).
128
+ */
129
+ generateInvoiceID({ invoiceType, body, requestHeaders }?: OrderPlatformValidator.GenerateInvoiceIDParam, { responseHeaders }?: object): Promise<OrderPlatformModel.GenerateInvoiceIDResponse>;
120
130
  /**
121
131
  * @param {OrderPlatformValidator.GeneratePOSReceiptByOrderIdParam} arg - Arg object
122
132
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -76,7 +76,7 @@ class Order {
76
76
  error: res_error,
77
77
  } = OrderPlatformModel.AttachOrderUserResponse().validate(responseData, {
78
78
  abortEarly: false,
79
- allowUnknown: false,
79
+ allowUnknown: true,
80
80
  });
81
81
 
82
82
  if (res_error) {
@@ -155,7 +155,7 @@ class Order {
155
155
  error: res_error,
156
156
  } = OrderPlatformModel.OrderStatusResult().validate(responseData, {
157
157
  abortEarly: false,
158
- allowUnknown: false,
158
+ allowUnknown: true,
159
159
  });
160
160
 
161
161
  if (res_error) {
@@ -249,7 +249,7 @@ class Order {
249
249
  error: res_error,
250
250
  } = OrderPlatformModel.Click2CallResponse().validate(responseData, {
251
251
  abortEarly: false,
252
- allowUnknown: false,
252
+ allowUnknown: true,
253
253
  });
254
254
 
255
255
  if (res_error) {
@@ -329,7 +329,7 @@ class Order {
329
329
  error: res_error,
330
330
  } = OrderPlatformModel.CreateChannelConfigResponse().validate(
331
331
  responseData,
332
- { abortEarly: false, allowUnknown: false }
332
+ { abortEarly: false, allowUnknown: true }
333
333
  );
334
334
 
335
335
  if (res_error) {
@@ -406,7 +406,7 @@ class Order {
406
406
  error: res_error,
407
407
  } = OrderPlatformModel.CreateOrderResponse().validate(responseData, {
408
408
  abortEarly: false,
409
- allowUnknown: false,
409
+ allowUnknown: true,
410
410
  });
411
411
 
412
412
  if (res_error) {
@@ -485,7 +485,7 @@ class Order {
485
485
  error: res_error,
486
486
  } = OrderPlatformModel.SuccessResponse().validate(responseData, {
487
487
  abortEarly: false,
488
- allowUnknown: false,
488
+ allowUnknown: true,
489
489
  });
490
490
 
491
491
  if (res_error) {
@@ -567,7 +567,7 @@ class Order {
567
567
  error: res_error,
568
568
  } = OrderPlatformModel.FileResponse().validate(responseData, {
569
569
  abortEarly: false,
570
- allowUnknown: false,
570
+ allowUnknown: true,
571
571
  });
572
572
 
573
573
  if (res_error) {
@@ -647,7 +647,7 @@ class Order {
647
647
  error: res_error,
648
648
  } = OrderPlatformModel.BulkReportsDownloadResponse().validate(
649
649
  responseData,
650
- { abortEarly: false, allowUnknown: false }
650
+ { abortEarly: false, allowUnknown: true }
651
651
  );
652
652
 
653
653
  if (res_error) {
@@ -724,7 +724,7 @@ class Order {
724
724
  error: res_error,
725
725
  } = OrderPlatformModel.EInvoiceRetryResponse().validate(responseData, {
726
726
  abortEarly: false,
727
- allowUnknown: false,
727
+ allowUnknown: true,
728
728
  });
729
729
 
730
730
  if (res_error) {
@@ -807,7 +807,7 @@ class Order {
807
807
  error: res_error,
808
808
  } = OrderPlatformModel.FetchCreditBalanceResponsePayload().validate(
809
809
  responseData,
810
- { abortEarly: false, allowUnknown: false }
810
+ { abortEarly: false, allowUnknown: true }
811
811
  );
812
812
 
813
813
  if (res_error) {
@@ -887,7 +887,7 @@ class Order {
887
887
  error: res_error,
888
888
  } = OrderPlatformModel.RefundModeConfigResponsePayload().validate(
889
889
  responseData,
890
- { abortEarly: false, allowUnknown: false }
890
+ { abortEarly: false, allowUnknown: true }
891
891
  );
892
892
 
893
893
  if (res_error) {
@@ -904,6 +904,87 @@ class Order {
904
904
  return response;
905
905
  }
906
906
 
907
+ /**
908
+ * @param {OrderPlatformValidator.GenerateInvoiceIDParam} arg - Arg object
909
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
910
+ * @param {import("../PlatformAPIClient").Options} - Options
911
+ * @returns {Promise<OrderPlatformModel.GenerateInvoiceIDResponse>} - Success response
912
+ * @name generateInvoiceID
913
+ * @summary:
914
+ * @description: This API is used to manually generate Invoice ID against shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/generateInvoiceID/).
915
+ */
916
+ async generateInvoiceID(
917
+ { invoiceType, body, requestHeaders } = { requestHeaders: {} },
918
+ { responseHeaders } = { responseHeaders: false }
919
+ ) {
920
+ const { error } = OrderPlatformValidator.generateInvoiceID().validate(
921
+ {
922
+ invoiceType,
923
+ body,
924
+ },
925
+ { abortEarly: false, allowUnknown: true }
926
+ );
927
+ if (error) {
928
+ return Promise.reject(new FDKClientValidationError(error));
929
+ }
930
+
931
+ // Showing warrnings if extra unknown parameters are found
932
+ const {
933
+ error: warrning,
934
+ } = OrderPlatformValidator.generateInvoiceID().validate(
935
+ {
936
+ invoiceType,
937
+ body,
938
+ },
939
+ { abortEarly: false, allowUnknown: false }
940
+ );
941
+ if (warrning) {
942
+ Logger({
943
+ level: "WARN",
944
+ message: `Parameter Validation warrnings for platform > Order > generateInvoiceID \n ${warrning}`,
945
+ });
946
+ }
947
+
948
+ const query_params = {};
949
+
950
+ const xHeaders = {};
951
+
952
+ const response = await PlatformAPIClient.execute(
953
+ this.config,
954
+ "post",
955
+ `/service/platform/order-manage/v1.0/company/${this.config.companyId}/${invoiceType}/id/generate`,
956
+ query_params,
957
+ body,
958
+ { ...xHeaders, ...requestHeaders },
959
+ { responseHeaders }
960
+ );
961
+
962
+ let responseData = response;
963
+ if (responseHeaders) {
964
+ responseData = response[0];
965
+ }
966
+
967
+ const {
968
+ error: res_error,
969
+ } = OrderPlatformModel.GenerateInvoiceIDResponse().validate(responseData, {
970
+ abortEarly: false,
971
+ allowUnknown: true,
972
+ });
973
+
974
+ if (res_error) {
975
+ if (this.config.options.strictResponseCheck === true) {
976
+ return Promise.reject(new FDKResponseValidationError(res_error));
977
+ } else {
978
+ Logger({
979
+ level: "WARN",
980
+ message: `Response Validation Warnings for platform > Order > generateInvoiceID \n ${res_error}`,
981
+ });
982
+ }
983
+ }
984
+
985
+ return response;
986
+ }
987
+
907
988
  /**
908
989
  * @param {OrderPlatformValidator.GeneratePOSReceiptByOrderIdParam} arg - Arg object
909
990
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -977,7 +1058,7 @@ class Order {
977
1058
  error: res_error,
978
1059
  } = OrderPlatformModel.GeneratePosOrderReceiptResponse().validate(
979
1060
  responseData,
980
- { abortEarly: false, allowUnknown: false }
1061
+ { abortEarly: false, allowUnknown: true }
981
1062
  );
982
1063
 
983
1064
  if (res_error) {
@@ -1064,7 +1145,7 @@ class Order {
1064
1145
  error: res_error,
1065
1146
  } = OrderPlatformModel.RoleBaseStateTransitionMapping().validate(
1066
1147
  responseData,
1067
- { abortEarly: false, allowUnknown: false }
1148
+ { abortEarly: false, allowUnknown: true }
1068
1149
  );
1069
1150
 
1070
1151
  if (res_error) {
@@ -1144,7 +1225,7 @@ class Order {
1144
1225
  error: res_error,
1145
1226
  } = OrderPlatformModel.AnnouncementsResponse().validate(responseData, {
1146
1227
  abortEarly: false,
1147
- allowUnknown: false,
1228
+ allowUnknown: true,
1148
1229
  });
1149
1230
 
1150
1231
  if (res_error) {
@@ -1229,7 +1310,7 @@ class Order {
1229
1310
  error: res_error,
1230
1311
  } = OrderPlatformModel.BagDetailsPlatformResponse().validate(responseData, {
1231
1312
  abortEarly: false,
1232
- allowUnknown: false,
1313
+ allowUnknown: true,
1233
1314
  });
1234
1315
 
1235
1316
  if (res_error) {
@@ -1342,7 +1423,7 @@ class Order {
1342
1423
  error: res_error,
1343
1424
  } = OrderPlatformModel.GetBagsPlatformResponse().validate(responseData, {
1344
1425
  abortEarly: false,
1345
- allowUnknown: false,
1426
+ allowUnknown: true,
1346
1427
  });
1347
1428
 
1348
1429
  if (res_error) {
@@ -1418,7 +1499,7 @@ class Order {
1418
1499
  error: res_error,
1419
1500
  } = OrderPlatformModel.BulkActionTemplateResponse().validate(responseData, {
1420
1501
  abortEarly: false,
1421
- allowUnknown: false,
1502
+ allowUnknown: true,
1422
1503
  });
1423
1504
 
1424
1505
  if (res_error) {
@@ -1547,7 +1628,7 @@ class Order {
1547
1628
  error: res_error,
1548
1629
  } = OrderPlatformModel.FileResponse().validate(responseData, {
1549
1630
  abortEarly: false,
1550
- allowUnknown: false,
1631
+ allowUnknown: true,
1551
1632
  });
1552
1633
 
1553
1634
  if (res_error) {
@@ -1622,7 +1703,7 @@ class Order {
1622
1703
  error: res_error,
1623
1704
  } = OrderPlatformModel.CreateChannelConfigData().validate(responseData, {
1624
1705
  abortEarly: false,
1625
- allowUnknown: false,
1706
+ allowUnknown: true,
1626
1707
  });
1627
1708
 
1628
1709
  if (res_error) {
@@ -1767,7 +1848,7 @@ class Order {
1767
1848
  error: res_error,
1768
1849
  } = OrderPlatformModel.LaneConfigResponse().validate(responseData, {
1769
1850
  abortEarly: false,
1770
- allowUnknown: false,
1851
+ allowUnknown: true,
1771
1852
  });
1772
1853
 
1773
1854
  if (res_error) {
@@ -1848,7 +1929,7 @@ class Order {
1848
1929
  error: res_error,
1849
1930
  } = OrderPlatformModel.OrderDetailsResponse().validate(responseData, {
1850
1931
  abortEarly: false,
1851
- allowUnknown: false,
1932
+ allowUnknown: true,
1852
1933
  });
1853
1934
 
1854
1935
  if (res_error) {
@@ -2005,7 +2086,7 @@ class Order {
2005
2086
  error: res_error,
2006
2087
  } = OrderPlatformModel.OrderListingResponse().validate(responseData, {
2007
2088
  abortEarly: false,
2008
- allowUnknown: false,
2089
+ allowUnknown: true,
2009
2090
  });
2010
2091
 
2011
2092
  if (res_error) {
@@ -2170,7 +2251,7 @@ class Order {
2170
2251
  error: res_error,
2171
2252
  } = OrderPlatformModel.GetActionsResponse().validate(responseData, {
2172
2253
  abortEarly: false,
2173
- allowUnknown: false,
2254
+ allowUnknown: true,
2174
2255
  });
2175
2256
 
2176
2257
  if (res_error) {
@@ -2253,7 +2334,7 @@ class Order {
2253
2334
  error: res_error,
2254
2335
  } = OrderPlatformModel.ShipmentInfoResponse().validate(responseData, {
2255
2336
  abortEarly: false,
2256
- allowUnknown: false,
2337
+ allowUnknown: true,
2257
2338
  });
2258
2339
 
2259
2340
  if (res_error) {
@@ -2336,7 +2417,7 @@ class Order {
2336
2417
  error: res_error,
2337
2418
  } = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, {
2338
2419
  abortEarly: false,
2339
- allowUnknown: false,
2420
+ allowUnknown: true,
2340
2421
  });
2341
2422
 
2342
2423
  if (res_error) {
@@ -2420,7 +2501,7 @@ class Order {
2420
2501
  error: res_error,
2421
2502
  } = OrderPlatformModel.PlatformShipmentReasonsResponse().validate(
2422
2503
  responseData,
2423
- { abortEarly: false, allowUnknown: false }
2504
+ { abortEarly: false, allowUnknown: true }
2424
2505
  );
2425
2506
 
2426
2507
  if (res_error) {
@@ -2615,7 +2696,7 @@ class Order {
2615
2696
  error: res_error,
2616
2697
  } = OrderPlatformModel.ShipmentInternalPlatformViewResponse().validate(
2617
2698
  responseData,
2618
- { abortEarly: false, allowUnknown: false }
2699
+ { abortEarly: false, allowUnknown: true }
2619
2700
  );
2620
2701
 
2621
2702
  if (res_error) {
@@ -2802,7 +2883,7 @@ class Order {
2802
2883
  error: res_error,
2803
2884
  } = OrderPlatformModel.BagStateTransitionMap().validate(responseData, {
2804
2885
  abortEarly: false,
2805
- allowUnknown: false,
2886
+ allowUnknown: true,
2806
2887
  });
2807
2888
 
2808
2889
  if (res_error) {
@@ -2883,7 +2964,7 @@ class Order {
2883
2964
  error: res_error,
2884
2965
  } = OrderPlatformModel.FiltersResponse().validate(responseData, {
2885
2966
  abortEarly: false,
2886
- allowUnknown: false,
2967
+ allowUnknown: true,
2887
2968
  });
2888
2969
 
2889
2970
  if (res_error) {
@@ -2963,7 +3044,7 @@ class Order {
2963
3044
  error: res_error,
2964
3045
  } = OrderPlatformModel.InvalidateShipmentCacheResponse().validate(
2965
3046
  responseData,
2966
- { abortEarly: false, allowUnknown: false }
3047
+ { abortEarly: false, allowUnknown: true }
2967
3048
  );
2968
3049
 
2969
3050
  if (res_error) {
@@ -3040,7 +3121,7 @@ class Order {
3040
3121
  error: res_error,
3041
3122
  } = OrderPlatformModel.ResponseDetail().validate(responseData, {
3042
3123
  abortEarly: false,
3043
- allowUnknown: false,
3124
+ allowUnknown: true,
3044
3125
  });
3045
3126
 
3046
3127
  if (res_error) {
@@ -3119,7 +3200,7 @@ class Order {
3119
3200
  error: res_error,
3120
3201
  } = OrderPlatformModel.ShipmentHistoryResponse().validate(responseData, {
3121
3202
  abortEarly: false,
3122
- allowUnknown: false,
3203
+ allowUnknown: true,
3123
3204
  });
3124
3205
 
3125
3206
  if (res_error) {
@@ -3198,7 +3279,7 @@ class Order {
3198
3279
  error: res_error,
3199
3280
  } = OrderPlatformModel.CreateOrderResponse().validate(responseData, {
3200
3281
  abortEarly: false,
3201
- allowUnknown: false,
3282
+ allowUnknown: true,
3202
3283
  });
3203
3284
 
3204
3285
  if (res_error) {
@@ -3277,7 +3358,7 @@ class Order {
3277
3358
  error: res_error,
3278
3359
  } = OrderPlatformModel.StoreReassignResponse().validate(responseData, {
3279
3360
  abortEarly: false,
3280
- allowUnknown: false,
3361
+ allowUnknown: true,
3281
3362
  });
3282
3363
 
3283
3364
  if (res_error) {
@@ -3354,7 +3435,7 @@ class Order {
3354
3435
  error: res_error,
3355
3436
  } = OrderPlatformModel.OrderStatusResult().validate(responseData, {
3356
3437
  abortEarly: false,
3357
- allowUnknown: false,
3438
+ allowUnknown: true,
3358
3439
  });
3359
3440
 
3360
3441
  if (res_error) {
@@ -3433,7 +3514,7 @@ class Order {
3433
3514
  error: res_error,
3434
3515
  } = OrderPlatformModel.SendUserMobileOtpResponse().validate(responseData, {
3435
3516
  abortEarly: false,
3436
- allowUnknown: false,
3517
+ allowUnknown: true,
3437
3518
  });
3438
3519
 
3439
3520
  if (res_error) {
@@ -3523,7 +3604,7 @@ class Order {
3523
3604
  error: res_error,
3524
3605
  } = OrderPlatformModel.CourierPartnerTrackingResponse().validate(
3525
3606
  responseData,
3526
- { abortEarly: false, allowUnknown: false }
3607
+ { abortEarly: false, allowUnknown: true }
3527
3608
  );
3528
3609
 
3529
3610
  if (res_error) {
@@ -3650,7 +3731,7 @@ class Order {
3650
3731
  error: res_error,
3651
3732
  } = OrderPlatformModel.BaseResponse().validate(responseData, {
3652
3733
  abortEarly: false,
3653
- allowUnknown: false,
3734
+ allowUnknown: true,
3654
3735
  });
3655
3736
 
3656
3737
  if (res_error) {
@@ -3733,7 +3814,7 @@ class Order {
3733
3814
  error: res_error,
3734
3815
  } = OrderPlatformModel.UpdatePackagingDimensionsResponse().validate(
3735
3816
  responseData,
3736
- { abortEarly: false, allowUnknown: false }
3817
+ { abortEarly: false, allowUnknown: true }
3737
3818
  );
3738
3819
 
3739
3820
  if (res_error) {
@@ -3813,7 +3894,7 @@ class Order {
3813
3894
  error: res_error,
3814
3895
  } = OrderPlatformModel.UpdateShipmentLockResponse().validate(responseData, {
3815
3896
  abortEarly: false,
3816
- allowUnknown: false,
3897
+ allowUnknown: true,
3817
3898
  });
3818
3899
 
3819
3900
  if (res_error) {
@@ -3894,7 +3975,7 @@ class Order {
3894
3975
  error: res_error,
3895
3976
  } = OrderPlatformModel.UpdateShipmentStatusResponseBody().validate(
3896
3977
  responseData,
3897
- { abortEarly: false, allowUnknown: false }
3978
+ { abortEarly: false, allowUnknown: true }
3898
3979
  );
3899
3980
 
3900
3981
  if (res_error) {
@@ -3974,7 +4055,7 @@ class Order {
3974
4055
  error: res_error,
3975
4056
  } = OrderPlatformModel.CourierPartnerTrackingDetails().validate(
3976
4057
  responseData,
3977
- { abortEarly: false, allowUnknown: false }
4058
+ { abortEarly: false, allowUnknown: true }
3978
4059
  );
3979
4060
 
3980
4061
  if (res_error) {
@@ -4051,7 +4132,7 @@ class Order {
4051
4132
  error: res_error,
4052
4133
  } = OrderPlatformModel.SuccessResponse().validate(responseData, {
4053
4134
  abortEarly: false,
4054
- allowUnknown: false,
4135
+ allowUnknown: true,
4055
4136
  });
4056
4137
 
4057
4138
  if (res_error) {
@@ -4130,7 +4211,7 @@ class Order {
4130
4211
  error: res_error,
4131
4212
  } = OrderPlatformModel.VerifyOtpResponse().validate(responseData, {
4132
4213
  abortEarly: false,
4133
- allowUnknown: false,
4214
+ allowUnknown: true,
4134
4215
  });
4135
4216
 
4136
4217
  if (res_error) {
@@ -962,6 +962,32 @@ export = OrderPlatformModel;
962
962
  * @typedef FyndOrderIdList
963
963
  * @property {string[]} [fynd_order_id]
964
964
  */
965
+ /**
966
+ * @typedef GenerateInvoiceIDErrorResponse
967
+ * @property {GenerateInvoiceIDErrorResponseData} [items]
968
+ */
969
+ /**
970
+ * @typedef GenerateInvoiceIDErrorResponseData
971
+ * @property {string} [error_message]
972
+ * @property {boolean} [invoice_id]
973
+ * @property {string} [shipment_id]
974
+ * @property {boolean} [success]
975
+ */
976
+ /**
977
+ * @typedef GenerateInvoiceIDRequest
978
+ * @property {string[]} shipment_ids
979
+ */
980
+ /**
981
+ * @typedef GenerateInvoiceIDResponse
982
+ * @property {GenerateInvoiceIDResponseData} [items]
983
+ */
984
+ /**
985
+ * @typedef GenerateInvoiceIDResponseData
986
+ * @property {boolean} [error_message]
987
+ * @property {string} [invoice_id]
988
+ * @property {string} [shipment_id]
989
+ * @property {boolean} [success]
990
+ */
965
991
  /**
966
992
  * @typedef GeneratePosOrderReceiptResponse
967
993
  * @property {string} [customer_cn_receipt]
@@ -2399,7 +2425,7 @@ export = OrderPlatformModel;
2399
2425
  declare class OrderPlatformModel {
2400
2426
  }
2401
2427
  declare namespace OrderPlatformModel {
2402
- export { ActionInfo, AdvanceFilterInfo, Affiliate, AffiliateAppConfig, AffiliateAppConfigMeta, AffiliateBag, AffiliateBagDetails, AffiliateBagsDetails, AffiliateConfig, AffiliateDetails, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryOrderConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateMeta, AffiliateStoreIdMapping, AnnouncementResponse, AnnouncementsResponse, AppliedPromos, Article, ArticleDetails, AttachOrderUser, AttachOrderUserResponse, AttachUserInfo, AttachUserOtpData, Attributes, B2BPODetails, BagConfigs, BagDetailsPlatformResponse, BagGST, BagGSTDetails, BagMeta, BagPaymentMethods, BagReasonMeta, BagReasons, BagReturnableCancelableStatus, BagReturnableCancelableStatus1, Bags, BagsPage, BagStateMapper, BagStateTransitionMap, BagStatusHistory, BagUnit, BaseResponse, BillingInfo, BillingStaffDetails, Brand, BulkActionTemplate, BulkActionTemplateResponse, BulkReportsDownloadFailedResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, BuyerDetails, BuyRules, Charge, CheckResponse, Click2CallResponse, CompanyDetails, ContactDetails, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, CreateChannelConfig, CreateChannelConfigData, CreateChannelConfigResponse, CreateChannelConifgErrorResponse, CreateChannelPaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, CreateOrderPayload, CreateOrderResponse, CreditBalanceInfo, CurrentStatus, DataUpdates, Dates, DebugInfo, Dimension, Dimensions, DiscountRules, DispatchManifest, Document, DpConfiguration, DPDetailsData, EinvoiceInfo, EInvoicePortalDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceRetryShipmentData, Entities, EntitiesDataUpdates, EntitiesReasons, EntityReasonData, Error, ErrorDetail, ErrorResponse, FetchCreditBalanceRequestPayload, FetchCreditBalanceResponsePayload, FileResponse, FilterInfoOption, FiltersInfo, FiltersResponse, FinancialBreakup, Formatted, FulfillingStore, FyndOrderIdList, GeneratePosOrderReceiptResponse, GetActionsResponse, GetBagsPlatformResponse, GiftCard, GSTDetailsData, HistoryDict, HistoryMeta, HistoryReason, Identifier, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCachePayload, InvalidateShipmentCacheResponse, InvoiceInfo, Item, ItemCriterias, LaneConfigResponse, LineItem, LocationDetails, LockData, MarketPlacePdf, Meta, OrderBagArticle, OrderBags, OrderBrandName, OrderConfig, OrderData, OrderDetails, OrderDetailsData, OrderDetailsResponse, OrderInfo, OrderingStoreDetails, OrderItemDataUpdates, OrderListingResponse, OrderMeta, OrderPriority, OrderStatus, OrderStatusData, OrderStatusResult, OrderUser, OriginalFilter, Page, PageDetails, PaymentInfo, PaymentMethod, PaymentMethods, PDFLinks, PhoneDetails, PlatformArticleAttributes, PlatformBreakupValues, PlatformChannel, PlatformDeliveryAddress, PlatformItem, PlatformOrderItems, PlatformOrderUpdate, PlatformShipment, PlatformShipmentReasonsResponse, PlatformShipmentTrack, PlatformTrack, PlatformUserDetails, PointBlankOtpData, PostActivityHistory, PostHistoryData, PostHistoryDict, PostHistoryFilters, PostShipmentHistory, Prices, ProcessingDates, Products, ProductsDataUpdates, ProductsDataUpdatesFilters, ProductsReasons, ProductsReasonsData, ProductsReasonsFilters, QuestionSet, Reason, ReasonsData, RefundModeConfigRequestPayload, RefundModeConfigResponsePayload, RefundModeInfo, RefundOption, ReplacementDetails, ResponseDetail, ReturnConfig, ReturnConfig1, RoleBaseStateTransitionMapping, SendSmsPayload, SendUserMobileOTP, SendUserMobileOtpResponse, Shipment, ShipmentBagReasons, ShipmentConfig, ShipmentData, ShipmentDetail, ShipmentDetails, ShipmentHistoryResponse, ShipmentInfoResponse, ShipmentInternalPlatformViewResponse, ShipmentItem, ShipmentItemFulFillingStore, ShipmentItemMeta, ShipmentListingBrand, ShipmentListingChannel, ShipmentMeta, ShipmentPayments, ShipmentReasonsResponse, ShipmentResponseReasons, ShipmentsRequest, ShipmentsResponse, ShipmentStatus, ShipmentStatusData, ShipmentTags, ShipmentTimeStamp, ShippingInfo, SmsDataPayload, StatuesRequest, StatuesResponse, Store, StoreAddress, StoreDocuments, StoreEinvoice, StoreEwaybill, StoreGstCredentials, StoreMeta, StoreReassign, StoreReassignResponse, SubLane, SuccessResponse, SuperLane, Tax, TaxDetails, TaxInfo, TrackingList, TransactionData, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, UpdateShipmentLockPayload, UpdateShipmentLockResponse, UpdateShipmentStatusRequest, UpdateShipmentStatusResponseBody, UploadConsent, URL, UserData, UserDataInfo, UserDetailsData, UserInfo, VerifyMobileOTP, VerifyOtpData, VerifyOtpResponse, VerifyOtpResponseData, Weight };
2428
+ export { ActionInfo, AdvanceFilterInfo, Affiliate, AffiliateAppConfig, AffiliateAppConfigMeta, AffiliateBag, AffiliateBagDetails, AffiliateBagsDetails, AffiliateConfig, AffiliateDetails, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryOrderConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateMeta, AffiliateStoreIdMapping, AnnouncementResponse, AnnouncementsResponse, AppliedPromos, Article, ArticleDetails, AttachOrderUser, AttachOrderUserResponse, AttachUserInfo, AttachUserOtpData, Attributes, B2BPODetails, BagConfigs, BagDetailsPlatformResponse, BagGST, BagGSTDetails, BagMeta, BagPaymentMethods, BagReasonMeta, BagReasons, BagReturnableCancelableStatus, BagReturnableCancelableStatus1, Bags, BagsPage, BagStateMapper, BagStateTransitionMap, BagStatusHistory, BagUnit, BaseResponse, BillingInfo, BillingStaffDetails, Brand, BulkActionTemplate, BulkActionTemplateResponse, BulkReportsDownloadFailedResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, BuyerDetails, BuyRules, Charge, CheckResponse, Click2CallResponse, CompanyDetails, ContactDetails, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, CreateChannelConfig, CreateChannelConfigData, CreateChannelConfigResponse, CreateChannelConifgErrorResponse, CreateChannelPaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, CreateOrderPayload, CreateOrderResponse, CreditBalanceInfo, CurrentStatus, DataUpdates, Dates, DebugInfo, Dimension, Dimensions, DiscountRules, DispatchManifest, Document, DpConfiguration, DPDetailsData, EinvoiceInfo, EInvoicePortalDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceRetryShipmentData, Entities, EntitiesDataUpdates, EntitiesReasons, EntityReasonData, Error, ErrorDetail, ErrorResponse, FetchCreditBalanceRequestPayload, FetchCreditBalanceResponsePayload, FileResponse, FilterInfoOption, FiltersInfo, FiltersResponse, FinancialBreakup, Formatted, FulfillingStore, FyndOrderIdList, GenerateInvoiceIDErrorResponse, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequest, GenerateInvoiceIDResponse, GenerateInvoiceIDResponseData, GeneratePosOrderReceiptResponse, GetActionsResponse, GetBagsPlatformResponse, GiftCard, GSTDetailsData, HistoryDict, HistoryMeta, HistoryReason, Identifier, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCachePayload, InvalidateShipmentCacheResponse, InvoiceInfo, Item, ItemCriterias, LaneConfigResponse, LineItem, LocationDetails, LockData, MarketPlacePdf, Meta, OrderBagArticle, OrderBags, OrderBrandName, OrderConfig, OrderData, OrderDetails, OrderDetailsData, OrderDetailsResponse, OrderInfo, OrderingStoreDetails, OrderItemDataUpdates, OrderListingResponse, OrderMeta, OrderPriority, OrderStatus, OrderStatusData, OrderStatusResult, OrderUser, OriginalFilter, Page, PageDetails, PaymentInfo, PaymentMethod, PaymentMethods, PDFLinks, PhoneDetails, PlatformArticleAttributes, PlatformBreakupValues, PlatformChannel, PlatformDeliveryAddress, PlatformItem, PlatformOrderItems, PlatformOrderUpdate, PlatformShipment, PlatformShipmentReasonsResponse, PlatformShipmentTrack, PlatformTrack, PlatformUserDetails, PointBlankOtpData, PostActivityHistory, PostHistoryData, PostHistoryDict, PostHistoryFilters, PostShipmentHistory, Prices, ProcessingDates, Products, ProductsDataUpdates, ProductsDataUpdatesFilters, ProductsReasons, ProductsReasonsData, ProductsReasonsFilters, QuestionSet, Reason, ReasonsData, RefundModeConfigRequestPayload, RefundModeConfigResponsePayload, RefundModeInfo, RefundOption, ReplacementDetails, ResponseDetail, ReturnConfig, ReturnConfig1, RoleBaseStateTransitionMapping, SendSmsPayload, SendUserMobileOTP, SendUserMobileOtpResponse, Shipment, ShipmentBagReasons, ShipmentConfig, ShipmentData, ShipmentDetail, ShipmentDetails, ShipmentHistoryResponse, ShipmentInfoResponse, ShipmentInternalPlatformViewResponse, ShipmentItem, ShipmentItemFulFillingStore, ShipmentItemMeta, ShipmentListingBrand, ShipmentListingChannel, ShipmentMeta, ShipmentPayments, ShipmentReasonsResponse, ShipmentResponseReasons, ShipmentsRequest, ShipmentsResponse, ShipmentStatus, ShipmentStatusData, ShipmentTags, ShipmentTimeStamp, ShippingInfo, SmsDataPayload, StatuesRequest, StatuesResponse, Store, StoreAddress, StoreDocuments, StoreEinvoice, StoreEwaybill, StoreGstCredentials, StoreMeta, StoreReassign, StoreReassignResponse, SubLane, SuccessResponse, SuperLane, Tax, TaxDetails, TaxInfo, TrackingList, TransactionData, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, UpdateShipmentLockPayload, UpdateShipmentLockResponse, UpdateShipmentStatusRequest, UpdateShipmentStatusResponseBody, UploadConsent, URL, UserData, UserDataInfo, UserDetailsData, UserInfo, VerifyMobileOTP, VerifyOtpData, VerifyOtpResponse, VerifyOtpResponseData, Weight };
2403
2429
  }
2404
2430
  /** @returns {ActionInfo} */
2405
2431
  declare function ActionInfo(): ActionInfo;
@@ -3591,6 +3617,37 @@ declare function FyndOrderIdList(): FyndOrderIdList;
3591
3617
  type FyndOrderIdList = {
3592
3618
  fynd_order_id?: string[];
3593
3619
  };
3620
+ /** @returns {GenerateInvoiceIDErrorResponse} */
3621
+ declare function GenerateInvoiceIDErrorResponse(): GenerateInvoiceIDErrorResponse;
3622
+ type GenerateInvoiceIDErrorResponse = {
3623
+ items?: GenerateInvoiceIDErrorResponseData;
3624
+ };
3625
+ /** @returns {GenerateInvoiceIDErrorResponseData} */
3626
+ declare function GenerateInvoiceIDErrorResponseData(): GenerateInvoiceIDErrorResponseData;
3627
+ type GenerateInvoiceIDErrorResponseData = {
3628
+ error_message?: string;
3629
+ invoice_id?: boolean;
3630
+ shipment_id?: string;
3631
+ success?: boolean;
3632
+ };
3633
+ /** @returns {GenerateInvoiceIDRequest} */
3634
+ declare function GenerateInvoiceIDRequest(): GenerateInvoiceIDRequest;
3635
+ type GenerateInvoiceIDRequest = {
3636
+ shipment_ids: string[];
3637
+ };
3638
+ /** @returns {GenerateInvoiceIDResponse} */
3639
+ declare function GenerateInvoiceIDResponse(): GenerateInvoiceIDResponse;
3640
+ type GenerateInvoiceIDResponse = {
3641
+ items?: GenerateInvoiceIDResponseData;
3642
+ };
3643
+ /** @returns {GenerateInvoiceIDResponseData} */
3644
+ declare function GenerateInvoiceIDResponseData(): GenerateInvoiceIDResponseData;
3645
+ type GenerateInvoiceIDResponseData = {
3646
+ error_message?: boolean;
3647
+ invoice_id?: string;
3648
+ shipment_id?: string;
3649
+ success?: boolean;
3650
+ };
3594
3651
  /** @returns {GeneratePosOrderReceiptResponse} */
3595
3652
  declare function GeneratePosOrderReceiptResponse(): GeneratePosOrderReceiptResponse;
3596
3653
  type GeneratePosOrderReceiptResponse = {
@@ -1070,6 +1070,37 @@ const Joi = require("joi");
1070
1070
  * @property {string[]} [fynd_order_id]
1071
1071
  */
1072
1072
 
1073
+ /**
1074
+ * @typedef GenerateInvoiceIDErrorResponse
1075
+ * @property {GenerateInvoiceIDErrorResponseData} [items]
1076
+ */
1077
+
1078
+ /**
1079
+ * @typedef GenerateInvoiceIDErrorResponseData
1080
+ * @property {string} [error_message]
1081
+ * @property {boolean} [invoice_id]
1082
+ * @property {string} [shipment_id]
1083
+ * @property {boolean} [success]
1084
+ */
1085
+
1086
+ /**
1087
+ * @typedef GenerateInvoiceIDRequest
1088
+ * @property {string[]} shipment_ids
1089
+ */
1090
+
1091
+ /**
1092
+ * @typedef GenerateInvoiceIDResponse
1093
+ * @property {GenerateInvoiceIDResponseData} [items]
1094
+ */
1095
+
1096
+ /**
1097
+ * @typedef GenerateInvoiceIDResponseData
1098
+ * @property {boolean} [error_message]
1099
+ * @property {string} [invoice_id]
1100
+ * @property {string} [shipment_id]
1101
+ * @property {boolean} [success]
1102
+ */
1103
+
1073
1104
  /**
1074
1105
  * @typedef GeneratePosOrderReceiptResponse
1075
1106
  * @property {string} [customer_cn_receipt]
@@ -3943,6 +3974,47 @@ class OrderPlatformModel {
3943
3974
  });
3944
3975
  }
3945
3976
 
3977
+ /** @returns {GenerateInvoiceIDErrorResponse} */
3978
+ static GenerateInvoiceIDErrorResponse() {
3979
+ return Joi.object({
3980
+ items: OrderPlatformModel.GenerateInvoiceIDErrorResponseData(),
3981
+ });
3982
+ }
3983
+
3984
+ /** @returns {GenerateInvoiceIDErrorResponseData} */
3985
+ static GenerateInvoiceIDErrorResponseData() {
3986
+ return Joi.object({
3987
+ error_message: Joi.string().allow(""),
3988
+ invoice_id: Joi.boolean(),
3989
+ shipment_id: Joi.string().allow(""),
3990
+ success: Joi.boolean(),
3991
+ });
3992
+ }
3993
+
3994
+ /** @returns {GenerateInvoiceIDRequest} */
3995
+ static GenerateInvoiceIDRequest() {
3996
+ return Joi.object({
3997
+ shipment_ids: Joi.array().items(Joi.string().allow("")).required(),
3998
+ });
3999
+ }
4000
+
4001
+ /** @returns {GenerateInvoiceIDResponse} */
4002
+ static GenerateInvoiceIDResponse() {
4003
+ return Joi.object({
4004
+ items: OrderPlatformModel.GenerateInvoiceIDResponseData(),
4005
+ });
4006
+ }
4007
+
4008
+ /** @returns {GenerateInvoiceIDResponseData} */
4009
+ static GenerateInvoiceIDResponseData() {
4010
+ return Joi.object({
4011
+ error_message: Joi.boolean(),
4012
+ invoice_id: Joi.string().allow(""),
4013
+ shipment_id: Joi.string().allow(""),
4014
+ success: Joi.boolean(),
4015
+ });
4016
+ }
4017
+
3946
4018
  /** @returns {GeneratePosOrderReceiptResponse} */
3947
4019
  static GeneratePosOrderReceiptResponse() {
3948
4020
  return Joi.object({