@gofynd/fdk-client-javascript 1.4.13 → 1.4.14

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 (294) 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 +60 -53
  6. package/sdk/application/Cart/CartApplicationClient.js +130 -53
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
  8. package/sdk/application/Cart/CartApplicationModel.js +380 -159
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
  10. package/sdk/application/Cart/CartApplicationValidator.js +34 -18
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
  16. package/sdk/application/Common/CommonApplicationClient.js +6 -5
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
  26. package/sdk/application/Content/ContentApplicationClient.js +54 -75
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
  28. package/sdk/application/Content/ContentApplicationModel.js +83 -32
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
  30. package/sdk/application/Content/ContentApplicationValidator.js +15 -10
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
  38. package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
  39. package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
  40. package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
  41. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
  42. package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +2 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  46. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  47. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
  48. package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
  49. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
  50. package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
  51. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
  52. package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
  53. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
  54. package/sdk/application/Order/OrderApplicationClient.js +96 -13
  55. package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
  56. package/sdk/application/Order/OrderApplicationModel.js +278 -73
  57. package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
  58. package/sdk/application/Order/OrderApplicationValidator.js +15 -2
  59. package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
  60. package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
  61. package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
  62. package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
  63. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  64. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  65. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
  66. package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  69. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  70. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  71. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  72. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  73. package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
  74. package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
  75. package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
  76. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
  77. package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
  78. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  79. package/sdk/application/User/UserApplicationClient.js +10 -10
  80. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  81. package/sdk/application/User/UserApplicationModel.js +16 -16
  82. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  83. package/sdk/application/User/UserApplicationValidator.js +2 -2
  84. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  85. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  86. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
  87. package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
  88. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  89. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  90. package/sdk/application/index.d.ts +1 -0
  91. package/sdk/application/index.js +2 -0
  92. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  93. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  94. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  95. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  96. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  97. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  98. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  99. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  100. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  101. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  102. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  103. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  104. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
  105. package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
  106. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  107. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
  108. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  109. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  110. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  111. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  112. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  113. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  114. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  115. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  116. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  117. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  118. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  119. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  120. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  121. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  122. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  126. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  127. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  129. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  130. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  131. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  132. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  133. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  134. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  135. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  136. package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
  137. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  138. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  139. package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
  140. package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
  142. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
  143. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
  144. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
  145. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
  146. package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
  147. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
  148. package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
  149. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  150. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  151. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  152. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  153. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  154. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  158. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  161. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  167. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  171. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  173. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  175. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  177. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  179. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  181. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  182. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  183. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  184. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  185. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  186. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  187. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  188. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  189. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  190. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  191. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  192. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  194. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  195. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  196. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  198. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  199. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  200. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  201. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  202. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
  212. package/sdk/platform/Order/OrderPlatformClient.js +589 -229
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
  214. package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
  216. package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  231. package/sdk/platform/PlatformClient.d.ts +0 -2
  232. package/sdk/platform/PlatformClient.js +0 -4
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  252. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  258. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  271. package/sdk/platform/index.d.ts +0 -1
  272. package/sdk/platform/index.js +0 -2
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  278. package/sdk/public/Content/ContentPublicClient.js +791 -5
  279. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  280. package/sdk/public/Content/ContentPublicModel.js +649 -3
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  282. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  290. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  291. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  292. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  293. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  294. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -10,12 +10,26 @@ export = LogisticApplicationValidator;
10
10
  * Default value is 12.
11
11
  * @property {string} [q] - The number of items to retrieve in each page.
12
12
  * Default value is 12.
13
+ * @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
13
14
  */
14
15
  /**
15
16
  * @typedef GetCountryParam
16
17
  * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
17
18
  * the country (e.g., "IN" for India, "US" for the United States).
18
19
  */
20
+ /**
21
+ * @typedef GetCourierPartnersParam
22
+ * @property {number} companyId - Unique identifier of the company.
23
+ * @property {string} applicationId - Unique identifier of the sales channel.
24
+ * @property {LogisticApplicationModel.ShipmentCourierPartnerDetails} body
25
+ */
26
+ /**
27
+ * @typedef GetDeliveryPromiseParam
28
+ * @property {number} [pageNo] - The page number to navigate through the given
29
+ * set of results. Default value is 1.
30
+ * @property {number} [pageSize] - The number of items to retrieve in each page.
31
+ * Default value is 12.
32
+ */
19
33
  /**
20
34
  * @typedef GetLocalitiesParam
21
35
  * @property {string} localityType - Unique geographical division.
@@ -52,7 +66,7 @@ export = LogisticApplicationValidator;
52
66
  */
