@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10

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 (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -1,192 +1,160 @@
1
1
  export = OrderApplicationModel;
2
2
  /**
3
- * @typedef ApefaceApiError
4
- * @property {string} [message]
5
- * @property {boolean} [success]
6
- */
7
- /**
8
- * @typedef AppliedFreeArticles
9
- * @property {string} [article_id]
10
- * @property {Object} [free_gift_item_details]
11
- * @property {string} [parent_item_identifier]
12
- * @property {number} [quantity]
13
- */
14
- /**
15
- * @typedef AppliedPromos
16
- * @property {number} [amount]
17
- * @property {AppliedFreeArticles[]} [applied_free_articles]
18
- * @property {number} [article_quantity]
19
- * @property {boolean} [mrp_promotion]
20
- * @property {string} [promo_id]
21
- * @property {string} [promotion_name]
22
- * @property {string} [promotion_type]
23
- */
24
- /**
25
- * @typedef BagReasonMeta
26
- * @property {boolean} [show_text_area]
3
+ * @typedef OrderPage
4
+ * @property {string} [type]
5
+ * @property {number} [item_total]
6
+ * @property {number} [current]
7
+ * @property {number} [size]
8
+ * @property {boolean} [has_next]
27
9
  */
28
10
  /**
29
- * @typedef BagReasons
30
- * @property {string} [display_name]
31
- * @property {number} [id]
32
- * @property {BagReasonMeta} [meta]
33
- * @property {string[]} [qc_type]
34
- * @property {QuestionSet[]} [question_set]
35
- * @property {BagReasons[]} [reasons]
11
+ * @typedef UserInfo
12
+ * @property {string} [first_name]
13
+ * @property {string} [gender]
14
+ * @property {string} [name]
15
+ * @property {string} [last_name]
16
+ * @property {string} [mobile]
17
+ * @property {string} [email]
36
18
  */
37
19
  /**
38
- * @typedef Bags
39
- * @property {AppliedPromos[]} [applied_promos]
40
- * @property {boolean} [can_cancel]
41
- * @property {boolean} [can_return]
42
- * @property {string} [currency_code]
20
+ * @typedef BreakupValues
21
+ * @property {number} [value]
43
22
  * @property {string} [currency_symbol]
44
- * @property {CurrentStatus} [current_status]
45
- * @property {string} [delivery_date]
46
- * @property {FinancialBreakup[]} [financial_breakup]
47
- * @property {number} [id]
48
- * @property {Item} [item]
49
- * @property {number} [line_number]
50
- * @property {Object} [meta]
51
- * @property {Object} [parent_promo_bags]
52
- * @property {Prices} [prices]
53
- * @property {number} [quantity]
54
- * @property {string} [returnable_date]
55
- * @property {string} [seller_identifier]
56
- */
57
- /**
58
- * @typedef BagsForReorder
59
- * @property {BagsForReorderArticleAssignment} [article_assignment]
60
- * @property {number} [item_id]
61
- * @property {string} [item_size]
62
- * @property {number} [quantity]
63
- * @property {number} [seller_id]
64
- * @property {number} [store_id]
23
+ * @property {string} [name]
24
+ * @property {string} [display]
25
+ * @property {string} [currency_code]
65
26
  */
66
27
  /**
67
- * @typedef BagsForReorderArticleAssignment
68
- * @property {string} [level]
69
- * @property {string} [strategy]
28
+ * @typedef ShipmentPayment
29
+ * @property {string} [mop]
30
+ * @property {string} [payment_mode]
31
+ * @property {string} [status]
32
+ * @property {string} [mode]
33
+ * @property {string} [logo]
34
+ * @property {string} [display_name]
70
35
  */
71
36
  /**
72
- * @typedef BreakupValues
73
- * @property {string} [currency_code]
74
- * @property {string} [currency_symbol]
75
- * @property {string} [display]
37
+ * @typedef ShipmentUserInfo
38
+ * @property {string} [first_name]
39
+ * @property {string} [gender]
76
40
  * @property {string} [name]
77
- * @property {number} [value]
41
+ * @property {string} [last_name]
42
+ * @property {string} [mobile]
43
+ * @property {string} [email]
78
44
  */
79
45
  /**
80
- * @typedef CurrentStatus
81
- * @property {string} [journey_type]
46
+ * @typedef FulfillingStore
47
+ * @property {number} [id]
48
+ * @property {string} [code]
82
49
  * @property {string} [name]
83
- * @property {string} [status]
84
- * @property {string} [updated_at]
50
+ * @property {string} [company_name]
51
+ * @property {number} [company_id]
85
52
  */
86
53
  /**
87
- * @typedef CustomerDetailsResponse
88
- * @property {string} [country]
89
- * @property {string} [name]
90
- * @property {string} [order_id]
91
- * @property {string} [phone]
92
- * @property {string} [shipment_id]
54
+ * @typedef ShipmentStatus
55
+ * @property {string} [value]
56
+ * @property {string} [title]
57
+ * @property {string} [hex_code]
93
58
  */
94
59
  /**
95
- * @typedef DataUpdates
96
- * @property {EntitiesDataUpdates[]} [entities]
97
- * @property {ProductsDataUpdates[]} [products]
60
+ * @typedef Invoice
61
+ * @property {string} [invoice_url]
62
+ * @property {string} [updated_date]
63
+ * @property {string} [label_url]
98
64
  */
99
65
  /**
100
- * @typedef DeliveryAddress
101
- * @property {string} [address]
102
- * @property {string} [address_category]
103
- * @property {string} [address_type]
104
- * @property {string} [address1]
105
- * @property {string} [address2]
106
- * @property {string} [area]
107
- * @property {string} [city]
108
- * @property {string} [contact_person]
109
- * @property {string} [country]
110
- * @property {string} [country_iso_code]
111
- * @property {string} [country_phone_code]
112
- * @property {string} [created_at]
113
- * @property {string} [display_address]
114
- * @property {string} [email]
115
- * @property {string} [landmark]
116
- * @property {number} [latitude]
117
- * @property {number} [longitude]
118
- * @property {string} [name]
119
- * @property {string} [phone]
120
- * @property {string} [pincode]
121
- * @property {string} [state]
122
- * @property {string} [updated_at]
123
- * @property {string} [version]
66
+ * @typedef NestedTrackingDetails
67
+ * @property {boolean} [is_passed]
68
+ * @property {string} [time]
69
+ * @property {boolean} [is_current]
70
+ * @property {string} [status]
124
71
  */
125
72
  /**
126
- * @typedef EntitiesDataUpdates
127
- * @property {Object} [data]
128
- * @property {Object[]} [filters]
73
+ * @typedef TrackingDetails
74
+ * @property {string} [value]
75
+ * @property {boolean} [is_current]
76
+ * @property {boolean} [is_passed]
77
+ * @property {string} [status]
78
+ * @property {string} [time]
79
+ * @property {NestedTrackingDetails[]} [tracking_details]
129
80
  */
130
81
  /**
131
- * @typedef EntitiesReasons
132
- * @property {EntityReasonData} [data]
133
- * @property {Object[]} [filters]
82
+ * @typedef TimeStampData
83
+ * @property {string} [min]
84
+ * @property {string} [max]
134
85
  */
135
86
  /**
136
- * @typedef EntityReasonData
137
- * @property {number} [reason_id]
138
- * @property {string} [reason_text]
87
+ * @typedef Promise
88
+ * @property {boolean} [show_promise]
89
+ * @property {TimeStampData} [timestamp]
139
90
  */
140
91
  /**
141
- * @typedef ErrorResponse
142
- * @property {string} [code]
143
- * @property {string} [exception]
144
- * @property {string} [message]
145
- * @property {string} [stack_trace]
146
- * @property {number} [status]
92
+ * @typedef ShipmentTotalDetails
93
+ * @property {number} [pieces]
94
+ * @property {number} [total_price]
95
+ * @property {number} [sizes]
147
96
  */
148
97
  /**
149
- * @typedef FinancialBreakup
150
- * @property {boolean} [added_to_fynd_cash]
151
- * @property {number} [amount_paid]
152
- * @property {number} [amount_paid_roundoff]
98
+ * @typedef Prices
99
+ * @property {number} [delivery_charge]
100
+ * @property {number} [coupon_value]
153
101
  * @property {number} [brand_calculated_amount]
154
- * @property {number} [cashback]
155
- * @property {number} [cashback_applied]
156
- * @property {number} [cod_charges]
102
+ * @property {number} [value_of_good]
103
+ * @property {number} [price_marked]
157
104
  * @property {number} [coupon_effective_discount]
158
- * @property {number} [coupon_value]
159
- * @property {number} [delivery_charge]
105
+ * @property {string} [currency_symbol]
160
106
  * @property {number} [discount]
161
- * @property {number} [fynd_credits]
162
- * @property {number} [gst_fee]
163
- * @property {string} [gst_tag]
164
107
  * @property {number} [gst_tax_percentage]
165
- * @property {string} [hsn_code]
166
- * @property {Identifiers} [identifiers]
167
- * @property {string} [item_name]
108
+ * @property {number} [cod_charges]
109
+ * @property {number} [amount_paid]
110
+ * @property {boolean} [added_to_fynd_cash]
111
+ * @property {number} [transfer_price]
112
+ * @property {number} [cashback_applied]
168
113
  * @property {number} [price_effective]
169
- * @property {number} [price_marked]
114
+ * @property {number} [cashback]
115
+ * @property {number} [refund_credit]
116
+ * @property {number} [amount_paid_roundoff]
170
117
  * @property {number} [promotion_effective_discount]
171
118
  * @property {number} [refund_amount]
172
- * @property {number} [refund_credit]
173
- * @property {string} [size]
174
- * @property {number} [total_units]
175
- * @property {number} [transfer_price]
176
- * @property {number} [value_of_good]
119
+ * @property {string} [currency_code]
120
+ * @property {number} [fynd_credits]
177
121
  */
178
122
  /**
179
- * @typedef FulfillingCompany
180
- * @property {number} [id]
123
+ * @typedef ItemBrand
124
+ * @property {string} [logo]
181
125
  * @property {string} [name]
182
126
  */
183
127
  /**
184
- * @typedef FulfillingStore
128
+ * @typedef Item
129
+ * @property {string[]} [image]
130
+ * @property {string[]} [l1_categories]
131
+ * @property {ItemBrand} [brand]
132
+ * @property {string} [seller_identifier]
185
133
  * @property {string} [code]
186
- * @property {number} [company_id]
187
- * @property {string} [company_name]
188
134
  * @property {number} [id]
189
135
  * @property {string} [name]
136
+ * @property {string} [l3_category_name]
137
+ * @property {string} [slug_key]
138
+ * @property {string[]} [l2_categories]
139
+ * @property {string} [size]
140
+ * @property {Object} [attributes]
141
+ */
142
+ /**
143
+ * @typedef AppliedFreeArticles
144
+ * @property {string} [article_id]
145
+ * @property {Object} [free_gift_item_details]
146
+ * @property {string} [parent_item_identifier]
147
+ * @property {number} [quantity]
148
+ */
149
+ /**
150
+ * @typedef AppliedPromos
151
+ * @property {boolean} [mrp_promotion]
152
+ * @property {string} [promotion_name]
153
+ * @property {number} [article_quantity]
154
+ * @property {string} [promo_id]
155
+ * @property {number} [amount]
156
+ * @property {string} [promotion_type]
157
+ * @property {AppliedFreeArticles[]} [applied_free_articles]
190
158
  */
191
159
  /**
192
160
  * @typedef Identifiers
@@ -194,684 +162,834 @@ export = OrderApplicationModel;
194
162
  * @property {string} [sku_code]
195
163
  */
196
164
  /**
197
- * @typedef Invoice
198
- * @property {string} [invoice_url]
199
- * @property {string} [label_url]
200
- * @property {string} [updated_date]
165
+ * @typedef FinancialBreakup
166
+ * @property {number} [coupon_value]
167
+ * @property {number} [delivery_charge]
168
+ * @property {number} [brand_calculated_amount]
169
+ * @property {number} [value_of_good]
170
+ * @property {number} [price_marked]
171
+ * @property {number} [coupon_effective_discount]
172
+ * @property {string} [hsn_code]
173
+ * @property {number} [discount]
174
+ * @property {number} [gst_tax_percentage]
175
+ * @property {number} [cod_charges]
176
+ * @property {number} [amount_paid]
177
+ * @property {boolean} [added_to_fynd_cash]
178
+ * @property {string} [size]
179
+ * @property {number} [transfer_price]
180
+ * @property {number} [cashback_applied]
181
+ * @property {number} [price_effective]
182
+ * @property {number} [cashback]
183
+ * @property {number} [refund_credit]
184
+ * @property {number} [amount_paid_roundoff]
185
+ * @property {number} [total_units]
186
+ * @property {Identifiers} [identifiers]
187
+ * @property {string} [gst_tag]
188
+ * @property {string} [item_name]
189
+ * @property {number} [promotion_effective_discount]
190
+ * @property {number} [gst_fee]
191
+ * @property {number} [refund_amount]
192
+ * @property {number} [fynd_credits]
201
193
  */
202
194
  /**
203
- * @typedef Item
204
- * @property {Object} [attributes]
205
- * @property {ItemBrand} [brand]
206
- * @property {string} [code]
207
- * @property {number} [id]
208
- * @property {string[]} [image]
209
- * @property {string[]} [l1_categories]
210
- * @property {string[]} [l2_categories]
211
- * @property {string} [l3_category_name]
195
+ * @typedef CurrentStatus
196
+ * @property {string} [updated_at]
212
197
  * @property {string} [name]
213
- * @property {string} [seller_identifier]
214
- * @property {string} [size]
215
- * @property {string} [slug_key]
198
+ * @property {string} [status]
199
+ * @property {string} [journey_type]
216
200
  */
217
201
  /**
218
- * @typedef ItemBrand
219
- * @property {string} [logo]
220
- * @property {string} [name]
202
+ * @typedef Bags
203
+ * @property {string} [delivery_date]
204
+ * @property {number} [line_number]
205
+ * @property {string} [currency_symbol]
206
+ * @property {Item} [item]
207
+ * @property {AppliedPromos[]} [applied_promos]
208
+ * @property {number} [quantity]
209
+ * @property {Prices} [prices]
210
+ * @property {boolean} [can_cancel]
211
+ * @property {boolean} [can_return]
212
+ * @property {number} [id]
213
+ * @property {string} [returnable_date]
214
+ * @property {FinancialBreakup[]} [financial_breakup]
215
+ * @property {Object} [parent_promo_bags]
216
+ * @property {Object} [meta]
217
+ * @property {string} [currency_code]
218
+ * @property {string} [seller_identifier]
219
+ * @property {CurrentStatus} [current_status]
221
220
  */
222
221
  /**
223
- * @typedef NestedTrackingDetails
224
- * @property {boolean} [is_current]
225
- * @property {boolean} [is_passed]
226
- * @property {string} [status]
227
- * @property {string} [time]
222
+ * @typedef FulfillingCompany
223
+ * @property {number} [id]
224
+ * @property {string} [name]
228
225
  */
229
226
  /**
230
- * @typedef OrderById
231
- * @property {OrderSchema} [order]
227
+ * @typedef DeliveryAddress
228
+ * @property {string} [pincode]
229
+ * @property {string} [phone]
230
+ * @property {number} [latitude]
231
+ * @property {string} [address2]
232
+ * @property {string} [landmark]
233
+ * @property {string} [area]
234
+ * @property {string} [city]
235
+ * @property {string} [address]
236
+ * @property {string} [address_type]
237
+ * @property {number} [longitude]
238
+ * @property {string} [country_iso_code]
239
+ * @property {string} [state]
240
+ * @property {string} [created_at]
241
+ * @property {string} [address1]
242
+ * @property {string} [name]
243
+ * @property {string} [contact_person]
244
+ * @property {string} [address_category]
245
+ * @property {string} [email]
246
+ * @property {string} [country_phone_code]
247
+ * @property {string} [version]
248
+ * @property {string} [updated_at]
249
+ * @property {string} [country]
232
250
  */
233
251
  /**
234
- * @typedef OrderFilters
235
- * @property {OrderStatuses[]} [statuses]
252
+ * @typedef Shipments
253
+ * @property {ShipmentPayment} [payment]
254
+ * @property {string} [order_type]
255
+ * @property {boolean} [show_download_invoice]
256
+ * @property {boolean} [can_cancel]
257
+ * @property {ShipmentUserInfo} [user_info]
258
+ * @property {string} [shipment_id]
259
+ * @property {FulfillingStore} [fulfilling_store]
260
+ * @property {Object[]} [custom_meta]
261
+ * @property {ShipmentStatus} [shipment_status]
262
+ * @property {string} [comment]
263
+ * @property {Invoice} [invoice]
264
+ * @property {boolean} [show_track_link]
265
+ * @property {Object} [refund_details]
266
+ * @property {BreakupValues[]} [breakup_values]
267
+ * @property {Object} [can_break]
268
+ * @property {string} [traking_no]
269
+ * @property {TrackingDetails[]} [tracking_details]
270
+ * @property {Promise} [promise]
271
+ * @property {number} [total_bags]
272
+ * @property {ShipmentTotalDetails} [total_details]
273
+ * @property {Prices} [prices]
274
+ * @property {string} [returnable_date]
275
+ * @property {string} [shipment_created_at]
276
+ * @property {Object} [size_info]
277
+ * @property {Bags[]} [bags]
278
+ * @property {string} [dp_name]
279
+ * @property {string} [awb_no]
280
+ * @property {boolean} [beneficiary_details]
281
+ * @property {FulfillingCompany} [fulfilling_company]
282
+ * @property {boolean} [can_return]
283
+ * @property {DeliveryAddress} [delivery_address]
284
+ * @property {string} [track_url]
285
+ * @property {string} [order_id]
286
+ * @property {string} [need_help_url]
287
+ * @property {Object} [return_meta]
288
+ * @property {string} [delivery_date]
236
289
  */
237
290
  /**
238
- * @typedef OrderList
239
- * @property {OrderFilters} [filters]
240
- * @property {OrderSchema[]} [items]
241
- * @property {OrderPage} [page]
291
+ * @typedef BagsForReorderArticleAssignment
292
+ * @property {string} [strategy]
293
+ * @property {string} [level]
242
294
  */
243
295
  /**
244
- * @typedef OrderPage
245
- * @property {number} [current]
246
- * @property {boolean} [has_next]
247
- * @property {number} [item_total]
248
- * @property {number} [size]
249
- * @property {string} [type]
296
+ * @typedef BagsForReorder
297
+ * @property {string} [item_size]
298
+ * @property {number} [quantity]
299
+ * @property {number} [store_id]
300
+ * @property {BagsForReorderArticleAssignment} [article_assignment]
301
+ * @property {number} [seller_id]
302
+ * @property {number} [item_id]
250
303
  */
251
304
  /**
252
305
  * @typedef OrderSchema
253
- * @property {BagsForReorder[]} [bags_for_reorder]
306
+ * @property {number} [total_shipments_in_order]
307
+ * @property {UserInfo} [user_info]
254
308
  * @property {BreakupValues[]} [breakup_values]
255
309
  * @property {string} [order_created_time]
256
- * @property {string} [order_created_ts]
257
310
  * @property {string} [order_id]
258
311
  * @property {Shipments[]} [shipments]
259
- * @property {number} [total_shipments_in_order]
260
- * @property {UserInfo} [user_info]
312
+ * @property {BagsForReorder[]} [bags_for_reorder]
261
313
  */
262
314
  /**
263
315
  * @typedef OrderStatuses
264
- * @property {string} [display]
265
- * @property {boolean} [is_selected]
266
316
  * @property {number} [value]
317
+ * @property {boolean} [is_selected]
318
+ * @property {string} [display]
267
319
  */
268
320
  /**
269
- * @typedef Prices
270
- * @property {boolean} [added_to_fynd_cash]
271
- * @property {number} [amount_paid]
272
- * @property {number} [amount_paid_roundoff]
273
- * @property {number} [brand_calculated_amount]
274
- * @property {number} [cashback]
275
- * @property {number} [cashback_applied]
276
- * @property {number} [cod_charges]
277
- * @property {number} [coupon_effective_discount]
278
- * @property {number} [coupon_value]
279
- * @property {string} [currency_code]
280
- * @property {string} [currency_symbol]
281
- * @property {number} [delivery_charge]
282
- * @property {number} [discount]
283
- * @property {number} [fynd_credits]
284
- * @property {number} [gst_tax_percentage]
285
- * @property {number} [price_effective]
286
- * @property {number} [price_marked]
287
- * @property {number} [promotion_effective_discount]
288
- * @property {number} [refund_amount]
289
- * @property {number} [refund_credit]
290
- * @property {number} [transfer_price]
291
- * @property {number} [value_of_good]
321
+ * @typedef OrderFilters
322
+ * @property {OrderStatuses[]} [statuses]
292
323
  */
293
324
  /**
294
- * @typedef Products
295
- * @property {string} [identifier]
296
- * @property {number} [line_number]
297
- * @property {number} [quantity]
325
+ * @typedef OrderList
326
+ * @property {OrderPage} [page]
327
+ * @property {OrderSchema[]} [items]
328
+ * @property {OrderFilters} [filters]
298
329
  */
299
330
  /**
300
- * @typedef ProductsDataUpdates
301
- * @property {Object} [data]
302
- * @property {ProductsDataUpdatesFilters[]} [filters]
331
+ * @typedef ApefaceApiError
332
+ * @property {string} [message]
333
+ * @property {boolean} [success]
303
334
  */
304
335
  /**
305
- * @typedef ProductsDataUpdatesFilters
306
- * @property {string} [identifier]
307
- * @property {number} [line_number]
336
+ * @typedef OrderById
337
+ * @property {OrderSchema} [order]
308
338
  */
309
339
  /**
310
- * @typedef ProductsReasons
311
- * @property {ProductsReasonsData} [data]
312
- * @property {ProductsReasonsFilters[]} [filters]
340
+ * @typedef ShipmentById
341
+ * @property {Shipments} [shipment]
313
342
  */
314
343
  /**
315
- * @typedef ProductsReasonsData
316
- * @property {number} [reason_id]
317
- * @property {string} [reason_text]
344
+ * @typedef ResponseGetInvoiceShipment
345
+ * @property {string} presigned_type
346
+ * @property {boolean} success
347
+ * @property {string} shipment_id
348
+ * @property {string} presigned_url
318
349
  */
319
350
  /**
320
- * @typedef ProductsReasonsFilters
321
- * @property {string} [identifier]
322
- * @property {number} [line_number]
323
- * @property {number} [quantity]
351
+ * @typedef Track
352
+ * @property {string} [account_name]
353
+ * @property {string} [shipment_type]
354
+ * @property {string} [status]
355
+ * @property {string} [last_location_recieved_at]
356
+ * @property {string} [updated_time]
357
+ * @property {string} [updated_at]
358
+ * @property {string} [reason]
359
+ * @property {string} [awb]
324
360
  */
325
361
  /**
326
- * @typedef Promise
327
- * @property {boolean} [show_promise]
328
- * @property {TimeStampData} [timestamp]
362
+ * @typedef ShipmentTrack
363
+ * @property {Track[]} [results]
329
364
  */
330
365
  /**
331
- * @typedef QuestionSet
332
- * @property {string} [display_name]
333
- * @property {number} [id]
334
- */
335
- /**
336
- * @typedef ReasonsData
337
- * @property {EntitiesReasons[]} [entities]
338
- * @property {ProductsReasons[]} [products]
339
- */
340
- /**
341
- * @typedef ResponseGetInvoiceShipment
342
- * @property {string} presigned_type
343
- * @property {string} presigned_url
344
- * @property {string} shipment_id
345
- * @property {boolean} success
366
+ * @typedef CustomerDetailsResponse
367
+ * @property {string} [phone]
368
+ * @property {string} [shipment_id]
369
+ * @property {string} [name]
370
+ * @property {string} [order_id]
371
+ * @property {string} [country]
346
372
  */
347
373
  /**
348
374
  * @typedef SendOtpToCustomerResponse
349
- * @property {string} [message]
350
375
  * @property {string} [request_id]
351
- * @property {number} [resend_timer]
376
+ * @property {string} [message]
352
377
  * @property {boolean} [success]
378
+ * @property {number} [resend_timer]
353
379
  */
354
380
  /**
355
- * @typedef ShipmentApplicationStatusResponse
356
- * @property {StatusesBodyResponse[]} [statuses]
381
+ * @typedef VerifyOtp
382
+ * @property {string} [otp_code]
383
+ * @property {string} [request_id]
357
384
  */
358
385
  /**
359
- * @typedef ShipmentBagReasons
360
- * @property {BagReasons[]} [reasons]
386
+ * @typedef VerifyOtpResponse
361
387
  * @property {boolean} [success]
362
388
  */
363
389
  /**
364
- * @typedef ShipmentById
365
- * @property {Shipments} [shipment]
390
+ * @typedef BagReasonMeta
391
+ * @property {boolean} [show_text_area]
366
392
  */
367
393
  /**
368
- * @typedef ShipmentPayment
394
+ * @typedef QuestionSet
395
+ * @property {number} [id]
369
396
  * @property {string} [display_name]
370
- * @property {string} [logo]
371
- * @property {string} [mode]
372
- * @property {string} [mop]
373
- * @property {string} [payment_mode]
374
- * @property {string} [status]
397
+ */
398
+ /**
399
+ * @typedef BagReasons
400
+ * @property {string[]} [qc_type]
401
+ * @property {number} [id]
402
+ * @property {string} [display_name]
403
+ * @property {BagReasonMeta} [meta]
404
+ * @property {QuestionSet[]} [question_set]
405
+ * @property {BagReasons[]} [reasons]
406
+ */
407
+ /**
408
+ * @typedef ShipmentBagReasons
409
+ * @property {BagReasons[]} [reasons]
410
+ * @property {boolean} [success]
375
411
  */
376
412
  /**
377
413
  * @typedef ShipmentReason
378
- * @property {string} [feedback_type]
379
- * @property {string} [flow]
380
414
  * @property {number} [priority]
415
+ * @property {boolean} [show_text_area]
381
416
  * @property {number} [reason_id]
417
+ * @property {string} [feedback_type]
382
418
  * @property {string} [reason_text]
383
- * @property {boolean} [show_text_area]
419
+ * @property {string} [flow]
384
420
  */
385
421
  /**
386
422
  * @typedef ShipmentReasons
387
423
  * @property {ShipmentReason[]} [reasons]
388
424
  */
389
425
  /**
390
- * @typedef Shipments
391
- * @property {string} [awb_no]
392
- * @property {Bags[]} [bags]
393
- * @property {boolean} [beneficiary_details]
394
- * @property {BreakupValues[]} [breakup_values]
395
- * @property {Object} [can_break]
396
- * @property {boolean} [can_cancel]
397
- * @property {boolean} [can_return]
398
- * @property {string} [comment]
399
- * @property {Object[]} [custom_meta]
400
- * @property {DeliveryAddress} [delivery_address]
401
- * @property {string} [delivery_date]
402
- * @property {string} [dp_name]
403
- * @property {FulfillingCompany} [fulfilling_company]
404
- * @property {FulfillingStore} [fulfilling_store]
405
- * @property {Invoice} [invoice]
406
- * @property {string} [need_help_url]
407
- * @property {string} [order_id]
408
- * @property {string} [order_type]
409
- * @property {ShipmentPayment} [payment]
410
- * @property {Prices} [prices]
411
- * @property {Promise} [promise]
412
- * @property {Object} [refund_details]
413
- * @property {Object} [return_meta]
414
- * @property {string} [returnable_date]
415
- * @property {string} [shipment_created_at]
416
- * @property {string} [shipment_created_ts]
417
- * @property {string} [shipment_id]
418
- * @property {ShipmentStatus} [shipment_status]
419
- * @property {boolean} [show_download_invoice]
420
- * @property {boolean} [show_track_link]
421
- * @property {Object} [size_info]
422
- * @property {number} [total_bags]
423
- * @property {ShipmentTotalDetails} [total_details]
424
- * @property {string} [track_url]
425
- * @property {TrackingDetails[]} [tracking_details]
426
- * @property {string} [traking_no]
427
- * @property {ShipmentUserInfo} [user_info]
426
+ * @typedef ProductsReasonsData
427
+ * @property {number} [reason_id]
428
+ * @property {string} [reason_text]
428
429
  */
429
430
  /**
430
- * @typedef ShipmentsRequest
431
- * @property {DataUpdates} [data_updates]
432
- * @property {string} identifier
433
- * @property {Products[]} [products]
434
- * @property {ReasonsData} [reasons]
431
+ * @typedef ProductsReasonsFilters
432
+ * @property {number} [line_number]
433
+ * @property {number} [quantity]
434
+ * @property {string} [identifier]
435
435
  */
436
436
  /**
437
- * @typedef ShipmentStatus
438
- * @property {string} [hex_code]
439
- * @property {string} [title]
440
- * @property {string} [value]
437
+ * @typedef ProductsReasons
438
+ * @property {ProductsReasonsData} [data]
439
+ * @property {ProductsReasonsFilters[]} [filters]
441
440
  */
442
441
  /**
443
- * @typedef ShipmentTotalDetails
444
- * @property {number} [pieces]
445
- * @property {number} [sizes]
446
- * @property {number} [total_price]
442
+ * @typedef EntityReasonData
443
+ * @property {number} [reason_id]
444
+ * @property {string} [reason_text]
447
445
  */
448
446
  /**
449
- * @typedef ShipmentTrack
450
- * @property {Track[]} [results]
447
+ * @typedef EntitiesReasons
448
+ * @property {EntityReasonData} [data]
449
+ * @property {Object[]} [filters]
451
450
  */
452
451
  /**
453
- * @typedef ShipmentUserInfo
454
- * @property {string} [email]
455
- * @property {string} [first_name]
456
- * @property {string} [gender]
457
- * @property {string} [last_name]
458
- * @property {string} [mobile]
459
- * @property {string} [name]
452
+ * @typedef ReasonsData
453
+ * @property {ProductsReasons[]} [products]
454
+ * @property {EntitiesReasons[]} [entities]
460
455
  */
461
456
  /**
462
- * @typedef StatuesRequest
463
- * @property {string} [exclude_bags_next_state]
464
- * @property {ShipmentsRequest[]} [shipments]
465
- * @property {string} [status]
457
+ * @typedef Products
458
+ * @property {number} [line_number]
459
+ * @property {number} [quantity]
460
+ * @property {string} [identifier]
466
461
  */
467
462
  /**
468
- * @typedef StatusesBodyResponse
469
- * @property {Object[]} [shipments]
463
+ * @typedef ProductsDataUpdatesFilters
464
+ * @property {number} [line_number]
465
+ * @property {string} [identifier]
470
466
  */
471
467
  /**
472
- * @typedef TimeStampData
473
- * @property {string} [max]
474
- * @property {string} [min]
468
+ * @typedef ProductsDataUpdates
469
+ * @property {Object} [data]
470
+ * @property {ProductsDataUpdatesFilters[]} [filters]
475
471
  */
476
472
  /**
477
- * @typedef Track
478
- * @property {string} [account_name]
479
- * @property {string} [awb]
480
- * @property {string} [last_location_recieved_at]
481
- * @property {string} [reason]
482
- * @property {string} [shipment_type]
483
- * @property {string} [status]
484
- * @property {string} [updated_at]
485
- * @property {string} [updated_time]
473
+ * @typedef EntitiesDataUpdates
474
+ * @property {Object} [data]
475
+ * @property {Object[]} [filters]
486
476
  */
487
477
  /**
488
- * @typedef TrackingDetails
489
- * @property {string} [created_ts]
490
- * @property {boolean} [is_current]
491
- * @property {boolean} [is_passed]
478
+ * @typedef DataUpdates
479
+ * @property {ProductsDataUpdates[]} [products]
480
+ * @property {EntitiesDataUpdates[]} [entities]
481
+ */
482
+ /**
483
+ * @typedef ShipmentsRequest
484
+ * @property {ReasonsData} [reasons]
485
+ * @property {Products[]} [products]
486
+ * @property {DataUpdates} [data_updates]
487
+ * @property {string} identifier
488
+ */
489
+ /**
490
+ * @typedef StatuesRequest
491
+ * @property {ShipmentsRequest[]} [shipments]
492
+ * @property {string} [exclude_bags_next_state]
492
493
  * @property {string} [status]
493
- * @property {string} [time]
494
- * @property {NestedTrackingDetails[]} [tracking_details]
495
- * @property {string} [value]
496
494
  */
497
495
  /**
498
496
  * @typedef UpdateShipmentStatusRequest
499
- * @property {boolean} [force_transition]
500
- * @property {boolean} [lock_after_transition]
501
497
  * @property {StatuesRequest[]} [statuses]
502
498
  * @property {boolean} [task]
499
+ * @property {boolean} [lock_after_transition]
500
+ * @property {boolean} [force_transition]
503
501
  * @property {boolean} [unlock_before_transition]
504
502
  */
505
503
  /**
506
- * @typedef UserInfo
507
- * @property {string} [email]
508
- * @property {string} [first_name]
509
- * @property {string} [gender]
510
- * @property {string} [last_name]
511
- * @property {string} [mobile]
512
- * @property {string} [name]
504
+ * @typedef StatusesBodyResponse
505
+ * @property {Object[]} [shipments]
513
506
  */
514
507
  /**
515
- * @typedef VerifyOtp
516
- * @property {string} [otp_code]
517
- * @property {string} [request_id]
508
+ * @typedef ShipmentApplicationStatusResponse
509
+ * @property {StatusesBodyResponse[]} [statuses]
518
510
  */
519
511
  /**
520
- * @typedef VerifyOtpResponse
521
- * @property {boolean} [success]
512
+ * @typedef ErrorResponse
513
+ * @property {string} [code]
514
+ * @property {string} [message]
515
+ * @property {number} [status]
516
+ * @property {string} [exception]
517
+ * @property {string} [stack_trace]
522
518
  */
523
519
  declare class OrderApplicationModel {
524
520
  }
525
521
  declare namespace OrderApplicationModel {
526
- export { ApefaceApiError, AppliedFreeArticles, AppliedPromos, BagReasonMeta, BagReasons, Bags, BagsForReorder, BagsForReorderArticleAssignment, BreakupValues, CurrentStatus, CustomerDetailsResponse, DataUpdates, DeliveryAddress, EntitiesDataUpdates, EntitiesReasons, EntityReasonData, ErrorResponse, FinancialBreakup, FulfillingCompany, FulfillingStore, Identifiers, Invoice, Item, ItemBrand, NestedTrackingDetails, OrderById, OrderFilters, OrderList, OrderPage, OrderSchema, OrderStatuses, Prices, Products, ProductsDataUpdates, ProductsDataUpdatesFilters, ProductsReasons, ProductsReasonsData, ProductsReasonsFilters, Promise, QuestionSet, ReasonsData, ResponseGetInvoiceShipment, SendOtpToCustomerResponse, ShipmentApplicationStatusResponse, ShipmentBagReasons, ShipmentById, ShipmentPayment, ShipmentReason, ShipmentReasons, Shipments, ShipmentsRequest, ShipmentStatus, ShipmentTotalDetails, ShipmentTrack, ShipmentUserInfo, StatuesRequest, StatusesBodyResponse, TimeStampData, Track, TrackingDetails, UpdateShipmentStatusRequest, UserInfo, VerifyOtp, VerifyOtpResponse };
522
+ export { OrderPage, UserInfo, BreakupValues, ShipmentPayment, ShipmentUserInfo, FulfillingStore, ShipmentStatus, Invoice, NestedTrackingDetails, TrackingDetails, TimeStampData, Promise, ShipmentTotalDetails, Prices, ItemBrand, Item, AppliedFreeArticles, AppliedPromos, Identifiers, FinancialBreakup, CurrentStatus, Bags, FulfillingCompany, DeliveryAddress, Shipments, BagsForReorderArticleAssignment, BagsForReorder, OrderSchema, OrderStatuses, OrderFilters, OrderList, ApefaceApiError, OrderById, ShipmentById, ResponseGetInvoiceShipment, Track, ShipmentTrack, CustomerDetailsResponse, SendOtpToCustomerResponse, VerifyOtp, VerifyOtpResponse, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentReason, ShipmentReasons, ProductsReasonsData, ProductsReasonsFilters, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, StatusesBodyResponse, ShipmentApplicationStatusResponse, ErrorResponse };
527
523
  }
528
- /** @returns {ApefaceApiError} */
529
- declare function ApefaceApiError(): ApefaceApiError;
530
- type ApefaceApiError = {
531
- message?: string;
532
- success?: boolean;
524
+ /** @returns {OrderPage} */
525
+ declare function OrderPage(): OrderPage;
526
+ type OrderPage = {
527
+ type?: string;
528
+ item_total?: number;
529
+ current?: number;
530
+ size?: number;
531
+ has_next?: boolean;
533
532
  };
534
- /** @returns {AppliedFreeArticles} */
535
- declare function AppliedFreeArticles(): AppliedFreeArticles;
536
- type AppliedFreeArticles = {
537
- article_id?: string;
538
- free_gift_item_details?: any;
539
- parent_item_identifier?: string;
540
- quantity?: number;
533
+ /** @returns {UserInfo} */
534
+ declare function UserInfo(): UserInfo;
535
+ type UserInfo = {
536
+ first_name?: string;
537
+ gender?: string;
538
+ name?: string;
539
+ last_name?: string;
540
+ mobile?: string;
541
+ email?: string;
541
542
  };
542
- /** @returns {AppliedPromos} */
543
- declare function AppliedPromos(): AppliedPromos;
544
- type AppliedPromos = {
545
- amount?: number;
546
- applied_free_articles?: AppliedFreeArticles[];
547
- article_quantity?: number;
548
- mrp_promotion?: boolean;
549
- promo_id?: string;
550
- promotion_name?: string;
551
- promotion_type?: string;
543
+ /** @returns {BreakupValues} */
544
+ declare function BreakupValues(): BreakupValues;
545
+ type BreakupValues = {
546
+ value?: number;
547
+ currency_symbol?: string;
548
+ name?: string;
549
+ display?: string;
550
+ currency_code?: string;
552
551
  };
553
- /** @returns {BagReasonMeta} */
554
- declare function BagReasonMeta(): BagReasonMeta;
555
- type BagReasonMeta = {
556
- show_text_area?: boolean;
557
- };
558
- /** @returns {BagReasons} */
559
- declare function BagReasons(): BagReasons;
560
- type BagReasons = {
561
- display_name?: string;
562
- id?: number;
563
- meta?: BagReasonMeta;
564
- qc_type?: string[];
565
- question_set?: QuestionSet[];
566
- reasons?: BagReasons[];
567
- };
568
- /** @returns {Bags} */
569
- declare function Bags(): Bags;
570
- type Bags = {
571
- applied_promos?: AppliedPromos[];
572
- can_cancel?: boolean;
573
- can_return?: boolean;
574
- currency_code?: string;
575
- currency_symbol?: string;
576
- current_status?: CurrentStatus;
577
- delivery_date?: string;
578
- financial_breakup?: FinancialBreakup[];
579
- id?: number;
580
- item?: Item;
581
- line_number?: number;
582
- meta?: any;
583
- parent_promo_bags?: any;
584
- prices?: Prices;
585
- quantity?: number;
586
- returnable_date?: string;
587
- seller_identifier?: string;
588
- };
589
- /** @returns {BagsForReorder} */
590
- declare function BagsForReorder(): BagsForReorder;
591
- type BagsForReorder = {
592
- article_assignment?: BagsForReorderArticleAssignment;
593
- item_id?: number;
594
- item_size?: string;
595
- quantity?: number;
596
- seller_id?: number;
597
- store_id?: number;
598
- };
599
- /** @returns {BagsForReorderArticleAssignment} */
600
- declare function BagsForReorderArticleAssignment(): BagsForReorderArticleAssignment;
601
- type BagsForReorderArticleAssignment = {
602
- level?: string;
603
- strategy?: string;
604
- };
605
- /** @returns {BreakupValues} */
606
- declare function BreakupValues(): BreakupValues;
607
- type BreakupValues = {
608
- currency_code?: string;
609
- currency_symbol?: string;
610
- display?: string;
611
- name?: string;
612
- value?: number;
613
- };
614
- /** @returns {CurrentStatus} */
615
- declare function CurrentStatus(): CurrentStatus;
616
- type CurrentStatus = {
617
- journey_type?: string;
618
- name?: string;
552
+ /** @returns {ShipmentPayment} */
553
+ declare function ShipmentPayment(): ShipmentPayment;
554
+ type ShipmentPayment = {
555
+ mop?: string;
556
+ payment_mode?: string;
619
557
  status?: string;
620
- updated_at?: string;
558
+ mode?: string;
559
+ logo?: string;
560
+ display_name?: string;
621
561
  };
622
- /** @returns {CustomerDetailsResponse} */
623
- declare function CustomerDetailsResponse(): CustomerDetailsResponse;
624
- type CustomerDetailsResponse = {
625
- country?: string;
562
+ /** @returns {ShipmentUserInfo} */
563
+ declare function ShipmentUserInfo(): ShipmentUserInfo;
564
+ type ShipmentUserInfo = {
565
+ first_name?: string;
566
+ gender?: string;
626
567
  name?: string;
627
- order_id?: string;
628
- phone?: string;
629
- shipment_id?: string;
630
- };
631
- /** @returns {DataUpdates} */
632
- declare function DataUpdates(): DataUpdates;
633
- type DataUpdates = {
634
- entities?: EntitiesDataUpdates[];
635
- products?: ProductsDataUpdates[];
636
- };
637
- /** @returns {DeliveryAddress} */
638
- declare function DeliveryAddress(): DeliveryAddress;
639
- type DeliveryAddress = {
640
- address?: string;
641
- address_category?: string;
642
- address_type?: string;
643
- address1?: string;
644
- address2?: string;
645
- area?: string;
646
- city?: string;
647
- contact_person?: string;
648
- country?: string;
649
- country_iso_code?: string;
650
- country_phone_code?: string;
651
- created_at?: string;
652
- display_address?: string;
568
+ last_name?: string;
569
+ mobile?: string;
653
570
  email?: string;
654
- landmark?: string;
655
- latitude?: number;
656
- longitude?: number;
657
- name?: string;
658
- phone?: string;
659
- pincode?: string;
660
- state?: string;
661
- updated_at?: string;
662
- version?: string;
663
- };
664
- /** @returns {EntitiesDataUpdates} */
665
- declare function EntitiesDataUpdates(): EntitiesDataUpdates;
666
- type EntitiesDataUpdates = {
667
- data?: any;
668
- filters?: any[];
669
- };
670
- /** @returns {EntitiesReasons} */
671
- declare function EntitiesReasons(): EntitiesReasons;
672
- type EntitiesReasons = {
673
- data?: EntityReasonData;
674
- filters?: any[];
675
- };
676
- /** @returns {EntityReasonData} */
677
- declare function EntityReasonData(): EntityReasonData;
678
- type EntityReasonData = {
679
- reason_id?: number;
680
- reason_text?: string;
681
- };
682
- /** @returns {ErrorResponse} */
683
- declare function ErrorResponse(): ErrorResponse;
684
- type ErrorResponse = {
685
- code?: string;
686
- exception?: string;
687
- message?: string;
688
- stack_trace?: string;
689
- status?: number;
690
- };
691
- /** @returns {FinancialBreakup} */
692
- declare function FinancialBreakup(): FinancialBreakup;
693
- type FinancialBreakup = {
694
- added_to_fynd_cash?: boolean;
695
- amount_paid?: number;
696
- amount_paid_roundoff?: number;
697
- brand_calculated_amount?: number;
698
- cashback?: number;
699
- cashback_applied?: number;
700
- cod_charges?: number;
701
- coupon_effective_discount?: number;
702
- coupon_value?: number;
703
- delivery_charge?: number;
704
- discount?: number;
705
- fynd_credits?: number;
706
- gst_fee?: number;
707
- gst_tag?: string;
708
- gst_tax_percentage?: number;
709
- hsn_code?: string;
710
- identifiers?: Identifiers;
711
- item_name?: string;
712
- price_effective?: number;
713
- price_marked?: number;
714
- promotion_effective_discount?: number;
715
- refund_amount?: number;
716
- refund_credit?: number;
717
- size?: string;
718
- total_units?: number;
719
- transfer_price?: number;
720
- value_of_good?: number;
721
- };
722
- /** @returns {FulfillingCompany} */
723
- declare function FulfillingCompany(): FulfillingCompany;
724
- type FulfillingCompany = {
725
- id?: number;
726
- name?: string;
727
571
  };
728
572
  /** @returns {FulfillingStore} */
729
573
  declare function FulfillingStore(): FulfillingStore;
730
574
  type FulfillingStore = {
731
- code?: string;
732
- company_id?: number;
733
- company_name?: string;
734
575
  id?: number;
576
+ code?: string;
735
577
  name?: string;
578
+ company_name?: string;
579
+ company_id?: number;
736
580
  };
737
- /** @returns {Identifiers} */
738
- declare function Identifiers(): Identifiers;
739
- type Identifiers = {
740
- ean?: string;
741
- sku_code?: string;
581
+ /** @returns {ShipmentStatus} */
582
+ declare function ShipmentStatus(): ShipmentStatus;
583
+ type ShipmentStatus = {
584
+ value?: string;
585
+ title?: string;
586
+ hex_code?: string;
742
587
  };
743
588
  /** @returns {Invoice} */
744
589
  declare function Invoice(): Invoice;
745
590
  type Invoice = {
746
591
  invoice_url?: string;
747
- label_url?: string;
748
592
  updated_date?: string;
749
- };
750
- /** @returns {Item} */
751
- declare function Item(): Item;
752
- type Item = {
753
- attributes?: any;
754
- brand?: ItemBrand;
755
- code?: string;
756
- id?: number;
757
- image?: string[];
758
- l1_categories?: string[];
759
- l2_categories?: string[];
760
- l3_category_name?: string;
761
- name?: string;
762
- seller_identifier?: string;
763
- size?: string;
764
- slug_key?: string;
765
- };
766
- /** @returns {ItemBrand} */
767
- declare function ItemBrand(): ItemBrand;
768
- type ItemBrand = {
769
- logo?: string;
770
- name?: string;
593
+ label_url?: string;
771
594
  };
772
595
  /** @returns {NestedTrackingDetails} */
773
596
  declare function NestedTrackingDetails(): NestedTrackingDetails;
774
597
  type NestedTrackingDetails = {
598
+ is_passed?: boolean;
599
+ time?: string;
600
+ is_current?: boolean;
601
+ status?: string;
602
+ };
603
+ /** @returns {TrackingDetails} */
604
+ declare function TrackingDetails(): TrackingDetails;
605
+ type TrackingDetails = {
606
+ value?: string;
775
607
  is_current?: boolean;
776
608
  is_passed?: boolean;
777
609
  status?: string;
778
610
  time?: string;
611
+ tracking_details?: NestedTrackingDetails[];
779
612
  };
780
- /** @returns {OrderById} */
781
- declare function OrderById(): OrderById;
782
- type OrderById = {
783
- order?: OrderSchema;
613
+ /** @returns {TimeStampData} */
614
+ declare function TimeStampData(): TimeStampData;
615
+ type TimeStampData = {
616
+ min?: string;
617
+ max?: string;
784
618
  };
785
- /** @returns {OrderFilters} */
786
- declare function OrderFilters(): OrderFilters;
787
- type OrderFilters = {
788
- statuses?: OrderStatuses[];
619
+ /** @returns {Promise} */
620
+ declare function Promise(): Promise;
621
+ type Promise = {
622
+ show_promise?: boolean;
623
+ timestamp?: TimeStampData;
789
624
  };
790
- /** @returns {OrderList} */
791
- declare function OrderList(): OrderList;
792
- type OrderList = {
793
- filters?: OrderFilters;
794
- items?: OrderSchema[];
795
- page?: OrderPage;
796
- };
797
- /** @returns {OrderPage} */
798
- declare function OrderPage(): OrderPage;
799
- type OrderPage = {
800
- current?: number;
801
- has_next?: boolean;
802
- item_total?: number;
803
- size?: number;
804
- type?: string;
805
- };
806
- /** @returns {OrderSchema} */
807
- declare function OrderSchema(): OrderSchema;
808
- type OrderSchema = {
809
- bags_for_reorder?: BagsForReorder[];
810
- breakup_values?: BreakupValues[];
811
- order_created_time?: string;
812
- order_created_ts?: string;
813
- order_id?: string;
814
- shipments?: Shipments[];
815
- total_shipments_in_order?: number;
816
- user_info?: UserInfo;
817
- };
818
- /** @returns {OrderStatuses} */
819
- declare function OrderStatuses(): OrderStatuses;
820
- type OrderStatuses = {
821
- display?: string;
822
- is_selected?: boolean;
823
- value?: number;
625
+ /** @returns {ShipmentTotalDetails} */
626
+ declare function ShipmentTotalDetails(): ShipmentTotalDetails;
627
+ type ShipmentTotalDetails = {
628
+ pieces?: number;
629
+ total_price?: number;
630
+ sizes?: number;
824
631
  };
825
632
  /** @returns {Prices} */
826
633
  declare function Prices(): Prices;
827
634
  type Prices = {
828
- added_to_fynd_cash?: boolean;
829
- amount_paid?: number;
830
- amount_paid_roundoff?: number;
635
+ delivery_charge?: number;
636
+ coupon_value?: number;
831
637
  brand_calculated_amount?: number;
832
- cashback?: number;
833
- cashback_applied?: number;
834
- cod_charges?: number;
638
+ value_of_good?: number;
639
+ price_marked?: number;
835
640
  coupon_effective_discount?: number;
836
- coupon_value?: number;
837
- currency_code?: string;
838
641
  currency_symbol?: string;
839
- delivery_charge?: number;
840
642
  discount?: number;
841
- fynd_credits?: number;
842
643
  gst_tax_percentage?: number;
644
+ cod_charges?: number;
645
+ amount_paid?: number;
646
+ added_to_fynd_cash?: boolean;
647
+ transfer_price?: number;
648
+ cashback_applied?: number;
843
649
  price_effective?: number;
844
- price_marked?: number;
650
+ cashback?: number;
651
+ refund_credit?: number;
652
+ amount_paid_roundoff?: number;
845
653
  promotion_effective_discount?: number;
846
654
  refund_amount?: number;
847
- refund_credit?: number;
848
- transfer_price?: number;
655
+ currency_code?: string;
656
+ fynd_credits?: number;
657
+ };
658
+ /** @returns {ItemBrand} */
659
+ declare function ItemBrand(): ItemBrand;
660
+ type ItemBrand = {
661
+ logo?: string;
662
+ name?: string;
663
+ };
664
+ /** @returns {Item} */
665
+ declare function Item(): Item;
666
+ type Item = {
667
+ image?: string[];
668
+ l1_categories?: string[];
669
+ brand?: ItemBrand;
670
+ seller_identifier?: string;
671
+ code?: string;
672
+ id?: number;
673
+ name?: string;
674
+ l3_category_name?: string;
675
+ slug_key?: string;
676
+ l2_categories?: string[];
677
+ size?: string;
678
+ attributes?: any;
679
+ };
680
+ /** @returns {AppliedFreeArticles} */
681
+ declare function AppliedFreeArticles(): AppliedFreeArticles;
682
+ type AppliedFreeArticles = {
683
+ article_id?: string;
684
+ free_gift_item_details?: any;
685
+ parent_item_identifier?: string;
686
+ quantity?: number;
687
+ };
688
+ /** @returns {AppliedPromos} */
689
+ declare function AppliedPromos(): AppliedPromos;
690
+ type AppliedPromos = {
691
+ mrp_promotion?: boolean;
692
+ promotion_name?: string;
693
+ article_quantity?: number;
694
+ promo_id?: string;
695
+ amount?: number;
696
+ promotion_type?: string;
697
+ applied_free_articles?: AppliedFreeArticles[];
698
+ };
699
+ /** @returns {Identifiers} */
700
+ declare function Identifiers(): Identifiers;
701
+ type Identifiers = {
702
+ ean?: string;
703
+ sku_code?: string;
704
+ };
705
+ /** @returns {FinancialBreakup} */
706
+ declare function FinancialBreakup(): FinancialBreakup;
707
+ type FinancialBreakup = {
708
+ coupon_value?: number;
709
+ delivery_charge?: number;
710
+ brand_calculated_amount?: number;
849
711
  value_of_good?: number;
712
+ price_marked?: number;
713
+ coupon_effective_discount?: number;
714
+ hsn_code?: string;
715
+ discount?: number;
716
+ gst_tax_percentage?: number;
717
+ cod_charges?: number;
718
+ amount_paid?: number;
719
+ added_to_fynd_cash?: boolean;
720
+ size?: string;
721
+ transfer_price?: number;
722
+ cashback_applied?: number;
723
+ price_effective?: number;
724
+ cashback?: number;
725
+ refund_credit?: number;
726
+ amount_paid_roundoff?: number;
727
+ total_units?: number;
728
+ identifiers?: Identifiers;
729
+ gst_tag?: string;
730
+ item_name?: string;
731
+ promotion_effective_discount?: number;
732
+ gst_fee?: number;
733
+ refund_amount?: number;
734
+ fynd_credits?: number;
850
735
  };
851
- /** @returns {Products} */
852
- declare function Products(): Products;
853
- type Products = {
854
- identifier?: string;
736
+ /** @returns {CurrentStatus} */
737
+ declare function CurrentStatus(): CurrentStatus;
738
+ type CurrentStatus = {
739
+ updated_at?: string;
740
+ name?: string;
741
+ status?: string;
742
+ journey_type?: string;
743
+ };
744
+ /** @returns {Bags} */
745
+ declare function Bags(): Bags;
746
+ type Bags = {
747
+ delivery_date?: string;
855
748
  line_number?: number;
749
+ currency_symbol?: string;
750
+ item?: Item;
751
+ applied_promos?: AppliedPromos[];
856
752
  quantity?: number;
753
+ prices?: Prices;
754
+ can_cancel?: boolean;
755
+ can_return?: boolean;
756
+ id?: number;
757
+ returnable_date?: string;
758
+ financial_breakup?: FinancialBreakup[];
759
+ parent_promo_bags?: any;
760
+ meta?: any;
761
+ currency_code?: string;
762
+ seller_identifier?: string;
763
+ current_status?: CurrentStatus;
857
764
  };
858
- /** @returns {ProductsDataUpdates} */
859
- declare function ProductsDataUpdates(): ProductsDataUpdates;
860
- type ProductsDataUpdates = {
861
- data?: any;
862
- filters?: ProductsDataUpdatesFilters[];
765
+ /** @returns {FulfillingCompany} */
766
+ declare function FulfillingCompany(): FulfillingCompany;
767
+ type FulfillingCompany = {
768
+ id?: number;
769
+ name?: string;
863
770
  };
864
- /** @returns {ProductsDataUpdatesFilters} */
865
- declare function ProductsDataUpdatesFilters(): ProductsDataUpdatesFilters;
866
- type ProductsDataUpdatesFilters = {
867
- identifier?: string;
868
- line_number?: number;
771
+ /** @returns {DeliveryAddress} */
772
+ declare function DeliveryAddress(): DeliveryAddress;
773
+ type DeliveryAddress = {
774
+ pincode?: string;
775
+ phone?: string;
776
+ latitude?: number;
777
+ address2?: string;
778
+ landmark?: string;
779
+ area?: string;
780
+ city?: string;
781
+ address?: string;
782
+ address_type?: string;
783
+ longitude?: number;
784
+ country_iso_code?: string;
785
+ state?: string;
786
+ created_at?: string;
787
+ address1?: string;
788
+ name?: string;
789
+ contact_person?: string;
790
+ address_category?: string;
791
+ email?: string;
792
+ country_phone_code?: string;
793
+ version?: string;
794
+ updated_at?: string;
795
+ country?: string;
869
796
  };
870
- /** @returns {ProductsReasons} */
871
- declare function ProductsReasons(): ProductsReasons;
872
- type ProductsReasons = {
873
- data?: ProductsReasonsData;
874
- filters?: ProductsReasonsFilters[];
797
+ /** @returns {Shipments} */
798
+ declare function Shipments(): Shipments;
799
+ type Shipments = {
800
+ payment?: ShipmentPayment;
801
+ order_type?: string;
802
+ show_download_invoice?: boolean;
803
+ can_cancel?: boolean;
804
+ user_info?: ShipmentUserInfo;
805
+ shipment_id?: string;
806
+ fulfilling_store?: FulfillingStore;
807
+ custom_meta?: any[];
808
+ shipment_status?: ShipmentStatus;
809
+ comment?: string;
810
+ invoice?: Invoice;
811
+ show_track_link?: boolean;
812
+ refund_details?: any;
813
+ breakup_values?: BreakupValues[];
814
+ can_break?: any;
815
+ traking_no?: string;
816
+ tracking_details?: TrackingDetails[];
817
+ promise?: Promise;
818
+ total_bags?: number;
819
+ total_details?: ShipmentTotalDetails;
820
+ prices?: Prices;
821
+ returnable_date?: string;
822
+ shipment_created_at?: string;
823
+ size_info?: any;
824
+ bags?: Bags[];
825
+ dp_name?: string;
826
+ awb_no?: string;
827
+ beneficiary_details?: boolean;
828
+ fulfilling_company?: FulfillingCompany;
829
+ can_return?: boolean;
830
+ delivery_address?: DeliveryAddress;
831
+ track_url?: string;
832
+ order_id?: string;
833
+ need_help_url?: string;
834
+ return_meta?: any;
835
+ delivery_date?: string;
836
+ };
837
+ /** @returns {BagsForReorderArticleAssignment} */
838
+ declare function BagsForReorderArticleAssignment(): BagsForReorderArticleAssignment;
839
+ type BagsForReorderArticleAssignment = {
840
+ strategy?: string;
841
+ level?: string;
842
+ };
843
+ /** @returns {BagsForReorder} */
844
+ declare function BagsForReorder(): BagsForReorder;
845
+ type BagsForReorder = {
846
+ item_size?: string;
847
+ quantity?: number;
848
+ store_id?: number;
849
+ article_assignment?: BagsForReorderArticleAssignment;
850
+ seller_id?: number;
851
+ item_id?: number;
852
+ };
853
+ /** @returns {OrderSchema} */
854
+ declare function OrderSchema(): OrderSchema;
855
+ type OrderSchema = {
856
+ total_shipments_in_order?: number;
857
+ user_info?: UserInfo;
858
+ breakup_values?: BreakupValues[];
859
+ order_created_time?: string;
860
+ order_id?: string;
861
+ shipments?: Shipments[];
862
+ bags_for_reorder?: BagsForReorder[];
863
+ };
864
+ /** @returns {OrderStatuses} */
865
+ declare function OrderStatuses(): OrderStatuses;
866
+ type OrderStatuses = {
867
+ value?: number;
868
+ is_selected?: boolean;
869
+ display?: string;
870
+ };
871
+ /** @returns {OrderFilters} */
872
+ declare function OrderFilters(): OrderFilters;
873
+ type OrderFilters = {
874
+ statuses?: OrderStatuses[];
875
+ };
876
+ /** @returns {OrderList} */
877
+ declare function OrderList(): OrderList;
878
+ type OrderList = {
879
+ page?: OrderPage;
880
+ items?: OrderSchema[];
881
+ filters?: OrderFilters;
882
+ };
883
+ /** @returns {ApefaceApiError} */
884
+ declare function ApefaceApiError(): ApefaceApiError;
885
+ type ApefaceApiError = {
886
+ message?: string;
887
+ success?: boolean;
888
+ };
889
+ /** @returns {OrderById} */
890
+ declare function OrderById(): OrderById;
891
+ type OrderById = {
892
+ order?: OrderSchema;
893
+ };
894
+ /** @returns {ShipmentById} */
895
+ declare function ShipmentById(): ShipmentById;
896
+ type ShipmentById = {
897
+ shipment?: Shipments;
898
+ };
899
+ /** @returns {ResponseGetInvoiceShipment} */
900
+ declare function ResponseGetInvoiceShipment(): ResponseGetInvoiceShipment;
901
+ type ResponseGetInvoiceShipment = {
902
+ presigned_type: string;
903
+ success: boolean;
904
+ shipment_id: string;
905
+ presigned_url: string;
906
+ };
907
+ /** @returns {Track} */
908
+ declare function Track(): Track;
909
+ type Track = {
910
+ account_name?: string;
911
+ shipment_type?: string;
912
+ status?: string;
913
+ last_location_recieved_at?: string;
914
+ updated_time?: string;
915
+ updated_at?: string;
916
+ reason?: string;
917
+ awb?: string;
918
+ };
919
+ /** @returns {ShipmentTrack} */
920
+ declare function ShipmentTrack(): ShipmentTrack;
921
+ type ShipmentTrack = {
922
+ results?: Track[];
923
+ };
924
+ /** @returns {CustomerDetailsResponse} */
925
+ declare function CustomerDetailsResponse(): CustomerDetailsResponse;
926
+ type CustomerDetailsResponse = {
927
+ phone?: string;
928
+ shipment_id?: string;
929
+ name?: string;
930
+ order_id?: string;
931
+ country?: string;
932
+ };
933
+ /** @returns {SendOtpToCustomerResponse} */
934
+ declare function SendOtpToCustomerResponse(): SendOtpToCustomerResponse;
935
+ type SendOtpToCustomerResponse = {
936
+ request_id?: string;
937
+ message?: string;
938
+ success?: boolean;
939
+ resend_timer?: number;
940
+ };
941
+ /** @returns {VerifyOtp} */
942
+ declare function VerifyOtp(): VerifyOtp;
943
+ type VerifyOtp = {
944
+ otp_code?: string;
945
+ request_id?: string;
946
+ };
947
+ /** @returns {VerifyOtpResponse} */
948
+ declare function VerifyOtpResponse(): VerifyOtpResponse;
949
+ type VerifyOtpResponse = {
950
+ success?: boolean;
951
+ };
952
+ /** @returns {BagReasonMeta} */
953
+ declare function BagReasonMeta(): BagReasonMeta;
954
+ type BagReasonMeta = {
955
+ show_text_area?: boolean;
956
+ };
957
+ /** @returns {QuestionSet} */
958
+ declare function QuestionSet(): QuestionSet;
959
+ type QuestionSet = {
960
+ id?: number;
961
+ display_name?: string;
962
+ };
963
+ /** @returns {BagReasons} */
964
+ declare function BagReasons(): BagReasons;
965
+ type BagReasons = {
966
+ qc_type?: string[];
967
+ id?: number;
968
+ display_name?: string;
969
+ meta?: BagReasonMeta;
970
+ question_set?: QuestionSet[];
971
+ reasons?: BagReasons[];
972
+ };
973
+ /** @returns {ShipmentBagReasons} */
974
+ declare function ShipmentBagReasons(): ShipmentBagReasons;
975
+ type ShipmentBagReasons = {
976
+ reasons?: BagReasons[];
977
+ success?: boolean;
978
+ };
979
+ /** @returns {ShipmentReason} */
980
+ declare function ShipmentReason(): ShipmentReason;
981
+ type ShipmentReason = {
982
+ priority?: number;
983
+ show_text_area?: boolean;
984
+ reason_id?: number;
985
+ feedback_type?: string;
986
+ reason_text?: string;
987
+ flow?: string;
988
+ };
989
+ /** @returns {ShipmentReasons} */
990
+ declare function ShipmentReasons(): ShipmentReasons;
991
+ type ShipmentReasons = {
992
+ reasons?: ShipmentReason[];
875
993
  };
876
994
  /** @returns {ProductsReasonsData} */
877
995
  declare function ProductsReasonsData(): ProductsReasonsData;
@@ -882,231 +1000,105 @@ type ProductsReasonsData = {
882
1000
  /** @returns {ProductsReasonsFilters} */
883
1001
  declare function ProductsReasonsFilters(): ProductsReasonsFilters;
884
1002
  type ProductsReasonsFilters = {
885
- identifier?: string;
886
1003
  line_number?: number;
887
1004
  quantity?: number;
1005
+ identifier?: string;
888
1006
  };
889
- /** @returns {Promise} */
890
- declare function Promise(): Promise;
891
- type Promise = {
892
- show_promise?: boolean;
893
- timestamp?: TimeStampData;
1007
+ /** @returns {ProductsReasons} */
1008
+ declare function ProductsReasons(): ProductsReasons;
1009
+ type ProductsReasons = {
1010
+ data?: ProductsReasonsData;
1011
+ filters?: ProductsReasonsFilters[];
894
1012
  };
895
- /** @returns {QuestionSet} */
896
- declare function QuestionSet(): QuestionSet;
897
- type QuestionSet = {
898
- display_name?: string;
899
- id?: number;
1013
+ /** @returns {EntityReasonData} */
1014
+ declare function EntityReasonData(): EntityReasonData;
1015
+ type EntityReasonData = {
1016
+ reason_id?: number;
1017
+ reason_text?: string;
1018
+ };
1019
+ /** @returns {EntitiesReasons} */
1020
+ declare function EntitiesReasons(): EntitiesReasons;
1021
+ type EntitiesReasons = {
1022
+ data?: EntityReasonData;
1023
+ filters?: any[];
900
1024
  };
901
1025
  /** @returns {ReasonsData} */
902
1026
  declare function ReasonsData(): ReasonsData;
903
1027
  type ReasonsData = {
904
- entities?: EntitiesReasons[];
905
1028
  products?: ProductsReasons[];
1029
+ entities?: EntitiesReasons[];
906
1030
  };
907
- /** @returns {ResponseGetInvoiceShipment} */
908
- declare function ResponseGetInvoiceShipment(): ResponseGetInvoiceShipment;
909
- type ResponseGetInvoiceShipment = {
910
- presigned_type: string;
911
- presigned_url: string;
912
- shipment_id: string;
913
- success: boolean;
914
- };
915
- /** @returns {SendOtpToCustomerResponse} */
916
- declare function SendOtpToCustomerResponse(): SendOtpToCustomerResponse;
917
- type SendOtpToCustomerResponse = {
918
- message?: string;
919
- request_id?: string;
920
- resend_timer?: number;
921
- success?: boolean;
922
- };
923
- /** @returns {ShipmentApplicationStatusResponse} */
924
- declare function ShipmentApplicationStatusResponse(): ShipmentApplicationStatusResponse;
925
- type ShipmentApplicationStatusResponse = {
926
- statuses?: StatusesBodyResponse[];
927
- };
928
- /** @returns {ShipmentBagReasons} */
929
- declare function ShipmentBagReasons(): ShipmentBagReasons;
930
- type ShipmentBagReasons = {
931
- reasons?: BagReasons[];
932
- success?: boolean;
933
- };
934
- /** @returns {ShipmentById} */
935
- declare function ShipmentById(): ShipmentById;
936
- type ShipmentById = {
937
- shipment?: Shipments;
1031
+ /** @returns {Products} */
1032
+ declare function Products(): Products;
1033
+ type Products = {
1034
+ line_number?: number;
1035
+ quantity?: number;
1036
+ identifier?: string;
938
1037
  };
939
- /** @returns {ShipmentPayment} */
940
- declare function ShipmentPayment(): ShipmentPayment;
941
- type ShipmentPayment = {
942
- display_name?: string;
943
- logo?: string;
944
- mode?: string;
945
- mop?: string;
946
- payment_mode?: string;
947
- status?: string;
1038
+ /** @returns {ProductsDataUpdatesFilters} */
1039
+ declare function ProductsDataUpdatesFilters(): ProductsDataUpdatesFilters;
1040
+ type ProductsDataUpdatesFilters = {
1041
+ line_number?: number;
1042
+ identifier?: string;
948
1043
  };
949
- /** @returns {ShipmentReason} */
950
- declare function ShipmentReason(): ShipmentReason;
951
- type ShipmentReason = {
952
- feedback_type?: string;
953
- flow?: string;
954
- priority?: number;
955
- reason_id?: number;
956
- reason_text?: string;
957
- show_text_area?: boolean;
1044
+ /** @returns {ProductsDataUpdates} */
1045
+ declare function ProductsDataUpdates(): ProductsDataUpdates;
1046
+ type ProductsDataUpdates = {
1047
+ data?: any;
1048
+ filters?: ProductsDataUpdatesFilters[];
958
1049
  };
959
- /** @returns {ShipmentReasons} */
960
- declare function ShipmentReasons(): ShipmentReasons;
961
- type ShipmentReasons = {
962
- reasons?: ShipmentReason[];
1050
+ /** @returns {EntitiesDataUpdates} */
1051
+ declare function EntitiesDataUpdates(): EntitiesDataUpdates;
1052
+ type EntitiesDataUpdates = {
1053
+ data?: any;
1054
+ filters?: any[];
963
1055
  };
964
- /** @returns {Shipments} */
965
- declare function Shipments(): Shipments;
966
- type Shipments = {
967
- awb_no?: string;
968
- bags?: Bags[];
969
- beneficiary_details?: boolean;
970
- breakup_values?: BreakupValues[];
971
- can_break?: any;
972
- can_cancel?: boolean;
973
- can_return?: boolean;
974
- comment?: string;
975
- custom_meta?: any[];
976
- delivery_address?: DeliveryAddress;
977
- delivery_date?: string;
978
- dp_name?: string;
979
- fulfilling_company?: FulfillingCompany;
980
- fulfilling_store?: FulfillingStore;
981
- invoice?: Invoice;
982
- need_help_url?: string;
983
- order_id?: string;
984
- order_type?: string;
985
- payment?: ShipmentPayment;
986
- prices?: Prices;
987
- promise?: Promise;
988
- refund_details?: any;
989
- return_meta?: any;
990
- returnable_date?: string;
991
- shipment_created_at?: string;
992
- shipment_created_ts?: string;
993
- shipment_id?: string;
994
- shipment_status?: ShipmentStatus;
995
- show_download_invoice?: boolean;
996
- show_track_link?: boolean;
997
- size_info?: any;
998
- total_bags?: number;
999
- total_details?: ShipmentTotalDetails;
1000
- track_url?: string;
1001
- tracking_details?: TrackingDetails[];
1002
- traking_no?: string;
1003
- user_info?: ShipmentUserInfo;
1056
+ /** @returns {DataUpdates} */
1057
+ declare function DataUpdates(): DataUpdates;
1058
+ type DataUpdates = {
1059
+ products?: ProductsDataUpdates[];
1060
+ entities?: EntitiesDataUpdates[];
1004
1061
  };
1005
1062
  /** @returns {ShipmentsRequest} */
1006
1063
  declare function ShipmentsRequest(): ShipmentsRequest;
1007
1064
  type ShipmentsRequest = {
1065
+ reasons?: ReasonsData;
1066
+ products?: Products[];
1008
1067
  data_updates?: DataUpdates;
1009
1068
  identifier: string;
1010
- products?: Products[];
1011
- reasons?: ReasonsData;
1012
- };
1013
- /** @returns {ShipmentStatus} */
1014
- declare function ShipmentStatus(): ShipmentStatus;
1015
- type ShipmentStatus = {
1016
- hex_code?: string;
1017
- title?: string;
1018
- value?: string;
1019
- };
1020
- /** @returns {ShipmentTotalDetails} */
1021
- declare function ShipmentTotalDetails(): ShipmentTotalDetails;
1022
- type ShipmentTotalDetails = {
1023
- pieces?: number;
1024
- sizes?: number;
1025
- total_price?: number;
1026
- };
1027
- /** @returns {ShipmentTrack} */
1028
- declare function ShipmentTrack(): ShipmentTrack;
1029
- type ShipmentTrack = {
1030
- results?: Track[];
1031
- };
1032
- /** @returns {ShipmentUserInfo} */
1033
- declare function ShipmentUserInfo(): ShipmentUserInfo;
1034
- type ShipmentUserInfo = {
1035
- email?: string;
1036
- first_name?: string;
1037
- gender?: string;
1038
- last_name?: string;
1039
- mobile?: string;
1040
- name?: string;
1041
1069
  };
1042
1070
  /** @returns {StatuesRequest} */
1043
1071
  declare function StatuesRequest(): StatuesRequest;
1044
1072
  type StatuesRequest = {
1045
- exclude_bags_next_state?: string;
1046
1073
  shipments?: ShipmentsRequest[];
1074
+ exclude_bags_next_state?: string;
1047
1075
  status?: string;
1048
1076
  };
1049
- /** @returns {StatusesBodyResponse} */
1050
- declare function StatusesBodyResponse(): StatusesBodyResponse;
1051
- type StatusesBodyResponse = {
1052
- shipments?: any[];
1053
- };
1054
- /** @returns {TimeStampData} */
1055
- declare function TimeStampData(): TimeStampData;
1056
- type TimeStampData = {
1057
- max?: string;
1058
- min?: string;
1059
- };
1060
- /** @returns {Track} */
1061
- declare function Track(): Track;
1062
- type Track = {
1063
- account_name?: string;
1064
- awb?: string;
1065
- last_location_recieved_at?: string;
1066
- reason?: string;
1067
- shipment_type?: string;
1068
- status?: string;
1069
- updated_at?: string;
1070
- updated_time?: string;
1071
- };
1072
- /** @returns {TrackingDetails} */
1073
- declare function TrackingDetails(): TrackingDetails;
1074
- type TrackingDetails = {
1075
- created_ts?: string;
1076
- is_current?: boolean;
1077
- is_passed?: boolean;
1078
- status?: string;
1079
- time?: string;
1080
- tracking_details?: NestedTrackingDetails[];
1081
- value?: string;
1082
- };
1083
1077
  /** @returns {UpdateShipmentStatusRequest} */
1084
1078
  declare function UpdateShipmentStatusRequest(): UpdateShipmentStatusRequest;
1085
1079
  type UpdateShipmentStatusRequest = {
1086
- force_transition?: boolean;
1087
- lock_after_transition?: boolean;
1088
1080
  statuses?: StatuesRequest[];
1089
1081
  task?: boolean;
1082
+ lock_after_transition?: boolean;
1083
+ force_transition?: boolean;
1090
1084
  unlock_before_transition?: boolean;
1091
1085
  };
1092
- /** @returns {UserInfo} */
1093
- declare function UserInfo(): UserInfo;
1094
- type UserInfo = {
1095
- email?: string;
1096
- first_name?: string;
1097
- gender?: string;
1098
- last_name?: string;
1099
- mobile?: string;
1100
- name?: string;
1086
+ /** @returns {StatusesBodyResponse} */
1087
+ declare function StatusesBodyResponse(): StatusesBodyResponse;
1088
+ type StatusesBodyResponse = {
1089
+ shipments?: any[];
1101
1090
  };
1102
- /** @returns {VerifyOtp} */
1103
- declare function VerifyOtp(): VerifyOtp;
1104
- type VerifyOtp = {
1105
- otp_code?: string;
1106
- request_id?: string;
1091
+ /** @returns {ShipmentApplicationStatusResponse} */
1092
+ declare function ShipmentApplicationStatusResponse(): ShipmentApplicationStatusResponse;
1093
+ type ShipmentApplicationStatusResponse = {
1094
+ statuses?: StatusesBodyResponse[];
1107
1095
  };
1108
- /** @returns {VerifyOtpResponse} */
1109
- declare function VerifyOtpResponse(): VerifyOtpResponse;
1110
- type VerifyOtpResponse = {
1111
- success?: boolean;
1096
+ /** @returns {ErrorResponse} */
1097
+ declare function ErrorResponse(): ErrorResponse;
1098
+ type ErrorResponse = {
1099
+ code?: string;
1100
+ message?: string;
1101
+ status?: number;
1102
+ exception?: string;
1103
+ stack_trace?: string;
1112
1104
  };