@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
- package/sdk/application/Order/OrderApplicationModel.js +828 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
- package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +769 -764
- package/sdk/application/User/UserApplicationModel.js +731 -741
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
- package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
- package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
- package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
- package/sdk/platform/User/UserPlatformModel.js +731 -661
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -1,192 +1,162 @@
|
|
|
1
1
|
export = OrderApplicationModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {string} [
|
|
5
|
-
* @property {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* @
|
|
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
|
|
30
|
-
* @property {string} [
|
|
31
|
-
* @property {
|
|
32
|
-
* @property {
|
|
33
|
-
* @property {string
|
|
34
|
-
* @property {
|
|
35
|
-
* @property {
|
|
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
|
|
39
|
-
* @property {
|
|
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 {
|
|
45
|
-
* @property {string} [
|
|
46
|
-
* @property {
|
|
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
|
|
68
|
-
* @property {string} [
|
|
69
|
-
* @property {string} [
|
|
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
|
|
73
|
-
* @property {string} [
|
|
74
|
-
* @property {string} [
|
|
75
|
-
* @property {string} [display]
|
|
37
|
+
* @typedef ShipmentUserInfo
|
|
38
|
+
* @property {string} [first_name]
|
|
39
|
+
* @property {string} [gender]
|
|
76
40
|
* @property {string} [name]
|
|
77
|
-
* @property {
|
|
41
|
+
* @property {string} [last_name]
|
|
42
|
+
* @property {string} [mobile]
|
|
43
|
+
* @property {string} [email]
|
|
78
44
|
*/
|
|
79
45
|
/**
|
|
80
|
-
* @typedef
|
|
81
|
-
* @property {
|
|
46
|
+
* @typedef FulfillingStore
|
|
47
|
+
* @property {number} [id]
|
|
48
|
+
* @property {string} [code]
|
|
82
49
|
* @property {string} [name]
|
|
83
|
-
* @property {string} [
|
|
84
|
-
* @property {
|
|
50
|
+
* @property {string} [company_name]
|
|
51
|
+
* @property {number} [company_id]
|
|
85
52
|
*/
|
|
86
53
|
/**
|
|
87
|
-
* @typedef
|
|
88
|
-
* @property {string} [
|
|
89
|
-
* @property {string} [
|
|
90
|
-
* @property {string} [
|
|
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
|
|
96
|
-
* @property {
|
|
97
|
-
* @property {
|
|
60
|
+
* @typedef Invoice
|
|
61
|
+
* @property {string} [invoice_url]
|
|
62
|
+
* @property {string} [updated_date]
|
|
63
|
+
* @property {string} [label_url]
|
|
98
64
|
*/
|
|
99
65
|
/**
|
|
100
|
-
* @typedef
|
|
101
|
-
* @property {
|
|
102
|
-
* @property {string} [
|
|
103
|
-
* @property {
|
|
104
|
-
* @property {string} [
|
|
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
|
|
127
|
-
* @property {
|
|
128
|
-
* @property {
|
|
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
|
|
132
|
-
* @property {
|
|
133
|
-
* @property {
|
|
83
|
+
* @typedef TimeStampData
|
|
84
|
+
* @property {string} [min]
|
|
85
|
+
* @property {string} [max]
|
|
134
86
|
*/
|
|
135
87
|
/**
|
|
136
|
-
* @typedef
|
|
137
|
-
* @property {
|
|
138
|
-
* @property {
|
|
88
|
+
* @typedef Promise
|
|
89
|
+
* @property {boolean} [show_promise]
|
|
90
|
+
* @property {TimeStampData} [timestamp]
|
|
139
91
|
*/
|
|
140
92
|
/**
|
|
141
|
-
* @typedef
|
|
142
|
-
* @property {
|
|
143
|
-
* @property {
|
|
144
|
-
* @property {
|
|
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
|
|
150
|
-
* @property {
|
|
151
|
-
* @property {number} [
|
|
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} [
|
|
155
|
-
* @property {number} [
|
|
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 {
|
|
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 {
|
|
166
|
-
* @property {
|
|
167
|
-
* @property {
|
|
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} [
|
|
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 {
|
|
173
|
-
* @property {
|
|
174
|
-
* @property {number} [
|
|
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
|
|
180
|
-
* @property {
|
|
125
|
+
* @typedef ItemBrand
|
|
126
|
+
* @property {string} [logo]
|
|
181
127
|
* @property {string} [name]
|
|
182
128
|
*/
|
|
183
129
|
/**
|
|
184
|
-
* @typedef
|
|
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
|
|
198
|
-
* @property {
|
|
199
|
-
* @property {
|
|
200
|
-
* @property {
|
|
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
|
|
204
|
-
* @property {
|
|
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} [
|
|
214
|
-
* @property {string} [
|
|
215
|
-
* @property {string} [slug_key]
|
|
201
|
+
* @property {string} [status]
|
|
202
|
+
* @property {string} [journey_type]
|
|
216
203
|
*/
|
|
217
204
|
/**
|
|
218
|
-
* @typedef
|
|
219
|
-
* @property {string} [
|
|
220
|
-
* @property {
|
|
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
|
|
224
|
-
* @property {
|
|
225
|
-
* @property {
|
|
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
|
|
231
|
-
* @property {
|
|
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
|
|
235
|
-
* @property {
|
|
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
|
|
239
|
-
* @property {
|
|
240
|
-
* @property {
|
|
241
|
-
* @property {OrderPage} [page]
|
|
297
|
+
* @typedef BagsForReorderArticleAssignment
|
|
298
|
+
* @property {string} [strategy]
|
|
299
|
+
* @property {string} [level]
|
|
242
300
|
*/
|
|
243
301
|
/**
|
|
244
|
-
* @typedef
|
|
245
|
-
* @property {
|
|
246
|
-
* @property {
|
|
247
|
-
* @property {number} [
|
|
248
|
-
* @property {
|
|
249
|
-
* @property {
|
|
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 {
|
|
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 {
|
|
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
|
|
270
|
-
* @property {
|
|
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
|
|
295
|
-
* @property {
|
|
296
|
-
* @property {
|
|
297
|
-
* @property {
|
|
332
|
+
* @typedef OrderList
|
|
333
|
+
* @property {OrderPage} [page]
|
|
334
|
+
* @property {OrderSchema[]} [items]
|
|
335
|
+
* @property {OrderFilters} [filters]
|
|
298
336
|
*/
|
|
299
337
|
/**
|
|
300
|
-
* @typedef
|
|
301
|
-
* @property {
|
|
302
|
-
* @property {
|
|
338
|
+
* @typedef ApefaceApiError
|
|
339
|
+
* @property {string} [message]
|
|
340
|
+
* @property {boolean} [success]
|
|
303
341
|
*/
|
|
304
342
|
/**
|
|
305
|
-
* @typedef
|
|
306
|
-
* @property {
|
|
307
|
-
* @property {number} [line_number]
|
|
343
|
+
* @typedef OrderById
|
|
344
|
+
* @property {OrderSchema} [order]
|
|
308
345
|
*/
|
|
309
346
|
/**
|
|
310
|
-
* @typedef
|
|
311
|
-
* @property {
|
|
312
|
-
* @property {ProductsReasonsFilters[]} [filters]
|
|
347
|
+
* @typedef ShipmentById
|
|
348
|
+
* @property {Shipments} [shipment]
|
|
313
349
|
*/
|
|
314
350
|
/**
|
|
315
|
-
* @typedef
|
|
316
|
-
* @property {
|
|
317
|
-
* @property {
|
|
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
|
|
321
|
-
* @property {string} [
|
|
322
|
-
* @property {
|
|
323
|
-
* @property {
|
|
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
|
|
327
|
-
* @property {
|
|
328
|
-
* @property {TimeStampData} [timestamp]
|
|
369
|
+
* @typedef ShipmentTrack
|
|
370
|
+
* @property {Track[]} [results]
|
|
329
371
|
*/
|
|
330
372
|
/**
|
|
331
|
-
* @typedef
|
|
332
|
-
* @property {string} [
|
|
333
|
-
* @property {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
* @
|
|
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 {
|
|
383
|
+
* @property {string} [message]
|
|
352
384
|
* @property {boolean} [success]
|
|
385
|
+
* @property {number} [resend_timer]
|
|
353
386
|
*/
|
|
354
387
|
/**
|
|
355
|
-
* @typedef
|
|
356
|
-
* @property {
|
|
388
|
+
* @typedef VerifyOtp
|
|
389
|
+
* @property {string} [otp_code]
|
|
390
|
+
* @property {string} [request_id]
|
|
357
391
|
*/
|
|
358
392
|
/**
|
|
359
|
-
* @typedef
|
|
360
|
-
* @property {BagReasons[]} [reasons]
|
|
393
|
+
* @typedef VerifyOtpResponse
|
|
361
394
|
* @property {boolean} [success]
|
|
362
395
|
*/
|
|
363
396
|
/**
|
|
364
|
-
* @typedef
|
|
365
|
-
* @property {
|
|
397
|
+
* @typedef BagReasonMeta
|
|
398
|
+
* @property {boolean} [show_text_area]
|
|
366
399
|
*/
|
|
367
400
|
/**
|
|
368
|
-
* @typedef
|
|
401
|
+
* @typedef QuestionSet
|
|
402
|
+
* @property {number} [id]
|
|
369
403
|
* @property {string} [display_name]
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
* @
|
|
373
|
-
* @property {string} [
|
|
374
|
-
* @property {
|
|
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 {
|
|
426
|
+
* @property {string} [flow]
|
|
384
427
|
*/
|
|
385
428
|
/**
|
|
386
429
|
* @typedef ShipmentReasons
|
|
387
430
|
* @property {ShipmentReason[]} [reasons]
|
|
388
431
|
*/
|
|
389
432
|
/**
|
|
390
|
-
* @typedef
|
|
391
|
-
* @property {
|
|
392
|
-
* @property {
|
|
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
|
|
431
|
-
* @property {
|
|
432
|
-
* @property {
|
|
433
|
-
* @property {
|
|
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
|
|
438
|
-
* @property {
|
|
439
|
-
* @property {
|
|
440
|
-
* @property {string} [value]
|
|
444
|
+
* @typedef ProductsReasons
|
|
445
|
+
* @property {ProductsReasonsData} [data]
|
|
446
|
+
* @property {ProductsReasonsFilters[]} [filters]
|
|
441
447
|
*/
|
|
442
448
|
/**
|
|
443
|
-
* @typedef
|
|
444
|
-
* @property {number} [
|
|
445
|
-
* @property {
|
|
446
|
-
* @property {number} [total_price]
|
|
449
|
+
* @typedef EntityReasonData
|
|
450
|
+
* @property {number} [reason_id]
|
|
451
|
+
* @property {string} [reason_text]
|
|
447
452
|
*/
|
|
448
453
|
/**
|
|
449
|
-
* @typedef
|
|
450
|
-
* @property {
|
|
454
|
+
* @typedef EntitiesReasons
|
|
455
|
+
* @property {EntityReasonData} [data]
|
|
456
|
+
* @property {Object[]} [filters]
|
|
451
457
|
*/
|
|
452
458
|
/**
|
|
453
|
-
* @typedef
|
|
454
|
-
* @property {
|
|
455
|
-
* @property {
|
|
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
|
|
463
|
-
* @property {
|
|
464
|
-
* @property {
|
|
465
|
-
* @property {string} [
|
|
464
|
+
* @typedef Products
|
|
465
|
+
* @property {number} [line_number]
|
|
466
|
+
* @property {number} [quantity]
|
|
467
|
+
* @property {string} [identifier]
|
|
466
468
|
*/
|
|
467
469
|
/**
|
|
468
|
-
* @typedef
|
|
469
|
-
* @property {
|
|
470
|
+
* @typedef ProductsDataUpdatesFilters
|
|
471
|
+
* @property {number} [line_number]
|
|
472
|
+
* @property {string} [identifier]
|
|
470
473
|
*/
|
|
471
474
|
/**
|
|
472
|
-
* @typedef
|
|
473
|
-
* @property {
|
|
474
|
-
* @property {
|
|
475
|
+
* @typedef ProductsDataUpdates
|
|
476
|
+
* @property {Object} [data]
|
|
477
|
+
* @property {ProductsDataUpdatesFilters[]} [filters]
|
|
475
478
|
*/
|
|
476
479
|
/**
|
|
477
|
-
* @typedef
|
|
478
|
-
* @property {
|
|
479
|
-
* @property {
|
|
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
|
|
489
|
-
* @property {
|
|
490
|
-
* @property {
|
|
491
|
-
|
|
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
|
|
507
|
-
* @property {
|
|
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
|
|
516
|
-
* @property {
|
|
517
|
-
* @property {string} [request_id]
|
|
515
|
+
* @typedef ShipmentApplicationStatusResponse
|
|
516
|
+
* @property {StatusesBodyResponse[]} [statuses]
|
|
518
517
|
*/
|
|
519
518
|
/**
|
|
520
|
-
* @typedef
|
|
521
|
-
* @property {
|
|
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 {
|
|
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 {
|
|
529
|
-
declare function
|
|
530
|
-
type
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
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 {
|
|
543
|
-
declare function
|
|
544
|
-
type
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
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
|
-
|
|
553
|
+
value?: number;
|
|
609
554
|
currency_symbol?: string;
|
|
610
|
-
display?: string;
|
|
611
555
|
name?: string;
|
|
612
|
-
|
|
556
|
+
display?: string;
|
|
557
|
+
currency_code?: string;
|
|
613
558
|
};
|
|
614
|
-
/** @returns {
|
|
615
|
-
declare function
|
|
616
|
-
type
|
|
617
|
-
|
|
618
|
-
|
|
559
|
+
/** @returns {ShipmentPayment} */
|
|
560
|
+
declare function ShipmentPayment(): ShipmentPayment;
|
|
561
|
+
type ShipmentPayment = {
|
|
562
|
+
mop?: string;
|
|
563
|
+
payment_mode?: string;
|
|
619
564
|
status?: string;
|
|
620
|
-
|
|
565
|
+
mode?: string;
|
|
566
|
+
logo?: string;
|
|
567
|
+
display_name?: string;
|
|
621
568
|
};
|
|
622
|
-
/** @returns {
|
|
623
|
-
declare function
|
|
624
|
-
type
|
|
625
|
-
|
|
569
|
+
/** @returns {ShipmentUserInfo} */
|
|
570
|
+
declare function ShipmentUserInfo(): ShipmentUserInfo;
|
|
571
|
+
type ShipmentUserInfo = {
|
|
572
|
+
first_name?: string;
|
|
573
|
+
gender?: string;
|
|
626
574
|
name?: string;
|
|
627
|
-
|
|
628
|
-
|
|
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 {
|
|
738
|
-
declare function
|
|
739
|
-
type
|
|
740
|
-
|
|
741
|
-
|
|
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 {
|
|
781
|
-
declare function
|
|
782
|
-
type
|
|
783
|
-
|
|
621
|
+
/** @returns {TimeStampData} */
|
|
622
|
+
declare function TimeStampData(): TimeStampData;
|
|
623
|
+
type TimeStampData = {
|
|
624
|
+
min?: string;
|
|
625
|
+
max?: string;
|
|
784
626
|
};
|
|
785
|
-
/** @returns {
|
|
786
|
-
declare function
|
|
787
|
-
type
|
|
788
|
-
|
|
627
|
+
/** @returns {Promise} */
|
|
628
|
+
declare function Promise(): Promise;
|
|
629
|
+
type Promise = {
|
|
630
|
+
show_promise?: boolean;
|
|
631
|
+
timestamp?: TimeStampData;
|
|
789
632
|
};
|
|
790
|
-
/** @returns {
|
|
791
|
-
declare function
|
|
792
|
-
type
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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 {
|
|
798
|
-
declare function
|
|
799
|
-
type
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
826
|
-
declare function
|
|
827
|
-
type
|
|
828
|
-
|
|
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 {
|
|
852
|
-
declare function
|
|
853
|
-
type
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
890
|
+
/** @returns {OrderList} */
|
|
891
|
+
declare function OrderList(): OrderList;
|
|
892
|
+
type OrderList = {
|
|
893
|
+
page?: OrderPage;
|
|
894
|
+
items?: OrderSchema[];
|
|
895
|
+
filters?: OrderFilters;
|
|
857
896
|
};
|
|
858
|
-
/** @returns {
|
|
859
|
-
declare function
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
897
|
+
/** @returns {ApefaceApiError} */
|
|
898
|
+
declare function ApefaceApiError(): ApefaceApiError;
|
|
899
|
+
type ApefaceApiError = {
|
|
900
|
+
message?: string;
|
|
901
|
+
success?: boolean;
|
|
863
902
|
};
|
|
864
|
-
/** @returns {
|
|
865
|
-
declare function
|
|
866
|
-
type
|
|
867
|
-
|
|
868
|
-
line_number?: number;
|
|
903
|
+
/** @returns {OrderById} */
|
|
904
|
+
declare function OrderById(): OrderById;
|
|
905
|
+
type OrderById = {
|
|
906
|
+
order?: OrderSchema;
|
|
869
907
|
};
|
|
870
|
-
/** @returns {
|
|
871
|
-
declare function
|
|
872
|
-
type
|
|
873
|
-
|
|
874
|
-
|
|
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 {
|
|
890
|
-
declare function
|
|
891
|
-
type
|
|
892
|
-
|
|
893
|
-
|
|
1021
|
+
/** @returns {ProductsReasons} */
|
|
1022
|
+
declare function ProductsReasons(): ProductsReasons;
|
|
1023
|
+
type ProductsReasons = {
|
|
1024
|
+
data?: ProductsReasonsData;
|
|
1025
|
+
filters?: ProductsReasonsFilters[];
|
|
894
1026
|
};
|
|
895
|
-
/** @returns {
|
|
896
|
-
declare function
|
|
897
|
-
type
|
|
898
|
-
|
|
899
|
-
|
|
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 {
|
|
908
|
-
declare function
|
|
909
|
-
type
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
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 {
|
|
940
|
-
declare function
|
|
941
|
-
type
|
|
942
|
-
|
|
943
|
-
|
|
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 {
|
|
950
|
-
declare function
|
|
951
|
-
type
|
|
952
|
-
|
|
953
|
-
|
|
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 {
|
|
960
|
-
declare function
|
|
961
|
-
type
|
|
962
|
-
|
|
1064
|
+
/** @returns {EntitiesDataUpdates} */
|
|
1065
|
+
declare function EntitiesDataUpdates(): EntitiesDataUpdates;
|
|
1066
|
+
type EntitiesDataUpdates = {
|
|
1067
|
+
data?: any;
|
|
1068
|
+
filters?: any[];
|
|
963
1069
|
};
|
|
964
|
-
/** @returns {
|
|
965
|
-
declare function
|
|
966
|
-
type
|
|
967
|
-
|
|
968
|
-
|
|
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 {
|
|
1093
|
-
declare function
|
|
1094
|
-
type
|
|
1095
|
-
|
|
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 {
|
|
1103
|
-
declare function
|
|
1104
|
-
type
|
|
1105
|
-
|
|
1106
|
-
request_id?: string;
|
|
1105
|
+
/** @returns {ShipmentApplicationStatusResponse} */
|
|
1106
|
+
declare function ShipmentApplicationStatusResponse(): ShipmentApplicationStatusResponse;
|
|
1107
|
+
type ShipmentApplicationStatusResponse = {
|
|
1108
|
+
statuses?: StatusesBodyResponse[];
|
|
1107
1109
|
};
|
|
1108
|
-
/** @returns {
|
|
1109
|
-
declare function
|
|
1110
|
-
type
|
|
1111
|
-
|
|
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
|
};
|