@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9
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 +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- 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 +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- 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 +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- 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 +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
- package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- 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 +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -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 +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- 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 +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -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/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- 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 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
- package/sdk/public/Billing/BillingPublicClient.js +0 -269
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
- package/sdk/public/Billing/BillingPublicModel.js +0 -395
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
- package/sdk/public/Billing/BillingPublicValidator.js +0 -38
- 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
|
@@ -2,40 +2,50 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef OrderPage
|
|
5
|
-
* @property {string} [type]
|
|
6
|
-
*
|
|
7
|
-
* @property {number} [
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* @property {string} [type] - Specifies type of pagination. If it is 'cursor'
|
|
6
|
+
* based or 'number' based.
|
|
7
|
+
* @property {number} [item_total] - Total number of items available across all
|
|
8
|
+
* pages. It provides a count of all the items that match the query criteria,
|
|
9
|
+
* regardless of pagination.
|
|
10
|
+
* @property {number} [current] - Specifies the current page number. It helps in
|
|
11
|
+
* identifying the position within the paginated results.
|
|
12
|
+
* @property {number} [size] - Represents the number of items on the current
|
|
13
|
+
* page. It indicates how many items are included in each page of the
|
|
14
|
+
* paginated response.
|
|
15
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page
|
|
16
|
+
* available. It is true if a next page exists and false if the current page
|
|
17
|
+
* is the last one.
|
|
10
18
|
*/
|
|
11
19
|
|
|
12
20
|
/**
|
|
13
21
|
* @typedef UserInfo
|
|
14
|
-
* @property {string} [first_name]
|
|
15
|
-
* @property {string} [gender]
|
|
16
|
-
* @property {string} [name]
|
|
17
|
-
* @property {string} [last_name]
|
|
18
|
-
* @property {string} [mobile]
|
|
19
|
-
* @property {string} [email]
|
|
22
|
+
* @property {string} [first_name] - First name of the user.
|
|
23
|
+
* @property {string} [gender] - Gender of the user.
|
|
24
|
+
* @property {string} [name] - Full name of the user (including first and last names).
|
|
25
|
+
* @property {string} [last_name] - Last name of the user.
|
|
26
|
+
* @property {string} [mobile] - Mobile number of the user.
|
|
27
|
+
* @property {string} [email] - Email address of the user.
|
|
20
28
|
*/
|
|
21
29
|
|
|
22
30
|
/**
|
|
23
31
|
* @typedef BreakupValues
|
|
24
|
-
* @property {number} [value]
|
|
25
|
-
* @property {string} [currency_symbol]
|
|
26
|
-
*
|
|
27
|
-
* @property {string} [
|
|
28
|
-
* @property {string} [
|
|
32
|
+
* @property {number} [value] - The numerical value associated with the entity.
|
|
33
|
+
* @property {string} [currency_symbol] - Symbol representing the currency used
|
|
34
|
+
* for the value.
|
|
35
|
+
* @property {string} [name] - The official name of the entity.
|
|
36
|
+
* @property {string} [display] - The name of the entity as it should be displayed.
|
|
37
|
+
* @property {string} [currency_code] - The international currency code
|
|
38
|
+
* representing the currency used for the value.
|
|
29
39
|
*/
|
|
30
40
|
|
|
31
41
|
/**
|
|
32
42
|
* @typedef ShipmentPayment
|
|
33
|
-
* @property {string} [mop]
|
|
34
|
-
* @property {string} [payment_mode]
|
|
35
|
-
* @property {string} [status]
|
|
36
|
-
* @property {string} [mode]
|
|
37
|
-
* @property {string} [logo]
|
|
38
|
-
* @property {string} [display_name]
|
|
43
|
+
* @property {string} [mop] - Abbreviation or code for the payment mode.
|
|
44
|
+
* @property {string} [payment_mode] - The specific payment mode used.
|
|
45
|
+
* @property {string} [status] - The current status of the payment.
|
|
46
|
+
* @property {string} [mode] - The payment mode.
|
|
47
|
+
* @property {string} [logo] - URL of the logo representing the payment mode.
|
|
48
|
+
* @property {string} [display_name] - The name to be displayed for the payment mode.
|
|
39
49
|
*/
|
|
40
50
|
|
|
41
51
|
/**
|
|
@@ -43,361 +53,411 @@ const Joi = require("joi");
|
|
|
43
53
|
* @property {string} [mop] - Stands for "Mode of Payment". This is a short code
|
|
44
54
|
* (like "COD" for Cash On Delivery) that represents the payment method used.
|
|
45
55
|
* @property {string} [payment_mode] - Information about the payment mode,
|
|
46
|
-
* indicates whether COD or PREPAID
|
|
56
|
+
* indicates whether COD or PREPAID.
|
|
47
57
|
* @property {string} [status] - Indicates the current status of the payment,
|
|
48
|
-
* Paid or Unpaid
|
|
49
|
-
* @property {string} [mode] - Information about the payment source. For eg, NB_ICICI
|
|
50
|
-
* @property {string} [logo] - A URL to an image representing the payment method
|
|
58
|
+
* Paid or Unpaid.
|
|
59
|
+
* @property {string} [mode] - Information about the payment source. For eg, NB_ICICI.
|
|
60
|
+
* @property {string} [logo] - A URL to an image representing the payment method.
|
|
51
61
|
* @property {string} [display_name] - The name of the payment method as it
|
|
52
|
-
* should be displayed to the user
|
|
53
|
-
* @property {number} [amount] - Amount paid using this payment method
|
|
62
|
+
* should be displayed to the user.
|
|
63
|
+
* @property {number} [amount] - Amount paid using this payment method.
|
|
54
64
|
*/
|
|
55
65
|
|
|
56
66
|
/**
|
|
57
67
|
* @typedef ShipmentUserInfo
|
|
58
|
-
* @property {string} [first_name]
|
|
59
|
-
* @property {string} [gender]
|
|
60
|
-
* @property {string} [name]
|
|
61
|
-
* @property {string} [last_name]
|
|
62
|
-
* @property {string} [mobile]
|
|
63
|
-
* @property {string} [email]
|
|
68
|
+
* @property {string} [first_name] - The unique identifier of the store.
|
|
69
|
+
* @property {string} [gender] - A code associated with the store.
|
|
70
|
+
* @property {string} [name] - The name of the store.
|
|
71
|
+
* @property {string} [last_name] - The name of the company associated with the store.
|
|
72
|
+
* @property {string} [mobile] - The identifier of the company associated with the store.
|
|
73
|
+
* @property {string} [email] - Email address of the user.
|
|
64
74
|
*/
|
|
65
75
|
|
|
66
76
|
/**
|
|
67
77
|
* @typedef FulfillingStore
|
|
68
|
-
* @property {number} [id]
|
|
69
|
-
* @property {string} [code]
|
|
70
|
-
* @property {string} [name]
|
|
71
|
-
* @property {string} [company_name]
|
|
72
|
-
* @property {number} [company_id]
|
|
78
|
+
* @property {number} [id] - The unique identifier of the store.
|
|
79
|
+
* @property {string} [code] - A code associated with the store.
|
|
80
|
+
* @property {string} [name] - The name of the store.
|
|
81
|
+
* @property {string} [company_name] - The name of the company associated with the store.
|
|
82
|
+
* @property {number} [company_id] - The identifier of the company associated
|
|
83
|
+
* with the store.
|
|
73
84
|
*/
|
|
74
85
|
|
|
75
86
|
/**
|
|
76
87
|
* @typedef ShipmentStatus
|
|
77
|
-
* @property {string} [value]
|
|
78
|
-
*
|
|
79
|
-
* @property {string} [
|
|
88
|
+
* @property {string} [value] - The internal or code value representing the
|
|
89
|
+
* shipment status.
|
|
90
|
+
* @property {string} [title] - The title or display name representing the
|
|
91
|
+
* shipment status.
|
|
92
|
+
* @property {string} [hex_code] - The hexadecimal color code associated with
|
|
93
|
+
* the shipment status.
|
|
80
94
|
*/
|
|
81
95
|
|
|
82
96
|
/**
|
|
83
97
|
* @typedef Invoice
|
|
84
|
-
* @property {string} [invoice_url]
|
|
85
|
-
* @property {string} [updated_date]
|
|
86
|
-
*
|
|
98
|
+
* @property {string} [invoice_url] - URL providing access to the invoice.
|
|
99
|
+
* @property {string} [updated_date] - The date and time when the invoice was
|
|
100
|
+
* last updated.
|
|
101
|
+
* @property {string} [label_url] - URL providing access to the invoice label.
|
|
87
102
|
*/
|
|
88
103
|
|
|
89
104
|
/**
|
|
90
105
|
* @typedef NestedTrackingDetails
|
|
91
|
-
* @property {boolean} [is_passed]
|
|
92
|
-
*
|
|
93
|
-
* @property {
|
|
94
|
-
* @property {
|
|
106
|
+
* @property {boolean} [is_passed] - Indicates whether the tracking event has
|
|
107
|
+
* passed or occurred.
|
|
108
|
+
* @property {string} [time] - The time associated with the tracking event.
|
|
109
|
+
* @property {boolean} [is_current] - Indicates whether the tracking event is
|
|
110
|
+
* the current or active status.
|
|
111
|
+
* @property {string} [status] - The status of the tracking event.
|
|
95
112
|
*/
|
|
96
113
|
|
|
97
114
|
/**
|
|
98
115
|
* @typedef TrackingDetails
|
|
99
|
-
* @property {string} [value]
|
|
100
|
-
* @property {boolean} [is_current]
|
|
101
|
-
*
|
|
102
|
-
* @property {
|
|
103
|
-
*
|
|
104
|
-
* @property {string} [
|
|
105
|
-
* @property {
|
|
116
|
+
* @property {string} [value] - Current value or state of the process.
|
|
117
|
+
* @property {boolean} [is_current] - Indicates whether the tracking event is
|
|
118
|
+
* the current or active status.
|
|
119
|
+
* @property {boolean} [is_passed] - Indicates whether the tracking event has
|
|
120
|
+
* passed or occurred.
|
|
121
|
+
* @property {string} [status] - The status of the tracking event.
|
|
122
|
+
* @property {string} [time] - The time associated with the tracking event.
|
|
123
|
+
* @property {string} [created_ts] - Timestamp when this status was created.
|
|
124
|
+
* @property {NestedTrackingDetails[]} [tracking_details] - Nested tracking details.
|
|
106
125
|
*/
|
|
107
126
|
|
|
108
127
|
/**
|
|
109
128
|
* @typedef TimeStampData
|
|
110
|
-
* @property {string} [min]
|
|
111
|
-
* @property {string} [max]
|
|
129
|
+
* @property {string} [min] - The minimum timestamp value.
|
|
130
|
+
* @property {string} [max] - The maximum timestamp value.
|
|
112
131
|
*/
|
|
113
132
|
|
|
114
133
|
/**
|
|
115
134
|
* @typedef Promise
|
|
116
|
-
* @property {boolean} [show_promise]
|
|
135
|
+
* @property {boolean} [show_promise] - Indicates whether the promise details
|
|
136
|
+
* should be shown.
|
|
117
137
|
* @property {TimeStampData} [timestamp]
|
|
118
138
|
*/
|
|
119
139
|
|
|
120
140
|
/**
|
|
121
141
|
* @typedef ShipmentTotalDetails
|
|
122
|
-
* @property {number} [pieces]
|
|
123
|
-
* @property {number} [total_price]
|
|
124
|
-
* @property {number} [sizes]
|
|
142
|
+
* @property {number} [pieces] - The total number of pieces included.
|
|
143
|
+
* @property {number} [total_price] - The total price of the order or item.
|
|
144
|
+
* @property {number} [sizes] - The number of different sizes included.
|
|
125
145
|
*/
|
|
126
146
|
|
|
127
147
|
/**
|
|
128
148
|
* @typedef Prices
|
|
129
|
-
* @property {number} [delivery_charge]
|
|
130
|
-
* @property {number} [coupon_value]
|
|
131
|
-
* @property {number} [brand_calculated_amount]
|
|
132
|
-
* @property {number} [value_of_good]
|
|
133
|
-
*
|
|
134
|
-
* @property {number} [
|
|
135
|
-
* @property {
|
|
136
|
-
* @property {
|
|
137
|
-
* @property {number} [
|
|
138
|
-
* @property {number} [
|
|
139
|
-
* @property {number} [
|
|
140
|
-
* @property {
|
|
141
|
-
* @property {
|
|
142
|
-
*
|
|
143
|
-
* @property {number} [
|
|
144
|
-
* @property {number} [cashback
|
|
145
|
-
* @property {number} [
|
|
146
|
-
* @property {number} [
|
|
147
|
-
* @property {number} [
|
|
148
|
-
* @property {number} [
|
|
149
|
-
*
|
|
150
|
-
* @property {number} [
|
|
151
|
-
*
|
|
149
|
+
* @property {number} [delivery_charge] - The delivery charge for the order.
|
|
150
|
+
* @property {number} [coupon_value] - The value of the coupon applied.
|
|
151
|
+
* @property {number} [brand_calculated_amount] - The amount calculated by the brand.
|
|
152
|
+
* @property {number} [value_of_good] - The value of the goods before tax and
|
|
153
|
+
* other charges.
|
|
154
|
+
* @property {number} [price_marked] - The original marked price of the item.
|
|
155
|
+
* @property {number} [coupon_effective_discount] - The effective discount from coupons.
|
|
156
|
+
* @property {string} [currency_symbol] - The symbol of the currency used.
|
|
157
|
+
* @property {number} [discount] - The discount applied to the item.
|
|
158
|
+
* @property {number} [gst_tax_percentage] - The GST tax percentage applied.
|
|
159
|
+
* @property {number} [cod_charges] - The cash on delivery charges, if applicable.
|
|
160
|
+
* @property {number} [amount_paid] - The total amount paid by the customer.
|
|
161
|
+
* @property {boolean} [added_to_fynd_cash] - Indicates if the refund amount was
|
|
162
|
+
* added to Fynd Cash.
|
|
163
|
+
* @property {number} [transfer_price] - The transfer price of the item.
|
|
164
|
+
* @property {number} [cashback_applied] - The amount of cashback applied.
|
|
165
|
+
* @property {number} [price_effective] - The effective price after all adjustments.
|
|
166
|
+
* @property {number} [cashback] - The cashback amount earned.
|
|
167
|
+
* @property {number} [refund_credit] - The amount credited for refund .
|
|
168
|
+
* @property {number} [amount_paid_roundoff] - The rounded-off amount paid by
|
|
169
|
+
* the customer.
|
|
170
|
+
* @property {number} [promotion_effective_discount] - The effective discount
|
|
171
|
+
* from promotions.
|
|
172
|
+
* @property {number} [refund_amount] - The amount refunded to the customer.
|
|
173
|
+
* @property {string} [currency_code] - The code of the currency used.
|
|
174
|
+
* @property {number} [fynd_credits] - The amount of Fynd credits used.
|
|
175
|
+
* @property {number} [amount_to_be_collected] - The total amount that needs to
|
|
176
|
+
* be collected from the customer.
|
|
152
177
|
*/
|
|
153
178
|
|
|
154
179
|
/**
|
|
155
180
|
* @typedef ItemBrand
|
|
156
|
-
* @property {string} [logo]
|
|
157
|
-
* @property {string} [name]
|
|
181
|
+
* @property {string} [logo] - The URL of the brand's logo.
|
|
182
|
+
* @property {string} [name] - The name of the brand.
|
|
158
183
|
*/
|
|
159
184
|
|
|
160
185
|
/**
|
|
161
186
|
* @typedef Item
|
|
162
|
-
* @property {string[]} [image]
|
|
163
|
-
* @property {string[]} [l1_categories]
|
|
187
|
+
* @property {string[]} [image] - An array of URLs pointing to images of the item.
|
|
188
|
+
* @property {string[]} [l1_categories] - An array of level 1 categories the item belongs.
|
|
164
189
|
* @property {ItemBrand} [brand]
|
|
165
|
-
* @property {string} [seller_identifier]
|
|
166
|
-
* @property {string} [code]
|
|
167
|
-
* @property {number} [id]
|
|
168
|
-
* @property {string} [name]
|
|
169
|
-
* @property {string} [l3_category_name]
|
|
170
|
-
* @property {string} [slug_key]
|
|
171
|
-
* @property {string[]} [l2_categories]
|
|
172
|
-
*
|
|
173
|
-
* @property {
|
|
190
|
+
* @property {string} [seller_identifier] - The identifier for the seller .
|
|
191
|
+
* @property {string} [code] - The code or SKU of the item.
|
|
192
|
+
* @property {number} [id] - The unique identifier of the item.
|
|
193
|
+
* @property {string} [name] - The name of the item.
|
|
194
|
+
* @property {string} [l3_category_name] - The level 3 category name.
|
|
195
|
+
* @property {string} [slug_key] - A unique key or identifier for the item slug.
|
|
196
|
+
* @property {string[]} [l2_categories] - An array of level 2 categories the
|
|
197
|
+
* item belongs to.
|
|
198
|
+
* @property {string} [size] - The size of the item.
|
|
199
|
+
* @property {Object} [attributes] - An object containing various attributes of the item.
|
|
174
200
|
*/
|
|
175
201
|
|
|
176
202
|
/**
|
|
177
203
|
* @typedef AppliedFreeArticles
|
|
178
|
-
* @property {string} [article_id]
|
|
179
|
-
* @property {Object} [free_gift_item_details]
|
|
180
|
-
*
|
|
181
|
-
* @property {
|
|
204
|
+
* @property {string} [article_id] - The unique identifier for the article.
|
|
205
|
+
* @property {Object} [free_gift_item_details] - An object containing details
|
|
206
|
+
* about the free gift item.
|
|
207
|
+
* @property {string} [parent_item_identifier] - The identifier for the parent
|
|
208
|
+
* item to which this free article is related.
|
|
209
|
+
* @property {number} [quantity] - The quantity of the free article.
|
|
182
210
|
*/
|
|
183
211
|
|
|
184
212
|
/**
|
|
185
213
|
* @typedef AppliedPromos
|
|
186
|
-
* @property {boolean} [mrp_promotion]
|
|
187
|
-
* @property {string} [promotion_name]
|
|
188
|
-
* @property {number} [article_quantity]
|
|
189
|
-
*
|
|
190
|
-
* @property {
|
|
191
|
-
* @property {
|
|
192
|
-
* @property {
|
|
214
|
+
* @property {boolean} [mrp_promotion] - Indicates if the promotion is applied to the MRP.
|
|
215
|
+
* @property {string} [promotion_name] - The name of the promotion .
|
|
216
|
+
* @property {number} [article_quantity] - The quantity of articles required to
|
|
217
|
+
* qualify for the promotion.
|
|
218
|
+
* @property {string} [promo_id] - The unique identifier for the promotion.
|
|
219
|
+
* @property {number} [amount] - The discount amount provided by the promotion.
|
|
220
|
+
* @property {string} [promotion_type] - The type of promotion.
|
|
221
|
+
* @property {AppliedFreeArticles[]} [applied_free_articles] - An array
|
|
222
|
+
* containing details of free articles applied under the promotion.
|
|
193
223
|
*/
|
|
194
224
|
|
|
195
225
|
/**
|
|
196
226
|
* @typedef Identifiers
|
|
197
|
-
* @property {string} [ean]
|
|
198
|
-
* @property {string} [sku_code]
|
|
227
|
+
* @property {string} [ean] - The European Article Number (EAN) of the item.
|
|
228
|
+
* @property {string} [sku_code] - The Stock Keeping Unit (SKU) code of the item.
|
|
199
229
|
*/
|
|
200
230
|
|
|
201
231
|
/**
|
|
202
232
|
* @typedef FinancialBreakup
|
|
203
|
-
* @property {number} [coupon_value]
|
|
204
|
-
* @property {number} [delivery_charge]
|
|
205
|
-
* @property {number} [brand_calculated_amount]
|
|
206
|
-
* @property {number} [value_of_good]
|
|
207
|
-
*
|
|
208
|
-
* @property {number} [
|
|
209
|
-
* @property {
|
|
210
|
-
* @property {
|
|
211
|
-
*
|
|
212
|
-
* @property {number} [
|
|
213
|
-
* @property {number} [
|
|
214
|
-
* @property {
|
|
215
|
-
* @property {
|
|
216
|
-
* @property {
|
|
217
|
-
*
|
|
218
|
-
* @property {
|
|
219
|
-
* @property {number} [
|
|
220
|
-
* @property {number} [
|
|
221
|
-
* @property {number} [
|
|
222
|
-
* @property {number} [
|
|
233
|
+
* @property {number} [coupon_value] - The value of the coupon applied.
|
|
234
|
+
* @property {number} [delivery_charge] - The delivery charge for the order.
|
|
235
|
+
* @property {number} [brand_calculated_amount] - The amount calculated by the brand.
|
|
236
|
+
* @property {number} [value_of_good] - The value of the goods before tax and
|
|
237
|
+
* other charges.
|
|
238
|
+
* @property {number} [price_marked] - The original marked price of the item.
|
|
239
|
+
* @property {number} [coupon_effective_discount] - The effective discount from coupons.
|
|
240
|
+
* @property {string} [hsn_code] - The HSN (Harmonized System of Nomenclature)
|
|
241
|
+
* code of the item.
|
|
242
|
+
* @property {number} [discount] - The discount applied to the item.
|
|
243
|
+
* @property {number} [gst_tax_percentage] - The GST tax percentage applied .
|
|
244
|
+
* @property {number} [cod_charges] - The cash on delivery charges, if applicable.
|
|
245
|
+
* @property {number} [amount_paid] - The total amount paid by the customer.
|
|
246
|
+
* @property {boolean} [added_to_fynd_cash] - Indicates if the refund amount was
|
|
247
|
+
* added to Fynd Cash.
|
|
248
|
+
* @property {string} [size] - The size of the item .
|
|
249
|
+
* @property {number} [transfer_price] - The transfer price of the item.
|
|
250
|
+
* @property {number} [cashback_applied] - The amount of cashback applied.
|
|
251
|
+
* @property {number} [price_effective] - The effective price after all adjustments.
|
|
252
|
+
* @property {number} [cashback] - The cashback amount earned.
|
|
253
|
+
* @property {number} [refund_credit] - The amount credited for refund .
|
|
254
|
+
* @property {number} [amount_paid_roundoff] - The rounded-off amount paid by
|
|
255
|
+
* the customer.
|
|
256
|
+
* @property {number} [total_units] - The total number of units purchased.
|
|
223
257
|
* @property {Identifiers} [identifiers]
|
|
224
|
-
* @property {string} [gst_tag]
|
|
225
|
-
* @property {string} [item_name]
|
|
226
|
-
* @property {number} [promotion_effective_discount]
|
|
227
|
-
*
|
|
228
|
-
* @property {number} [
|
|
229
|
-
* @property {number} [
|
|
230
|
-
* @property {number} [
|
|
258
|
+
* @property {string} [gst_tag] - The GST tag indicating the type of GST applied.
|
|
259
|
+
* @property {string} [item_name] - The name of the item.
|
|
260
|
+
* @property {number} [promotion_effective_discount] - The effective discount
|
|
261
|
+
* from promotions.
|
|
262
|
+
* @property {number} [gst_fee] - The GST fee applied to the item.
|
|
263
|
+
* @property {number} [refund_amount] - The amount refunded to the customer.
|
|
264
|
+
* @property {number} [fynd_credits] - The amount of Fynd credits used.
|
|
265
|
+
* @property {number} [amount_to_be_collected] - The total amount that needs to
|
|
266
|
+
* be collected from the customer.
|
|
231
267
|
*/
|
|
232
268
|
|
|
233
269
|
/**
|
|
234
270
|
* @typedef CurrentStatus
|
|
235
|
-
* @property {string} [updated_at]
|
|
236
|
-
* @property {string} [name]
|
|
237
|
-
* @property {string} [status]
|
|
238
|
-
* @property {string} [journey_type]
|
|
271
|
+
* @property {string} [updated_at] - The date and time when the status was last updated.
|
|
272
|
+
* @property {string} [name] - The name or label indicating the current state or status.
|
|
273
|
+
* @property {string} [status] - The current status of the bag.
|
|
274
|
+
* @property {string} [journey_type] - The type of journey for the shipment,
|
|
275
|
+
* indicating the direction of the shipment.
|
|
239
276
|
*/
|
|
240
277
|
|
|
241
278
|
/**
|
|
242
279
|
* @typedef Bags
|
|
243
|
-
* @property {string} [delivery_date]
|
|
244
|
-
*
|
|
245
|
-
* @property {
|
|
280
|
+
* @property {string} [delivery_date] - The date and time when the item is
|
|
281
|
+
* expected to be delivered .
|
|
282
|
+
* @property {number} [line_number] - The line number of the item in the order.
|
|
283
|
+
* @property {string} [currency_symbol] - The symbol of the currency used.
|
|
246
284
|
* @property {Item} [item]
|
|
247
|
-
* @property {AppliedPromos[]} [applied_promos]
|
|
248
|
-
*
|
|
285
|
+
* @property {AppliedPromos[]} [applied_promos] - An array containing
|
|
286
|
+
* information about applied promotions.
|
|
287
|
+
* @property {number} [quantity] - The quantity of the item.
|
|
249
288
|
* @property {Prices} [prices]
|
|
250
|
-
* @property {boolean} [can_cancel]
|
|
251
|
-
* @property {boolean} [can_return]
|
|
252
|
-
* @property {number} [id]
|
|
253
|
-
* @property {string} [returnable_date]
|
|
254
|
-
*
|
|
255
|
-
* @property {
|
|
256
|
-
*
|
|
257
|
-
* @property {
|
|
258
|
-
*
|
|
289
|
+
* @property {boolean} [can_cancel] - Indicates if the item can be canceled.
|
|
290
|
+
* @property {boolean} [can_return] - Indicates if the item can be returned.
|
|
291
|
+
* @property {number} [id] - The unique identifier for the order item.
|
|
292
|
+
* @property {string} [returnable_date] - The last date and time by which the
|
|
293
|
+
* item can be returned.
|
|
294
|
+
* @property {FinancialBreakup[]} [financial_breakup] - An array containing
|
|
295
|
+
* financial details of the item.
|
|
296
|
+
* @property {Object} [parent_promo_bags] - An object containing details of
|
|
297
|
+
* parent promotional bags.
|
|
298
|
+
* @property {Object} [meta] - An object containing metadata for the item.
|
|
299
|
+
* @property {string} [currency_code] - The code of the currency used.
|
|
300
|
+
* @property {string} [seller_identifier] - The identifier for the seller.
|
|
259
301
|
* @property {CurrentStatus} [current_status]
|
|
260
302
|
* @property {Article} [article]
|
|
261
303
|
*/
|
|
262
304
|
|
|
263
305
|
/**
|
|
264
306
|
* @typedef FulfillingCompany
|
|
265
|
-
* @property {number} [id]
|
|
266
|
-
* @property {string} [name]
|
|
307
|
+
* @property {number} [id] - The unique identifier for the fulfilling company.
|
|
308
|
+
* @property {string} [name] - The name of the fulfilling company.
|
|
267
309
|
*/
|
|
268
310
|
|
|
269
311
|
/**
|
|
270
312
|
* @typedef Article
|
|
271
|
-
* @property {string[]} [tags]
|
|
313
|
+
* @property {string[]} [tags] - An array of tags associated with the article.
|
|
272
314
|
*/
|
|
273
315
|
|
|
274
316
|
/**
|
|
275
317
|
* @typedef Address
|
|
276
|
-
* @property {string} [pincode]
|
|
277
|
-
* @property {string} [phone]
|
|
278
|
-
*
|
|
279
|
-
* @property {
|
|
280
|
-
* @property {string} [
|
|
281
|
-
* @property {string} [
|
|
282
|
-
* @property {string} [
|
|
283
|
-
* @property {string} [address
|
|
284
|
-
* @property {string} [
|
|
285
|
-
* @property {
|
|
286
|
-
* @property {
|
|
287
|
-
* @property {string} [
|
|
288
|
-
* @property {string} [
|
|
289
|
-
* @property {string} [
|
|
290
|
-
* @property {string} [
|
|
291
|
-
* @property {string} [
|
|
292
|
-
*
|
|
293
|
-
* @property {string} [
|
|
294
|
-
* @property {string} [
|
|
295
|
-
* @property {string} [
|
|
296
|
-
* @property {string} [
|
|
297
|
-
* @property {string} [
|
|
298
|
-
* @property {string} [
|
|
318
|
+
* @property {string} [pincode] - The postal code of the address.
|
|
319
|
+
* @property {string} [phone] - The phone number of the person associated with
|
|
320
|
+
* the address.
|
|
321
|
+
* @property {number} [latitude] - The latitude coordinate.
|
|
322
|
+
* @property {string} [address2] - The secondary line of the address.
|
|
323
|
+
* @property {string} [landmark] - A nearby landmark.
|
|
324
|
+
* @property {string} [area] - The area or locality.
|
|
325
|
+
* @property {string} [city] - The city of the address.
|
|
326
|
+
* @property {string} [address] - The full address.
|
|
327
|
+
* @property {string} [address_type] - The type of address.
|
|
328
|
+
* @property {number} [longitude] - The longitude coordinate.
|
|
329
|
+
* @property {string} [country_iso_code] - The ISO code for the country.
|
|
330
|
+
* @property {string} [state] - The state of the address.
|
|
331
|
+
* @property {string} [created_at] - The date and time when the address was created.
|
|
332
|
+
* @property {string} [address1] - The primary line of the address.
|
|
333
|
+
* @property {string} [display_address] - The formatted display address,
|
|
334
|
+
* typically used for printing or displaying in user interfaces.
|
|
335
|
+
* @property {string} [name] - The name of the person associated with the address.
|
|
336
|
+
* @property {string} [contact_person] - The name of the contact person.
|
|
337
|
+
* @property {string} [address_category] - The category of the address.
|
|
338
|
+
* @property {string} [email] - The email address.
|
|
339
|
+
* @property {string} [country_phone_code] - The country phone code.
|
|
340
|
+
* @property {string} [version] - The version of the address format.
|
|
341
|
+
* @property {string} [updated_at] - The date and time when the address was last updated .
|
|
342
|
+
* @property {string} [country] - The country of the address.
|
|
299
343
|
*/
|
|
300
344
|
|
|
301
345
|
/**
|
|
302
346
|
* @typedef Shipments
|
|
303
347
|
* @property {ShipmentPayment} [payment]
|
|
304
|
-
* @property {ShipmentPaymentInfo[]} [payment_info] -
|
|
348
|
+
* @property {ShipmentPaymentInfo[]} [payment_info] - Array of objects
|
|
305
349
|
* containing payment methods used for placing an order. Each object will
|
|
306
|
-
* provide information about corresponding payment method with relevant details.
|
|
307
|
-
* @property {string} [order_type]
|
|
308
|
-
* @property {string} [gstin_code]
|
|
309
|
-
* @property {boolean} [show_download_invoice]
|
|
310
|
-
*
|
|
350
|
+
* provide information about corresponding payment method with relevant details.
|
|
351
|
+
* @property {string} [order_type] - The type of order.
|
|
352
|
+
* @property {string} [gstin_code] - The GSTIN code for the shipment.
|
|
353
|
+
* @property {boolean} [show_download_invoice] - Indicates if the download
|
|
354
|
+
* invoice option should be shown.
|
|
355
|
+
* @property {boolean} [can_cancel] - Indicates if the shipment can be canceled.
|
|
311
356
|
* @property {ShipmentUserInfo} [user_info]
|
|
312
|
-
* @property {string} [shipment_id]
|
|
357
|
+
* @property {string} [shipment_id] - The unique identifier for the shipment.
|
|
313
358
|
* @property {FulfillingStore} [fulfilling_store]
|
|
314
|
-
* @property {Object[]} [custom_meta]
|
|
359
|
+
* @property {Object[]} [custom_meta] - An object containing custom metadata for
|
|
360
|
+
* the shipment.
|
|
315
361
|
* @property {ShipmentStatus} [shipment_status]
|
|
316
|
-
* @property {string} [comment]
|
|
362
|
+
* @property {string} [comment] - Any comments related to the shipment.
|
|
317
363
|
* @property {Invoice} [invoice]
|
|
318
|
-
* @property {boolean} [show_track_link]
|
|
319
|
-
* @property {Object} [refund_details]
|
|
320
|
-
* @property {BreakupValues[]} [breakup_values]
|
|
321
|
-
*
|
|
322
|
-
* @property {
|
|
323
|
-
*
|
|
364
|
+
* @property {boolean} [show_track_link] - Indicates if the track link should be shown.
|
|
365
|
+
* @property {Object} [refund_details] - An object containing details of any refunds.
|
|
366
|
+
* @property {BreakupValues[]} [breakup_values] - An array containing the
|
|
367
|
+
* breakup of various charges and discounts.
|
|
368
|
+
* @property {Object} [can_break] - An object containing details about the
|
|
369
|
+
* breakability of the shipment.
|
|
370
|
+
* @property {string} [traking_no] - The tracking number for the shipment.
|
|
371
|
+
* @property {TrackingDetails[]} [tracking_details] - An array containing
|
|
372
|
+
* details of the tracking history of the shipment.
|
|
324
373
|
* @property {Promise} [promise]
|
|
325
|
-
* @property {number} [total_bags]
|
|
374
|
+
* @property {number} [total_bags] - The total number of bags in the shipment.
|
|
326
375
|
* @property {ShipmentTotalDetails} [total_details]
|
|
327
376
|
* @property {Prices} [prices]
|
|
328
|
-
* @property {string} [returnable_date]
|
|
329
|
-
* @property {string} [shipment_created_at]
|
|
330
|
-
*
|
|
331
|
-
* @property {
|
|
332
|
-
* @property {
|
|
333
|
-
*
|
|
334
|
-
* @property {
|
|
335
|
-
*
|
|
377
|
+
* @property {string} [returnable_date] - The last date by which the item can be returned.
|
|
378
|
+
* @property {string} [shipment_created_at] - The date and time when the
|
|
379
|
+
* shipment was created.
|
|
380
|
+
* @property {string} [shipment_created_ts] - The timestamp when the shipment was created.
|
|
381
|
+
* @property {Object} [size_info] - An object containing size information for
|
|
382
|
+
* the items in the shipment.
|
|
383
|
+
* @property {Bags[]} [bags] - An array containing details about the individual
|
|
384
|
+
* bags in the shipment.
|
|
385
|
+
* @property {string} [dp_name] - The name of the delivery partner.
|
|
386
|
+
* @property {string} [awb_no] - The airway bill number for the shipment.
|
|
387
|
+
* @property {boolean} [beneficiary_details] - Indicates if there are any
|
|
388
|
+
* beneficiary details.
|
|
336
389
|
* @property {FulfillingCompany} [fulfilling_company]
|
|
337
|
-
* @property {boolean} [can_return]
|
|
390
|
+
* @property {boolean} [can_return] - Indicates if the shipment can be returned.
|
|
338
391
|
* @property {Address} [delivery_address]
|
|
339
392
|
* @property {Address} [billing_address]
|
|
340
|
-
* @property {string} [track_url]
|
|
341
|
-
* @property {string} [order_id]
|
|
342
|
-
* @property {string} [need_help_url]
|
|
343
|
-
* @property {Object} [return_meta]
|
|
344
|
-
*
|
|
393
|
+
* @property {string} [track_url] - The URL for tracking the shipment.
|
|
394
|
+
* @property {string} [order_id] - The unique identifier for the order.
|
|
395
|
+
* @property {string} [need_help_url] - The URL for customer support or help.
|
|
396
|
+
* @property {Object} [return_meta] - An object containing metadata about the
|
|
397
|
+
* return process.
|
|
398
|
+
* @property {string} [delivery_date] - The expected delivery date.
|
|
345
399
|
* @property {OrderRequest} [order]
|
|
346
400
|
*/
|
|
347
401
|
|
|
348
402
|
/**
|
|
349
403
|
* @typedef BagsForReorderArticleAssignment
|
|
350
|
-
* @property {string} [strategy]
|
|
351
|
-
* @property {string} [level]
|
|
404
|
+
* @property {string} [strategy] - The strategy used for article assignment.
|
|
405
|
+
* @property {string} [level] - The level at which the article assignment is made.
|
|
352
406
|
*/
|
|
353
407
|
|
|
354
408
|
/**
|
|
355
409
|
* @typedef BagsForReorder
|
|
356
|
-
* @property {string} [item_size]
|
|
357
|
-
* @property {number} [quantity]
|
|
358
|
-
* @property {number} [store_id]
|
|
410
|
+
* @property {string} [item_size] - The size of the item.
|
|
411
|
+
* @property {number} [quantity] - The quantity of the item.
|
|
412
|
+
* @property {number} [store_id] - The identifier for the store.
|
|
359
413
|
* @property {BagsForReorderArticleAssignment} [article_assignment]
|
|
360
|
-
* @property {number} [seller_id]
|
|
361
|
-
* @property {number} [item_id]
|
|
414
|
+
* @property {number} [seller_id] - The identifier for the seller.
|
|
415
|
+
* @property {number} [item_id] - The unique identifier for the item.
|
|
362
416
|
*/
|
|
363
417
|
|
|
364
418
|
/**
|
|
365
419
|
* @typedef OrderSchema
|
|
366
|
-
* @property {number} [total_shipments_in_order]
|
|
367
|
-
*
|
|
420
|
+
* @property {number} [total_shipments_in_order] - The total number of shipments
|
|
421
|
+
* in the order.
|
|
422
|
+
* @property {string} [gstin_code] - The GSTIN code for the shipment.
|
|
368
423
|
* @property {UserInfo} [user_info]
|
|
369
|
-
* @property {BreakupValues[]} [breakup_values]
|
|
370
|
-
*
|
|
371
|
-
* @property {string} [
|
|
372
|
-
* @property {string} [
|
|
373
|
-
* @property {
|
|
374
|
-
* @property {
|
|
375
|
-
*
|
|
424
|
+
* @property {BreakupValues[]} [breakup_values] - An array containing the
|
|
425
|
+
* breakup of various charges and discounts.
|
|
426
|
+
* @property {string} [order_created_time] - The date and time when the order was created.
|
|
427
|
+
* @property {string} [order_created_ts] - The timestamp when the order was created.
|
|
428
|
+
* @property {string} [order_id] - The unique identifier for the order.
|
|
429
|
+
* @property {Shipments[]} [shipments] - An array containing details of
|
|
430
|
+
* individual shipments within the order.
|
|
431
|
+
* @property {BagsForReorder[]} [bags_for_reorder] - An array containing details
|
|
432
|
+
* of bags available for reorder.
|
|
433
|
+
* @property {Object} [meta] - An object containing additional metadata for the order.
|
|
376
434
|
*/
|
|
377
435
|
|
|
378
436
|
/**
|
|
379
437
|
* @typedef OrderStatuses
|
|
380
|
-
* @property {number} [value]
|
|
381
|
-
* @property {boolean} [is_selected]
|
|
382
|
-
*
|
|
438
|
+
* @property {number} [value] - The value representing the selection.
|
|
439
|
+
* @property {boolean} [is_selected] - Indicates whether this option is
|
|
440
|
+
* currently selected.
|
|
441
|
+
* @property {string} [display] - The text to display .
|
|
383
442
|
*/
|
|
384
443
|
|
|
385
444
|
/**
|
|
386
445
|
* @typedef OrderFilters
|
|
387
|
-
* @property {OrderStatuses[]} [statuses]
|
|
446
|
+
* @property {OrderStatuses[]} [statuses] - An array containing the order statuses.
|
|
388
447
|
*/
|
|
389
448
|
|
|
390
449
|
/**
|
|
391
450
|
* @typedef OrderList
|
|
392
451
|
* @property {OrderPage} [page]
|
|
393
|
-
* @property {OrderSchema[]} [items]
|
|
452
|
+
* @property {OrderSchema[]} [items] - List of orders, each containing detailed
|
|
453
|
+
* information about individual orders and their respective shipments.
|
|
394
454
|
* @property {OrderFilters} [filters]
|
|
395
455
|
*/
|
|
396
456
|
|
|
397
457
|
/**
|
|
398
458
|
* @typedef ApefaceApiError
|
|
399
|
-
* @property {string} [message]
|
|
400
|
-
* @property {boolean} [success]
|
|
459
|
+
* @property {string} [message] - Contains any message related to the operation.
|
|
460
|
+
* @property {boolean} [success] - Indicates if the operation was successful.
|
|
401
461
|
*/
|
|
402
462
|
|
|
403
463
|
/**
|
|
@@ -412,213 +472,227 @@ const Joi = require("joi");
|
|
|
412
472
|
|
|
413
473
|
/**
|
|
414
474
|
* @typedef ResponseGetInvoiceShipment
|
|
415
|
-
* @property {string} presigned_type
|
|
416
|
-
* @property {boolean} success
|
|
417
|
-
* @property {string} shipment_id
|
|
418
|
-
* @property {string} presigned_url
|
|
475
|
+
* @property {string} presigned_type - Type of presigned URL.
|
|
476
|
+
* @property {boolean} success - Indicates if the operation was successful .
|
|
477
|
+
* @property {string} shipment_id - Identifier for the shipment.
|
|
478
|
+
* @property {string} presigned_url - The presigned URL for accessing the
|
|
479
|
+
* shipment data, obtained from the response data.
|
|
419
480
|
*/
|
|
420
481
|
|
|
421
482
|
/**
|
|
422
483
|
* @typedef Track
|
|
423
|
-
* @property {string} [account_name]
|
|
424
|
-
* @property {string} [shipment_type]
|
|
425
|
-
* @property {string} [status]
|
|
426
|
-
* @property {string} [last_location_recieved_at]
|
|
427
|
-
*
|
|
428
|
-
* @property {string} [
|
|
429
|
-
* @property {string} [
|
|
430
|
-
* @property {string} [
|
|
484
|
+
* @property {string} [account_name] - The name of the account handling the shipment.
|
|
485
|
+
* @property {string} [shipment_type] - The type of shipment.
|
|
486
|
+
* @property {string} [status] - The current status of the shipment.
|
|
487
|
+
* @property {string} [last_location_recieved_at] - The last known location of
|
|
488
|
+
* the shipment.
|
|
489
|
+
* @property {string} [updated_time] - The timestamp of the last update.
|
|
490
|
+
* @property {string} [updated_at] - The date and time when the shipment was last updated.
|
|
491
|
+
* @property {string} [reason] - The reason or additional information about the shipment.
|
|
492
|
+
* @property {string} [awb] - The Air Waybill (AWB) number for the shipment.
|
|
431
493
|
*/
|
|
432
494
|
|
|
433
495
|
/**
|
|
434
496
|
* @typedef ShipmentTrack
|
|
435
|
-
* @property {Track[]} [results]
|
|
497
|
+
* @property {Track[]} [results] - A array containing tracking details.
|
|
436
498
|
*/
|
|
437
499
|
|
|
438
500
|
/**
|
|
439
501
|
* @typedef CustomerDetailsResponse
|
|
440
|
-
* @property {string} [phone]
|
|
441
|
-
* @property {string} [shipment_id]
|
|
442
|
-
* @property {string} [name]
|
|
443
|
-
* @property {string} [order_id]
|
|
444
|
-
* @property {string} [country]
|
|
502
|
+
* @property {string} [phone] - Customer's phone number.
|
|
503
|
+
* @property {string} [shipment_id] - Unique identifier of the shipment.
|
|
504
|
+
* @property {string} [name] - Customer's name.
|
|
505
|
+
* @property {string} [order_id] - Unique identifier of the order.
|
|
506
|
+
* @property {string} [country] - Country of the customer.
|
|
445
507
|
*/
|
|
446
508
|
|
|
447
509
|
/**
|
|
448
510
|
* @typedef SendOtpToCustomerResponse
|
|
449
|
-
* @property {string} [request_id]
|
|
450
|
-
* @property {string} [message]
|
|
451
|
-
* @property {boolean} [success]
|
|
452
|
-
* @property {number} [resend_timer]
|
|
511
|
+
* @property {string} [request_id] - Unique identifier for the request.
|
|
512
|
+
* @property {string} [message] - Message indicating the result of the request.
|
|
513
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
514
|
+
* @property {number} [resend_timer] - Time in seconds before the OTP can be resent.
|
|
453
515
|
*/
|
|
454
516
|
|
|
455
517
|
/**
|
|
456
518
|
* @typedef VerifyOtp
|
|
457
|
-
* @property {string} [otp_code]
|
|
458
|
-
* @property {string} [request_id]
|
|
519
|
+
* @property {string} [otp_code] - The OTP code provided by the user for verification.
|
|
520
|
+
* @property {string} [request_id] - Unique identifier for the request.
|
|
459
521
|
*/
|
|
460
522
|
|
|
461
523
|
/**
|
|
462
524
|
* @typedef VerifyOtpResponse
|
|
463
|
-
* @property {boolean} [success]
|
|
525
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
464
526
|
*/
|
|
465
527
|
|
|
466
528
|
/**
|
|
467
529
|
* @typedef BagReasonMeta
|
|
468
|
-
* @property {boolean} [show_text_area]
|
|
530
|
+
* @property {boolean} [show_text_area] - Indicates whether to display a text
|
|
531
|
+
* box on the front end.
|
|
469
532
|
*/
|
|
470
533
|
|
|
471
534
|
/**
|
|
472
535
|
* @typedef QuestionSet
|
|
473
|
-
* @property {number} [id]
|
|
474
|
-
* @property {string} [display_name]
|
|
536
|
+
* @property {number} [id] - The unique identifier for the question.
|
|
537
|
+
* @property {string} [display_name] - The text displayed for the question.
|
|
475
538
|
*/
|
|
476
539
|
|
|
477
540
|
/**
|
|
478
541
|
* @typedef BagReasons
|
|
479
|
-
* @property {string[]} [qc_type]
|
|
480
|
-
* @property {number} [id]
|
|
481
|
-
* @property {string} [display_name]
|
|
542
|
+
* @property {string[]} [qc_type] - A list of quality check types.
|
|
543
|
+
* @property {number} [id] - The unique identifier.
|
|
544
|
+
* @property {string} [display_name] - The text displayed.
|
|
482
545
|
* @property {BagReasonMeta} [meta]
|
|
483
|
-
* @property {QuestionSet[]} [question_set]
|
|
484
|
-
* @property {BagReasons[]} [reasons]
|
|
546
|
+
* @property {QuestionSet[]} [question_set] - A list of questions for delivery partner.
|
|
547
|
+
* @property {BagReasons[]} [reasons] - A list of reasons.
|
|
485
548
|
*/
|
|
486
549
|
|
|
487
550
|
/**
|
|
488
551
|
* @typedef ShipmentBagReasons
|
|
489
|
-
* @property {BagReasons[]} [reasons]
|
|
490
|
-
* @property {boolean} [success]
|
|
552
|
+
* @property {BagReasons[]} [reasons] - A list of shipment's bag reasons.
|
|
553
|
+
* @property {boolean} [success] - Indicates if the operation was successful.
|
|
491
554
|
*/
|
|
492
555
|
|
|
493
556
|
/**
|
|
494
557
|
* @typedef ShipmentReason
|
|
495
|
-
* @property {number} [priority]
|
|
496
|
-
* @property {boolean} [show_text_area]
|
|
497
|
-
*
|
|
498
|
-
* @property {
|
|
499
|
-
* @property {string} [
|
|
500
|
-
* @property {string} [
|
|
558
|
+
* @property {number} [priority] - The priority level of the reason.
|
|
559
|
+
* @property {boolean} [show_text_area] - A flag indicating whether to show a
|
|
560
|
+
* textbox on the frontend.
|
|
561
|
+
* @property {number} [reason_id] - The unique identifier for the reason.
|
|
562
|
+
* @property {string} [feedback_type] - The type of feedback.
|
|
563
|
+
* @property {string} [reason_text] - The text describing the reason.
|
|
564
|
+
* @property {string} [flow] - The process flow related to the reason.
|
|
501
565
|
*/
|
|
502
566
|
|
|
503
567
|
/**
|
|
504
568
|
* @typedef ShipmentReasons
|
|
505
|
-
* @property {ShipmentReason[]} [reasons]
|
|
569
|
+
* @property {ShipmentReason[]} [reasons] - A list of shipment reasons.
|
|
506
570
|
*/
|
|
507
571
|
|
|
508
572
|
/**
|
|
509
573
|
* @typedef ProductsReasonsData
|
|
510
|
-
* @property {number} [reason_id]
|
|
511
|
-
* @property {string} [reason_text]
|
|
574
|
+
* @property {number} [reason_id] - The unique identifier for the reason.
|
|
575
|
+
* @property {string} [reason_text] - The text describing the reason.
|
|
512
576
|
*/
|
|
513
577
|
|
|
514
578
|
/**
|
|
515
579
|
* @typedef ProductsReasonsFilters
|
|
516
|
-
* @property {number} [line_number]
|
|
517
|
-
* @property {number} [quantity]
|
|
518
|
-
* @property {string} [identifier]
|
|
580
|
+
* @property {number} [line_number] - The specific line item of bag.
|
|
581
|
+
* @property {number} [quantity] - The quantity of the product.
|
|
582
|
+
* @property {string} [identifier] - The unique identifier for the product.
|
|
519
583
|
*/
|
|
520
584
|
|
|
521
585
|
/**
|
|
522
586
|
* @typedef ProductsReasons
|
|
523
587
|
* @property {ProductsReasonsData} [data]
|
|
524
|
-
* @property {ProductsReasonsFilters[]} [filters]
|
|
588
|
+
* @property {ProductsReasonsFilters[]} [filters] - Criteria applied to filter
|
|
589
|
+
* the products.
|
|
525
590
|
*/
|
|
526
591
|
|
|
527
592
|
/**
|
|
528
593
|
* @typedef EntityReasonData
|
|
529
|
-
* @property {number} [reason_id]
|
|
530
|
-
* @property {string} [reason_text]
|
|
594
|
+
* @property {number} [reason_id] - The unique identifier for the reason.
|
|
595
|
+
* @property {string} [reason_text] - The text describing the reason.
|
|
531
596
|
*/
|
|
532
597
|
|
|
533
598
|
/**
|
|
534
599
|
* @typedef EntitiesReasons
|
|
535
600
|
* @property {EntityReasonData} [data]
|
|
536
|
-
* @property {Object[]} [filters]
|
|
601
|
+
* @property {Object[]} [filters] - Criteria applied to filter the shipment.
|
|
537
602
|
*/
|
|
538
603
|
|
|
539
604
|
/**
|
|
540
605
|
* @typedef ReasonsData
|
|
541
|
-
* @property {ProductsReasons[]} [products]
|
|
542
|
-
* @property {EntitiesReasons[]} [entities]
|
|
606
|
+
* @property {ProductsReasons[]} [products] - Reasons data for bags.
|
|
607
|
+
* @property {EntitiesReasons[]} [entities] - Reasons data for shipments.
|
|
543
608
|
*/
|
|
544
609
|
|
|
545
610
|
/**
|
|
546
611
|
* @typedef Products
|
|
547
|
-
* @property {number} [line_number]
|
|
548
|
-
* @property {number} [quantity]
|
|
549
|
-
* @property {string} [identifier]
|
|
612
|
+
* @property {number} [line_number] - The specific line item of bag.
|
|
613
|
+
* @property {number} [quantity] - The quantity of the product.
|
|
614
|
+
* @property {string} [identifier] - The unique identifier for the product.
|
|
550
615
|
*/
|
|
551
616
|
|
|
552
617
|
/**
|
|
553
618
|
* @typedef ProductsDataUpdatesFilters
|
|
554
|
-
* @property {number} [line_number]
|
|
555
|
-
* @property {string} [identifier]
|
|
619
|
+
* @property {number} [line_number] - The specific line item of bag.
|
|
620
|
+
* @property {string} [identifier] - The quantity of the product.
|
|
556
621
|
*/
|
|
557
622
|
|
|
558
623
|
/**
|
|
559
624
|
* @typedef ProductsDataUpdates
|
|
560
|
-
* @property {Object} [data]
|
|
561
|
-
* @property {ProductsDataUpdatesFilters[]} [filters]
|
|
625
|
+
* @property {Object} [data] - Information about the data to be updated.
|
|
626
|
+
* @property {ProductsDataUpdatesFilters[]} [filters] - Criteria applied to
|
|
627
|
+
* filter the products.
|
|
562
628
|
*/
|
|
563
629
|
|
|
564
630
|
/**
|
|
565
631
|
* @typedef EntitiesDataUpdates
|
|
566
|
-
* @property {Object} [data]
|
|
567
|
-
* @property {Object[]} [filters]
|
|
632
|
+
* @property {Object} [data] - Information about the data to be updated.
|
|
633
|
+
* @property {Object[]} [filters] - Criteria applied to filter the shipments.
|
|
568
634
|
*/
|
|
569
635
|
|
|
570
636
|
/**
|
|
571
637
|
* @typedef DataUpdates
|
|
572
|
-
* @property {ProductsDataUpdates[]} [products]
|
|
573
|
-
* @property {EntitiesDataUpdates[]} [entities]
|
|
638
|
+
* @property {ProductsDataUpdates[]} [products] - Data updates for bags.
|
|
639
|
+
* @property {EntitiesDataUpdates[]} [entities] - Data updates for shipments.
|
|
574
640
|
*/
|
|
575
641
|
|
|
576
642
|
/**
|
|
577
643
|
* @typedef ShipmentsRequest
|
|
578
644
|
* @property {ReasonsData} [reasons]
|
|
579
|
-
* @property {Products[]} [products]
|
|
645
|
+
* @property {Products[]} [products] - Specific bag to be updated.
|
|
580
646
|
* @property {DataUpdates} [data_updates]
|
|
581
|
-
* @property {string} identifier
|
|
647
|
+
* @property {string} identifier - The unique identifier for request which is
|
|
648
|
+
* the shipment_id.
|
|
582
649
|
*/
|
|
583
650
|
|
|
584
651
|
/**
|
|
585
652
|
* @typedef StatuesRequest
|
|
586
|
-
* @property {ShipmentsRequest[]} [shipments]
|
|
587
|
-
*
|
|
588
|
-
* @property {string} [
|
|
653
|
+
* @property {ShipmentsRequest[]} [shipments] - A list containing information
|
|
654
|
+
* about shipments.
|
|
655
|
+
* @property {string} [exclude_bags_next_state] - State to be change for
|
|
656
|
+
* Remaining Bag/Products.
|
|
657
|
+
* @property {string} [status] - The status to which the entity is to be transitioned.
|
|
589
658
|
*/
|
|
590
659
|
|
|
591
660
|
/**
|
|
592
661
|
* @typedef OrderRequest
|
|
593
|
-
* @property {Object} [meta]
|
|
662
|
+
* @property {Object} [meta] - Metadata for the order.
|
|
594
663
|
*/
|
|
595
664
|
|
|
596
665
|
/**
|
|
597
666
|
* @typedef UpdateShipmentStatusRequest
|
|
598
|
-
* @property {StatuesRequest[]} [statuses]
|
|
599
|
-
* @property {boolean} [task]
|
|
600
|
-
* @property {boolean} [lock_after_transition]
|
|
601
|
-
*
|
|
602
|
-
* @property {boolean} [
|
|
667
|
+
* @property {StatuesRequest[]} [statuses] - An array containing different status details.
|
|
668
|
+
* @property {boolean} [task] - Indicates whether the task is active or required.
|
|
669
|
+
* @property {boolean} [lock_after_transition] - Indicates whether the status
|
|
670
|
+
* should be locked after the transition.
|
|
671
|
+
* @property {boolean} [force_transition] - Indicates whether the transition
|
|
672
|
+
* should be forced.
|
|
673
|
+
* @property {boolean} [unlock_before_transition] - Indicates whether the status
|
|
674
|
+
* should be unlocked before the transition.
|
|
603
675
|
*/
|
|
604
676
|
|
|
605
677
|
/**
|
|
606
678
|
* @typedef StatusesBodyResponse
|
|
607
|
-
* @property {Object[]} [shipments]
|
|
679
|
+
* @property {Object[]} [shipments] - List of shipments.
|
|
608
680
|
*/
|
|
609
681
|
|
|
610
682
|
/**
|
|
611
683
|
* @typedef ShipmentApplicationStatusResponse
|
|
612
|
-
* @property {StatusesBodyResponse[]} [statuses]
|
|
684
|
+
* @property {StatusesBodyResponse[]} [statuses] - An array containing different
|
|
685
|
+
* status options of shipments.
|
|
613
686
|
*/
|
|
614
687
|
|
|
615
688
|
/**
|
|
616
689
|
* @typedef ErrorResponse
|
|
617
|
-
* @property {string} [code]
|
|
618
|
-
* @property {string} [message]
|
|
619
|
-
* @property {number} [status]
|
|
620
|
-
*
|
|
621
|
-
* @property {string} [
|
|
690
|
+
* @property {string} [code] - The HTTP status code of the response.
|
|
691
|
+
* @property {string} [message] - A message providing details about the response.
|
|
692
|
+
* @property {number} [status] - An additional code providing more context about
|
|
693
|
+
* the response.
|
|
694
|
+
* @property {string} [exception] - Details of any exception that occurred.
|
|
695
|
+
* @property {string} [stack_trace] - The stack trace of any exception that occurred.
|
|
622
696
|
*/
|
|
623
697
|
|
|
624
698
|
class OrderApplicationModel {
|