53
67
  /**
54
68
  * @typedef GetOptimalLocationsParam
55
- * @property {LogisticApplicationModel.ReAssignStoreRequest} body
69
+ * @property {LogisticApplicationModel.ReAssignStoreDetails} body
56
70
  */
57
71
  /**
58
72
  * @typedef GetPincodeCityParam
@@ -60,18 +74,18 @@ export = LogisticApplicationValidator;
60
74
  */
61
75
  /**
62
76
  * @typedef GetPincodeZonesParam
63
- * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
77
+ * @property {LogisticApplicationModel.GetZoneFromPincodeViewDetails} body
64
78
  */
65
79
  /**
66
80
  * @typedef GetTatProductParam
67
- * @property {LogisticApplicationModel.TATViewRequest} body
81
+ * @property {LogisticApplicationModel.TATViewDetails} body
68
82
  */
69
83
  /**
70
84
  * @typedef ValidateAddressParam
71
85
  * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
72
86
  * the country (e.g., "IN" for India, "US" for the United States).
73
87
  * @property {string} templateName - The type of address form.
74
- * @property {LogisticApplicationModel.ValidateAddressRequest} body
88
+ * @property {LogisticApplicationModel.ValidateAddressDetails} body
75
89
  */
76
90
  declare class LogisticApplicationValidator {
77
91
  /** @returns {GetAllCountriesParam} */
@@ -80,6 +94,10 @@ declare class LogisticApplicationValidator {
80
94
  static getCountries(): GetCountriesParam;
81
95
  /** @returns {GetCountryParam} */
82
96
  static getCountry(): GetCountryParam;
97
+ /** @returns {GetCourierPartnersParam} */
98
+ static getCourierPartners(): GetCourierPartnersParam;
99
+ /** @returns {GetDeliveryPromiseParam} */
100
+ static getDeliveryPromise(): GetDeliveryPromiseParam;
83
101
  /** @returns {GetLocalitiesParam} */
84
102
  static getLocalities(): GetLocalitiesParam;
85
103
  /** @returns {GetLocalityParam} */
@@ -98,7 +116,7 @@ declare class LogisticApplicationValidator {
98
116
  static validateAddress(): ValidateAddressParam;
99
117
  }
100
118
  declare namespace LogisticApplicationValidator {
101
- export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeCityParam, GetPincodeZonesParam, GetTatProductParam, ValidateAddressParam };
119
+ export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetCourierPartnersParam, GetDeliveryPromiseParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeCityParam, GetPincodeZonesParam, GetTatProductParam, ValidateAddressParam };
102
120
  }
103
121
  type GetCountriesParam = {
104
122
  /**
@@ -121,6 +139,10 @@ type GetCountriesParam = {
121
139
  * Default value is 12.
122
140
  */
123
141
  q?: string;
142
+ /**
143
+ * - Fetch countries that has certain heirarchy present.
144
+ */
145
+ hierarchy?: string;
124
146
  };
125
147
  type GetCountryParam = {
126
148
  /**
@@ -129,6 +151,29 @@ type GetCountryParam = {
129
151
  */
130
152
  countryIsoCode: string;
131
153
  };
154
+ type GetCourierPartnersParam = {
155
+ /**
156
+ * - Unique identifier of the company.
157
+ */
158
+ companyId: number;
159
+ /**
160
+ * - Unique identifier of the sales channel.
161
+ */
162
+ applicationId: string;
163
+ body: LogisticApplicationModel.ShipmentCourierPartnerDetails;
164
+ };
165
+ type GetDeliveryPromiseParam = {
166
+ /**
167
+ * - The page number to navigate through the given
168
+ * set of results. Default value is 1.
169
+ */
170
+ pageNo?: number;
171
+ /**
172
+ * - The number of items to retrieve in each page.
173
+ * Default value is 12.
174
+ */
175
+ pageSize?: number;
176
+ };
132
177
  type GetLocalitiesParam = {
133
178
  /**
134
179
  * - Unique geographical division.
@@ -224,7 +269,7 @@ type GetLocationsParam = {
224
269
  pageSize?: number;
225
270
  };
226
271
  type GetOptimalLocationsParam = {
227
- body: LogisticApplicationModel.ReAssignStoreRequest;
272
+ body: LogisticApplicationModel.ReAssignStoreDetails;
228
273
  };
229
274
  type GetPincodeCityParam = {
230
275
  /**
@@ -233,10 +278,10 @@ type GetPincodeCityParam = {
233
278
  pincode: string;
234
279
  };
235
280
  type GetPincodeZonesParam = {
236
- body: LogisticApplicationModel.GetZoneFromPincodeViewRequest;
281
+ body: LogisticApplicationModel.GetZoneFromPincodeViewDetails;
237
282
  };
238
283
  type GetTatProductParam = {
239
- body: LogisticApplicationModel.TATViewRequest;
284
+ body: LogisticApplicationModel.TATViewDetails;
240
285
  };
241
286
  type ValidateAddressParam = {
242
287
  /**
@@ -248,7 +293,7 @@ type ValidateAddressParam = {
248
293
  * - The type of address form.
249
294
  */
250
295
  templateName: string;
251
- body: LogisticApplicationModel.ValidateAddressRequest;
296
+ body: LogisticApplicationModel.ValidateAddressDetails;
252
297
  };
