@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,183 +1,169 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {string} [
|
|
4
|
+
* @typedef GenerateReportMeta
|
|
5
|
+
* @property {string} [brand]
|
|
6
|
+
* @property {string} [company]
|
|
7
|
+
* @property {string} [channel]
|
|
6
8
|
*/
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
|
-
* @typedef
|
|
10
|
-
* @property {
|
|
11
|
-
* @property {
|
|
11
|
+
* @typedef GenerateReportFilters
|
|
12
|
+
* @property {string[]} [brand]
|
|
13
|
+
* @property {string[]} [company]
|
|
14
|
+
* @property {string[]} [channel]
|
|
12
15
|
*/
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
|
-
* @typedef
|
|
16
|
-
* @property {string} [
|
|
17
|
-
* @property {string} [
|
|
18
|
-
* @property {
|
|
19
|
-
* @property {string} [
|
|
20
|
-
* @property {
|
|
21
|
-
* @property {string} [ordering_channel]
|
|
22
|
-
* @property {string} [shipment_id]
|
|
23
|
-
* @property {string} [staff_id]
|
|
24
|
-
* @property {string} [store_id]
|
|
18
|
+
* @typedef GenerateReportPlatform
|
|
19
|
+
* @property {string} [start_date]
|
|
20
|
+
* @property {string} [end_date]
|
|
21
|
+
* @property {GenerateReportMeta} [meta]
|
|
22
|
+
* @property {string} [report_id]
|
|
23
|
+
* @property {GenerateReportFilters} [filters]
|
|
25
24
|
*/
|
|
26
25
|
|
|
27
26
|
/**
|
|
28
|
-
* @typedef
|
|
29
|
-
* @property {
|
|
27
|
+
* @typedef GenerateReportRequest
|
|
28
|
+
* @property {GenerateReportPlatform} [data]
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @typedef Page
|
|
33
|
+
* @property {number} [item_total]
|
|
34
|
+
* @property {string} [next_id]
|
|
35
|
+
* @property {boolean} [has_previous]
|
|
36
|
+
* @property {boolean} [has_next]
|
|
37
|
+
* @property {number} [current]
|
|
38
|
+
* @property {string} type
|
|
39
|
+
* @property {number} [size]
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @typedef GenerateReportJson
|
|
44
|
+
* @property {string[][]} [items]
|
|
45
|
+
* @property {Page} [page]
|
|
30
46
|
* @property {string} [end_date]
|
|
31
|
-
* @property {
|
|
32
|
-
* @property {number} [pagesize]
|
|
33
|
-
* @property {string} [search]
|
|
34
|
-
* @property {string} [search_type]
|
|
47
|
+
* @property {string[]} [headers]
|
|
35
48
|
* @property {string} [start_date]
|
|
36
|
-
* @property {
|
|
49
|
+
* @property {number} [item_count]
|
|
37
50
|
*/
|
|
38
51
|
|
|
39
52
|
/**
|
|
40
|
-
* @typedef
|
|
41
|
-
* @property {string} [
|
|
42
|
-
* @property {
|
|
43
|
-
|
|
44
|
-
|
|
53
|
+
* @typedef Error
|
|
54
|
+
* @property {string} [reason]
|
|
55
|
+
* @property {boolean} [success]
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @typedef DownloadReport
|
|
45
60
|
* @property {number} [page]
|
|
46
61
|
* @property {number} [pagesize]
|
|
47
|
-
* @property {string} [report_id]
|
|
48
|
-
* @property {string} [search]
|
|
49
|
-
* @property {string} [search_type]
|
|
50
62
|
* @property {string} [start_date]
|
|
63
|
+
* @property {string} [end_date]
|
|
51
64
|
*/
|
|
52
65
|
|
|
53
66
|
/**
|
|
54
|
-
* @typedef
|
|
55
|
-
* @property {string
|
|
56
|
-
* @property {string
|
|
57
|
-
* @property {
|
|
58
|
-
* @property {
|
|
59
|
-
* @property {
|
|
60
|
-
* @property {string
|
|
67
|
+
* @typedef DownloadReportItems
|
|
68
|
+
* @property {string} [start_date]
|
|
69
|
+
* @property {string} [end_date]
|
|
70
|
+
* @property {GenerateReportMeta} [meta]
|
|
71
|
+
* @property {string} [report_id]
|
|
72
|
+
* @property {GenerateReportFilters} [filters]
|
|
73
|
+
* @property {string} [type_of_request]
|
|
61
74
|
*/
|
|
62
75
|
|
|
63
76
|
/**
|
|
64
|
-
* @typedef
|
|
65
|
-
* @property {
|
|
66
|
-
* @property {
|
|
67
|
-
* @property {
|
|
68
|
-
* @property {string} [invoice_number]
|
|
69
|
-
* @property {string} [order_id]
|
|
70
|
-
* @property {string} [shipment_id]
|
|
71
|
-
* @property {string} [status]
|
|
72
|
-
* @property {number} [total_amount]
|
|
77
|
+
* @typedef DownloadReportList
|
|
78
|
+
* @property {DownloadReportItems[]} [items]
|
|
79
|
+
* @property {Page} [page]
|
|
80
|
+
* @property {number} [item_count]
|
|
73
81
|
*/
|
|
74
82
|
|
|
75
83
|
/**
|
|
76
|
-
* @typedef
|
|
77
|
-
* @property {string} [
|
|
84
|
+
* @typedef GetEngineData
|
|
85
|
+
* @property {string} [table_name]
|
|
86
|
+
* @property {string[]} [project]
|
|
87
|
+
* @property {Object} [filters]
|
|
78
88
|
*/
|
|
79
89
|
|
|
80
90
|
/**
|
|
81
|
-
* @typedef
|
|
82
|
-
* @property {
|
|
83
|
-
* @property {string} [currency_type]
|
|
84
|
-
* @property {boolean} [is_cn_as_refund_method]
|
|
85
|
-
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
86
|
-
* @property {string[]} [ordering_channel]
|
|
87
|
-
* @property {string} [sales_channel_name]
|
|
88
|
-
* @property {number} [seller_id]
|
|
89
|
-
* @property {string[]} [slug_values]
|
|
90
|
-
* @property {string[]} [source_channel]
|
|
91
|
-
* @property {number} [validity]
|
|
91
|
+
* @typedef GetEngineRequest
|
|
92
|
+
* @property {GetEngineData} [data]
|
|
92
93
|
*/
|
|
93
94
|
|
|
94
95
|
/**
|
|
95
|
-
* @typedef
|
|
96
|
-
* @property {
|
|
96
|
+
* @typedef GetEngineResponse
|
|
97
|
+
* @property {boolean} [success]
|
|
98
|
+
* @property {Object[]} [items]
|
|
99
|
+
* @property {Page} [page]
|
|
100
|
+
* @property {number} [item_count]
|
|
97
101
|
*/
|
|
98
102
|
|
|
99
103
|
/**
|
|
100
|
-
* @typedef
|
|
101
|
-
* @property {string} [
|
|
102
|
-
* @property {boolean} [success]
|
|
104
|
+
* @typedef GetReason
|
|
105
|
+
* @property {string} [reason_type]
|
|
103
106
|
*/
|
|
104
107
|
|
|
105
108
|
/**
|
|
106
|
-
* @typedef
|
|
107
|
-
* @property {
|
|
108
|
-
* @property {number} [page]
|
|
109
|
-
* @property {number} [pagesize]
|
|
110
|
-
* @property {string} [seller_id]
|
|
111
|
-
* @property {string} [start_end]
|
|
109
|
+
* @typedef GetReasonRequest
|
|
110
|
+
* @property {GetReason} [data]
|
|
112
111
|
*/
|
|
113
112
|
|
|
114
113
|
/**
|
|
115
|
-
* @typedef
|
|
116
|
-
* @property {
|
|
114
|
+
* @typedef ReasonItem
|
|
115
|
+
* @property {string} [id]
|
|
116
|
+
* @property {string} [name]
|
|
117
|
+
* @property {string} [display_name]
|
|
117
118
|
*/
|
|
118
119
|
|
|
119
120
|
/**
|
|
120
|
-
* @typedef
|
|
121
|
-
* @property {
|
|
122
|
-
* @property {
|
|
121
|
+
* @typedef GetReasonResponse
|
|
122
|
+
* @property {boolean} [success]
|
|
123
|
+
* @property {ReasonItem[]} [item_list]
|
|
123
124
|
* @property {number} [item_count]
|
|
124
|
-
* @property {Object[]} [items]
|
|
125
|
-
* @property {string} [message]
|
|
126
125
|
* @property {Page} [page]
|
|
127
|
-
* @property {boolean} [show_mr]
|
|
128
126
|
*/
|
|
129
127
|
|
|
130
128
|
/**
|
|
131
|
-
* @typedef
|
|
132
|
-
* @property {
|
|
129
|
+
* @typedef GetReportListData
|
|
130
|
+
* @property {string} [role_name]
|
|
131
|
+
* @property {boolean} [listing_enabled]
|
|
133
132
|
*/
|
|
134
133
|
|
|
135
134
|
/**
|
|
136
|
-
* @typedef
|
|
137
|
-
* @property {
|
|
138
|
-
* @property {number} [cn_amount]
|
|
139
|
-
* @property {CnDetails} [cn_details]
|
|
140
|
-
* @property {string} [cn_reference_number]
|
|
141
|
-
* @property {string} [cn_status]
|
|
142
|
-
* @property {string} [customer_mobile_number]
|
|
143
|
-
* @property {RedemptionDetails[]} [redemption_details]
|
|
144
|
-
* @property {number} [remaining_cn_amount]
|
|
135
|
+
* @typedef GetReportListRequest
|
|
136
|
+
* @property {GetReportListData} [data]
|
|
145
137
|
*/
|
|
146
138
|
|
|
147
139
|
/**
|
|
148
|
-
* @typedef
|
|
149
|
-
* @property {
|
|
140
|
+
* @typedef GetAffiliate
|
|
141
|
+
* @property {number} [company_id]
|
|
150
142
|
*/
|
|
151
143
|
|
|
152
144
|
/**
|
|
153
|
-
* @typedef
|
|
154
|
-
* @property {CreditNoteDetails} [data]
|
|
145
|
+
* @typedef GetReportListResponse
|
|
155
146
|
* @property {boolean} [success]
|
|
147
|
+
* @property {ReportItem[]} [items]
|
|
148
|
+
* @property {Page} [page]
|
|
149
|
+
* @property {number} [total_count]
|
|
156
150
|
*/
|
|
157
151
|
|
|
158
152
|
/**
|
|
159
|
-
* @typedef
|
|
160
|
-
* @property {string} [
|
|
153
|
+
* @typedef ReportItem
|
|
154
|
+
* @property {string} [id]
|
|
161
155
|
* @property {string} [name]
|
|
162
|
-
* @property {string} [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
* @
|
|
167
|
-
* @property {string} [affiliate_id]
|
|
168
|
-
* @property {number} [seller_id]
|
|
169
|
-
* @property {string[]} [slug_values]
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @typedef DeleteConfigRequest
|
|
174
|
-
* @property {DeleteConfig} [data]
|
|
156
|
+
* @property {string} [description]
|
|
157
|
+
* @property {string[]} [allowed_filters]
|
|
158
|
+
* @property {Object} [config_meta]
|
|
159
|
+
* @property {string} [report_type]
|
|
160
|
+
* @property {string} [display_date]
|
|
175
161
|
*/
|
|
176
162
|
|
|
177
163
|
/**
|
|
178
|
-
* @typedef
|
|
179
|
-
* @property {string} [message]
|
|
164
|
+
* @typedef GetAffiliateResponse
|
|
180
165
|
* @property {boolean} [success]
|
|
166
|
+
* @property {Object[]} [docs]
|
|
181
167
|
*/
|
|
182
168
|
|
|
183
169
|
/**
|
|
@@ -190,12 +176,6 @@ const Joi = require("joi");
|
|
|
190
176
|
* @property {DownloadCreditDebitNote} [data]
|
|
191
177
|
*/
|
|
192
178
|
|
|
193
|
-
/**
|
|
194
|
-
* @typedef DownloadCreditDebitNoteResponse
|
|
195
|
-
* @property {DownloadCreditDebitNoteResponseData[]} [data]
|
|
196
|
-
* @property {boolean} [success]
|
|
197
|
-
*/
|
|
198
|
-
|
|
199
179
|
/**
|
|
200
180
|
* @typedef DownloadCreditDebitNoteResponseData
|
|
201
181
|
* @property {string} [id]
|
|
@@ -203,1539 +183,1373 @@ const Joi = require("joi");
|
|
|
203
183
|
*/
|
|
204
184
|
|
|
205
185
|
/**
|
|
206
|
-
* @typedef
|
|
207
|
-
* @property {
|
|
208
|
-
* @property {
|
|
209
|
-
* @property {number} [pagesize]
|
|
210
|
-
* @property {string} [start_date]
|
|
186
|
+
* @typedef DownloadCreditDebitNoteResponse
|
|
187
|
+
* @property {boolean} [success]
|
|
188
|
+
* @property {DownloadCreditDebitNoteResponseData[]} [data]
|
|
211
189
|
*/
|
|
212
190
|
|
|
213
191
|
/**
|
|
214
|
-
* @typedef
|
|
215
|
-
* @property {
|
|
192
|
+
* @typedef PaymentProcessPayload
|
|
193
|
+
* @property {string} [platform]
|
|
194
|
+
* @property {string} [amount]
|
|
195
|
+
* @property {string} [transaction_type]
|
|
196
|
+
* @property {string} [source_reference]
|
|
197
|
+
* @property {string} [total_amount]
|
|
198
|
+
* @property {Object} [meta]
|
|
199
|
+
* @property {string} [currency]
|
|
200
|
+
* @property {string} [seller_id]
|
|
201
|
+
* @property {string} [mode_of_payment]
|
|
202
|
+
* @property {string} [invoice_number]
|
|
216
203
|
*/
|
|
217
204
|
|
|
218
205
|
/**
|
|
219
|
-
* @typedef
|
|
220
|
-
* @property {
|
|
206
|
+
* @typedef PaymentProcessRequest
|
|
207
|
+
* @property {PaymentProcessPayload} [data]
|
|
221
208
|
*/
|
|
222
209
|
|
|
223
210
|
/**
|
|
224
|
-
* @typedef
|
|
225
|
-
* @property {
|
|
226
|
-
* @property {
|
|
227
|
-
* @property {
|
|
228
|
-
* @property {string} [
|
|
229
|
-
* @property {string} [
|
|
230
|
-
* @property {string} [type_of_request]
|
|
211
|
+
* @typedef PaymentProcessResponse
|
|
212
|
+
* @property {number} [code]
|
|
213
|
+
* @property {string} [message]
|
|
214
|
+
* @property {Object} [meta]
|
|
215
|
+
* @property {string} [transaction_id]
|
|
216
|
+
* @property {string} [redirect_url]
|
|
231
217
|
*/
|
|
232
218
|
|
|
233
219
|
/**
|
|
234
|
-
* @typedef
|
|
235
|
-
* @property {number} [
|
|
236
|
-
* @property {
|
|
237
|
-
* @property {
|
|
220
|
+
* @typedef CreditlineDataPlatformPayload
|
|
221
|
+
* @property {number} [page]
|
|
222
|
+
* @property {string} [seller_id]
|
|
223
|
+
* @property {string} [end_end]
|
|
224
|
+
* @property {string} [start_end]
|
|
225
|
+
* @property {number} [pagesize]
|
|
238
226
|
*/
|
|
239
227
|
|
|
240
228
|
/**
|
|
241
|
-
* @typedef
|
|
242
|
-
* @property {
|
|
243
|
-
* @property {string} [display_name]
|
|
244
|
-
* @property {string} [download_link]
|
|
245
|
-
* @property {string} [end_date]
|
|
246
|
-
* @property {Object} [filters]
|
|
247
|
-
* @property {string} [full_name]
|
|
248
|
-
* @property {Object} [meta]
|
|
249
|
-
* @property {string} [msg]
|
|
250
|
-
* @property {string} [report_config_id]
|
|
251
|
-
* @property {string} [report_name]
|
|
252
|
-
* @property {Object} [request_dict]
|
|
253
|
-
* @property {string} [requested_by]
|
|
254
|
-
* @property {string} [start_date]
|
|
255
|
-
* @property {string} [status]
|
|
229
|
+
* @typedef CreditlineDataPlatformRequest
|
|
230
|
+
* @property {CreditlineDataPlatformPayload} [data]
|
|
256
231
|
*/
|
|
257
232
|
|
|
258
233
|
/**
|
|
259
|
-
* @typedef
|
|
260
|
-
* @property {
|
|
261
|
-
* @property {
|
|
234
|
+
* @typedef CreditlineDataPlatformResponse
|
|
235
|
+
* @property {Object[]} [items]
|
|
236
|
+
* @property {number} [code]
|
|
237
|
+
* @property {boolean} [show_mr]
|
|
238
|
+
* @property {Object} [page]
|
|
239
|
+
* @property {string} [message]
|
|
240
|
+
* @property {string[]} [headers]
|
|
241
|
+
* @property {number} [item_count]
|
|
262
242
|
*/
|
|
263
243
|
|
|
264
244
|
/**
|
|
265
|
-
* @typedef
|
|
266
|
-
* @property {
|
|
245
|
+
* @typedef IsCreditlinePayload
|
|
246
|
+
* @property {string} [seller_id]
|
|
267
247
|
*/
|
|
268
248
|
|
|
269
249
|
/**
|
|
270
|
-
* @typedef
|
|
271
|
-
* @property {
|
|
250
|
+
* @typedef IsCreditlinePlatformRequest
|
|
251
|
+
* @property {IsCreditlinePayload} [data]
|
|
272
252
|
*/
|
|
273
253
|
|
|
274
254
|
/**
|
|
275
|
-
* @typedef
|
|
276
|
-
* @property {
|
|
277
|
-
* @property {
|
|
278
|
-
* @property {string[]} [headers]
|
|
279
|
-
* @property {number} [item_count]
|
|
280
|
-
* @property {CnGenerateReportItems[]} [items]
|
|
281
|
-
* @property {Page} [page]
|
|
282
|
-
* @property {string[]} [primary_headers]
|
|
283
|
-
* @property {Object} [row_header_display_order]
|
|
284
|
-
* @property {string} [start_date]
|
|
255
|
+
* @typedef IsCreditlinePlatformResponse
|
|
256
|
+
* @property {boolean} [is_creditline_opted]
|
|
257
|
+
* @property {number} [code]
|
|
285
258
|
*/
|
|
286
259
|
|
|
287
260
|
/**
|
|
288
|
-
* @typedef
|
|
289
|
-
* @property {
|
|
290
|
-
* @property {string[]} [channel]
|
|
291
|
-
* @property {string[]} [company]
|
|
261
|
+
* @typedef InvoiceTypePayloadData
|
|
262
|
+
* @property {boolean} [is_active]
|
|
292
263
|
*/
|
|
293
264
|
|
|
294
265
|
/**
|
|
295
|
-
* @typedef
|
|
296
|
-
* @property {
|
|
297
|
-
* @property {string[]} [headers]
|
|
298
|
-
* @property {number} [item_count]
|
|
299
|
-
* @property {string[][]} [items]
|
|
300
|
-
* @property {Page} [page]
|
|
301
|
-
* @property {string} [start_date]
|
|
266
|
+
* @typedef InvoiceTypeRequest
|
|
267
|
+
* @property {InvoiceTypePayloadData} [data]
|
|
302
268
|
*/
|
|
303
269
|
|
|
304
270
|
/**
|
|
305
|
-
* @typedef
|
|
306
|
-
* @property {string} [
|
|
307
|
-
* @property {string} [
|
|
308
|
-
* @property {string} [company]
|
|
271
|
+
* @typedef InvoiceTypeResponseItems
|
|
272
|
+
* @property {string} [text]
|
|
273
|
+
* @property {string} [value]
|
|
309
274
|
*/
|
|
310
275
|
|
|
311
276
|
/**
|
|
312
|
-
* @typedef
|
|
313
|
-
* @property {
|
|
314
|
-
* @property {
|
|
315
|
-
* @property {
|
|
316
|
-
* @property {string} [report_id]
|
|
317
|
-
* @property {string} [start_date]
|
|
277
|
+
* @typedef InvoiceTypeResponse
|
|
278
|
+
* @property {boolean} [success]
|
|
279
|
+
* @property {InvoiceTypeResponseItems[]} [invoice_type_list]
|
|
280
|
+
* @property {InvoiceTypeResponseItems[]} [payment_status_list]
|
|
318
281
|
*/
|
|
319
282
|
|
|
320
283
|
/**
|
|
321
|
-
* @typedef
|
|
322
|
-
* @property {
|
|
284
|
+
* @typedef InoviceListingPayloadDataFilters
|
|
285
|
+
* @property {string[]} [payment_status]
|
|
286
|
+
* @property {string[]} [invoice_type]
|
|
287
|
+
* @property {string[]} [company_id]
|
|
323
288
|
*/
|
|
324
289
|
|
|
325
290
|
/**
|
|
326
|
-
* @typedef
|
|
327
|
-
* @property {number} [
|
|
291
|
+
* @typedef InvoiceListingPayloadData
|
|
292
|
+
* @property {number} [page_size]
|
|
293
|
+
* @property {number} [page]
|
|
294
|
+
* @property {string} [start_date]
|
|
295
|
+
* @property {string} [end_date]
|
|
296
|
+
* @property {string} [search]
|
|
297
|
+
* @property {InoviceListingPayloadDataFilters} [filters]
|
|
328
298
|
*/
|
|
329
299
|
|
|
330
300
|
/**
|
|
331
|
-
* @typedef
|
|
332
|
-
* @property {
|
|
333
|
-
* @property {boolean} [success]
|
|
301
|
+
* @typedef InvoiceListingRequest
|
|
302
|
+
* @property {InvoiceListingPayloadData} [data]
|
|
334
303
|
*/
|
|
335
304
|
|
|
336
305
|
/**
|
|
337
|
-
* @typedef
|
|
338
|
-
* @property {
|
|
306
|
+
* @typedef UnpaidInvoiceDataItems
|
|
307
|
+
* @property {number} [total_unpaid_invoice_count]
|
|
308
|
+
* @property {string} [currency]
|
|
309
|
+
* @property {number} [total_unpaid_amount]
|
|
339
310
|
*/
|
|
340
311
|
|
|
341
312
|
/**
|
|
342
|
-
* @typedef
|
|
343
|
-
* @property {
|
|
344
|
-
* @property {
|
|
313
|
+
* @typedef InvoiceListingResponseItems
|
|
314
|
+
* @property {string} [amount]
|
|
315
|
+
* @property {string} [company]
|
|
316
|
+
* @property {string} [status]
|
|
317
|
+
* @property {string} [due_date]
|
|
318
|
+
* @property {string} [invoice_date]
|
|
319
|
+
* @property {string} [invoice_type]
|
|
320
|
+
* @property {string} [period]
|
|
321
|
+
* @property {string} [invoice_number]
|
|
322
|
+
* @property {boolean} [is_downloadable]
|
|
323
|
+
* @property {string} [invoice_id]
|
|
345
324
|
*/
|
|
346
325
|
|
|
347
326
|
/**
|
|
348
|
-
* @typedef
|
|
349
|
-
* @property {
|
|
350
|
-
* @property {
|
|
351
|
-
* @property {
|
|
352
|
-
* @property {
|
|
353
|
-
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
354
|
-
* @property {string[]} [redemption_ordering_channel]
|
|
355
|
-
* @property {number} [seller_id]
|
|
356
|
-
* @property {number} [validity]
|
|
327
|
+
* @typedef InvoiceListingResponse
|
|
328
|
+
* @property {UnpaidInvoiceDataItems} [unpaid_invoice_data]
|
|
329
|
+
* @property {InvoiceListingResponseItems[]} [items]
|
|
330
|
+
* @property {Page} [page]
|
|
331
|
+
* @property {number} [item_count]
|
|
357
332
|
*/
|
|
358
333
|
|
|
359
334
|
/**
|
|
360
|
-
* @typedef
|
|
361
|
-
* @property {string} [
|
|
362
|
-
* @property {string[]} [source_channel]
|
|
335
|
+
* @typedef InvoicePdfPayloadData
|
|
336
|
+
* @property {string[]} [invoice_number]
|
|
363
337
|
*/
|
|
364
338
|
|
|
365
339
|
/**
|
|
366
|
-
* @typedef
|
|
367
|
-
* @property {
|
|
368
|
-
* @property {string} [customer_mobile_number]
|
|
369
|
-
* @property {number} [seller_id]
|
|
340
|
+
* @typedef InvoicePdfRequest
|
|
341
|
+
* @property {InvoicePdfPayloadData} [data]
|
|
370
342
|
*/
|
|
371
343
|
|
|
372
344
|
/**
|
|
373
|
-
* @typedef
|
|
374
|
-
* @property {
|
|
345
|
+
* @typedef InvoicePdfResponse
|
|
346
|
+
* @property {boolean} [success]
|
|
347
|
+
* @property {string[]} [data]
|
|
348
|
+
* @property {string[]} [error]
|
|
375
349
|
*/
|
|
376
350
|
|
|
377
351
|
/**
|
|
378
|
-
* @typedef
|
|
379
|
-
* @property {
|
|
380
|
-
* @property {boolean} [
|
|
352
|
+
* @typedef IsCnRefundMethodData
|
|
353
|
+
* @property {string} [affiliate_id]
|
|
354
|
+
* @property {boolean} [toggle_edit_required]
|
|
355
|
+
* @property {number} [seller_id]
|
|
381
356
|
*/
|
|
382
357
|
|
|
383
358
|
/**
|
|
384
|
-
* @typedef
|
|
385
|
-
* @property {
|
|
386
|
-
* @property {number} [total_credited_balance]
|
|
359
|
+
* @typedef IsCnRefundMethodRequest
|
|
360
|
+
* @property {IsCnRefundMethodData} [data]
|
|
387
361
|
*/
|
|
388
362
|
|
|
389
363
|
/**
|
|
390
|
-
* @typedef
|
|
391
|
-
* @property {
|
|
392
|
-
* @property {string[]} [project]
|
|
393
|
-
* @property {string} [table_name]
|
|
364
|
+
* @typedef IsCnRefundMethodResponseData
|
|
365
|
+
* @property {boolean} [is_first_time_user]
|
|
394
366
|
*/
|
|
395
367
|
|
|
396
368
|
/**
|
|
397
|
-
* @typedef
|
|
398
|
-
* @property {
|
|
369
|
+
* @typedef IsCnRefundMethodResponse
|
|
370
|
+
* @property {boolean} [success]
|
|
371
|
+
* @property {IsCnRefundMethodResponseData} [data]
|
|
399
372
|
*/
|
|
400
373
|
|
|
401
374
|
/**
|
|
402
|
-
* @typedef
|
|
403
|
-
* @property {number} [
|
|
404
|
-
* @property {Object[]} [items]
|
|
405
|
-
* @property {Page} [page]
|
|
406
|
-
* @property {boolean} [success]
|
|
375
|
+
* @typedef CreditNoteConfigNotificationEvents
|
|
376
|
+
* @property {number} [expiration_reminder_to_customer]
|
|
407
377
|
*/
|
|
408
378
|
|
|
409
379
|
/**
|
|
410
|
-
* @typedef
|
|
411
|
-
* @property {
|
|
380
|
+
* @typedef CreateSellerCreditNoteConfig
|
|
381
|
+
* @property {boolean} [is_cn_as_refund_method]
|
|
382
|
+
* @property {string} [affiliate_id]
|
|
383
|
+
* @property {string[]} [source_channel]
|
|
384
|
+
* @property {number} [seller_id]
|
|
385
|
+
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
386
|
+
* @property {string} [sales_channel_name]
|
|
387
|
+
* @property {string[]} [ordering_channel]
|
|
388
|
+
* @property {number} [validity]
|
|
389
|
+
* @property {string} [currency_type]
|
|
390
|
+
* @property {string[]} [slug_values]
|
|
412
391
|
*/
|
|
413
392
|
|
|
414
393
|
/**
|
|
415
|
-
* @typedef
|
|
416
|
-
* @property {
|
|
417
|
-
* @property {boolean} [success]
|
|
394
|
+
* @typedef CreateSellerCreditNoteConfigRequest
|
|
395
|
+
* @property {CreateSellerCreditNoteConfig} [data]
|
|
418
396
|
*/
|
|
419
397
|
|
|
420
398
|
/**
|
|
421
|
-
* @typedef
|
|
422
|
-
* @property {
|
|
423
|
-
* @property {string} [
|
|
399
|
+
* @typedef CreateSellerCreditNoteConfigResponse
|
|
400
|
+
* @property {boolean} [success]
|
|
401
|
+
* @property {string} [message]
|
|
424
402
|
*/
|
|
425
403
|
|
|
426
404
|
/**
|
|
427
|
-
* @typedef
|
|
428
|
-
* @property {string} [
|
|
405
|
+
* @typedef DeleteConfig
|
|
406
|
+
* @property {string} [affiliate_id]
|
|
407
|
+
* @property {string[]} [slug_values]
|
|
408
|
+
* @property {number} [seller_id]
|
|
429
409
|
*/
|
|
430
410
|
|
|
431
411
|
/**
|
|
432
|
-
* @typedef
|
|
433
|
-
* @property {
|
|
412
|
+
* @typedef DeleteConfigRequest
|
|
413
|
+
* @property {DeleteConfig} [data]
|
|
434
414
|
*/
|
|
435
415
|
|
|
436
416
|
/**
|
|
437
|
-
* @typedef
|
|
438
|
-
* @property {number} [item_count]
|
|
439
|
-
* @property {ReasonItem[]} [item_list]
|
|
440
|
-
* @property {Page} [page]
|
|
417
|
+
* @typedef DeleteConfigResponse
|
|
441
418
|
* @property {boolean} [success]
|
|
419
|
+
* @property {string} [message]
|
|
442
420
|
*/
|
|
443
421
|
|
|
444
422
|
/**
|
|
445
|
-
* @typedef
|
|
446
|
-
* @property {
|
|
447
|
-
* @property {string} [text]
|
|
448
|
-
* @property {string} [type]
|
|
449
|
-
* @property {string} [value]
|
|
423
|
+
* @typedef ChannelDisplayName
|
|
424
|
+
* @property {string} [platform_pos]
|
|
450
425
|
*/
|
|
451
426
|
|
|
452
427
|
/**
|
|
453
|
-
* @typedef
|
|
454
|
-
* @property {
|
|
455
|
-
* @property {
|
|
456
|
-
* @property {GetReportingFilters} [status]
|
|
428
|
+
* @typedef ChannelDisplayNameResponse
|
|
429
|
+
* @property {boolean} [success]
|
|
430
|
+
* @property {ChannelDisplayName} [data]
|
|
457
431
|
*/
|
|
458
432
|
|
|
459
433
|
/**
|
|
460
|
-
* @typedef
|
|
461
|
-
* @property {
|
|
462
|
-
* @property {string} [placeholder_text]
|
|
463
|
-
* @property {boolean} [required]
|
|
464
|
-
* @property {string} [text]
|
|
465
|
-
* @property {string} [type]
|
|
466
|
-
* @property {string} [value]
|
|
434
|
+
* @typedef CnReferenceNumber
|
|
435
|
+
* @property {string} [cn_reference_number]
|
|
467
436
|
*/
|
|
468
437
|
|
|
469
438
|
/**
|
|
470
|
-
* @typedef
|
|
471
|
-
* @property {
|
|
472
|
-
* @property {string} [role_name]
|
|
439
|
+
* @typedef GetPdfUrlViewRequest
|
|
440
|
+
* @property {CnReferenceNumber} [data]
|
|
473
441
|
*/
|
|
474
442
|
|
|
475
443
|
/**
|
|
476
|
-
* @typedef
|
|
477
|
-
* @property {
|
|
444
|
+
* @typedef GetPdfUrlViewResponseData
|
|
445
|
+
* @property {string} [s3_pdf_link]
|
|
446
|
+
* @property {string} [cn_reference_number]
|
|
478
447
|
*/
|
|
479
448
|
|
|
480
449
|
/**
|
|
481
|
-
* @typedef
|
|
482
|
-
* @property {ReportItem[]} [items]
|
|
483
|
-
* @property {Page} [page]
|
|
450
|
+
* @typedef GetPdfUrlViewResponse
|
|
484
451
|
* @property {boolean} [success]
|
|
485
|
-
* @property {
|
|
452
|
+
* @property {GetPdfUrlViewResponseData} [data]
|
|
486
453
|
*/
|
|
487
454
|
|
|
488
455
|
/**
|
|
489
|
-
* @typedef
|
|
490
|
-
* @property {
|
|
491
|
-
* @property {string[]} [invoice_type]
|
|
492
|
-
* @property {string[]} [payment_status]
|
|
456
|
+
* @typedef CreditNoteDetailsRequest
|
|
457
|
+
* @property {CnReferenceNumber} [data]
|
|
493
458
|
*/
|
|
494
459
|
|
|
495
460
|
/**
|
|
496
|
-
* @typedef
|
|
497
|
-
* @property {string} [
|
|
461
|
+
* @typedef CnDetails
|
|
462
|
+
* @property {string} [staff_id]
|
|
463
|
+
* @property {string} [expiry_date]
|
|
464
|
+
* @property {string} [channel_of_issuance]
|
|
465
|
+
* @property {string} [order_id]
|
|
466
|
+
* @property {string} [date_issued]
|
|
467
|
+
* @property {string} [ordering_channel]
|
|
468
|
+
* @property {string} [shipment_id]
|
|
469
|
+
* @property {string} [store_id]
|
|
470
|
+
* @property {string} [invoice_number]
|
|
498
471
|
*/
|
|
499
472
|
|
|
500
473
|
/**
|
|
501
|
-
* @typedef
|
|
502
|
-
* @property {
|
|
474
|
+
* @typedef RedemptionDetails
|
|
475
|
+
* @property {string} [staff_id]
|
|
476
|
+
* @property {string} [created_at]
|
|
477
|
+
* @property {string} [order_id]
|
|
478
|
+
* @property {string} [store_id]
|
|
479
|
+
* @property {string} [shipment_id]
|
|
480
|
+
* @property {string} [ordering_channel]
|
|
481
|
+
* @property {number} [amount_debited]
|
|
482
|
+
* @property {string} [invoice_number]
|
|
503
483
|
*/
|
|
504
484
|
|
|
505
485
|
/**
|
|
506
|
-
* @typedef
|
|
507
|
-
* @property {
|
|
508
|
-
* @property {
|
|
509
|
-
* @property {string} [
|
|
510
|
-
* @property {
|
|
511
|
-
* @property {
|
|
512
|
-
* @property {
|
|
486
|
+
* @typedef CreditNoteDetails
|
|
487
|
+
* @property {string} [cn_status]
|
|
488
|
+
* @property {string} [customer_mobile_number]
|
|
489
|
+
* @property {string} [cn_reference_number]
|
|
490
|
+
* @property {Object} [cn_details]
|
|
491
|
+
* @property {RedemptionDetails[]} [redemption_details]
|
|
492
|
+
* @property {number} [remaining_cn_amount]
|
|
493
|
+
* @property {number} [available_cn_balance]
|
|
494
|
+
* @property {number} [cn_amount]
|
|
513
495
|
*/
|
|
514
496
|
|
|
515
497
|
/**
|
|
516
|
-
* @typedef
|
|
517
|
-
* @property {
|
|
518
|
-
* @property {
|
|
519
|
-
* @property {number} [page]
|
|
520
|
-
* @property {number} [page_size]
|
|
521
|
-
* @property {string} [search]
|
|
522
|
-
* @property {string} [start_date]
|
|
498
|
+
* @typedef CreditNoteDetailsResponse
|
|
499
|
+
* @property {boolean} [success]
|
|
500
|
+
* @property {CreditNoteDetails} [data]
|
|
523
501
|
*/
|
|
524
502
|
|
|
525
503
|
/**
|
|
526
|
-
* @typedef
|
|
527
|
-
* @property {
|
|
504
|
+
* @typedef GetCustomerCreditBalance
|
|
505
|
+
* @property {string} [affiliate_id]
|
|
506
|
+
* @property {number} [seller_id]
|
|
507
|
+
* @property {string} [customer_mobile_number]
|
|
528
508
|
*/
|
|
529
509
|
|
|
530
510
|
/**
|
|
531
|
-
* @typedef
|
|
532
|
-
* @property {
|
|
533
|
-
* @property {InvoiceListingResponseItems[]} [items]
|
|
534
|
-
* @property {Page} [page]
|
|
535
|
-
* @property {UnpaidInvoiceDataItems} [unpaid_invoice_data]
|
|
511
|
+
* @typedef GetCustomerCreditBalanceRequest
|
|
512
|
+
* @property {GetCustomerCreditBalance} [data]
|
|
536
513
|
*/
|
|
537
514
|
|
|
538
515
|
/**
|
|
539
|
-
* @typedef
|
|
540
|
-
* @property {string} [
|
|
541
|
-
* @property {
|
|
542
|
-
* @property {Currency} [currency]
|
|
543
|
-
* @property {string} [due_date]
|
|
544
|
-
* @property {string} [invoice_date]
|
|
545
|
-
* @property {string} [invoice_id]
|
|
546
|
-
* @property {string} [invoice_number]
|
|
547
|
-
* @property {string} [invoice_type]
|
|
548
|
-
* @property {boolean} [is_downloadable]
|
|
549
|
-
* @property {string} [period]
|
|
550
|
-
* @property {string} [status]
|
|
516
|
+
* @typedef GetCustomerCreditBalanceResponseData
|
|
517
|
+
* @property {string} [customer_mobile_number]
|
|
518
|
+
* @property {number} [total_credited_balance]
|
|
551
519
|
*/
|
|
552
520
|
|
|
553
521
|
/**
|
|
554
|
-
* @typedef
|
|
555
|
-
* @property {InvoicePaymentDetailsResponseData} [data]
|
|
556
|
-
* @property {boolean} [payment_details_visible]
|
|
522
|
+
* @typedef GetCustomerCreditBalanceResponse
|
|
557
523
|
* @property {boolean} [success]
|
|
524
|
+
* @property {GetCustomerCreditBalanceResponseData} [data]
|
|
558
525
|
*/
|
|
559
526
|
|
|
560
527
|
/**
|
|
561
|
-
* @typedef
|
|
562
|
-
* @property {
|
|
563
|
-
* @property {PaidInvoicePaymentDetail[]} [paid_invoice_payment_details]
|
|
564
|
-
*/
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* @typedef InvoicePdfPayloadData
|
|
568
|
-
* @property {string[]} [invoice_number]
|
|
569
|
-
*/
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* @typedef InvoicePdfRequest
|
|
573
|
-
* @property {InvoicePdfPayloadData} [data]
|
|
574
|
-
*/
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* @typedef InvoicePdfResponse
|
|
578
|
-
* @property {string[]} [data]
|
|
579
|
-
* @property {string[]} [error]
|
|
580
|
-
* @property {boolean} [success]
|
|
528
|
+
* @typedef GetCnConfigRequest
|
|
529
|
+
* @property {DeleteConfig} [data]
|
|
581
530
|
*/
|
|
582
531
|
|
|
583
532
|
/**
|
|
584
|
-
* @typedef
|
|
585
|
-
* @property {
|
|
533
|
+
* @typedef GetCnConfigResponseMeta
|
|
534
|
+
* @property {string} [reason]
|
|
535
|
+
* @property {string[]} [source_channel]
|
|
586
536
|
*/
|
|
587
537
|
|
|
588
538
|
/**
|
|
589
|
-
* @typedef
|
|
590
|
-
* @property {
|
|
539
|
+
* @typedef GetCnConfigResponseData
|
|
540
|
+
* @property {boolean} [is_cn_as_refund_method]
|
|
541
|
+
* @property {string} [affiliate_id]
|
|
542
|
+
* @property {GetCnConfigResponseMeta} [meta]
|
|
543
|
+
* @property {number} [seller_id]
|
|
544
|
+
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
545
|
+
* @property {number} [validity]
|
|
546
|
+
* @property {string[]} [redemption_ordering_channel]
|
|
547
|
+
* @property {string} [currency_type]
|
|
591
548
|
*/
|
|
592
549
|
|
|
593
550
|
/**
|
|
594
|
-
* @typedef
|
|
595
|
-
* @property {InvoiceTypeResponseItems[]} [invoice_type_list]
|
|
596
|
-
* @property {InvoiceTypeResponseItems[]} [payment_status_list]
|
|
551
|
+
* @typedef GetCnConfigResponse
|
|
597
552
|
* @property {boolean} [success]
|
|
553
|
+
* @property {GetCnConfigResponseData} [data]
|
|
598
554
|
*/
|
|
599
555
|
|
|
600
556
|
/**
|
|
601
|
-
* @typedef
|
|
602
|
-
* @property {string} [
|
|
603
|
-
* @property {string} [
|
|
557
|
+
* @typedef CnGenerateReportFilters
|
|
558
|
+
* @property {string[]} [staff_id]
|
|
559
|
+
* @property {string[]} [channel_of_issuance]
|
|
560
|
+
* @property {string[]} [utilisation]
|
|
561
|
+
* @property {string[]} [ordering_channel]
|
|
562
|
+
* @property {number[]} [store_id]
|
|
563
|
+
* @property {string[]} [types_of_transaction]
|
|
604
564
|
*/
|
|
605
565
|
|
|
606
566
|
/**
|
|
607
|
-
* @typedef
|
|
567
|
+
* @typedef CnGenerateReport
|
|
568
|
+
* @property {number} [page]
|
|
569
|
+
* @property {string} [end_date]
|
|
570
|
+
* @property {number} [pagesize]
|
|
571
|
+
* @property {CnGenerateReportFilters} [filters]
|
|
608
572
|
* @property {string} [affiliate_id]
|
|
609
|
-
* @property {
|
|
610
|
-
* @property {
|
|
573
|
+
* @property {GenerateReportFilters} [meta]
|
|
574
|
+
* @property {string} [search]
|
|
575
|
+
* @property {string} [report_id]
|
|
576
|
+
* @property {string} [search_type]
|
|
577
|
+
* @property {string} [start_date]
|
|
611
578
|
*/
|
|
612
579
|
|
|
613
580
|
/**
|
|
614
|
-
* @typedef
|
|
615
|
-
* @property {
|
|
581
|
+
* @typedef GenerateReportCustomerCnRequest
|
|
582
|
+
* @property {CnGenerateReport} [data]
|
|
616
583
|
*/
|
|
617
584
|
|
|
618
585
|
/**
|
|
619
|
-
* @typedef
|
|
620
|
-
* @property {
|
|
621
|
-
* @property {
|
|
586
|
+
* @typedef CnGenerateReportItems
|
|
587
|
+
* @property {string} [expiry_date]
|
|
588
|
+
* @property {string} [status]
|
|
589
|
+
* @property {number} [total_amount]
|
|
590
|
+
* @property {string} [order_id]
|
|
591
|
+
* @property {string} [date_issued]
|
|
592
|
+
* @property {string} [shipment_id]
|
|
593
|
+
* @property {string} [invoice_number]
|
|
594
|
+
* @property {string} [credit_note_number]
|
|
622
595
|
*/
|
|
623
596
|
|
|
624
597
|
/**
|
|
625
|
-
* @typedef
|
|
626
|
-
* @property {
|
|
598
|
+
* @typedef GenerateReportCustomerCnResponseData
|
|
599
|
+
* @property {CnGenerateReportItems[]} [items]
|
|
600
|
+
* @property {Object} [row_header_display_order]
|
|
601
|
+
* @property {string} [end_date]
|
|
602
|
+
* @property {Page} [page]
|
|
603
|
+
* @property {string[]} [headers]
|
|
604
|
+
* @property {string[]} [primary_headers]
|
|
605
|
+
* @property {string[]} [allowed_filters]
|
|
606
|
+
* @property {string} [start_date]
|
|
607
|
+
* @property {number} [item_count]
|
|
627
608
|
*/
|
|
628
609
|
|
|
629
610
|
/**
|
|
630
|
-
* @typedef
|
|
631
|
-
* @property {
|
|
611
|
+
* @typedef GenerateReportCustomerCnResponse
|
|
612
|
+
* @property {GenerateReportCustomerCnResponseData} [data]
|
|
632
613
|
*/
|
|
633
614
|
|
|
634
615
|
/**
|
|
635
|
-
* @typedef
|
|
636
|
-
* @property {
|
|
616
|
+
* @typedef CnDownloadReport
|
|
617
|
+
* @property {number} [page]
|
|
618
|
+
* @property {string} [start_date]
|
|
619
|
+
* @property {string} [end_date]
|
|
620
|
+
* @property {string} [affiliate_id]
|
|
621
|
+
* @property {string} [search]
|
|
622
|
+
* @property {string[]} [status]
|
|
623
|
+
* @property {string} [search_type]
|
|
624
|
+
* @property {number} [pagesize]
|
|
637
625
|
*/
|
|
638
626
|
|
|
639
627
|
/**
|
|
640
|
-
* @typedef
|
|
641
|
-
* @property {
|
|
642
|
-
* @property {boolean} [is_creditline_opted]
|
|
628
|
+
* @typedef DownloadReportCustomerCnRequest
|
|
629
|
+
* @property {CnDownloadReport} [data]
|
|
643
630
|
*/
|
|
644
631
|
|
|
645
632
|
/**
|
|
646
|
-
* @typedef
|
|
647
|
-
* @property {
|
|
648
|
-
* @property {
|
|
649
|
-
* @property {
|
|
650
|
-
* @property {
|
|
651
|
-
* @property {string} [
|
|
652
|
-
* @property {
|
|
653
|
-
* @property {string}
|
|
633
|
+
* @typedef DownloadReportResponseData
|
|
634
|
+
* @property {string} [report_config_id]
|
|
635
|
+
* @property {string} [full_name]
|
|
636
|
+
* @property {string} [requested_by]
|
|
637
|
+
* @property {string} [start_date]
|
|
638
|
+
* @property {string} [end_date]
|
|
639
|
+
* @property {Object} [request_dict]
|
|
640
|
+
* @property {string} [download_link]
|
|
641
|
+
* @property {string} [created_at]
|
|
642
|
+
* @property {Object} [meta]
|
|
643
|
+
* @property {string} [msg]
|
|
644
|
+
* @property {string} [report_name]
|
|
645
|
+
* @property {string} [status]
|
|
646
|
+
* @property {string} [display_name]
|
|
647
|
+
* @property {Object} [filters]
|
|
654
648
|
*/
|
|
655
649
|
|
|
656
650
|
/**
|
|
657
|
-
* @typedef
|
|
658
|
-
* @property {
|
|
659
|
-
* @property {string} [date_of_payment]
|
|
660
|
-
* @property {PaymentDetail[]} [payment_details]
|
|
651
|
+
* @typedef DownloadReportCustomerCnResponse
|
|
652
|
+
* @property {DownloadReportResponseData[]} [data]
|
|
661
653
|
*/
|
|
662
654
|
|
|
663
655
|
/**
|
|
664
|
-
* @typedef
|
|
665
|
-
* @property {string} [
|
|
656
|
+
* @typedef GetReportingFilters
|
|
657
|
+
* @property {string} [text]
|
|
658
|
+
* @property {string} [type]
|
|
659
|
+
* @property {Object[]} [options]
|
|
666
660
|
* @property {string} [value]
|
|
667
661
|
*/
|
|
668
662
|
|
|
669
663
|
/**
|
|
670
|
-
* @typedef
|
|
671
|
-
* @property {string} [
|
|
672
|
-
* @property {
|
|
673
|
-
* @property {
|
|
674
|
-
* @property {
|
|
675
|
-
* @property {string} [
|
|
676
|
-
* @property {string} [
|
|
677
|
-
* @property {string} [seller_id]
|
|
678
|
-
* @property {string} [source_reference]
|
|
679
|
-
* @property {string} [total_amount]
|
|
680
|
-
* @property {string} [transaction_type]
|
|
681
|
-
*/
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* @typedef PaymentProcessRequest
|
|
685
|
-
* @property {PaymentProcessPayload} [data]
|
|
664
|
+
* @typedef GetReportingNestedFilters
|
|
665
|
+
* @property {string} [text]
|
|
666
|
+
* @property {Object[]} [options]
|
|
667
|
+
* @property {boolean} [required]
|
|
668
|
+
* @property {string} [placeholder_text]
|
|
669
|
+
* @property {string} [type]
|
|
670
|
+
* @property {string} [value]
|
|
686
671
|
*/
|
|
687
672
|
|
|
688
673
|
/**
|
|
689
|
-
* @typedef
|
|
690
|
-
* @property {
|
|
691
|
-
* @property {
|
|
692
|
-
* @property {
|
|
693
|
-
* @property {string} [redirect_url]
|
|
694
|
-
* @property {string} [transaction_id]
|
|
695
|
-
*/
|
|
696
|
-
|
|
697
|
-
/**
|
|
698
|
-
* @typedef ReasonItem
|
|
699
|
-
* @property {string} [display_name]
|
|
700
|
-
* @property {string} [id]
|
|
701
|
-
* @property {string} [name]
|
|
702
|
-
*/
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* @typedef RedemptionDetails
|
|
706
|
-
* @property {number} [amount_debited]
|
|
707
|
-
* @property {string} [created_at]
|
|
708
|
-
* @property {string} [invoice_number]
|
|
709
|
-
* @property {string} [order_id]
|
|
710
|
-
* @property {string} [ordering_channel]
|
|
711
|
-
* @property {string} [shipment_id]
|
|
712
|
-
* @property {string} [staff_id]
|
|
713
|
-
* @property {string} [store_id]
|
|
714
|
-
*/
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* @typedef ReportItem
|
|
718
|
-
* @property {string[]} [allowed_filters]
|
|
719
|
-
* @property {Object} [config_meta]
|
|
720
|
-
* @property {string} [description]
|
|
721
|
-
* @property {string} [display_date]
|
|
722
|
-
* @property {string} [id]
|
|
723
|
-
* @property {string} [name]
|
|
724
|
-
* @property {string} [report_type]
|
|
725
|
-
*/
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* @typedef UnlockCreditNoteRequest
|
|
729
|
-
* @property {UnlockCreditNoteRequestData} [data]
|
|
730
|
-
*/
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* @typedef UnlockCreditNoteRequestData
|
|
734
|
-
* @property {string} [description]
|
|
735
|
-
* @property {string[]} [locked_credit_notes]
|
|
736
|
-
* @property {string} [seller_id]
|
|
737
|
-
* @property {string} [unlock_reason]
|
|
738
|
-
*/
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* @typedef UnlockCreditNoteResponse
|
|
742
|
-
* @property {UnlockCreditNoteResponseData} [data]
|
|
743
|
-
* @property {boolean} [success]
|
|
744
|
-
*/
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* @typedef UnlockCreditNoteResponseData
|
|
748
|
-
* @property {boolean} [is_cn_unlocked]
|
|
749
|
-
* @property {string} [status]
|
|
750
|
-
*/
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* @typedef UnpaidInvoiceDataItems
|
|
754
|
-
* @property {string} [currency]
|
|
755
|
-
* @property {number} [total_unpaid_amount]
|
|
756
|
-
* @property {number} [total_unpaid_invoice_count]
|
|
674
|
+
* @typedef GetReportingFiltersResponse
|
|
675
|
+
* @property {GetReportingFilters} [search]
|
|
676
|
+
* @property {GetReportingNestedFilters[]} [filters]
|
|
677
|
+
* @property {GetReportingFilters} [status]
|
|
757
678
|
*/
|
|
758
679
|
|
|
759
680
|
class FinancePlatformModel {
|
|
760
|
-
/** @returns {
|
|
761
|
-
static
|
|
762
|
-
return Joi.object({
|
|
763
|
-
platform_pos: Joi.string().allow(""),
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
/** @returns {ChannelDisplayNameResponse} */
|
|
768
|
-
static ChannelDisplayNameResponse() {
|
|
681
|
+
/** @returns {GenerateReportMeta} */
|
|
682
|
+
static GenerateReportMeta() {
|
|
769
683
|
return Joi.object({
|
|
770
|
-
|
|
771
|
-
|
|
684
|
+
brand: Joi.string().allow(""),
|
|
685
|
+
company: Joi.string().allow(""),
|
|
686
|
+
channel: Joi.string().allow(""),
|
|
772
687
|
});
|
|
773
688
|
}
|
|
774
689
|
|
|
775
|
-
/** @returns {
|
|
776
|
-
static
|
|
690
|
+
/** @returns {GenerateReportFilters} */
|
|
691
|
+
static GenerateReportFilters() {
|
|
777
692
|
return Joi.object({
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
invoice_number: Joi.string().allow(""),
|
|
782
|
-
order_id: Joi.string().allow(""),
|
|
783
|
-
ordering_channel: Joi.string().allow(""),
|
|
784
|
-
shipment_id: Joi.string().allow(""),
|
|
785
|
-
staff_id: Joi.string().allow(""),
|
|
786
|
-
store_id: Joi.string().allow(""),
|
|
693
|
+
brand: Joi.array().items(Joi.string().allow("")),
|
|
694
|
+
company: Joi.array().items(Joi.string().allow("")),
|
|
695
|
+
channel: Joi.array().items(Joi.string().allow("")),
|
|
787
696
|
});
|
|
788
697
|
}
|
|
789
698
|
|
|
790
|
-
/** @returns {
|
|
791
|
-
static
|
|
699
|
+
/** @returns {GenerateReportPlatform} */
|
|
700
|
+
static GenerateReportPlatform() {
|
|
792
701
|
return Joi.object({
|
|
793
|
-
affiliate_id: Joi.string().allow(""),
|
|
794
|
-
end_date: Joi.string().allow(""),
|
|
795
|
-
page: Joi.number(),
|
|
796
|
-
pagesize: Joi.number(),
|
|
797
|
-
search: Joi.string().allow(""),
|
|
798
|
-
search_type: Joi.string().allow(""),
|
|
799
702
|
start_date: Joi.string().allow(""),
|
|
800
|
-
status: Joi.array().items(Joi.string().allow("")),
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
/** @returns {CnGenerateReport} */
|
|
805
|
-
static CnGenerateReport() {
|
|
806
|
-
return Joi.object({
|
|
807
|
-
affiliate_id: Joi.string().allow(""),
|
|
808
703
|
end_date: Joi.string().allow(""),
|
|
809
|
-
|
|
810
|
-
meta: FinancePlatformModel.GenerateReportFilters(),
|
|
811
|
-
page: Joi.number(),
|
|
812
|
-
pagesize: Joi.number(),
|
|
704
|
+
meta: FinancePlatformModel.GenerateReportMeta(),
|
|
813
705
|
report_id: Joi.string().allow(""),
|
|
814
|
-
|
|
815
|
-
search_type: Joi.string().allow(""),
|
|
816
|
-
start_date: Joi.string().allow(""),
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
/** @returns {CnGenerateReportFilters} */
|
|
821
|
-
static CnGenerateReportFilters() {
|
|
822
|
-
return Joi.object({
|
|
823
|
-
channel_of_issuance: Joi.array().items(Joi.string().allow("")),
|
|
824
|
-
ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
825
|
-
staff_id: Joi.array().items(Joi.string().allow("")),
|
|
826
|
-
store_id: Joi.array().items(Joi.number()),
|
|
827
|
-
types_of_transaction: Joi.array().items(Joi.string().allow("")),
|
|
828
|
-
utilisation: Joi.array().items(Joi.string().allow("")),
|
|
829
|
-
});
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
/** @returns {CnGenerateReportItems} */
|
|
833
|
-
static CnGenerateReportItems() {
|
|
834
|
-
return Joi.object({
|
|
835
|
-
credit_note_number: Joi.string().allow(""),
|
|
836
|
-
date_issued: Joi.string().allow(""),
|
|
837
|
-
expiry_date: Joi.string().allow(""),
|
|
838
|
-
invoice_number: Joi.string().allow(""),
|
|
839
|
-
order_id: Joi.string().allow(""),
|
|
840
|
-
shipment_id: Joi.string().allow(""),
|
|
841
|
-
status: Joi.string().allow(""),
|
|
842
|
-
total_amount: Joi.number(),
|
|
706
|
+
filters: FinancePlatformModel.GenerateReportFilters(),
|
|
843
707
|
});
|
|
844
708
|
}
|
|
845
709
|
|
|
846
|
-
/** @returns {
|
|
847
|
-
static
|
|
710
|
+
/** @returns {GenerateReportRequest} */
|
|
711
|
+
static GenerateReportRequest() {
|
|
848
712
|
return Joi.object({
|
|
849
|
-
|
|
713
|
+
data: FinancePlatformModel.GenerateReportPlatform(),
|
|
850
714
|
});
|
|
851
715
|
}
|
|
852
716
|
|
|
853
|
-
/** @returns {
|
|
854
|
-
static
|
|
717
|
+
/** @returns {Page} */
|
|
718
|
+
static Page() {
|
|
855
719
|
return Joi.object({
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
slug_values: Joi.array().items(Joi.string().allow("")),
|
|
864
|
-
source_channel: Joi.array().items(Joi.string().allow("")),
|
|
865
|
-
validity: Joi.number(),
|
|
720
|
+
item_total: Joi.number(),
|
|
721
|
+
next_id: Joi.string().allow(""),
|
|
722
|
+
has_previous: Joi.boolean(),
|
|
723
|
+
has_next: Joi.boolean(),
|
|
724
|
+
current: Joi.number(),
|
|
725
|
+
type: Joi.string().allow("").required(),
|
|
726
|
+
size: Joi.number(),
|
|
866
727
|
});
|
|
867
728
|
}
|
|
868
729
|
|
|
869
|
-
/** @returns {
|
|
870
|
-
static
|
|
730
|
+
/** @returns {GenerateReportJson} */
|
|
731
|
+
static GenerateReportJson() {
|
|
871
732
|
return Joi.object({
|
|
872
|
-
|
|
733
|
+
items: Joi.array().items(Joi.array().items(Joi.string().allow(""))),
|
|
734
|
+
page: FinancePlatformModel.Page(),
|
|
735
|
+
end_date: Joi.string().allow(""),
|
|
736
|
+
headers: Joi.array().items(Joi.string().allow("")),
|
|
737
|
+
start_date: Joi.string().allow(""),
|
|
738
|
+
item_count: Joi.number(),
|
|
873
739
|
});
|
|
874
740
|
}
|
|
875
741
|
|
|
876
|
-
/** @returns {
|
|
877
|
-
static
|
|
742
|
+
/** @returns {Error} */
|
|
743
|
+
static Error() {
|
|
878
744
|
return Joi.object({
|
|
879
|
-
|
|
745
|
+
reason: Joi.string().allow(""),
|
|
880
746
|
success: Joi.boolean(),
|
|
881
747
|
});
|
|
882
748
|
}
|
|
883
749
|
|
|
884
|
-
/** @returns {
|
|
885
|
-
static
|
|
750
|
+
/** @returns {DownloadReport} */
|
|
751
|
+
static DownloadReport() {
|
|
886
752
|
return Joi.object({
|
|
887
|
-
end_end: Joi.string().allow(""),
|
|
888
753
|
page: Joi.number(),
|
|
889
754
|
pagesize: Joi.number(),
|
|
890
|
-
|
|
891
|
-
|
|
755
|
+
start_date: Joi.string().allow(""),
|
|
756
|
+
end_date: Joi.string().allow(""),
|
|
892
757
|
});
|
|
893
758
|
}
|
|
894
759
|
|
|
895
|
-
/** @returns {
|
|
896
|
-
static
|
|
760
|
+
/** @returns {DownloadReportItems} */
|
|
761
|
+
static DownloadReportItems() {
|
|
897
762
|
return Joi.object({
|
|
898
|
-
|
|
763
|
+
start_date: Joi.string().allow(""),
|
|
764
|
+
end_date: Joi.string().allow(""),
|
|
765
|
+
meta: FinancePlatformModel.GenerateReportMeta(),
|
|
766
|
+
report_id: Joi.string().allow(""),
|
|
767
|
+
filters: FinancePlatformModel.GenerateReportFilters(),
|
|
768
|
+
type_of_request: Joi.string().allow(""),
|
|
899
769
|
});
|
|
900
770
|
}
|
|
901
771
|
|
|
902
|
-
/** @returns {
|
|
903
|
-
static
|
|
772
|
+
/** @returns {DownloadReportList} */
|
|
773
|
+
static DownloadReportList() {
|
|
904
774
|
return Joi.object({
|
|
905
|
-
|
|
906
|
-
headers: Joi.array().items(Joi.string().allow("")),
|
|
907
|
-
item_count: Joi.number(),
|
|
908
|
-
items: Joi.array().items(Joi.any()),
|
|
909
|
-
message: Joi.string().allow(""),
|
|
775
|
+
items: Joi.array().items(FinancePlatformModel.DownloadReportItems()),
|
|
910
776
|
page: FinancePlatformModel.Page(),
|
|
911
|
-
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/** @returns {CreditNoteConfigNotificationEvents} */
|
|
916
|
-
static CreditNoteConfigNotificationEvents() {
|
|
917
|
-
return Joi.object({
|
|
918
|
-
expiration_reminder_to_customer: Joi.number(),
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/** @returns {CreditNoteDetails} */
|
|
923
|
-
static CreditNoteDetails() {
|
|
924
|
-
return Joi.object({
|
|
925
|
-
available_cn_balance: Joi.number(),
|
|
926
|
-
cn_amount: Joi.number(),
|
|
927
|
-
cn_details: FinancePlatformModel.CnDetails(),
|
|
928
|
-
cn_reference_number: Joi.string().allow(""),
|
|
929
|
-
cn_status: Joi.string().allow(""),
|
|
930
|
-
customer_mobile_number: Joi.string().allow(""),
|
|
931
|
-
redemption_details: Joi.array().items(
|
|
932
|
-
FinancePlatformModel.RedemptionDetails()
|
|
933
|
-
),
|
|
934
|
-
remaining_cn_amount: Joi.number(),
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
/** @returns {CreditNoteDetailsRequest} */
|
|
939
|
-
static CreditNoteDetailsRequest() {
|
|
940
|
-
return Joi.object({
|
|
941
|
-
data: FinancePlatformModel.CnReferenceNumber(),
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
/** @returns {CreditNoteDetailsResponse} */
|
|
946
|
-
static CreditNoteDetailsResponse() {
|
|
947
|
-
return Joi.object({
|
|
948
|
-
data: FinancePlatformModel.CreditNoteDetails(),
|
|
949
|
-
success: Joi.boolean(),
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
/** @returns {Currency} */
|
|
954
|
-
static Currency() {
|
|
955
|
-
return Joi.object({
|
|
956
|
-
code: Joi.string().allow(""),
|
|
957
|
-
name: Joi.string().allow(""),
|
|
958
|
-
symbol: Joi.string().allow(""),
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
/** @returns {DeleteConfig} */
|
|
963
|
-
static DeleteConfig() {
|
|
964
|
-
return Joi.object({
|
|
965
|
-
affiliate_id: Joi.string().allow(""),
|
|
966
|
-
seller_id: Joi.number(),
|
|
967
|
-
slug_values: Joi.array().items(Joi.string().allow("")),
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
/** @returns {DeleteConfigRequest} */
|
|
972
|
-
static DeleteConfigRequest() {
|
|
973
|
-
return Joi.object({
|
|
974
|
-
data: FinancePlatformModel.DeleteConfig(),
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
/** @returns {DeleteConfigResponse} */
|
|
979
|
-
static DeleteConfigResponse() {
|
|
980
|
-
return Joi.object({
|
|
981
|
-
message: Joi.string().allow(""),
|
|
982
|
-
success: Joi.boolean(),
|
|
777
|
+
item_count: Joi.number(),
|
|
983
778
|
});
|
|
984
779
|
}
|
|
985
780
|
|
|
986
|
-
/** @returns {
|
|
987
|
-
static
|
|
781
|
+
/** @returns {GetEngineData} */
|
|
782
|
+
static GetEngineData() {
|
|
988
783
|
return Joi.object({
|
|
989
|
-
|
|
784
|
+
table_name: Joi.string().allow(""),
|
|
785
|
+
project: Joi.array().items(Joi.string().allow("")),
|
|
786
|
+
filters: Joi.any(),
|
|
990
787
|
});
|
|
991
788
|
}
|
|
992
789
|
|
|
993
|
-
/** @returns {
|
|
994
|
-
static
|
|
790
|
+
/** @returns {GetEngineRequest} */
|
|
791
|
+
static GetEngineRequest() {
|
|
995
792
|
return Joi.object({
|
|
996
|
-
data: FinancePlatformModel.
|
|
793
|
+
data: FinancePlatformModel.GetEngineData(),
|
|
997
794
|
});
|
|
998
795
|
}
|
|
999
796
|
|
|
1000
|
-
/** @returns {
|
|
1001
|
-
static
|
|
797
|
+
/** @returns {GetEngineResponse} */
|
|
798
|
+
static GetEngineResponse() {
|
|
1002
799
|
return Joi.object({
|
|
1003
|
-
data: Joi.array().items(
|
|
1004
|
-
FinancePlatformModel.DownloadCreditDebitNoteResponseData()
|
|
1005
|
-
),
|
|
1006
800
|
success: Joi.boolean(),
|
|
801
|
+
items: Joi.array().items(Joi.any()),
|
|
802
|
+
page: FinancePlatformModel.Page(),
|
|
803
|
+
item_count: Joi.number(),
|
|
1007
804
|
});
|
|
1008
805
|
}
|
|
1009
806
|
|
|
1010
|
-
/** @returns {
|
|
1011
|
-
static
|
|
1012
|
-
return Joi.object({
|
|
1013
|
-
id: Joi.string().allow(""),
|
|
1014
|
-
pdf_s3_url: Joi.string().allow(""),
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
/** @returns {DownloadReport} */
|
|
1019
|
-
static DownloadReport() {
|
|
1020
|
-
return Joi.object({
|
|
1021
|
-
end_date: Joi.string().allow(""),
|
|
1022
|
-
page: Joi.number(),
|
|
1023
|
-
pagesize: Joi.number(),
|
|
1024
|
-
start_date: Joi.string().allow(""),
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
/** @returns {DownloadReportCustomerCnRequest} */
|
|
1029
|
-
static DownloadReportCustomerCnRequest() {
|
|
807
|
+
/** @returns {GetReason} */
|
|
808
|
+
static GetReason() {
|
|
1030
809
|
return Joi.object({
|
|
1031
|
-
|
|
810
|
+
reason_type: Joi.string().allow(""),
|
|
1032
811
|
});
|
|
1033
812
|
}
|
|
1034
813
|
|
|
1035
|
-
/** @returns {
|
|
1036
|
-
static
|
|
814
|
+
/** @returns {GetReasonRequest} */
|
|
815
|
+
static GetReasonRequest() {
|
|
1037
816
|
return Joi.object({
|
|
1038
|
-
data:
|
|
1039
|
-
FinancePlatformModel.DownloadReportResponseData()
|
|
1040
|
-
),
|
|
817
|
+
data: FinancePlatformModel.GetReason(),
|
|
1041
818
|
});
|
|
1042
819
|
}
|
|
1043
820
|
|
|
1044
|
-
/** @returns {
|
|
1045
|
-
static
|
|
821
|
+
/** @returns {ReasonItem} */
|
|
822
|
+
static ReasonItem() {
|
|
1046
823
|
return Joi.object({
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
report_id: Joi.string().allow(""),
|
|
1051
|
-
start_date: Joi.string().allow(""),
|
|
1052
|
-
type_of_request: Joi.string().allow(""),
|
|
824
|
+
id: Joi.string().allow(""),
|
|
825
|
+
name: Joi.string().allow(""),
|
|
826
|
+
display_name: Joi.string().allow(""),
|
|
1053
827
|
});
|
|
1054
828
|
}
|
|
1055
829
|
|
|
1056
|
-
/** @returns {
|
|
1057
|
-
static
|
|
830
|
+
/** @returns {GetReasonResponse} */
|
|
831
|
+
static GetReasonResponse() {
|
|
1058
832
|
return Joi.object({
|
|
833
|
+
success: Joi.boolean(),
|
|
834
|
+
item_list: Joi.array().items(FinancePlatformModel.ReasonItem()),
|
|
1059
835
|
item_count: Joi.number(),
|
|
1060
|
-
items: Joi.array().items(FinancePlatformModel.DownloadReportItems()),
|
|
1061
836
|
page: FinancePlatformModel.Page(),
|
|
1062
837
|
});
|
|
1063
838
|
}
|
|
1064
839
|
|
|
1065
|
-
/** @returns {
|
|
1066
|
-
static
|
|
840
|
+
/** @returns {GetReportListData} */
|
|
841
|
+
static GetReportListData() {
|
|
1067
842
|
return Joi.object({
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
download_link: Joi.string().allow(""),
|
|
1071
|
-
end_date: Joi.string().allow(""),
|
|
1072
|
-
filters: Joi.any(),
|
|
1073
|
-
full_name: Joi.string().allow(""),
|
|
1074
|
-
meta: Joi.any(),
|
|
1075
|
-
msg: Joi.string().allow(""),
|
|
1076
|
-
report_config_id: Joi.string().allow(""),
|
|
1077
|
-
report_name: Joi.string().allow(""),
|
|
1078
|
-
request_dict: Joi.any(),
|
|
1079
|
-
requested_by: Joi.string().allow(""),
|
|
1080
|
-
start_date: Joi.string().allow(""),
|
|
1081
|
-
status: Joi.string().allow(""),
|
|
843
|
+
role_name: Joi.string().allow(""),
|
|
844
|
+
listing_enabled: Joi.boolean(),
|
|
1082
845
|
});
|
|
1083
846
|
}
|
|
1084
847
|
|
|
1085
|
-
/** @returns {
|
|
1086
|
-
static
|
|
848
|
+
/** @returns {GetReportListRequest} */
|
|
849
|
+
static GetReportListRequest() {
|
|
1087
850
|
return Joi.object({
|
|
1088
|
-
|
|
1089
|
-
success: Joi.boolean(),
|
|
851
|
+
data: FinancePlatformModel.GetReportListData(),
|
|
1090
852
|
});
|
|
1091
853
|
}
|
|
1092
854
|
|
|
1093
|
-
/** @returns {
|
|
1094
|
-
static
|
|
855
|
+
/** @returns {GetAffiliate} */
|
|
856
|
+
static GetAffiliate() {
|
|
1095
857
|
return Joi.object({
|
|
1096
|
-
|
|
858
|
+
company_id: Joi.number(),
|
|
1097
859
|
});
|
|
1098
860
|
}
|
|
1099
861
|
|
|
1100
|
-
/** @returns {
|
|
1101
|
-
static
|
|
862
|
+
/** @returns {GetReportListResponse} */
|
|
863
|
+
static GetReportListResponse() {
|
|
1102
864
|
return Joi.object({
|
|
1103
|
-
|
|
865
|
+
success: Joi.boolean(),
|
|
866
|
+
items: Joi.array().items(FinancePlatformModel.ReportItem()),
|
|
867
|
+
page: FinancePlatformModel.Page(),
|
|
868
|
+
total_count: Joi.number(),
|
|
1104
869
|
});
|
|
1105
870
|
}
|
|
1106
871
|
|
|
1107
|
-
/** @returns {
|
|
1108
|
-
static
|
|
872
|
+
/** @returns {ReportItem} */
|
|
873
|
+
static ReportItem() {
|
|
1109
874
|
return Joi.object({
|
|
875
|
+
id: Joi.string().allow(""),
|
|
876
|
+
name: Joi.string().allow(""),
|
|
877
|
+
description: Joi.string().allow(""),
|
|
1110
878
|
allowed_filters: Joi.array().items(Joi.string().allow("")),
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
items: Joi.array().items(FinancePlatformModel.CnGenerateReportItems()),
|
|
1115
|
-
page: FinancePlatformModel.Page(),
|
|
1116
|
-
primary_headers: Joi.array().items(Joi.string().allow("")),
|
|
1117
|
-
row_header_display_order: Joi.any(),
|
|
1118
|
-
start_date: Joi.string().allow(""),
|
|
879
|
+
config_meta: Joi.any(),
|
|
880
|
+
report_type: Joi.string().allow(""),
|
|
881
|
+
display_date: Joi.string().allow("").allow(null),
|
|
1119
882
|
});
|
|
1120
883
|
}
|
|
1121
884
|
|
|
1122
|
-
/** @returns {
|
|
1123
|
-
static
|
|
885
|
+
/** @returns {GetAffiliateResponse} */
|
|
886
|
+
static GetAffiliateResponse() {
|
|
1124
887
|
return Joi.object({
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
company: Joi.array().items(Joi.string().allow("")),
|
|
888
|
+
success: Joi.boolean(),
|
|
889
|
+
docs: Joi.array().items(Joi.any()),
|
|
1128
890
|
});
|
|
1129
891
|
}
|
|
1130
892
|
|
|
1131
|
-
/** @returns {
|
|
1132
|
-
static
|
|
893
|
+
/** @returns {DownloadCreditDebitNote} */
|
|
894
|
+
static DownloadCreditDebitNote() {
|
|
1133
895
|
return Joi.object({
|
|
1134
|
-
|
|
1135
|
-
headers: Joi.array().items(Joi.string().allow("")),
|
|
1136
|
-
item_count: Joi.number(),
|
|
1137
|
-
items: Joi.array().items(Joi.array().items(Joi.string().allow(""))),
|
|
1138
|
-
page: FinancePlatformModel.Page(),
|
|
1139
|
-
start_date: Joi.string().allow(""),
|
|
896
|
+
note_id: Joi.array().items(Joi.string().allow("")),
|
|
1140
897
|
});
|
|
1141
898
|
}
|
|
1142
899
|
|
|
1143
|
-
/** @returns {
|
|
1144
|
-
static
|
|
900
|
+
/** @returns {DownloadCreditDebitNoteRequest} */
|
|
901
|
+
static DownloadCreditDebitNoteRequest() {
|
|
1145
902
|
return Joi.object({
|
|
1146
|
-
|
|
1147
|
-
channel: Joi.string().allow(""),
|
|
1148
|
-
company: Joi.string().allow(""),
|
|
903
|
+
data: FinancePlatformModel.DownloadCreditDebitNote(),
|
|
1149
904
|
});
|
|
1150
905
|
}
|
|
1151
906
|
|
|
1152
|
-
/** @returns {
|
|
1153
|
-
static
|
|
907
|
+
/** @returns {DownloadCreditDebitNoteResponseData} */
|
|
908
|
+
static DownloadCreditDebitNoteResponseData() {
|
|
1154
909
|
return Joi.object({
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
meta: FinancePlatformModel.GenerateReportMeta(),
|
|
1158
|
-
report_id: Joi.string().allow(""),
|
|
1159
|
-
start_date: Joi.string().allow(""),
|
|
910
|
+
id: Joi.string().allow(""),
|
|
911
|
+
pdf_s3_url: Joi.string().allow(""),
|
|
1160
912
|
});
|
|
1161
913
|
}
|
|
1162
914
|
|
|
1163
|
-
/** @returns {
|
|
1164
|
-
static
|
|
915
|
+
/** @returns {DownloadCreditDebitNoteResponse} */
|
|
916
|
+
static DownloadCreditDebitNoteResponse() {
|
|
1165
917
|
return Joi.object({
|
|
1166
|
-
|
|
918
|
+
success: Joi.boolean(),
|
|
919
|
+
data: Joi.array().items(
|
|
920
|
+
FinancePlatformModel.DownloadCreditDebitNoteResponseData()
|
|
921
|
+
),
|
|
1167
922
|
});
|
|
1168
923
|
}
|
|
1169
924
|
|
|
1170
|
-
/** @returns {
|
|
1171
|
-
static
|
|
925
|
+
/** @returns {PaymentProcessPayload} */
|
|
926
|
+
static PaymentProcessPayload() {
|
|
1172
927
|
return Joi.object({
|
|
1173
|
-
|
|
928
|
+
platform: Joi.string().allow(""),
|
|
929
|
+
amount: Joi.string().allow(""),
|
|
930
|
+
transaction_type: Joi.string().allow(""),
|
|
931
|
+
source_reference: Joi.string().allow(""),
|
|
932
|
+
total_amount: Joi.string().allow(""),
|
|
933
|
+
meta: Joi.any(),
|
|
934
|
+
currency: Joi.string().allow(""),
|
|
935
|
+
seller_id: Joi.string().allow(""),
|
|
936
|
+
mode_of_payment: Joi.string().allow(""),
|
|
937
|
+
invoice_number: Joi.string().allow(""),
|
|
1174
938
|
});
|
|
1175
939
|
}
|
|
1176
940
|
|
|
1177
|
-
/** @returns {
|
|
1178
|
-
static
|
|
941
|
+
/** @returns {PaymentProcessRequest} */
|
|
942
|
+
static PaymentProcessRequest() {
|
|
1179
943
|
return Joi.object({
|
|
1180
|
-
|
|
1181
|
-
success: Joi.boolean(),
|
|
944
|
+
data: FinancePlatformModel.PaymentProcessPayload(),
|
|
1182
945
|
});
|
|
1183
946
|
}
|
|
1184
947
|
|
|
1185
|
-
/** @returns {
|
|
1186
|
-
static
|
|
948
|
+
/** @returns {PaymentProcessResponse} */
|
|
949
|
+
static PaymentProcessResponse() {
|
|
1187
950
|
return Joi.object({
|
|
1188
|
-
|
|
951
|
+
code: Joi.number(),
|
|
952
|
+
message: Joi.string().allow(""),
|
|
953
|
+
meta: Joi.any(),
|
|
954
|
+
transaction_id: Joi.string().allow(""),
|
|
955
|
+
redirect_url: Joi.string().allow(""),
|
|
1189
956
|
});
|
|
1190
957
|
}
|
|
1191
958
|
|
|
1192
|
-
/** @returns {
|
|
1193
|
-
static
|
|
959
|
+
/** @returns {CreditlineDataPlatformPayload} */
|
|
960
|
+
static CreditlineDataPlatformPayload() {
|
|
1194
961
|
return Joi.object({
|
|
1195
|
-
|
|
1196
|
-
|
|
962
|
+
page: Joi.number(),
|
|
963
|
+
seller_id: Joi.string().allow(""),
|
|
964
|
+
end_end: Joi.string().allow(""),
|
|
965
|
+
start_end: Joi.string().allow(""),
|
|
966
|
+
pagesize: Joi.number(),
|
|
1197
967
|
});
|
|
1198
968
|
}
|
|
1199
969
|
|
|
1200
|
-
/** @returns {
|
|
1201
|
-
static
|
|
970
|
+
/** @returns {CreditlineDataPlatformRequest} */
|
|
971
|
+
static CreditlineDataPlatformRequest() {
|
|
1202
972
|
return Joi.object({
|
|
1203
|
-
|
|
1204
|
-
currency_type: Joi.string().allow(""),
|
|
1205
|
-
is_cn_as_refund_method: Joi.boolean(),
|
|
1206
|
-
meta: FinancePlatformModel.GetCnConfigResponseMeta(),
|
|
1207
|
-
notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
|
|
1208
|
-
redemption_ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
1209
|
-
seller_id: Joi.number(),
|
|
1210
|
-
validity: Joi.number(),
|
|
973
|
+
data: FinancePlatformModel.CreditlineDataPlatformPayload(),
|
|
1211
974
|
});
|
|
1212
975
|
}
|
|
1213
976
|
|
|
1214
|
-
/** @returns {
|
|
1215
|
-
static
|
|
977
|
+
/** @returns {CreditlineDataPlatformResponse} */
|
|
978
|
+
static CreditlineDataPlatformResponse() {
|
|
1216
979
|
return Joi.object({
|
|
1217
|
-
|
|
1218
|
-
|
|
980
|
+
items: Joi.array().items(Joi.any()),
|
|
981
|
+
code: Joi.number(),
|
|
982
|
+
show_mr: Joi.boolean(),
|
|
983
|
+
page: Joi.any(),
|
|
984
|
+
message: Joi.string().allow(""),
|
|
985
|
+
headers: Joi.array().items(Joi.string().allow("")),
|
|
986
|
+
item_count: Joi.number(),
|
|
1219
987
|
});
|
|
1220
988
|
}
|
|
1221
989
|
|
|
1222
|
-
/** @returns {
|
|
1223
|
-
static
|
|
990
|
+
/** @returns {IsCreditlinePayload} */
|
|
991
|
+
static IsCreditlinePayload() {
|
|
1224
992
|
return Joi.object({
|
|
1225
|
-
|
|
1226
|
-
customer_mobile_number: Joi.string().allow(""),
|
|
1227
|
-
seller_id: Joi.number(),
|
|
993
|
+
seller_id: Joi.string().allow(""),
|
|
1228
994
|
});
|
|
1229
995
|
}
|
|
1230
996
|
|
|
1231
|
-
/** @returns {
|
|
1232
|
-
static
|
|
997
|
+
/** @returns {IsCreditlinePlatformRequest} */
|
|
998
|
+
static IsCreditlinePlatformRequest() {
|
|
1233
999
|
return Joi.object({
|
|
1234
|
-
data: FinancePlatformModel.
|
|
1000
|
+
data: FinancePlatformModel.IsCreditlinePayload(),
|
|
1235
1001
|
});
|
|
1236
1002
|
}
|
|
1237
1003
|
|
|
1238
|
-
/** @returns {
|
|
1239
|
-
static
|
|
1004
|
+
/** @returns {IsCreditlinePlatformResponse} */
|
|
1005
|
+
static IsCreditlinePlatformResponse() {
|
|
1240
1006
|
return Joi.object({
|
|
1241
|
-
|
|
1242
|
-
|
|
1007
|
+
is_creditline_opted: Joi.boolean(),
|
|
1008
|
+
code: Joi.number(),
|
|
1243
1009
|
});
|
|
1244
1010
|
}
|
|
1245
1011
|
|
|
1246
|
-
/** @returns {
|
|
1247
|
-
static
|
|
1012
|
+
/** @returns {InvoiceTypePayloadData} */
|
|
1013
|
+
static InvoiceTypePayloadData() {
|
|
1248
1014
|
return Joi.object({
|
|
1249
|
-
|
|
1250
|
-
total_credited_balance: Joi.number(),
|
|
1015
|
+
is_active: Joi.boolean(),
|
|
1251
1016
|
});
|
|
1252
1017
|
}
|
|
1253
1018
|
|
|
1254
|
-
/** @returns {
|
|
1255
|
-
static
|
|
1019
|
+
/** @returns {InvoiceTypeRequest} */
|
|
1020
|
+
static InvoiceTypeRequest() {
|
|
1256
1021
|
return Joi.object({
|
|
1257
|
-
|
|
1258
|
-
project: Joi.array().items(Joi.string().allow("")),
|
|
1259
|
-
table_name: Joi.string().allow(""),
|
|
1022
|
+
data: FinancePlatformModel.InvoiceTypePayloadData(),
|
|
1260
1023
|
});
|
|
1261
1024
|
}
|
|
1262
1025
|
|
|
1263
|
-
/** @returns {
|
|
1264
|
-
static
|
|
1026
|
+
/** @returns {InvoiceTypeResponseItems} */
|
|
1027
|
+
static InvoiceTypeResponseItems() {
|
|
1265
1028
|
return Joi.object({
|
|
1266
|
-
|
|
1029
|
+
text: Joi.string().allow(""),
|
|
1030
|
+
value: Joi.string().allow(""),
|
|
1267
1031
|
});
|
|
1268
1032
|
}
|
|
1269
1033
|
|
|
1270
|
-
/** @returns {
|
|
1271
|
-
static
|
|
1034
|
+
/** @returns {InvoiceTypeResponse} */
|
|
1035
|
+
static InvoiceTypeResponse() {
|
|
1272
1036
|
return Joi.object({
|
|
1273
|
-
item_count: Joi.number(),
|
|
1274
|
-
items: Joi.array().items(Joi.any()),
|
|
1275
|
-
page: FinancePlatformModel.Page(),
|
|
1276
1037
|
success: Joi.boolean(),
|
|
1038
|
+
invoice_type_list: Joi.array().items(
|
|
1039
|
+
FinancePlatformModel.InvoiceTypeResponseItems()
|
|
1040
|
+
),
|
|
1041
|
+
payment_status_list: Joi.array().items(
|
|
1042
|
+
FinancePlatformModel.InvoiceTypeResponseItems()
|
|
1043
|
+
),
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/** @returns {InoviceListingPayloadDataFilters} */
|
|
1048
|
+
static InoviceListingPayloadDataFilters() {
|
|
1049
|
+
return Joi.object({
|
|
1050
|
+
payment_status: Joi.array().items(Joi.string().allow("")),
|
|
1051
|
+
invoice_type: Joi.array().items(Joi.string().allow("")),
|
|
1052
|
+
company_id: Joi.array().items(Joi.string().allow("")),
|
|
1277
1053
|
});
|
|
1278
1054
|
}
|
|
1279
1055
|
|
|
1280
|
-
/** @returns {
|
|
1281
|
-
static
|
|
1056
|
+
/** @returns {InvoiceListingPayloadData} */
|
|
1057
|
+
static InvoiceListingPayloadData() {
|
|
1282
1058
|
return Joi.object({
|
|
1283
|
-
|
|
1059
|
+
page_size: Joi.number(),
|
|
1060
|
+
page: Joi.number(),
|
|
1061
|
+
start_date: Joi.string().allow(""),
|
|
1062
|
+
end_date: Joi.string().allow(""),
|
|
1063
|
+
search: Joi.string().allow(""),
|
|
1064
|
+
filters: FinancePlatformModel.InoviceListingPayloadDataFilters(),
|
|
1284
1065
|
});
|
|
1285
1066
|
}
|
|
1286
1067
|
|
|
1287
|
-
/** @returns {
|
|
1288
|
-
static
|
|
1068
|
+
/** @returns {InvoiceListingRequest} */
|
|
1069
|
+
static InvoiceListingRequest() {
|
|
1289
1070
|
return Joi.object({
|
|
1290
|
-
data: FinancePlatformModel.
|
|
1291
|
-
success: Joi.boolean(),
|
|
1071
|
+
data: FinancePlatformModel.InvoiceListingPayloadData(),
|
|
1292
1072
|
});
|
|
1293
1073
|
}
|
|
1294
1074
|
|
|
1295
|
-
/** @returns {
|
|
1296
|
-
static
|
|
1075
|
+
/** @returns {UnpaidInvoiceDataItems} */
|
|
1076
|
+
static UnpaidInvoiceDataItems() {
|
|
1297
1077
|
return Joi.object({
|
|
1298
|
-
|
|
1299
|
-
|
|
1078
|
+
total_unpaid_invoice_count: Joi.number(),
|
|
1079
|
+
currency: Joi.string().allow(""),
|
|
1080
|
+
total_unpaid_amount: Joi.number(),
|
|
1300
1081
|
});
|
|
1301
1082
|
}
|
|
1302
1083
|
|
|
1303
|
-
/** @returns {
|
|
1304
|
-
static
|
|
1084
|
+
/** @returns {InvoiceListingResponseItems} */
|
|
1085
|
+
static InvoiceListingResponseItems() {
|
|
1305
1086
|
return Joi.object({
|
|
1306
|
-
|
|
1087
|
+
amount: Joi.string().allow(""),
|
|
1088
|
+
company: Joi.string().allow(""),
|
|
1089
|
+
status: Joi.string().allow(""),
|
|
1090
|
+
due_date: Joi.string().allow(""),
|
|
1091
|
+
invoice_date: Joi.string().allow(""),
|
|
1092
|
+
invoice_type: Joi.string().allow(""),
|
|
1093
|
+
period: Joi.string().allow(""),
|
|
1094
|
+
invoice_number: Joi.string().allow(""),
|
|
1095
|
+
is_downloadable: Joi.boolean(),
|
|
1096
|
+
invoice_id: Joi.string().allow(""),
|
|
1307
1097
|
});
|
|
1308
1098
|
}
|
|
1309
1099
|
|
|
1310
|
-
/** @returns {
|
|
1311
|
-
static
|
|
1100
|
+
/** @returns {InvoiceListingResponse} */
|
|
1101
|
+
static InvoiceListingResponse() {
|
|
1312
1102
|
return Joi.object({
|
|
1313
|
-
|
|
1103
|
+
unpaid_invoice_data: FinancePlatformModel.UnpaidInvoiceDataItems(),
|
|
1104
|
+
items: Joi.array().items(
|
|
1105
|
+
FinancePlatformModel.InvoiceListingResponseItems()
|
|
1106
|
+
),
|
|
1107
|
+
page: FinancePlatformModel.Page(),
|
|
1108
|
+
item_count: Joi.number(),
|
|
1314
1109
|
});
|
|
1315
1110
|
}
|
|
1316
1111
|
|
|
1317
|
-
/** @returns {
|
|
1318
|
-
static
|
|
1112
|
+
/** @returns {InvoicePdfPayloadData} */
|
|
1113
|
+
static InvoicePdfPayloadData() {
|
|
1319
1114
|
return Joi.object({
|
|
1320
|
-
|
|
1321
|
-
item_list: Joi.array().items(FinancePlatformModel.ReasonItem()),
|
|
1322
|
-
page: FinancePlatformModel.Page(),
|
|
1323
|
-
success: Joi.boolean(),
|
|
1115
|
+
invoice_number: Joi.array().items(Joi.string().allow("")),
|
|
1324
1116
|
});
|
|
1325
1117
|
}
|
|
1326
1118
|
|
|
1327
|
-
/** @returns {
|
|
1328
|
-
static
|
|
1119
|
+
/** @returns {InvoicePdfRequest} */
|
|
1120
|
+
static InvoicePdfRequest() {
|
|
1329
1121
|
return Joi.object({
|
|
1330
|
-
|
|
1331
|
-
text: Joi.string().allow(""),
|
|
1332
|
-
type: Joi.string().allow(""),
|
|
1333
|
-
value: Joi.string().allow(""),
|
|
1122
|
+
data: FinancePlatformModel.InvoicePdfPayloadData(),
|
|
1334
1123
|
});
|
|
1335
1124
|
}
|
|
1336
1125
|
|
|
1337
|
-
/** @returns {
|
|
1338
|
-
static
|
|
1126
|
+
/** @returns {InvoicePdfResponse} */
|
|
1127
|
+
static InvoicePdfResponse() {
|
|
1339
1128
|
return Joi.object({
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
),
|
|
1343
|
-
search: FinancePlatformModel.GetReportingFilters(),
|
|
1344
|
-
status: FinancePlatformModel.GetReportingFilters(),
|
|
1129
|
+
success: Joi.boolean(),
|
|
1130
|
+
data: Joi.array().items(Joi.string().allow("")),
|
|
1131
|
+
error: Joi.array().items(Joi.string().allow("")),
|
|
1345
1132
|
});
|
|
1346
1133
|
}
|
|
1347
1134
|
|
|
1348
|
-
/** @returns {
|
|
1349
|
-
static
|
|
1135
|
+
/** @returns {IsCnRefundMethodData} */
|
|
1136
|
+
static IsCnRefundMethodData() {
|
|
1350
1137
|
return Joi.object({
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
text: Joi.string().allow(""),
|
|
1355
|
-
type: Joi.string().allow(""),
|
|
1356
|
-
value: Joi.string().allow(""),
|
|
1138
|
+
affiliate_id: Joi.string().allow(""),
|
|
1139
|
+
toggle_edit_required: Joi.boolean(),
|
|
1140
|
+
seller_id: Joi.number(),
|
|
1357
1141
|
});
|
|
1358
1142
|
}
|
|
1359
1143
|
|
|
1360
|
-
/** @returns {
|
|
1361
|
-
static
|
|
1144
|
+
/** @returns {IsCnRefundMethodRequest} */
|
|
1145
|
+
static IsCnRefundMethodRequest() {
|
|
1362
1146
|
return Joi.object({
|
|
1363
|
-
|
|
1364
|
-
role_name: Joi.string().allow(""),
|
|
1147
|
+
data: FinancePlatformModel.IsCnRefundMethodData(),
|
|
1365
1148
|
});
|
|
1366
1149
|
}
|
|
1367
1150
|
|
|
1368
|
-
/** @returns {
|
|
1369
|
-
static
|
|
1151
|
+
/** @returns {IsCnRefundMethodResponseData} */
|
|
1152
|
+
static IsCnRefundMethodResponseData() {
|
|
1370
1153
|
return Joi.object({
|
|
1371
|
-
|
|
1154
|
+
is_first_time_user: Joi.boolean(),
|
|
1372
1155
|
});
|
|
1373
1156
|
}
|
|
1374
1157
|
|
|
1375
|
-
/** @returns {
|
|
1376
|
-
static
|
|
1158
|
+
/** @returns {IsCnRefundMethodResponse} */
|
|
1159
|
+
static IsCnRefundMethodResponse() {
|
|
1377
1160
|
return Joi.object({
|
|
1378
|
-
items: Joi.array().items(FinancePlatformModel.ReportItem()),
|
|
1379
|
-
page: FinancePlatformModel.Page(),
|
|
1380
1161
|
success: Joi.boolean(),
|
|
1381
|
-
|
|
1162
|
+
data: FinancePlatformModel.IsCnRefundMethodResponseData(),
|
|
1382
1163
|
});
|
|
1383
1164
|
}
|
|
1384
1165
|
|
|
1385
|
-
/** @returns {
|
|
1386
|
-
static
|
|
1166
|
+
/** @returns {CreditNoteConfigNotificationEvents} */
|
|
1167
|
+
static CreditNoteConfigNotificationEvents() {
|
|
1387
1168
|
return Joi.object({
|
|
1388
|
-
|
|
1389
|
-
invoice_type: Joi.array().items(Joi.string().allow("")),
|
|
1390
|
-
payment_status: Joi.array().items(Joi.string().allow("")),
|
|
1169
|
+
expiration_reminder_to_customer: Joi.number(),
|
|
1391
1170
|
});
|
|
1392
1171
|
}
|
|
1393
1172
|
|
|
1394
|
-
/** @returns {
|
|
1395
|
-
static
|
|
1173
|
+
/** @returns {CreateSellerCreditNoteConfig} */
|
|
1174
|
+
static CreateSellerCreditNoteConfig() {
|
|
1396
1175
|
return Joi.object({
|
|
1397
|
-
|
|
1176
|
+
is_cn_as_refund_method: Joi.boolean(),
|
|
1177
|
+
affiliate_id: Joi.string().allow(""),
|
|
1178
|
+
source_channel: Joi.array().items(Joi.string().allow("")),
|
|
1179
|
+
seller_id: Joi.number(),
|
|
1180
|
+
notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
|
|
1181
|
+
sales_channel_name: Joi.string().allow(""),
|
|
1182
|
+
ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
1183
|
+
validity: Joi.number(),
|
|
1184
|
+
currency_type: Joi.string().allow(""),
|
|
1185
|
+
slug_values: Joi.array().items(Joi.string().allow("")),
|
|
1398
1186
|
});
|
|
1399
1187
|
}
|
|
1400
1188
|
|
|
1401
|
-
/** @returns {
|
|
1402
|
-
static
|
|
1189
|
+
/** @returns {CreateSellerCreditNoteConfigRequest} */
|
|
1190
|
+
static CreateSellerCreditNoteConfigRequest() {
|
|
1403
1191
|
return Joi.object({
|
|
1404
|
-
data:
|
|
1405
|
-
FinancePlatformModel.InvoiceActivityLogsResponseData()
|
|
1406
|
-
),
|
|
1192
|
+
data: FinancePlatformModel.CreateSellerCreditNoteConfig(),
|
|
1407
1193
|
});
|
|
1408
1194
|
}
|
|
1409
1195
|
|
|
1410
|
-
/** @returns {
|
|
1411
|
-
static
|
|
1196
|
+
/** @returns {CreateSellerCreditNoteConfigResponse} */
|
|
1197
|
+
static CreateSellerCreditNoteConfigResponse() {
|
|
1412
1198
|
return Joi.object({
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
performed_by: Joi.string().allow(""),
|
|
1416
|
-
reason: Joi.string().allow(""),
|
|
1417
|
-
retry_attempts: Joi.number(),
|
|
1418
|
-
status: Joi.string().allow(""),
|
|
1199
|
+
success: Joi.boolean(),
|
|
1200
|
+
message: Joi.string().allow(""),
|
|
1419
1201
|
});
|
|
1420
1202
|
}
|
|
1421
1203
|
|
|
1422
|
-
/** @returns {
|
|
1423
|
-
static
|
|
1204
|
+
/** @returns {DeleteConfig} */
|
|
1205
|
+
static DeleteConfig() {
|
|
1424
1206
|
return Joi.object({
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
page_size: Joi.number(),
|
|
1429
|
-
search: Joi.string().allow(""),
|
|
1430
|
-
start_date: Joi.string().allow(""),
|
|
1207
|
+
affiliate_id: Joi.string().allow(""),
|
|
1208
|
+
slug_values: Joi.array().items(Joi.string().allow("")),
|
|
1209
|
+
seller_id: Joi.number(),
|
|
1431
1210
|
});
|
|
1432
1211
|
}
|
|
1433
1212
|
|
|
1434
|
-
/** @returns {
|
|
1435
|
-
static
|
|
1213
|
+
/** @returns {DeleteConfigRequest} */
|
|
1214
|
+
static DeleteConfigRequest() {
|
|
1436
1215
|
return Joi.object({
|
|
1437
|
-
data: FinancePlatformModel.
|
|
1216
|
+
data: FinancePlatformModel.DeleteConfig(),
|
|
1438
1217
|
});
|
|
1439
1218
|
}
|
|
1440
1219
|
|
|
1441
|
-
/** @returns {
|
|
1442
|
-
static
|
|
1220
|
+
/** @returns {DeleteConfigResponse} */
|
|
1221
|
+
static DeleteConfigResponse() {
|
|
1443
1222
|
return Joi.object({
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
FinancePlatformModel.InvoiceListingResponseItems()
|
|
1447
|
-
),
|
|
1448
|
-
page: FinancePlatformModel.Page(),
|
|
1449
|
-
unpaid_invoice_data: FinancePlatformModel.UnpaidInvoiceDataItems(),
|
|
1223
|
+
success: Joi.boolean(),
|
|
1224
|
+
message: Joi.string().allow(""),
|
|
1450
1225
|
});
|
|
1451
1226
|
}
|
|
1452
1227
|
|
|
1453
|
-
/** @returns {
|
|
1454
|
-
static
|
|
1228
|
+
/** @returns {ChannelDisplayName} */
|
|
1229
|
+
static ChannelDisplayName() {
|
|
1455
1230
|
return Joi.object({
|
|
1456
|
-
|
|
1457
|
-
company: Joi.string().allow(""),
|
|
1458
|
-
currency: FinancePlatformModel.Currency(),
|
|
1459
|
-
due_date: Joi.string().allow(""),
|
|
1460
|
-
invoice_date: Joi.string().allow(""),
|
|
1461
|
-
invoice_id: Joi.string().allow(""),
|
|
1462
|
-
invoice_number: Joi.string().allow(""),
|
|
1463
|
-
invoice_type: Joi.string().allow(""),
|
|
1464
|
-
is_downloadable: Joi.boolean(),
|
|
1465
|
-
period: Joi.string().allow(""),
|
|
1466
|
-
status: Joi.string().allow(""),
|
|
1231
|
+
platform_pos: Joi.string().allow(""),
|
|
1467
1232
|
});
|
|
1468
1233
|
}
|
|
1469
1234
|
|
|
1470
|
-
/** @returns {
|
|
1471
|
-
static
|
|
1235
|
+
/** @returns {ChannelDisplayNameResponse} */
|
|
1236
|
+
static ChannelDisplayNameResponse() {
|
|
1472
1237
|
return Joi.object({
|
|
1473
|
-
data: FinancePlatformModel.InvoicePaymentDetailsResponseData(),
|
|
1474
|
-
payment_details_visible: Joi.boolean(),
|
|
1475
1238
|
success: Joi.boolean(),
|
|
1239
|
+
data: FinancePlatformModel.ChannelDisplayName(),
|
|
1476
1240
|
});
|
|
1477
1241
|
}
|
|
1478
1242
|
|
|
1479
|
-
/** @returns {
|
|
1480
|
-
static
|
|
1243
|
+
/** @returns {CnReferenceNumber} */
|
|
1244
|
+
static CnReferenceNumber() {
|
|
1481
1245
|
return Joi.object({
|
|
1482
|
-
|
|
1483
|
-
paid_invoice_payment_details: Joi.array().items(
|
|
1484
|
-
FinancePlatformModel.PaidInvoicePaymentDetail()
|
|
1485
|
-
),
|
|
1246
|
+
cn_reference_number: Joi.string().allow(""),
|
|
1486
1247
|
});
|
|
1487
1248
|
}
|
|
1488
1249
|
|
|
1489
|
-
/** @returns {
|
|
1490
|
-
static
|
|
1250
|
+
/** @returns {GetPdfUrlViewRequest} */
|
|
1251
|
+
static GetPdfUrlViewRequest() {
|
|
1491
1252
|
return Joi.object({
|
|
1492
|
-
|
|
1253
|
+
data: FinancePlatformModel.CnReferenceNumber(),
|
|
1493
1254
|
});
|
|
1494
1255
|
}
|
|
1495
1256
|
|
|
1496
|
-
/** @returns {
|
|
1497
|
-
static
|
|
1257
|
+
/** @returns {GetPdfUrlViewResponseData} */
|
|
1258
|
+
static GetPdfUrlViewResponseData() {
|
|
1498
1259
|
return Joi.object({
|
|
1499
|
-
|
|
1260
|
+
s3_pdf_link: Joi.string().allow(""),
|
|
1261
|
+
cn_reference_number: Joi.string().allow(""),
|
|
1500
1262
|
});
|
|
1501
1263
|
}
|
|
1502
1264
|
|
|
1503
|
-
/** @returns {
|
|
1504
|
-
static
|
|
1265
|
+
/** @returns {GetPdfUrlViewResponse} */
|
|
1266
|
+
static GetPdfUrlViewResponse() {
|
|
1505
1267
|
return Joi.object({
|
|
1506
|
-
data: Joi.array().items(Joi.string().allow("")),
|
|
1507
|
-
error: Joi.array().items(Joi.string().allow("")),
|
|
1508
1268
|
success: Joi.boolean(),
|
|
1269
|
+
data: FinancePlatformModel.GetPdfUrlViewResponseData(),
|
|
1509
1270
|
});
|
|
1510
1271
|
}
|
|
1511
1272
|
|
|
1512
|
-
/** @returns {
|
|
1513
|
-
static
|
|
1273
|
+
/** @returns {CreditNoteDetailsRequest} */
|
|
1274
|
+
static CreditNoteDetailsRequest() {
|
|
1514
1275
|
return Joi.object({
|
|
1515
|
-
|
|
1276
|
+
data: FinancePlatformModel.CnReferenceNumber(),
|
|
1516
1277
|
});
|
|
1517
1278
|
}
|
|
1518
1279
|
|
|
1519
|
-
/** @returns {
|
|
1520
|
-
static
|
|
1280
|
+
/** @returns {CnDetails} */
|
|
1281
|
+
static CnDetails() {
|
|
1521
1282
|
return Joi.object({
|
|
1522
|
-
|
|
1283
|
+
staff_id: Joi.string().allow(""),
|
|
1284
|
+
expiry_date: Joi.string().allow(""),
|
|
1285
|
+
channel_of_issuance: Joi.string().allow(""),
|
|
1286
|
+
order_id: Joi.string().allow(""),
|
|
1287
|
+
date_issued: Joi.string().allow(""),
|
|
1288
|
+
ordering_channel: Joi.string().allow(""),
|
|
1289
|
+
shipment_id: Joi.string().allow(""),
|
|
1290
|
+
store_id: Joi.string().allow(""),
|
|
1291
|
+
invoice_number: Joi.string().allow(""),
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/** @returns {RedemptionDetails} */
|
|
1296
|
+
static RedemptionDetails() {
|
|
1297
|
+
return Joi.object({
|
|
1298
|
+
staff_id: Joi.string().allow(""),
|
|
1299
|
+
created_at: Joi.string().allow(""),
|
|
1300
|
+
order_id: Joi.string().allow(""),
|
|
1301
|
+
store_id: Joi.string().allow(""),
|
|
1302
|
+
shipment_id: Joi.string().allow(""),
|
|
1303
|
+
ordering_channel: Joi.string().allow(""),
|
|
1304
|
+
amount_debited: Joi.number(),
|
|
1305
|
+
invoice_number: Joi.string().allow(""),
|
|
1523
1306
|
});
|
|
1524
1307
|
}
|
|
1525
1308
|
|
|
1526
|
-
/** @returns {
|
|
1527
|
-
static
|
|
1309
|
+
/** @returns {CreditNoteDetails} */
|
|
1310
|
+
static CreditNoteDetails() {
|
|
1528
1311
|
return Joi.object({
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
),
|
|
1532
|
-
|
|
1533
|
-
|
|
1312
|
+
cn_status: Joi.string().allow(""),
|
|
1313
|
+
customer_mobile_number: Joi.string().allow(""),
|
|
1314
|
+
cn_reference_number: Joi.string().allow(""),
|
|
1315
|
+
cn_details: Joi.any(),
|
|
1316
|
+
redemption_details: Joi.array().items(
|
|
1317
|
+
FinancePlatformModel.RedemptionDetails()
|
|
1534
1318
|
),
|
|
1535
|
-
|
|
1319
|
+
remaining_cn_amount: Joi.number(),
|
|
1320
|
+
available_cn_balance: Joi.number(),
|
|
1321
|
+
cn_amount: Joi.number(),
|
|
1536
1322
|
});
|
|
1537
1323
|
}
|
|
1538
1324
|
|
|
1539
|
-
/** @returns {
|
|
1540
|
-
static
|
|
1325
|
+
/** @returns {CreditNoteDetailsResponse} */
|
|
1326
|
+
static CreditNoteDetailsResponse() {
|
|
1541
1327
|
return Joi.object({
|
|
1542
|
-
|
|
1543
|
-
|
|
1328
|
+
success: Joi.boolean(),
|
|
1329
|
+
data: FinancePlatformModel.CreditNoteDetails(),
|
|
1544
1330
|
});
|
|
1545
1331
|
}
|
|
1546
1332
|
|
|
1547
|
-
/** @returns {
|
|
1548
|
-
static
|
|
1333
|
+
/** @returns {GetCustomerCreditBalance} */
|
|
1334
|
+
static GetCustomerCreditBalance() {
|
|
1549
1335
|
return Joi.object({
|
|
1550
1336
|
affiliate_id: Joi.string().allow(""),
|
|
1551
1337
|
seller_id: Joi.number(),
|
|
1552
|
-
|
|
1338
|
+
customer_mobile_number: Joi.string().allow(""),
|
|
1553
1339
|
});
|
|
1554
1340
|
}
|
|
1555
1341
|
|
|
1556
|
-
/** @returns {
|
|
1557
|
-
static
|
|
1342
|
+
/** @returns {GetCustomerCreditBalanceRequest} */
|
|
1343
|
+
static GetCustomerCreditBalanceRequest() {
|
|
1558
1344
|
return Joi.object({
|
|
1559
|
-
data: FinancePlatformModel.
|
|
1345
|
+
data: FinancePlatformModel.GetCustomerCreditBalance(),
|
|
1560
1346
|
});
|
|
1561
1347
|
}
|
|
1562
1348
|
|
|
1563
|
-
/** @returns {
|
|
1564
|
-
static
|
|
1349
|
+
/** @returns {GetCustomerCreditBalanceResponseData} */
|
|
1350
|
+
static GetCustomerCreditBalanceResponseData() {
|
|
1565
1351
|
return Joi.object({
|
|
1566
|
-
|
|
1567
|
-
|
|
1352
|
+
customer_mobile_number: Joi.string().allow(""),
|
|
1353
|
+
total_credited_balance: Joi.number(),
|
|
1568
1354
|
});
|
|
1569
1355
|
}
|
|
1570
1356
|
|
|
1571
|
-
/** @returns {
|
|
1572
|
-
static
|
|
1357
|
+
/** @returns {GetCustomerCreditBalanceResponse} */
|
|
1358
|
+
static GetCustomerCreditBalanceResponse() {
|
|
1573
1359
|
return Joi.object({
|
|
1574
|
-
|
|
1360
|
+
success: Joi.boolean(),
|
|
1361
|
+
data: FinancePlatformModel.GetCustomerCreditBalanceResponseData(),
|
|
1575
1362
|
});
|
|
1576
1363
|
}
|
|
1577
1364
|
|
|
1578
|
-
/** @returns {
|
|
1579
|
-
static
|
|
1365
|
+
/** @returns {GetCnConfigRequest} */
|
|
1366
|
+
static GetCnConfigRequest() {
|
|
1580
1367
|
return Joi.object({
|
|
1581
|
-
|
|
1368
|
+
data: FinancePlatformModel.DeleteConfig(),
|
|
1582
1369
|
});
|
|
1583
1370
|
}
|
|
1584
1371
|
|
|
1585
|
-
/** @returns {
|
|
1586
|
-
static
|
|
1372
|
+
/** @returns {GetCnConfigResponseMeta} */
|
|
1373
|
+
static GetCnConfigResponseMeta() {
|
|
1587
1374
|
return Joi.object({
|
|
1588
|
-
|
|
1375
|
+
reason: Joi.string().allow(""),
|
|
1376
|
+
source_channel: Joi.array().items(Joi.string().allow("")),
|
|
1589
1377
|
});
|
|
1590
1378
|
}
|
|
1591
1379
|
|
|
1592
|
-
/** @returns {
|
|
1593
|
-
static
|
|
1380
|
+
/** @returns {GetCnConfigResponseData} */
|
|
1381
|
+
static GetCnConfigResponseData() {
|
|
1594
1382
|
return Joi.object({
|
|
1595
|
-
|
|
1596
|
-
|
|
1383
|
+
is_cn_as_refund_method: Joi.boolean(),
|
|
1384
|
+
affiliate_id: Joi.string().allow(""),
|
|
1385
|
+
meta: FinancePlatformModel.GetCnConfigResponseMeta(),
|
|
1386
|
+
seller_id: Joi.number(),
|
|
1387
|
+
notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
|
|
1388
|
+
validity: Joi.number(),
|
|
1389
|
+
redemption_ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
1390
|
+
currency_type: Joi.string().allow(""),
|
|
1597
1391
|
});
|
|
1598
1392
|
}
|
|
1599
1393
|
|
|
1600
|
-
/** @returns {
|
|
1601
|
-
static
|
|
1394
|
+
/** @returns {GetCnConfigResponse} */
|
|
1395
|
+
static GetCnConfigResponse() {
|
|
1602
1396
|
return Joi.object({
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
has_previous: Joi.boolean(),
|
|
1606
|
-
item_total: Joi.number(),
|
|
1607
|
-
next_id: Joi.string().allow(""),
|
|
1608
|
-
size: Joi.number(),
|
|
1609
|
-
type: Joi.string().allow("").required(),
|
|
1397
|
+
success: Joi.boolean(),
|
|
1398
|
+
data: FinancePlatformModel.GetCnConfigResponseData(),
|
|
1610
1399
|
});
|
|
1611
1400
|
}
|
|
1612
1401
|
|
|
1613
|
-
/** @returns {
|
|
1614
|
-
static
|
|
1402
|
+
/** @returns {CnGenerateReportFilters} */
|
|
1403
|
+
static CnGenerateReportFilters() {
|
|
1615
1404
|
return Joi.object({
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1405
|
+
staff_id: Joi.array().items(Joi.string().allow("")),
|
|
1406
|
+
channel_of_issuance: Joi.array().items(Joi.string().allow("")),
|
|
1407
|
+
utilisation: Joi.array().items(Joi.string().allow("")),
|
|
1408
|
+
ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
1409
|
+
store_id: Joi.array().items(Joi.number()),
|
|
1410
|
+
types_of_transaction: Joi.array().items(Joi.string().allow("")),
|
|
1619
1411
|
});
|
|
1620
1412
|
}
|
|
1621
1413
|
|
|
1622
|
-
/** @returns {
|
|
1623
|
-
static
|
|
1414
|
+
/** @returns {CnGenerateReport} */
|
|
1415
|
+
static CnGenerateReport() {
|
|
1624
1416
|
return Joi.object({
|
|
1625
|
-
|
|
1626
|
-
|
|
1417
|
+
page: Joi.number(),
|
|
1418
|
+
end_date: Joi.string().allow(""),
|
|
1419
|
+
pagesize: Joi.number(),
|
|
1420
|
+
filters: FinancePlatformModel.CnGenerateReportFilters(),
|
|
1421
|
+
affiliate_id: Joi.string().allow(""),
|
|
1422
|
+
meta: FinancePlatformModel.GenerateReportFilters(),
|
|
1423
|
+
search: Joi.string().allow(""),
|
|
1424
|
+
report_id: Joi.string().allow(""),
|
|
1425
|
+
search_type: Joi.string().allow(""),
|
|
1426
|
+
start_date: Joi.string().allow(""),
|
|
1627
1427
|
});
|
|
1628
1428
|
}
|
|
1629
1429
|
|
|
1630
|
-
/** @returns {
|
|
1631
|
-
static
|
|
1430
|
+
/** @returns {GenerateReportCustomerCnRequest} */
|
|
1431
|
+
static GenerateReportCustomerCnRequest() {
|
|
1632
1432
|
return Joi.object({
|
|
1633
|
-
|
|
1634
|
-
currency: Joi.string().allow(""),
|
|
1635
|
-
invoice_number: Joi.string().allow(""),
|
|
1636
|
-
meta: Joi.any(),
|
|
1637
|
-
mode_of_payment: Joi.string().allow(""),
|
|
1638
|
-
platform: Joi.string().allow(""),
|
|
1639
|
-
seller_id: Joi.string().allow(""),
|
|
1640
|
-
source_reference: Joi.string().allow(""),
|
|
1641
|
-
total_amount: Joi.string().allow(""),
|
|
1642
|
-
transaction_type: Joi.string().allow(""),
|
|
1433
|
+
data: FinancePlatformModel.CnGenerateReport(),
|
|
1643
1434
|
});
|
|
1644
1435
|
}
|
|
1645
1436
|
|
|
1646
|
-
/** @returns {
|
|
1647
|
-
static
|
|
1437
|
+
/** @returns {CnGenerateReportItems} */
|
|
1438
|
+
static CnGenerateReportItems() {
|
|
1648
1439
|
return Joi.object({
|
|
1649
|
-
|
|
1440
|
+
expiry_date: Joi.string().allow(""),
|
|
1441
|
+
status: Joi.string().allow(""),
|
|
1442
|
+
total_amount: Joi.number(),
|
|
1443
|
+
order_id: Joi.string().allow(""),
|
|
1444
|
+
date_issued: Joi.string().allow(""),
|
|
1445
|
+
shipment_id: Joi.string().allow(""),
|
|
1446
|
+
invoice_number: Joi.string().allow(""),
|
|
1447
|
+
credit_note_number: Joi.string().allow(""),
|
|
1650
1448
|
});
|
|
1651
1449
|
}
|
|
1652
1450
|
|
|
1653
|
-
/** @returns {
|
|
1654
|
-
static
|
|
1451
|
+
/** @returns {GenerateReportCustomerCnResponseData} */
|
|
1452
|
+
static GenerateReportCustomerCnResponseData() {
|
|
1655
1453
|
return Joi.object({
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1454
|
+
items: Joi.array().items(FinancePlatformModel.CnGenerateReportItems()),
|
|
1455
|
+
row_header_display_order: Joi.any(),
|
|
1456
|
+
end_date: Joi.string().allow(""),
|
|
1457
|
+
page: FinancePlatformModel.Page(),
|
|
1458
|
+
headers: Joi.array().items(Joi.string().allow("")),
|
|
1459
|
+
primary_headers: Joi.array().items(Joi.string().allow("")),
|
|
1460
|
+
allowed_filters: Joi.array().items(Joi.string().allow("")),
|
|
1461
|
+
start_date: Joi.string().allow(""),
|
|
1462
|
+
item_count: Joi.number(),
|
|
1661
1463
|
});
|
|
1662
1464
|
}
|
|
1663
1465
|
|
|
1664
|
-
/** @returns {
|
|
1665
|
-
static
|
|
1466
|
+
/** @returns {GenerateReportCustomerCnResponse} */
|
|
1467
|
+
static GenerateReportCustomerCnResponse() {
|
|
1666
1468
|
return Joi.object({
|
|
1667
|
-
|
|
1668
|
-
id: Joi.string().allow(""),
|
|
1669
|
-
name: Joi.string().allow(""),
|
|
1469
|
+
data: FinancePlatformModel.GenerateReportCustomerCnResponseData(),
|
|
1670
1470
|
});
|
|
1671
1471
|
}
|
|
1672
1472
|
|
|
1673
|
-
/** @returns {
|
|
1674
|
-
static
|
|
1473
|
+
/** @returns {CnDownloadReport} */
|
|
1474
|
+
static CnDownloadReport() {
|
|
1675
1475
|
return Joi.object({
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1476
|
+
page: Joi.number(),
|
|
1477
|
+
start_date: Joi.string().allow(""),
|
|
1478
|
+
end_date: Joi.string().allow(""),
|
|
1479
|
+
affiliate_id: Joi.string().allow(""),
|
|
1480
|
+
search: Joi.string().allow(""),
|
|
1481
|
+
status: Joi.array().items(Joi.string().allow("")),
|
|
1482
|
+
search_type: Joi.string().allow(""),
|
|
1483
|
+
pagesize: Joi.number(),
|
|
1684
1484
|
});
|
|
1685
1485
|
}
|
|
1686
1486
|
|
|
1687
|
-
/** @returns {
|
|
1688
|
-
static
|
|
1487
|
+
/** @returns {DownloadReportCustomerCnRequest} */
|
|
1488
|
+
static DownloadReportCustomerCnRequest() {
|
|
1689
1489
|
return Joi.object({
|
|
1690
|
-
|
|
1691
|
-
config_meta: Joi.any(),
|
|
1692
|
-
description: Joi.string().allow(""),
|
|
1693
|
-
display_date: Joi.string().allow("").allow(null),
|
|
1694
|
-
id: Joi.string().allow(""),
|
|
1695
|
-
name: Joi.string().allow(""),
|
|
1696
|
-
report_type: Joi.string().allow(""),
|
|
1490
|
+
data: FinancePlatformModel.CnDownloadReport(),
|
|
1697
1491
|
});
|
|
1698
1492
|
}
|
|
1699
1493
|
|
|
1700
|
-
/** @returns {
|
|
1701
|
-
static
|
|
1494
|
+
/** @returns {DownloadReportResponseData} */
|
|
1495
|
+
static DownloadReportResponseData() {
|
|
1702
1496
|
return Joi.object({
|
|
1703
|
-
|
|
1497
|
+
report_config_id: Joi.string().allow(""),
|
|
1498
|
+
full_name: Joi.string().allow(""),
|
|
1499
|
+
requested_by: Joi.string().allow(""),
|
|
1500
|
+
start_date: Joi.string().allow(""),
|
|
1501
|
+
end_date: Joi.string().allow(""),
|
|
1502
|
+
request_dict: Joi.any(),
|
|
1503
|
+
download_link: Joi.string().allow(""),
|
|
1504
|
+
created_at: Joi.string().allow(""),
|
|
1505
|
+
meta: Joi.any(),
|
|
1506
|
+
msg: Joi.string().allow(""),
|
|
1507
|
+
report_name: Joi.string().allow(""),
|
|
1508
|
+
status: Joi.string().allow(""),
|
|
1509
|
+
display_name: Joi.string().allow(""),
|
|
1510
|
+
filters: Joi.any(),
|
|
1704
1511
|
});
|
|
1705
1512
|
}
|
|
1706
1513
|
|
|
1707
|
-
/** @returns {
|
|
1708
|
-
static
|
|
1514
|
+
/** @returns {DownloadReportCustomerCnResponse} */
|
|
1515
|
+
static DownloadReportCustomerCnResponse() {
|
|
1709
1516
|
return Joi.object({
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
unlock_reason: Joi.string().allow(""),
|
|
1517
|
+
data: Joi.array().items(
|
|
1518
|
+
FinancePlatformModel.DownloadReportResponseData()
|
|
1519
|
+
),
|
|
1714
1520
|
});
|
|
1715
1521
|
}
|
|
1716
1522
|
|
|
1717
|
-
/** @returns {
|
|
1718
|
-
static
|
|
1523
|
+
/** @returns {GetReportingFilters} */
|
|
1524
|
+
static GetReportingFilters() {
|
|
1719
1525
|
return Joi.object({
|
|
1720
|
-
|
|
1721
|
-
|
|
1526
|
+
text: Joi.string().allow(""),
|
|
1527
|
+
type: Joi.string().allow(""),
|
|
1528
|
+
options: Joi.array().items(Joi.any()),
|
|
1529
|
+
value: Joi.string().allow(""),
|
|
1722
1530
|
});
|
|
1723
1531
|
}
|
|
1724
1532
|
|
|
1725
|
-
/** @returns {
|
|
1726
|
-
static
|
|
1533
|
+
/** @returns {GetReportingNestedFilters} */
|
|
1534
|
+
static GetReportingNestedFilters() {
|
|
1727
1535
|
return Joi.object({
|
|
1728
|
-
|
|
1729
|
-
|
|
1536
|
+
text: Joi.string().allow(""),
|
|
1537
|
+
options: Joi.array().items(Joi.any()),
|
|
1538
|
+
required: Joi.boolean(),
|
|
1539
|
+
placeholder_text: Joi.string().allow(""),
|
|
1540
|
+
type: Joi.string().allow(""),
|
|
1541
|
+
value: Joi.string().allow(""),
|
|
1730
1542
|
});
|
|
1731
1543
|
}
|
|
1732
1544
|
|
|
1733
|
-
/** @returns {
|
|
1734
|
-
static
|
|
1545
|
+
/** @returns {GetReportingFiltersResponse} */
|
|
1546
|
+
static GetReportingFiltersResponse() {
|
|
1735
1547
|
return Joi.object({
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1548
|
+
search: FinancePlatformModel.GetReportingFilters(),
|
|
1549
|
+
filters: Joi.array().items(
|
|
1550
|
+
FinancePlatformModel.GetReportingNestedFilters()
|
|
1551
|
+
),
|
|
1552
|
+
status: FinancePlatformModel.GetReportingFilters(),
|
|
1739
1553
|
});
|
|
1740
1554
|
}
|
|
1741
1555
|
}
|