@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,28 +1,34 @@
|
|
|
1
1
|
export = FinancePlatformModel;
|
|
2
2
|
/**
|
|
3
3
|
* @typedef OrederFreezeResponse
|
|
4
|
-
* @property {boolean} [success]
|
|
5
|
-
* @property {boolean} [oms_freeze]
|
|
6
|
-
*
|
|
4
|
+
* @property {boolean} [success] - Indicates whether the operation was successful or not.
|
|
5
|
+
* @property {boolean} [oms_freeze] - Flag indicating if the system is frozen
|
|
6
|
+
* for order management.
|
|
7
|
+
* @property {string} [source] - Optional field indicating the data source of
|
|
8
|
+
* the information.
|
|
7
9
|
*/
|
|
8
10
|
/**
|
|
9
11
|
* @typedef GenerateReportMeta
|
|
10
|
-
* @property {string} [brand]
|
|
11
|
-
*
|
|
12
|
-
* @property {string} [
|
|
12
|
+
* @property {string} [brand] - The brand name associated with the report meta
|
|
13
|
+
* information.
|
|
14
|
+
* @property {string} [company] - The company name associated with the report
|
|
15
|
+
* meta information.
|
|
16
|
+
* @property {string} [channel] - The sale channel name associated with seller.
|
|
13
17
|
*/
|
|
14
18
|
/**
|
|
15
19
|
* @typedef GenerateReportFilters
|
|
16
|
-
* @property {string[]} [brand]
|
|
17
|
-
* @property {string[]} [company]
|
|
18
|
-
* @property {string[]} [channel]
|
|
20
|
+
* @property {string[]} [brand] - An array of brand names to filter the report data.
|
|
21
|
+
* @property {string[]} [company] - An array of company id to filter the report data.
|
|
22
|
+
* @property {string[]} [channel] - An array of sale channel names associated
|
|
23
|
+
* with seller to filter the report data.
|
|
19
24
|
*/
|
|
20
25
|
/**
|
|
21
26
|
* @typedef GenerateReportPlatform
|
|
22
|
-
* @property {string} [start_date]
|
|
23
|
-
* @property {string} [end_date]
|
|
27
|
+
* @property {string} [start_date] - The start date to generate report specific preiod.
|
|
28
|
+
* @property {string} [end_date] - The end date to generate report specific preiod.
|
|
24
29
|
* @property {GenerateReportMeta} [meta]
|
|
25
|
-
* @property {string} [report_id]
|
|
30
|
+
* @property {string} [report_id] - The unique identifier of the generate report
|
|
31
|
+
* where different report configure.
|
|
26
32
|
* @property {GenerateReportFilters} [filters]
|
|
27
33
|
*/
|
|
28
34
|
/**
|
|
@@ -31,29 +37,30 @@ export = FinancePlatformModel;
|
|
|
31
37
|
*/
|
|
32
38
|
/**
|
|
33
39
|
* @typedef Page
|
|
34
|
-
* @property {number} [item_total]
|
|
35
|
-
* @property {string} [next_id]
|
|
36
|
-
* @property {boolean} [has_previous]
|
|
37
|
-
* @property {boolean} [has_next]
|
|
38
|
-
* @property {number} [current]
|
|
39
|
-
* @property {string} type
|
|
40
|
-
* @property {number} [size]
|
|
40
|
+
* @property {number} [item_total] - The total number of items on the page.
|
|
41
|
+
* @property {string} [next_id] - The identifier for the next page.
|
|
42
|
+
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
43
|
+
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
44
|
+
* @property {number} [current] - The current page number.
|
|
45
|
+
* @property {string} type - The type of the page, such as 'PageType'.
|
|
46
|
+
* @property {number} [size] - The number of items per page.
|
|
41
47
|
*/
|
|
42
48
|
/**
|
|
43
49
|
* @typedef Currency
|
|
44
|
-
* @property {string} [code]
|
|
45
|
-
* @property {string} [symbol]
|
|
46
|
-
* @property {string} [name]
|
|
50
|
+
* @property {string} [code] - The unique currency code.
|
|
51
|
+
* @property {string} [symbol] - The unique currency symbol.
|
|
52
|
+
* @property {string} [name] - The unique currency name.
|
|
47
53
|
*/
|
|
48
54
|
/**
|
|
49
55
|
* @typedef GenerateReportJson
|
|
50
56
|
* @property {Object} [data]
|
|
51
|
-
* @property {number} [item_count]
|
|
57
|
+
* @property {number} [item_count] - Total number of items in the report.
|
|
52
58
|
* @property {Page} [page]
|
|
53
|
-
* @property {string} [end_date]
|
|
54
|
-
* @property {string} [start_date]
|
|
55
|
-
* @property {string[][]} [items]
|
|
56
|
-
*
|
|
59
|
+
* @property {string} [end_date] - The end date to generate report specific preiod.
|
|
60
|
+
* @property {string} [start_date] - The start date to generate report specific preiod.
|
|
61
|
+
* @property {string[][]} [items] - Nested array structure representing report
|
|
62
|
+
* items or data.
|
|
63
|
+
* @property {string[]} [headers] - Headers describing each item in the report data.
|
|
57
64
|
*/
|
|
58
65
|
/**
|
|
59
66
|
* @typedef Error
|
|
@@ -83,43 +90,46 @@ export = FinancePlatformModel;
|
|
|
83
90
|
*/
|
|
84
91
|
/**
|
|
85
92
|
* @typedef DownloadReportData
|
|
86
|
-
* @property {number} [page]
|
|
87
|
-
* @property {number} [page_size]
|
|
88
|
-
* @property {string} [start_date]
|
|
89
|
-
*
|
|
93
|
+
* @property {number} [page] - The current page number of the report.
|
|
94
|
+
* @property {number} [page_size] - The number of items displayed per page.
|
|
95
|
+
* @property {string} [start_date] - The start date for fetching the report
|
|
96
|
+
* history for download.
|
|
97
|
+
* @property {string} [end_date] - The end date for fetching the report history
|
|
98
|
+
* for download.
|
|
90
99
|
*/
|
|
91
100
|
/**
|
|
92
101
|
* @typedef DownloadReportItems
|
|
93
|
-
* @property {string} [start_date]
|
|
94
|
-
* @property {string} [end_date]
|
|
102
|
+
* @property {string} [start_date] - The start date for the report item.
|
|
103
|
+
* @property {string} [end_date] - The end date for the report item.
|
|
95
104
|
* @property {GenerateReportMeta} [meta]
|
|
96
|
-
* @property {string} [report_id]
|
|
105
|
+
* @property {string} [report_id] - The unique identifier of the report item.
|
|
97
106
|
* @property {GenerateReportFilters} [filters]
|
|
98
|
-
* @property {string} [type_of_request]
|
|
99
107
|
*/
|
|
100
108
|
/**
|
|
101
109
|
* @typedef DownloadReportList
|
|
102
|
-
* @property {DownloadReportItems[]} [items]
|
|
110
|
+
* @property {DownloadReportItems[]} [items] - A list of report items available
|
|
111
|
+
* for download.
|
|
103
112
|
* @property {Page} [page]
|
|
104
|
-
* @property {number} [item_count]
|
|
113
|
+
* @property {number} [item_count] - The total number of items in the report list.
|
|
105
114
|
*/
|
|
106
115
|
/**
|
|
107
116
|
* @typedef GetEngineFilters
|
|
108
|
-
* @property {string} [config_field]
|
|
109
|
-
* @property {string} [status]
|
|
110
|
-
* @property {boolean} [is_active]
|
|
111
|
-
* @property {string} [seller_id]
|
|
117
|
+
* @property {string} [config_field] - The configuration field used for filtering.
|
|
118
|
+
* @property {string} [status] - The status used for filtering.
|
|
119
|
+
* @property {boolean} [is_active] - Flag indicating if the filter is active.
|
|
120
|
+
* @property {string} [seller_id] - The seller ID used for filtering.
|
|
112
121
|
*/
|
|
113
122
|
/**
|
|
114
123
|
* @typedef GetEngineData
|
|
115
|
-
* @property {string} [status]
|
|
124
|
+
* @property {string} [status] - Status of the request.
|
|
116
125
|
* @property {GetEngineFilters} [filters]
|
|
117
|
-
* @property {string[]} [project]
|
|
118
|
-
* @property {string} [table_name]
|
|
119
|
-
* @property {Object} [search]
|
|
120
|
-
*
|
|
121
|
-
* @property {number} [
|
|
122
|
-
* @property {
|
|
126
|
+
* @property {string[]} [project] - A list of fields to get data from tables.
|
|
127
|
+
* @property {string} [table_name] - The name of the table from which to retrieve data.
|
|
128
|
+
* @property {Object} [search] - Search criteria for querying on given table
|
|
129
|
+
* specific fields.
|
|
130
|
+
* @property {number} [page] - The current page number for pagination.
|
|
131
|
+
* @property {number} [page_size] - The number of items displayed per page.
|
|
132
|
+
* @property {string} [order_by] - The field by which to order the results.
|
|
123
133
|
*/
|
|
124
134
|
/**
|
|
125
135
|
* @typedef GetEngineReq
|
|
@@ -127,14 +137,14 @@ export = FinancePlatformModel;
|
|
|
127
137
|
*/
|
|
128
138
|
/**
|
|
129
139
|
* @typedef GetEngineResponse
|
|
130
|
-
* @property {boolean} [success]
|
|
131
|
-
* @property {Object[]} [items]
|
|
140
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
141
|
+
* @property {Object[]} [items] - A list of items returned by the request.
|
|
132
142
|
* @property {Page} [page]
|
|
133
|
-
* @property {number} [item_count]
|
|
143
|
+
* @property {number} [item_count] - The total number of items returned by the request.
|
|
134
144
|
*/
|
|
135
145
|
/**
|
|
136
146
|
* @typedef GetReason
|
|
137
|
-
* @property {string} [reason_type]
|
|
147
|
+
* @property {string} [reason_type] - The type of reason associated with the request.
|
|
138
148
|
*/
|
|
139
149
|
/**
|
|
140
150
|
* @typedef GetReasonReq
|
|
@@ -142,56 +152,60 @@ export = FinancePlatformModel;
|
|
|
142
152
|
*/
|
|
143
153
|
/**
|
|
144
154
|
* @typedef ReasonItem
|
|
145
|
-
* @property {string} [id]
|
|
146
|
-
* @property {string} [name]
|
|
147
|
-
* @property {string} [display_name]
|
|
155
|
+
* @property {string} [id] - Id of the reason for reason_type.
|
|
156
|
+
* @property {string} [name] - Code of the reason for reason_type.
|
|
157
|
+
* @property {string} [display_name] - Display name of the reason for reason_type.
|
|
148
158
|
*/
|
|
149
159
|
/**
|
|
150
160
|
* @typedef GetReasonResponse
|
|
151
|
-
* @property {boolean} [success]
|
|
152
|
-
* @property {ReasonItem[]} [item_list]
|
|
153
|
-
* @property {number} [item_count]
|
|
161
|
+
* @property {boolean} [success] - Indicates whether the request was successfull.
|
|
162
|
+
* @property {ReasonItem[]} [item_list] - The list of items returned in the response.
|
|
163
|
+
* @property {number} [item_count] - The number of items in the response.
|
|
154
164
|
* @property {Page} [page]
|
|
155
165
|
*/
|
|
156
166
|
/**
|
|
157
167
|
* @typedef GetReportListData
|
|
158
|
-
* @property {string} [role_name]
|
|
159
|
-
* @property {boolean} [listing_enabled]
|
|
168
|
+
* @property {string} [role_name] - The name of the role requesting the report list.
|
|
169
|
+
* @property {boolean} [listing_enabled] - Indicates whether listing is enabled
|
|
170
|
+
* for the role.
|
|
160
171
|
*/
|
|
161
172
|
/**
|
|
162
173
|
* @typedef GetReportListReq
|
|
163
174
|
* @property {GetReportListData} [data]
|
|
164
175
|
*/
|
|
165
|
-
/**
|
|
166
|
-
* @typedef GetAffiliate
|
|
167
|
-
* @property {number} [company_id]
|
|
168
|
-
*/
|
|
169
176
|
/**
|
|
170
177
|
* @typedef GetReportListResponse
|
|
171
|
-
* @property {boolean} [success]
|
|
172
|
-
* @property {ReportItem[]} [items]
|
|
178
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
179
|
+
* @property {ReportItem[]} [items] - The list of report items.
|
|
173
180
|
* @property {Page} [page]
|
|
174
|
-
* @property {number} [total_count]
|
|
181
|
+
* @property {number} [total_count] - The total number of items in the report list.
|
|
175
182
|
*/
|
|
176
183
|
/**
|
|
177
184
|
* @typedef ReportItem
|
|
178
|
-
* @property {string} [id]
|
|
179
|
-
* @property {string} [name]
|
|
180
|
-
* @property {string} [description]
|
|
181
|
-
* @property {string[]} [allowed_filters]
|
|
182
|
-
*
|
|
183
|
-
* @property {
|
|
184
|
-
* @property {string} [
|
|
185
|
+
* @property {string} [id] - The unique identifier for the report item.
|
|
186
|
+
* @property {string} [name] - The name of the report item.
|
|
187
|
+
* @property {string} [description] - A brief description of the report item.
|
|
188
|
+
* @property {string[]} [allowed_filters] - The filters that can be applied to
|
|
189
|
+
* the report item.
|
|
190
|
+
* @property {Object} [config_meta] - Metadata related to the report item configuration.
|
|
191
|
+
* @property {string} [report_type] - The type of the report item.
|
|
192
|
+
* @property {string} [display_date] - The display date of the report item, if applicable.
|
|
193
|
+
*/
|
|
194
|
+
/**
|
|
195
|
+
* @typedef GetAffiliate
|
|
196
|
+
* @property {number} [company_id] - The unique identifier of the company
|
|
197
|
+
* associated with the affiliate.
|
|
185
198
|
*/
|
|
186
199
|
/**
|
|
187
200
|
* @typedef GetAffiliateResponse
|
|
188
|
-
* @property {string} [reason]
|
|
189
|
-
* @property {boolean} [success]
|
|
190
|
-
* @property {Object[]} [docs]
|
|
201
|
+
* @property {string} [reason] - The reason for the response, if applicable.
|
|
202
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
203
|
+
* @property {Object[]} [docs] - List of items or data related to the affiliate.
|
|
191
204
|
*/
|
|
192
205
|
/**
|
|
193
206
|
* @typedef DownloadCreditDebitNote
|
|
194
|
-
* @property {string[]} [note_id]
|
|
207
|
+
* @property {string[]} [note_id] - List of unique identifiers for the
|
|
208
|
+
* credit/debit notes to be download.
|
|
195
209
|
*/
|
|
196
210
|
/**
|
|
197
211
|
* @typedef DownloadCreditDebitNoteReq
|
|
@@ -199,26 +213,36 @@ export = FinancePlatformModel;
|
|
|
199
213
|
*/
|
|
200
214
|
/**
|
|
201
215
|
* @typedef DownloadCreditDebitNoteResponseData
|
|
202
|
-
* @property {string} [id]
|
|
203
|
-
* @property {string} [pdf_s3_url]
|
|
216
|
+
* @property {string} [id] - The unique identifier of the download credit/debit note.
|
|
217
|
+
* @property {string} [pdf_s3_url] - The URL where the PDF of the credit/debit
|
|
218
|
+
* note is stored.
|
|
204
219
|
*/
|
|
205
220
|
/**
|
|
206
221
|
* @typedef DownloadCreditDebitNoteResponse
|
|
207
|
-
* @property {boolean} [success]
|
|
208
|
-
*
|
|
222
|
+
* @property {boolean} [success] - Indicates whether the request to download the
|
|
223
|
+
* credit/debit notes was successful.
|
|
224
|
+
* @property {DownloadCreditDebitNoteResponseData[]} [data] - List of
|
|
225
|
+
* credit/debit notes download data.
|
|
226
|
+
*/
|
|
227
|
+
/**
|
|
228
|
+
* @typedef InvoiceBillingItem
|
|
229
|
+
* @property {string} [invoice_number] - The number of the invoice associated
|
|
230
|
+
* with the billing item.
|
|
231
|
+
* @property {number} [amount] - The amount of the billing item.
|
|
209
232
|
*/
|
|
210
233
|
/**
|
|
211
234
|
* @typedef PaymentProcessPayload
|
|
212
|
-
* @property {string} [platform]
|
|
213
|
-
* @property {number} [amount]
|
|
214
|
-
* @property {string} [transaction_type]
|
|
215
|
-
* @property {string} [source_reference]
|
|
216
|
-
* @property {number} [total_amount]
|
|
217
|
-
* @property {Object} [meta]
|
|
218
|
-
* @property {string} [currency]
|
|
219
|
-
* @property {string} [seller_id]
|
|
220
|
-
*
|
|
221
|
-
* @property {string} [
|
|
235
|
+
* @property {string} [platform] - The platform through which the payment is processed.
|
|
236
|
+
* @property {number} [amount] - The total amount to be processed in the payment.
|
|
237
|
+
* @property {string} [transaction_type] - The type of transaction (e.g., seller_online).
|
|
238
|
+
* @property {string} [source_reference] - The reference for the source of the payment.
|
|
239
|
+
* @property {number} [total_amount] - The total amount to be processed in the payment.
|
|
240
|
+
* @property {Object} [meta] - Additional metadata related to the payment.
|
|
241
|
+
* @property {string} [currency] - The currency in which the payment is made.
|
|
242
|
+
* @property {string} [seller_id] - The unique identifier for the seller
|
|
243
|
+
* receiving the payment.
|
|
244
|
+
* @property {string} [mode_of_payment] - The mode of payment (e.g., online).
|
|
245
|
+
* @property {InvoiceBillingItem[]} [invoice_billing_items]
|
|
222
246
|
*/
|
|
223
247
|
/**
|
|
224
248
|
* @typedef PaymentProcessReq
|
|
@@ -226,19 +250,23 @@ export = FinancePlatformModel;
|
|
|
226
250
|
*/
|
|
227
251
|
/**
|
|
228
252
|
* @typedef PaymentProcessResponse
|
|
229
|
-
* @property {number} [code]
|
|
230
|
-
* @property {string} [message]
|
|
231
|
-
*
|
|
232
|
-
* @property {
|
|
233
|
-
*
|
|
253
|
+
* @property {number} [code] - Response code indicating the status of the payment process.
|
|
254
|
+
* @property {string} [message] - A message providing additional information
|
|
255
|
+
* about the payment process response.
|
|
256
|
+
* @property {Object} [meta] - Additional metadata related to the payment
|
|
257
|
+
* process response.
|
|
258
|
+
* @property {string} [transaction_id] - The unique identifier for the payment
|
|
259
|
+
* transaction.
|
|
260
|
+
* @property {string} [redirect_url] - URL to redirect the user to complete the
|
|
261
|
+
* payment process, if applicable.
|
|
234
262
|
*/
|
|
235
263
|
/**
|
|
236
264
|
* @typedef CreditlineDataPlatformPayload
|
|
237
|
-
* @property {number} [page]
|
|
238
|
-
* @property {string} [seller_id]
|
|
239
|
-
* @property {string} [end_date]
|
|
240
|
-
* @property {string} [start_date]
|
|
241
|
-
* @property {number} [page_size]
|
|
265
|
+
* @property {number} [page] - The page number for pagination.
|
|
266
|
+
* @property {string} [seller_id] - The unique identifier for the seller.
|
|
267
|
+
* @property {string} [end_date] - The end date for the query.
|
|
268
|
+
* @property {string} [start_date] - The start date for the query.
|
|
269
|
+
* @property {number} [page_size] - The number of items per page.
|
|
242
270
|
*/
|
|
243
271
|
/**
|
|
244
272
|
* @typedef CreditlineDataPlatformReq
|
|
@@ -246,17 +274,19 @@ export = FinancePlatformModel;
|
|
|
246
274
|
*/
|
|
247
275
|
/**
|
|
248
276
|
* @typedef CreditlineDataPlatformResponse
|
|
249
|
-
* @property {Object[]} [items]
|
|
250
|
-
* @property {number} [code]
|
|
251
|
-
* @property {boolean} [show_mr]
|
|
277
|
+
* @property {Object[]} [items] - The list of items in the response.
|
|
278
|
+
* @property {number} [code] - The response status code.
|
|
279
|
+
* @property {boolean} [show_mr] - A flag indicating whether to show MR (some
|
|
280
|
+
* specific field).
|
|
252
281
|
* @property {Page} [page]
|
|
253
|
-
* @property {string} [message]
|
|
254
|
-
* @property {string[]} [headers]
|
|
255
|
-
* @property {number} [item_count]
|
|
282
|
+
* @property {string} [message] - The response message.
|
|
283
|
+
* @property {string[]} [headers] - The list of response headers.
|
|
284
|
+
* @property {number} [item_count] - The total number of items.
|
|
256
285
|
*/
|
|
257
286
|
/**
|
|
258
287
|
* @typedef IsCreditlinePayload
|
|
259
|
-
* @property {string} [seller_id]
|
|
288
|
+
* @property {string} [seller_id] - The unique identifier for the seller to
|
|
289
|
+
* check for credit line eligibility.
|
|
260
290
|
*/
|
|
261
291
|
/**
|
|
262
292
|
* @typedef IsCreditlinePlatformReq
|
|
@@ -264,12 +294,14 @@ export = FinancePlatformModel;
|
|
|
264
294
|
*/
|
|
265
295
|
/**
|
|
266
296
|
* @typedef IsCreditlinePlatformResponse
|
|
267
|
-
* @property {boolean} [is_creditline_opted]
|
|
268
|
-
*
|
|
297
|
+
* @property {boolean} [is_creditline_opted] - Indicates whether the seller has
|
|
298
|
+
* opted for a credit line.
|
|
299
|
+
* @property {number} [code] - Response code indicating the status of the credit
|
|
300
|
+
* line check.
|
|
269
301
|
*/
|
|
270
302
|
/**
|
|
271
303
|
* @typedef InvoiceTypePayloadData
|
|
272
|
-
* @property {boolean} [is_active]
|
|
304
|
+
* @property {boolean} [is_active] - Indicates if the invoice type is active.
|
|
273
305
|
*/
|
|
274
306
|
/**
|
|
275
307
|
* @typedef InvoiceTypeReq
|
|
@@ -277,28 +309,30 @@ export = FinancePlatformModel;
|
|
|
277
309
|
*/
|
|
278
310
|
/**
|
|
279
311
|
* @typedef InvoiceTypeResponseItems
|
|
280
|
-
* @property {string} [text]
|
|
281
|
-
* @property {string} [value]
|
|
312
|
+
* @property {string} [text] - The text description of the invoice type.
|
|
313
|
+
* @property {string} [value] - The value or code representing the invoice type.
|
|
282
314
|
*/
|
|
283
315
|
/**
|
|
284
316
|
* @typedef InvoiceTypeResponse
|
|
285
|
-
* @property {boolean} [success]
|
|
286
|
-
* @property {InvoiceTypeResponseItems[]} [invoice_type_list]
|
|
287
|
-
*
|
|
317
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
318
|
+
* @property {InvoiceTypeResponseItems[]} [invoice_type_list] - List of invoice
|
|
319
|
+
* types available.
|
|
320
|
+
* @property {InvoiceTypeResponseItems[]} [payment_status_list] - List of
|
|
321
|
+
* payment statuses available.
|
|
288
322
|
*/
|
|
289
323
|
/**
|
|
290
324
|
* @typedef InoviceListingPayloadDataFilters
|
|
291
|
-
* @property {string[]} [payment_status]
|
|
292
|
-
* @property {string[]} [invoice_type]
|
|
293
|
-
* @property {string[]} [company_id]
|
|
325
|
+
* @property {string[]} [payment_status] - List of payment statuses to filter by.
|
|
326
|
+
* @property {string[]} [invoice_type] - List of invoice types to filter by.
|
|
327
|
+
* @property {string[]} [company_id] - List of company IDs to filter by.
|
|
294
328
|
*/
|
|
295
329
|
/**
|
|
296
330
|
* @typedef InvoiceListingPayloadData
|
|
297
|
-
* @property {number} [page_size]
|
|
298
|
-
* @property {number} [page]
|
|
299
|
-
* @property {string} [start_date]
|
|
300
|
-
* @property {string} [end_date]
|
|
301
|
-
* @property {string} [search]
|
|
331
|
+
* @property {number} [page_size] - The number of items per page for pagination.
|
|
332
|
+
* @property {number} [page] - The page number for pagination.
|
|
333
|
+
* @property {string} [start_date] - The start date for the invoice listing filter.
|
|
334
|
+
* @property {string} [end_date] - The end date for the invoice listing filter.
|
|
335
|
+
* @property {string} [search] - Search term for filtering invoices.
|
|
302
336
|
* @property {InoviceListingPayloadDataFilters} [filters]
|
|
303
337
|
*/
|
|
304
338
|
/**
|
|
@@ -307,36 +341,40 @@ export = FinancePlatformModel;
|
|
|
307
341
|
*/
|
|
308
342
|
/**
|
|
309
343
|
* @typedef UnpaidInvoiceDataItems
|
|
310
|
-
* @property {number} [total_unpaid_invoice_count]
|
|
311
|
-
* @property {string} [currency]
|
|
312
|
-
* @property {number} [total_unpaid_amount]
|
|
344
|
+
* @property {number} [total_unpaid_invoice_count] - The total count of unpaid invoices.
|
|
345
|
+
* @property {string} [currency] - The currency used for unpaid invoices.
|
|
346
|
+
* @property {number} [total_unpaid_amount] - The total amount of unpaid invoices.
|
|
313
347
|
*/
|
|
314
348
|
/**
|
|
315
349
|
* @typedef InvoiceListingResponseItems
|
|
316
|
-
* @property {number} [amount]
|
|
317
|
-
* @property {string} [company]
|
|
318
|
-
* @property {string} [status]
|
|
319
|
-
*
|
|
320
|
-
* @property {string} [
|
|
321
|
-
* @property {string} [
|
|
322
|
-
* @property {string} [
|
|
323
|
-
* @property {string} [
|
|
324
|
-
* @property {
|
|
325
|
-
* @property {
|
|
350
|
+
* @property {number} [amount] - The amount of the invoice.
|
|
351
|
+
* @property {string} [company] - The name of the company associated with the invoice.
|
|
352
|
+
* @property {string} [status] - The current status of the invoice (e.g.,
|
|
353
|
+
* 'paid', 'unpaid').
|
|
354
|
+
* @property {string} [due_date] - The due date of the invoice.
|
|
355
|
+
* @property {string} [invoice_date] - The date when the invoice was issued.
|
|
356
|
+
* @property {string} [invoice_type] - The type of invoice.
|
|
357
|
+
* @property {string} [period] - The period covered by the invoice.
|
|
358
|
+
* @property {string} [invoice_number] - The invoice number.
|
|
359
|
+
* @property {boolean} [is_downloadable] - Indicates if the invoice is available
|
|
360
|
+
* for download.
|
|
361
|
+
* @property {string} [invoice_id] - The unique identifier of the invoice.
|
|
326
362
|
* @property {Currency} [currency]
|
|
327
363
|
*/
|
|
328
364
|
/**
|
|
329
365
|
* @typedef InvoiceListingResponse
|
|
330
|
-
* @property {boolean} [success]
|
|
331
|
-
* @property {string[]} [headers]
|
|
366
|
+
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
367
|
+
* @property {string[]} [headers] - Headers related to the invoice listing response.
|
|
332
368
|
* @property {UnpaidInvoiceDataItems} [unpaid_invoice_data]
|
|
333
|
-
* @property {InvoiceListingResponseItems[]} [items]
|
|
369
|
+
* @property {InvoiceListingResponseItems[]} [items] - List of invoice items in
|
|
370
|
+
* the response.
|
|
334
371
|
* @property {Page} [page]
|
|
335
|
-
* @property {number} [item_count]
|
|
372
|
+
* @property {number} [item_count] - The total number of invoice items in the response.
|
|
336
373
|
*/
|
|
337
374
|
/**
|
|
338
375
|
* @typedef InvoicePdfPayloadData
|
|
339
|
-
* @property {string[]} [invoice_number]
|
|
376
|
+
* @property {string[]} [invoice_number] - List of invoice numbers for which
|
|
377
|
+
* PDFs are requested.
|
|
340
378
|
*/
|
|
341
379
|
/**
|
|
342
380
|
* @typedef InvoicePdfReq
|
|
@@ -344,15 +382,18 @@ export = FinancePlatformModel;
|
|
|
344
382
|
*/
|
|
345
383
|
/**
|
|
346
384
|
* @typedef InvoicePdfResponse
|
|
347
|
-
* @property {boolean} [success]
|
|
348
|
-
*
|
|
349
|
-
* @property {string[]} [
|
|
385
|
+
* @property {boolean} [success] - Indicates whether the PDF generation request
|
|
386
|
+
* was successful.
|
|
387
|
+
* @property {string[]} [data] - List of URLs or paths to the generated PDF files.
|
|
388
|
+
* @property {string[]} [error] - List of errors encountered while generating the PDFs.
|
|
350
389
|
*/
|
|
351
390
|
/**
|
|
352
391
|
* @typedef IsCnRefundMethodData
|
|
353
|
-
* @property {string} [affiliate_id]
|
|
354
|
-
*
|
|
355
|
-
* @property {
|
|
392
|
+
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
393
|
+
* application as affiliate_id associated with the seller.
|
|
394
|
+
* @property {boolean} [toggle_edit_required] - Indicates whether editing the
|
|
395
|
+
* refund method is required.
|
|
396
|
+
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
356
397
|
*/
|
|
357
398
|
/**
|
|
358
399
|
* @typedef IsCnRefundMethodReq
|
|
@@ -360,29 +401,37 @@ export = FinancePlatformModel;
|
|
|
360
401
|
*/
|
|
361
402
|
/**
|
|
362
403
|
* @typedef IsCnRefundMethodResponseData
|
|
363
|
-
* @property {boolean} [is_first_time_user]
|
|
404
|
+
* @property {boolean} [is_first_time_user] - Indicates whether the seller for
|
|
405
|
+
* specific sale channel is using the refund method for the first time.
|
|
364
406
|
*/
|
|
365
407
|
/**
|
|
366
408
|
* @typedef IsCnRefundMethodResponse
|
|
367
|
-
* @property {boolean} [success]
|
|
409
|
+
* @property {boolean} [success] - Indicates whether the request to determine
|
|
410
|
+
* the refund method was successful.
|
|
368
411
|
* @property {IsCnRefundMethodResponseData} [data]
|
|
369
412
|
*/
|
|
370
413
|
/**
|
|
371
414
|
* @typedef CreditNoteConfigNotificationEvents
|
|
372
|
-
* @property {number} [expiration_reminder_to_customer]
|
|
415
|
+
* @property {number} [expiration_reminder_to_customer] - Number of days before
|
|
416
|
+
* the expiration date to send a reminder notification to the customer.
|
|
373
417
|
*/
|
|
374
418
|
/**
|
|
375
419
|
* @typedef CreateSellerCreditNoteConfig
|
|
376
|
-
* @property {boolean} [is_cn_as_refund_method]
|
|
377
|
-
*
|
|
378
|
-
* @property {string
|
|
379
|
-
*
|
|
420
|
+
* @property {boolean} [is_cn_as_refund_method] - Indicates if the credit note
|
|
421
|
+
* is used as a refund method.
|
|
422
|
+
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
423
|
+
* application as affiliate_id associated with the seller.
|
|
424
|
+
* @property {string[]} [source_channel] - List of source channels associated
|
|
425
|
+
* with the credit note configuration.
|
|
426
|
+
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
380
427
|
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
381
|
-
* @property {string} [sales_channel_name]
|
|
382
|
-
* @property {string[]} [ordering_channel]
|
|
383
|
-
*
|
|
384
|
-
* @property {
|
|
385
|
-
* @property {string
|
|
428
|
+
* @property {string} [sales_channel_name] - Name of the sales channel.
|
|
429
|
+
* @property {string[]} [ordering_channel] - List of ordering channels
|
|
430
|
+
* associated with the credit note configuration.
|
|
431
|
+
* @property {number} [validity] - Validity period of the credit note in days.
|
|
432
|
+
* @property {string} [currency_type] - Type of currency used for the credit note.
|
|
433
|
+
* @property {string[]} [slug_values] - List of slug values associated with the
|
|
434
|
+
* credit note configuration.
|
|
386
435
|
*/
|
|
387
436
|
/**
|
|
388
437
|
* @typedef CreateSellerCreditNoteConfigReq
|
|
@@ -390,14 +439,18 @@ export = FinancePlatformModel;
|
|
|
390
439
|
*/
|
|
391
440
|
/**
|
|
392
441
|
* @typedef CreateSellerCreditNoteConfigResponse
|
|
393
|
-
* @property {boolean} [success]
|
|
394
|
-
*
|
|
442
|
+
* @property {boolean} [success] - Indicates if the credit note configuration
|
|
443
|
+
* creation was successful.
|
|
444
|
+
* @property {string} [message] - Additional information or message about the
|
|
445
|
+
* credit note configuration creation process.
|
|
395
446
|
*/
|
|
396
447
|
/**
|
|
397
448
|
* @typedef DeleteConfig
|
|
398
|
-
* @property {string} [affiliate_id]
|
|
399
|
-
*
|
|
400
|
-
* @property {
|
|
449
|
+
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
450
|
+
* application as affiliate_id associated with the seller.
|
|
451
|
+
* @property {string[]} [slug_values] - List of slug values associated with the
|
|
452
|
+
* credit note configuration.
|
|
453
|
+
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
401
454
|
*/
|
|
402
455
|
/**
|
|
403
456
|
* @typedef DeleteConfigReq
|
|
@@ -405,22 +458,26 @@ export = FinancePlatformModel;
|
|
|
405
458
|
*/
|
|
406
459
|
/**
|
|
407
460
|
* @typedef DeleteConfigResponse
|
|
408
|
-
* @property {boolean} [success]
|
|
409
|
-
* @property {string} [message]
|
|
461
|
+
* @property {boolean} [success] - Indicates if the configuration deletion was successful.
|
|
462
|
+
* @property {string} [message] - Additional information or message about the
|
|
463
|
+
* configuration deletion process.
|
|
410
464
|
*/
|
|
411
465
|
/**
|
|
412
466
|
* @typedef ChannelDisplayNameItems
|
|
413
|
-
* @property {string} [key]
|
|
414
|
-
* @property {string} [value]
|
|
467
|
+
* @property {string} [key] - The unique key identifying the channel.
|
|
468
|
+
* @property {string} [value] - The display name of the channel associated with the key.
|
|
415
469
|
*/
|
|
416
470
|
/**
|
|
417
471
|
* @typedef ChannelDisplayNameResponse
|
|
418
|
-
* @property {boolean} [success]
|
|
419
|
-
*
|
|
472
|
+
* @property {boolean} [success] - Indicates if the retrieval of channel display
|
|
473
|
+
* names was successful.
|
|
474
|
+
* @property {ChannelDisplayNameItems[]} [items] - List of items containing
|
|
475
|
+
* key-value pairs for channel display names.
|
|
420
476
|
*/
|
|
421
477
|
/**
|
|
422
478
|
* @typedef CnReferenceNumber
|
|
423
|
-
* @property {string} [cn_reference_number]
|
|
479
|
+
* @property {string} [cn_reference_number] - The unique reference number of the
|
|
480
|
+
* credit note.
|
|
424
481
|
*/
|
|
425
482
|
/**
|
|
426
483
|
* @typedef GetPdfUrlViewReq
|
|
@@ -428,12 +485,15 @@ export = FinancePlatformModel;
|
|
|
428
485
|
*/
|
|
429
486
|
/**
|
|
430
487
|
* @typedef GetPdfUrlViewResponseData
|
|
431
|
-
* @property {string} [s3_pdf_link]
|
|
432
|
-
*
|
|
488
|
+
* @property {string} [s3_pdf_link] - The URL link where credit nore pdf stored
|
|
489
|
+
* to view and download.
|
|
490
|
+
* @property {string} [cn_reference_number] - The unique reference number of the
|
|
491
|
+
* credit note.
|
|
433
492
|
*/
|
|
434
493
|
/**
|
|
435
494
|
* @typedef GetPdfUrlViewResponse
|
|
436
|
-
* @property {boolean} [success]
|
|
495
|
+
* @property {boolean} [success] - Indicates if the retrieval of the pdf URL was
|
|
496
|
+
* successful.
|
|
437
497
|
* @property {GetPdfUrlViewResponseData} [data]
|
|
438
498
|
*/
|
|
439
499
|
/**
|
|
@@ -442,51 +502,61 @@ export = FinancePlatformModel;
|
|
|
442
502
|
*/
|
|
443
503
|
/**
|
|
444
504
|
* @typedef CnDetails
|
|
445
|
-
* @property {string} [staff_id]
|
|
446
|
-
* @property {string} [expiry_date]
|
|
447
|
-
* @property {string} [channel_of_issuance]
|
|
448
|
-
*
|
|
449
|
-
* @property {string} [
|
|
450
|
-
* @property {string} [
|
|
451
|
-
* @property {string} [
|
|
452
|
-
*
|
|
453
|
-
* @property {string} [
|
|
505
|
+
* @property {string} [staff_id] - ID of the staff member associated with the credit note.
|
|
506
|
+
* @property {string} [expiry_date] - Expiry date of the credit note.
|
|
507
|
+
* @property {string} [channel_of_issuance] - Channel through which the credit
|
|
508
|
+
* note was issued.
|
|
509
|
+
* @property {string} [order_id] - Order ID of order for which credit note created.
|
|
510
|
+
* @property {string} [date_issued] - Date when the credit note was issued.
|
|
511
|
+
* @property {string} [ordering_channel] - Ordering channel associated with the
|
|
512
|
+
* credit note.
|
|
513
|
+
* @property {string} [shipment_id] - Shipment Id associated with the credit note.
|
|
514
|
+
* @property {string} [store_id] - Store Id associated with the credit note.
|
|
515
|
+
* @property {string} [invoice_number] - Invoice number associated with the credit note.
|
|
454
516
|
*/
|
|
455
517
|
/**
|
|
456
518
|
* @typedef RedemptionDetails
|
|
457
|
-
* @property {Object} [meta]
|
|
458
|
-
* @property {string} [staff_id]
|
|
459
|
-
* @property {string} [created_at]
|
|
460
|
-
* @property {string} [order_id]
|
|
461
|
-
* @property {string} [store_id]
|
|
462
|
-
* @property {string} [shipment_id]
|
|
463
|
-
*
|
|
464
|
-
* @property {
|
|
465
|
-
*
|
|
519
|
+
* @property {Object} [meta] - Additional metadata related to the redemption details.
|
|
520
|
+
* @property {string} [staff_id] - ID of the staff member who processed the redemption.
|
|
521
|
+
* @property {string} [created_at] - Date and time when the redemption was processed.
|
|
522
|
+
* @property {string} [order_id] - Order Id of the order associated with the redemption.
|
|
523
|
+
* @property {string} [store_id] - Store Id of the order associated with the redemption.
|
|
524
|
+
* @property {string} [shipment_id] - Shipment Id of the order associated with
|
|
525
|
+
* the redemption.
|
|
526
|
+
* @property {string} [ordering_channel] - Ordering channel associated with the
|
|
527
|
+
* redemption.
|
|
528
|
+
* @property {number} [amount_debited] - Amount debited from the credit note
|
|
529
|
+
* during redemption.
|
|
530
|
+
* @property {string} [invoice_number] - Invoice number associated with the redemption.
|
|
466
531
|
*/
|
|
467
532
|
/**
|
|
468
533
|
* @typedef CreditNoteDetails
|
|
469
|
-
* @property {string} [currency]
|
|
470
|
-
* @property {number} [current_amount_used]
|
|
471
|
-
* @property {string} [cn_status]
|
|
472
|
-
* @property {string} [customer_mobile_number]
|
|
473
|
-
*
|
|
534
|
+
* @property {string} [currency] - Currency in which the credit note is issued.
|
|
535
|
+
* @property {number} [current_amount_used] - Current amount used from the credit note.
|
|
536
|
+
* @property {string} [cn_status] - Status of the credit note.
|
|
537
|
+
* @property {string} [customer_mobile_number] - Mobile number of the customer
|
|
538
|
+
* associated with the credit note.
|
|
539
|
+
* @property {string} [cn_reference_number] - Unique Credit number of the credit note.
|
|
474
540
|
* @property {CnDetails} [cn_details]
|
|
475
|
-
* @property {RedemptionDetails[]} [redemption_details]
|
|
476
|
-
*
|
|
477
|
-
* @property {number} [
|
|
478
|
-
* @property {number} [
|
|
541
|
+
* @property {RedemptionDetails[]} [redemption_details] - List of redemption
|
|
542
|
+
* details associated with the credit note.
|
|
543
|
+
* @property {number} [remaining_cn_amount] - Remaining amount left in the credit note.
|
|
544
|
+
* @property {number} [available_cn_balance] - Available balance in the credit note.
|
|
545
|
+
* @property {number} [cn_amount] - Total amount of the credit note.
|
|
479
546
|
*/
|
|
480
547
|
/**
|
|
481
548
|
* @typedef CreditNoteDetailsResponse
|
|
482
|
-
* @property {boolean} [success]
|
|
549
|
+
* @property {boolean} [success] - Indicates if the retrieval of credit note
|
|
550
|
+
* details was successful.
|
|
483
551
|
* @property {CreditNoteDetails} [data]
|
|
484
552
|
*/
|
|
485
553
|
/**
|
|
486
554
|
* @typedef GetCustomerCreditBalance
|
|
487
|
-
* @property {string} [affiliate_id]
|
|
488
|
-
*
|
|
489
|
-
* @property {
|
|
555
|
+
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
556
|
+
* application as affiliate_id associated with the seller.
|
|
557
|
+
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
558
|
+
* @property {string} [customer_mobile_number] - Mobile number of the customer
|
|
559
|
+
* for whom the credit balance is requested.
|
|
490
560
|
*/
|
|
491
561
|
/**
|
|
492
562
|
* @typedef GetCustomerCreditBalanceReq
|
|
@@ -494,12 +564,14 @@ export = FinancePlatformModel;
|
|
|
494
564
|
*/
|
|
495
565
|
/**
|
|
496
566
|
* @typedef GetCustomerCreditBalanceResponseData
|
|
497
|
-
* @property {string} [customer_mobile_number]
|
|
498
|
-
* @property {number} [total_credited_balance]
|
|
567
|
+
* @property {string} [customer_mobile_number] - Mobile number of the customer.
|
|
568
|
+
* @property {number} [total_credited_balance] - Total credited balance
|
|
569
|
+
* available for the customer.
|
|
499
570
|
*/
|
|
500
571
|
/**
|
|
501
572
|
* @typedef GetCustomerCreditBalanceResponse
|
|
502
|
-
* @property {boolean} [success]
|
|
573
|
+
* @property {boolean} [success] - Indicates if the retrieval of customer credit
|
|
574
|
+
* balance was successful.
|
|
503
575
|
* @property {GetCustomerCreditBalanceResponseData} [data]
|
|
504
576
|
*/
|
|
505
577
|
/**
|
|
@@ -508,47 +580,60 @@ export = FinancePlatformModel;
|
|
|
508
580
|
*/
|
|
509
581
|
/**
|
|
510
582
|
* @typedef GetCnConfigResponseMeta
|
|
511
|
-
* @property {string} [reason]
|
|
512
|
-
* @property {string[]} [source_channel]
|
|
583
|
+
* @property {string} [reason] - Reason associated with the configuration response.
|
|
584
|
+
* @property {string[]} [source_channel] - List of source channels associated
|
|
585
|
+
* with the credit note configuration.
|
|
513
586
|
*/
|
|
514
587
|
/**
|
|
515
588
|
* @typedef GetCnConfigResponseData
|
|
516
|
-
* @property {boolean} [is_cn_as_refund_method]
|
|
517
|
-
*
|
|
589
|
+
* @property {boolean} [is_cn_as_refund_method] - Indicates if the credit note
|
|
590
|
+
* is configured as a refund method.
|
|
591
|
+
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
592
|
+
* application as affiliate_id associated with the seller.
|
|
518
593
|
* @property {Object} [meta]
|
|
519
|
-
* @property {number} [seller_id]
|
|
594
|
+
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
520
595
|
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
521
|
-
* @property {number} [validity]
|
|
522
|
-
*
|
|
523
|
-
* @property {string} [
|
|
596
|
+
* @property {number} [validity] - Validity period of the credit note
|
|
597
|
+
* configuration in days.
|
|
598
|
+
* @property {string[]} [redemption_ordering_channel] - List of ordering
|
|
599
|
+
* channels associated with credit note redemption.
|
|
600
|
+
* @property {string} [currency_type] - Type of currency used for the credit note.
|
|
524
601
|
*/
|
|
525
602
|
/**
|
|
526
603
|
* @typedef GetCnConfigResponse
|
|
527
|
-
* @property {boolean} [success]
|
|
604
|
+
* @property {boolean} [success] - Indicates if the retrieval of credit note
|
|
605
|
+
* configuration was successful.
|
|
528
606
|
* @property {GetCnConfigResponseData} [data]
|
|
529
607
|
*/
|
|
530
608
|
/**
|
|
531
609
|
* @typedef CnGenerateReportFilters
|
|
532
|
-
* @property {string[]} [staff_id]
|
|
533
|
-
* @property {string[]} [channel_of_issuance]
|
|
534
|
-
*
|
|
535
|
-
* @property {string[]} [
|
|
536
|
-
*
|
|
537
|
-
* @property {string[]} [
|
|
538
|
-
*
|
|
610
|
+
* @property {string[]} [staff_id] - Array of staff IDs for filtering credit note reports.
|
|
611
|
+
* @property {string[]} [channel_of_issuance] - Array of channels through which
|
|
612
|
+
* credit notes were issued.
|
|
613
|
+
* @property {string[]} [utilisation] - Array of utilisation types for filtering
|
|
614
|
+
* credit note reports.
|
|
615
|
+
* @property {string[]} [ordering_channel] - Array of ordering channels
|
|
616
|
+
* associated with credit note reports.
|
|
617
|
+
* @property {number[]} [store_id] - Array of store IDs for filtering credit note reports.
|
|
618
|
+
* @property {string[]} [type_of_transaction] - Array of transaction types for
|
|
619
|
+
* filtering credit note reports.
|
|
620
|
+
* @property {string[]} [issuance_channel] - Array of issuance channels for
|
|
621
|
+
* filtering credit note reports.
|
|
539
622
|
*/
|
|
540
623
|
/**
|
|
541
624
|
* @typedef CnGenerateReport
|
|
542
|
-
* @property {number} [page]
|
|
543
|
-
* @property {string} [end_date]
|
|
544
|
-
* @property {number} [page_size]
|
|
625
|
+
* @property {number} [page] - Page number of the credit note report.
|
|
626
|
+
* @property {string} [end_date] - End date for filtering credit note data.
|
|
627
|
+
* @property {number} [page_size] - Number of items per page in the credit note report.
|
|
545
628
|
* @property {CnGenerateReportFilters} [filters]
|
|
546
|
-
* @property {string} [affiliate_id]
|
|
629
|
+
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
630
|
+
* application as affiliate_id associated with the seller.
|
|
547
631
|
* @property {GenerateReportFilters} [meta]
|
|
548
|
-
* @property {string} [search]
|
|
549
|
-
* @property {string} [report_id]
|
|
550
|
-
* @property {string} [search_type]
|
|
551
|
-
*
|
|
632
|
+
* @property {string} [search] - Search query to filter credit note data by keyword.
|
|
633
|
+
* @property {string} [report_id] - Unique identifier for the credit note report.
|
|
634
|
+
* @property {string} [search_type] - Type of search criteria used for filtering
|
|
635
|
+
* credit note data.
|
|
636
|
+
* @property {string} [start_date] - Start date for filtering credit note data.
|
|
552
637
|
*/
|
|
553
638
|
/**
|
|
554
639
|
* @typedef GenerateReportCustomerCnReq
|
|
@@ -556,28 +641,35 @@ export = FinancePlatformModel;
|
|
|
556
641
|
*/
|
|
557
642
|
/**
|
|
558
643
|
* @typedef CnGenerateReportItems
|
|
559
|
-
* @property {string} [expiry_date]
|
|
560
|
-
* @property {string} [status]
|
|
561
|
-
* @property {number} [total_amount]
|
|
562
|
-
* @property {string} [order_id]
|
|
563
|
-
*
|
|
564
|
-
* @property {string} [
|
|
565
|
-
* @property {string} [
|
|
566
|
-
*
|
|
644
|
+
* @property {string} [expiry_date] - Expiry date of the credit note item.
|
|
645
|
+
* @property {string} [status] - Status of the credit note item.
|
|
646
|
+
* @property {number} [total_amount] - Total amount of the credit note item.
|
|
647
|
+
* @property {string} [order_id] - Order ID of the order associated with the
|
|
648
|
+
* credit note item.
|
|
649
|
+
* @property {string} [date_issued] - Date when the credit note item was issued.
|
|
650
|
+
* @property {string} [shipment_id] - Shipment ID of the order associated with
|
|
651
|
+
* the credit note item.
|
|
652
|
+
* @property {string} [invoice_number] - Invoice number associated with the
|
|
653
|
+
* credit note item.
|
|
654
|
+
* @property {string} [credit_note_number] - Unique number of the credit note item.
|
|
567
655
|
*/
|
|
568
656
|
/**
|
|
569
657
|
* @typedef GenerateReportCustomerCnResponseData
|
|
570
|
-
* @property {boolean} [success]
|
|
571
|
-
*
|
|
572
|
-
* @property {
|
|
573
|
-
*
|
|
574
|
-
* @property {
|
|
658
|
+
* @property {boolean} [success] - Indicates if the credit note report
|
|
659
|
+
* generation was successful.
|
|
660
|
+
* @property {string} [message] - Additional message or information related to
|
|
661
|
+
* the credit note report.
|
|
662
|
+
* @property {CnGenerateReportItems[]} [items] - List of credit note items in the report.
|
|
663
|
+
* @property {Object} [row_header_display_order] - Display order for row headers
|
|
664
|
+
* in the report.
|
|
665
|
+
* @property {string} [end_date] - End date used in the credit note report.
|
|
575
666
|
* @property {Page} [page]
|
|
576
|
-
* @property {string[]} [headers]
|
|
577
|
-
* @property {string[]} [primary_headers]
|
|
578
|
-
*
|
|
579
|
-
* @property {string} [
|
|
580
|
-
* @property {
|
|
667
|
+
* @property {string[]} [headers] - Headers included in the credit note report.
|
|
668
|
+
* @property {string[]} [primary_headers] - Primary headers used in the credit
|
|
669
|
+
* note report.
|
|
670
|
+
* @property {string[]} [allowed_filters] - Allowed filters for the credit note report.
|
|
671
|
+
* @property {string} [start_date] - Start date used in the credit note report.
|
|
672
|
+
* @property {number} [item_count] - Total count of credit note items in the report.
|
|
581
673
|
*/
|
|
582
674
|
/**
|
|
583
675
|
* @typedef GenerateReportCustomerCnResponse
|
|
@@ -585,14 +677,17 @@ export = FinancePlatformModel;
|
|
|
585
677
|
*/
|
|
586
678
|
/**
|
|
587
679
|
* @typedef CnDownloadReport
|
|
588
|
-
* @property {number} [page]
|
|
589
|
-
* @property {string} [start_date]
|
|
590
|
-
*
|
|
591
|
-
* @property {string} [
|
|
592
|
-
* @property {string} [
|
|
593
|
-
*
|
|
594
|
-
* @property {string} [
|
|
595
|
-
* @property {
|
|
680
|
+
* @property {number} [page] - Page number of the download report.
|
|
681
|
+
* @property {string} [start_date] - Start date for filtering credit note data
|
|
682
|
+
* in the report.
|
|
683
|
+
* @property {string} [end_date] - End date for filtering credit note data in the report.
|
|
684
|
+
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
685
|
+
* application as affiliate_id associated with the seller.
|
|
686
|
+
* @property {string} [search] - Search query to filter credit note data by keyword.
|
|
687
|
+
* @property {string} [status] - Status of the credit note data in the report.
|
|
688
|
+
* @property {string} [search_type] - Type of search criteria used for filtering
|
|
689
|
+
* credit note data.
|
|
690
|
+
* @property {number} [page_size] - Number of items per page in the download report.
|
|
596
691
|
*/
|
|
597
692
|
/**
|
|
598
693
|
* @typedef DownloadReportCustomerCnReq
|
|
@@ -600,67 +695,70 @@ export = FinancePlatformModel;
|
|
|
600
695
|
*/
|
|
601
696
|
/**
|
|
602
697
|
* @typedef DownloadReportResponseData
|
|
603
|
-
* @property {string} [report_config_id]
|
|
604
|
-
* @property {string} [full_name]
|
|
605
|
-
* @property {string} [requested_by]
|
|
606
|
-
* @property {string} [start_date]
|
|
607
|
-
* @property {string} [end_date]
|
|
608
|
-
* @property {Object} [request_dict]
|
|
609
|
-
*
|
|
610
|
-
* @property {string} [
|
|
611
|
-
* @property {
|
|
612
|
-
* @property {
|
|
613
|
-
* @property {string} [
|
|
614
|
-
* @property {string} [
|
|
615
|
-
* @property {string} [
|
|
616
|
-
* @property {
|
|
698
|
+
* @property {string} [report_config_id] - Unique identifier for the report configuration.
|
|
699
|
+
* @property {string} [full_name] - Full name associated with the report request.
|
|
700
|
+
* @property {string} [requested_by] - User who requested the report.
|
|
701
|
+
* @property {string} [start_date] - Start date used in the report.
|
|
702
|
+
* @property {string} [end_date] - End date used in the report.
|
|
703
|
+
* @property {Object} [request_dict] - Dictionary containing request parameters
|
|
704
|
+
* for the report.
|
|
705
|
+
* @property {string} [download_link] - Download link for accessing the generated report.
|
|
706
|
+
* @property {string} [created_at] - Date and time when the report was created.
|
|
707
|
+
* @property {Object} [meta] - Additional metadata associated with the report.
|
|
708
|
+
* @property {string} [msg] - Message related to the report status or generation.
|
|
709
|
+
* @property {string} [report_name] - Name of the generated report.
|
|
710
|
+
* @property {string} [status] - Status of the report.
|
|
711
|
+
* @property {string} [display_name] - Display name of the report.
|
|
712
|
+
* @property {Object} [filters] - Filters applied to generate the report.
|
|
617
713
|
*/
|
|
618
714
|
/**
|
|
619
715
|
* @typedef DownloadReportCustomerCnResponse
|
|
620
|
-
* @property {DownloadReportResponseData[]} [items]
|
|
621
|
-
* @property {
|
|
622
|
-
* @property {number} [item_count]
|
|
716
|
+
* @property {DownloadReportResponseData[]} [items] - List of download report data items.
|
|
717
|
+
* @property {number} [item_count] - Total count of items in the download report.
|
|
623
718
|
* @property {Page} [page]
|
|
624
719
|
*/
|
|
625
720
|
/**
|
|
626
721
|
* @typedef GetReportingFilters
|
|
627
|
-
* @property {string} [text]
|
|
628
|
-
* @property {string} [type]
|
|
629
|
-
*
|
|
630
|
-
* @property {
|
|
722
|
+
* @property {string} [text] - Display text for the filter.
|
|
723
|
+
* @property {string} [type] - Type of the fields like seach, filter(e.g.,
|
|
724
|
+
* single, multi select).
|
|
725
|
+
* @property {Object[]} [options] - Options available for the filter.
|
|
726
|
+
* @property {string} [value] - Value to be pass in response select from options.
|
|
631
727
|
*/
|
|
632
728
|
/**
|
|
633
729
|
* @typedef GetReportingNestedFilters
|
|
634
|
-
* @property {string} [text]
|
|
635
|
-
* @property {Object[]} [options]
|
|
636
|
-
* @property {boolean} [required]
|
|
637
|
-
* @property {string} [placeholder_text]
|
|
638
|
-
* @property {string} [type]
|
|
639
|
-
* @property {string} [value]
|
|
730
|
+
* @property {string} [text] - Display text for the nested filter.
|
|
731
|
+
* @property {Object[]} [options] - Options available for the nested filter.
|
|
732
|
+
* @property {boolean} [required] - Indicates if the nested filter is required.
|
|
733
|
+
* @property {string} [placeholder_text] - Placeholder text for the nested filter.
|
|
734
|
+
* @property {string} [type] - Type of the nested filter (e.g., single, multi select).
|
|
735
|
+
* @property {string} [value] - Value to be pass in response select from options.
|
|
640
736
|
*/
|
|
641
737
|
/**
|
|
642
738
|
* @typedef GetReportingFiltersReasonOptions
|
|
643
|
-
* @property {string} [text]
|
|
644
|
-
* @property {string} [value]
|
|
645
|
-
* @property {string} [placeholder_text]
|
|
739
|
+
* @property {string} [text] - Display text for the reason option.
|
|
740
|
+
* @property {string} [value] - Value of the reason option.
|
|
741
|
+
* @property {string} [placeholder_text] - Placeholder text for the reason option.
|
|
646
742
|
*/
|
|
647
743
|
/**
|
|
648
744
|
* @typedef GetReportingFiltersReason
|
|
649
|
-
* @property {string} [text]
|
|
650
|
-
* @property {string} [type]
|
|
651
|
-
* @property {string} [value]
|
|
652
|
-
* @property {GetReportingFiltersReasonOptions[]} [options]
|
|
745
|
+
* @property {string} [text] - Display text for the reason.
|
|
746
|
+
* @property {string} [type] - Type of the reason.
|
|
747
|
+
* @property {string} [value] - Value to be pass in response.
|
|
748
|
+
* @property {GetReportingFiltersReasonOptions[]} [options] - Options available
|
|
749
|
+
* for the reasons select from options.
|
|
653
750
|
*/
|
|
654
751
|
/**
|
|
655
752
|
* @typedef GetReportingFiltersResponse
|
|
656
753
|
* @property {GetReportingFiltersReason} [reason]
|
|
657
754
|
* @property {GetReportingFilters} [search]
|
|
658
|
-
* @property {GetReportingNestedFilters[]} [filters]
|
|
755
|
+
* @property {GetReportingNestedFilters[]} [filters] - Array of nested filter objects.
|
|
659
756
|
* @property {GetReportingFilters} [status]
|
|
660
757
|
*/
|
|
661
758
|
/**
|
|
662
759
|
* @typedef InvoicePaymentOptionsPayloadData
|
|
663
|
-
* @property {string} [
|
|
760
|
+
* @property {string[]} [invoice_numbers] - List of invoice numbers for which
|
|
761
|
+
* payment options are being requested.
|
|
664
762
|
*/
|
|
665
763
|
/**
|
|
666
764
|
* @typedef InvoicePaymentOptionsReq
|
|
@@ -668,79 +766,104 @@ export = FinancePlatformModel;
|
|
|
668
766
|
*/
|
|
669
767
|
/**
|
|
670
768
|
* @typedef InvoicePaymentOptionsResponsePayableAmounts
|
|
671
|
-
* @property {number} [amount]
|
|
672
|
-
* @property {string} [amount_key]
|
|
673
|
-
*
|
|
769
|
+
* @property {number} [amount] - Amount that is payable for the invoice.
|
|
770
|
+
* @property {string} [amount_key] - Key associated with the payable amount for
|
|
771
|
+
* identification.
|
|
772
|
+
* @property {string} [header] - Header describing the payable amount.
|
|
674
773
|
*/
|
|
675
774
|
/**
|
|
676
775
|
* @typedef InvoicePaymentOptionsResponseDeductedAmounts
|
|
677
|
-
* @property {number} [amount]
|
|
678
|
-
* @property {string} [header]
|
|
679
|
-
* @property {string} [amount_key]
|
|
680
|
-
*
|
|
681
|
-
* @property {
|
|
776
|
+
* @property {number} [amount] - Amount deducted from the invoice.
|
|
777
|
+
* @property {string} [header] - Header describing the deducted amount.
|
|
778
|
+
* @property {string} [amount_key] - Key associated with the deducted amount for
|
|
779
|
+
* identification.
|
|
780
|
+
* @property {boolean} [is_payable] - Indicates whether the deducted amount is payable.
|
|
781
|
+
* @property {string} [symbol] - Currency symbol associated with the deducted amount.
|
|
682
782
|
*/
|
|
683
783
|
/**
|
|
684
784
|
* @typedef InvoicePaymentOptionsResponseData
|
|
685
|
-
* @property {
|
|
686
|
-
*
|
|
785
|
+
* @property {string} [invoice_number] - Invoice number for which payment
|
|
786
|
+
* options are provided.
|
|
787
|
+
* @property {string} [invoice_type] - Type of the invoice (e.g., 'Seller Fynd',
|
|
788
|
+
* 'Platform Subscription').
|
|
687
789
|
* @property {InvoicePaymentOptionsResponsePayableAmounts[]} [display_amounts]
|
|
688
|
-
*
|
|
689
|
-
*
|
|
790
|
+
* - List of amounts that are payable for the invoice.
|
|
791
|
+
*
|
|
792
|
+
* @property {Object} [total_amount] - Total amount for the invoice.
|
|
793
|
+
* @property {Object} [deducted_amounts] - Amounts deducted from the total,
|
|
794
|
+
* including any associated details.
|
|
690
795
|
* @property {InvoicePaymentOptionsResponsePayableAmounts[]} [payable_amounts]
|
|
796
|
+
* - Amounts that are payable for the invoice.
|
|
797
|
+
*
|
|
798
|
+
* @property {Currency} [currency]
|
|
691
799
|
*/
|
|
692
800
|
/**
|
|
693
801
|
* @typedef InvoicePaymentOptionsResponse
|
|
694
|
-
* @property {string} [reason]
|
|
695
|
-
* @property {InvoicePaymentOptionsResponseData} [data]
|
|
696
|
-
*
|
|
802
|
+
* @property {string} [reason] - Reason for the response or any errors encountered.
|
|
803
|
+
* @property {InvoicePaymentOptionsResponseData[]} [data] - List of data objects
|
|
804
|
+
* containing details about invoice payment options.
|
|
805
|
+
* @property {number} [total_payable_amount] - Total amount payable for the invoices.
|
|
806
|
+
* @property {number} [invoice_count] - Number of invoices included in the response.
|
|
807
|
+
* @property {boolean} [success] - Indicates whether the request to retrieve
|
|
808
|
+
* invoice payment options was successful.
|
|
697
809
|
*/
|
|
698
810
|
/**
|
|
699
811
|
* @typedef PaymentDetail
|
|
700
|
-
* @property {string} [display_name]
|
|
701
|
-
* @property {string} [value]
|
|
812
|
+
* @property {string} [display_name] - Name or label displayed for the payment detail.
|
|
813
|
+
* @property {string} [value] - Value associated with the payment detail (e.g.,
|
|
814
|
+
* amount, transaction ID).
|
|
702
815
|
*/
|
|
703
816
|
/**
|
|
704
817
|
* @typedef PaidInvoicePaymentDetail
|
|
705
|
-
* @property {PaymentDetail[]} [payment_details]
|
|
706
|
-
*
|
|
707
|
-
* @property {
|
|
818
|
+
* @property {PaymentDetail[]} [payment_details] - List of payment details for
|
|
819
|
+
* the invoice.
|
|
820
|
+
* @property {string} [date_of_payment] - Date when the payment was made.
|
|
821
|
+
* @property {number} [amount] - Amount paid towards the invoice.
|
|
708
822
|
*/
|
|
709
823
|
/**
|
|
710
824
|
* @typedef InvoicePaymentDetailsResponseData
|
|
711
|
-
* @property {PaidInvoicePaymentDetail[]} [paid_invoice_payment_details]
|
|
712
|
-
*
|
|
825
|
+
* @property {PaidInvoicePaymentDetail[]} [paid_invoice_payment_details] - List
|
|
826
|
+
* of details for paid invoices.
|
|
827
|
+
* @property {Object[]} [failed_attempts_details] - Details of any failed
|
|
828
|
+
* payment attempts for the invoices.
|
|
713
829
|
*/
|
|
714
830
|
/**
|
|
715
831
|
* @typedef InvoicePaymentDetailsResponse
|
|
716
|
-
* @property {string} [reason]
|
|
832
|
+
* @property {string} [reason] - Reason for the response or any errors encountered.
|
|
717
833
|
* @property {InvoicePaymentDetailsResponseData} [data]
|
|
718
|
-
* @property {boolean} [success]
|
|
719
|
-
*
|
|
834
|
+
* @property {boolean} [success] - Indicates whether the request to retrieve
|
|
835
|
+
* invoice payment details was successful.
|
|
836
|
+
* @property {boolean} [payment_details_visible] - Indicates whether payment
|
|
837
|
+
* details are visible or hidden in the response.
|
|
720
838
|
*/
|
|
721
839
|
/**
|
|
722
840
|
* @typedef InvoiceActivityLogsResponseData
|
|
723
|
-
* @property {string} [performed_by]
|
|
724
|
-
*
|
|
725
|
-
* @property {string} [
|
|
726
|
-
* @property {
|
|
727
|
-
* @property {
|
|
728
|
-
* @property {number} [
|
|
841
|
+
* @property {string} [performed_by] - Identifier of the user or system that
|
|
842
|
+
* performed the activity.
|
|
843
|
+
* @property {string} [status] - Status of the activity (e.g., 'Completed', 'Pending').
|
|
844
|
+
* @property {string} [reason] - Reason for the activity status or any related notes.
|
|
845
|
+
* @property {boolean} [is_resolved] - Indicates whether the activity issue is resolved.
|
|
846
|
+
* @property {number} [retry_attempts] - Number of retry attempts made for the activity.
|
|
847
|
+
* @property {number} [max_retry_attempts] - Maximum number of retry attempts
|
|
848
|
+
* allowed for the activity.
|
|
729
849
|
*/
|
|
730
850
|
/**
|
|
731
851
|
* @typedef InvoiceActivityLogsResponse
|
|
732
|
-
* @property {InvoiceActivityLogsResponseData[]} [data]
|
|
852
|
+
* @property {InvoiceActivityLogsResponseData[]} [data] - List of activity logs
|
|
853
|
+
* related to invoices.
|
|
733
854
|
*/
|
|
734
855
|
/**
|
|
735
856
|
* @typedef InvoiceActivityLogError
|
|
736
|
-
* @property {string} [reason]
|
|
857
|
+
* @property {string} [reason] - Reason for the error or issue encountered with
|
|
858
|
+
* the invoice activity logs.
|
|
737
859
|
*/
|
|
738
860
|
/**
|
|
739
861
|
* @typedef UnlockCreditNoteRequestData
|
|
740
|
-
* @property {string} [seller_id]
|
|
741
|
-
* @property {string[]} [locked_credit_notes]
|
|
742
|
-
* @property {string} [unlock_reason]
|
|
743
|
-
* @property {string} [description]
|
|
862
|
+
* @property {string} [seller_id] - The unique identifier for the seller.
|
|
863
|
+
* @property {string[]} [locked_credit_notes] - A list of credit notes that are locked.
|
|
864
|
+
* @property {string} [unlock_reason] - The reason for unlocking the credit notes.
|
|
865
|
+
* @property {string} [description] - Additional details or comments about the
|
|
866
|
+
* unlock request.
|
|
744
867
|
*/
|
|
745
868
|
/**
|
|
746
869
|
* @typedef UnlockCreditNoteReq
|
|
@@ -748,46 +871,89 @@ export = FinancePlatformModel;
|
|
|
748
871
|
*/
|
|
749
872
|
/**
|
|
750
873
|
* @typedef UnlockCreditNoteResponseData
|
|
751
|
-
* @property {boolean} [is_cn_unlocked]
|
|
752
|
-
* @property {string} [status]
|
|
874
|
+
* @property {boolean} [is_cn_unlocked] - Indicates whether the credit note is unlocked.
|
|
875
|
+
* @property {string} [status] - The current status of the each credit notes.
|
|
753
876
|
*/
|
|
754
877
|
/**
|
|
755
878
|
* @typedef UnlockCreditNoteResponse
|
|
756
|
-
* @property {boolean} [success]
|
|
879
|
+
* @property {boolean} [success] - Indicates whether the credit note unlock
|
|
880
|
+
* request was successful.
|
|
757
881
|
* @property {UnlockCreditNoteResponseData} [data]
|
|
758
882
|
*/
|
|
759
883
|
declare class FinancePlatformModel {
|
|
760
884
|
}
|
|
761
885
|
declare namespace FinancePlatformModel {
|
|
762
|
-
export { OrederFreezeResponse, GenerateReportMeta, GenerateReportFilters, GenerateReportPlatform, GenerateReportReq, Page, Currency, GenerateReportJson, Error, ErrorMeta, ErrorMetaItems, DownloadReport, DownloadReportData, DownloadReportItems, DownloadReportList, GetEngineFilters, GetEngineData, GetEngineReq, GetEngineResponse, GetReason, GetReasonReq, ReasonItem, GetReasonResponse, GetReportListData, GetReportListReq,
|
|
886
|
+
export { OrederFreezeResponse, GenerateReportMeta, GenerateReportFilters, GenerateReportPlatform, GenerateReportReq, Page, Currency, GenerateReportJson, Error, ErrorMeta, ErrorMetaItems, DownloadReport, DownloadReportData, DownloadReportItems, DownloadReportList, GetEngineFilters, GetEngineData, GetEngineReq, GetEngineResponse, GetReason, GetReasonReq, ReasonItem, GetReasonResponse, GetReportListData, GetReportListReq, GetReportListResponse, ReportItem, GetAffiliate, GetAffiliateResponse, DownloadCreditDebitNote, DownloadCreditDebitNoteReq, DownloadCreditDebitNoteResponseData, DownloadCreditDebitNoteResponse, InvoiceBillingItem, PaymentProcessPayload, PaymentProcessReq, PaymentProcessResponse, CreditlineDataPlatformPayload, CreditlineDataPlatformReq, CreditlineDataPlatformResponse, IsCreditlinePayload, IsCreditlinePlatformReq, IsCreditlinePlatformResponse, InvoiceTypePayloadData, InvoiceTypeReq, InvoiceTypeResponseItems, InvoiceTypeResponse, InoviceListingPayloadDataFilters, InvoiceListingPayloadData, InvoiceListingReq, UnpaidInvoiceDataItems, InvoiceListingResponseItems, InvoiceListingResponse, InvoicePdfPayloadData, InvoicePdfReq, InvoicePdfResponse, IsCnRefundMethodData, IsCnRefundMethodReq, IsCnRefundMethodResponseData, IsCnRefundMethodResponse, CreditNoteConfigNotificationEvents, CreateSellerCreditNoteConfig, CreateSellerCreditNoteConfigReq, CreateSellerCreditNoteConfigResponse, DeleteConfig, DeleteConfigReq, DeleteConfigResponse, ChannelDisplayNameItems, ChannelDisplayNameResponse, CnReferenceNumber, GetPdfUrlViewReq, GetPdfUrlViewResponseData, GetPdfUrlViewResponse, CreditNoteDetailsReq, CnDetails, RedemptionDetails, CreditNoteDetails, CreditNoteDetailsResponse, GetCustomerCreditBalance, GetCustomerCreditBalanceReq, GetCustomerCreditBalanceResponseData, GetCustomerCreditBalanceResponse, GetCnConfigReq, GetCnConfigResponseMeta, GetCnConfigResponseData, GetCnConfigResponse, CnGenerateReportFilters, CnGenerateReport, GenerateReportCustomerCnReq, CnGenerateReportItems, GenerateReportCustomerCnResponseData, GenerateReportCustomerCnResponse, CnDownloadReport, DownloadReportCustomerCnReq, DownloadReportResponseData, DownloadReportCustomerCnResponse, GetReportingFilters, GetReportingNestedFilters, GetReportingFiltersReasonOptions, GetReportingFiltersReason, GetReportingFiltersResponse, InvoicePaymentOptionsPayloadData, InvoicePaymentOptionsReq, InvoicePaymentOptionsResponsePayableAmounts, InvoicePaymentOptionsResponseDeductedAmounts, InvoicePaymentOptionsResponseData, InvoicePaymentOptionsResponse, PaymentDetail, PaidInvoicePaymentDetail, InvoicePaymentDetailsResponseData, InvoicePaymentDetailsResponse, InvoiceActivityLogsResponseData, InvoiceActivityLogsResponse, InvoiceActivityLogError, UnlockCreditNoteRequestData, UnlockCreditNoteReq, UnlockCreditNoteResponseData, UnlockCreditNoteResponse };
|
|
763
887
|
}
|
|
764
888
|
/** @returns {OrederFreezeResponse} */
|
|
765
889
|
declare function OrederFreezeResponse(): OrederFreezeResponse;
|
|
766
890
|
type OrederFreezeResponse = {
|
|
891
|
+
/**
|
|
892
|
+
* - Indicates whether the operation was successful or not.
|
|
893
|
+
*/
|
|
767
894
|
success?: boolean;
|
|
895
|
+
/**
|
|
896
|
+
* - Flag indicating if the system is frozen
|
|
897
|
+
* for order management.
|
|
898
|
+
*/
|
|
768
899
|
oms_freeze?: boolean;
|
|
900
|
+
/**
|
|
901
|
+
* - Optional field indicating the data source of
|
|
902
|
+
* the information.
|
|
903
|
+
*/
|
|
769
904
|
source?: string;
|
|
770
905
|
};
|
|
771
906
|
/** @returns {GenerateReportMeta} */
|
|
772
907
|
declare function GenerateReportMeta(): GenerateReportMeta;
|
|
773
908
|
type GenerateReportMeta = {
|
|
909
|
+
/**
|
|
910
|
+
* - The brand name associated with the report meta
|
|
911
|
+
* information.
|
|
912
|
+
*/
|
|
774
913
|
brand?: string;
|
|
914
|
+
/**
|
|
915
|
+
* - The company name associated with the report
|
|
916
|
+
* meta information.
|
|
917
|
+
*/
|
|
775
918
|
company?: string;
|
|
919
|
+
/**
|
|
920
|
+
* - The sale channel name associated with seller.
|
|
921
|
+
*/
|
|
776
922
|
channel?: string;
|
|
777
923
|
};
|
|
778
924
|
/** @returns {GenerateReportFilters} */
|
|
779
925
|
declare function GenerateReportFilters(): GenerateReportFilters;
|
|
780
926
|
type GenerateReportFilters = {
|
|
927
|
+
/**
|
|
928
|
+
* - An array of brand names to filter the report data.
|
|
929
|
+
*/
|
|
781
930
|
brand?: string[];
|
|
931
|
+
/**
|
|
932
|
+
* - An array of company id to filter the report data.
|
|
933
|
+
*/
|
|
782
934
|
company?: string[];
|
|
935
|
+
/**
|
|
936
|
+
* - An array of sale channel names associated
|
|
937
|
+
* with seller to filter the report data.
|
|
938
|
+
*/
|
|
783
939
|
channel?: string[];
|
|
784
940
|
};
|
|
785
941
|
/** @returns {GenerateReportPlatform} */
|
|
786
942
|
declare function GenerateReportPlatform(): GenerateReportPlatform;
|
|
787
943
|
type GenerateReportPlatform = {
|
|
944
|
+
/**
|
|
945
|
+
* - The start date to generate report specific preiod.
|
|
946
|
+
*/
|
|
788
947
|
start_date?: string;
|
|
948
|
+
/**
|
|
949
|
+
* - The end date to generate report specific preiod.
|
|
950
|
+
*/
|
|
789
951
|
end_date?: string;
|
|
790
952
|
meta?: GenerateReportMeta;
|
|
953
|
+
/**
|
|
954
|
+
* - The unique identifier of the generate report
|
|
955
|
+
* where different report configure.
|
|
956
|
+
*/
|
|
791
957
|
report_id?: string;
|
|
792
958
|
filters?: GenerateReportFilters;
|
|
793
959
|
};
|
|
@@ -799,30 +965,76 @@ type GenerateReportReq = {
|
|
|
799
965
|
/** @returns {Page} */
|
|
800
966
|
declare function Page(): Page;
|
|
801
967
|
type Page = {
|
|
968
|
+
/**
|
|
969
|
+
* - The total number of items on the page.
|
|
970
|
+
*/
|
|
802
971
|
item_total?: number;
|
|
972
|
+
/**
|
|
973
|
+
* - The identifier for the next page.
|
|
974
|
+
*/
|
|
803
975
|
next_id?: string;
|
|
976
|
+
/**
|
|
977
|
+
* - Indicates whether there is a previous page.
|
|
978
|
+
*/
|
|
804
979
|
has_previous?: boolean;
|
|
980
|
+
/**
|
|
981
|
+
* - Indicates whether there is a next page.
|
|
982
|
+
*/
|
|
805
983
|
has_next?: boolean;
|
|
984
|
+
/**
|
|
985
|
+
* - The current page number.
|
|
986
|
+
*/
|
|
806
987
|
current?: number;
|
|
988
|
+
/**
|
|
989
|
+
* - The type of the page, such as 'PageType'.
|
|
990
|
+
*/
|
|
807
991
|
type: string;
|
|
992
|
+
/**
|
|
993
|
+
* - The number of items per page.
|
|
994
|
+
*/
|
|
808
995
|
size?: number;
|
|
809
996
|
};
|
|
810
997
|
/** @returns {Currency} */
|
|
811
998
|
declare function Currency(): Currency;
|
|
812
999
|
type Currency = {
|
|
1000
|
+
/**
|
|
1001
|
+
* - The unique currency code.
|
|
1002
|
+
*/
|
|
813
1003
|
code?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* - The unique currency symbol.
|
|
1006
|
+
*/
|
|
814
1007
|
symbol?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* - The unique currency name.
|
|
1010
|
+
*/
|
|
815
1011
|
name?: string;
|
|
816
1012
|
};
|
|
817
1013
|
/** @returns {GenerateReportJson} */
|
|
818
1014
|
declare function GenerateReportJson(): GenerateReportJson;
|
|
819
1015
|
type GenerateReportJson = {
|
|
820
1016
|
data?: any;
|
|
1017
|
+
/**
|
|
1018
|
+
* - Total number of items in the report.
|
|
1019
|
+
*/
|
|
821
1020
|
item_count?: number;
|
|
822
1021
|
page?: Page;
|
|
1022
|
+
/**
|
|
1023
|
+
* - The end date to generate report specific preiod.
|
|
1024
|
+
*/
|
|
823
1025
|
end_date?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* - The start date to generate report specific preiod.
|
|
1028
|
+
*/
|
|
824
1029
|
start_date?: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* - Nested array structure representing report
|
|
1032
|
+
* items or data.
|
|
1033
|
+
*/
|
|
825
1034
|
items?: string[][];
|
|
1035
|
+
/**
|
|
1036
|
+
* - Headers describing each item in the report data.
|
|
1037
|
+
*/
|
|
826
1038
|
headers?: string[];
|
|
827
1039
|
};
|
|
828
1040
|
/** @returns {Error} */
|
|
@@ -858,46 +1070,109 @@ type DownloadReport = {
|
|
|
858
1070
|
/** @returns {DownloadReportData} */
|
|
859
1071
|
declare function DownloadReportData(): DownloadReportData;
|
|
860
1072
|
type DownloadReportData = {
|
|
1073
|
+
/**
|
|
1074
|
+
* - The current page number of the report.
|
|
1075
|
+
*/
|
|
861
1076
|
page?: number;
|
|
1077
|
+
/**
|
|
1078
|
+
* - The number of items displayed per page.
|
|
1079
|
+
*/
|
|
862
1080
|
page_size?: number;
|
|
1081
|
+
/**
|
|
1082
|
+
* - The start date for fetching the report
|
|
1083
|
+
* history for download.
|
|
1084
|
+
*/
|
|
863
1085
|
start_date?: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* - The end date for fetching the report history
|
|
1088
|
+
* for download.
|
|
1089
|
+
*/
|
|
864
1090
|
end_date?: string;
|
|
865
1091
|
};
|
|
866
1092
|
/** @returns {DownloadReportItems} */
|
|
867
1093
|
declare function DownloadReportItems(): DownloadReportItems;
|
|
868
1094
|
type DownloadReportItems = {
|
|
1095
|
+
/**
|
|
1096
|
+
* - The start date for the report item.
|
|
1097
|
+
*/
|
|
869
1098
|
start_date?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* - The end date for the report item.
|
|
1101
|
+
*/
|
|
870
1102
|
end_date?: string;
|
|
871
1103
|
meta?: GenerateReportMeta;
|
|
1104
|
+
/**
|
|
1105
|
+
* - The unique identifier of the report item.
|
|
1106
|
+
*/
|
|
872
1107
|
report_id?: string;
|
|
873
1108
|
filters?: GenerateReportFilters;
|
|
874
|
-
type_of_request?: string;
|
|
875
1109
|
};
|
|
876
1110
|
/** @returns {DownloadReportList} */
|
|
877
1111
|
declare function DownloadReportList(): DownloadReportList;
|
|
878
1112
|
type DownloadReportList = {
|
|
1113
|
+
/**
|
|
1114
|
+
* - A list of report items available
|
|
1115
|
+
* for download.
|
|
1116
|
+
*/
|
|
879
1117
|
items?: DownloadReportItems[];
|
|
880
1118
|
page?: Page;
|
|
1119
|
+
/**
|
|
1120
|
+
* - The total number of items in the report list.
|
|
1121
|
+
*/
|
|
881
1122
|
item_count?: number;
|
|
882
1123
|
};
|
|
883
1124
|
/** @returns {GetEngineFilters} */
|
|
884
1125
|
declare function GetEngineFilters(): GetEngineFilters;
|
|
885
1126
|
type GetEngineFilters = {
|
|
1127
|
+
/**
|
|
1128
|
+
* - The configuration field used for filtering.
|
|
1129
|
+
*/
|
|
886
1130
|
config_field?: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* - The status used for filtering.
|
|
1133
|
+
*/
|
|
887
1134
|
status?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* - Flag indicating if the filter is active.
|
|
1137
|
+
*/
|
|
888
1138
|
is_active?: boolean;
|
|
1139
|
+
/**
|
|
1140
|
+
* - The seller ID used for filtering.
|
|
1141
|
+
*/
|
|
889
1142
|
seller_id?: string;
|
|
890
1143
|
};
|
|
891
1144
|
/** @returns {GetEngineData} */
|
|
892
1145
|
declare function GetEngineData(): GetEngineData;
|
|
893
1146
|
type GetEngineData = {
|
|
1147
|
+
/**
|
|
1148
|
+
* - Status of the request.
|
|
1149
|
+
*/
|
|
894
1150
|
status?: string;
|
|
895
1151
|
filters?: GetEngineFilters;
|
|
1152
|
+
/**
|
|
1153
|
+
* - A list of fields to get data from tables.
|
|
1154
|
+
*/
|
|
896
1155
|
project?: string[];
|
|
1156
|
+
/**
|
|
1157
|
+
* - The name of the table from which to retrieve data.
|
|
1158
|
+
*/
|
|
897
1159
|
table_name?: string;
|
|
1160
|
+
/**
|
|
1161
|
+
* - Search criteria for querying on given table
|
|
1162
|
+
* specific fields.
|
|
1163
|
+
*/
|
|
898
1164
|
search?: any;
|
|
1165
|
+
/**
|
|
1166
|
+
* - The current page number for pagination.
|
|
1167
|
+
*/
|
|
899
1168
|
page?: number;
|
|
1169
|
+
/**
|
|
1170
|
+
* - The number of items displayed per page.
|
|
1171
|
+
*/
|
|
900
1172
|
page_size?: number;
|
|
1173
|
+
/**
|
|
1174
|
+
* - The field by which to order the results.
|
|
1175
|
+
*/
|
|
901
1176
|
order_by?: string;
|
|
902
1177
|
};
|
|
903
1178
|
/** @returns {GetEngineReq} */
|
|
@@ -908,14 +1183,26 @@ type GetEngineReq = {
|
|
|
908
1183
|
/** @returns {GetEngineResponse} */
|
|
909
1184
|
declare function GetEngineResponse(): GetEngineResponse;
|
|
910
1185
|
type GetEngineResponse = {
|
|
1186
|
+
/**
|
|
1187
|
+
* - Indicates whether the request was successful.
|
|
1188
|
+
*/
|
|
911
1189
|
success?: boolean;
|
|
1190
|
+
/**
|
|
1191
|
+
* - A list of items returned by the request.
|
|
1192
|
+
*/
|
|
912
1193
|
items?: any[];
|
|
913
1194
|
page?: Page;
|
|
1195
|
+
/**
|
|
1196
|
+
* - The total number of items returned by the request.
|
|
1197
|
+
*/
|
|
914
1198
|
item_count?: number;
|
|
915
1199
|
};
|
|
916
1200
|
/** @returns {GetReason} */
|
|
917
1201
|
declare function GetReason(): GetReason;
|
|
918
1202
|
type GetReason = {
|
|
1203
|
+
/**
|
|
1204
|
+
* - The type of reason associated with the request.
|
|
1205
|
+
*/
|
|
919
1206
|
reason_type?: string;
|
|
920
1207
|
};
|
|
921
1208
|
/** @returns {GetReasonReq} */
|
|
@@ -926,22 +1213,47 @@ type GetReasonReq = {
|
|
|
926
1213
|
/** @returns {ReasonItem} */
|
|
927
1214
|
declare function ReasonItem(): ReasonItem;
|
|
928
1215
|
type ReasonItem = {
|
|
1216
|
+
/**
|
|
1217
|
+
* - Id of the reason for reason_type.
|
|
1218
|
+
*/
|
|
929
1219
|
id?: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* - Code of the reason for reason_type.
|
|
1222
|
+
*/
|
|
930
1223
|
name?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* - Display name of the reason for reason_type.
|
|
1226
|
+
*/
|
|
931
1227
|
display_name?: string;
|
|
932
1228
|
};
|
|
933
1229
|
/** @returns {GetReasonResponse} */
|
|
934
1230
|
declare function GetReasonResponse(): GetReasonResponse;
|
|
935
1231
|
type GetReasonResponse = {
|
|
1232
|
+
/**
|
|
1233
|
+
* - Indicates whether the request was successfull.
|
|
1234
|
+
*/
|
|
936
1235
|
success?: boolean;
|
|
1236
|
+
/**
|
|
1237
|
+
* - The list of items returned in the response.
|
|
1238
|
+
*/
|
|
937
1239
|
item_list?: ReasonItem[];
|
|
1240
|
+
/**
|
|
1241
|
+
* - The number of items in the response.
|
|
1242
|
+
*/
|
|
938
1243
|
item_count?: number;
|
|
939
1244
|
page?: Page;
|
|
940
1245
|
};
|
|
941
1246
|
/** @returns {GetReportListData} */
|
|
942
1247
|
declare function GetReportListData(): GetReportListData;
|
|
943
1248
|
type GetReportListData = {
|
|
1249
|
+
/**
|
|
1250
|
+
* - The name of the role requesting the report list.
|
|
1251
|
+
*/
|
|
944
1252
|
role_name?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* - Indicates whether listing is enabled
|
|
1255
|
+
* for the role.
|
|
1256
|
+
*/
|
|
945
1257
|
listing_enabled?: boolean;
|
|
946
1258
|
};
|
|
947
1259
|
/** @returns {GetReportListReq} */
|
|
@@ -949,40 +1261,88 @@ declare function GetReportListReq(): GetReportListReq;
|
|
|
949
1261
|
type GetReportListReq = {
|
|
950
1262
|
data?: GetReportListData;
|
|
951
1263
|
};
|
|
952
|
-
/** @returns {GetAffiliate} */
|
|
953
|
-
declare function GetAffiliate(): GetAffiliate;
|
|
954
|
-
type GetAffiliate = {
|
|
955
|
-
company_id?: number;
|
|
956
|
-
};
|
|
957
1264
|
/** @returns {GetReportListResponse} */
|
|
958
1265
|
declare function GetReportListResponse(): GetReportListResponse;
|
|
959
1266
|
type GetReportListResponse = {
|
|
1267
|
+
/**
|
|
1268
|
+
* - Indicates whether the request was successful.
|
|
1269
|
+
*/
|
|
960
1270
|
success?: boolean;
|
|
1271
|
+
/**
|
|
1272
|
+
* - The list of report items.
|
|
1273
|
+
*/
|
|
961
1274
|
items?: ReportItem[];
|
|
962
1275
|
page?: Page;
|
|
1276
|
+
/**
|
|
1277
|
+
* - The total number of items in the report list.
|
|
1278
|
+
*/
|
|
963
1279
|
total_count?: number;
|
|
964
1280
|
};
|
|
965
1281
|
/** @returns {ReportItem} */
|
|
966
1282
|
declare function ReportItem(): ReportItem;
|
|
967
1283
|
type ReportItem = {
|
|
1284
|
+
/**
|
|
1285
|
+
* - The unique identifier for the report item.
|
|
1286
|
+
*/
|
|
968
1287
|
id?: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* - The name of the report item.
|
|
1290
|
+
*/
|
|
969
1291
|
name?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* - A brief description of the report item.
|
|
1294
|
+
*/
|
|
970
1295
|
description?: string;
|
|
1296
|
+
/**
|
|
1297
|
+
* - The filters that can be applied to
|
|
1298
|
+
* the report item.
|
|
1299
|
+
*/
|
|
971
1300
|
allowed_filters?: string[];
|
|
1301
|
+
/**
|
|
1302
|
+
* - Metadata related to the report item configuration.
|
|
1303
|
+
*/
|
|
972
1304
|
config_meta?: any;
|
|
1305
|
+
/**
|
|
1306
|
+
* - The type of the report item.
|
|
1307
|
+
*/
|
|
973
1308
|
report_type?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* - The display date of the report item, if applicable.
|
|
1311
|
+
*/
|
|
974
1312
|
display_date?: string;
|
|
975
1313
|
};
|
|
1314
|
+
/** @returns {GetAffiliate} */
|
|
1315
|
+
declare function GetAffiliate(): GetAffiliate;
|
|
1316
|
+
type GetAffiliate = {
|
|
1317
|
+
/**
|
|
1318
|
+
* - The unique identifier of the company
|
|
1319
|
+
* associated with the affiliate.
|
|
1320
|
+
*/
|
|
1321
|
+
company_id?: number;
|
|
1322
|
+
};
|
|
976
1323
|
/** @returns {GetAffiliateResponse} */
|
|
977
1324
|
declare function GetAffiliateResponse(): GetAffiliateResponse;
|
|
978
1325
|
type GetAffiliateResponse = {
|
|
1326
|
+
/**
|
|
1327
|
+
* - The reason for the response, if applicable.
|
|
1328
|
+
*/
|
|
979
1329
|
reason?: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* - Indicates whether the request was successful.
|
|
1332
|
+
*/
|
|
980
1333
|
success?: boolean;
|
|
1334
|
+
/**
|
|
1335
|
+
* - List of items or data related to the affiliate.
|
|
1336
|
+
*/
|
|
981
1337
|
docs?: any[];
|
|
982
1338
|
};
|
|
983
1339
|
/** @returns {DownloadCreditDebitNote} */
|
|
984
1340
|
declare function DownloadCreditDebitNote(): DownloadCreditDebitNote;
|
|
985
1341
|
type DownloadCreditDebitNote = {
|
|
1342
|
+
/**
|
|
1343
|
+
* - List of unique identifiers for the
|
|
1344
|
+
* credit/debit notes to be download.
|
|
1345
|
+
*/
|
|
986
1346
|
note_id?: string[];
|
|
987
1347
|
};
|
|
988
1348
|
/** @returns {DownloadCreditDebitNoteReq} */
|
|
@@ -993,28 +1353,84 @@ type DownloadCreditDebitNoteReq = {
|
|
|
993
1353
|
/** @returns {DownloadCreditDebitNoteResponseData} */
|
|
994
1354
|
declare function DownloadCreditDebitNoteResponseData(): DownloadCreditDebitNoteResponseData;
|
|
995
1355
|
type DownloadCreditDebitNoteResponseData = {
|
|
1356
|
+
/**
|
|
1357
|
+
* - The unique identifier of the download credit/debit note.
|
|
1358
|
+
*/
|
|
996
1359
|
id?: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* - The URL where the PDF of the credit/debit
|
|
1362
|
+
* note is stored.
|
|
1363
|
+
*/
|
|
997
1364
|
pdf_s3_url?: string;
|
|
998
1365
|
};
|
|
999
1366
|
/** @returns {DownloadCreditDebitNoteResponse} */
|
|
1000
1367
|
declare function DownloadCreditDebitNoteResponse(): DownloadCreditDebitNoteResponse;
|
|
1001
1368
|
type DownloadCreditDebitNoteResponse = {
|
|
1369
|
+
/**
|
|
1370
|
+
* - Indicates whether the request to download the
|
|
1371
|
+
* credit/debit notes was successful.
|
|
1372
|
+
*/
|
|
1002
1373
|
success?: boolean;
|
|
1374
|
+
/**
|
|
1375
|
+
* - List of
|
|
1376
|
+
* credit/debit notes download data.
|
|
1377
|
+
*/
|
|
1003
1378
|
data?: DownloadCreditDebitNoteResponseData[];
|
|
1004
1379
|
};
|
|
1380
|
+
/** @returns {InvoiceBillingItem} */
|
|
1381
|
+
declare function InvoiceBillingItem(): InvoiceBillingItem;
|
|
1382
|
+
type InvoiceBillingItem = {
|
|
1383
|
+
/**
|
|
1384
|
+
* - The number of the invoice associated
|
|
1385
|
+
* with the billing item.
|
|
1386
|
+
*/
|
|
1387
|
+
invoice_number?: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* - The amount of the billing item.
|
|
1390
|
+
*/
|
|
1391
|
+
amount?: number;
|
|
1392
|
+
};
|
|
1005
1393
|
/** @returns {PaymentProcessPayload} */
|
|
1006
1394
|
declare function PaymentProcessPayload(): PaymentProcessPayload;
|
|
1007
1395
|
type PaymentProcessPayload = {
|
|
1396
|
+
/**
|
|
1397
|
+
* - The platform through which the payment is processed.
|
|
1398
|
+
*/
|
|
1008
1399
|
platform?: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* - The total amount to be processed in the payment.
|
|
1402
|
+
*/
|
|
1009
1403
|
amount?: number;
|
|
1404
|
+
/**
|
|
1405
|
+
* - The type of transaction (e.g., seller_online).
|
|
1406
|
+
*/
|
|
1010
1407
|
transaction_type?: string;
|
|
1408
|
+
/**
|
|
1409
|
+
* - The reference for the source of the payment.
|
|
1410
|
+
*/
|
|
1011
1411
|
source_reference?: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* - The total amount to be processed in the payment.
|
|
1414
|
+
*/
|
|
1012
1415
|
total_amount?: number;
|
|
1416
|
+
/**
|
|
1417
|
+
* - Additional metadata related to the payment.
|
|
1418
|
+
*/
|
|
1013
1419
|
meta?: any;
|
|
1420
|
+
/**
|
|
1421
|
+
* - The currency in which the payment is made.
|
|
1422
|
+
*/
|
|
1014
1423
|
currency?: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* - The unique identifier for the seller
|
|
1426
|
+
* receiving the payment.
|
|
1427
|
+
*/
|
|
1015
1428
|
seller_id?: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* - The mode of payment (e.g., online).
|
|
1431
|
+
*/
|
|
1016
1432
|
mode_of_payment?: string;
|
|
1017
|
-
|
|
1433
|
+
invoice_billing_items?: InvoiceBillingItem[];
|
|
1018
1434
|
};
|
|
1019
1435
|
/** @returns {PaymentProcessReq} */
|
|
1020
1436
|
declare function PaymentProcessReq(): PaymentProcessReq;
|
|
@@ -1024,19 +1440,53 @@ type PaymentProcessReq = {
|
|
|
1024
1440
|
/** @returns {PaymentProcessResponse} */
|
|
1025
1441
|
declare function PaymentProcessResponse(): PaymentProcessResponse;
|
|
1026
1442
|
type PaymentProcessResponse = {
|
|
1443
|
+
/**
|
|
1444
|
+
* - Response code indicating the status of the payment process.
|
|
1445
|
+
*/
|
|
1027
1446
|
code?: number;
|
|
1447
|
+
/**
|
|
1448
|
+
* - A message providing additional information
|
|
1449
|
+
* about the payment process response.
|
|
1450
|
+
*/
|
|
1028
1451
|
message?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* - Additional metadata related to the payment
|
|
1454
|
+
* process response.
|
|
1455
|
+
*/
|
|
1029
1456
|
meta?: any;
|
|
1457
|
+
/**
|
|
1458
|
+
* - The unique identifier for the payment
|
|
1459
|
+
* transaction.
|
|
1460
|
+
*/
|
|
1030
1461
|
transaction_id?: string;
|
|
1462
|
+
/**
|
|
1463
|
+
* - URL to redirect the user to complete the
|
|
1464
|
+
* payment process, if applicable.
|
|
1465
|
+
*/
|
|
1031
1466
|
redirect_url?: string;
|
|
1032
1467
|
};
|
|
1033
1468
|
/** @returns {CreditlineDataPlatformPayload} */
|
|
1034
1469
|
declare function CreditlineDataPlatformPayload(): CreditlineDataPlatformPayload;
|
|
1035
1470
|
type CreditlineDataPlatformPayload = {
|
|
1471
|
+
/**
|
|
1472
|
+
* - The page number for pagination.
|
|
1473
|
+
*/
|
|
1036
1474
|
page?: number;
|
|
1475
|
+
/**
|
|
1476
|
+
* - The unique identifier for the seller.
|
|
1477
|
+
*/
|
|
1037
1478
|
seller_id?: string;
|
|
1479
|
+
/**
|
|
1480
|
+
* - The end date for the query.
|
|
1481
|
+
*/
|
|
1038
1482
|
end_date?: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* - The start date for the query.
|
|
1485
|
+
*/
|
|
1039
1486
|
start_date?: string;
|
|
1487
|
+
/**
|
|
1488
|
+
* - The number of items per page.
|
|
1489
|
+
*/
|
|
1040
1490
|
page_size?: number;
|
|
1041
1491
|
};
|
|
1042
1492
|
/** @returns {CreditlineDataPlatformReq} */
|
|
@@ -1047,17 +1497,40 @@ type CreditlineDataPlatformReq = {
|
|
|
1047
1497
|
/** @returns {CreditlineDataPlatformResponse} */
|
|
1048
1498
|
declare function CreditlineDataPlatformResponse(): CreditlineDataPlatformResponse;
|
|
1049
1499
|
type CreditlineDataPlatformResponse = {
|
|
1500
|
+
/**
|
|
1501
|
+
* - The list of items in the response.
|
|
1502
|
+
*/
|
|
1050
1503
|
items?: any[];
|
|
1504
|
+
/**
|
|
1505
|
+
* - The response status code.
|
|
1506
|
+
*/
|
|
1051
1507
|
code?: number;
|
|
1508
|
+
/**
|
|
1509
|
+
* - A flag indicating whether to show MR (some
|
|
1510
|
+
* specific field).
|
|
1511
|
+
*/
|
|
1052
1512
|
show_mr?: boolean;
|
|
1053
1513
|
page?: Page;
|
|
1514
|
+
/**
|
|
1515
|
+
* - The response message.
|
|
1516
|
+
*/
|
|
1054
1517
|
message?: string;
|
|
1518
|
+
/**
|
|
1519
|
+
* - The list of response headers.
|
|
1520
|
+
*/
|
|
1055
1521
|
headers?: string[];
|
|
1522
|
+
/**
|
|
1523
|
+
* - The total number of items.
|
|
1524
|
+
*/
|
|
1056
1525
|
item_count?: number;
|
|
1057
1526
|
};
|
|
1058
1527
|
/** @returns {IsCreditlinePayload} */
|
|
1059
1528
|
declare function IsCreditlinePayload(): IsCreditlinePayload;
|
|
1060
1529
|
type IsCreditlinePayload = {
|
|
1530
|
+
/**
|
|
1531
|
+
* - The unique identifier for the seller to
|
|
1532
|
+
* check for credit line eligibility.
|
|
1533
|
+
*/
|
|
1061
1534
|
seller_id?: string;
|
|
1062
1535
|
};
|
|
1063
1536
|
/** @returns {IsCreditlinePlatformReq} */
|
|
@@ -1068,12 +1541,23 @@ type IsCreditlinePlatformReq = {
|
|
|
1068
1541
|
/** @returns {IsCreditlinePlatformResponse} */
|
|
1069
1542
|
declare function IsCreditlinePlatformResponse(): IsCreditlinePlatformResponse;
|
|
1070
1543
|
type IsCreditlinePlatformResponse = {
|
|
1544
|
+
/**
|
|
1545
|
+
* - Indicates whether the seller has
|
|
1546
|
+
* opted for a credit line.
|
|
1547
|
+
*/
|
|
1071
1548
|
is_creditline_opted?: boolean;
|
|
1549
|
+
/**
|
|
1550
|
+
* - Response code indicating the status of the credit
|
|
1551
|
+
* line check.
|
|
1552
|
+
*/
|
|
1072
1553
|
code?: number;
|
|
1073
1554
|
};
|
|
1074
1555
|
/** @returns {InvoiceTypePayloadData} */
|
|
1075
1556
|
declare function InvoiceTypePayloadData(): InvoiceTypePayloadData;
|
|
1076
1557
|
type InvoiceTypePayloadData = {
|
|
1558
|
+
/**
|
|
1559
|
+
* - Indicates if the invoice type is active.
|
|
1560
|
+
*/
|
|
1077
1561
|
is_active?: boolean;
|
|
1078
1562
|
};
|
|
1079
1563
|
/** @returns {InvoiceTypeReq} */
|
|
@@ -1084,30 +1568,71 @@ type InvoiceTypeReq = {
|
|
|
1084
1568
|
/** @returns {InvoiceTypeResponseItems} */
|
|
1085
1569
|
declare function InvoiceTypeResponseItems(): InvoiceTypeResponseItems;
|
|
1086
1570
|
type InvoiceTypeResponseItems = {
|
|
1571
|
+
/**
|
|
1572
|
+
* - The text description of the invoice type.
|
|
1573
|
+
*/
|
|
1087
1574
|
text?: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* - The value or code representing the invoice type.
|
|
1577
|
+
*/
|
|
1088
1578
|
value?: string;
|
|
1089
1579
|
};
|
|
1090
1580
|
/** @returns {InvoiceTypeResponse} */
|
|
1091
1581
|
declare function InvoiceTypeResponse(): InvoiceTypeResponse;
|
|
1092
1582
|
type InvoiceTypeResponse = {
|
|
1583
|
+
/**
|
|
1584
|
+
* - Indicates whether the request was successful.
|
|
1585
|
+
*/
|
|
1093
1586
|
success?: boolean;
|
|
1587
|
+
/**
|
|
1588
|
+
* - List of invoice
|
|
1589
|
+
* types available.
|
|
1590
|
+
*/
|
|
1094
1591
|
invoice_type_list?: InvoiceTypeResponseItems[];
|
|
1592
|
+
/**
|
|
1593
|
+
* - List of
|
|
1594
|
+
* payment statuses available.
|
|
1595
|
+
*/
|
|
1095
1596
|
payment_status_list?: InvoiceTypeResponseItems[];
|
|
1096
1597
|
};
|
|
1097
1598
|
/** @returns {InoviceListingPayloadDataFilters} */
|
|
1098
1599
|
declare function InoviceListingPayloadDataFilters(): InoviceListingPayloadDataFilters;
|
|
1099
1600
|
type InoviceListingPayloadDataFilters = {
|
|
1601
|
+
/**
|
|
1602
|
+
* - List of payment statuses to filter by.
|
|
1603
|
+
*/
|
|
1100
1604
|
payment_status?: string[];
|
|
1605
|
+
/**
|
|
1606
|
+
* - List of invoice types to filter by.
|
|
1607
|
+
*/
|
|
1101
1608
|
invoice_type?: string[];
|
|
1609
|
+
/**
|
|
1610
|
+
* - List of company IDs to filter by.
|
|
1611
|
+
*/
|
|
1102
1612
|
company_id?: string[];
|
|
1103
1613
|
};
|
|
1104
1614
|
/** @returns {InvoiceListingPayloadData} */
|
|
1105
1615
|
declare function InvoiceListingPayloadData(): InvoiceListingPayloadData;
|
|
1106
1616
|
type InvoiceListingPayloadData = {
|
|
1617
|
+
/**
|
|
1618
|
+
* - The number of items per page for pagination.
|
|
1619
|
+
*/
|
|
1107
1620
|
page_size?: number;
|
|
1621
|
+
/**
|
|
1622
|
+
* - The page number for pagination.
|
|
1623
|
+
*/
|
|
1108
1624
|
page?: number;
|
|
1625
|
+
/**
|
|
1626
|
+
* - The start date for the invoice listing filter.
|
|
1627
|
+
*/
|
|
1109
1628
|
start_date?: string;
|
|
1629
|
+
/**
|
|
1630
|
+
* - The end date for the invoice listing filter.
|
|
1631
|
+
*/
|
|
1110
1632
|
end_date?: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* - Search term for filtering invoices.
|
|
1635
|
+
*/
|
|
1111
1636
|
search?: string;
|
|
1112
1637
|
filters?: InoviceListingPayloadDataFilters;
|
|
1113
1638
|
};
|
|
@@ -1119,38 +1644,96 @@ type InvoiceListingReq = {
|
|
|
1119
1644
|
/** @returns {UnpaidInvoiceDataItems} */
|
|
1120
1645
|
declare function UnpaidInvoiceDataItems(): UnpaidInvoiceDataItems;
|
|
1121
1646
|
type UnpaidInvoiceDataItems = {
|
|
1647
|
+
/**
|
|
1648
|
+
* - The total count of unpaid invoices.
|
|
1649
|
+
*/
|
|
1122
1650
|
total_unpaid_invoice_count?: number;
|
|
1651
|
+
/**
|
|
1652
|
+
* - The currency used for unpaid invoices.
|
|
1653
|
+
*/
|
|
1123
1654
|
currency?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* - The total amount of unpaid invoices.
|
|
1657
|
+
*/
|
|
1124
1658
|
total_unpaid_amount?: number;
|
|
1125
1659
|
};
|
|
1126
1660
|
/** @returns {InvoiceListingResponseItems} */
|
|
1127
1661
|
declare function InvoiceListingResponseItems(): InvoiceListingResponseItems;
|
|
1128
1662
|
type InvoiceListingResponseItems = {
|
|
1663
|
+
/**
|
|
1664
|
+
* - The amount of the invoice.
|
|
1665
|
+
*/
|
|
1129
1666
|
amount?: number;
|
|
1667
|
+
/**
|
|
1668
|
+
* - The name of the company associated with the invoice.
|
|
1669
|
+
*/
|
|
1130
1670
|
company?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* - The current status of the invoice (e.g.,
|
|
1673
|
+
* 'paid', 'unpaid').
|
|
1674
|
+
*/
|
|
1131
1675
|
status?: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* - The due date of the invoice.
|
|
1678
|
+
*/
|
|
1132
1679
|
due_date?: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* - The date when the invoice was issued.
|
|
1682
|
+
*/
|
|
1133
1683
|
invoice_date?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* - The type of invoice.
|
|
1686
|
+
*/
|
|
1134
1687
|
invoice_type?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* - The period covered by the invoice.
|
|
1690
|
+
*/
|
|
1135
1691
|
period?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* - The invoice number.
|
|
1694
|
+
*/
|
|
1136
1695
|
invoice_number?: string;
|
|
1696
|
+
/**
|
|
1697
|
+
* - Indicates if the invoice is available
|
|
1698
|
+
* for download.
|
|
1699
|
+
*/
|
|
1137
1700
|
is_downloadable?: boolean;
|
|
1701
|
+
/**
|
|
1702
|
+
* - The unique identifier of the invoice.
|
|
1703
|
+
*/
|
|
1138
1704
|
invoice_id?: string;
|
|
1139
1705
|
currency?: Currency;
|
|
1140
1706
|
};
|
|
1141
1707
|
/** @returns {InvoiceListingResponse} */
|
|
1142
1708
|
declare function InvoiceListingResponse(): InvoiceListingResponse;
|
|
1143
1709
|
type InvoiceListingResponse = {
|
|
1710
|
+
/**
|
|
1711
|
+
* - Indicates whether the request was successful.
|
|
1712
|
+
*/
|
|
1144
1713
|
success?: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* - Headers related to the invoice listing response.
|
|
1716
|
+
*/
|
|
1145
1717
|
headers?: string[];
|
|
1146
1718
|
unpaid_invoice_data?: UnpaidInvoiceDataItems;
|
|
1719
|
+
/**
|
|
1720
|
+
* - List of invoice items in
|
|
1721
|
+
* the response.
|
|
1722
|
+
*/
|
|
1147
1723
|
items?: InvoiceListingResponseItems[];
|
|
1148
1724
|
page?: Page;
|
|
1725
|
+
/**
|
|
1726
|
+
* - The total number of invoice items in the response.
|
|
1727
|
+
*/
|
|
1149
1728
|
item_count?: number;
|
|
1150
1729
|
};
|
|
1151
1730
|
/** @returns {InvoicePdfPayloadData} */
|
|
1152
1731
|
declare function InvoicePdfPayloadData(): InvoicePdfPayloadData;
|
|
1153
1732
|
type InvoicePdfPayloadData = {
|
|
1733
|
+
/**
|
|
1734
|
+
* - List of invoice numbers for which
|
|
1735
|
+
* PDFs are requested.
|
|
1736
|
+
*/
|
|
1154
1737
|
invoice_number?: string[];
|
|
1155
1738
|
};
|
|
1156
1739
|
/** @returns {InvoicePdfReq} */
|
|
@@ -1161,15 +1744,36 @@ type InvoicePdfReq = {
|
|
|
1161
1744
|
/** @returns {InvoicePdfResponse} */
|
|
1162
1745
|
declare function InvoicePdfResponse(): InvoicePdfResponse;
|
|
1163
1746
|
type InvoicePdfResponse = {
|
|
1747
|
+
/**
|
|
1748
|
+
* - Indicates whether the PDF generation request
|
|
1749
|
+
* was successful.
|
|
1750
|
+
*/
|
|
1164
1751
|
success?: boolean;
|
|
1752
|
+
/**
|
|
1753
|
+
* - List of URLs or paths to the generated PDF files.
|
|
1754
|
+
*/
|
|
1165
1755
|
data?: string[];
|
|
1756
|
+
/**
|
|
1757
|
+
* - List of errors encountered while generating the PDFs.
|
|
1758
|
+
*/
|
|
1166
1759
|
error?: string[];
|
|
1167
1760
|
};
|
|
1168
1761
|
/** @returns {IsCnRefundMethodData} */
|
|
1169
1762
|
declare function IsCnRefundMethodData(): IsCnRefundMethodData;
|
|
1170
1763
|
type IsCnRefundMethodData = {
|
|
1764
|
+
/**
|
|
1765
|
+
* - The unique identifier of sale channels or
|
|
1766
|
+
* application as affiliate_id associated with the seller.
|
|
1767
|
+
*/
|
|
1171
1768
|
affiliate_id?: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* - Indicates whether editing the
|
|
1771
|
+
* refund method is required.
|
|
1772
|
+
*/
|
|
1172
1773
|
toggle_edit_required?: boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* - Unique identifier for the seller.
|
|
1776
|
+
*/
|
|
1173
1777
|
seller_id?: number;
|
|
1174
1778
|
};
|
|
1175
1779
|
/** @returns {IsCnRefundMethodReq} */
|
|
@@ -1180,31 +1784,75 @@ type IsCnRefundMethodReq = {
|
|
|
1180
1784
|
/** @returns {IsCnRefundMethodResponseData} */
|
|
1181
1785
|
declare function IsCnRefundMethodResponseData(): IsCnRefundMethodResponseData;
|
|
1182
1786
|
type IsCnRefundMethodResponseData = {
|
|
1787
|
+
/**
|
|
1788
|
+
* - Indicates whether the seller for
|
|
1789
|
+
* specific sale channel is using the refund method for the first time.
|
|
1790
|
+
*/
|
|
1183
1791
|
is_first_time_user?: boolean;
|
|
1184
1792
|
};
|
|
1185
1793
|
/** @returns {IsCnRefundMethodResponse} */
|
|
1186
1794
|
declare function IsCnRefundMethodResponse(): IsCnRefundMethodResponse;
|
|
1187
1795
|
type IsCnRefundMethodResponse = {
|
|
1796
|
+
/**
|
|
1797
|
+
* - Indicates whether the request to determine
|
|
1798
|
+
* the refund method was successful.
|
|
1799
|
+
*/
|
|
1188
1800
|
success?: boolean;
|
|
1189
1801
|
data?: IsCnRefundMethodResponseData;
|
|
1190
1802
|
};
|
|
1191
1803
|
/** @returns {CreditNoteConfigNotificationEvents} */
|
|
1192
1804
|
declare function CreditNoteConfigNotificationEvents(): CreditNoteConfigNotificationEvents;
|
|
1193
1805
|
type CreditNoteConfigNotificationEvents = {
|
|
1806
|
+
/**
|
|
1807
|
+
* - Number of days before
|
|
1808
|
+
* the expiration date to send a reminder notification to the customer.
|
|
1809
|
+
*/
|
|
1194
1810
|
expiration_reminder_to_customer?: number;
|
|
1195
1811
|
};
|
|
1196
1812
|
/** @returns {CreateSellerCreditNoteConfig} */
|
|
1197
1813
|
declare function CreateSellerCreditNoteConfig(): CreateSellerCreditNoteConfig;
|
|
1198
1814
|
type CreateSellerCreditNoteConfig = {
|
|
1815
|
+
/**
|
|
1816
|
+
* - Indicates if the credit note
|
|
1817
|
+
* is used as a refund method.
|
|
1818
|
+
*/
|
|
1199
1819
|
is_cn_as_refund_method?: boolean;
|
|
1820
|
+
/**
|
|
1821
|
+
* - The unique identifier of sale channels or
|
|
1822
|
+
* application as affiliate_id associated with the seller.
|
|
1823
|
+
*/
|
|
1200
1824
|
affiliate_id?: string;
|
|
1825
|
+
/**
|
|
1826
|
+
* - List of source channels associated
|
|
1827
|
+
* with the credit note configuration.
|
|
1828
|
+
*/
|
|
1201
1829
|
source_channel?: string[];
|
|
1830
|
+
/**
|
|
1831
|
+
* - Unique identifier for the seller.
|
|
1832
|
+
*/
|
|
1202
1833
|
seller_id?: number;
|
|
1203
1834
|
notification_events?: CreditNoteConfigNotificationEvents;
|
|
1835
|
+
/**
|
|
1836
|
+
* - Name of the sales channel.
|
|
1837
|
+
*/
|
|
1204
1838
|
sales_channel_name?: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* - List of ordering channels
|
|
1841
|
+
* associated with the credit note configuration.
|
|
1842
|
+
*/
|
|
1205
1843
|
ordering_channel?: string[];
|
|
1844
|
+
/**
|
|
1845
|
+
* - Validity period of the credit note in days.
|
|
1846
|
+
*/
|
|
1206
1847
|
validity?: number;
|
|
1848
|
+
/**
|
|
1849
|
+
* - Type of currency used for the credit note.
|
|
1850
|
+
*/
|
|
1207
1851
|
currency_type?: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* - List of slug values associated with the
|
|
1854
|
+
* credit note configuration.
|
|
1855
|
+
*/
|
|
1208
1856
|
slug_values?: string[];
|
|
1209
1857
|
};
|
|
1210
1858
|
/** @returns {CreateSellerCreditNoteConfigReq} */
|
|
@@ -1215,14 +1863,33 @@ type CreateSellerCreditNoteConfigReq = {
|
|
|
1215
1863
|
/** @returns {CreateSellerCreditNoteConfigResponse} */
|
|
1216
1864
|
declare function CreateSellerCreditNoteConfigResponse(): CreateSellerCreditNoteConfigResponse;
|
|
1217
1865
|
type CreateSellerCreditNoteConfigResponse = {
|
|
1866
|
+
/**
|
|
1867
|
+
* - Indicates if the credit note configuration
|
|
1868
|
+
* creation was successful.
|
|
1869
|
+
*/
|
|
1218
1870
|
success?: boolean;
|
|
1871
|
+
/**
|
|
1872
|
+
* - Additional information or message about the
|
|
1873
|
+
* credit note configuration creation process.
|
|
1874
|
+
*/
|
|
1219
1875
|
message?: string;
|
|
1220
1876
|
};
|
|
1221
1877
|
/** @returns {DeleteConfig} */
|
|
1222
1878
|
declare function DeleteConfig(): DeleteConfig;
|
|
1223
1879
|
type DeleteConfig = {
|
|
1880
|
+
/**
|
|
1881
|
+
* - The unique identifier of sale channels or
|
|
1882
|
+
* application as affiliate_id associated with the seller.
|
|
1883
|
+
*/
|
|
1224
1884
|
affiliate_id?: string;
|
|
1885
|
+
/**
|
|
1886
|
+
* - List of slug values associated with the
|
|
1887
|
+
* credit note configuration.
|
|
1888
|
+
*/
|
|
1225
1889
|
slug_values?: string[];
|
|
1890
|
+
/**
|
|
1891
|
+
* - Unique identifier for the seller.
|
|
1892
|
+
*/
|
|
1226
1893
|
seller_id?: number;
|
|
1227
1894
|
};
|
|
1228
1895
|
/** @returns {DeleteConfigReq} */
|
|
@@ -1233,24 +1900,49 @@ type DeleteConfigReq = {
|
|
|
1233
1900
|
/** @returns {DeleteConfigResponse} */
|
|
1234
1901
|
declare function DeleteConfigResponse(): DeleteConfigResponse;
|
|
1235
1902
|
type DeleteConfigResponse = {
|
|
1903
|
+
/**
|
|
1904
|
+
* - Indicates if the configuration deletion was successful.
|
|
1905
|
+
*/
|
|
1236
1906
|
success?: boolean;
|
|
1907
|
+
/**
|
|
1908
|
+
* - Additional information or message about the
|
|
1909
|
+
* configuration deletion process.
|
|
1910
|
+
*/
|
|
1237
1911
|
message?: string;
|
|
1238
1912
|
};
|
|
1239
1913
|
/** @returns {ChannelDisplayNameItems} */
|
|
1240
1914
|
declare function ChannelDisplayNameItems(): ChannelDisplayNameItems;
|
|
1241
1915
|
type ChannelDisplayNameItems = {
|
|
1916
|
+
/**
|
|
1917
|
+
* - The unique key identifying the channel.
|
|
1918
|
+
*/
|
|
1242
1919
|
key?: string;
|
|
1920
|
+
/**
|
|
1921
|
+
* - The display name of the channel associated with the key.
|
|
1922
|
+
*/
|
|
1243
1923
|
value?: string;
|
|
1244
1924
|
};
|
|
1245
1925
|
/** @returns {ChannelDisplayNameResponse} */
|
|
1246
1926
|
declare function ChannelDisplayNameResponse(): ChannelDisplayNameResponse;
|
|
1247
1927
|
type ChannelDisplayNameResponse = {
|
|
1928
|
+
/**
|
|
1929
|
+
* - Indicates if the retrieval of channel display
|
|
1930
|
+
* names was successful.
|
|
1931
|
+
*/
|
|
1248
1932
|
success?: boolean;
|
|
1933
|
+
/**
|
|
1934
|
+
* - List of items containing
|
|
1935
|
+
* key-value pairs for channel display names.
|
|
1936
|
+
*/
|
|
1249
1937
|
items?: ChannelDisplayNameItems[];
|
|
1250
1938
|
};
|
|
1251
1939
|
/** @returns {CnReferenceNumber} */
|
|
1252
1940
|
declare function CnReferenceNumber(): CnReferenceNumber;
|
|
1253
1941
|
type CnReferenceNumber = {
|
|
1942
|
+
/**
|
|
1943
|
+
* - The unique reference number of the
|
|
1944
|
+
* credit note.
|
|
1945
|
+
*/
|
|
1254
1946
|
cn_reference_number?: string;
|
|
1255
1947
|
};
|
|
1256
1948
|
/** @returns {GetPdfUrlViewReq} */
|
|
@@ -1261,12 +1953,24 @@ type GetPdfUrlViewReq = {
|
|
|
1261
1953
|
/** @returns {GetPdfUrlViewResponseData} */
|
|
1262
1954
|
declare function GetPdfUrlViewResponseData(): GetPdfUrlViewResponseData;
|
|
1263
1955
|
type GetPdfUrlViewResponseData = {
|
|
1956
|
+
/**
|
|
1957
|
+
* - The URL link where credit nore pdf stored
|
|
1958
|
+
* to view and download.
|
|
1959
|
+
*/
|
|
1264
1960
|
s3_pdf_link?: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* - The unique reference number of the
|
|
1963
|
+
* credit note.
|
|
1964
|
+
*/
|
|
1265
1965
|
cn_reference_number?: string;
|
|
1266
1966
|
};
|
|
1267
1967
|
/** @returns {GetPdfUrlViewResponse} */
|
|
1268
1968
|
declare function GetPdfUrlViewResponse(): GetPdfUrlViewResponse;
|
|
1269
1969
|
type GetPdfUrlViewResponse = {
|
|
1970
|
+
/**
|
|
1971
|
+
* - Indicates if the retrieval of the pdf URL was
|
|
1972
|
+
* successful.
|
|
1973
|
+
*/
|
|
1270
1974
|
success?: boolean;
|
|
1271
1975
|
data?: GetPdfUrlViewResponseData;
|
|
1272
1976
|
};
|
|
@@ -1278,54 +1982,157 @@ type CreditNoteDetailsReq = {
|
|
|
1278
1982
|
/** @returns {CnDetails} */
|
|
1279
1983
|
declare function CnDetails(): CnDetails;
|
|
1280
1984
|
type CnDetails = {
|
|
1985
|
+
/**
|
|
1986
|
+
* - ID of the staff member associated with the credit note.
|
|
1987
|
+
*/
|
|
1281
1988
|
staff_id?: string;
|
|
1989
|
+
/**
|
|
1990
|
+
* - Expiry date of the credit note.
|
|
1991
|
+
*/
|
|
1282
1992
|
expiry_date?: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* - Channel through which the credit
|
|
1995
|
+
* note was issued.
|
|
1996
|
+
*/
|
|
1283
1997
|
channel_of_issuance?: string;
|
|
1998
|
+
/**
|
|
1999
|
+
* - Order ID of order for which credit note created.
|
|
2000
|
+
*/
|
|
1284
2001
|
order_id?: string;
|
|
2002
|
+
/**
|
|
2003
|
+
* - Date when the credit note was issued.
|
|
2004
|
+
*/
|
|
1285
2005
|
date_issued?: string;
|
|
2006
|
+
/**
|
|
2007
|
+
* - Ordering channel associated with the
|
|
2008
|
+
* credit note.
|
|
2009
|
+
*/
|
|
1286
2010
|
ordering_channel?: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* - Shipment Id associated with the credit note.
|
|
2013
|
+
*/
|
|
1287
2014
|
shipment_id?: string;
|
|
2015
|
+
/**
|
|
2016
|
+
* - Store Id associated with the credit note.
|
|
2017
|
+
*/
|
|
1288
2018
|
store_id?: string;
|
|
2019
|
+
/**
|
|
2020
|
+
* - Invoice number associated with the credit note.
|
|
2021
|
+
*/
|
|
1289
2022
|
invoice_number?: string;
|
|
1290
2023
|
};
|
|
1291
2024
|
/** @returns {RedemptionDetails} */
|
|
1292
2025
|
declare function RedemptionDetails(): RedemptionDetails;
|
|
1293
2026
|
type RedemptionDetails = {
|
|
2027
|
+
/**
|
|
2028
|
+
* - Additional metadata related to the redemption details.
|
|
2029
|
+
*/
|
|
1294
2030
|
meta?: any;
|
|
2031
|
+
/**
|
|
2032
|
+
* - ID of the staff member who processed the redemption.
|
|
2033
|
+
*/
|
|
1295
2034
|
staff_id?: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* - Date and time when the redemption was processed.
|
|
2037
|
+
*/
|
|
1296
2038
|
created_at?: string;
|
|
2039
|
+
/**
|
|
2040
|
+
* - Order Id of the order associated with the redemption.
|
|
2041
|
+
*/
|
|
1297
2042
|
order_id?: string;
|
|
2043
|
+
/**
|
|
2044
|
+
* - Store Id of the order associated with the redemption.
|
|
2045
|
+
*/
|
|
1298
2046
|
store_id?: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* - Shipment Id of the order associated with
|
|
2049
|
+
* the redemption.
|
|
2050
|
+
*/
|
|
1299
2051
|
shipment_id?: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* - Ordering channel associated with the
|
|
2054
|
+
* redemption.
|
|
2055
|
+
*/
|
|
1300
2056
|
ordering_channel?: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* - Amount debited from the credit note
|
|
2059
|
+
* during redemption.
|
|
2060
|
+
*/
|
|
1301
2061
|
amount_debited?: number;
|
|
2062
|
+
/**
|
|
2063
|
+
* - Invoice number associated with the redemption.
|
|
2064
|
+
*/
|
|
1302
2065
|
invoice_number?: string;
|
|
1303
2066
|
};
|
|
1304
2067
|
/** @returns {CreditNoteDetails} */
|
|
1305
2068
|
declare function CreditNoteDetails(): CreditNoteDetails;
|
|
1306
2069
|
type CreditNoteDetails = {
|
|
2070
|
+
/**
|
|
2071
|
+
* - Currency in which the credit note is issued.
|
|
2072
|
+
*/
|
|
1307
2073
|
currency?: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* - Current amount used from the credit note.
|
|
2076
|
+
*/
|
|
1308
2077
|
current_amount_used?: number;
|
|
2078
|
+
/**
|
|
2079
|
+
* - Status of the credit note.
|
|
2080
|
+
*/
|
|
1309
2081
|
cn_status?: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* - Mobile number of the customer
|
|
2084
|
+
* associated with the credit note.
|
|
2085
|
+
*/
|
|
1310
2086
|
customer_mobile_number?: string;
|
|
2087
|
+
/**
|
|
2088
|
+
* - Unique Credit number of the credit note.
|
|
2089
|
+
*/
|
|
1311
2090
|
cn_reference_number?: string;
|
|
1312
2091
|
cn_details?: CnDetails;
|
|
2092
|
+
/**
|
|
2093
|
+
* - List of redemption
|
|
2094
|
+
* details associated with the credit note.
|
|
2095
|
+
*/
|
|
1313
2096
|
redemption_details?: RedemptionDetails[];
|
|
2097
|
+
/**
|
|
2098
|
+
* - Remaining amount left in the credit note.
|
|
2099
|
+
*/
|
|
1314
2100
|
remaining_cn_amount?: number;
|
|
2101
|
+
/**
|
|
2102
|
+
* - Available balance in the credit note.
|
|
2103
|
+
*/
|
|
1315
2104
|
available_cn_balance?: number;
|
|
2105
|
+
/**
|
|
2106
|
+
* - Total amount of the credit note.
|
|
2107
|
+
*/
|
|
1316
2108
|
cn_amount?: number;
|
|
1317
2109
|
};
|
|
1318
2110
|
/** @returns {CreditNoteDetailsResponse} */
|
|
1319
2111
|
declare function CreditNoteDetailsResponse(): CreditNoteDetailsResponse;
|
|
1320
2112
|
type CreditNoteDetailsResponse = {
|
|
2113
|
+
/**
|
|
2114
|
+
* - Indicates if the retrieval of credit note
|
|
2115
|
+
* details was successful.
|
|
2116
|
+
*/
|
|
1321
2117
|
success?: boolean;
|
|
1322
2118
|
data?: CreditNoteDetails;
|
|
1323
2119
|
};
|
|
1324
2120
|
/** @returns {GetCustomerCreditBalance} */
|
|
1325
2121
|
declare function GetCustomerCreditBalance(): GetCustomerCreditBalance;
|
|
1326
2122
|
type GetCustomerCreditBalance = {
|
|
2123
|
+
/**
|
|
2124
|
+
* - The unique identifier of sale channels or
|
|
2125
|
+
* application as affiliate_id associated with the seller.
|
|
2126
|
+
*/
|
|
1327
2127
|
affiliate_id?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* - Unique identifier for the seller.
|
|
2130
|
+
*/
|
|
1328
2131
|
seller_id?: number;
|
|
2132
|
+
/**
|
|
2133
|
+
* - Mobile number of the customer
|
|
2134
|
+
* for whom the credit balance is requested.
|
|
2135
|
+
*/
|
|
1329
2136
|
customer_mobile_number?: string;
|
|
1330
2137
|
};
|
|
1331
2138
|
/** @returns {GetCustomerCreditBalanceReq} */
|
|
@@ -1336,12 +2143,23 @@ type GetCustomerCreditBalanceReq = {
|
|
|
1336
2143
|
/** @returns {GetCustomerCreditBalanceResponseData} */
|
|
1337
2144
|
declare function GetCustomerCreditBalanceResponseData(): GetCustomerCreditBalanceResponseData;
|
|
1338
2145
|
type GetCustomerCreditBalanceResponseData = {
|
|
2146
|
+
/**
|
|
2147
|
+
* - Mobile number of the customer.
|
|
2148
|
+
*/
|
|
1339
2149
|
customer_mobile_number?: string;
|
|
2150
|
+
/**
|
|
2151
|
+
* - Total credited balance
|
|
2152
|
+
* available for the customer.
|
|
2153
|
+
*/
|
|
1340
2154
|
total_credited_balance?: number;
|
|
1341
2155
|
};
|
|
1342
2156
|
/** @returns {GetCustomerCreditBalanceResponse} */
|
|
1343
2157
|
declare function GetCustomerCreditBalanceResponse(): GetCustomerCreditBalanceResponse;
|
|
1344
2158
|
type GetCustomerCreditBalanceResponse = {
|
|
2159
|
+
/**
|
|
2160
|
+
* - Indicates if the retrieval of customer credit
|
|
2161
|
+
* balance was successful.
|
|
2162
|
+
*/
|
|
1345
2163
|
success?: boolean;
|
|
1346
2164
|
data?: GetCustomerCreditBalanceResponseData;
|
|
1347
2165
|
};
|
|
@@ -1353,50 +2171,135 @@ type GetCnConfigReq = {
|
|
|
1353
2171
|
/** @returns {GetCnConfigResponseMeta} */
|
|
1354
2172
|
declare function GetCnConfigResponseMeta(): GetCnConfigResponseMeta;
|
|
1355
2173
|
type GetCnConfigResponseMeta = {
|
|
2174
|
+
/**
|
|
2175
|
+
* - Reason associated with the configuration response.
|
|
2176
|
+
*/
|
|
1356
2177
|
reason?: string;
|
|
2178
|
+
/**
|
|
2179
|
+
* - List of source channels associated
|
|
2180
|
+
* with the credit note configuration.
|
|
2181
|
+
*/
|
|
1357
2182
|
source_channel?: string[];
|
|
1358
2183
|
};
|
|
1359
2184
|
/** @returns {GetCnConfigResponseData} */
|
|
1360
2185
|
declare function GetCnConfigResponseData(): GetCnConfigResponseData;
|
|
1361
2186
|
type GetCnConfigResponseData = {
|
|
2187
|
+
/**
|
|
2188
|
+
* - Indicates if the credit note
|
|
2189
|
+
* is configured as a refund method.
|
|
2190
|
+
*/
|
|
1362
2191
|
is_cn_as_refund_method?: boolean;
|
|
2192
|
+
/**
|
|
2193
|
+
* - The unique identifier of sale channels or
|
|
2194
|
+
* application as affiliate_id associated with the seller.
|
|
2195
|
+
*/
|
|
1363
2196
|
affiliate_id?: string;
|
|
1364
2197
|
meta?: any;
|
|
2198
|
+
/**
|
|
2199
|
+
* - Unique identifier for the seller.
|
|
2200
|
+
*/
|
|
1365
2201
|
seller_id?: number;
|
|
1366
2202
|
notification_events?: CreditNoteConfigNotificationEvents;
|
|
2203
|
+
/**
|
|
2204
|
+
* - Validity period of the credit note
|
|
2205
|
+
* configuration in days.
|
|
2206
|
+
*/
|
|
1367
2207
|
validity?: number;
|
|
2208
|
+
/**
|
|
2209
|
+
* - List of ordering
|
|
2210
|
+
* channels associated with credit note redemption.
|
|
2211
|
+
*/
|
|
1368
2212
|
redemption_ordering_channel?: string[];
|
|
2213
|
+
/**
|
|
2214
|
+
* - Type of currency used for the credit note.
|
|
2215
|
+
*/
|
|
1369
2216
|
currency_type?: string;
|
|
1370
2217
|
};
|
|
1371
2218
|
/** @returns {GetCnConfigResponse} */
|
|
1372
2219
|
declare function GetCnConfigResponse(): GetCnConfigResponse;
|
|
1373
2220
|
type GetCnConfigResponse = {
|
|
2221
|
+
/**
|
|
2222
|
+
* - Indicates if the retrieval of credit note
|
|
2223
|
+
* configuration was successful.
|
|
2224
|
+
*/
|
|
1374
2225
|
success?: boolean;
|
|
1375
2226
|
data?: GetCnConfigResponseData;
|
|
1376
2227
|
};
|
|
1377
2228
|
/** @returns {CnGenerateReportFilters} */
|
|
1378
2229
|
declare function CnGenerateReportFilters(): CnGenerateReportFilters;
|
|
1379
2230
|
type CnGenerateReportFilters = {
|
|
2231
|
+
/**
|
|
2232
|
+
* - Array of staff IDs for filtering credit note reports.
|
|
2233
|
+
*/
|
|
1380
2234
|
staff_id?: string[];
|
|
2235
|
+
/**
|
|
2236
|
+
* - Array of channels through which
|
|
2237
|
+
* credit notes were issued.
|
|
2238
|
+
*/
|
|
1381
2239
|
channel_of_issuance?: string[];
|
|
2240
|
+
/**
|
|
2241
|
+
* - Array of utilisation types for filtering
|
|
2242
|
+
* credit note reports.
|
|
2243
|
+
*/
|
|
1382
2244
|
utilisation?: string[];
|
|
2245
|
+
/**
|
|
2246
|
+
* - Array of ordering channels
|
|
2247
|
+
* associated with credit note reports.
|
|
2248
|
+
*/
|
|
1383
2249
|
ordering_channel?: string[];
|
|
2250
|
+
/**
|
|
2251
|
+
* - Array of store IDs for filtering credit note reports.
|
|
2252
|
+
*/
|
|
1384
2253
|
store_id?: number[];
|
|
2254
|
+
/**
|
|
2255
|
+
* - Array of transaction types for
|
|
2256
|
+
* filtering credit note reports.
|
|
2257
|
+
*/
|
|
1385
2258
|
type_of_transaction?: string[];
|
|
2259
|
+
/**
|
|
2260
|
+
* - Array of issuance channels for
|
|
2261
|
+
* filtering credit note reports.
|
|
2262
|
+
*/
|
|
1386
2263
|
issuance_channel?: string[];
|
|
1387
2264
|
};
|
|
1388
2265
|
/** @returns {CnGenerateReport} */
|
|
1389
2266
|
declare function CnGenerateReport(): CnGenerateReport;
|
|
1390
2267
|
type CnGenerateReport = {
|
|
2268
|
+
/**
|
|
2269
|
+
* - Page number of the credit note report.
|
|
2270
|
+
*/
|
|
1391
2271
|
page?: number;
|
|
2272
|
+
/**
|
|
2273
|
+
* - End date for filtering credit note data.
|
|
2274
|
+
*/
|
|
1392
2275
|
end_date?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* - Number of items per page in the credit note report.
|
|
2278
|
+
*/
|
|
1393
2279
|
page_size?: number;
|
|
1394
2280
|
filters?: CnGenerateReportFilters;
|
|
2281
|
+
/**
|
|
2282
|
+
* - The unique identifier of sale channels or
|
|
2283
|
+
* application as affiliate_id associated with the seller.
|
|
2284
|
+
*/
|
|
1395
2285
|
affiliate_id?: string;
|
|
1396
2286
|
meta?: GenerateReportFilters;
|
|
2287
|
+
/**
|
|
2288
|
+
* - Search query to filter credit note data by keyword.
|
|
2289
|
+
*/
|
|
1397
2290
|
search?: string;
|
|
2291
|
+
/**
|
|
2292
|
+
* - Unique identifier for the credit note report.
|
|
2293
|
+
*/
|
|
1398
2294
|
report_id?: string;
|
|
2295
|
+
/**
|
|
2296
|
+
* - Type of search criteria used for filtering
|
|
2297
|
+
* credit note data.
|
|
2298
|
+
*/
|
|
1399
2299
|
search_type?: string;
|
|
2300
|
+
/**
|
|
2301
|
+
* - Start date for filtering credit note data.
|
|
2302
|
+
*/
|
|
1400
2303
|
start_date?: string;
|
|
1401
2304
|
};
|
|
1402
2305
|
/** @returns {GenerateReportCustomerCnReq} */
|
|
@@ -1407,28 +2310,89 @@ type GenerateReportCustomerCnReq = {
|
|
|
1407
2310
|
/** @returns {CnGenerateReportItems} */
|
|
1408
2311
|
declare function CnGenerateReportItems(): CnGenerateReportItems;
|
|
1409
2312
|
type CnGenerateReportItems = {
|
|
2313
|
+
/**
|
|
2314
|
+
* - Expiry date of the credit note item.
|
|
2315
|
+
*/
|
|
1410
2316
|
expiry_date?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* - Status of the credit note item.
|
|
2319
|
+
*/
|
|
1411
2320
|
status?: string;
|
|
2321
|
+
/**
|
|
2322
|
+
* - Total amount of the credit note item.
|
|
2323
|
+
*/
|
|
1412
2324
|
total_amount?: number;
|
|
2325
|
+
/**
|
|
2326
|
+
* - Order ID of the order associated with the
|
|
2327
|
+
* credit note item.
|
|
2328
|
+
*/
|
|
1413
2329
|
order_id?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* - Date when the credit note item was issued.
|
|
2332
|
+
*/
|
|
1414
2333
|
date_issued?: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* - Shipment ID of the order associated with
|
|
2336
|
+
* the credit note item.
|
|
2337
|
+
*/
|
|
1415
2338
|
shipment_id?: string;
|
|
2339
|
+
/**
|
|
2340
|
+
* - Invoice number associated with the
|
|
2341
|
+
* credit note item.
|
|
2342
|
+
*/
|
|
1416
2343
|
invoice_number?: string;
|
|
2344
|
+
/**
|
|
2345
|
+
* - Unique number of the credit note item.
|
|
2346
|
+
*/
|
|
1417
2347
|
credit_note_number?: string;
|
|
1418
2348
|
};
|
|
1419
2349
|
/** @returns {GenerateReportCustomerCnResponseData} */
|
|
1420
2350
|
declare function GenerateReportCustomerCnResponseData(): GenerateReportCustomerCnResponseData;
|
|
1421
2351
|
type GenerateReportCustomerCnResponseData = {
|
|
2352
|
+
/**
|
|
2353
|
+
* - Indicates if the credit note report
|
|
2354
|
+
* generation was successful.
|
|
2355
|
+
*/
|
|
1422
2356
|
success?: boolean;
|
|
2357
|
+
/**
|
|
2358
|
+
* - Additional message or information related to
|
|
2359
|
+
* the credit note report.
|
|
2360
|
+
*/
|
|
1423
2361
|
message?: string;
|
|
2362
|
+
/**
|
|
2363
|
+
* - List of credit note items in the report.
|
|
2364
|
+
*/
|
|
1424
2365
|
items?: CnGenerateReportItems[];
|
|
2366
|
+
/**
|
|
2367
|
+
* - Display order for row headers
|
|
2368
|
+
* in the report.
|
|
2369
|
+
*/
|
|
1425
2370
|
row_header_display_order?: any;
|
|
2371
|
+
/**
|
|
2372
|
+
* - End date used in the credit note report.
|
|
2373
|
+
*/
|
|
1426
2374
|
end_date?: string;
|
|
1427
2375
|
page?: Page;
|
|
2376
|
+
/**
|
|
2377
|
+
* - Headers included in the credit note report.
|
|
2378
|
+
*/
|
|
1428
2379
|
headers?: string[];
|
|
2380
|
+
/**
|
|
2381
|
+
* - Primary headers used in the credit
|
|
2382
|
+
* note report.
|
|
2383
|
+
*/
|
|
1429
2384
|
primary_headers?: string[];
|
|
2385
|
+
/**
|
|
2386
|
+
* - Allowed filters for the credit note report.
|
|
2387
|
+
*/
|
|
1430
2388
|
allowed_filters?: string[];
|
|
2389
|
+
/**
|
|
2390
|
+
* - Start date used in the credit note report.
|
|
2391
|
+
*/
|
|
1431
2392
|
start_date?: string;
|
|
2393
|
+
/**
|
|
2394
|
+
* - Total count of credit note items in the report.
|
|
2395
|
+
*/
|
|
1432
2396
|
item_count?: number;
|
|
1433
2397
|
};
|
|
1434
2398
|
/** @returns {GenerateReportCustomerCnResponse} */
|
|
@@ -1439,13 +2403,40 @@ type GenerateReportCustomerCnResponse = {
|
|
|
1439
2403
|
/** @returns {CnDownloadReport} */
|
|
1440
2404
|
declare function CnDownloadReport(): CnDownloadReport;
|
|
1441
2405
|
type CnDownloadReport = {
|
|
2406
|
+
/**
|
|
2407
|
+
* - Page number of the download report.
|
|
2408
|
+
*/
|
|
1442
2409
|
page?: number;
|
|
2410
|
+
/**
|
|
2411
|
+
* - Start date for filtering credit note data
|
|
2412
|
+
* in the report.
|
|
2413
|
+
*/
|
|
1443
2414
|
start_date?: string;
|
|
2415
|
+
/**
|
|
2416
|
+
* - End date for filtering credit note data in the report.
|
|
2417
|
+
*/
|
|
1444
2418
|
end_date?: string;
|
|
2419
|
+
/**
|
|
2420
|
+
* - The unique identifier of sale channels or
|
|
2421
|
+
* application as affiliate_id associated with the seller.
|
|
2422
|
+
*/
|
|
1445
2423
|
affiliate_id?: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* - Search query to filter credit note data by keyword.
|
|
2426
|
+
*/
|
|
1446
2427
|
search?: string;
|
|
2428
|
+
/**
|
|
2429
|
+
* - Status of the credit note data in the report.
|
|
2430
|
+
*/
|
|
1447
2431
|
status?: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* - Type of search criteria used for filtering
|
|
2434
|
+
* credit note data.
|
|
2435
|
+
*/
|
|
1448
2436
|
search_type?: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* - Number of items per page in the download report.
|
|
2439
|
+
*/
|
|
1449
2440
|
page_size?: number;
|
|
1450
2441
|
};
|
|
1451
2442
|
/** @returns {DownloadReportCustomerCnReq} */
|
|
@@ -1456,60 +2447,161 @@ type DownloadReportCustomerCnReq = {
|
|
|
1456
2447
|
/** @returns {DownloadReportResponseData} */
|
|
1457
2448
|
declare function DownloadReportResponseData(): DownloadReportResponseData;
|
|
1458
2449
|
type DownloadReportResponseData = {
|
|
2450
|
+
/**
|
|
2451
|
+
* - Unique identifier for the report configuration.
|
|
2452
|
+
*/
|
|
1459
2453
|
report_config_id?: string;
|
|
2454
|
+
/**
|
|
2455
|
+
* - Full name associated with the report request.
|
|
2456
|
+
*/
|
|
1460
2457
|
full_name?: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* - User who requested the report.
|
|
2460
|
+
*/
|
|
1461
2461
|
requested_by?: string;
|
|
2462
|
+
/**
|
|
2463
|
+
* - Start date used in the report.
|
|
2464
|
+
*/
|
|
1462
2465
|
start_date?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* - End date used in the report.
|
|
2468
|
+
*/
|
|
1463
2469
|
end_date?: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* - Dictionary containing request parameters
|
|
2472
|
+
* for the report.
|
|
2473
|
+
*/
|
|
1464
2474
|
request_dict?: any;
|
|
2475
|
+
/**
|
|
2476
|
+
* - Download link for accessing the generated report.
|
|
2477
|
+
*/
|
|
1465
2478
|
download_link?: string;
|
|
2479
|
+
/**
|
|
2480
|
+
* - Date and time when the report was created.
|
|
2481
|
+
*/
|
|
1466
2482
|
created_at?: string;
|
|
2483
|
+
/**
|
|
2484
|
+
* - Additional metadata associated with the report.
|
|
2485
|
+
*/
|
|
1467
2486
|
meta?: any;
|
|
2487
|
+
/**
|
|
2488
|
+
* - Message related to the report status or generation.
|
|
2489
|
+
*/
|
|
1468
2490
|
msg?: string;
|
|
2491
|
+
/**
|
|
2492
|
+
* - Name of the generated report.
|
|
2493
|
+
*/
|
|
1469
2494
|
report_name?: string;
|
|
2495
|
+
/**
|
|
2496
|
+
* - Status of the report.
|
|
2497
|
+
*/
|
|
1470
2498
|
status?: string;
|
|
2499
|
+
/**
|
|
2500
|
+
* - Display name of the report.
|
|
2501
|
+
*/
|
|
1471
2502
|
display_name?: string;
|
|
2503
|
+
/**
|
|
2504
|
+
* - Filters applied to generate the report.
|
|
2505
|
+
*/
|
|
1472
2506
|
filters?: any;
|
|
1473
2507
|
};
|
|
1474
2508
|
/** @returns {DownloadReportCustomerCnResponse} */
|
|
1475
2509
|
declare function DownloadReportCustomerCnResponse(): DownloadReportCustomerCnResponse;
|
|
1476
2510
|
type DownloadReportCustomerCnResponse = {
|
|
2511
|
+
/**
|
|
2512
|
+
* - List of download report data items.
|
|
2513
|
+
*/
|
|
1477
2514
|
items?: DownloadReportResponseData[];
|
|
1478
|
-
|
|
2515
|
+
/**
|
|
2516
|
+
* - Total count of items in the download report.
|
|
2517
|
+
*/
|
|
1479
2518
|
item_count?: number;
|
|
1480
2519
|
page?: Page;
|
|
1481
2520
|
};
|
|
1482
2521
|
/** @returns {GetReportingFilters} */
|
|
1483
2522
|
declare function GetReportingFilters(): GetReportingFilters;
|
|
1484
2523
|
type GetReportingFilters = {
|
|
2524
|
+
/**
|
|
2525
|
+
* - Display text for the filter.
|
|
2526
|
+
*/
|
|
1485
2527
|
text?: string;
|
|
2528
|
+
/**
|
|
2529
|
+
* - Type of the fields like seach, filter(e.g.,
|
|
2530
|
+
* single, multi select).
|
|
2531
|
+
*/
|
|
1486
2532
|
type?: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* - Options available for the filter.
|
|
2535
|
+
*/
|
|
1487
2536
|
options?: any[];
|
|
2537
|
+
/**
|
|
2538
|
+
* - Value to be pass in response select from options.
|
|
2539
|
+
*/
|
|
1488
2540
|
value?: string;
|
|
1489
2541
|
};
|
|
1490
2542
|
/** @returns {GetReportingNestedFilters} */
|
|
1491
2543
|
declare function GetReportingNestedFilters(): GetReportingNestedFilters;
|
|
1492
2544
|
type GetReportingNestedFilters = {
|
|
2545
|
+
/**
|
|
2546
|
+
* - Display text for the nested filter.
|
|
2547
|
+
*/
|
|
1493
2548
|
text?: string;
|
|
2549
|
+
/**
|
|
2550
|
+
* - Options available for the nested filter.
|
|
2551
|
+
*/
|
|
1494
2552
|
options?: any[];
|
|
2553
|
+
/**
|
|
2554
|
+
* - Indicates if the nested filter is required.
|
|
2555
|
+
*/
|
|
1495
2556
|
required?: boolean;
|
|
2557
|
+
/**
|
|
2558
|
+
* - Placeholder text for the nested filter.
|
|
2559
|
+
*/
|
|
1496
2560
|
placeholder_text?: string;
|
|
2561
|
+
/**
|
|
2562
|
+
* - Type of the nested filter (e.g., single, multi select).
|
|
2563
|
+
*/
|
|
1497
2564
|
type?: string;
|
|
2565
|
+
/**
|
|
2566
|
+
* - Value to be pass in response select from options.
|
|
2567
|
+
*/
|
|
1498
2568
|
value?: string;
|
|
1499
2569
|
};
|
|
1500
2570
|
/** @returns {GetReportingFiltersReasonOptions} */
|
|
1501
2571
|
declare function GetReportingFiltersReasonOptions(): GetReportingFiltersReasonOptions;
|
|
1502
2572
|
type GetReportingFiltersReasonOptions = {
|
|
2573
|
+
/**
|
|
2574
|
+
* - Display text for the reason option.
|
|
2575
|
+
*/
|
|
1503
2576
|
text?: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* - Value of the reason option.
|
|
2579
|
+
*/
|
|
1504
2580
|
value?: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* - Placeholder text for the reason option.
|
|
2583
|
+
*/
|
|
1505
2584
|
placeholder_text?: string;
|
|
1506
2585
|
};
|
|
1507
2586
|
/** @returns {GetReportingFiltersReason} */
|
|
1508
2587
|
declare function GetReportingFiltersReason(): GetReportingFiltersReason;
|
|
1509
2588
|
type GetReportingFiltersReason = {
|
|
2589
|
+
/**
|
|
2590
|
+
* - Display text for the reason.
|
|
2591
|
+
*/
|
|
1510
2592
|
text?: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* - Type of the reason.
|
|
2595
|
+
*/
|
|
1511
2596
|
type?: string;
|
|
2597
|
+
/**
|
|
2598
|
+
* - Value to be pass in response.
|
|
2599
|
+
*/
|
|
1512
2600
|
value?: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* - Options available
|
|
2603
|
+
* for the reasons select from options.
|
|
2604
|
+
*/
|
|
1513
2605
|
options?: GetReportingFiltersReasonOptions[];
|
|
1514
2606
|
};
|
|
1515
2607
|
/** @returns {GetReportingFiltersResponse} */
|
|
@@ -1517,13 +2609,20 @@ declare function GetReportingFiltersResponse(): GetReportingFiltersResponse;
|
|
|
1517
2609
|
type GetReportingFiltersResponse = {
|
|
1518
2610
|
reason?: GetReportingFiltersReason;
|
|
1519
2611
|
search?: GetReportingFilters;
|
|
2612
|
+
/**
|
|
2613
|
+
* - Array of nested filter objects.
|
|
2614
|
+
*/
|
|
1520
2615
|
filters?: GetReportingNestedFilters[];
|
|
1521
2616
|
status?: GetReportingFilters;
|
|
1522
2617
|
};
|
|
1523
2618
|
/** @returns {InvoicePaymentOptionsPayloadData} */
|
|
1524
2619
|
declare function InvoicePaymentOptionsPayloadData(): InvoicePaymentOptionsPayloadData;
|
|
1525
2620
|
type InvoicePaymentOptionsPayloadData = {
|
|
1526
|
-
|
|
2621
|
+
/**
|
|
2622
|
+
* - List of invoice numbers for which
|
|
2623
|
+
* payment options are being requested.
|
|
2624
|
+
*/
|
|
2625
|
+
invoice_numbers?: string[];
|
|
1527
2626
|
};
|
|
1528
2627
|
/** @returns {InvoicePaymentOptionsReq} */
|
|
1529
2628
|
declare function InvoicePaymentOptionsReq(): InvoicePaymentOptionsReq;
|
|
@@ -1533,89 +2632,233 @@ type InvoicePaymentOptionsReq = {
|
|
|
1533
2632
|
/** @returns {InvoicePaymentOptionsResponsePayableAmounts} */
|
|
1534
2633
|
declare function InvoicePaymentOptionsResponsePayableAmounts(): InvoicePaymentOptionsResponsePayableAmounts;
|
|
1535
2634
|
type InvoicePaymentOptionsResponsePayableAmounts = {
|
|
2635
|
+
/**
|
|
2636
|
+
* - Amount that is payable for the invoice.
|
|
2637
|
+
*/
|
|
1536
2638
|
amount?: number;
|
|
2639
|
+
/**
|
|
2640
|
+
* - Key associated with the payable amount for
|
|
2641
|
+
* identification.
|
|
2642
|
+
*/
|
|
1537
2643
|
amount_key?: string;
|
|
2644
|
+
/**
|
|
2645
|
+
* - Header describing the payable amount.
|
|
2646
|
+
*/
|
|
1538
2647
|
header?: string;
|
|
1539
2648
|
};
|
|
1540
2649
|
/** @returns {InvoicePaymentOptionsResponseDeductedAmounts} */
|
|
1541
2650
|
declare function InvoicePaymentOptionsResponseDeductedAmounts(): InvoicePaymentOptionsResponseDeductedAmounts;
|
|
1542
2651
|
type InvoicePaymentOptionsResponseDeductedAmounts = {
|
|
2652
|
+
/**
|
|
2653
|
+
* - Amount deducted from the invoice.
|
|
2654
|
+
*/
|
|
1543
2655
|
amount?: number;
|
|
2656
|
+
/**
|
|
2657
|
+
* - Header describing the deducted amount.
|
|
2658
|
+
*/
|
|
1544
2659
|
header?: string;
|
|
2660
|
+
/**
|
|
2661
|
+
* - Key associated with the deducted amount for
|
|
2662
|
+
* identification.
|
|
2663
|
+
*/
|
|
1545
2664
|
amount_key?: string;
|
|
2665
|
+
/**
|
|
2666
|
+
* - Indicates whether the deducted amount is payable.
|
|
2667
|
+
*/
|
|
1546
2668
|
is_payable?: boolean;
|
|
2669
|
+
/**
|
|
2670
|
+
* - Currency symbol associated with the deducted amount.
|
|
2671
|
+
*/
|
|
1547
2672
|
symbol?: string;
|
|
1548
2673
|
};
|
|
1549
2674
|
/** @returns {InvoicePaymentOptionsResponseData} */
|
|
1550
2675
|
declare function InvoicePaymentOptionsResponseData(): InvoicePaymentOptionsResponseData;
|
|
1551
2676
|
type InvoicePaymentOptionsResponseData = {
|
|
1552
|
-
|
|
2677
|
+
/**
|
|
2678
|
+
* - Invoice number for which payment
|
|
2679
|
+
* options are provided.
|
|
2680
|
+
*/
|
|
2681
|
+
invoice_number?: string;
|
|
2682
|
+
/**
|
|
2683
|
+
* - Type of the invoice (e.g., 'Seller Fynd',
|
|
2684
|
+
* 'Platform Subscription').
|
|
2685
|
+
*/
|
|
1553
2686
|
invoice_type?: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* - List of amounts that are payable for the invoice.
|
|
2689
|
+
*/
|
|
1554
2690
|
display_amounts?: InvoicePaymentOptionsResponsePayableAmounts[];
|
|
2691
|
+
/**
|
|
2692
|
+
* - Total amount for the invoice.
|
|
2693
|
+
*/
|
|
1555
2694
|
total_amount?: any;
|
|
2695
|
+
/**
|
|
2696
|
+
* - Amounts deducted from the total,
|
|
2697
|
+
* including any associated details.
|
|
2698
|
+
*/
|
|
1556
2699
|
deducted_amounts?: any;
|
|
2700
|
+
/**
|
|
2701
|
+
* - Amounts that are payable for the invoice.
|
|
2702
|
+
*/
|
|
1557
2703
|
payable_amounts?: InvoicePaymentOptionsResponsePayableAmounts[];
|
|
2704
|
+
currency?: Currency;
|
|
1558
2705
|
};
|
|
1559
2706
|
/** @returns {InvoicePaymentOptionsResponse} */
|
|
1560
2707
|
declare function InvoicePaymentOptionsResponse(): InvoicePaymentOptionsResponse;
|
|
1561
2708
|
type InvoicePaymentOptionsResponse = {
|
|
2709
|
+
/**
|
|
2710
|
+
* - Reason for the response or any errors encountered.
|
|
2711
|
+
*/
|
|
1562
2712
|
reason?: string;
|
|
1563
|
-
|
|
2713
|
+
/**
|
|
2714
|
+
* - List of data objects
|
|
2715
|
+
* containing details about invoice payment options.
|
|
2716
|
+
*/
|
|
2717
|
+
data?: InvoicePaymentOptionsResponseData[];
|
|
2718
|
+
/**
|
|
2719
|
+
* - Total amount payable for the invoices.
|
|
2720
|
+
*/
|
|
2721
|
+
total_payable_amount?: number;
|
|
2722
|
+
/**
|
|
2723
|
+
* - Number of invoices included in the response.
|
|
2724
|
+
*/
|
|
2725
|
+
invoice_count?: number;
|
|
2726
|
+
/**
|
|
2727
|
+
* - Indicates whether the request to retrieve
|
|
2728
|
+
* invoice payment options was successful.
|
|
2729
|
+
*/
|
|
1564
2730
|
success?: boolean;
|
|
1565
2731
|
};
|
|
1566
2732
|
/** @returns {PaymentDetail} */
|
|
1567
2733
|
declare function PaymentDetail(): PaymentDetail;
|
|
1568
2734
|
type PaymentDetail = {
|
|
2735
|
+
/**
|
|
2736
|
+
* - Name or label displayed for the payment detail.
|
|
2737
|
+
*/
|
|
1569
2738
|
display_name?: string;
|
|
2739
|
+
/**
|
|
2740
|
+
* - Value associated with the payment detail (e.g.,
|
|
2741
|
+
* amount, transaction ID).
|
|
2742
|
+
*/
|
|
1570
2743
|
value?: string;
|
|
1571
2744
|
};
|
|
1572
2745
|
/** @returns {PaidInvoicePaymentDetail} */
|
|
1573
2746
|
declare function PaidInvoicePaymentDetail(): PaidInvoicePaymentDetail;
|
|
1574
2747
|
type PaidInvoicePaymentDetail = {
|
|
2748
|
+
/**
|
|
2749
|
+
* - List of payment details for
|
|
2750
|
+
* the invoice.
|
|
2751
|
+
*/
|
|
1575
2752
|
payment_details?: PaymentDetail[];
|
|
2753
|
+
/**
|
|
2754
|
+
* - Date when the payment was made.
|
|
2755
|
+
*/
|
|
1576
2756
|
date_of_payment?: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* - Amount paid towards the invoice.
|
|
2759
|
+
*/
|
|
1577
2760
|
amount?: number;
|
|
1578
2761
|
};
|
|
1579
2762
|
/** @returns {InvoicePaymentDetailsResponseData} */
|
|
1580
2763
|
declare function InvoicePaymentDetailsResponseData(): InvoicePaymentDetailsResponseData;
|
|
1581
2764
|
type InvoicePaymentDetailsResponseData = {
|
|
2765
|
+
/**
|
|
2766
|
+
* - List
|
|
2767
|
+
* of details for paid invoices.
|
|
2768
|
+
*/
|
|
1582
2769
|
paid_invoice_payment_details?: PaidInvoicePaymentDetail[];
|
|
2770
|
+
/**
|
|
2771
|
+
* - Details of any failed
|
|
2772
|
+
* payment attempts for the invoices.
|
|
2773
|
+
*/
|
|
1583
2774
|
failed_attempts_details?: any[];
|
|
1584
2775
|
};
|
|
1585
2776
|
/** @returns {InvoicePaymentDetailsResponse} */
|
|
1586
2777
|
declare function InvoicePaymentDetailsResponse(): InvoicePaymentDetailsResponse;
|
|
1587
2778
|
type InvoicePaymentDetailsResponse = {
|
|
2779
|
+
/**
|
|
2780
|
+
* - Reason for the response or any errors encountered.
|
|
2781
|
+
*/
|
|
1588
2782
|
reason?: string;
|
|
1589
2783
|
data?: InvoicePaymentDetailsResponseData;
|
|
2784
|
+
/**
|
|
2785
|
+
* - Indicates whether the request to retrieve
|
|
2786
|
+
* invoice payment details was successful.
|
|
2787
|
+
*/
|
|
1590
2788
|
success?: boolean;
|
|
2789
|
+
/**
|
|
2790
|
+
* - Indicates whether payment
|
|
2791
|
+
* details are visible or hidden in the response.
|
|
2792
|
+
*/
|
|
1591
2793
|
payment_details_visible?: boolean;
|
|
1592
2794
|
};
|
|
1593
2795
|
/** @returns {InvoiceActivityLogsResponseData} */
|
|
1594
2796
|
declare function InvoiceActivityLogsResponseData(): InvoiceActivityLogsResponseData;
|
|
1595
2797
|
type InvoiceActivityLogsResponseData = {
|
|
2798
|
+
/**
|
|
2799
|
+
* - Identifier of the user or system that
|
|
2800
|
+
* performed the activity.
|
|
2801
|
+
*/
|
|
1596
2802
|
performed_by?: string;
|
|
2803
|
+
/**
|
|
2804
|
+
* - Status of the activity (e.g., 'Completed', 'Pending').
|
|
2805
|
+
*/
|
|
1597
2806
|
status?: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* - Reason for the activity status or any related notes.
|
|
2809
|
+
*/
|
|
1598
2810
|
reason?: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* - Indicates whether the activity issue is resolved.
|
|
2813
|
+
*/
|
|
1599
2814
|
is_resolved?: boolean;
|
|
2815
|
+
/**
|
|
2816
|
+
* - Number of retry attempts made for the activity.
|
|
2817
|
+
*/
|
|
1600
2818
|
retry_attempts?: number;
|
|
2819
|
+
/**
|
|
2820
|
+
* - Maximum number of retry attempts
|
|
2821
|
+
* allowed for the activity.
|
|
2822
|
+
*/
|
|
1601
2823
|
max_retry_attempts?: number;
|
|
1602
2824
|
};
|
|
1603
2825
|
/** @returns {InvoiceActivityLogsResponse} */
|
|
1604
2826
|
declare function InvoiceActivityLogsResponse(): InvoiceActivityLogsResponse;
|
|
1605
2827
|
type InvoiceActivityLogsResponse = {
|
|
2828
|
+
/**
|
|
2829
|
+
* - List of activity logs
|
|
2830
|
+
* related to invoices.
|
|
2831
|
+
*/
|
|
1606
2832
|
data?: InvoiceActivityLogsResponseData[];
|
|
1607
2833
|
};
|
|
1608
2834
|
/** @returns {InvoiceActivityLogError} */
|
|
1609
2835
|
declare function InvoiceActivityLogError(): InvoiceActivityLogError;
|
|
1610
2836
|
type InvoiceActivityLogError = {
|
|
2837
|
+
/**
|
|
2838
|
+
* - Reason for the error or issue encountered with
|
|
2839
|
+
* the invoice activity logs.
|
|
2840
|
+
*/
|
|
1611
2841
|
reason?: string;
|
|
1612
2842
|
};
|
|
1613
2843
|
/** @returns {UnlockCreditNoteRequestData} */
|
|
1614
2844
|
declare function UnlockCreditNoteRequestData(): UnlockCreditNoteRequestData;
|
|
1615
2845
|
type UnlockCreditNoteRequestData = {
|
|
2846
|
+
/**
|
|
2847
|
+
* - The unique identifier for the seller.
|
|
2848
|
+
*/
|
|
1616
2849
|
seller_id?: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* - A list of credit notes that are locked.
|
|
2852
|
+
*/
|
|
1617
2853
|
locked_credit_notes?: string[];
|
|
2854
|
+
/**
|
|
2855
|
+
* - The reason for unlocking the credit notes.
|
|
2856
|
+
*/
|
|
1618
2857
|
unlock_reason?: string;
|
|
2858
|
+
/**
|
|
2859
|
+
* - Additional details or comments about the
|
|
2860
|
+
* unlock request.
|
|
2861
|
+
*/
|
|
1619
2862
|
description?: string;
|
|
1620
2863
|
};
|
|
1621
2864
|
/** @returns {UnlockCreditNoteReq} */
|
|
@@ -1626,12 +2869,22 @@ type UnlockCreditNoteReq = {
|
|
|
1626
2869
|
/** @returns {UnlockCreditNoteResponseData} */
|
|
1627
2870
|
declare function UnlockCreditNoteResponseData(): UnlockCreditNoteResponseData;
|
|
1628
2871
|
type UnlockCreditNoteResponseData = {
|
|
2872
|
+
/**
|
|
2873
|
+
* - Indicates whether the credit note is unlocked.
|
|
2874
|
+
*/
|
|
1629
2875
|
is_cn_unlocked?: boolean;
|
|
2876
|
+
/**
|
|
2877
|
+
* - The current status of the each credit notes.
|
|
2878
|
+
*/
|
|
1630
2879
|
status?: string;
|
|
1631
2880
|
};
|
|
1632
2881
|
/** @returns {UnlockCreditNoteResponse} */
|
|
1633
2882
|
declare function UnlockCreditNoteResponse(): UnlockCreditNoteResponse;
|
|
1634
2883
|
type UnlockCreditNoteResponse = {
|
|
2884
|
+
/**
|
|
2885
|
+
* - Indicates whether the credit note unlock
|
|
2886
|
+
* request was successful.
|
|
2887
|
+
*/
|
|
1635
2888
|
success?: boolean;
|
|
1636
2889
|
data?: UnlockCreditNoteResponseData;
|
|
1637
2890
|
};
|