@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4

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