@gofynd/fdk-client-javascript 1.4.8-beta.2 → 1.4.8
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1206 -281
- package/sdk/application/Content/ContentApplicationModel.js +342 -276
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1401 -324
- package/sdk/application/Order/OrderApplicationModel.js +392 -316
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +75 -8
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
- package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
- package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
- package/sdk/platform/Content/ContentPlatformModel.js +30 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
- package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
- package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
- package/sdk/platform/Order/OrderPlatformModel.js +367 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
- package/sdk/platform/User/UserPlatformModel.js +9 -11
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
- package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
- package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
- package/sdk/public/Billing/BillingPublicClient.js +80 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
- package/sdk/public/Billing/BillingPublicModel.js +252 -87
- package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
- package/sdk/public/Billing/BillingPublicValidator.js +12 -0
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -1,368 +1,429 @@
|
|
|
1
1
|
export = OrderApplicationModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef OrderPage
|
|
4
|
-
* @property {string} [type]
|
|
5
|
-
*
|
|
6
|
-
* @property {number} [
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* @property {string} [type] - Specifies type of pagination. If it is 'cursor'
|
|
5
|
+
* based or 'number' based.
|
|
6
|
+
* @property {number} [item_total] - Total number of items available across all
|
|
7
|
+
* pages. It provides a count of all the items that match the query criteria,
|
|
8
|
+
* regardless of pagination.
|
|
9
|
+
* @property {number} [current] - Specifies the current page number. It helps in
|
|
10
|
+
* identifying the position within the paginated results.
|
|
11
|
+
* @property {number} [size] - Represents the number of items on the current
|
|
12
|
+
* page. It indicates how many items are included in each page of the
|
|
13
|
+
* paginated response.
|
|
14
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page
|
|
15
|
+
* available. It is true if a next page exists and false if the current page
|
|
16
|
+
* is the last one.
|
|
9
17
|
*/
|
|
10
18
|
/**
|
|
11
19
|
* @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]
|
|
20
|
+
* @property {string} [first_name] - First name of the user.
|
|
21
|
+
* @property {string} [gender] - Gender of the user.
|
|
22
|
+
* @property {string} [name] - Full name of the user (including first and last names).
|
|
23
|
+
* @property {string} [last_name] - Last name of the user.
|
|
24
|
+
* @property {string} [mobile] - Mobile number of the user.
|
|
25
|
+
* @property {string} [email] - Email address of the user.
|
|
18
26
|
*/
|
|
19
27
|
/**
|
|
20
28
|
* @typedef BreakupValues
|
|
21
|
-
* @property {number} [value]
|
|
22
|
-
* @property {string} [currency_symbol]
|
|
23
|
-
*
|
|
24
|
-
* @property {string} [
|
|
25
|
-
* @property {string} [
|
|
29
|
+
* @property {number} [value] - The numerical value associated with the entity.
|
|
30
|
+
* @property {string} [currency_symbol] - Symbol representing the currency used
|
|
31
|
+
* for the value.
|
|
32
|
+
* @property {string} [name] - The official name of the entity.
|
|
33
|
+
* @property {string} [display] - The name of the entity as it should be displayed.
|
|
34
|
+
* @property {string} [currency_code] - The international currency code
|
|
35
|
+
* representing the currency used for the value.
|
|
26
36
|
*/
|
|
27
37
|
/**
|
|
28
38
|
* @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]
|
|
39
|
+
* @property {string} [mop] - Abbreviation or code for the payment mode.
|
|
40
|
+
* @property {string} [payment_mode] - The specific payment mode used.
|
|
41
|
+
* @property {string} [status] - The current status of the payment.
|
|
42
|
+
* @property {string} [mode] - The payment mode.
|
|
43
|
+
* @property {string} [logo] - URL of the logo representing the payment mode.
|
|
44
|
+
* @property {string} [display_name] - The name to be displayed for the payment mode.
|
|
35
45
|
*/
|
|
36
46
|
/**
|
|
37
47
|
* @typedef ShipmentPaymentInfo
|
|
38
48
|
* @property {string} [mop] - Stands for "Mode of Payment". This is a short code
|
|
39
49
|
* (like "COD" for Cash On Delivery) that represents the payment method used.
|
|
40
50
|
* @property {string} [payment_mode] - Information about the payment mode,
|
|
41
|
-
* indicates whether COD or PREPAID
|
|
51
|
+
* indicates whether COD or PREPAID.
|
|
42
52
|
* @property {string} [status] - Indicates the current status of the payment,
|
|
43
|
-
* Paid or Unpaid
|
|
44
|
-
* @property {string} [mode] - Information about the payment source. For eg, NB_ICICI
|
|
45
|
-
* @property {string} [logo] - A URL to an image representing the payment method
|
|
53
|
+
* Paid or Unpaid.
|
|
54
|
+
* @property {string} [mode] - Information about the payment source. For eg, NB_ICICI.
|
|
55
|
+
* @property {string} [logo] - A URL to an image representing the payment method.
|
|
46
56
|
* @property {string} [display_name] - The name of the payment method as it
|
|
47
|
-
* should be displayed to the user
|
|
48
|
-
* @property {number} [amount] - Amount paid using this payment method
|
|
57
|
+
* should be displayed to the user.
|
|
58
|
+
* @property {number} [amount] - Amount paid using this payment method.
|
|
49
59
|
*/
|
|
50
60
|
/**
|
|
51
61
|
* @typedef ShipmentUserInfo
|
|
52
|
-
* @property {string} [first_name]
|
|
53
|
-
* @property {string} [gender]
|
|
54
|
-
* @property {string} [name]
|
|
55
|
-
* @property {string} [last_name]
|
|
56
|
-
* @property {string} [mobile]
|
|
57
|
-
* @property {string} [email]
|
|
62
|
+
* @property {string} [first_name] - The unique identifier of the store.
|
|
63
|
+
* @property {string} [gender] - A code associated with the store.
|
|
64
|
+
* @property {string} [name] - The name of the store.
|
|
65
|
+
* @property {string} [last_name] - The name of the company associated with the store.
|
|
66
|
+
* @property {string} [mobile] - The identifier of the company associated with the store.
|
|
67
|
+
* @property {string} [email] - Email address of the user.
|
|
58
68
|
*/
|
|
59
69
|
/**
|
|
60
70
|
* @typedef FulfillingStore
|
|
61
|
-
* @property {number} [id]
|
|
62
|
-
* @property {string} [code]
|
|
63
|
-
* @property {string} [name]
|
|
64
|
-
* @property {string} [company_name]
|
|
65
|
-
* @property {number} [company_id]
|
|
71
|
+
* @property {number} [id] - The unique identifier of the store.
|
|
72
|
+
* @property {string} [code] - A code associated with the store.
|
|
73
|
+
* @property {string} [name] - The name of the store.
|
|
74
|
+
* @property {string} [company_name] - The name of the company associated with the store.
|
|
75
|
+
* @property {number} [company_id] - The identifier of the company associated
|
|
76
|
+
* with the store.
|
|
66
77
|
*/
|
|
67
78
|
/**
|
|
68
79
|
* @typedef ShipmentStatus
|
|
69
|
-
* @property {string} [value]
|
|
70
|
-
*
|
|
71
|
-
* @property {string} [
|
|
80
|
+
* @property {string} [value] - The internal or code value representing the
|
|
81
|
+
* shipment status.
|
|
82
|
+
* @property {string} [title] - The title or display name representing the
|
|
83
|
+
* shipment status.
|
|
84
|
+
* @property {string} [hex_code] - The hexadecimal color code associated with
|
|
85
|
+
* the shipment status.
|
|
72
86
|
*/
|
|
73
87
|
/**
|
|
74
88
|
* @typedef Invoice
|
|
75
|
-
* @property {string} [invoice_url]
|
|
76
|
-
* @property {string} [updated_date]
|
|
77
|
-
*
|
|
89
|
+
* @property {string} [invoice_url] - URL providing access to the invoice.
|
|
90
|
+
* @property {string} [updated_date] - The date and time when the invoice was
|
|
91
|
+
* last updated.
|
|
92
|
+
* @property {string} [label_url] - URL providing access to the invoice label.
|
|
78
93
|
*/
|
|
79
94
|
/**
|
|
80
95
|
* @typedef NestedTrackingDetails
|
|
81
|
-
* @property {boolean} [is_passed]
|
|
82
|
-
*
|
|
83
|
-
* @property {
|
|
84
|
-
* @property {
|
|
96
|
+
* @property {boolean} [is_passed] - Indicates whether the tracking event has
|
|
97
|
+
* passed or occurred.
|
|
98
|
+
* @property {string} [time] - The time associated with the tracking event.
|
|
99
|
+
* @property {boolean} [is_current] - Indicates whether the tracking event is
|
|
100
|
+
* the current or active status.
|
|
101
|
+
* @property {string} [status] - The status of the tracking event.
|
|
85
102
|
*/
|
|
86
103
|
/**
|
|
87
104
|
* @typedef TrackingDetails
|
|
88
|
-
* @property {string} [value]
|
|
89
|
-
* @property {boolean} [is_current]
|
|
90
|
-
*
|
|
91
|
-
* @property {
|
|
92
|
-
*
|
|
93
|
-
* @property {string} [
|
|
94
|
-
* @property {
|
|
105
|
+
* @property {string} [value] - Current value or state of the process.
|
|
106
|
+
* @property {boolean} [is_current] - Indicates whether the tracking event is
|
|
107
|
+
* the current or active status.
|
|
108
|
+
* @property {boolean} [is_passed] - Indicates whether the tracking event has
|
|
109
|
+
* passed or occurred.
|
|
110
|
+
* @property {string} [status] - The status of the tracking event.
|
|
111
|
+
* @property {string} [time] - The time associated with the tracking event.
|
|
112
|
+
* @property {string} [created_ts] - Timestamp when this status was created.
|
|
113
|
+
* @property {NestedTrackingDetails[]} [tracking_details] - Nested tracking details.
|
|
95
114
|
*/
|
|
96
115
|
/**
|
|
97
116
|
* @typedef TimeStampData
|
|
98
|
-
* @property {string} [min]
|
|
99
|
-
* @property {string} [max]
|
|
117
|
+
* @property {string} [min] - The minimum timestamp value.
|
|
118
|
+
* @property {string} [max] - The maximum timestamp value.
|
|
100
119
|
*/
|
|
101
120
|
/**
|
|
102
121
|
* @typedef Promise
|
|
103
|
-
* @property {boolean} [show_promise]
|
|
122
|
+
* @property {boolean} [show_promise] - Indicates whether the promise details
|
|
123
|
+
* should be shown.
|
|
104
124
|
* @property {TimeStampData} [timestamp]
|
|
105
125
|
*/
|
|
106
126
|
/**
|
|
107
127
|
* @typedef ShipmentTotalDetails
|
|
108
|
-
* @property {number} [pieces]
|
|
109
|
-
* @property {number} [total_price]
|
|
110
|
-
* @property {number} [sizes]
|
|
128
|
+
* @property {number} [pieces] - The total number of pieces included.
|
|
129
|
+
* @property {number} [total_price] - The total price of the order or item.
|
|
130
|
+
* @property {number} [sizes] - The number of different sizes included.
|
|
111
131
|
*/
|
|
112
132
|
/**
|
|
113
133
|
* @typedef Prices
|
|
114
|
-
* @property {number} [delivery_charge]
|
|
115
|
-
* @property {number} [coupon_value]
|
|
116
|
-
* @property {number} [brand_calculated_amount]
|
|
117
|
-
* @property {number} [value_of_good]
|
|
118
|
-
*
|
|
119
|
-
* @property {number} [
|
|
120
|
-
* @property {
|
|
121
|
-
* @property {
|
|
122
|
-
* @property {number} [
|
|
123
|
-
* @property {number} [
|
|
124
|
-
* @property {number} [
|
|
125
|
-
* @property {
|
|
126
|
-
* @property {
|
|
127
|
-
*
|
|
128
|
-
* @property {number} [
|
|
129
|
-
* @property {number} [cashback
|
|
130
|
-
* @property {number} [
|
|
131
|
-
* @property {number} [
|
|
132
|
-
* @property {number} [
|
|
133
|
-
* @property {number} [
|
|
134
|
-
*
|
|
135
|
-
* @property {number} [
|
|
136
|
-
*
|
|
134
|
+
* @property {number} [delivery_charge] - The delivery charge for the order.
|
|
135
|
+
* @property {number} [coupon_value] - The value of the coupon applied.
|
|
136
|
+
* @property {number} [brand_calculated_amount] - The amount calculated by the brand.
|
|
137
|
+
* @property {number} [value_of_good] - The value of the goods before tax and
|
|
138
|
+
* other charges.
|
|
139
|
+
* @property {number} [price_marked] - The original marked price of the item.
|
|
140
|
+
* @property {number} [coupon_effective_discount] - The effective discount from coupons.
|
|
141
|
+
* @property {string} [currency_symbol] - The symbol of the currency used.
|
|
142
|
+
* @property {number} [discount] - The discount applied to the item.
|
|
143
|
+
* @property {number} [gst_tax_percentage] - The GST tax percentage applied.
|
|
144
|
+
* @property {number} [cod_charges] - The cash on delivery charges, if applicable.
|
|
145
|
+
* @property {number} [amount_paid] - The total amount paid by the customer.
|
|
146
|
+
* @property {boolean} [added_to_fynd_cash] - Indicates if the refund amount was
|
|
147
|
+
* added to Fynd Cash.
|
|
148
|
+
* @property {number} [transfer_price] - The transfer price of the item.
|
|
149
|
+
* @property {number} [cashback_applied] - The amount of cashback applied.
|
|
150
|
+
* @property {number} [price_effective] - The effective price after all adjustments.
|
|
151
|
+
* @property {number} [cashback] - The cashback amount earned.
|
|
152
|
+
* @property {number} [refund_credit] - The amount credited for refund .
|
|
153
|
+
* @property {number} [amount_paid_roundoff] - The rounded-off amount paid by
|
|
154
|
+
* the customer.
|
|
155
|
+
* @property {number} [promotion_effective_discount] - The effective discount
|
|
156
|
+
* from promotions.
|
|
157
|
+
* @property {number} [refund_amount] - The amount refunded to the customer.
|
|
158
|
+
* @property {string} [currency_code] - The code of the currency used.
|
|
159
|
+
* @property {number} [fynd_credits] - The amount of Fynd credits used.
|
|
160
|
+
* @property {number} [amount_to_be_collected] - The total amount that needs to
|
|
161
|
+
* be collected from the customer.
|
|
137
162
|
*/
|
|
138
163
|
/**
|
|
139
164
|
* @typedef ItemBrand
|
|
140
|
-
* @property {string} [logo]
|
|
141
|
-
* @property {string} [name]
|
|
165
|
+
* @property {string} [logo] - The URL of the brand's logo.
|
|
166
|
+
* @property {string} [name] - The name of the brand.
|
|
142
167
|
*/
|
|
143
168
|
/**
|
|
144
169
|
* @typedef Item
|
|
145
|
-
* @property {string[]} [image]
|
|
146
|
-
* @property {string[]} [l1_categories]
|
|
170
|
+
* @property {string[]} [image] - An array of URLs pointing to images of the item.
|
|
171
|
+
* @property {string[]} [l1_categories] - An array of level 1 categories the item belongs.
|
|
147
172
|
* @property {ItemBrand} [brand]
|
|
148
|
-
* @property {string} [seller_identifier]
|
|
149
|
-
* @property {string} [code]
|
|
150
|
-
* @property {number} [id]
|
|
151
|
-
* @property {string} [name]
|
|
152
|
-
* @property {string} [l3_category_name]
|
|
153
|
-
* @property {string} [slug_key]
|
|
154
|
-
* @property {string[]} [l2_categories]
|
|
155
|
-
*
|
|
156
|
-
* @property {
|
|
173
|
+
* @property {string} [seller_identifier] - The identifier for the seller .
|
|
174
|
+
* @property {string} [code] - The code or SKU of the item.
|
|
175
|
+
* @property {number} [id] - The unique identifier of the item.
|
|
176
|
+
* @property {string} [name] - The name of the item.
|
|
177
|
+
* @property {string} [l3_category_name] - The level 3 category name.
|
|
178
|
+
* @property {string} [slug_key] - A unique key or identifier for the item slug.
|
|
179
|
+
* @property {string[]} [l2_categories] - An array of level 2 categories the
|
|
180
|
+
* item belongs to.
|
|
181
|
+
* @property {string} [size] - The size of the item.
|
|
182
|
+
* @property {Object} [attributes] - An object containing various attributes of the item.
|
|
157
183
|
*/
|
|
158
184
|
/**
|
|
159
185
|
* @typedef AppliedFreeArticles
|
|
160
|
-
* @property {string} [article_id]
|
|
161
|
-
* @property {Object} [free_gift_item_details]
|
|
162
|
-
*
|
|
163
|
-
* @property {
|
|
186
|
+
* @property {string} [article_id] - The unique identifier for the article.
|
|
187
|
+
* @property {Object} [free_gift_item_details] - An object containing details
|
|
188
|
+
* about the free gift item.
|
|
189
|
+
* @property {string} [parent_item_identifier] - The identifier for the parent
|
|
190
|
+
* item to which this free article is related.
|
|
191
|
+
* @property {number} [quantity] - The quantity of the free article.
|
|
164
192
|
*/
|
|
165
193
|
/**
|
|
166
194
|
* @typedef AppliedPromos
|
|
167
|
-
* @property {boolean} [mrp_promotion]
|
|
168
|
-
* @property {string} [promotion_name]
|
|
169
|
-
* @property {number} [article_quantity]
|
|
170
|
-
*
|
|
171
|
-
* @property {
|
|
172
|
-
* @property {
|
|
173
|
-
* @property {
|
|
195
|
+
* @property {boolean} [mrp_promotion] - Indicates if the promotion is applied to the MRP.
|
|
196
|
+
* @property {string} [promotion_name] - The name of the promotion .
|
|
197
|
+
* @property {number} [article_quantity] - The quantity of articles required to
|
|
198
|
+
* qualify for the promotion.
|
|
199
|
+
* @property {string} [promo_id] - The unique identifier for the promotion.
|
|
200
|
+
* @property {number} [amount] - The discount amount provided by the promotion.
|
|
201
|
+
* @property {string} [promotion_type] - The type of promotion.
|
|
202
|
+
* @property {AppliedFreeArticles[]} [applied_free_articles] - An array
|
|
203
|
+
* containing details of free articles applied under the promotion.
|
|
174
204
|
*/
|
|
175
205
|
/**
|
|
176
206
|
* @typedef Identifiers
|
|
177
|
-
* @property {string} [ean]
|
|
178
|
-
* @property {string} [sku_code]
|
|
207
|
+
* @property {string} [ean] - The European Article Number (EAN) of the item.
|
|
208
|
+
* @property {string} [sku_code] - The Stock Keeping Unit (SKU) code of the item.
|
|
179
209
|
*/
|
|
180
210
|
/**
|
|
181
211
|
* @typedef FinancialBreakup
|
|
182
|
-
* @property {number} [coupon_value]
|
|
183
|
-
* @property {number} [delivery_charge]
|
|
184
|
-
* @property {number} [brand_calculated_amount]
|
|
185
|
-
* @property {number} [value_of_good]
|
|
186
|
-
*
|
|
187
|
-
* @property {number} [
|
|
188
|
-
* @property {
|
|
189
|
-
* @property {
|
|
190
|
-
*
|
|
191
|
-
* @property {number} [
|
|
192
|
-
* @property {number} [
|
|
193
|
-
* @property {
|
|
194
|
-
* @property {
|
|
195
|
-
* @property {
|
|
196
|
-
*
|
|
197
|
-
* @property {
|
|
198
|
-
* @property {number} [
|
|
199
|
-
* @property {number} [
|
|
200
|
-
* @property {number} [
|
|
201
|
-
* @property {number} [
|
|
212
|
+
* @property {number} [coupon_value] - The value of the coupon applied.
|
|
213
|
+
* @property {number} [delivery_charge] - The delivery charge for the order.
|
|
214
|
+
* @property {number} [brand_calculated_amount] - The amount calculated by the brand.
|
|
215
|
+
* @property {number} [value_of_good] - The value of the goods before tax and
|
|
216
|
+
* other charges.
|
|
217
|
+
* @property {number} [price_marked] - The original marked price of the item.
|
|
218
|
+
* @property {number} [coupon_effective_discount] - The effective discount from coupons.
|
|
219
|
+
* @property {string} [hsn_code] - The HSN (Harmonized System of Nomenclature)
|
|
220
|
+
* code of the item.
|
|
221
|
+
* @property {number} [discount] - The discount applied to the item.
|
|
222
|
+
* @property {number} [gst_tax_percentage] - The GST tax percentage applied .
|
|
223
|
+
* @property {number} [cod_charges] - The cash on delivery charges, if applicable.
|
|
224
|
+
* @property {number} [amount_paid] - The total amount paid by the customer.
|
|
225
|
+
* @property {boolean} [added_to_fynd_cash] - Indicates if the refund amount was
|
|
226
|
+
* added to Fynd Cash.
|
|
227
|
+
* @property {string} [size] - The size of the item .
|
|
228
|
+
* @property {number} [transfer_price] - The transfer price of the item.
|
|
229
|
+
* @property {number} [cashback_applied] - The amount of cashback applied.
|
|
230
|
+
* @property {number} [price_effective] - The effective price after all adjustments.
|
|
231
|
+
* @property {number} [cashback] - The cashback amount earned.
|
|
232
|
+
* @property {number} [refund_credit] - The amount credited for refund .
|
|
233
|
+
* @property {number} [amount_paid_roundoff] - The rounded-off amount paid by
|
|
234
|
+
* the customer.
|
|
235
|
+
* @property {number} [total_units] - The total number of units purchased.
|
|
202
236
|
* @property {Identifiers} [identifiers]
|
|
203
|
-
* @property {string} [gst_tag]
|
|
204
|
-
* @property {string} [item_name]
|
|
205
|
-
* @property {number} [promotion_effective_discount]
|
|
206
|
-
*
|
|
207
|
-
* @property {number} [
|
|
208
|
-
* @property {number} [
|
|
209
|
-
* @property {number} [
|
|
237
|
+
* @property {string} [gst_tag] - The GST tag indicating the type of GST applied.
|
|
238
|
+
* @property {string} [item_name] - The name of the item.
|
|
239
|
+
* @property {number} [promotion_effective_discount] - The effective discount
|
|
240
|
+
* from promotions.
|
|
241
|
+
* @property {number} [gst_fee] - The GST fee applied to the item.
|
|
242
|
+
* @property {number} [refund_amount] - The amount refunded to the customer.
|
|
243
|
+
* @property {number} [fynd_credits] - The amount of Fynd credits used.
|
|
244
|
+
* @property {number} [amount_to_be_collected] - The total amount that needs to
|
|
245
|
+
* be collected from the customer.
|
|
210
246
|
*/
|
|
211
247
|
/**
|
|
212
248
|
* @typedef CurrentStatus
|
|
213
|
-
* @property {string} [updated_at]
|
|
214
|
-
* @property {string} [name]
|
|
215
|
-
* @property {string} [status]
|
|
216
|
-
* @property {string} [journey_type]
|
|
249
|
+
* @property {string} [updated_at] - The date and time when the status was last updated.
|
|
250
|
+
* @property {string} [name] - The name or label indicating the current state or status.
|
|
251
|
+
* @property {string} [status] - The current status of the bag.
|
|
252
|
+
* @property {string} [journey_type] - The type of journey for the shipment,
|
|
253
|
+
* indicating the direction of the shipment.
|
|
217
254
|
*/
|
|
218
255
|
/**
|
|
219
256
|
* @typedef Bags
|
|
220
|
-
* @property {string} [delivery_date]
|
|
221
|
-
*
|
|
222
|
-
* @property {
|
|
257
|
+
* @property {string} [delivery_date] - The date and time when the item is
|
|
258
|
+
* expected to be delivered .
|
|
259
|
+
* @property {number} [line_number] - The line number of the item in the order.
|
|
260
|
+
* @property {string} [currency_symbol] - The symbol of the currency used.
|
|
223
261
|
* @property {Item} [item]
|
|
224
|
-
* @property {AppliedPromos[]} [applied_promos]
|
|
225
|
-
*
|
|
262
|
+
* @property {AppliedPromos[]} [applied_promos] - An array containing
|
|
263
|
+
* information about applied promotions.
|
|
264
|
+
* @property {number} [quantity] - The quantity of the item.
|
|
226
265
|
* @property {Prices} [prices]
|
|
227
|
-
* @property {boolean} [can_cancel]
|
|
228
|
-
* @property {boolean} [can_return]
|
|
229
|
-
* @property {number} [id]
|
|
230
|
-
* @property {string} [returnable_date]
|
|
231
|
-
*
|
|
232
|
-
* @property {
|
|
233
|
-
*
|
|
234
|
-
* @property {
|
|
235
|
-
*
|
|
266
|
+
* @property {boolean} [can_cancel] - Indicates if the item can be canceled.
|
|
267
|
+
* @property {boolean} [can_return] - Indicates if the item can be returned.
|
|
268
|
+
* @property {number} [id] - The unique identifier for the order item.
|
|
269
|
+
* @property {string} [returnable_date] - The last date and time by which the
|
|
270
|
+
* item can be returned.
|
|
271
|
+
* @property {FinancialBreakup[]} [financial_breakup] - An array containing
|
|
272
|
+
* financial details of the item.
|
|
273
|
+
* @property {Object} [parent_promo_bags] - An object containing details of
|
|
274
|
+
* parent promotional bags.
|
|
275
|
+
* @property {Object} [meta] - An object containing metadata for the item.
|
|
276
|
+
* @property {string} [currency_code] - The code of the currency used.
|
|
277
|
+
* @property {string} [seller_identifier] - The identifier for the seller.
|
|
236
278
|
* @property {CurrentStatus} [current_status]
|
|
237
279
|
* @property {Article} [article]
|
|
238
280
|
*/
|
|
239
281
|
/**
|
|
240
282
|
* @typedef FulfillingCompany
|
|
241
|
-
* @property {number} [id]
|
|
242
|
-
* @property {string} [name]
|
|
283
|
+
* @property {number} [id] - The unique identifier for the fulfilling company.
|
|
284
|
+
* @property {string} [name] - The name of the fulfilling company.
|
|
243
285
|
*/
|
|
244
286
|
/**
|
|
245
287
|
* @typedef Article
|
|
246
|
-
* @property {string[]} [tags]
|
|
288
|
+
* @property {string[]} [tags] - An array of tags associated with the article.
|
|
247
289
|
*/
|
|
248
290
|
/**
|
|
249
291
|
* @typedef Address
|
|
250
|
-
* @property {string} [pincode]
|
|
251
|
-
* @property {string} [phone]
|
|
252
|
-
*
|
|
253
|
-
* @property {
|
|
254
|
-
* @property {string} [
|
|
255
|
-
* @property {string} [
|
|
256
|
-
* @property {string} [
|
|
257
|
-
* @property {string} [address
|
|
258
|
-
* @property {string} [
|
|
259
|
-
* @property {
|
|
260
|
-
* @property {
|
|
261
|
-
* @property {string} [
|
|
262
|
-
* @property {string} [
|
|
263
|
-
* @property {string} [
|
|
264
|
-
* @property {string} [
|
|
265
|
-
* @property {string} [
|
|
266
|
-
*
|
|
267
|
-
* @property {string} [
|
|
268
|
-
* @property {string} [
|
|
269
|
-
* @property {string} [
|
|
270
|
-
* @property {string} [
|
|
271
|
-
* @property {string} [
|
|
272
|
-
* @property {string} [
|
|
292
|
+
* @property {string} [pincode] - The postal code of the address.
|
|
293
|
+
* @property {string} [phone] - The phone number of the person associated with
|
|
294
|
+
* the address.
|
|
295
|
+
* @property {number} [latitude] - The latitude coordinate.
|
|
296
|
+
* @property {string} [address2] - The secondary line of the address.
|
|
297
|
+
* @property {string} [landmark] - A nearby landmark.
|
|
298
|
+
* @property {string} [area] - The area or locality.
|
|
299
|
+
* @property {string} [city] - The city of the address.
|
|
300
|
+
* @property {string} [address] - The full address.
|
|
301
|
+
* @property {string} [address_type] - The type of address.
|
|
302
|
+
* @property {number} [longitude] - The longitude coordinate.
|
|
303
|
+
* @property {string} [country_iso_code] - The ISO code for the country.
|
|
304
|
+
* @property {string} [state] - The state of the address.
|
|
305
|
+
* @property {string} [created_at] - The date and time when the address was created.
|
|
306
|
+
* @property {string} [address1] - The primary line of the address.
|
|
307
|
+
* @property {string} [display_address] - The formatted display address,
|
|
308
|
+
* typically used for printing or displaying in user interfaces.
|
|
309
|
+
* @property {string} [name] - The name of the person associated with the address.
|
|
310
|
+
* @property {string} [contact_person] - The name of the contact person.
|
|
311
|
+
* @property {string} [address_category] - The category of the address.
|
|
312
|
+
* @property {string} [email] - The email address.
|
|
313
|
+
* @property {string} [country_phone_code] - The country phone code.
|
|
314
|
+
* @property {string} [version] - The version of the address format.
|
|
315
|
+
* @property {string} [updated_at] - The date and time when the address was last updated .
|
|
316
|
+
* @property {string} [country] - The country of the address.
|
|
273
317
|
*/
|
|
274
318
|
/**
|
|
275
319
|
* @typedef Shipments
|
|
276
320
|
* @property {ShipmentPayment} [payment]
|
|
277
|
-
* @property {ShipmentPaymentInfo[]} [payment_info] -
|
|
321
|
+
* @property {ShipmentPaymentInfo[]} [payment_info] - Array of objects
|
|
278
322
|
* containing payment methods used for placing an order. Each object will
|
|
279
|
-
* provide information about corresponding payment method with relevant details.
|
|
280
|
-
* @property {string} [order_type]
|
|
281
|
-
* @property {
|
|
282
|
-
* @property {boolean} [
|
|
323
|
+
* provide information about corresponding payment method with relevant details.
|
|
324
|
+
* @property {string} [order_type] - The type of order.
|
|
325
|
+
* @property {string} [gstin_code] - The GSTIN code for the shipment.
|
|
326
|
+
* @property {boolean} [show_download_invoice] - Indicates if the download
|
|
327
|
+
* invoice option should be shown.
|
|
328
|
+
* @property {boolean} [can_cancel] - Indicates if the shipment can be canceled.
|
|
283
329
|
* @property {ShipmentUserInfo} [user_info]
|
|
284
|
-
* @property {string} [shipment_id]
|
|
330
|
+
* @property {string} [shipment_id] - The unique identifier for the shipment.
|
|
285
331
|
* @property {FulfillingStore} [fulfilling_store]
|
|
286
|
-
* @property {Object[]} [custom_meta]
|
|
332
|
+
* @property {Object[]} [custom_meta] - An object containing custom metadata for
|
|
333
|
+
* the shipment.
|
|
287
334
|
* @property {ShipmentStatus} [shipment_status]
|
|
288
|
-
* @property {string} [comment]
|
|
335
|
+
* @property {string} [comment] - Any comments related to the shipment.
|
|
289
336
|
* @property {Invoice} [invoice]
|
|
290
|
-
* @property {boolean} [show_track_link]
|
|
291
|
-
* @property {Object} [refund_details]
|
|
292
|
-
* @property {BreakupValues[]} [breakup_values]
|
|
293
|
-
*
|
|
294
|
-
* @property {
|
|
295
|
-
*
|
|
337
|
+
* @property {boolean} [show_track_link] - Indicates if the track link should be shown.
|
|
338
|
+
* @property {Object} [refund_details] - An object containing details of any refunds.
|
|
339
|
+
* @property {BreakupValues[]} [breakup_values] - An array containing the
|
|
340
|
+
* breakup of various charges and discounts.
|
|
341
|
+
* @property {Object} [can_break] - An object containing details about the
|
|
342
|
+
* breakability of the shipment.
|
|
343
|
+
* @property {string} [traking_no] - The tracking number for the shipment.
|
|
344
|
+
* @property {TrackingDetails[]} [tracking_details] - An array containing
|
|
345
|
+
* details of the tracking history of the shipment.
|
|
296
346
|
* @property {Promise} [promise]
|
|
297
|
-
* @property {number} [total_bags]
|
|
347
|
+
* @property {number} [total_bags] - The total number of bags in the shipment.
|
|
298
348
|
* @property {ShipmentTotalDetails} [total_details]
|
|
299
349
|
* @property {Prices} [prices]
|
|
300
|
-
* @property {string} [returnable_date]
|
|
301
|
-
* @property {string} [shipment_created_at]
|
|
302
|
-
*
|
|
303
|
-
* @property {
|
|
304
|
-
* @property {
|
|
305
|
-
*
|
|
306
|
-
* @property {
|
|
307
|
-
*
|
|
350
|
+
* @property {string} [returnable_date] - The last date by which the item can be returned.
|
|
351
|
+
* @property {string} [shipment_created_at] - The date and time when the
|
|
352
|
+
* shipment was created.
|
|
353
|
+
* @property {string} [shipment_created_ts] - The timestamp when the shipment was created.
|
|
354
|
+
* @property {Object} [size_info] - An object containing size information for
|
|
355
|
+
* the items in the shipment.
|
|
356
|
+
* @property {Bags[]} [bags] - An array containing details about the individual
|
|
357
|
+
* bags in the shipment.
|
|
358
|
+
* @property {string} [dp_name] - The name of the delivery partner.
|
|
359
|
+
* @property {string} [awb_no] - The airway bill number for the shipment.
|
|
360
|
+
* @property {boolean} [beneficiary_details] - Indicates if there are any
|
|
361
|
+
* beneficiary details.
|
|
308
362
|
* @property {FulfillingCompany} [fulfilling_company]
|
|
309
|
-
* @property {boolean} [can_return]
|
|
363
|
+
* @property {boolean} [can_return] - Indicates if the shipment can be returned.
|
|
310
364
|
* @property {Address} [delivery_address]
|
|
311
365
|
* @property {Address} [billing_address]
|
|
312
|
-
* @property {string} [track_url]
|
|
313
|
-
* @property {string} [order_id]
|
|
314
|
-
* @property {string} [need_help_url]
|
|
315
|
-
* @property {Object} [return_meta]
|
|
316
|
-
*
|
|
366
|
+
* @property {string} [track_url] - The URL for tracking the shipment.
|
|
367
|
+
* @property {string} [order_id] - The unique identifier for the order.
|
|
368
|
+
* @property {string} [need_help_url] - The URL for customer support or help.
|
|
369
|
+
* @property {Object} [return_meta] - An object containing metadata about the
|
|
370
|
+
* return process.
|
|
371
|
+
* @property {string} [delivery_date] - The expected delivery date.
|
|
317
372
|
* @property {OrderRequest} [order]
|
|
318
373
|
*/
|
|
319
374
|
/**
|
|
320
375
|
* @typedef BagsForReorderArticleAssignment
|
|
321
|
-
* @property {string} [strategy]
|
|
322
|
-
* @property {string} [level]
|
|
376
|
+
* @property {string} [strategy] - The strategy used for article assignment.
|
|
377
|
+
* @property {string} [level] - The level at which the article assignment is made.
|
|
323
378
|
*/
|
|
324
379
|
/**
|
|
325
380
|
* @typedef BagsForReorder
|
|
326
|
-
* @property {string} [item_size]
|
|
327
|
-
* @property {number} [quantity]
|
|
328
|
-
* @property {number} [store_id]
|
|
381
|
+
* @property {string} [item_size] - The size of the item.
|
|
382
|
+
* @property {number} [quantity] - The quantity of the item.
|
|
383
|
+
* @property {number} [store_id] - The identifier for the store.
|
|
329
384
|
* @property {BagsForReorderArticleAssignment} [article_assignment]
|
|
330
|
-
* @property {number} [seller_id]
|
|
331
|
-
* @property {number} [item_id]
|
|
385
|
+
* @property {number} [seller_id] - The identifier for the seller.
|
|
386
|
+
* @property {number} [item_id] - The unique identifier for the item.
|
|
332
387
|
*/
|
|
333
388
|
/**
|
|
334
389
|
* @typedef OrderSchema
|
|
335
|
-
* @property {number} [total_shipments_in_order]
|
|
336
|
-
*
|
|
390
|
+
* @property {number} [total_shipments_in_order] - The total number of shipments
|
|
391
|
+
* in the order.
|
|
392
|
+
* @property {string} [gstin_code] - The GSTIN code for the shipment.
|
|
337
393
|
* @property {UserInfo} [user_info]
|
|
338
|
-
* @property {BreakupValues[]} [breakup_values]
|
|
339
|
-
*
|
|
340
|
-
* @property {string} [
|
|
341
|
-
* @property {string} [
|
|
342
|
-
* @property {
|
|
343
|
-
* @property {
|
|
344
|
-
*
|
|
394
|
+
* @property {BreakupValues[]} [breakup_values] - An array containing the
|
|
395
|
+
* breakup of various charges and discounts.
|
|
396
|
+
* @property {string} [order_created_time] - The date and time when the order was created.
|
|
397
|
+
* @property {string} [order_created_ts] - The timestamp when the order was created.
|
|
398
|
+
* @property {string} [order_id] - The unique identifier for the order.
|
|
399
|
+
* @property {Shipments[]} [shipments] - An array containing details of
|
|
400
|
+
* individual shipments within the order.
|
|
401
|
+
* @property {BagsForReorder[]} [bags_for_reorder] - An array containing details
|
|
402
|
+
* of bags available for reorder.
|
|
403
|
+
* @property {Object} [meta] - An object containing additional metadata for the order.
|
|
345
404
|
*/
|
|
346
405
|
/**
|
|
347
406
|
* @typedef OrderStatuses
|
|
348
|
-
* @property {number} [value]
|
|
349
|
-
* @property {boolean} [is_selected]
|
|
350
|
-
*
|
|
407
|
+
* @property {number} [value] - The value representing the selection.
|
|
408
|
+
* @property {boolean} [is_selected] - Indicates whether this option is
|
|
409
|
+
* currently selected.
|
|
410
|
+
* @property {string} [display] - The text to display .
|
|
351
411
|
*/
|
|
352
412
|
/**
|
|
353
413
|
* @typedef OrderFilters
|
|
354
|
-
* @property {OrderStatuses[]} [statuses]
|
|
414
|
+
* @property {OrderStatuses[]} [statuses] - An array containing the order statuses.
|
|
355
415
|
*/
|
|
356
416
|
/**
|
|
357
417
|
* @typedef OrderList
|
|
358
418
|
* @property {OrderPage} [page]
|
|
359
|
-
* @property {OrderSchema[]} [items]
|
|
419
|
+
* @property {OrderSchema[]} [items] - List of orders, each containing detailed
|
|
420
|
+
* information about individual orders and their respective shipments.
|
|
360
421
|
* @property {OrderFilters} [filters]
|
|
361
422
|
*/
|
|
362
423
|
/**
|
|
363
424
|
* @typedef ApefaceApiError
|
|
364
|
-
* @property {string} [message]
|
|
365
|
-
* @property {boolean} [success]
|
|
425
|
+
* @property {string} [message] - Contains any message related to the operation.
|
|
426
|
+
* @property {boolean} [success] - Indicates if the operation was successful.
|
|
366
427
|
*/
|
|
367
428
|
/**
|
|
368
429
|
* @typedef OrderById
|
|
@@ -374,183 +435,197 @@ export = OrderApplicationModel;
|
|
|
374
435
|
*/
|
|
375
436
|
/**
|
|
376
437
|
* @typedef ResponseGetInvoiceShipment
|
|
377
|
-
* @property {string} presigned_type
|
|
378
|
-
* @property {boolean} success
|
|
379
|
-
* @property {string} shipment_id
|
|
380
|
-
* @property {string} presigned_url
|
|
438
|
+
* @property {string} presigned_type - Type of presigned URL.
|
|
439
|
+
* @property {boolean} success - Indicates if the operation was successful .
|
|
440
|
+
* @property {string} shipment_id - Identifier for the shipment.
|
|
441
|
+
* @property {string} presigned_url - The presigned URL for accessing the
|
|
442
|
+
* shipment data, obtained from the response data.
|
|
381
443
|
*/
|
|
382
444
|
/**
|
|
383
445
|
* @typedef Track
|
|
384
|
-
* @property {string} [account_name]
|
|
385
|
-
* @property {string} [shipment_type]
|
|
386
|
-
* @property {string} [status]
|
|
387
|
-
* @property {string} [last_location_recieved_at]
|
|
388
|
-
*
|
|
389
|
-
* @property {string} [
|
|
390
|
-
* @property {string} [
|
|
391
|
-
* @property {string} [
|
|
446
|
+
* @property {string} [account_name] - The name of the account handling the shipment.
|
|
447
|
+
* @property {string} [shipment_type] - The type of shipment.
|
|
448
|
+
* @property {string} [status] - The current status of the shipment.
|
|
449
|
+
* @property {string} [last_location_recieved_at] - The last known location of
|
|
450
|
+
* the shipment.
|
|
451
|
+
* @property {string} [updated_time] - The timestamp of the last update.
|
|
452
|
+
* @property {string} [updated_at] - The date and time when the shipment was last updated.
|
|
453
|
+
* @property {string} [reason] - The reason or additional information about the shipment.
|
|
454
|
+
* @property {string} [awb] - The Air Waybill (AWB) number for the shipment.
|
|
392
455
|
*/
|
|
393
456
|
/**
|
|
394
457
|
* @typedef ShipmentTrack
|
|
395
|
-
* @property {Track[]} [results]
|
|
458
|
+
* @property {Track[]} [results] - A array containing tracking details.
|
|
396
459
|
*/
|
|
397
460
|
/**
|
|
398
461
|
* @typedef CustomerDetailsResponse
|
|
399
|
-
* @property {string} [phone]
|
|
400
|
-
* @property {string} [shipment_id]
|
|
401
|
-
* @property {string} [name]
|
|
402
|
-
* @property {string} [order_id]
|
|
403
|
-
* @property {string} [country]
|
|
462
|
+
* @property {string} [phone] - Customer's phone number.
|
|
463
|
+
* @property {string} [shipment_id] - Unique identifier of the shipment.
|
|
464
|
+
* @property {string} [name] - Customer's name.
|
|
465
|
+
* @property {string} [order_id] - Unique identifier of the order.
|
|
466
|
+
* @property {string} [country] - Country of the customer.
|
|
404
467
|
*/
|
|
405
468
|
/**
|
|
406
469
|
* @typedef SendOtpToCustomerResponse
|
|
407
|
-
* @property {string} [request_id]
|
|
408
|
-
* @property {string} [message]
|
|
409
|
-
* @property {boolean} [success]
|
|
410
|
-
* @property {number} [resend_timer]
|
|
470
|
+
* @property {string} [request_id] - Unique identifier for the request.
|
|
471
|
+
* @property {string} [message] - Message indicating the result of the request.
|
|
472
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
473
|
+
* @property {number} [resend_timer] - Time in seconds before the OTP can be resent.
|
|
411
474
|
*/
|
|
412
475
|
/**
|
|
413
476
|
* @typedef VerifyOtp
|
|
414
|
-
* @property {string} [otp_code]
|
|
415
|
-
* @property {string} [request_id]
|
|
477
|
+
* @property {string} [otp_code] - The OTP code provided by the user for verification.
|
|
478
|
+
* @property {string} [request_id] - Unique identifier for the request.
|
|
416
479
|
*/
|
|
417
480
|
/**
|
|
418
481
|
* @typedef VerifyOtpResponse
|
|
419
|
-
* @property {boolean} [success]
|
|
482
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
420
483
|
*/
|
|
421
484
|
/**
|
|
422
485
|
* @typedef BagReasonMeta
|
|
423
|
-
* @property {boolean} [show_text_area]
|
|
486
|
+
* @property {boolean} [show_text_area] - Indicates whether to display a text
|
|
487
|
+
* box on the front end.
|
|
424
488
|
*/
|
|
425
489
|
/**
|
|
426
490
|
* @typedef QuestionSet
|
|
427
|
-
* @property {number} [id]
|
|
428
|
-
* @property {string} [display_name]
|
|
491
|
+
* @property {number} [id] - The unique identifier for the question.
|
|
492
|
+
* @property {string} [display_name] - The text displayed for the question.
|
|
429
493
|
*/
|
|
430
494
|
/**
|
|
431
495
|
* @typedef BagReasons
|
|
432
|
-
* @property {string[]} [qc_type]
|
|
433
|
-
* @property {number} [id]
|
|
434
|
-
* @property {string} [display_name]
|
|
496
|
+
* @property {string[]} [qc_type] - A list of quality check types.
|
|
497
|
+
* @property {number} [id] - The unique identifier.
|
|
498
|
+
* @property {string} [display_name] - The text displayed.
|
|
435
499
|
* @property {BagReasonMeta} [meta]
|
|
436
|
-
* @property {QuestionSet[]} [question_set]
|
|
437
|
-
* @property {BagReasons[]} [reasons]
|
|
500
|
+
* @property {QuestionSet[]} [question_set] - A list of questions for delivery partner.
|
|
501
|
+
* @property {BagReasons[]} [reasons] - A list of reasons.
|
|
438
502
|
*/
|
|
439
503
|
/**
|
|
440
504
|
* @typedef ShipmentBagReasons
|
|
441
|
-
* @property {BagReasons[]} [reasons]
|
|
442
|
-
* @property {boolean} [success]
|
|
505
|
+
* @property {BagReasons[]} [reasons] - A list of shipment's bag reasons.
|
|
506
|
+
* @property {boolean} [success] - Indicates if the operation was successful.
|
|
443
507
|
*/
|
|
444
508
|
/**
|
|
445
509
|
* @typedef ShipmentReason
|
|
446
|
-
* @property {number} [priority]
|
|
447
|
-
* @property {boolean} [show_text_area]
|
|
448
|
-
*
|
|
449
|
-
* @property {
|
|
450
|
-
* @property {string} [
|
|
451
|
-
* @property {string} [
|
|
510
|
+
* @property {number} [priority] - The priority level of the reason.
|
|
511
|
+
* @property {boolean} [show_text_area] - A flag indicating whether to show a
|
|
512
|
+
* textbox on the frontend.
|
|
513
|
+
* @property {number} [reason_id] - The unique identifier for the reason.
|
|
514
|
+
* @property {string} [feedback_type] - The type of feedback.
|
|
515
|
+
* @property {string} [reason_text] - The text describing the reason.
|
|
516
|
+
* @property {string} [flow] - The process flow related to the reason.
|
|
452
517
|
*/
|
|
453
518
|
/**
|
|
454
519
|
* @typedef ShipmentReasons
|
|
455
|
-
* @property {ShipmentReason[]} [reasons]
|
|
520
|
+
* @property {ShipmentReason[]} [reasons] - A list of shipment reasons.
|
|
456
521
|
*/
|
|
457
522
|
/**
|
|
458
523
|
* @typedef ProductsReasonsData
|
|
459
|
-
* @property {number} [reason_id]
|
|
460
|
-
* @property {string} [reason_text]
|
|
524
|
+
* @property {number} [reason_id] - The unique identifier for the reason.
|
|
525
|
+
* @property {string} [reason_text] - The text describing the reason.
|
|
461
526
|
*/
|
|
462
527
|
/**
|
|
463
528
|
* @typedef ProductsReasonsFilters
|
|
464
|
-
* @property {number} [line_number]
|
|
465
|
-
* @property {number} [quantity]
|
|
466
|
-
* @property {string} [identifier]
|
|
529
|
+
* @property {number} [line_number] - The specific line item of bag.
|
|
530
|
+
* @property {number} [quantity] - The quantity of the product.
|
|
531
|
+
* @property {string} [identifier] - The unique identifier for the product.
|
|
467
532
|
*/
|
|
468
533
|
/**
|
|
469
534
|
* @typedef ProductsReasons
|
|
470
535
|
* @property {ProductsReasonsData} [data]
|
|
471
|
-
* @property {ProductsReasonsFilters[]} [filters]
|
|
536
|
+
* @property {ProductsReasonsFilters[]} [filters] - Criteria applied to filter
|
|
537
|
+
* the products.
|
|
472
538
|
*/
|
|
473
539
|
/**
|
|
474
540
|
* @typedef EntityReasonData
|
|
475
|
-
* @property {number} [reason_id]
|
|
476
|
-
* @property {string} [reason_text]
|
|
541
|
+
* @property {number} [reason_id] - The unique identifier for the reason.
|
|
542
|
+
* @property {string} [reason_text] - The text describing the reason.
|
|
477
543
|
*/
|
|
478
544
|
/**
|
|
479
545
|
* @typedef EntitiesReasons
|
|
480
546
|
* @property {EntityReasonData} [data]
|
|
481
|
-
* @property {Object[]} [filters]
|
|
547
|
+
* @property {Object[]} [filters] - Criteria applied to filter the shipment.
|
|
482
548
|
*/
|
|
483
549
|
/**
|
|
484
550
|
* @typedef ReasonsData
|
|
485
|
-
* @property {ProductsReasons[]} [products]
|
|
486
|
-
* @property {EntitiesReasons[]} [entities]
|
|
551
|
+
* @property {ProductsReasons[]} [products] - Reasons data for bags.
|
|
552
|
+
* @property {EntitiesReasons[]} [entities] - Reasons data for shipments.
|
|
487
553
|
*/
|
|
488
554
|
/**
|
|
489
555
|
* @typedef Products
|
|
490
|
-
* @property {number} [line_number]
|
|
491
|
-
* @property {number} [quantity]
|
|
492
|
-
* @property {string} [identifier]
|
|
556
|
+
* @property {number} [line_number] - The specific line item of bag.
|
|
557
|
+
* @property {number} [quantity] - The quantity of the product.
|
|
558
|
+
* @property {string} [identifier] - The unique identifier for the product.
|
|
493
559
|
*/
|
|
494
560
|
/**
|
|
495
561
|
* @typedef ProductsDataUpdatesFilters
|
|
496
|
-
* @property {number} [line_number]
|
|
497
|
-
* @property {string} [identifier]
|
|
562
|
+
* @property {number} [line_number] - The specific line item of bag.
|
|
563
|
+
* @property {string} [identifier] - The quantity of the product.
|
|
498
564
|
*/
|
|
499
565
|
/**
|
|
500
566
|
* @typedef ProductsDataUpdates
|
|
501
|
-
* @property {Object} [data]
|
|
502
|
-
* @property {ProductsDataUpdatesFilters[]} [filters]
|
|
567
|
+
* @property {Object} [data] - Information about the data to be updated.
|
|
568
|
+
* @property {ProductsDataUpdatesFilters[]} [filters] - Criteria applied to
|
|
569
|
+
* filter the products.
|
|
503
570
|
*/
|
|
504
571
|
/**
|
|
505
572
|
* @typedef EntitiesDataUpdates
|
|
506
|
-
* @property {Object} [data]
|
|
507
|
-
* @property {Object[]} [filters]
|
|
573
|
+
* @property {Object} [data] - Information about the data to be updated.
|
|
574
|
+
* @property {Object[]} [filters] - Criteria applied to filter the shipments.
|
|
508
575
|
*/
|
|
509
576
|
/**
|
|
510
577
|
* @typedef DataUpdates
|
|
511
|
-
* @property {ProductsDataUpdates[]} [products]
|
|
512
|
-
* @property {EntitiesDataUpdates[]} [entities]
|
|
578
|
+
* @property {ProductsDataUpdates[]} [products] - Data updates for bags.
|
|
579
|
+
* @property {EntitiesDataUpdates[]} [entities] - Data updates for shipments.
|
|
513
580
|
*/
|
|
514
581
|
/**
|
|
515
582
|
* @typedef ShipmentsRequest
|
|
516
583
|
* @property {ReasonsData} [reasons]
|
|
517
|
-
* @property {Products[]} [products]
|
|
584
|
+
* @property {Products[]} [products] - Specific bag to be updated.
|
|
518
585
|
* @property {DataUpdates} [data_updates]
|
|
519
|
-
* @property {string} identifier
|
|
586
|
+
* @property {string} identifier - The unique identifier for request which is
|
|
587
|
+
* the shipment_id.
|
|
520
588
|
*/
|
|
521
589
|
/**
|
|
522
590
|
* @typedef StatuesRequest
|
|
523
|
-
* @property {ShipmentsRequest[]} [shipments]
|
|
524
|
-
*
|
|
525
|
-
* @property {string} [
|
|
591
|
+
* @property {ShipmentsRequest[]} [shipments] - A list containing information
|
|
592
|
+
* about shipments.
|
|
593
|
+
* @property {string} [exclude_bags_next_state] - State to be change for
|
|
594
|
+
* Remaining Bag/Products.
|
|
595
|
+
* @property {string} [status] - The status to which the entity is to be transitioned.
|
|
526
596
|
*/
|
|
527
597
|
/**
|
|
528
598
|
* @typedef OrderRequest
|
|
529
|
-
* @property {Object} [meta]
|
|
599
|
+
* @property {Object} [meta] - Metadata for the order.
|
|
530
600
|
*/
|
|
531
601
|
/**
|
|
532
602
|
* @typedef UpdateShipmentStatusRequest
|
|
533
|
-
* @property {StatuesRequest[]} [statuses]
|
|
534
|
-
* @property {boolean} [task]
|
|
535
|
-
* @property {boolean} [lock_after_transition]
|
|
536
|
-
*
|
|
537
|
-
* @property {boolean} [
|
|
603
|
+
* @property {StatuesRequest[]} [statuses] - An array containing different status details.
|
|
604
|
+
* @property {boolean} [task] - Indicates whether the task is active or required.
|
|
605
|
+
* @property {boolean} [lock_after_transition] - Indicates whether the status
|
|
606
|
+
* should be locked after the transition.
|
|
607
|
+
* @property {boolean} [force_transition] - Indicates whether the transition
|
|
608
|
+
* should be forced.
|
|
609
|
+
* @property {boolean} [unlock_before_transition] - Indicates whether the status
|
|
610
|
+
* should be unlocked before the transition.
|
|
538
611
|
*/
|
|
539
612
|
/**
|
|
540
613
|
* @typedef StatusesBodyResponse
|
|
541
|
-
* @property {Object[]} [shipments]
|
|
614
|
+
* @property {Object[]} [shipments] - List of shipments.
|
|
542
615
|
*/
|
|
543
616
|
/**
|
|
544
617
|
* @typedef ShipmentApplicationStatusResponse
|
|
545
|
-
* @property {StatusesBodyResponse[]} [statuses]
|
|
618
|
+
* @property {StatusesBodyResponse[]} [statuses] - An array containing different
|
|
619
|
+
* status options of shipments.
|
|
546
620
|
*/
|
|
547
621
|
/**
|
|
548
622
|
* @typedef ErrorResponse
|
|
549
|
-
* @property {string} [code]
|
|
550
|
-
* @property {string} [message]
|
|
551
|
-
* @property {number} [status]
|
|
552
|
-
*
|
|
553
|
-
* @property {string} [
|
|
623
|
+
* @property {string} [code] - The HTTP status code of the response.
|
|
624
|
+
* @property {string} [message] - A message providing details about the response.
|
|
625
|
+
* @property {number} [status] - An additional code providing more context about
|
|
626
|
+
* the response.
|
|
627
|
+
* @property {string} [exception] - Details of any exception that occurred.
|
|
628
|
+
* @property {string} [stack_trace] - The stack trace of any exception that occurred.
|
|
554
629
|
*/
|
|
555
630
|
declare class OrderApplicationModel {
|
|
556
631
|
}
|
|
@@ -560,39 +635,115 @@ declare namespace OrderApplicationModel {
|
|
|
560
635
|
/** @returns {OrderPage} */
|
|
561
636
|
declare function OrderPage(): OrderPage;
|
|
562
637
|
type OrderPage = {
|
|
638
|
+
/**
|
|
639
|
+
* - Specifies type of pagination. If it is 'cursor'
|
|
640
|
+
* based or 'number' based.
|
|
641
|
+
*/
|
|
563
642
|
type?: string;
|
|
643
|
+
/**
|
|
644
|
+
* - Total number of items available across all
|
|
645
|
+
* pages. It provides a count of all the items that match the query criteria,
|
|
646
|
+
* regardless of pagination.
|
|
647
|
+
*/
|
|
564
648
|
item_total?: number;
|
|
649
|
+
/**
|
|
650
|
+
* - Specifies the current page number. It helps in
|
|
651
|
+
* identifying the position within the paginated results.
|
|
652
|
+
*/
|
|
565
653
|
current?: number;
|
|
654
|
+
/**
|
|
655
|
+
* - Represents the number of items on the current
|
|
656
|
+
* page. It indicates how many items are included in each page of the
|
|
657
|
+
* paginated response.
|
|
658
|
+
*/
|
|
566
659
|
size?: number;
|
|
660
|
+
/**
|
|
661
|
+
* - Indicates whether there is a next page
|
|
662
|
+
* available. It is true if a next page exists and false if the current page
|
|
663
|
+
* is the last one.
|
|
664
|
+
*/
|
|
567
665
|
has_next?: boolean;
|
|
568
666
|
};
|
|
569
667
|
/** @returns {UserInfo} */
|
|
570
668
|
declare function UserInfo(): UserInfo;
|
|
571
669
|
type UserInfo = {
|
|
670
|
+
/**
|
|
671
|
+
* - First name of the user.
|
|
672
|
+
*/
|
|
572
673
|
first_name?: string;
|
|
674
|
+
/**
|
|
675
|
+
* - Gender of the user.
|
|
676
|
+
*/
|
|
573
677
|
gender?: string;
|
|
678
|
+
/**
|
|
679
|
+
* - Full name of the user (including first and last names).
|
|
680
|
+
*/
|
|
574
681
|
name?: string;
|
|
682
|
+
/**
|
|
683
|
+
* - Last name of the user.
|
|
684
|
+
*/
|
|
575
685
|
last_name?: string;
|
|
686
|
+
/**
|
|
687
|
+
* - Mobile number of the user.
|
|
688
|
+
*/
|
|
576
689
|
mobile?: string;
|
|
690
|
+
/**
|
|
691
|
+
* - Email address of the user.
|
|
692
|
+
*/
|
|
577
693
|
email?: string;
|
|
578
694
|
};
|
|
579
695
|
/** @returns {BreakupValues} */
|
|
580
696
|
declare function BreakupValues(): BreakupValues;
|
|
581
697
|
type BreakupValues = {
|
|
698
|
+
/**
|
|
699
|
+
* - The numerical value associated with the entity.
|
|
700
|
+
*/
|
|
582
701
|
value?: number;
|
|
702
|
+
/**
|
|
703
|
+
* - Symbol representing the currency used
|
|
704
|
+
* for the value.
|
|
705
|
+
*/
|
|
583
706
|
currency_symbol?: string;
|
|
707
|
+
/**
|
|
708
|
+
* - The official name of the entity.
|
|
709
|
+
*/
|
|
584
710
|
name?: string;
|
|
711
|
+
/**
|
|
712
|
+
* - The name of the entity as it should be displayed.
|
|
713
|
+
*/
|
|
585
714
|
display?: string;
|
|
715
|
+
/**
|
|
716
|
+
* - The international currency code
|
|
717
|
+
* representing the currency used for the value.
|
|
718
|
+
*/
|
|
586
719
|
currency_code?: string;
|
|
587
720
|
};
|
|
588
721
|
/** @returns {ShipmentPayment} */
|
|
589
722
|
declare function ShipmentPayment(): ShipmentPayment;
|
|
590
723
|
type ShipmentPayment = {
|
|
724
|
+
/**
|
|
725
|
+
* - Abbreviation or code for the payment mode.
|
|
726
|
+
*/
|
|
591
727
|
mop?: string;
|
|
728
|
+
/**
|
|
729
|
+
* - The specific payment mode used.
|
|
730
|
+
*/
|
|
592
731
|
payment_mode?: string;
|
|
732
|
+
/**
|
|
733
|
+
* - The current status of the payment.
|
|
734
|
+
*/
|
|
593
735
|
status?: string;
|
|
736
|
+
/**
|
|
737
|
+
* - The payment mode.
|
|
738
|
+
*/
|
|
594
739
|
mode?: string;
|
|
740
|
+
/**
|
|
741
|
+
* - URL of the logo representing the payment mode.
|
|
742
|
+
*/
|
|
595
743
|
logo?: string;
|
|
744
|
+
/**
|
|
745
|
+
* - The name to be displayed for the payment mode.
|
|
746
|
+
*/
|
|
596
747
|
display_name?: string;
|
|
597
748
|
};
|
|
598
749
|
/** @returns {ShipmentPaymentInfo} */
|
|
@@ -605,235 +756,651 @@ type ShipmentPaymentInfo = {
|
|
|
605
756
|
mop?: string;
|
|
606
757
|
/**
|
|
607
758
|
* - Information about the payment mode,
|
|
608
|
-
* indicates whether COD or PREPAID
|
|
759
|
+
* indicates whether COD or PREPAID.
|
|
609
760
|
*/
|
|
610
761
|
payment_mode?: string;
|
|
611
762
|
/**
|
|
612
763
|
* - Indicates the current status of the payment,
|
|
613
|
-
* Paid or Unpaid
|
|
764
|
+
* Paid or Unpaid.
|
|
614
765
|
*/
|
|
615
766
|
status?: string;
|
|
616
767
|
/**
|
|
617
|
-
* - Information about the payment source. For eg, NB_ICICI
|
|
768
|
+
* - Information about the payment source. For eg, NB_ICICI.
|
|
618
769
|
*/
|
|
619
770
|
mode?: string;
|
|
620
771
|
/**
|
|
621
|
-
* - A URL to an image representing the payment method
|
|
772
|
+
* - A URL to an image representing the payment method.
|
|
622
773
|
*/
|
|
623
774
|
logo?: string;
|
|
624
775
|
/**
|
|
625
776
|
* - The name of the payment method as it
|
|
626
|
-
* should be displayed to the user
|
|
777
|
+
* should be displayed to the user.
|
|
627
778
|
*/
|
|
628
779
|
display_name?: string;
|
|
629
780
|
/**
|
|
630
|
-
* - Amount paid using this payment method
|
|
781
|
+
* - Amount paid using this payment method.
|
|
631
782
|
*/
|
|
632
783
|
amount?: number;
|
|
633
784
|
};
|
|
634
785
|
/** @returns {ShipmentUserInfo} */
|
|
635
786
|
declare function ShipmentUserInfo(): ShipmentUserInfo;
|
|
636
787
|
type ShipmentUserInfo = {
|
|
788
|
+
/**
|
|
789
|
+
* - The unique identifier of the store.
|
|
790
|
+
*/
|
|
637
791
|
first_name?: string;
|
|
792
|
+
/**
|
|
793
|
+
* - A code associated with the store.
|
|
794
|
+
*/
|
|
638
795
|
gender?: string;
|
|
796
|
+
/**
|
|
797
|
+
* - The name of the store.
|
|
798
|
+
*/
|
|
639
799
|
name?: string;
|
|
800
|
+
/**
|
|
801
|
+
* - The name of the company associated with the store.
|
|
802
|
+
*/
|
|
640
803
|
last_name?: string;
|
|
804
|
+
/**
|
|
805
|
+
* - The identifier of the company associated with the store.
|
|
806
|
+
*/
|
|
641
807
|
mobile?: string;
|
|
808
|
+
/**
|
|
809
|
+
* - Email address of the user.
|
|
810
|
+
*/
|
|
642
811
|
email?: string;
|
|
643
812
|
};
|
|
644
813
|
/** @returns {FulfillingStore} */
|
|
645
814
|
declare function FulfillingStore(): FulfillingStore;
|
|
646
815
|
type FulfillingStore = {
|
|
816
|
+
/**
|
|
817
|
+
* - The unique identifier of the store.
|
|
818
|
+
*/
|
|
647
819
|
id?: number;
|
|
820
|
+
/**
|
|
821
|
+
* - A code associated with the store.
|
|
822
|
+
*/
|
|
648
823
|
code?: string;
|
|
824
|
+
/**
|
|
825
|
+
* - The name of the store.
|
|
826
|
+
*/
|
|
649
827
|
name?: string;
|
|
828
|
+
/**
|
|
829
|
+
* - The name of the company associated with the store.
|
|
830
|
+
*/
|
|
650
831
|
company_name?: string;
|
|
832
|
+
/**
|
|
833
|
+
* - The identifier of the company associated
|
|
834
|
+
* with the store.
|
|
835
|
+
*/
|
|
651
836
|
company_id?: number;
|
|
652
837
|
};
|
|
653
838
|
/** @returns {ShipmentStatus} */
|
|
654
839
|
declare function ShipmentStatus(): ShipmentStatus;
|
|
655
840
|
type ShipmentStatus = {
|
|
841
|
+
/**
|
|
842
|
+
* - The internal or code value representing the
|
|
843
|
+
* shipment status.
|
|
844
|
+
*/
|
|
656
845
|
value?: string;
|
|
846
|
+
/**
|
|
847
|
+
* - The title or display name representing the
|
|
848
|
+
* shipment status.
|
|
849
|
+
*/
|
|
657
850
|
title?: string;
|
|
851
|
+
/**
|
|
852
|
+
* - The hexadecimal color code associated with
|
|
853
|
+
* the shipment status.
|
|
854
|
+
*/
|
|
658
855
|
hex_code?: string;
|
|
659
856
|
};
|
|
660
857
|
/** @returns {Invoice} */
|
|
661
858
|
declare function Invoice(): Invoice;
|
|
662
859
|
type Invoice = {
|
|
860
|
+
/**
|
|
861
|
+
* - URL providing access to the invoice.
|
|
862
|
+
*/
|
|
663
863
|
invoice_url?: string;
|
|
864
|
+
/**
|
|
865
|
+
* - The date and time when the invoice was
|
|
866
|
+
* last updated.
|
|
867
|
+
*/
|
|
664
868
|
updated_date?: string;
|
|
869
|
+
/**
|
|
870
|
+
* - URL providing access to the invoice label.
|
|
871
|
+
*/
|
|
665
872
|
label_url?: string;
|
|
666
873
|
};
|
|
667
874
|
/** @returns {NestedTrackingDetails} */
|
|
668
875
|
declare function NestedTrackingDetails(): NestedTrackingDetails;
|
|
669
876
|
type NestedTrackingDetails = {
|
|
877
|
+
/**
|
|
878
|
+
* - Indicates whether the tracking event has
|
|
879
|
+
* passed or occurred.
|
|
880
|
+
*/
|
|
670
881
|
is_passed?: boolean;
|
|
882
|
+
/**
|
|
883
|
+
* - The time associated with the tracking event.
|
|
884
|
+
*/
|
|
671
885
|
time?: string;
|
|
886
|
+
/**
|
|
887
|
+
* - Indicates whether the tracking event is
|
|
888
|
+
* the current or active status.
|
|
889
|
+
*/
|
|
672
890
|
is_current?: boolean;
|
|
891
|
+
/**
|
|
892
|
+
* - The status of the tracking event.
|
|
893
|
+
*/
|
|
673
894
|
status?: string;
|
|
674
895
|
};
|
|
675
896
|
/** @returns {TrackingDetails} */
|
|
676
897
|
declare function TrackingDetails(): TrackingDetails;
|
|
677
898
|
type TrackingDetails = {
|
|
899
|
+
/**
|
|
900
|
+
* - Current value or state of the process.
|
|
901
|
+
*/
|
|
678
902
|
value?: string;
|
|
903
|
+
/**
|
|
904
|
+
* - Indicates whether the tracking event is
|
|
905
|
+
* the current or active status.
|
|
906
|
+
*/
|
|
679
907
|
is_current?: boolean;
|
|
908
|
+
/**
|
|
909
|
+
* - Indicates whether the tracking event has
|
|
910
|
+
* passed or occurred.
|
|
911
|
+
*/
|
|
680
912
|
is_passed?: boolean;
|
|
913
|
+
/**
|
|
914
|
+
* - The status of the tracking event.
|
|
915
|
+
*/
|
|
681
916
|
status?: string;
|
|
917
|
+
/**
|
|
918
|
+
* - The time associated with the tracking event.
|
|
919
|
+
*/
|
|
682
920
|
time?: string;
|
|
921
|
+
/**
|
|
922
|
+
* - Timestamp when this status was created.
|
|
923
|
+
*/
|
|
683
924
|
created_ts?: string;
|
|
925
|
+
/**
|
|
926
|
+
* - Nested tracking details.
|
|
927
|
+
*/
|
|
684
928
|
tracking_details?: NestedTrackingDetails[];
|
|
685
929
|
};
|
|
686
930
|
/** @returns {TimeStampData} */
|
|
687
931
|
declare function TimeStampData(): TimeStampData;
|
|
688
932
|
type TimeStampData = {
|
|
933
|
+
/**
|
|
934
|
+
* - The minimum timestamp value.
|
|
935
|
+
*/
|
|
689
936
|
min?: string;
|
|
937
|
+
/**
|
|
938
|
+
* - The maximum timestamp value.
|
|
939
|
+
*/
|
|
690
940
|
max?: string;
|
|
691
941
|
};
|
|
692
942
|
/** @returns {Promise} */
|
|
693
943
|
declare function Promise(): Promise;
|
|
694
944
|
type Promise = {
|
|
945
|
+
/**
|
|
946
|
+
* - Indicates whether the promise details
|
|
947
|
+
* should be shown.
|
|
948
|
+
*/
|
|
695
949
|
show_promise?: boolean;
|
|
696
950
|
timestamp?: TimeStampData;
|
|
697
951
|
};
|
|
698
952
|
/** @returns {ShipmentTotalDetails} */
|
|
699
953
|
declare function ShipmentTotalDetails(): ShipmentTotalDetails;
|
|
700
954
|
type ShipmentTotalDetails = {
|
|
955
|
+
/**
|
|
956
|
+
* - The total number of pieces included.
|
|
957
|
+
*/
|
|
701
958
|
pieces?: number;
|
|
959
|
+
/**
|
|
960
|
+
* - The total price of the order or item.
|
|
961
|
+
*/
|
|
702
962
|
total_price?: number;
|
|
963
|
+
/**
|
|
964
|
+
* - The number of different sizes included.
|
|
965
|
+
*/
|
|
703
966
|
sizes?: number;
|
|
704
967
|
};
|
|
705
968
|
/** @returns {Prices} */
|
|
706
969
|
declare function Prices(): Prices;
|
|
707
970
|
type Prices = {
|
|
971
|
+
/**
|
|
972
|
+
* - The delivery charge for the order.
|
|
973
|
+
*/
|
|
708
974
|
delivery_charge?: number;
|
|
975
|
+
/**
|
|
976
|
+
* - The value of the coupon applied.
|
|
977
|
+
*/
|
|
709
978
|
coupon_value?: number;
|
|
979
|
+
/**
|
|
980
|
+
* - The amount calculated by the brand.
|
|
981
|
+
*/
|
|
710
982
|
brand_calculated_amount?: number;
|
|
983
|
+
/**
|
|
984
|
+
* - The value of the goods before tax and
|
|
985
|
+
* other charges.
|
|
986
|
+
*/
|
|
711
987
|
value_of_good?: number;
|
|
988
|
+
/**
|
|
989
|
+
* - The original marked price of the item.
|
|
990
|
+
*/
|
|
712
991
|
price_marked?: number;
|
|
992
|
+
/**
|
|
993
|
+
* - The effective discount from coupons.
|
|
994
|
+
*/
|
|
713
995
|
coupon_effective_discount?: number;
|
|
996
|
+
/**
|
|
997
|
+
* - The symbol of the currency used.
|
|
998
|
+
*/
|
|
714
999
|
currency_symbol?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* - The discount applied to the item.
|
|
1002
|
+
*/
|
|
715
1003
|
discount?: number;
|
|
1004
|
+
/**
|
|
1005
|
+
* - The GST tax percentage applied.
|
|
1006
|
+
*/
|
|
716
1007
|
gst_tax_percentage?: number;
|
|
1008
|
+
/**
|
|
1009
|
+
* - The cash on delivery charges, if applicable.
|
|
1010
|
+
*/
|
|
717
1011
|
cod_charges?: number;
|
|
1012
|
+
/**
|
|
1013
|
+
* - The total amount paid by the customer.
|
|
1014
|
+
*/
|
|
718
1015
|
amount_paid?: number;
|
|
1016
|
+
/**
|
|
1017
|
+
* - Indicates if the refund amount was
|
|
1018
|
+
* added to Fynd Cash.
|
|
1019
|
+
*/
|
|
719
1020
|
added_to_fynd_cash?: boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* - The transfer price of the item.
|
|
1023
|
+
*/
|
|
720
1024
|
transfer_price?: number;
|
|
1025
|
+
/**
|
|
1026
|
+
* - The amount of cashback applied.
|
|
1027
|
+
*/
|
|
721
1028
|
cashback_applied?: number;
|
|
1029
|
+
/**
|
|
1030
|
+
* - The effective price after all adjustments.
|
|
1031
|
+
*/
|
|
722
1032
|
price_effective?: number;
|
|
1033
|
+
/**
|
|
1034
|
+
* - The cashback amount earned.
|
|
1035
|
+
*/
|
|
723
1036
|
cashback?: number;
|
|
1037
|
+
/**
|
|
1038
|
+
* - The amount credited for refund .
|
|
1039
|
+
*/
|
|
724
1040
|
refund_credit?: number;
|
|
1041
|
+
/**
|
|
1042
|
+
* - The rounded-off amount paid by
|
|
1043
|
+
* the customer.
|
|
1044
|
+
*/
|
|
725
1045
|
amount_paid_roundoff?: number;
|
|
1046
|
+
/**
|
|
1047
|
+
* - The effective discount
|
|
1048
|
+
* from promotions.
|
|
1049
|
+
*/
|
|
726
1050
|
promotion_effective_discount?: number;
|
|
1051
|
+
/**
|
|
1052
|
+
* - The amount refunded to the customer.
|
|
1053
|
+
*/
|
|
727
1054
|
refund_amount?: number;
|
|
1055
|
+
/**
|
|
1056
|
+
* - The code of the currency used.
|
|
1057
|
+
*/
|
|
728
1058
|
currency_code?: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* - The amount of Fynd credits used.
|
|
1061
|
+
*/
|
|
729
1062
|
fynd_credits?: number;
|
|
1063
|
+
/**
|
|
1064
|
+
* - The total amount that needs to
|
|
1065
|
+
* be collected from the customer.
|
|
1066
|
+
*/
|
|
730
1067
|
amount_to_be_collected?: number;
|
|
731
1068
|
};
|
|
732
1069
|
/** @returns {ItemBrand} */
|
|
733
1070
|
declare function ItemBrand(): ItemBrand;
|
|
734
1071
|
type ItemBrand = {
|
|
1072
|
+
/**
|
|
1073
|
+
* - The URL of the brand's logo.
|
|
1074
|
+
*/
|
|
735
1075
|
logo?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* - The name of the brand.
|
|
1078
|
+
*/
|
|
736
1079
|
name?: string;
|
|
737
1080
|
};
|
|
738
1081
|
/** @returns {Item} */
|
|
739
1082
|
declare function Item(): Item;
|
|
740
1083
|
type Item = {
|
|
1084
|
+
/**
|
|
1085
|
+
* - An array of URLs pointing to images of the item.
|
|
1086
|
+
*/
|
|
741
1087
|
image?: string[];
|
|
1088
|
+
/**
|
|
1089
|
+
* - An array of level 1 categories the item belongs.
|
|
1090
|
+
*/
|
|
742
1091
|
l1_categories?: string[];
|
|
743
1092
|
brand?: ItemBrand;
|
|
1093
|
+
/**
|
|
1094
|
+
* - The identifier for the seller .
|
|
1095
|
+
*/
|
|
744
1096
|
seller_identifier?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* - The code or SKU of the item.
|
|
1099
|
+
*/
|
|
745
1100
|
code?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* - The unique identifier of the item.
|
|
1103
|
+
*/
|
|
746
1104
|
id?: number;
|
|
1105
|
+
/**
|
|
1106
|
+
* - The name of the item.
|
|
1107
|
+
*/
|
|
747
1108
|
name?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* - The level 3 category name.
|
|
1111
|
+
*/
|
|
748
1112
|
l3_category_name?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* - A unique key or identifier for the item slug.
|
|
1115
|
+
*/
|
|
749
1116
|
slug_key?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* - An array of level 2 categories the
|
|
1119
|
+
* item belongs to.
|
|
1120
|
+
*/
|
|
750
1121
|
l2_categories?: string[];
|
|
1122
|
+
/**
|
|
1123
|
+
* - The size of the item.
|
|
1124
|
+
*/
|
|
751
1125
|
size?: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* - An object containing various attributes of the item.
|
|
1128
|
+
*/
|
|
752
1129
|
attributes?: any;
|
|
753
1130
|
};
|
|
754
1131
|
/** @returns {AppliedFreeArticles} */
|
|
755
1132
|
declare function AppliedFreeArticles(): AppliedFreeArticles;
|
|
756
1133
|
type AppliedFreeArticles = {
|
|
1134
|
+
/**
|
|
1135
|
+
* - The unique identifier for the article.
|
|
1136
|
+
*/
|
|
757
1137
|
article_id?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* - An object containing details
|
|
1140
|
+
* about the free gift item.
|
|
1141
|
+
*/
|
|
758
1142
|
free_gift_item_details?: any;
|
|
1143
|
+
/**
|
|
1144
|
+
* - The identifier for the parent
|
|
1145
|
+
* item to which this free article is related.
|
|
1146
|
+
*/
|
|
759
1147
|
parent_item_identifier?: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* - The quantity of the free article.
|
|
1150
|
+
*/
|
|
760
1151
|
quantity?: number;
|
|
761
1152
|
};
|
|
762
1153
|
/** @returns {AppliedPromos} */
|
|
763
1154
|
declare function AppliedPromos(): AppliedPromos;
|
|
764
1155
|
type AppliedPromos = {
|
|
1156
|
+
/**
|
|
1157
|
+
* - Indicates if the promotion is applied to the MRP.
|
|
1158
|
+
*/
|
|
765
1159
|
mrp_promotion?: boolean;
|
|
1160
|
+
/**
|
|
1161
|
+
* - The name of the promotion .
|
|
1162
|
+
*/
|
|
766
1163
|
promotion_name?: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* - The quantity of articles required to
|
|
1166
|
+
* qualify for the promotion.
|
|
1167
|
+
*/
|
|
767
1168
|
article_quantity?: number;
|
|
1169
|
+
/**
|
|
1170
|
+
* - The unique identifier for the promotion.
|
|
1171
|
+
*/
|
|
768
1172
|
promo_id?: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* - The discount amount provided by the promotion.
|
|
1175
|
+
*/
|
|
769
1176
|
amount?: number;
|
|
1177
|
+
/**
|
|
1178
|
+
* - The type of promotion.
|
|
1179
|
+
*/
|
|
770
1180
|
promotion_type?: string;
|
|
1181
|
+
/**
|
|
1182
|
+
* - An array
|
|
1183
|
+
* containing details of free articles applied under the promotion.
|
|
1184
|
+
*/
|
|
771
1185
|
applied_free_articles?: AppliedFreeArticles[];
|
|
772
1186
|
};
|
|
773
1187
|
/** @returns {Identifiers} */
|
|
774
1188
|
declare function Identifiers(): Identifiers;
|
|
775
1189
|
type Identifiers = {
|
|
1190
|
+
/**
|
|
1191
|
+
* - The European Article Number (EAN) of the item.
|
|
1192
|
+
*/
|
|
776
1193
|
ean?: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* - The Stock Keeping Unit (SKU) code of the item.
|
|
1196
|
+
*/
|
|
777
1197
|
sku_code?: string;
|
|
778
1198
|
};
|
|
779
1199
|
/** @returns {FinancialBreakup} */
|
|
780
1200
|
declare function FinancialBreakup(): FinancialBreakup;
|
|
781
1201
|
type FinancialBreakup = {
|
|
1202
|
+
/**
|
|
1203
|
+
* - The value of the coupon applied.
|
|
1204
|
+
*/
|
|
782
1205
|
coupon_value?: number;
|
|
1206
|
+
/**
|
|
1207
|
+
* - The delivery charge for the order.
|
|
1208
|
+
*/
|
|
783
1209
|
delivery_charge?: number;
|
|
1210
|
+
/**
|
|
1211
|
+
* - The amount calculated by the brand.
|
|
1212
|
+
*/
|
|
784
1213
|
brand_calculated_amount?: number;
|
|
1214
|
+
/**
|
|
1215
|
+
* - The value of the goods before tax and
|
|
1216
|
+
* other charges.
|
|
1217
|
+
*/
|
|
785
1218
|
value_of_good?: number;
|
|
1219
|
+
/**
|
|
1220
|
+
* - The original marked price of the item.
|
|
1221
|
+
*/
|
|
786
1222
|
price_marked?: number;
|
|
1223
|
+
/**
|
|
1224
|
+
* - The effective discount from coupons.
|
|
1225
|
+
*/
|
|
787
1226
|
coupon_effective_discount?: number;
|
|
1227
|
+
/**
|
|
1228
|
+
* - The HSN (Harmonized System of Nomenclature)
|
|
1229
|
+
* code of the item.
|
|
1230
|
+
*/
|
|
788
1231
|
hsn_code?: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* - The discount applied to the item.
|
|
1234
|
+
*/
|
|
789
1235
|
discount?: number;
|
|
1236
|
+
/**
|
|
1237
|
+
* - The GST tax percentage applied .
|
|
1238
|
+
*/
|
|
790
1239
|
gst_tax_percentage?: number;
|
|
1240
|
+
/**
|
|
1241
|
+
* - The cash on delivery charges, if applicable.
|
|
1242
|
+
*/
|
|
791
1243
|
cod_charges?: number;
|
|
1244
|
+
/**
|
|
1245
|
+
* - The total amount paid by the customer.
|
|
1246
|
+
*/
|
|
792
1247
|
amount_paid?: number;
|
|
1248
|
+
/**
|
|
1249
|
+
* - Indicates if the refund amount was
|
|
1250
|
+
* added to Fynd Cash.
|
|
1251
|
+
*/
|
|
793
1252
|
added_to_fynd_cash?: boolean;
|
|
1253
|
+
/**
|
|
1254
|
+
* - The size of the item .
|
|
1255
|
+
*/
|
|
794
1256
|
size?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* - The transfer price of the item.
|
|
1259
|
+
*/
|
|
795
1260
|
transfer_price?: number;
|
|
1261
|
+
/**
|
|
1262
|
+
* - The amount of cashback applied.
|
|
1263
|
+
*/
|
|
796
1264
|
cashback_applied?: number;
|
|
1265
|
+
/**
|
|
1266
|
+
* - The effective price after all adjustments.
|
|
1267
|
+
*/
|
|
797
1268
|
price_effective?: number;
|
|
1269
|
+
/**
|
|
1270
|
+
* - The cashback amount earned.
|
|
1271
|
+
*/
|
|
798
1272
|
cashback?: number;
|
|
1273
|
+
/**
|
|
1274
|
+
* - The amount credited for refund .
|
|
1275
|
+
*/
|
|
799
1276
|
refund_credit?: number;
|
|
1277
|
+
/**
|
|
1278
|
+
* - The rounded-off amount paid by
|
|
1279
|
+
* the customer.
|
|
1280
|
+
*/
|
|
800
1281
|
amount_paid_roundoff?: number;
|
|
1282
|
+
/**
|
|
1283
|
+
* - The total number of units purchased.
|
|
1284
|
+
*/
|
|
801
1285
|
total_units?: number;
|
|
802
1286
|
identifiers?: Identifiers;
|
|
1287
|
+
/**
|
|
1288
|
+
* - The GST tag indicating the type of GST applied.
|
|
1289
|
+
*/
|
|
803
1290
|
gst_tag?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* - The name of the item.
|
|
1293
|
+
*/
|
|
804
1294
|
item_name?: string;
|
|
1295
|
+
/**
|
|
1296
|
+
* - The effective discount
|
|
1297
|
+
* from promotions.
|
|
1298
|
+
*/
|
|
805
1299
|
promotion_effective_discount?: number;
|
|
1300
|
+
/**
|
|
1301
|
+
* - The GST fee applied to the item.
|
|
1302
|
+
*/
|
|
806
1303
|
gst_fee?: number;
|
|
1304
|
+
/**
|
|
1305
|
+
* - The amount refunded to the customer.
|
|
1306
|
+
*/
|
|
807
1307
|
refund_amount?: number;
|
|
1308
|
+
/**
|
|
1309
|
+
* - The amount of Fynd credits used.
|
|
1310
|
+
*/
|
|
808
1311
|
fynd_credits?: number;
|
|
1312
|
+
/**
|
|
1313
|
+
* - The total amount that needs to
|
|
1314
|
+
* be collected from the customer.
|
|
1315
|
+
*/
|
|
809
1316
|
amount_to_be_collected?: number;
|
|
810
1317
|
};
|
|
811
1318
|
/** @returns {CurrentStatus} */
|
|
812
1319
|
declare function CurrentStatus(): CurrentStatus;
|
|
813
1320
|
type CurrentStatus = {
|
|
1321
|
+
/**
|
|
1322
|
+
* - The date and time when the status was last updated.
|
|
1323
|
+
*/
|
|
814
1324
|
updated_at?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* - The name or label indicating the current state or status.
|
|
1327
|
+
*/
|
|
815
1328
|
name?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* - The current status of the bag.
|
|
1331
|
+
*/
|
|
816
1332
|
status?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* - The type of journey for the shipment,
|
|
1335
|
+
* indicating the direction of the shipment.
|
|
1336
|
+
*/
|
|
817
1337
|
journey_type?: string;
|
|
818
1338
|
};
|
|
819
1339
|
/** @returns {Bags} */
|
|
820
1340
|
declare function Bags(): Bags;
|
|
821
1341
|
type Bags = {
|
|
1342
|
+
/**
|
|
1343
|
+
* - The date and time when the item is
|
|
1344
|
+
* expected to be delivered .
|
|
1345
|
+
*/
|
|
822
1346
|
delivery_date?: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* - The line number of the item in the order.
|
|
1349
|
+
*/
|
|
823
1350
|
line_number?: number;
|
|
1351
|
+
/**
|
|
1352
|
+
* - The symbol of the currency used.
|
|
1353
|
+
*/
|
|
824
1354
|
currency_symbol?: string;
|
|
825
1355
|
item?: Item;
|
|
1356
|
+
/**
|
|
1357
|
+
* - An array containing
|
|
1358
|
+
* information about applied promotions.
|
|
1359
|
+
*/
|
|
826
1360
|
applied_promos?: AppliedPromos[];
|
|
1361
|
+
/**
|
|
1362
|
+
* - The quantity of the item.
|
|
1363
|
+
*/
|
|
827
1364
|
quantity?: number;
|
|
828
1365
|
prices?: Prices;
|
|
1366
|
+
/**
|
|
1367
|
+
* - Indicates if the item can be canceled.
|
|
1368
|
+
*/
|
|
829
1369
|
can_cancel?: boolean;
|
|
1370
|
+
/**
|
|
1371
|
+
* - Indicates if the item can be returned.
|
|
1372
|
+
*/
|
|
830
1373
|
can_return?: boolean;
|
|
1374
|
+
/**
|
|
1375
|
+
* - The unique identifier for the order item.
|
|
1376
|
+
*/
|
|
831
1377
|
id?: number;
|
|
1378
|
+
/**
|
|
1379
|
+
* - The last date and time by which the
|
|
1380
|
+
* item can be returned.
|
|
1381
|
+
*/
|
|
832
1382
|
returnable_date?: string;
|
|
1383
|
+
/**
|
|
1384
|
+
* - An array containing
|
|
1385
|
+
* financial details of the item.
|
|
1386
|
+
*/
|
|
833
1387
|
financial_breakup?: FinancialBreakup[];
|
|
1388
|
+
/**
|
|
1389
|
+
* - An object containing details of
|
|
1390
|
+
* parent promotional bags.
|
|
1391
|
+
*/
|
|
834
1392
|
parent_promo_bags?: any;
|
|
1393
|
+
/**
|
|
1394
|
+
* - An object containing metadata for the item.
|
|
1395
|
+
*/
|
|
835
1396
|
meta?: any;
|
|
1397
|
+
/**
|
|
1398
|
+
* - The code of the currency used.
|
|
1399
|
+
*/
|
|
836
1400
|
currency_code?: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* - The identifier for the seller.
|
|
1403
|
+
*/
|
|
837
1404
|
seller_identifier?: string;
|
|
838
1405
|
current_status?: CurrentStatus;
|
|
839
1406
|
article?: Article;
|
|
@@ -841,39 +1408,119 @@ type Bags = {
|
|
|
841
1408
|
/** @returns {FulfillingCompany} */
|
|
842
1409
|
declare function FulfillingCompany(): FulfillingCompany;
|
|
843
1410
|
type FulfillingCompany = {
|
|
1411
|
+
/**
|
|
1412
|
+
* - The unique identifier for the fulfilling company.
|
|
1413
|
+
*/
|
|
844
1414
|
id?: number;
|
|
1415
|
+
/**
|
|
1416
|
+
* - The name of the fulfilling company.
|
|
1417
|
+
*/
|
|
845
1418
|
name?: string;
|
|
846
1419
|
};
|
|
847
1420
|
/** @returns {Article} */
|
|
848
1421
|
declare function Article(): Article;
|
|
849
1422
|
type Article = {
|
|
1423
|
+
/**
|
|
1424
|
+
* - An array of tags associated with the article.
|
|
1425
|
+
*/
|
|
850
1426
|
tags?: string[];
|
|
851
1427
|
};
|
|
852
1428
|
/** @returns {Address} */
|
|
853
1429
|
declare function Address(): Address;
|
|
854
1430
|
type Address = {
|
|
1431
|
+
/**
|
|
1432
|
+
* - The postal code of the address.
|
|
1433
|
+
*/
|
|
855
1434
|
pincode?: string;
|
|
1435
|
+
/**
|
|
1436
|
+
* - The phone number of the person associated with
|
|
1437
|
+
* the address.
|
|
1438
|
+
*/
|
|
856
1439
|
phone?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* - The latitude coordinate.
|
|
1442
|
+
*/
|
|
857
1443
|
latitude?: number;
|
|
1444
|
+
/**
|
|
1445
|
+
* - The secondary line of the address.
|
|
1446
|
+
*/
|
|
858
1447
|
address2?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* - A nearby landmark.
|
|
1450
|
+
*/
|
|
859
1451
|
landmark?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* - The area or locality.
|
|
1454
|
+
*/
|
|
860
1455
|
area?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* - The city of the address.
|
|
1458
|
+
*/
|
|
861
1459
|
city?: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* - The full address.
|
|
1462
|
+
*/
|
|
862
1463
|
address?: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* - The type of address.
|
|
1466
|
+
*/
|
|
863
1467
|
address_type?: string;
|
|
1468
|
+
/**
|
|
1469
|
+
* - The longitude coordinate.
|
|
1470
|
+
*/
|
|
864
1471
|
longitude?: number;
|
|
1472
|
+
/**
|
|
1473
|
+
* - The ISO code for the country.
|
|
1474
|
+
*/
|
|
865
1475
|
country_iso_code?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* - The state of the address.
|
|
1478
|
+
*/
|
|
866
1479
|
state?: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* - The date and time when the address was created.
|
|
1482
|
+
*/
|
|
867
1483
|
created_at?: string;
|
|
1484
|
+
/**
|
|
1485
|
+
* - The primary line of the address.
|
|
1486
|
+
*/
|
|
868
1487
|
address1?: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* - The formatted display address,
|
|
1490
|
+
* typically used for printing or displaying in user interfaces.
|
|
1491
|
+
*/
|
|
869
1492
|
display_address?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* - The name of the person associated with the address.
|
|
1495
|
+
*/
|
|
870
1496
|
name?: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* - The name of the contact person.
|
|
1499
|
+
*/
|
|
871
1500
|
contact_person?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* - The category of the address.
|
|
1503
|
+
*/
|
|
872
1504
|
address_category?: string;
|
|
1505
|
+
/**
|
|
1506
|
+
* - The email address.
|
|
1507
|
+
*/
|
|
873
1508
|
email?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* - The country phone code.
|
|
1511
|
+
*/
|
|
874
1512
|
country_phone_code?: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* - The version of the address format.
|
|
1515
|
+
*/
|
|
875
1516
|
version?: string;
|
|
1517
|
+
/**
|
|
1518
|
+
* - The date and time when the address was last updated .
|
|
1519
|
+
*/
|
|
876
1520
|
updated_at?: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* - The country of the address.
|
|
1523
|
+
*/
|
|
877
1524
|
country?: string;
|
|
878
1525
|
};
|
|
879
1526
|
/** @returns {Shipments} */
|
|
@@ -881,103 +1528,273 @@ declare function Shipments(): Shipments;
|
|
|
881
1528
|
type Shipments = {
|
|
882
1529
|
payment?: ShipmentPayment;
|
|
883
1530
|
/**
|
|
884
|
-
* -
|
|
1531
|
+
* - Array of objects
|
|
885
1532
|
* containing payment methods used for placing an order. Each object will
|
|
886
|
-
* provide information about corresponding payment method with relevant details.
|
|
1533
|
+
* provide information about corresponding payment method with relevant details.
|
|
887
1534
|
*/
|
|
888
1535
|
payment_info?: ShipmentPaymentInfo[];
|
|
1536
|
+
/**
|
|
1537
|
+
* - The type of order.
|
|
1538
|
+
*/
|
|
889
1539
|
order_type?: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* - The GSTIN code for the shipment.
|
|
1542
|
+
*/
|
|
1543
|
+
gstin_code?: string;
|
|
1544
|
+
/**
|
|
1545
|
+
* - Indicates if the download
|
|
1546
|
+
* invoice option should be shown.
|
|
1547
|
+
*/
|
|
890
1548
|
show_download_invoice?: boolean;
|
|
1549
|
+
/**
|
|
1550
|
+
* - Indicates if the shipment can be canceled.
|
|
1551
|
+
*/
|
|
891
1552
|
can_cancel?: boolean;
|
|
892
1553
|
user_info?: ShipmentUserInfo;
|
|
1554
|
+
/**
|
|
1555
|
+
* - The unique identifier for the shipment.
|
|
1556
|
+
*/
|
|
893
1557
|
shipment_id?: string;
|
|
894
1558
|
fulfilling_store?: FulfillingStore;
|
|
1559
|
+
/**
|
|
1560
|
+
* - An object containing custom metadata for
|
|
1561
|
+
* the shipment.
|
|
1562
|
+
*/
|
|
895
1563
|
custom_meta?: any[];
|
|
896
1564
|
shipment_status?: ShipmentStatus;
|
|
1565
|
+
/**
|
|
1566
|
+
* - Any comments related to the shipment.
|
|
1567
|
+
*/
|
|
897
1568
|
comment?: string;
|
|
898
1569
|
invoice?: Invoice;
|
|
1570
|
+
/**
|
|
1571
|
+
* - Indicates if the track link should be shown.
|
|
1572
|
+
*/
|
|
899
1573
|
show_track_link?: boolean;
|
|
1574
|
+
/**
|
|
1575
|
+
* - An object containing details of any refunds.
|
|
1576
|
+
*/
|
|
900
1577
|
refund_details?: any;
|
|
1578
|
+
/**
|
|
1579
|
+
* - An array containing the
|
|
1580
|
+
* breakup of various charges and discounts.
|
|
1581
|
+
*/
|
|
901
1582
|
breakup_values?: BreakupValues[];
|
|
1583
|
+
/**
|
|
1584
|
+
* - An object containing details about the
|
|
1585
|
+
* breakability of the shipment.
|
|
1586
|
+
*/
|
|
902
1587
|
can_break?: any;
|
|
1588
|
+
/**
|
|
1589
|
+
* - The tracking number for the shipment.
|
|
1590
|
+
*/
|
|
903
1591
|
traking_no?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* - An array containing
|
|
1594
|
+
* details of the tracking history of the shipment.
|
|
1595
|
+
*/
|
|
904
1596
|
tracking_details?: TrackingDetails[];
|
|
905
1597
|
promise?: Promise;
|
|
1598
|
+
/**
|
|
1599
|
+
* - The total number of bags in the shipment.
|
|
1600
|
+
*/
|
|
906
1601
|
total_bags?: number;
|
|
907
1602
|
total_details?: ShipmentTotalDetails;
|
|
908
1603
|
prices?: Prices;
|
|
1604
|
+
/**
|
|
1605
|
+
* - The last date by which the item can be returned.
|
|
1606
|
+
*/
|
|
909
1607
|
returnable_date?: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* - The date and time when the
|
|
1610
|
+
* shipment was created.
|
|
1611
|
+
*/
|
|
910
1612
|
shipment_created_at?: string;
|
|
1613
|
+
/**
|
|
1614
|
+
* - The timestamp when the shipment was created.
|
|
1615
|
+
*/
|
|
911
1616
|
shipment_created_ts?: string;
|
|
1617
|
+
/**
|
|
1618
|
+
* - An object containing size information for
|
|
1619
|
+
* the items in the shipment.
|
|
1620
|
+
*/
|
|
912
1621
|
size_info?: any;
|
|
1622
|
+
/**
|
|
1623
|
+
* - An array containing details about the individual
|
|
1624
|
+
* bags in the shipment.
|
|
1625
|
+
*/
|
|
913
1626
|
bags?: Bags[];
|
|
1627
|
+
/**
|
|
1628
|
+
* - The name of the delivery partner.
|
|
1629
|
+
*/
|
|
914
1630
|
dp_name?: string;
|
|
1631
|
+
/**
|
|
1632
|
+
* - The airway bill number for the shipment.
|
|
1633
|
+
*/
|
|
915
1634
|
awb_no?: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* - Indicates if there are any
|
|
1637
|
+
* beneficiary details.
|
|
1638
|
+
*/
|
|
916
1639
|
beneficiary_details?: boolean;
|
|
917
1640
|
fulfilling_company?: FulfillingCompany;
|
|
1641
|
+
/**
|
|
1642
|
+
* - Indicates if the shipment can be returned.
|
|
1643
|
+
*/
|
|
918
1644
|
can_return?: boolean;
|
|
919
1645
|
delivery_address?: Address;
|
|
920
1646
|
billing_address?: Address;
|
|
1647
|
+
/**
|
|
1648
|
+
* - The URL for tracking the shipment.
|
|
1649
|
+
*/
|
|
921
1650
|
track_url?: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* - The unique identifier for the order.
|
|
1653
|
+
*/
|
|
922
1654
|
order_id?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* - The URL for customer support or help.
|
|
1657
|
+
*/
|
|
923
1658
|
need_help_url?: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* - An object containing metadata about the
|
|
1661
|
+
* return process.
|
|
1662
|
+
*/
|
|
924
1663
|
return_meta?: any;
|
|
1664
|
+
/**
|
|
1665
|
+
* - The expected delivery date.
|
|
1666
|
+
*/
|
|
925
1667
|
delivery_date?: string;
|
|
926
1668
|
order?: OrderRequest;
|
|
927
1669
|
};
|
|
928
1670
|
/** @returns {BagsForReorderArticleAssignment} */
|
|
929
1671
|
declare function BagsForReorderArticleAssignment(): BagsForReorderArticleAssignment;
|
|
930
1672
|
type BagsForReorderArticleAssignment = {
|
|
1673
|
+
/**
|
|
1674
|
+
* - The strategy used for article assignment.
|
|
1675
|
+
*/
|
|
931
1676
|
strategy?: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* - The level at which the article assignment is made.
|
|
1679
|
+
*/
|
|
932
1680
|
level?: string;
|
|
933
1681
|
};
|
|
934
1682
|
/** @returns {BagsForReorder} */
|
|
935
1683
|
declare function BagsForReorder(): BagsForReorder;
|
|
936
1684
|
type BagsForReorder = {
|
|
1685
|
+
/**
|
|
1686
|
+
* - The size of the item.
|
|
1687
|
+
*/
|
|
937
1688
|
item_size?: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* - The quantity of the item.
|
|
1691
|
+
*/
|
|
938
1692
|
quantity?: number;
|
|
1693
|
+
/**
|
|
1694
|
+
* - The identifier for the store.
|
|
1695
|
+
*/
|
|
939
1696
|
store_id?: number;
|
|
940
1697
|
article_assignment?: BagsForReorderArticleAssignment;
|
|
1698
|
+
/**
|
|
1699
|
+
* - The identifier for the seller.
|
|
1700
|
+
*/
|
|
941
1701
|
seller_id?: number;
|
|
1702
|
+
/**
|
|
1703
|
+
* - The unique identifier for the item.
|
|
1704
|
+
*/
|
|
942
1705
|
item_id?: number;
|
|
943
1706
|
};
|
|
944
1707
|
/** @returns {OrderSchema} */
|
|
945
1708
|
declare function OrderSchema(): OrderSchema;
|
|
946
1709
|
type OrderSchema = {
|
|
1710
|
+
/**
|
|
1711
|
+
* - The total number of shipments
|
|
1712
|
+
* in the order.
|
|
1713
|
+
*/
|
|
947
1714
|
total_shipments_in_order?: number;
|
|
1715
|
+
/**
|
|
1716
|
+
* - The GSTIN code for the shipment.
|
|
1717
|
+
*/
|
|
948
1718
|
gstin_code?: string;
|
|
949
1719
|
user_info?: UserInfo;
|
|
1720
|
+
/**
|
|
1721
|
+
* - An array containing the
|
|
1722
|
+
* breakup of various charges and discounts.
|
|
1723
|
+
*/
|
|
950
1724
|
breakup_values?: BreakupValues[];
|
|
1725
|
+
/**
|
|
1726
|
+
* - The date and time when the order was created.
|
|
1727
|
+
*/
|
|
951
1728
|
order_created_time?: string;
|
|
1729
|
+
/**
|
|
1730
|
+
* - The timestamp when the order was created.
|
|
1731
|
+
*/
|
|
952
1732
|
order_created_ts?: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* - The unique identifier for the order.
|
|
1735
|
+
*/
|
|
953
1736
|
order_id?: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* - An array containing details of
|
|
1739
|
+
* individual shipments within the order.
|
|
1740
|
+
*/
|
|
954
1741
|
shipments?: Shipments[];
|
|
1742
|
+
/**
|
|
1743
|
+
* - An array containing details
|
|
1744
|
+
* of bags available for reorder.
|
|
1745
|
+
*/
|
|
955
1746
|
bags_for_reorder?: BagsForReorder[];
|
|
1747
|
+
/**
|
|
1748
|
+
* - An object containing additional metadata for the order.
|
|
1749
|
+
*/
|
|
956
1750
|
meta?: any;
|
|
957
1751
|
};
|
|
958
1752
|
/** @returns {OrderStatuses} */
|
|
959
1753
|
declare function OrderStatuses(): OrderStatuses;
|
|
960
1754
|
type OrderStatuses = {
|
|
1755
|
+
/**
|
|
1756
|
+
* - The value representing the selection.
|
|
1757
|
+
*/
|
|
961
1758
|
value?: number;
|
|
1759
|
+
/**
|
|
1760
|
+
* - Indicates whether this option is
|
|
1761
|
+
* currently selected.
|
|
1762
|
+
*/
|
|
962
1763
|
is_selected?: boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* - The text to display .
|
|
1766
|
+
*/
|
|
963
1767
|
display?: string;
|
|
964
1768
|
};
|
|
965
1769
|
/** @returns {OrderFilters} */
|
|
966
1770
|
declare function OrderFilters(): OrderFilters;
|
|
967
1771
|
type OrderFilters = {
|
|
1772
|
+
/**
|
|
1773
|
+
* - An array containing the order statuses.
|
|
1774
|
+
*/
|
|
968
1775
|
statuses?: OrderStatuses[];
|
|
969
1776
|
};
|
|
970
1777
|
/** @returns {OrderList} */
|
|
971
1778
|
declare function OrderList(): OrderList;
|
|
972
1779
|
type OrderList = {
|
|
973
1780
|
page?: OrderPage;
|
|
1781
|
+
/**
|
|
1782
|
+
* - List of orders, each containing detailed
|
|
1783
|
+
* information about individual orders and their respective shipments.
|
|
1784
|
+
*/
|
|
974
1785
|
items?: OrderSchema[];
|
|
975
1786
|
filters?: OrderFilters;
|
|
976
1787
|
};
|
|
977
1788
|
/** @returns {ApefaceApiError} */
|
|
978
1789
|
declare function ApefaceApiError(): ApefaceApiError;
|
|
979
1790
|
type ApefaceApiError = {
|
|
1791
|
+
/**
|
|
1792
|
+
* - Contains any message related to the operation.
|
|
1793
|
+
*/
|
|
980
1794
|
message?: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* - Indicates if the operation was successful.
|
|
1797
|
+
*/
|
|
981
1798
|
success?: boolean;
|
|
982
1799
|
};
|
|
983
1800
|
/** @returns {OrderById} */
|
|
@@ -993,211 +1810,471 @@ type ShipmentById = {
|
|
|
993
1810
|
/** @returns {ResponseGetInvoiceShipment} */
|
|
994
1811
|
declare function ResponseGetInvoiceShipment(): ResponseGetInvoiceShipment;
|
|
995
1812
|
type ResponseGetInvoiceShipment = {
|
|
1813
|
+
/**
|
|
1814
|
+
* - Type of presigned URL.
|
|
1815
|
+
*/
|
|
996
1816
|
presigned_type: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* - Indicates if the operation was successful .
|
|
1819
|
+
*/
|
|
997
1820
|
success: boolean;
|
|
1821
|
+
/**
|
|
1822
|
+
* - Identifier for the shipment.
|
|
1823
|
+
*/
|
|
998
1824
|
shipment_id: string;
|
|
1825
|
+
/**
|
|
1826
|
+
* - The presigned URL for accessing the
|
|
1827
|
+
* shipment data, obtained from the response data.
|
|
1828
|
+
*/
|
|
999
1829
|
presigned_url: string;
|
|
1000
1830
|
};
|
|
1001
1831
|
/** @returns {Track} */
|
|
1002
1832
|
declare function Track(): Track;
|
|
1003
1833
|
type Track = {
|
|
1834
|
+
/**
|
|
1835
|
+
* - The name of the account handling the shipment.
|
|
1836
|
+
*/
|
|
1004
1837
|
account_name?: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* - The type of shipment.
|
|
1840
|
+
*/
|
|
1005
1841
|
shipment_type?: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* - The current status of the shipment.
|
|
1844
|
+
*/
|
|
1006
1845
|
status?: string;
|
|
1846
|
+
/**
|
|
1847
|
+
* - The last known location of
|
|
1848
|
+
* the shipment.
|
|
1849
|
+
*/
|
|
1007
1850
|
last_location_recieved_at?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* - The timestamp of the last update.
|
|
1853
|
+
*/
|
|
1008
1854
|
updated_time?: string;
|
|
1855
|
+
/**
|
|
1856
|
+
* - The date and time when the shipment was last updated.
|
|
1857
|
+
*/
|
|
1009
1858
|
updated_at?: string;
|
|
1859
|
+
/**
|
|
1860
|
+
* - The reason or additional information about the shipment.
|
|
1861
|
+
*/
|
|
1010
1862
|
reason?: string;
|
|
1863
|
+
/**
|
|
1864
|
+
* - The Air Waybill (AWB) number for the shipment.
|
|
1865
|
+
*/
|
|
1011
1866
|
awb?: string;
|
|
1012
1867
|
};
|
|
1013
1868
|
/** @returns {ShipmentTrack} */
|
|
1014
1869
|
declare function ShipmentTrack(): ShipmentTrack;
|
|
1015
1870
|
type ShipmentTrack = {
|
|
1871
|
+
/**
|
|
1872
|
+
* - A array containing tracking details.
|
|
1873
|
+
*/
|
|
1016
1874
|
results?: Track[];
|
|
1017
1875
|
};
|
|
1018
1876
|
/** @returns {CustomerDetailsResponse} */
|
|
1019
1877
|
declare function CustomerDetailsResponse(): CustomerDetailsResponse;
|
|
1020
1878
|
type CustomerDetailsResponse = {
|
|
1879
|
+
/**
|
|
1880
|
+
* - Customer's phone number.
|
|
1881
|
+
*/
|
|
1021
1882
|
phone?: string;
|
|
1883
|
+
/**
|
|
1884
|
+
* - Unique identifier of the shipment.
|
|
1885
|
+
*/
|
|
1022
1886
|
shipment_id?: string;
|
|
1887
|
+
/**
|
|
1888
|
+
* - Customer's name.
|
|
1889
|
+
*/
|
|
1023
1890
|
name?: string;
|
|
1891
|
+
/**
|
|
1892
|
+
* - Unique identifier of the order.
|
|
1893
|
+
*/
|
|
1024
1894
|
order_id?: string;
|
|
1895
|
+
/**
|
|
1896
|
+
* - Country of the customer.
|
|
1897
|
+
*/
|
|
1025
1898
|
country?: string;
|
|
1026
1899
|
};
|
|
1027
1900
|
/** @returns {SendOtpToCustomerResponse} */
|
|
1028
1901
|
declare function SendOtpToCustomerResponse(): SendOtpToCustomerResponse;
|
|
1029
1902
|
type SendOtpToCustomerResponse = {
|
|
1903
|
+
/**
|
|
1904
|
+
* - Unique identifier for the request.
|
|
1905
|
+
*/
|
|
1030
1906
|
request_id?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* - Message indicating the result of the request.
|
|
1909
|
+
*/
|
|
1031
1910
|
message?: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* - Indicates whether the request was successful.
|
|
1913
|
+
*/
|
|
1032
1914
|
success?: boolean;
|
|
1915
|
+
/**
|
|
1916
|
+
* - Time in seconds before the OTP can be resent.
|
|
1917
|
+
*/
|
|
1033
1918
|
resend_timer?: number;
|
|
1034
1919
|
};
|
|
1035
1920
|
/** @returns {VerifyOtp} */
|
|
1036
1921
|
declare function VerifyOtp(): VerifyOtp;
|
|
1037
1922
|
type VerifyOtp = {
|
|
1923
|
+
/**
|
|
1924
|
+
* - The OTP code provided by the user for verification.
|
|
1925
|
+
*/
|
|
1038
1926
|
otp_code?: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* - Unique identifier for the request.
|
|
1929
|
+
*/
|
|
1039
1930
|
request_id?: string;
|
|
1040
1931
|
};
|
|
1041
1932
|
/** @returns {VerifyOtpResponse} */
|
|
1042
1933
|
declare function VerifyOtpResponse(): VerifyOtpResponse;
|
|
1043
1934
|
type VerifyOtpResponse = {
|
|
1935
|
+
/**
|
|
1936
|
+
* - Indicates whether the request was successful.
|
|
1937
|
+
*/
|
|
1044
1938
|
success?: boolean;
|
|
1045
1939
|
};
|
|
1046
1940
|
/** @returns {BagReasonMeta} */
|
|
1047
1941
|
declare function BagReasonMeta(): BagReasonMeta;
|
|
1048
1942
|
type BagReasonMeta = {
|
|
1943
|
+
/**
|
|
1944
|
+
* - Indicates whether to display a text
|
|
1945
|
+
* box on the front end.
|
|
1946
|
+
*/
|
|
1049
1947
|
show_text_area?: boolean;
|
|
1050
1948
|
};
|
|
1051
1949
|
/** @returns {QuestionSet} */
|
|
1052
1950
|
declare function QuestionSet(): QuestionSet;
|
|
1053
1951
|
type QuestionSet = {
|
|
1952
|
+
/**
|
|
1953
|
+
* - The unique identifier for the question.
|
|
1954
|
+
*/
|
|
1054
1955
|
id?: number;
|
|
1956
|
+
/**
|
|
1957
|
+
* - The text displayed for the question.
|
|
1958
|
+
*/
|
|
1055
1959
|
display_name?: string;
|
|
1056
1960
|
};
|
|
1057
1961
|
/** @returns {BagReasons} */
|
|
1058
1962
|
declare function BagReasons(): BagReasons;
|
|
1059
1963
|
type BagReasons = {
|
|
1964
|
+
/**
|
|
1965
|
+
* - A list of quality check types.
|
|
1966
|
+
*/
|
|
1060
1967
|
qc_type?: string[];
|
|
1968
|
+
/**
|
|
1969
|
+
* - The unique identifier.
|
|
1970
|
+
*/
|
|
1061
1971
|
id?: number;
|
|
1972
|
+
/**
|
|
1973
|
+
* - The text displayed.
|
|
1974
|
+
*/
|
|
1062
1975
|
display_name?: string;
|
|
1063
1976
|
meta?: BagReasonMeta;
|
|
1977
|
+
/**
|
|
1978
|
+
* - A list of questions for delivery partner.
|
|
1979
|
+
*/
|
|
1064
1980
|
question_set?: QuestionSet[];
|
|
1981
|
+
/**
|
|
1982
|
+
* - A list of reasons.
|
|
1983
|
+
*/
|
|
1065
1984
|
reasons?: BagReasons[];
|
|
1066
1985
|
};
|
|
1067
1986
|
/** @returns {ShipmentBagReasons} */
|
|
1068
1987
|
declare function ShipmentBagReasons(): ShipmentBagReasons;
|
|
1069
1988
|
type ShipmentBagReasons = {
|
|
1989
|
+
/**
|
|
1990
|
+
* - A list of shipment's bag reasons.
|
|
1991
|
+
*/
|
|
1070
1992
|
reasons?: BagReasons[];
|
|
1993
|
+
/**
|
|
1994
|
+
* - Indicates if the operation was successful.
|
|
1995
|
+
*/
|
|
1071
1996
|
success?: boolean;
|
|
1072
1997
|
};
|
|
1073
1998
|
/** @returns {ShipmentReason} */
|
|
1074
1999
|
declare function ShipmentReason(): ShipmentReason;
|
|
1075
2000
|
type ShipmentReason = {
|
|
2001
|
+
/**
|
|
2002
|
+
* - The priority level of the reason.
|
|
2003
|
+
*/
|
|
1076
2004
|
priority?: number;
|
|
2005
|
+
/**
|
|
2006
|
+
* - A flag indicating whether to show a
|
|
2007
|
+
* textbox on the frontend.
|
|
2008
|
+
*/
|
|
1077
2009
|
show_text_area?: boolean;
|
|
2010
|
+
/**
|
|
2011
|
+
* - The unique identifier for the reason.
|
|
2012
|
+
*/
|
|
1078
2013
|
reason_id?: number;
|
|
2014
|
+
/**
|
|
2015
|
+
* - The type of feedback.
|
|
2016
|
+
*/
|
|
1079
2017
|
feedback_type?: string;
|
|
2018
|
+
/**
|
|
2019
|
+
* - The text describing the reason.
|
|
2020
|
+
*/
|
|
1080
2021
|
reason_text?: string;
|
|
2022
|
+
/**
|
|
2023
|
+
* - The process flow related to the reason.
|
|
2024
|
+
*/
|
|
1081
2025
|
flow?: string;
|
|
1082
2026
|
};
|
|
1083
2027
|
/** @returns {ShipmentReasons} */
|
|
1084
2028
|
declare function ShipmentReasons(): ShipmentReasons;
|
|
1085
2029
|
type ShipmentReasons = {
|
|
2030
|
+
/**
|
|
2031
|
+
* - A list of shipment reasons.
|
|
2032
|
+
*/
|
|
1086
2033
|
reasons?: ShipmentReason[];
|
|
1087
2034
|
};
|
|
1088
2035
|
/** @returns {ProductsReasonsData} */
|
|
1089
2036
|
declare function ProductsReasonsData(): ProductsReasonsData;
|
|
1090
2037
|
type ProductsReasonsData = {
|
|
2038
|
+
/**
|
|
2039
|
+
* - The unique identifier for the reason.
|
|
2040
|
+
*/
|
|
1091
2041
|
reason_id?: number;
|
|
2042
|
+
/**
|
|
2043
|
+
* - The text describing the reason.
|
|
2044
|
+
*/
|
|
1092
2045
|
reason_text?: string;
|
|
1093
2046
|
};
|
|
1094
2047
|
/** @returns {ProductsReasonsFilters} */
|
|
1095
2048
|
declare function ProductsReasonsFilters(): ProductsReasonsFilters;
|
|
1096
2049
|
type ProductsReasonsFilters = {
|
|
2050
|
+
/**
|
|
2051
|
+
* - The specific line item of bag.
|
|
2052
|
+
*/
|
|
1097
2053
|
line_number?: number;
|
|
2054
|
+
/**
|
|
2055
|
+
* - The quantity of the product.
|
|
2056
|
+
*/
|
|
1098
2057
|
quantity?: number;
|
|
2058
|
+
/**
|
|
2059
|
+
* - The unique identifier for the product.
|
|
2060
|
+
*/
|
|
1099
2061
|
identifier?: string;
|
|
1100
2062
|
};
|
|
1101
2063
|
/** @returns {ProductsReasons} */
|
|
1102
2064
|
declare function ProductsReasons(): ProductsReasons;
|
|
1103
2065
|
type ProductsReasons = {
|
|
1104
2066
|
data?: ProductsReasonsData;
|
|
2067
|
+
/**
|
|
2068
|
+
* - Criteria applied to filter
|
|
2069
|
+
* the products.
|
|
2070
|
+
*/
|
|
1105
2071
|
filters?: ProductsReasonsFilters[];
|
|
1106
2072
|
};
|
|
1107
2073
|
/** @returns {EntityReasonData} */
|
|
1108
2074
|
declare function EntityReasonData(): EntityReasonData;
|
|
1109
2075
|
type EntityReasonData = {
|
|
2076
|
+
/**
|
|
2077
|
+
* - The unique identifier for the reason.
|
|
2078
|
+
*/
|
|
1110
2079
|
reason_id?: number;
|
|
2080
|
+
/**
|
|
2081
|
+
* - The text describing the reason.
|
|
2082
|
+
*/
|
|
1111
2083
|
reason_text?: string;
|
|
1112
2084
|
};
|
|
1113
2085
|
/** @returns {EntitiesReasons} */
|
|
1114
2086
|
declare function EntitiesReasons(): EntitiesReasons;
|
|
1115
2087
|
type EntitiesReasons = {
|
|
1116
2088
|
data?: EntityReasonData;
|
|
2089
|
+
/**
|
|
2090
|
+
* - Criteria applied to filter the shipment.
|
|
2091
|
+
*/
|
|
1117
2092
|
filters?: any[];
|
|
1118
2093
|
};
|
|
1119
2094
|
/** @returns {ReasonsData} */
|
|
1120
2095
|
declare function ReasonsData(): ReasonsData;
|
|
1121
2096
|
type ReasonsData = {
|
|
2097
|
+
/**
|
|
2098
|
+
* - Reasons data for bags.
|
|
2099
|
+
*/
|
|
1122
2100
|
products?: ProductsReasons[];
|
|
2101
|
+
/**
|
|
2102
|
+
* - Reasons data for shipments.
|
|
2103
|
+
*/
|
|
1123
2104
|
entities?: EntitiesReasons[];
|
|
1124
2105
|
};
|
|
1125
2106
|
/** @returns {Products} */
|
|
1126
2107
|
declare function Products(): Products;
|
|
1127
2108
|
type Products = {
|
|
2109
|
+
/**
|
|
2110
|
+
* - The specific line item of bag.
|
|
2111
|
+
*/
|
|
1128
2112
|
line_number?: number;
|
|
2113
|
+
/**
|
|
2114
|
+
* - The quantity of the product.
|
|
2115
|
+
*/
|
|
1129
2116
|
quantity?: number;
|
|
2117
|
+
/**
|
|
2118
|
+
* - The unique identifier for the product.
|
|
2119
|
+
*/
|
|
1130
2120
|
identifier?: string;
|
|
1131
2121
|
};
|
|
1132
2122
|
/** @returns {ProductsDataUpdatesFilters} */
|
|
1133
2123
|
declare function ProductsDataUpdatesFilters(): ProductsDataUpdatesFilters;
|
|
1134
2124
|
type ProductsDataUpdatesFilters = {
|
|
2125
|
+
/**
|
|
2126
|
+
* - The specific line item of bag.
|
|
2127
|
+
*/
|
|
1135
2128
|
line_number?: number;
|
|
2129
|
+
/**
|
|
2130
|
+
* - The quantity of the product.
|
|
2131
|
+
*/
|
|
1136
2132
|
identifier?: string;
|
|
1137
2133
|
};
|
|
1138
2134
|
/** @returns {ProductsDataUpdates} */
|
|
1139
2135
|
declare function ProductsDataUpdates(): ProductsDataUpdates;
|
|
1140
2136
|
type ProductsDataUpdates = {
|
|
2137
|
+
/**
|
|
2138
|
+
* - Information about the data to be updated.
|
|
2139
|
+
*/
|
|
1141
2140
|
data?: any;
|
|
2141
|
+
/**
|
|
2142
|
+
* - Criteria applied to
|
|
2143
|
+
* filter the products.
|
|
2144
|
+
*/
|
|
1142
2145
|
filters?: ProductsDataUpdatesFilters[];
|
|
1143
2146
|
};
|
|
1144
2147
|
/** @returns {EntitiesDataUpdates} */
|
|
1145
2148
|
declare function EntitiesDataUpdates(): EntitiesDataUpdates;
|
|
1146
2149
|
type EntitiesDataUpdates = {
|
|
2150
|
+
/**
|
|
2151
|
+
* - Information about the data to be updated.
|
|
2152
|
+
*/
|
|
1147
2153
|
data?: any;
|
|
2154
|
+
/**
|
|
2155
|
+
* - Criteria applied to filter the shipments.
|
|
2156
|
+
*/
|
|
1148
2157
|
filters?: any[];
|
|
1149
2158
|
};
|
|
1150
2159
|
/** @returns {DataUpdates} */
|
|
1151
2160
|
declare function DataUpdates(): DataUpdates;
|
|
1152
2161
|
type DataUpdates = {
|
|
2162
|
+
/**
|
|
2163
|
+
* - Data updates for bags.
|
|
2164
|
+
*/
|
|
1153
2165
|
products?: ProductsDataUpdates[];
|
|
2166
|
+
/**
|
|
2167
|
+
* - Data updates for shipments.
|
|
2168
|
+
*/
|
|
1154
2169
|
entities?: EntitiesDataUpdates[];
|
|
1155
2170
|
};
|
|
1156
2171
|
/** @returns {ShipmentsRequest} */
|
|
1157
2172
|
declare function ShipmentsRequest(): ShipmentsRequest;
|
|
1158
2173
|
type ShipmentsRequest = {
|
|
1159
2174
|
reasons?: ReasonsData;
|
|
2175
|
+
/**
|
|
2176
|
+
* - Specific bag to be updated.
|
|
2177
|
+
*/
|
|
1160
2178
|
products?: Products[];
|
|
1161
2179
|
data_updates?: DataUpdates;
|
|
2180
|
+
/**
|
|
2181
|
+
* - The unique identifier for request which is
|
|
2182
|
+
* the shipment_id.
|
|
2183
|
+
*/
|
|
1162
2184
|
identifier: string;
|
|
1163
2185
|
};
|
|
1164
2186
|
/** @returns {StatuesRequest} */
|
|
1165
2187
|
declare function StatuesRequest(): StatuesRequest;
|
|
1166
2188
|
type StatuesRequest = {
|
|
2189
|
+
/**
|
|
2190
|
+
* - A list containing information
|
|
2191
|
+
* about shipments.
|
|
2192
|
+
*/
|
|
1167
2193
|
shipments?: ShipmentsRequest[];
|
|
2194
|
+
/**
|
|
2195
|
+
* - State to be change for
|
|
2196
|
+
* Remaining Bag/Products.
|
|
2197
|
+
*/
|
|
1168
2198
|
exclude_bags_next_state?: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* - The status to which the entity is to be transitioned.
|
|
2201
|
+
*/
|
|
1169
2202
|
status?: string;
|
|
1170
2203
|
};
|
|
1171
2204
|
/** @returns {OrderRequest} */
|
|
1172
2205
|
declare function OrderRequest(): OrderRequest;
|
|
1173
2206
|
type OrderRequest = {
|
|
2207
|
+
/**
|
|
2208
|
+
* - Metadata for the order.
|
|
2209
|
+
*/
|
|
1174
2210
|
meta?: any;
|
|
1175
2211
|
};
|
|
1176
2212
|
/** @returns {UpdateShipmentStatusRequest} */
|
|
1177
2213
|
declare function UpdateShipmentStatusRequest(): UpdateShipmentStatusRequest;
|
|
1178
2214
|
type UpdateShipmentStatusRequest = {
|
|
2215
|
+
/**
|
|
2216
|
+
* - An array containing different status details.
|
|
2217
|
+
*/
|
|
1179
2218
|
statuses?: StatuesRequest[];
|
|
2219
|
+
/**
|
|
2220
|
+
* - Indicates whether the task is active or required.
|
|
2221
|
+
*/
|
|
1180
2222
|
task?: boolean;
|
|
2223
|
+
/**
|
|
2224
|
+
* - Indicates whether the status
|
|
2225
|
+
* should be locked after the transition.
|
|
2226
|
+
*/
|
|
1181
2227
|
lock_after_transition?: boolean;
|
|
2228
|
+
/**
|
|
2229
|
+
* - Indicates whether the transition
|
|
2230
|
+
* should be forced.
|
|
2231
|
+
*/
|
|
1182
2232
|
force_transition?: boolean;
|
|
2233
|
+
/**
|
|
2234
|
+
* - Indicates whether the status
|
|
2235
|
+
* should be unlocked before the transition.
|
|
2236
|
+
*/
|
|
1183
2237
|
unlock_before_transition?: boolean;
|
|
1184
2238
|
};
|
|
1185
2239
|
/** @returns {StatusesBodyResponse} */
|
|
1186
2240
|
declare function StatusesBodyResponse(): StatusesBodyResponse;
|
|
1187
2241
|
type StatusesBodyResponse = {
|
|
2242
|
+
/**
|
|
2243
|
+
* - List of shipments.
|
|
2244
|
+
*/
|
|
1188
2245
|
shipments?: any[];
|
|
1189
2246
|
};
|
|
1190
2247
|
/** @returns {ShipmentApplicationStatusResponse} */
|
|
1191
2248
|
declare function ShipmentApplicationStatusResponse(): ShipmentApplicationStatusResponse;
|
|
1192
2249
|
type ShipmentApplicationStatusResponse = {
|
|
2250
|
+
/**
|
|
2251
|
+
* - An array containing different
|
|
2252
|
+
* status options of shipments.
|
|
2253
|
+
*/
|
|
1193
2254
|
statuses?: StatusesBodyResponse[];
|
|
1194
2255
|
};
|
|
1195
2256
|
/** @returns {ErrorResponse} */
|
|
1196
2257
|
declare function ErrorResponse(): ErrorResponse;
|
|
1197
2258
|
type ErrorResponse = {
|
|
2259
|
+
/**
|
|
2260
|
+
* - The HTTP status code of the response.
|
|
2261
|
+
*/
|
|
1198
2262
|
code?: string;
|
|
2263
|
+
/**
|
|
2264
|
+
* - A message providing details about the response.
|
|
2265
|
+
*/
|
|
1199
2266
|
message?: string;
|
|
2267
|
+
/**
|
|
2268
|
+
* - An additional code providing more context about
|
|
2269
|
+
* the response.
|
|
2270
|
+
*/
|
|
1200
2271
|
status?: number;
|
|
2272
|
+
/**
|
|
2273
|
+
* - Details of any exception that occurred.
|
|
2274
|
+
*/
|
|
1201
2275
|
exception?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* - The stack trace of any exception that occurred.
|
|
2278
|
+
*/
|
|
1202
2279
|
stack_trace?: string;
|
|
1203
2280
|
};
|