@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-beta.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.
Files changed (237) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +19 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +40 -60
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +126 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +118 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +62 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +65 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5039 -1300
  83. package/sdk/platform/Cart/CartPlatformModel.js +1976 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6941 -2203
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  127. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  157. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +48 -38
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +38 -44
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  195. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  196. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  197. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  198. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  199. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  200. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  201. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  206. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  207. package/sdk/platform/User/UserPlatformModel.js +23 -23
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  214. package/sdk/platform/index.d.ts +0 -1
  215. package/sdk/platform/index.js +0 -2
  216. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  217. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  218. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  219. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  220. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  221. package/sdk/public/Content/ContentPublicClient.js +895 -8
  222. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  223. package/sdk/public/Content/ContentPublicModel.js +649 -3
  224. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  225. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  226. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  227. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  228. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  229. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  230. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  231. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  232. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  233. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  234. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  235. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  236. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  237. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -15,6 +15,10 @@ class Logistic {
15
15
  getCountries: "/service/application/logistics/v2.0/countries",
16
16
  getCountry:
17
17
  "/service/application/logistics/v1.0/countries/{country_iso_code}",
18
+ getCourierPartners:
19
+ "/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
20
+ getDeliveryPromise:
21
+ "/service/application/logistics/v1.0/delivery-promise",
18
22
  getLocalities:
19
23
  "/service/application/logistics/v1.0/localities/{locality_type}",
20
24
  getLocality:
@@ -47,7 +51,7 @@ class Logistic {
47
51
  /**
48
52
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
49
53
  * @param {import("../ApplicationAPIClient").Options} - Options
50
- * @returns {Promise<CountryListResponse>} - Success response
54
+ * @returns {Promise<CountryListResult>} - Success response
51
55
  * @name getAllCountries
52
56
  * @summary: Get deliverable countries
53
57
  * @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
@@ -98,7 +102,7 @@ class Logistic {
98
102
  * @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
99
103
  */
100
104
  async getCountries(
101
- { onboarding, pageNo, pageSize, q, requestHeaders } = {
105
+ { onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
102
106
  requestHeaders: {},
103
107
  },
104
108
  { responseHeaders } = { responseHeaders: false }
@@ -116,6 +120,7 @@ class Logistic {
116
120
  query_params["page_no"] = pageNo;
117
121
  query_params["page_size"] = pageSize;
118
122
  query_params["q"] = q;
123
+ query_params["hierarchy"] = hierarchy;
119
124
 
120
125
  const xHeaders = {};
121
126
 
@@ -192,6 +197,111 @@ class Logistic {
192
197
  return response;
193
198
  }
194
199
 
200
+ /**
201
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
202
+ * @param {import("../ApplicationAPIClient").Options} - Options
203
+ * @returns {Promise<ShipmentCourierPartnerResult>} - Success response
204
+ * @name getCourierPartners
205
+ * @summary: Serviceable Courier Partners.
206
+ * @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
207
+ */
208
+ async getCourierPartners(
209
+ { companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
210
+ { responseHeaders } = { responseHeaders: false }
211
+ ) {
212
+ let invalidInput = [];
213
+
214
+ if (!companyId) {
215
+ invalidInput.push({
216
+ message: `The 'companyId' field is required.`,
217
+ path: ["companyId"],
218
+ });
219
+ }
220
+ if (!applicationId) {
221
+ invalidInput.push({
222
+ message: `The 'applicationId' field is required.`,
223
+ path: ["applicationId"],
224
+ });
225
+ }
226
+ if (invalidInput.length) {
227
+ const error = new Error();
228
+ error.message = "Missing required field";
229
+ error.details = invalidInput;
230
+ return Promise.reject(new FDKClientValidationError(error));
231
+ }
232
+
233
+ const query_params = {};
234
+
235
+ const xHeaders = {};
236
+
237
+ const response = await ApplicationAPIClient.execute(
238
+ this._conf,
239
+ "post",
240
+ constructUrl({
241
+ url: this._urls["getCourierPartners"],
242
+ params: { companyId, applicationId },
243
+ }),
244
+ query_params,
245
+ body,
246
+ { ...xHeaders, ...requestHeaders },
247
+ { responseHeaders }
248
+ );
249
+
250
+ let responseData = response;
251
+ if (responseHeaders) {
252
+ responseData = response[0];
253
+ }
254
+
255
+ return response;
256
+ }
257
+
258
+ /**
259
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
260
+ * @param {import("../ApplicationAPIClient").Options} - Options
261
+ * @returns {Promise<GetPromiseDetails>} - Success response
262
+ * @name getDeliveryPromise
263
+ * @summary: Get delivery promise
264
+ * @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
265
+ */
266
+ async getDeliveryPromise(
267
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
268
+ { responseHeaders } = { responseHeaders: false }
269
+ ) {
270
+ let invalidInput = [];
271
+ if (invalidInput.length) {
272
+ const error = new Error();
273
+ error.message = "Missing required field";
274
+ error.details = invalidInput;
275
+ return Promise.reject(new FDKClientValidationError(error));
276
+ }
277
+
278
+ const query_params = {};
279
+ query_params["page_no"] = pageNo;
280
+ query_params["page_size"] = pageSize;
281
+
282
+ const xHeaders = {};
283
+
284
+ const response = await ApplicationAPIClient.execute(
285
+ this._conf,
286
+ "get",
287
+ constructUrl({
288
+ url: this._urls["getDeliveryPromise"],
289
+ params: {},
290
+ }),
291
+ query_params,
292
+ undefined,
293
+ { ...xHeaders, ...requestHeaders },
294
+ { responseHeaders }
295
+ );
296
+
297
+ let responseData = response;
298
+ if (responseHeaders) {
299
+ responseData = response[0];
300
+ }
301
+
302
+ return response;
303
+ }
304
+
195
305
  /**
196
306
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
197
307
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -325,7 +435,7 @@ class Logistic {
325
435
  /**
326
436
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
327
437
  * @param {import("../ApplicationAPIClient").Options} - Options
328
- * @returns {Promise<GetStoreResponse>} - Success response
438
+ * @returns {Promise<GetStoreResult>} - Success response
329
439
  * @name getLocations
330
440
  * @summary: Get available selling locations
331
441
  * @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
@@ -403,7 +513,7 @@ class Logistic {
403
513
  /**
404
514
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
405
515
  * @param {import("../ApplicationAPIClient").Options} - Options
406
- * @returns {Promise<ReAssignStoreResponse>} - Success response
516
+ * @returns {Promise<ReAssignStoreResult>} - Success response
407
517
  * @name getOptimalLocations
408
518
  * @summary: Get selling locations
409
519
  * @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
@@ -448,7 +558,7 @@ class Logistic {
448
558
  /**
449
559
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
450
560
  * @param {import("../ApplicationAPIClient").Options} - Options
451
- * @returns {Promise<PincodeApiResponse>} - Success response
561
+ * @returns {Promise<PincodeDetails>} - Success response
452
562
  * @name getPincodeCity
453
563
  * @summary: Get pincode details
454
564
  * @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
@@ -500,7 +610,7 @@ class Logistic {
500
610
  /**
501
611
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
502
612
  * @param {import("../ApplicationAPIClient").Options} - Options
503
- * @returns {Promise<GetZoneFromPincodeViewResponse>} - Success response
613
+ * @returns {Promise<GetZoneFromPincodeViewResult>} - Success response
504
614
  * @name getPincodeZones
505
615
  * @summary: Get zones
506
616
  * @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
@@ -545,7 +655,7 @@ class Logistic {
545
655
  /**
546
656
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
547
657
  * @param {import("../ApplicationAPIClient").Options} - Options
548
- * @returns {Promise<TATViewResponse>} - Success response
658
+ * @returns {Promise<TATViewResult>} - Success response
549
659
  * @name getTatProduct
550
660
  * @summary: Get product's turnaround time
551
661
  * @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
@@ -590,7 +700,7 @@ class Logistic {
590
700
  /**
591
701
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
592
702
  * @param {import("../ApplicationAPIClient").Options} - Options
593
- * @returns {Promise<ValidateAddressRequest>} - Success response
703
+ * @returns {Promise<ValidateAddressDetails>} - Success response
594
704
  * @name validateAddress
595
705
  * @summary: Validate address
596
706
  * @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
@@ -7,6 +7,7 @@ declare class Order {
7
7
  getInvoiceByShipmentId: string;
8
8
  getOrderById: string;
9
9
  getOrders: string;
10
+ getPosOrderById: string;
10
11
  getShipmentBagReasons: string;
11
12
  getShipmentById: string;
12
13
  getShipmentReasons: string;
@@ -20,12 +21,12 @@ declare class Order {
20
21
  /**
21
22
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
22
23
  * @param {import("../ApplicationAPIClient").Options} - Options
23
- * @returns {Promise<CustomerDetailsResponse>} - Success response
24
+ * @returns {Promise<CustomerDetailsResponseSchema>} - Success response
24
25
  * @name getCustomerDetailsByShipmentId
25
26
  * @summary: Get shipment's customer
26
27
  * @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
27
28
  */
28
- getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerDetailsResponse>;
29
+ getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerDetailsResponseSchema>;
29
30
  /**
30
31
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
31
32
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -53,13 +54,22 @@ declare class Order {
53
54
  * @description: Get all orders associated with a customer account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
54
55
  */
55
56
  getOrders({ status, pageNo, pageSize, fromDate, toDate, startDate, endDate, customMeta, allowInactive, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderList>;
57
+ /**
58
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
59
+ * @param {import("../ApplicationAPIClient").Options} - Options
60
+ * @returns {Promise<OrderById>} - Success response
61
+ * @name getPosOrderById
62
+ * @summary: Retrieves POS order details
63
+ * @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
64
+ */
65
+ getPosOrderById({ orderId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderById>;
56
66
  /**
57
67
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
58
68
  * @param {import("../ApplicationAPIClient").Options} - Options
59
69
  * @returns {Promise<ShipmentBagReasons>} - Success response
60
70
  * @name getShipmentBagReasons
61
- * @summary: List bag cancellation reasons
62
- * @description: Get reasons to perform full or partial cancellation of a bag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
71
+ * @summary: Retrieve Reasons for Cancellation and Return journey
72
+ * @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
63
73
  */
64
74
  getShipmentBagReasons({ shipmentId, bagId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentBagReasons>;
65
75
  /**
@@ -83,12 +93,12 @@ declare class Order {
83
93
  /**
84
94
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
85
95
  * @param {import("../ApplicationAPIClient").Options} - Options
86
- * @returns {Promise<SendOtpToCustomerResponse>} - Success response
96
+ * @returns {Promise<SendOtpToCustomerResponseSchema>} - Success response
87
97
  * @name sendOtpToShipmentCustomer
88
98
  * @summary: Send OTP to customer
89
99
  * @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
90
100
  */
91
- sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SendOtpToCustomerResponse>;
101
+ sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SendOtpToCustomerResponseSchema>;
92
102
  /**
93
103
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
94
104
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -101,19 +111,19 @@ declare class Order {
101
111
  /**
102
112
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
103
113
  * @param {import("../ApplicationAPIClient").Options} - Options
104
- * @returns {Promise<ShipmentApplicationStatusResponse>} - Success response
114
+ * @returns {Promise<ShipmentApplicationStatusResponseSchema>} - Success response
105
115
  * @name updateShipmentStatus
106
116
  * @summary: Updates shipment status
107
- * @description: Update current status of a specific shipment using its shipment ID. Supports both partial and full transition as per the configured settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
117
+ * @description: This operation allows for updating the status and properties of a shipment. For example, it allows users to initiate a return by providing reasons and uploading quality check images. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
108
118
  */
109
- updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentApplicationStatusResponse>;
119
+ updateShipmentStatus({ shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ShipmentApplicationStatusResponseSchema>;
110
120
  /**
111
121
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
112
122
  * @param {import("../ApplicationAPIClient").Options} - Options
113
- * @returns {Promise<VerifyOtpResponse>} - Success response
123
+ * @returns {Promise<VerifyOtpResponseSchema>} - Success response
114
124
  * @name verifyOtpShipmentCustomer
115
125
  * @summary: Verifies OTP
116
- * @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
126
+ * @description: Verify OTP for getting shipment details - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
117
127
  */
118
- verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<VerifyOtpResponse>;
128
+ verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<VerifyOtpResponseSchema>;
119
129
  }
@@ -17,6 +17,8 @@ class Order {
17
17
  "/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",
18
18
  getOrderById: "/service/application/order/v1.0/orders/{order_id}",
19
19
  getOrders: "/service/application/order/v1.0/orders",
20
+ getPosOrderById:
21
+ "/service/application/order/v1.0/orders/pos-order/{order_id}",
20
22
  getShipmentBagReasons:
21
23
  "/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",
22
24
  getShipmentById:
@@ -51,7 +53,7 @@ class Order {
51
53
  /**
52
54
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
53
55
  * @param {import("../ApplicationAPIClient").Options} - Options
54
- * @returns {Promise<CustomerDetailsResponse>} - Success response
56
+ * @returns {Promise<CustomerDetailsResponseSchema>} - Success response
55
57
  * @name getCustomerDetailsByShipmentId
56
58
  * @summary: Get shipment's customer
57
59
  * @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
@@ -276,13 +278,65 @@ class Order {
276
278
  return response;
277
279
  }
278
280
 
281
+ /**
282
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
283
+ * @param {import("../ApplicationAPIClient").Options} - Options
284
+ * @returns {Promise<OrderById>} - Success response
285
+ * @name getPosOrderById
286
+ * @summary: Retrieves POS order details
287
+ * @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
288
+ */
289
+ async getPosOrderById(
290
+ { orderId, requestHeaders } = { requestHeaders: {} },
291
+ { responseHeaders } = { responseHeaders: false }
292
+ ) {
293
+ let invalidInput = [];
294
+
295
+ if (!orderId) {
296
+ invalidInput.push({
297
+ message: `The 'orderId' field is required.`,
298
+ path: ["orderId"],
299
+ });
300
+ }
301
+ if (invalidInput.length) {
302
+ const error = new Error();
303
+ error.message = "Missing required field";
304
+ error.details = invalidInput;
305
+ return Promise.reject(new FDKClientValidationError(error));
306
+ }
307
+
308
+ const query_params = {};
309
+
310
+ const xHeaders = {};
311
+
312
+ const response = await ApplicationAPIClient.execute(
313
+ this._conf,
314
+ "get",
315
+ constructUrl({
316
+ url: this._urls["getPosOrderById"],
317
+ params: { orderId },
318
+ }),
319
+ query_params,
320
+ undefined,
321
+ { ...xHeaders, ...requestHeaders },
322
+ { responseHeaders }
323
+ );
324
+
325
+ let responseData = response;
326
+ if (responseHeaders) {
327
+ responseData = response[0];
328
+ }
329
+
330
+ return response;
331
+ }
332
+
279
333
  /**
280
334
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
281
335
  * @param {import("../ApplicationAPIClient").Options} - Options
282
336
  * @returns {Promise<ShipmentBagReasons>} - Success response
283
337
  * @name getShipmentBagReasons
284
- * @summary: List bag cancellation reasons
285
- * @description: Get reasons to perform full or partial cancellation of a bag. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
338
+ * @summary: Retrieve Reasons for Cancellation and Return journey
339
+ * @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
286
340
  */
287
341
  async getShipmentBagReasons(
288
342
  { shipmentId, bagId, requestHeaders } = { requestHeaders: {} },
@@ -442,7 +496,7 @@ class Order {
442
496
  /**
443
497
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
444
498
  * @param {import("../ApplicationAPIClient").Options} - Options
445
- * @returns {Promise<SendOtpToCustomerResponse>} - Success response
499
+ * @returns {Promise<SendOtpToCustomerResponseSchema>} - Success response
446
500
  * @name sendOtpToShipmentCustomer
447
501
  * @summary: Send OTP to customer
448
502
  * @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
@@ -552,10 +606,10 @@ class Order {
552
606
  /**
553
607
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
554
608
  * @param {import("../ApplicationAPIClient").Options} - Options
555
- * @returns {Promise<ShipmentApplicationStatusResponse>} - Success response
609
+ * @returns {Promise<ShipmentApplicationStatusResponseSchema>} - Success response
556
610
  * @name updateShipmentStatus
557
611
  * @summary: Updates shipment status
558
- * @description: Update current status of a specific shipment using its shipment ID. Supports both partial and full transition as per the configured settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
612
+ * @description: This operation allows for updating the status and properties of a shipment. For example, it allows users to initiate a return by providing reasons and uploading quality check images. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
559
613
  */
560
614
  async updateShipmentStatus(
561
615
  { shipmentId, body, requestHeaders } = { requestHeaders: {} },
@@ -604,10 +658,10 @@ class Order {
604
658
  /**
605
659
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
606
660
  * @param {import("../ApplicationAPIClient").Options} - Options
607
- * @returns {Promise<VerifyOtpResponse>} - Success response
661
+ * @returns {Promise<VerifyOtpResponseSchema>} - Success response
608
662
  * @name verifyOtpShipmentCustomer
609
663
  * @summary: Verifies OTP
610
- * @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
664
+ * @description: Verify OTP for getting shipment details - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
611
665
  */
612
666
  async verifyOtpShipmentCustomer(
613
667
  { orderId, shipmentId, body, requestHeaders } = { requestHeaders: {} },