253
298
  type GetAllCountriesParam = any;
254
299
  import LogisticApplicationModel = require("./LogisticApplicationModel");
@@ -14,6 +14,7 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
14
14
  * Default value is 12.
15
15
  * @property {string} [q] - The number of items to retrieve in each page.
16
16
  * Default value is 12.
17
+ * @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
17
18
  */
18
19
 
19
20
  /**
@@ -22,6 +23,21 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
22
23
  * the country (e.g., "IN" for India, "US" for the United States).
23
24
  */
24
25
 
26
+ /**
27
+ * @typedef GetCourierPartnersParam
28
+ * @property {number} companyId - Unique identifier of the company.
29
+ * @property {string} applicationId - Unique identifier of the sales channel.
30
+ * @property {LogisticApplicationModel.ShipmentCourierPartnerDetails} body
31
+ */
32
+
33
+ /**
34
+ * @typedef GetDeliveryPromiseParam
35
+ * @property {number} [pageNo] - The page number to navigate through the given
36
+ * set of results. Default value is 1.
37
+ * @property {number} [pageSize] - The number of items to retrieve in each page.
38
+ * Default value is 12.
39
+ */
40
+
25
41
  /**
26
42
  * @typedef GetLocalitiesParam
27
43
  * @property {string} localityType - Unique geographical division.
@@ -61,7 +77,7 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
61
77
 
62
78
  /**
63
79
  * @typedef GetOptimalLocationsParam
64
- * @property {LogisticApplicationModel.ReAssignStoreRequest} body
80
+ * @property {LogisticApplicationModel.ReAssignStoreDetails} body
65
81
  */
66
82
 
67
83
  /**
@@ -71,12 +87,12 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
71
87
 
72
88
  /**
73
89
  * @typedef GetPincodeZonesParam
74
- * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
90
+ * @property {LogisticApplicationModel.GetZoneFromPincodeViewDetails} body
75
91
  */
76
92
 
77
93
  /**
78
94
  * @typedef GetTatProductParam
79
- * @property {LogisticApplicationModel.TATViewRequest} body
95
+ * @property {LogisticApplicationModel.TATViewDetails} body
80
96
  */
81
97
 
82
98
  /**
@@ -84,7 +100,7 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
84
100
  * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
85
101
  * the country (e.g., "IN" for India, "US" for the United States).
86
102
  * @property {string} templateName - The type of address form.
87
- * @property {LogisticApplicationModel.ValidateAddressRequest} body
103
+ * @property {LogisticApplicationModel.ValidateAddressDetails} body
88
104
  */
89
105
 
90
106
  class LogisticApplicationValidator {
@@ -100,6 +116,7 @@ class LogisticApplicationValidator {
100
116
  pageNo: Joi.number(),
101
117
  pageSize: Joi.number(),
102
118
  q: Joi.string().allow(""),
119
+ hierarchy: Joi.string().allow(""),
103
120
  });
104
121
  }
105
122
 
@@ -110,6 +127,23 @@ class LogisticApplicationValidator {
110
127
  }).required();
111
128
  }
112
129
 
130
+ /** @returns {GetCourierPartnersParam} */
131
+ static getCourierPartners() {
132
+ return Joi.object({
133
+ companyId: Joi.number().required(),
134
+ applicationId: Joi.string().allow("").required(),
135
+ body: LogisticApplicationModel.ShipmentCourierPartnerDetails().required(),
136
+ }).required();
137
+ }
138
+
139
+ /** @returns {GetDeliveryPromiseParam} */
140
+ static getDeliveryPromise() {
141
+ return Joi.object({
142
+ pageNo: Joi.number(),
143
+ pageSize: Joi.number(),
144
+ });
145
+ }
146
+
113
147
  /** @returns {GetLocalitiesParam} */
114
148
  static getLocalities() {
115
149
  return Joi.object({
@@ -152,7 +186,7 @@ class LogisticApplicationValidator {
152
186
  /** @returns {GetOptimalLocationsParam} */
153
187
  static getOptimalLocations() {
154
188
  return Joi.object({
155
- body: LogisticApplicationModel.ReAssignStoreRequest().required(),
189
+ body: LogisticApplicationModel.ReAssignStoreDetails().required(),
156
190
  }).required();
157
191
  }
158
192
 
@@ -166,14 +200,14 @@ class LogisticApplicationValidator {
166
200
  /** @returns {GetPincodeZonesParam} */
167
201
  static getPincodeZones() {
168
202
  return Joi.object({
169
- body: LogisticApplicationModel.GetZoneFromPincodeViewRequest().required(),
203
+ body: LogisticApplicationModel.GetZoneFromPincodeViewDetails().required(),
170
204
  }).required();
171
205
  }
172
206
 
173
207
  /** @returns {GetTatProductParam} */
174
208
  static getTatProduct() {
175
209
  return Joi.object({
176
- body: LogisticApplicationModel.TATViewRequest().required(),
210
+ body: LogisticApplicationModel.TATViewDetails().required(),
177
211
  }).required();
178
212
  }
179
213
 
@@ -182,7 +216,7 @@ class LogisticApplicationValidator {
182
216
  return Joi.object({
183
217
  countryIsoCode: Joi.string().allow("").required(),
184
218
  templateName: Joi.string().allow("").required(),
185
- body: LogisticApplicationModel.ValidateAddressRequest().required(),
219
+ body: LogisticApplicationModel.ValidateAddressDetails().required(),
186
220
  }).required();
187
221
  }
188
222
  }
@@ -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;
@@ -23,13 +24,14 @@ declare class Order {
23
24
  *
24
25
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
25
26
  * @param {import("../ApplicationAPIClient").Options} - Options
26
- * @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
27
- * Success response
27
+ * @returns {Promise<OrderApplicationModel.CustomerDetailsResponseSchema>}
28
+ * - Success response
29
+ *
28
30
  * @name getCustomerDetailsByShipmentId
29
31
  * @summary: Get shipment's customer
30
32
  * @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/).
31
33
  */
32
- getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.GetCustomerDetailsByShipmentIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.CustomerDetailsResponse>;
34
+ getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.GetCustomerDetailsByShipmentIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.CustomerDetailsResponseSchema>;
33
35
  /**
34
36
  * @param {OrderApplicationValidator.GetInvoiceByShipmentIdParam} arg - Arg object.
35
37
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -61,6 +63,16 @@ declare class Order {
61
63
  * @description: Get all orders associated with a customer account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
62
64
  */
63
65
  getOrders({ status, pageNo, pageSize, fromDate, toDate, startDate, endDate, customMeta, allowInactive, requestHeaders, }?: OrderApplicationValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderList>;
66
+ /**
67
+ * @param {OrderApplicationValidator.GetPosOrderByIdParam} arg - Arg object.
68
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
69
+ * @param {import("../ApplicationAPIClient").Options} - Options
70
+ * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
71
+ * @name getPosOrderById
72
+ * @summary: Retrieves POS order details
73
+ * @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/).
74
+ */
75
+ getPosOrderById({ orderId, requestHeaders }?: OrderApplicationValidator.GetPosOrderByIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderById>;
64
76
  /**
65
77
  * @param {OrderApplicationValidator.GetShipmentBagReasonsParam} arg - Arg object.
66
78
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -95,13 +107,14 @@ declare class Order {
95
107
  * @param {OrderApplicationValidator.SendOtpToShipmentCustomerParam} arg - Arg object.
96
108
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
97
109
  * @param {import("../ApplicationAPIClient").Options} - Options
98
- * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
99
- * Success response
110
+ * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponseSchema>}
111
+ * - Success response
112
+ *
100
113
  * @name sendOtpToShipmentCustomer
101
114
  * @summary: Send OTP to customer
102
115
  * @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
103
116
  */
104
- sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.SendOtpToShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.SendOtpToCustomerResponse>;
117
+ sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.SendOtpToShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.SendOtpToCustomerResponseSchema>;
105
118
  /**
106
119
  * @param {OrderApplicationValidator.TrackShipmentParam} arg - Arg object.
107
120
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -116,24 +129,25 @@ declare class Order {
116
129
  * @param {OrderApplicationValidator.UpdateShipmentStatusParam} arg - Arg object.
117
130
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
118
131
  * @param {import("../ApplicationAPIClient").Options} - Options
119
- * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>}
132
+ * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponseSchema>}
120
133
  * - Success response
121
134
  *
122
135
  * @name updateShipmentStatus
123
136
  * @summary: Updates shipment status
124
137
  * @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/).
125
138
  */
126
- updateShipmentStatus({ shipmentId, body, requestHeaders }?: OrderApplicationValidator.UpdateShipmentStatusParam, { responseHeaders }?: object): Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>;
139
+ updateShipmentStatus({ shipmentId, body, requestHeaders }?: OrderApplicationValidator.UpdateShipmentStatusParam, { responseHeaders }?: object): Promise<OrderApplicationModel.ShipmentApplicationStatusResponseSchema>;
127
140
  /**
128
141
  * @param {OrderApplicationValidator.VerifyOtpShipmentCustomerParam} arg - Arg object.
129
142
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
130
143
  * @param {import("../ApplicationAPIClient").Options} - Options
131
- * @returns {Promise<OrderApplicationModel.VerifyOtpResponse>} - Success response
144
+ * @returns {Promise<OrderApplicationModel.VerifyOtpResponseSchema>} -
145
+ * Success response
132
146
  * @name verifyOtpShipmentCustomer
133
147
  * @summary: Verifies OTP
134
148
  * @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
135
149
  */
136
- verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.VerifyOtpResponse>;
150
+ verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.VerifyOtpResponseSchema>;
137
151
  }
138
152
  import OrderApplicationValidator = require("./OrderApplicationValidator");
139
153
  import OrderApplicationModel = require("./OrderApplicationModel");
@@ -20,6 +20,8 @@ class Order {
20
20
  "/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",
21
21
  getOrderById: "/service/application/order/v1.0/orders/{order_id}",
22
22
  getOrders: "/service/application/order/v1.0/orders",
23
+ getPosOrderById:
24
+ "/service/application/order/v1.0/orders/pos-order/{order_id}",
23
25
  getShipmentBagReasons:
24
26
  "/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",
25
27
  getShipmentById:
@@ -57,8 +59,9 @@ class Order {
57
59
  *
58
60
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
59
61
  * @param {import("../ApplicationAPIClient").Options} - Options
60
- * @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
61
- * Success response
62
+ * @returns {Promise<OrderApplicationModel.CustomerDetailsResponseSchema>}
63
+ * - Success response
64
+ *
62
65
  * @name getCustomerDetailsByShipmentId
63
66
  * @summary: Get shipment's customer
64
67
  * @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/).
@@ -115,10 +118,10 @@ class Order {
115
118
 
116
119
  const {
117
120
  error: res_error,
118
- } = OrderApplicationModel.CustomerDetailsResponse().validate(responseData, {
119
- abortEarly: false,
120
- allowUnknown: true,
121
- });
121
+ } = OrderApplicationModel.CustomerDetailsResponseSchema().validate(
122
+ responseData,
123
+ { abortEarly: false, allowUnknown: true }
124
+ );
122
125
 
123
126
  if (res_error) {
124
127
  if (this._conf.options.strictResponseCheck === true) {
@@ -410,6 +413,84 @@ class Order {
410
413
  return response;
411
414
  }
412
415
 
416
+ /**
417
+ * @param {OrderApplicationValidator.GetPosOrderByIdParam} arg - Arg object.
418
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
419
+ * @param {import("../ApplicationAPIClient").Options} - Options
420
+ * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
421
+ * @name getPosOrderById
422
+ * @summary: Retrieves POS order details
423
+ * @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/).
424
+ */
425
+ async getPosOrderById(
426
+ { orderId, requestHeaders } = { requestHeaders: {} },
427
+ { responseHeaders } = { responseHeaders: false }
428
+ ) {
429
+ const { error } = OrderApplicationValidator.getPosOrderById().validate(
430
+ { orderId },
431
+ { abortEarly: false, allowUnknown: true }
432
+ );
433
+ if (error) {
434
+ return Promise.reject(new FDKClientValidationError(error));
435
+ }
436
+
437
+ // Showing warrnings if extra unknown parameters are found
438
+ const {
439
+ error: warrning,
440
+ } = OrderApplicationValidator.getPosOrderById().validate(
441
+ { orderId },
442
+ { abortEarly: false, allowUnknown: false }
443
+ );
444
+ if (warrning) {
445
+ Logger({
446
+ level: "WARN",
447
+ message: `Parameter Validation warrnings for application > Order > getPosOrderById \n ${warrning}`,
448
+ });
449
+ }
450
+
451
+ const query_params = {};
452
+
453
+ const xHeaders = {};
454
+
455
+ const response = await ApplicationAPIClient.execute(
456
+ this._conf,
457
+ "get",
458
+ constructUrl({
459
+ url: this._urls["getPosOrderById"],
460
+ params: { orderId },
461
+ }),
462
+ query_params,
463
+ undefined,
464
+ { ...xHeaders, ...requestHeaders },
465
+ { responseHeaders }
466
+ );
467
+
468
+ let responseData = response;
469
+ if (responseHeaders) {
470
+ responseData = response[0];
471
+ }
472
+
473
+ const {
474
+ error: res_error,
475
+ } = OrderApplicationModel.OrderById().validate(responseData, {
476
+ abortEarly: false,
477
+ allowUnknown: true,
478
+ });
479
+
480
+ if (res_error) {
481
+ if (this._conf.options.strictResponseCheck === true) {
482
+ return Promise.reject(new FDKResponseValidationError(res_error));
483
+ } else {
484
+ Logger({
485
+ level: "WARN",
486
+ message: `Response Validation Warnings for application > Order > getPosOrderById \n ${res_error}`,
487
+ });
488
+ }
489
+ }
490
+
491
+ return response;
492
+ }
493
+
413
494
  /**
414
495
  * @param {OrderApplicationValidator.GetShipmentBagReasonsParam} arg - Arg object.
415
496
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -651,8 +732,9 @@ class Order {
651
732
  * @param {OrderApplicationValidator.SendOtpToShipmentCustomerParam} arg - Arg object.
652
733
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
653
734
  * @param {import("../ApplicationAPIClient").Options} - Options
654
- * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
655
- * Success response
735
+ * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponseSchema>}
736
+ * - Success response
737
+ *
656
738
  * @name sendOtpToShipmentCustomer
657
739
  * @summary: Send OTP to customer
658
740
  * @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
@@ -709,7 +791,7 @@ class Order {
709
791
 
710
792
  const {
711
793
  error: res_error,
712
- } = OrderApplicationModel.SendOtpToCustomerResponse().validate(
794
+ } = OrderApplicationModel.SendOtpToCustomerResponseSchema().validate(
713
795
  responseData,
714
796
  { abortEarly: false, allowUnknown: true }
715
797
  );
@@ -810,7 +892,7 @@ class Order {
810
892
  * @param {OrderApplicationValidator.UpdateShipmentStatusParam} arg - Arg object.
811
893
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
812
894
  * @param {import("../ApplicationAPIClient").Options} - Options
813
- * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>}
895
+ * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponseSchema>}
814
896
  * - Success response
815
897
  *
816
898
  * @name updateShipmentStatus
@@ -867,7 +949,7 @@ class Order {
867
949
 
868
950
  const {
869
951
  error: res_error,
870
- } = OrderApplicationModel.ShipmentApplicationStatusResponse().validate(
952
+ } = OrderApplicationModel.ShipmentApplicationStatusResponseSchema().validate(
871
953
  responseData,
872
954
  { abortEarly: false, allowUnknown: true }
873
955
  );
@@ -890,7 +972,8 @@ class Order {
890
972
  * @param {OrderApplicationValidator.VerifyOtpShipmentCustomerParam} arg - Arg object.
891
973
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
892
974
  * @param {import("../ApplicationAPIClient").Options} - Options
893
- * @returns {Promise<OrderApplicationModel.VerifyOtpResponse>} - Success response
975
+ * @returns {Promise<OrderApplicationModel.VerifyOtpResponseSchema>} -
976
+ * Success response
894
977
  * @name verifyOtpShipmentCustomer
895
978
  * @summary: Verifies OTP
896
979
  * @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
@@ -947,7 +1030,7 @@ class Order {
947
1030
 
948
1031
  const {
949
1032
  error: res_error,
950
- } = OrderApplicationModel.VerifyOtpResponse().validate(responseData, {
1033
+ } = OrderApplicationModel.VerifyOtpResponseSchema().validate(responseData, {
951
1034
  abortEarly: false,
952
1035
  allowUnknown: true,
953
1036
  });