@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -1,2150 +0,0 @@
|
|
|
1
|
-
const Joi = require("joi");
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @typedef OrederFreezeResponse
|
|
5
|
-
* @property {boolean} [success] - Indicates whether the operation was successful or not.
|
|
6
|
-
* @property {boolean} [oms_freeze] - Flag indicating if the system is frozen
|
|
7
|
-
* for order management.
|
|
8
|
-
* @property {string} [source] - Optional field indicating the data source of
|
|
9
|
-
* the information.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @typedef GenerateReportMeta
|
|
14
|
-
* @property {string} [brand] - The brand name associated with the report meta
|
|
15
|
-
* information.
|
|
16
|
-
* @property {string} [company] - The company name associated with the report
|
|
17
|
-
* meta information.
|
|
18
|
-
* @property {string} [channel] - The sale channel name associated with seller.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @typedef GenerateReportFilters
|
|
23
|
-
* @property {string[]} [brand] - An array of brand names to filter the report data.
|
|
24
|
-
* @property {string[]} [company] - An array of company id to filter the report data.
|
|
25
|
-
* @property {string[]} [channel] - An array of sale channel names associated
|
|
26
|
-
* with seller to filter the report data.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @typedef GenerateReportPlatform
|
|
31
|
-
* @property {string} [start_date] - The start date to generate report specific preiod.
|
|
32
|
-
* @property {string} [end_date] - The end date to generate report specific preiod.
|
|
33
|
-
* @property {GenerateReportMeta} [meta]
|
|
34
|
-
* @property {string} [report_id] - The unique identifier of the generate report
|
|
35
|
-
* where different report configure.
|
|
36
|
-
* @property {GenerateReportFilters} [filters]
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @typedef GenerateReportReq
|
|
41
|
-
* @property {GenerateReportPlatform} [data]
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @typedef Page
|
|
46
|
-
* @property {number} [item_total] - The total number of items on the page.
|
|
47
|
-
* @property {string} [next_id] - The identifier for the next page.
|
|
48
|
-
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
49
|
-
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
50
|
-
* @property {number} [current] - The current page number.
|
|
51
|
-
* @property {string} type - The type of the page, such as 'PageType'.
|
|
52
|
-
* @property {number} [size] - The number of items per page.
|
|
53
|
-
* @property {number} [total] - Total number of items.
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @typedef Currency
|
|
58
|
-
* @property {string} [code] - The unique currency code.
|
|
59
|
-
* @property {string} [symbol] - The unique currency symbol.
|
|
60
|
-
* @property {string} [name] - The unique currency name.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @typedef GenerateReportJson
|
|
65
|
-
* @property {Object} [data]
|
|
66
|
-
* @property {number} [item_count] - Total number of items in the report.
|
|
67
|
-
* @property {Page} [page]
|
|
68
|
-
* @property {string} [end_date] - The end date to generate report specific preiod.
|
|
69
|
-
* @property {string} [start_date] - The start date to generate report specific preiod.
|
|
70
|
-
* @property {string[][]} [items] - Nested array structure representing report
|
|
71
|
-
* items or data.
|
|
72
|
-
* @property {string[]} [headers] - Headers describing each item in the report data.
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @typedef Error
|
|
77
|
-
* @property {number} [status]
|
|
78
|
-
* @property {string} [reason]
|
|
79
|
-
* @property {boolean} [success]
|
|
80
|
-
* @property {string} [message]
|
|
81
|
-
* @property {string} [code]
|
|
82
|
-
* @property {string} [exception]
|
|
83
|
-
* @property {string} [info]
|
|
84
|
-
* @property {string} [request_id]
|
|
85
|
-
* @property {string} [stack_trace]
|
|
86
|
-
* @property {ErrorMeta} [meta]
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @typedef ErrorMeta
|
|
91
|
-
* @property {ErrorMetaItems[]} [columns_errors]
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* @typedef ErrorMetaItems
|
|
96
|
-
* @property {number} [code]
|
|
97
|
-
* @property {string} [message]
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @typedef DownloadReport
|
|
102
|
-
* @property {DownloadReportData} [data]
|
|
103
|
-
*/
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @typedef DownloadReportData
|
|
107
|
-
* @property {number} [page] - The current page number of the report.
|
|
108
|
-
* @property {number} [page_size] - The number of items displayed per page.
|
|
109
|
-
* @property {string} [start_date] - The start date for fetching the report
|
|
110
|
-
* history for download.
|
|
111
|
-
* @property {string} [end_date] - The end date for fetching the report history
|
|
112
|
-
* for download.
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @typedef DownloadReportItems
|
|
117
|
-
* @property {string} [start_date] - The start date for the report item.
|
|
118
|
-
* @property {string} [end_date] - The end date for the report item.
|
|
119
|
-
* @property {GenerateReportMeta} [meta]
|
|
120
|
-
* @property {string} [report_id] - The unique identifier of the report item.
|
|
121
|
-
* @property {GenerateReportFilters} [filters]
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @typedef DownloadReportList
|
|
126
|
-
* @property {DownloadReportItems[]} [items] - A list of report items available
|
|
127
|
-
* for download.
|
|
128
|
-
* @property {Page} [page]
|
|
129
|
-
* @property {number} [item_count] - The total number of items in the report list.
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @typedef GetEngineFilters
|
|
134
|
-
* @property {string} [config_field] - The configuration field used for filtering.
|
|
135
|
-
* @property {string} [status] - The status used for filtering.
|
|
136
|
-
* @property {boolean} [is_active] - Flag indicating if the filter is active.
|
|
137
|
-
* @property {string} [seller_id] - The seller ID used for filtering.
|
|
138
|
-
*/
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @typedef GetEngineData
|
|
142
|
-
* @property {string} [status] - Status of the request.
|
|
143
|
-
* @property {GetEngineFilters} [filters]
|
|
144
|
-
* @property {string[]} [project] - A list of fields to get data from tables.
|
|
145
|
-
* @property {string} [table_name] - The name of the table from which to retrieve data.
|
|
146
|
-
* @property {Object} [search] - Search criteria for querying on given table
|
|
147
|
-
* specific fields.
|
|
148
|
-
* @property {number} [page] - The current page number for pagination.
|
|
149
|
-
* @property {number} [page_size] - The number of items displayed per page.
|
|
150
|
-
* @property {string} [order_by] - The field by which to order the results.
|
|
151
|
-
*/
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @typedef GetEngineReq
|
|
155
|
-
* @property {GetEngineData} [data]
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @typedef GetEngineResponse
|
|
160
|
-
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
161
|
-
* @property {Object[]} [items] - A list of items returned by the request.
|
|
162
|
-
* @property {Page} [page]
|
|
163
|
-
* @property {number} [item_count] - The total number of items returned by the request.
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* @typedef GetReason
|
|
168
|
-
* @property {string} [reason_type] - The type of reason associated with the request.
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @typedef GetReasonReq
|
|
173
|
-
* @property {GetReason} [data]
|
|
174
|
-
*/
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @typedef ReasonItem
|
|
178
|
-
* @property {string} [id] - Id of the reason for reason_type.
|
|
179
|
-
* @property {string} [name] - Code of the reason for reason_type.
|
|
180
|
-
* @property {string} [display_name] - Display name of the reason for reason_type.
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @typedef GetReasonResponse
|
|
185
|
-
* @property {boolean} [success] - Indicates whether the request was successfull.
|
|
186
|
-
* @property {ReasonItem[]} [item_list] - The list of items returned in the response.
|
|
187
|
-
* @property {number} [item_count] - The number of items in the response.
|
|
188
|
-
* @property {Page} [page]
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @typedef GetReportListData
|
|
193
|
-
* @property {string} [role_name] - The name of the role requesting the report list.
|
|
194
|
-
* @property {boolean} [listing_enabled] - Indicates whether listing is enabled
|
|
195
|
-
* for the role.
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @typedef GetReportListReq
|
|
200
|
-
* @property {GetReportListData} [data]
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* @typedef GetReportListResponse
|
|
205
|
-
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
206
|
-
* @property {ReportItem[]} [items] - The list of report items.
|
|
207
|
-
* @property {Page} [page]
|
|
208
|
-
* @property {number} [total_count] - The total number of items in the report list.
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @typedef ReportItem
|
|
213
|
-
* @property {string} [id] - The unique identifier for the report item.
|
|
214
|
-
* @property {string} [name] - The name of the report item.
|
|
215
|
-
* @property {string} [description] - A brief description of the report item.
|
|
216
|
-
* @property {string[]} [allowed_filters] - The filters that can be applied to
|
|
217
|
-
* the report item.
|
|
218
|
-
* @property {Object} [config_meta] - Metadata related to the report item configuration.
|
|
219
|
-
* @property {string} [report_type] - The type of the report item.
|
|
220
|
-
* @property {string} [display_date] - The display date of the report item, if applicable.
|
|
221
|
-
*/
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* @typedef GetAffiliate
|
|
225
|
-
* @property {number} [company_id] - The unique identifier of the company
|
|
226
|
-
* associated with the affiliate.
|
|
227
|
-
*/
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* @typedef GetAffiliateResponse
|
|
231
|
-
* @property {string} [reason] - The reason for the response, if applicable.
|
|
232
|
-
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
233
|
-
* @property {Object[]} [docs] - List of items or data related to the affiliate.
|
|
234
|
-
*/
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* @typedef DownloadCreditDebitNote
|
|
238
|
-
* @property {string[]} [note_id] - List of unique identifiers for the
|
|
239
|
-
* credit/debit notes to be download.
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* @typedef DownloadCreditDebitNoteReq
|
|
244
|
-
* @property {DownloadCreditDebitNote} [data]
|
|
245
|
-
*/
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* @typedef DownloadCreditDebitNoteResponseData
|
|
249
|
-
* @property {string} [id] - The unique identifier of the download credit/debit note.
|
|
250
|
-
* @property {string} [pdf_s3_url] - The URL where the PDF of the credit/debit
|
|
251
|
-
* note is stored.
|
|
252
|
-
*/
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @typedef DownloadCreditDebitNoteResponse
|
|
256
|
-
* @property {boolean} [success] - Indicates whether the request to download the
|
|
257
|
-
* credit/debit notes was successful.
|
|
258
|
-
* @property {DownloadCreditDebitNoteResponseData[]} [data] - List of
|
|
259
|
-
* credit/debit notes download data.
|
|
260
|
-
*/
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* @typedef InvoiceBillingItem
|
|
264
|
-
* @property {string} [invoice_number] - The number of the invoice associated
|
|
265
|
-
* with the billing item.
|
|
266
|
-
* @property {number} [amount] - The amount of the billing item.
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @typedef PaymentProcessPayload
|
|
271
|
-
* @property {string} [platform] - The platform through which the payment is processed.
|
|
272
|
-
* @property {number} [amount] - The total amount to be processed in the payment.
|
|
273
|
-
* @property {string} [transaction_type] - The type of transaction (e.g., seller_online).
|
|
274
|
-
* @property {string} [source_reference] - The reference for the source of the payment.
|
|
275
|
-
* @property {number} [total_amount] - The total amount to be processed in the payment.
|
|
276
|
-
* @property {Object} [meta] - Additional metadata related to the payment.
|
|
277
|
-
* @property {string} [currency] - The currency in which the payment is made.
|
|
278
|
-
* @property {string} [seller_id] - The unique identifier for the seller
|
|
279
|
-
* receiving the payment.
|
|
280
|
-
* @property {string} [mode_of_payment] - The mode of payment (e.g., online).
|
|
281
|
-
* @property {InvoiceBillingItem[]} [invoice_billing_items]
|
|
282
|
-
*/
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* @typedef PaymentProcessReq
|
|
286
|
-
* @property {PaymentProcessPayload} [data]
|
|
287
|
-
*/
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* @typedef PaymentProcessResponse
|
|
291
|
-
* @property {number} [code] - Response code indicating the status of the payment process.
|
|
292
|
-
* @property {string} [message] - A message providing additional information
|
|
293
|
-
* about the payment process response.
|
|
294
|
-
* @property {Object} [meta] - Additional metadata related to the payment
|
|
295
|
-
* process response.
|
|
296
|
-
* @property {string} [transaction_id] - The unique identifier for the payment
|
|
297
|
-
* transaction.
|
|
298
|
-
* @property {string} [redirect_url] - URL to redirect the user to complete the
|
|
299
|
-
* payment process, if applicable.
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @typedef CreditlineDataPlatformPayload
|
|
304
|
-
* @property {number} [page] - The page number for pagination.
|
|
305
|
-
* @property {string} [seller_id] - The unique identifier for the seller.
|
|
306
|
-
* @property {string} [end_date] - The end date for the query.
|
|
307
|
-
* @property {string} [start_date] - The start date for the query.
|
|
308
|
-
* @property {number} [page_size] - The number of items per page.
|
|
309
|
-
*/
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* @typedef CreditlineDataPlatformReq
|
|
313
|
-
* @property {CreditlineDataPlatformPayload} [data]
|
|
314
|
-
*/
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @typedef CreditlineDataPlatformResponse
|
|
318
|
-
* @property {Object[]} [items] - The list of items in the response.
|
|
319
|
-
* @property {number} [code] - The response status code.
|
|
320
|
-
* @property {boolean} [show_mr] - A flag indicating whether to show MR (some
|
|
321
|
-
* specific field).
|
|
322
|
-
* @property {Page} [page]
|
|
323
|
-
* @property {string} [message] - The response message.
|
|
324
|
-
* @property {string[]} [headers] - The list of response headers.
|
|
325
|
-
* @property {number} [item_count] - The total number of items.
|
|
326
|
-
*/
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* @typedef IsCreditlinePayload
|
|
330
|
-
* @property {string} [seller_id] - The unique identifier for the seller to
|
|
331
|
-
* check for credit line eligibility.
|
|
332
|
-
*/
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* @typedef IsCreditlinePlatformReq
|
|
336
|
-
* @property {IsCreditlinePayload} [data]
|
|
337
|
-
*/
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* @typedef IsCreditlinePlatformResponse
|
|
341
|
-
* @property {boolean} [is_creditline_opted] - Indicates whether the seller has
|
|
342
|
-
* opted for a credit line.
|
|
343
|
-
* @property {number} [code] - Response code indicating the status of the credit
|
|
344
|
-
* line check.
|
|
345
|
-
*/
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* @typedef InvoiceTypePayloadData
|
|
349
|
-
* @property {boolean} [is_active] - Indicates if the invoice type is active.
|
|
350
|
-
*/
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @typedef InvoiceTypeReq
|
|
354
|
-
* @property {InvoiceTypePayloadData} [data]
|
|
355
|
-
*/
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* @typedef InvoiceTypeResponseItems
|
|
359
|
-
* @property {string} [text] - The text description of the invoice type.
|
|
360
|
-
* @property {string} [value] - The value or code representing the invoice type.
|
|
361
|
-
*/
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* @typedef InvoiceTypeResponse
|
|
365
|
-
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
366
|
-
* @property {InvoiceTypeResponseItems[]} [invoice_type_list] - List of invoice
|
|
367
|
-
* types available.
|
|
368
|
-
* @property {InvoiceTypeResponseItems[]} [payment_status_list] - List of
|
|
369
|
-
* payment statuses available.
|
|
370
|
-
*/
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* @typedef InoviceListingPayloadDataFilters
|
|
374
|
-
* @property {string[]} [payment_status] - List of payment statuses to filter by.
|
|
375
|
-
* @property {string[]} [invoice_type] - List of invoice types to filter by.
|
|
376
|
-
* @property {string[]} [company_id] - List of company IDs to filter by.
|
|
377
|
-
*/
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* @typedef InvoiceListingPayloadData
|
|
381
|
-
* @property {number} [page_size] - The number of items per page for pagination.
|
|
382
|
-
* @property {number} [page] - The page number for pagination.
|
|
383
|
-
* @property {string} [start_date] - The start date for the invoice listing filter.
|
|
384
|
-
* @property {string} [end_date] - The end date for the invoice listing filter.
|
|
385
|
-
* @property {string} [search] - Search term for filtering invoices.
|
|
386
|
-
* @property {InoviceListingPayloadDataFilters} [filters]
|
|
387
|
-
*/
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* @typedef InvoiceListingReq
|
|
391
|
-
* @property {InvoiceListingPayloadData} [data]
|
|
392
|
-
*/
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* @typedef UnpaidInvoiceDataItems
|
|
396
|
-
* @property {number} [total_unpaid_invoice_count] - The total count of unpaid invoices.
|
|
397
|
-
* @property {string} [currency] - The currency used for unpaid invoices.
|
|
398
|
-
* @property {number} [total_unpaid_amount] - The total amount of unpaid invoices.
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* @typedef InvoiceListingResponseItems
|
|
403
|
-
* @property {number} [amount] - The amount of the invoice.
|
|
404
|
-
* @property {string} [company] - The name of the company associated with the invoice.
|
|
405
|
-
* @property {string} [status] - The current status of the invoice (e.g.,
|
|
406
|
-
* 'paid', 'unpaid').
|
|
407
|
-
* @property {string} [due_date] - The due date of the invoice.
|
|
408
|
-
* @property {string} [invoice_date] - The date when the invoice was issued.
|
|
409
|
-
* @property {string} [invoice_type] - The type of invoice.
|
|
410
|
-
* @property {string} [period] - The period covered by the invoice.
|
|
411
|
-
* @property {string} [invoice_number] - The invoice number.
|
|
412
|
-
* @property {boolean} [is_downloadable] - Indicates if the invoice is available
|
|
413
|
-
* for download.
|
|
414
|
-
* @property {string} [invoice_id] - The unique identifier of the invoice.
|
|
415
|
-
* @property {Currency} [currency]
|
|
416
|
-
*/
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* @typedef InvoiceListingResponse
|
|
420
|
-
* @property {boolean} [success] - Indicates whether the request was successful.
|
|
421
|
-
* @property {string[]} [headers] - Headers related to the invoice listing response.
|
|
422
|
-
* @property {UnpaidInvoiceDataItems} [unpaid_invoice_data]
|
|
423
|
-
* @property {InvoiceListingResponseItems[]} [items] - List of invoice items in
|
|
424
|
-
* the response.
|
|
425
|
-
* @property {Page} [page]
|
|
426
|
-
* @property {number} [item_count] - The total number of invoice items in the response.
|
|
427
|
-
*/
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* @typedef InvoicePdfPayloadData
|
|
431
|
-
* @property {string[]} [invoice_number] - List of invoice numbers for which
|
|
432
|
-
* PDFs are requested.
|
|
433
|
-
*/
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* @typedef InvoicePdfReq
|
|
437
|
-
* @property {InvoicePdfPayloadData} [data]
|
|
438
|
-
*/
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* @typedef InvoicePdfResponse
|
|
442
|
-
* @property {boolean} [success] - Indicates whether the PDF generation request
|
|
443
|
-
* was successful.
|
|
444
|
-
* @property {string[]} [data] - List of URLs or paths to the generated PDF files.
|
|
445
|
-
* @property {string[]} [error] - List of errors encountered while generating the PDFs.
|
|
446
|
-
*/
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* @typedef IsCnRefundMethodData
|
|
450
|
-
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
451
|
-
* application as affiliate_id associated with the seller.
|
|
452
|
-
* @property {boolean} [toggle_edit_required] - Indicates whether editing the
|
|
453
|
-
* refund method is required.
|
|
454
|
-
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
455
|
-
*/
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* @typedef IsCnRefundMethodReq
|
|
459
|
-
* @property {IsCnRefundMethodData} [data]
|
|
460
|
-
*/
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* @typedef IsCnRefundMethodResponseData
|
|
464
|
-
* @property {boolean} [is_first_time_user] - Indicates whether the seller for
|
|
465
|
-
* specific sale channel is using the refund method for the first time.
|
|
466
|
-
*/
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* @typedef IsCnRefundMethodResponse
|
|
470
|
-
* @property {boolean} [success] - Indicates whether the request to determine
|
|
471
|
-
* the refund method was successful.
|
|
472
|
-
* @property {IsCnRefundMethodResponseData} [data]
|
|
473
|
-
*/
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* @typedef CreditNoteConfigNotificationEvents
|
|
477
|
-
* @property {number} [expiration_reminder_to_customer] - Number of days before
|
|
478
|
-
* the expiration date to send a reminder notification to the customer.
|
|
479
|
-
*/
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* @typedef CreateSellerCreditNoteConfig
|
|
483
|
-
* @property {boolean} [is_cn_as_refund_method] - Indicates if the credit note
|
|
484
|
-
* is used as a refund method.
|
|
485
|
-
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
486
|
-
* application as affiliate_id associated with the seller.
|
|
487
|
-
* @property {string[]} [source_channel] - List of source channels associated
|
|
488
|
-
* with the credit note configuration.
|
|
489
|
-
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
490
|
-
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
491
|
-
* @property {string} [sales_channel_name] - Name of the sales channel.
|
|
492
|
-
* @property {string[]} [ordering_channel] - List of ordering channels
|
|
493
|
-
* associated with the credit note configuration.
|
|
494
|
-
* @property {number} [validity] - Validity period of the credit note in days.
|
|
495
|
-
* @property {string} [currency_type] - Type of currency used for the credit note.
|
|
496
|
-
* @property {string[]} [slug_values] - List of slug values associated with the
|
|
497
|
-
* credit note configuration.
|
|
498
|
-
*/
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* @typedef CreateSellerCreditNoteConfigReq
|
|
502
|
-
* @property {CreateSellerCreditNoteConfig} [data]
|
|
503
|
-
*/
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* @typedef CreateSellerCreditNoteConfigResponse
|
|
507
|
-
* @property {boolean} [success] - Indicates if the credit note configuration
|
|
508
|
-
* creation was successful.
|
|
509
|
-
* @property {string} [message] - Additional information or message about the
|
|
510
|
-
* credit note configuration creation process.
|
|
511
|
-
*/
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* @typedef DeleteConfig
|
|
515
|
-
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
516
|
-
* application as affiliate_id associated with the seller.
|
|
517
|
-
* @property {string[]} [slug_values] - List of slug values associated with the
|
|
518
|
-
* credit note configuration.
|
|
519
|
-
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
520
|
-
*/
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* @typedef DeleteConfigReq
|
|
524
|
-
* @property {DeleteConfig} [data]
|
|
525
|
-
*/
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* @typedef DeleteConfigResponse
|
|
529
|
-
* @property {boolean} [success] - Indicates if the configuration deletion was successful.
|
|
530
|
-
* @property {string} [message] - Additional information or message about the
|
|
531
|
-
* configuration deletion process.
|
|
532
|
-
*/
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* @typedef ChannelDisplayNameItems
|
|
536
|
-
* @property {string} [key] - The unique key identifying the channel.
|
|
537
|
-
* @property {string} [value] - The display name of the channel associated with the key.
|
|
538
|
-
*/
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* @typedef ChannelDisplayNameResponse
|
|
542
|
-
* @property {boolean} [success] - Indicates if the retrieval of channel display
|
|
543
|
-
* names was successful.
|
|
544
|
-
* @property {ChannelDisplayNameItems[]} [items] - List of items containing
|
|
545
|
-
* key-value pairs for channel display names.
|
|
546
|
-
*/
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* @typedef CnReferenceNumber
|
|
550
|
-
* @property {string} [cn_reference_number] - The unique reference number of the
|
|
551
|
-
* credit note.
|
|
552
|
-
*/
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* @typedef GetPdfUrlViewReq
|
|
556
|
-
* @property {CnReferenceNumber} [data]
|
|
557
|
-
*/
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* @typedef GetPdfUrlViewResponseData
|
|
561
|
-
* @property {string} [s3_pdf_link] - The URL link where credit nore pdf stored
|
|
562
|
-
* to view and download.
|
|
563
|
-
* @property {string} [cn_reference_number] - The unique reference number of the
|
|
564
|
-
* credit note.
|
|
565
|
-
*/
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* @typedef GetPdfUrlViewResponse
|
|
569
|
-
* @property {boolean} [success] - Indicates if the retrieval of the pdf URL was
|
|
570
|
-
* successful.
|
|
571
|
-
* @property {GetPdfUrlViewResponseData} [data]
|
|
572
|
-
*/
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* @typedef CreditNoteDetailsReq
|
|
576
|
-
* @property {CnReferenceNumber} [data]
|
|
577
|
-
*/
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* @typedef CnDetails
|
|
581
|
-
* @property {string} [staff_id] - ID of the staff member associated with the credit note.
|
|
582
|
-
* @property {string} [expiry_date] - Expiry date of the credit note.
|
|
583
|
-
* @property {string} [channel_of_issuance] - Channel through which the credit
|
|
584
|
-
* note was issued.
|
|
585
|
-
* @property {string} [order_id] - Order ID of order for which credit note created.
|
|
586
|
-
* @property {string} [date_issued] - Date when the credit note was issued.
|
|
587
|
-
* @property {string} [ordering_channel] - Ordering channel associated with the
|
|
588
|
-
* credit note.
|
|
589
|
-
* @property {string} [shipment_id] - Shipment Id associated with the credit note.
|
|
590
|
-
* @property {string} [store_id] - Store Id associated with the credit note.
|
|
591
|
-
* @property {string} [invoice_number] - Invoice number associated with the credit note.
|
|
592
|
-
*/
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* @typedef RedemptionDetails
|
|
596
|
-
* @property {Object} [meta] - Additional metadata related to the redemption details.
|
|
597
|
-
* @property {string} [staff_id] - ID of the staff member who processed the redemption.
|
|
598
|
-
* @property {string} [created_at] - Date and time when the redemption was processed.
|
|
599
|
-
* @property {string} [order_id] - Order Id of the order associated with the redemption.
|
|
600
|
-
* @property {string} [store_id] - Store Id of the order associated with the redemption.
|
|
601
|
-
* @property {string} [shipment_id] - Shipment Id of the order associated with
|
|
602
|
-
* the redemption.
|
|
603
|
-
* @property {string} [ordering_channel] - Ordering channel associated with the
|
|
604
|
-
* redemption.
|
|
605
|
-
* @property {number} [amount_debited] - Amount debited from the credit note
|
|
606
|
-
* during redemption.
|
|
607
|
-
* @property {string} [invoice_number] - Invoice number associated with the redemption.
|
|
608
|
-
*/
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* @typedef CreditNoteDetails
|
|
612
|
-
* @property {string} [currency] - Currency in which the credit note is issued.
|
|
613
|
-
* @property {number} [current_amount_used] - Current amount used from the credit note.
|
|
614
|
-
* @property {string} [cn_status] - Status of the credit note.
|
|
615
|
-
* @property {string} [customer_mobile_number] - Mobile number of the customer
|
|
616
|
-
* associated with the credit note.
|
|
617
|
-
* @property {string} [cn_reference_number] - Unique Credit number of the credit note.
|
|
618
|
-
* @property {CnDetails} [cn_details]
|
|
619
|
-
* @property {RedemptionDetails[]} [redemption_details] - List of redemption
|
|
620
|
-
* details associated with the credit note.
|
|
621
|
-
* @property {number} [remaining_cn_amount] - Remaining amount left in the credit note.
|
|
622
|
-
* @property {number} [available_cn_balance] - Available balance in the credit note.
|
|
623
|
-
* @property {number} [cn_amount] - Total amount of the credit note.
|
|
624
|
-
*/
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* @typedef CreditNoteDetailsResponse
|
|
628
|
-
* @property {boolean} [success] - Indicates if the retrieval of credit note
|
|
629
|
-
* details was successful.
|
|
630
|
-
* @property {CreditNoteDetails} [data]
|
|
631
|
-
*/
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* @typedef GetCustomerCreditBalance
|
|
635
|
-
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
636
|
-
* application as affiliate_id associated with the seller.
|
|
637
|
-
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
638
|
-
* @property {string} [customer_mobile_number] - Mobile number of the customer
|
|
639
|
-
* for whom the credit balance is requested.
|
|
640
|
-
*/
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* @typedef GetCustomerCreditBalanceReq
|
|
644
|
-
* @property {GetCustomerCreditBalance} [data]
|
|
645
|
-
*/
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* @typedef GetCustomerCreditBalanceResponseData
|
|
649
|
-
* @property {string} [customer_mobile_number] - Mobile number of the customer.
|
|
650
|
-
* @property {number} [total_credited_balance] - Total credited balance
|
|
651
|
-
* available for the customer.
|
|
652
|
-
*/
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* @typedef GetCustomerCreditBalanceResponse
|
|
656
|
-
* @property {boolean} [success] - Indicates if the retrieval of customer credit
|
|
657
|
-
* balance was successful.
|
|
658
|
-
* @property {GetCustomerCreditBalanceResponseData} [data]
|
|
659
|
-
*/
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* @typedef GetCnConfigReq
|
|
663
|
-
* @property {DeleteConfig} [data]
|
|
664
|
-
*/
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* @typedef GetCnConfigResponseMeta
|
|
668
|
-
* @property {string} [reason] - Reason associated with the configuration response.
|
|
669
|
-
* @property {string[]} [source_channel] - List of source channels associated
|
|
670
|
-
* with the credit note configuration.
|
|
671
|
-
*/
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* @typedef GetCnConfigResponseData
|
|
675
|
-
* @property {boolean} [is_cn_as_refund_method] - Indicates if the credit note
|
|
676
|
-
* is configured as a refund method.
|
|
677
|
-
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
678
|
-
* application as affiliate_id associated with the seller.
|
|
679
|
-
* @property {Object} [meta]
|
|
680
|
-
* @property {number} [seller_id] - Unique identifier for the seller.
|
|
681
|
-
* @property {CreditNoteConfigNotificationEvents} [notification_events]
|
|
682
|
-
* @property {number} [validity] - Validity period of the credit note
|
|
683
|
-
* configuration in days.
|
|
684
|
-
* @property {string[]} [redemption_ordering_channel] - List of ordering
|
|
685
|
-
* channels associated with credit note redemption.
|
|
686
|
-
* @property {string} [currency_type] - Type of currency used for the credit note.
|
|
687
|
-
*/
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @typedef GetCnConfigResponse
|
|
691
|
-
* @property {boolean} [success] - Indicates if the retrieval of credit note
|
|
692
|
-
* configuration was successful.
|
|
693
|
-
* @property {GetCnConfigResponseData} [data]
|
|
694
|
-
*/
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* @typedef CnGenerateReportFilters
|
|
698
|
-
* @property {string[]} [staff_id] - Array of staff IDs for filtering credit note reports.
|
|
699
|
-
* @property {string[]} [channel_of_issuance] - Array of channels through which
|
|
700
|
-
* credit notes were issued.
|
|
701
|
-
* @property {string[]} [utilisation] - Array of utilisation types for filtering
|
|
702
|
-
* credit note reports.
|
|
703
|
-
* @property {string[]} [ordering_channel] - Array of ordering channels
|
|
704
|
-
* associated with credit note reports.
|
|
705
|
-
* @property {number[]} [store_id] - Array of store IDs for filtering credit note reports.
|
|
706
|
-
* @property {string[]} [type_of_transaction] - Array of transaction types for
|
|
707
|
-
* filtering credit note reports.
|
|
708
|
-
* @property {string[]} [issuance_channel] - Array of issuance channels for
|
|
709
|
-
* filtering credit note reports.
|
|
710
|
-
*/
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* @typedef CnGenerateReport
|
|
714
|
-
* @property {number} [page] - Page number of the credit note report.
|
|
715
|
-
* @property {string} [end_date] - End date for filtering credit note data.
|
|
716
|
-
* @property {number} [page_size] - Number of items per page in the credit note report.
|
|
717
|
-
* @property {CnGenerateReportFilters} [filters]
|
|
718
|
-
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
719
|
-
* application as affiliate_id associated with the seller.
|
|
720
|
-
* @property {GenerateReportFilters} [meta]
|
|
721
|
-
* @property {string} [search] - Search query to filter credit note data by keyword.
|
|
722
|
-
* @property {string} [report_id] - Unique identifier for the credit note report.
|
|
723
|
-
* @property {string} [search_type] - Type of search criteria used for filtering
|
|
724
|
-
* credit note data.
|
|
725
|
-
* @property {string} [start_date] - Start date for filtering credit note data.
|
|
726
|
-
*/
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* @typedef GenerateReportCustomerCnReq
|
|
730
|
-
* @property {CnGenerateReport} [data]
|
|
731
|
-
*/
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* @typedef CnGenerateReportItems
|
|
735
|
-
* @property {string} [expiry_date] - Expiry date of the credit note item.
|
|
736
|
-
* @property {string} [status] - Status of the credit note item.
|
|
737
|
-
* @property {number} [total_amount] - Total amount of the credit note item.
|
|
738
|
-
* @property {string} [order_id] - Order ID of the order associated with the
|
|
739
|
-
* credit note item.
|
|
740
|
-
* @property {string} [date_issued] - Date when the credit note item was issued.
|
|
741
|
-
* @property {string} [shipment_id] - Shipment ID of the order associated with
|
|
742
|
-
* the credit note item.
|
|
743
|
-
* @property {string} [invoice_number] - Invoice number associated with the
|
|
744
|
-
* credit note item.
|
|
745
|
-
* @property {string} [credit_note_number] - Unique number of the credit note item.
|
|
746
|
-
*/
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* @typedef GenerateReportCustomerCnResponseData
|
|
750
|
-
* @property {boolean} [success] - Indicates if the credit note report
|
|
751
|
-
* generation was successful.
|
|
752
|
-
* @property {string} [message] - Additional message or information related to
|
|
753
|
-
* the credit note report.
|
|
754
|
-
* @property {CnGenerateReportItems[]} [items] - List of credit note items in the report.
|
|
755
|
-
* @property {Object} [row_header_display_order] - Display order for row headers
|
|
756
|
-
* in the report.
|
|
757
|
-
* @property {string} [end_date] - End date used in the credit note report.
|
|
758
|
-
* @property {Page} [page]
|
|
759
|
-
* @property {string[]} [headers] - Headers included in the credit note report.
|
|
760
|
-
* @property {string[]} [primary_headers] - Primary headers used in the credit
|
|
761
|
-
* note report.
|
|
762
|
-
* @property {string[]} [allowed_filters] - Allowed filters for the credit note report.
|
|
763
|
-
* @property {string} [start_date] - Start date used in the credit note report.
|
|
764
|
-
* @property {number} [item_count] - Total count of credit note items in the report.
|
|
765
|
-
*/
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* @typedef GenerateReportCustomerCnResponse
|
|
769
|
-
* @property {GenerateReportCustomerCnResponseData} [data]
|
|
770
|
-
*/
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* @typedef CnDownloadReport
|
|
774
|
-
* @property {number} [page] - Page number of the download report.
|
|
775
|
-
* @property {string} [start_date] - Start date for filtering credit note data
|
|
776
|
-
* in the report.
|
|
777
|
-
* @property {string} [end_date] - End date for filtering credit note data in the report.
|
|
778
|
-
* @property {string} [affiliate_id] - The unique identifier of sale channels or
|
|
779
|
-
* application as affiliate_id associated with the seller.
|
|
780
|
-
* @property {string} [search] - Search query to filter credit note data by keyword.
|
|
781
|
-
* @property {string} [status] - Status of the credit note data in the report.
|
|
782
|
-
* @property {string} [search_type] - Type of search criteria used for filtering
|
|
783
|
-
* credit note data.
|
|
784
|
-
* @property {number} [page_size] - Number of items per page in the download report.
|
|
785
|
-
*/
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* @typedef DownloadReportCustomerCnReq
|
|
789
|
-
* @property {CnDownloadReport} [data]
|
|
790
|
-
*/
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* @typedef DownloadReportResponseData
|
|
794
|
-
* @property {string} [report_config_id] - Unique identifier for the report configuration.
|
|
795
|
-
* @property {string} [full_name] - Full name associated with the report request.
|
|
796
|
-
* @property {string} [requested_by] - User who requested the report.
|
|
797
|
-
* @property {string} [start_date] - Start date used in the report.
|
|
798
|
-
* @property {string} [end_date] - End date used in the report.
|
|
799
|
-
* @property {Object} [request_dict] - Dictionary containing request parameters
|
|
800
|
-
* for the report.
|
|
801
|
-
* @property {string} [download_link] - Download link for accessing the generated report.
|
|
802
|
-
* @property {string} [created_at] - Date and time when the report was created.
|
|
803
|
-
* @property {Object} [meta] - Additional metadata associated with the report.
|
|
804
|
-
* @property {string} [msg] - Message related to the report status or generation.
|
|
805
|
-
* @property {string} [report_name] - Name of the generated report.
|
|
806
|
-
* @property {string} [status] - Status of the report.
|
|
807
|
-
* @property {string} [display_name] - Display name of the report.
|
|
808
|
-
* @property {Object} [filters] - Filters applied to generate the report.
|
|
809
|
-
*/
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* @typedef DownloadReportCustomerCnResponse
|
|
813
|
-
* @property {DownloadReportResponseData[]} [items] - List of download report data items.
|
|
814
|
-
* @property {number} [item_count] - Total count of items in the download report.
|
|
815
|
-
* @property {Page} [page]
|
|
816
|
-
*/
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* @typedef GetReportingFilters
|
|
820
|
-
* @property {string} [text] - Display text for the filter.
|
|
821
|
-
* @property {string} [type] - Type of the fields like seach, filter(e.g.,
|
|
822
|
-
* single, multi select).
|
|
823
|
-
* @property {Object[]} [options] - Options available for the filter.
|
|
824
|
-
* @property {string} [value] - Value to be pass in response select from options.
|
|
825
|
-
*/
|
|
826
|
-
|
|
827
|
-
/**
|
|
828
|
-
* @typedef GetReportingNestedFilters
|
|
829
|
-
* @property {string} [text] - Display text for the nested filter.
|
|
830
|
-
* @property {Object[]} [options] - Options available for the nested filter.
|
|
831
|
-
* @property {boolean} [required] - Indicates if the nested filter is required.
|
|
832
|
-
* @property {string} [placeholder_text] - Placeholder text for the nested filter.
|
|
833
|
-
* @property {string} [type] - Type of the nested filter (e.g., single, multi select).
|
|
834
|
-
* @property {string} [value] - Value to be pass in response select from options.
|
|
835
|
-
*/
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* @typedef GetReportingFiltersReasonOptions
|
|
839
|
-
* @property {string} [text] - Display text for the reason option.
|
|
840
|
-
* @property {string} [value] - Value of the reason option.
|
|
841
|
-
* @property {string} [placeholder_text] - Placeholder text for the reason option.
|
|
842
|
-
*/
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* @typedef GetReportingFiltersReason
|
|
846
|
-
* @property {string} [text] - Display text for the reason.
|
|
847
|
-
* @property {string} [type] - Type of the reason.
|
|
848
|
-
* @property {string} [value] - Value to be pass in response.
|
|
849
|
-
* @property {GetReportingFiltersReasonOptions[]} [options] - Options available
|
|
850
|
-
* for the reasons select from options.
|
|
851
|
-
*/
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* @typedef GetReportingFiltersResponse
|
|
855
|
-
* @property {GetReportingFiltersReason} [reason]
|
|
856
|
-
* @property {GetReportingFilters} [search]
|
|
857
|
-
* @property {GetReportingNestedFilters[]} [filters] - Array of nested filter objects.
|
|
858
|
-
* @property {GetReportingFilters} [status]
|
|
859
|
-
*/
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* @typedef InvoicePaymentOptionsPayloadData
|
|
863
|
-
* @property {string[]} [invoice_numbers] - List of invoice numbers for which
|
|
864
|
-
* payment options are being requested.
|
|
865
|
-
*/
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* @typedef InvoicePaymentOptionsReq
|
|
869
|
-
* @property {InvoicePaymentOptionsPayloadData} [data]
|
|
870
|
-
*/
|
|
871
|
-
|
|
872
|
-
/**
|
|
873
|
-
* @typedef InvoicePaymentOptionsResponsePayableAmounts
|
|
874
|
-
* @property {number} [amount] - Amount that is payable for the invoice.
|
|
875
|
-
* @property {string} [amount_key] - Key associated with the payable amount for
|
|
876
|
-
* identification.
|
|
877
|
-
* @property {string} [header] - Header describing the payable amount.
|
|
878
|
-
*/
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* @typedef InvoicePaymentOptionsResponseDeductedAmounts
|
|
882
|
-
* @property {number} [amount] - Amount deducted from the invoice.
|
|
883
|
-
* @property {string} [header] - Header describing the deducted amount.
|
|
884
|
-
* @property {string} [amount_key] - Key associated with the deducted amount for
|
|
885
|
-
* identification.
|
|
886
|
-
* @property {boolean} [is_payable] - Indicates whether the deducted amount is payable.
|
|
887
|
-
* @property {string} [symbol] - Currency symbol associated with the deducted amount.
|
|
888
|
-
*/
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* @typedef InvoicePaymentOptionsResponseData
|
|
892
|
-
* @property {string} [invoice_number] - Invoice number for which payment
|
|
893
|
-
* options are provided.
|
|
894
|
-
* @property {string} [invoice_type] - Type of the invoice (e.g., 'Seller Fynd',
|
|
895
|
-
* 'Platform Subscription').
|
|
896
|
-
* @property {InvoicePaymentOptionsResponsePayableAmounts[]} [display_amounts]
|
|
897
|
-
* - List of amounts that are payable for the invoice.
|
|
898
|
-
*
|
|
899
|
-
* @property {Object} [total_amount] - Total amount for the invoice.
|
|
900
|
-
* @property {Object} [deducted_amounts] - Amounts deducted from the total,
|
|
901
|
-
* including any associated details.
|
|
902
|
-
* @property {InvoicePaymentOptionsResponsePayableAmounts[]} [payable_amounts]
|
|
903
|
-
* - Amounts that are payable for the invoice.
|
|
904
|
-
*
|
|
905
|
-
* @property {Currency} [currency]
|
|
906
|
-
*/
|
|
907
|
-
|
|
908
|
-
/**
|
|
909
|
-
* @typedef InvoicePaymentOptionsResponse
|
|
910
|
-
* @property {string} [reason] - Reason for the response or any errors encountered.
|
|
911
|
-
* @property {InvoicePaymentOptionsResponseData[]} [data] - List of data objects
|
|
912
|
-
* containing details about invoice payment options.
|
|
913
|
-
* @property {number} [total_payable_amount] - Total amount payable for the invoices.
|
|
914
|
-
* @property {number} [invoice_count] - Number of invoices included in the response.
|
|
915
|
-
* @property {boolean} [success] - Indicates whether the request to retrieve
|
|
916
|
-
* invoice payment options was successful.
|
|
917
|
-
*/
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* @typedef PaymentDetail
|
|
921
|
-
* @property {string} [display_name] - Name or label displayed for the payment detail.
|
|
922
|
-
* @property {string} [value] - Value associated with the payment detail (e.g.,
|
|
923
|
-
* amount, transaction ID).
|
|
924
|
-
*/
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* @typedef PaidInvoicePaymentDetail
|
|
928
|
-
* @property {PaymentDetail[]} [payment_details] - List of payment details for
|
|
929
|
-
* the invoice.
|
|
930
|
-
* @property {string} [date_of_payment] - Date when the payment was made.
|
|
931
|
-
* @property {number} [amount] - Amount paid towards the invoice.
|
|
932
|
-
*/
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* @typedef InvoicePaymentDetailsResponseData
|
|
936
|
-
* @property {PaidInvoicePaymentDetail[]} [paid_invoice_payment_details] - List
|
|
937
|
-
* of details for paid invoices.
|
|
938
|
-
* @property {Object[]} [failed_attempts_details] - Details of any failed
|
|
939
|
-
* payment attempts for the invoices.
|
|
940
|
-
*/
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* @typedef InvoicePaymentDetailsResponse
|
|
944
|
-
* @property {string} [reason] - Reason for the response or any errors encountered.
|
|
945
|
-
* @property {InvoicePaymentDetailsResponseData} [data]
|
|
946
|
-
* @property {boolean} [success] - Indicates whether the request to retrieve
|
|
947
|
-
* invoice payment details was successful.
|
|
948
|
-
* @property {boolean} [payment_details_visible] - Indicates whether payment
|
|
949
|
-
* details are visible or hidden in the response.
|
|
950
|
-
*/
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* @typedef InvoiceActivityLogsResponseData
|
|
954
|
-
* @property {string} [performed_by] - Identifier of the user or system that
|
|
955
|
-
* performed the activity.
|
|
956
|
-
* @property {string} [status] - Status of the activity (e.g., 'Completed', 'Pending').
|
|
957
|
-
* @property {string} [reason] - Reason for the activity status or any related notes.
|
|
958
|
-
* @property {boolean} [is_resolved] - Indicates whether the activity issue is resolved.
|
|
959
|
-
* @property {number} [retry_attempts] - Number of retry attempts made for the activity.
|
|
960
|
-
* @property {number} [max_retry_attempts] - Maximum number of retry attempts
|
|
961
|
-
* allowed for the activity.
|
|
962
|
-
*/
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* @typedef InvoiceActivityLogsResponse
|
|
966
|
-
* @property {InvoiceActivityLogsResponseData[]} [data] - List of activity logs
|
|
967
|
-
* related to invoices.
|
|
968
|
-
*/
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* @typedef InvoiceActivityLogError
|
|
972
|
-
* @property {string} [reason] - Reason for the error or issue encountered with
|
|
973
|
-
* the invoice activity logs.
|
|
974
|
-
*/
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* @typedef UnlockCreditNoteRequestData
|
|
978
|
-
* @property {string} [seller_id] - The unique identifier for the seller.
|
|
979
|
-
* @property {string[]} [locked_credit_notes] - A list of credit notes that are locked.
|
|
980
|
-
* @property {string} [unlock_reason] - The reason for unlocking the credit notes.
|
|
981
|
-
* @property {string} [description] - Additional details or comments about the
|
|
982
|
-
* unlock request.
|
|
983
|
-
*/
|
|
984
|
-
|
|
985
|
-
/**
|
|
986
|
-
* @typedef UnlockCreditNoteReq
|
|
987
|
-
* @property {UnlockCreditNoteRequestData} [data]
|
|
988
|
-
*/
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* @typedef UnlockCreditNoteResponseData
|
|
992
|
-
* @property {boolean} [is_cn_unlocked] - Indicates whether the credit note is unlocked.
|
|
993
|
-
* @property {string} [status] - The current status of the each credit notes.
|
|
994
|
-
*/
|
|
995
|
-
|
|
996
|
-
/**
|
|
997
|
-
* @typedef UnlockCreditNoteResponse
|
|
998
|
-
* @property {boolean} [success] - Indicates whether the credit note unlock
|
|
999
|
-
* request was successful.
|
|
1000
|
-
* @property {UnlockCreditNoteResponseData} [data]
|
|
1001
|
-
*/
|
|
1002
|
-
|
|
1003
|
-
class FinancePlatformModel {
|
|
1004
|
-
/** @returns {OrederFreezeResponse} */
|
|
1005
|
-
static OrederFreezeResponse() {
|
|
1006
|
-
return Joi.object({
|
|
1007
|
-
success: Joi.boolean(),
|
|
1008
|
-
oms_freeze: Joi.boolean(),
|
|
1009
|
-
source: Joi.string().allow("").allow(null),
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/** @returns {GenerateReportMeta} */
|
|
1014
|
-
static GenerateReportMeta() {
|
|
1015
|
-
return Joi.object({
|
|
1016
|
-
brand: Joi.string().allow(""),
|
|
1017
|
-
company: Joi.string().allow(""),
|
|
1018
|
-
channel: Joi.string().allow(""),
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
/** @returns {GenerateReportFilters} */
|
|
1023
|
-
static GenerateReportFilters() {
|
|
1024
|
-
return Joi.object({
|
|
1025
|
-
brand: Joi.array().items(Joi.string().allow("")),
|
|
1026
|
-
company: Joi.array().items(Joi.string().allow("")),
|
|
1027
|
-
channel: Joi.array().items(Joi.string().allow("")),
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
/** @returns {GenerateReportPlatform} */
|
|
1032
|
-
static GenerateReportPlatform() {
|
|
1033
|
-
return Joi.object({
|
|
1034
|
-
start_date: Joi.string().allow(""),
|
|
1035
|
-
end_date: Joi.string().allow(""),
|
|
1036
|
-
meta: FinancePlatformModel.GenerateReportMeta(),
|
|
1037
|
-
report_id: Joi.string().allow(""),
|
|
1038
|
-
filters: FinancePlatformModel.GenerateReportFilters(),
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
/** @returns {GenerateReportReq} */
|
|
1043
|
-
static GenerateReportReq() {
|
|
1044
|
-
return Joi.object({
|
|
1045
|
-
data: FinancePlatformModel.GenerateReportPlatform(),
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
/** @returns {Page} */
|
|
1050
|
-
static Page() {
|
|
1051
|
-
return Joi.object({
|
|
1052
|
-
item_total: Joi.number(),
|
|
1053
|
-
next_id: Joi.string().allow(""),
|
|
1054
|
-
has_previous: Joi.boolean(),
|
|
1055
|
-
has_next: Joi.boolean(),
|
|
1056
|
-
current: Joi.number(),
|
|
1057
|
-
type: Joi.string().allow("").required(),
|
|
1058
|
-
size: Joi.number(),
|
|
1059
|
-
total: Joi.number(),
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
/** @returns {Currency} */
|
|
1064
|
-
static Currency() {
|
|
1065
|
-
return Joi.object({
|
|
1066
|
-
code: Joi.string().allow(""),
|
|
1067
|
-
symbol: Joi.string().allow(""),
|
|
1068
|
-
name: Joi.string().allow(""),
|
|
1069
|
-
}).allow(null);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
/** @returns {GenerateReportJson} */
|
|
1073
|
-
static GenerateReportJson() {
|
|
1074
|
-
return Joi.object({
|
|
1075
|
-
data: Joi.any(),
|
|
1076
|
-
item_count: Joi.number(),
|
|
1077
|
-
page: FinancePlatformModel.Page(),
|
|
1078
|
-
end_date: Joi.string().allow(""),
|
|
1079
|
-
start_date: Joi.string().allow(""),
|
|
1080
|
-
items: Joi.array().items(Joi.array().items(Joi.string().allow(""))),
|
|
1081
|
-
headers: Joi.array().items(Joi.string().allow("")),
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
/** @returns {Error} */
|
|
1086
|
-
static Error() {
|
|
1087
|
-
return Joi.object({
|
|
1088
|
-
status: Joi.number(),
|
|
1089
|
-
reason: Joi.string().allow(""),
|
|
1090
|
-
success: Joi.boolean(),
|
|
1091
|
-
message: Joi.string().allow(""),
|
|
1092
|
-
code: Joi.string().allow("").allow(null),
|
|
1093
|
-
exception: Joi.string().allow(""),
|
|
1094
|
-
info: Joi.string().allow("").allow(null),
|
|
1095
|
-
request_id: Joi.string().allow("").allow(null),
|
|
1096
|
-
stack_trace: Joi.string().allow("").allow(null),
|
|
1097
|
-
meta: FinancePlatformModel.ErrorMeta(),
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
/** @returns {ErrorMeta} */
|
|
1102
|
-
static ErrorMeta() {
|
|
1103
|
-
return Joi.object({
|
|
1104
|
-
columns_errors: Joi.array().items(FinancePlatformModel.ErrorMetaItems()),
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
/** @returns {ErrorMetaItems} */
|
|
1109
|
-
static ErrorMetaItems() {
|
|
1110
|
-
return Joi.object({
|
|
1111
|
-
code: Joi.number().allow(null),
|
|
1112
|
-
message: Joi.string().allow("").allow(null),
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
/** @returns {DownloadReport} */
|
|
1117
|
-
static DownloadReport() {
|
|
1118
|
-
return Joi.object({
|
|
1119
|
-
data: FinancePlatformModel.DownloadReportData(),
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
/** @returns {DownloadReportData} */
|
|
1124
|
-
static DownloadReportData() {
|
|
1125
|
-
return Joi.object({
|
|
1126
|
-
page: Joi.number(),
|
|
1127
|
-
page_size: Joi.number(),
|
|
1128
|
-
start_date: Joi.string().allow(""),
|
|
1129
|
-
end_date: Joi.string().allow(""),
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
/** @returns {DownloadReportItems} */
|
|
1134
|
-
static DownloadReportItems() {
|
|
1135
|
-
return Joi.object({
|
|
1136
|
-
start_date: Joi.string().allow(""),
|
|
1137
|
-
end_date: Joi.string().allow(""),
|
|
1138
|
-
meta: FinancePlatformModel.GenerateReportMeta(),
|
|
1139
|
-
report_id: Joi.string().allow(""),
|
|
1140
|
-
filters: FinancePlatformModel.GenerateReportFilters(),
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
/** @returns {DownloadReportList} */
|
|
1145
|
-
static DownloadReportList() {
|
|
1146
|
-
return Joi.object({
|
|
1147
|
-
items: Joi.array().items(FinancePlatformModel.DownloadReportItems()),
|
|
1148
|
-
page: FinancePlatformModel.Page(),
|
|
1149
|
-
item_count: Joi.number(),
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
/** @returns {GetEngineFilters} */
|
|
1154
|
-
static GetEngineFilters() {
|
|
1155
|
-
return Joi.object({
|
|
1156
|
-
config_field: Joi.string().allow(""),
|
|
1157
|
-
status: Joi.string().allow(""),
|
|
1158
|
-
is_active: Joi.boolean(),
|
|
1159
|
-
seller_id: Joi.string().allow(""),
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
/** @returns {GetEngineData} */
|
|
1164
|
-
static GetEngineData() {
|
|
1165
|
-
return Joi.object({
|
|
1166
|
-
status: Joi.string().allow(""),
|
|
1167
|
-
filters: FinancePlatformModel.GetEngineFilters(),
|
|
1168
|
-
project: Joi.array().items(Joi.string().allow("")),
|
|
1169
|
-
table_name: Joi.string().allow(""),
|
|
1170
|
-
search: Joi.any(),
|
|
1171
|
-
page: Joi.number(),
|
|
1172
|
-
page_size: Joi.number(),
|
|
1173
|
-
order_by: Joi.string().allow(""),
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
/** @returns {GetEngineReq} */
|
|
1178
|
-
static GetEngineReq() {
|
|
1179
|
-
return Joi.object({
|
|
1180
|
-
data: FinancePlatformModel.GetEngineData(),
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
/** @returns {GetEngineResponse} */
|
|
1185
|
-
static GetEngineResponse() {
|
|
1186
|
-
return Joi.object({
|
|
1187
|
-
success: Joi.boolean(),
|
|
1188
|
-
items: Joi.array().items(Joi.any()),
|
|
1189
|
-
page: FinancePlatformModel.Page(),
|
|
1190
|
-
item_count: Joi.number(),
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
/** @returns {GetReason} */
|
|
1195
|
-
static GetReason() {
|
|
1196
|
-
return Joi.object({
|
|
1197
|
-
reason_type: Joi.string().allow(""),
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
/** @returns {GetReasonReq} */
|
|
1202
|
-
static GetReasonReq() {
|
|
1203
|
-
return Joi.object({
|
|
1204
|
-
data: FinancePlatformModel.GetReason(),
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
/** @returns {ReasonItem} */
|
|
1209
|
-
static ReasonItem() {
|
|
1210
|
-
return Joi.object({
|
|
1211
|
-
id: Joi.string().allow(""),
|
|
1212
|
-
name: Joi.string().allow(""),
|
|
1213
|
-
display_name: Joi.string().allow(""),
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
/** @returns {GetReasonResponse} */
|
|
1218
|
-
static GetReasonResponse() {
|
|
1219
|
-
return Joi.object({
|
|
1220
|
-
success: Joi.boolean(),
|
|
1221
|
-
item_list: Joi.array().items(FinancePlatformModel.ReasonItem()),
|
|
1222
|
-
item_count: Joi.number(),
|
|
1223
|
-
page: FinancePlatformModel.Page(),
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
/** @returns {GetReportListData} */
|
|
1228
|
-
static GetReportListData() {
|
|
1229
|
-
return Joi.object({
|
|
1230
|
-
role_name: Joi.string().allow(""),
|
|
1231
|
-
listing_enabled: Joi.boolean(),
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
/** @returns {GetReportListReq} */
|
|
1236
|
-
static GetReportListReq() {
|
|
1237
|
-
return Joi.object({
|
|
1238
|
-
data: FinancePlatformModel.GetReportListData(),
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
/** @returns {GetReportListResponse} */
|
|
1243
|
-
static GetReportListResponse() {
|
|
1244
|
-
return Joi.object({
|
|
1245
|
-
success: Joi.boolean(),
|
|
1246
|
-
items: Joi.array().items(FinancePlatformModel.ReportItem()),
|
|
1247
|
-
page: FinancePlatformModel.Page(),
|
|
1248
|
-
total_count: Joi.number(),
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
/** @returns {ReportItem} */
|
|
1253
|
-
static ReportItem() {
|
|
1254
|
-
return Joi.object({
|
|
1255
|
-
id: Joi.string().allow(""),
|
|
1256
|
-
name: Joi.string().allow(""),
|
|
1257
|
-
description: Joi.string().allow(""),
|
|
1258
|
-
allowed_filters: Joi.array().items(Joi.string().allow("")),
|
|
1259
|
-
config_meta: Joi.any(),
|
|
1260
|
-
report_type: Joi.string().allow(""),
|
|
1261
|
-
display_date: Joi.string().allow("").allow(null),
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
/** @returns {GetAffiliate} */
|
|
1266
|
-
static GetAffiliate() {
|
|
1267
|
-
return Joi.object({
|
|
1268
|
-
company_id: Joi.number(),
|
|
1269
|
-
});
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
/** @returns {GetAffiliateResponse} */
|
|
1273
|
-
static GetAffiliateResponse() {
|
|
1274
|
-
return Joi.object({
|
|
1275
|
-
reason: Joi.string().allow(""),
|
|
1276
|
-
success: Joi.boolean(),
|
|
1277
|
-
docs: Joi.array().items(Joi.any()),
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
/** @returns {DownloadCreditDebitNote} */
|
|
1282
|
-
static DownloadCreditDebitNote() {
|
|
1283
|
-
return Joi.object({
|
|
1284
|
-
note_id: Joi.array().items(Joi.string().allow("")),
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
/** @returns {DownloadCreditDebitNoteReq} */
|
|
1289
|
-
static DownloadCreditDebitNoteReq() {
|
|
1290
|
-
return Joi.object({
|
|
1291
|
-
data: FinancePlatformModel.DownloadCreditDebitNote(),
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
/** @returns {DownloadCreditDebitNoteResponseData} */
|
|
1296
|
-
static DownloadCreditDebitNoteResponseData() {
|
|
1297
|
-
return Joi.object({
|
|
1298
|
-
id: Joi.string().allow(""),
|
|
1299
|
-
pdf_s3_url: Joi.string().allow(""),
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
/** @returns {DownloadCreditDebitNoteResponse} */
|
|
1304
|
-
static DownloadCreditDebitNoteResponse() {
|
|
1305
|
-
return Joi.object({
|
|
1306
|
-
success: Joi.boolean(),
|
|
1307
|
-
data: Joi.array().items(
|
|
1308
|
-
FinancePlatformModel.DownloadCreditDebitNoteResponseData()
|
|
1309
|
-
),
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
/** @returns {InvoiceBillingItem} */
|
|
1314
|
-
static InvoiceBillingItem() {
|
|
1315
|
-
return Joi.object({
|
|
1316
|
-
invoice_number: Joi.string().allow(""),
|
|
1317
|
-
amount: Joi.number(),
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
/** @returns {PaymentProcessPayload} */
|
|
1322
|
-
static PaymentProcessPayload() {
|
|
1323
|
-
return Joi.object({
|
|
1324
|
-
platform: Joi.string().allow(""),
|
|
1325
|
-
amount: Joi.number(),
|
|
1326
|
-
transaction_type: Joi.string().allow(""),
|
|
1327
|
-
source_reference: Joi.string().allow(""),
|
|
1328
|
-
total_amount: Joi.number(),
|
|
1329
|
-
meta: Joi.any(),
|
|
1330
|
-
currency: Joi.string().allow(""),
|
|
1331
|
-
seller_id: Joi.string().allow(""),
|
|
1332
|
-
mode_of_payment: Joi.string().allow(""),
|
|
1333
|
-
invoice_billing_items: Joi.array().items(
|
|
1334
|
-
FinancePlatformModel.InvoiceBillingItem()
|
|
1335
|
-
),
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
/** @returns {PaymentProcessReq} */
|
|
1340
|
-
static PaymentProcessReq() {
|
|
1341
|
-
return Joi.object({
|
|
1342
|
-
data: FinancePlatformModel.PaymentProcessPayload(),
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
/** @returns {PaymentProcessResponse} */
|
|
1347
|
-
static PaymentProcessResponse() {
|
|
1348
|
-
return Joi.object({
|
|
1349
|
-
code: Joi.number(),
|
|
1350
|
-
message: Joi.string().allow(""),
|
|
1351
|
-
meta: Joi.any(),
|
|
1352
|
-
transaction_id: Joi.string().allow(""),
|
|
1353
|
-
redirect_url: Joi.string().allow(""),
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
/** @returns {CreditlineDataPlatformPayload} */
|
|
1358
|
-
static CreditlineDataPlatformPayload() {
|
|
1359
|
-
return Joi.object({
|
|
1360
|
-
page: Joi.number(),
|
|
1361
|
-
seller_id: Joi.string().allow(""),
|
|
1362
|
-
end_date: Joi.string().allow(""),
|
|
1363
|
-
start_date: Joi.string().allow(""),
|
|
1364
|
-
page_size: Joi.number(),
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
/** @returns {CreditlineDataPlatformReq} */
|
|
1369
|
-
static CreditlineDataPlatformReq() {
|
|
1370
|
-
return Joi.object({
|
|
1371
|
-
data: FinancePlatformModel.CreditlineDataPlatformPayload(),
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
/** @returns {CreditlineDataPlatformResponse} */
|
|
1376
|
-
static CreditlineDataPlatformResponse() {
|
|
1377
|
-
return Joi.object({
|
|
1378
|
-
items: Joi.array().items(Joi.any()),
|
|
1379
|
-
code: Joi.number(),
|
|
1380
|
-
show_mr: Joi.boolean(),
|
|
1381
|
-
page: FinancePlatformModel.Page(),
|
|
1382
|
-
message: Joi.string().allow(""),
|
|
1383
|
-
headers: Joi.array().items(Joi.string().allow("")),
|
|
1384
|
-
item_count: Joi.number(),
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
/** @returns {IsCreditlinePayload} */
|
|
1389
|
-
static IsCreditlinePayload() {
|
|
1390
|
-
return Joi.object({
|
|
1391
|
-
seller_id: Joi.string().allow(""),
|
|
1392
|
-
});
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
/** @returns {IsCreditlinePlatformReq} */
|
|
1396
|
-
static IsCreditlinePlatformReq() {
|
|
1397
|
-
return Joi.object({
|
|
1398
|
-
data: FinancePlatformModel.IsCreditlinePayload(),
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
/** @returns {IsCreditlinePlatformResponse} */
|
|
1403
|
-
static IsCreditlinePlatformResponse() {
|
|
1404
|
-
return Joi.object({
|
|
1405
|
-
is_creditline_opted: Joi.boolean(),
|
|
1406
|
-
code: Joi.number(),
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
/** @returns {InvoiceTypePayloadData} */
|
|
1411
|
-
static InvoiceTypePayloadData() {
|
|
1412
|
-
return Joi.object({
|
|
1413
|
-
is_active: Joi.boolean(),
|
|
1414
|
-
});
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
/** @returns {InvoiceTypeReq} */
|
|
1418
|
-
static InvoiceTypeReq() {
|
|
1419
|
-
return Joi.object({
|
|
1420
|
-
data: FinancePlatformModel.InvoiceTypePayloadData(),
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
/** @returns {InvoiceTypeResponseItems} */
|
|
1425
|
-
static InvoiceTypeResponseItems() {
|
|
1426
|
-
return Joi.object({
|
|
1427
|
-
text: Joi.string().allow(""),
|
|
1428
|
-
value: Joi.string().allow(""),
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
/** @returns {InvoiceTypeResponse} */
|
|
1433
|
-
static InvoiceTypeResponse() {
|
|
1434
|
-
return Joi.object({
|
|
1435
|
-
success: Joi.boolean(),
|
|
1436
|
-
invoice_type_list: Joi.array().items(
|
|
1437
|
-
FinancePlatformModel.InvoiceTypeResponseItems()
|
|
1438
|
-
),
|
|
1439
|
-
payment_status_list: Joi.array().items(
|
|
1440
|
-
FinancePlatformModel.InvoiceTypeResponseItems()
|
|
1441
|
-
),
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
/** @returns {InoviceListingPayloadDataFilters} */
|
|
1446
|
-
static InoviceListingPayloadDataFilters() {
|
|
1447
|
-
return Joi.object({
|
|
1448
|
-
payment_status: Joi.array().items(Joi.string().allow("")),
|
|
1449
|
-
invoice_type: Joi.array().items(Joi.string().allow("")),
|
|
1450
|
-
company_id: Joi.array().items(Joi.string().allow("")),
|
|
1451
|
-
});
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
/** @returns {InvoiceListingPayloadData} */
|
|
1455
|
-
static InvoiceListingPayloadData() {
|
|
1456
|
-
return Joi.object({
|
|
1457
|
-
page_size: Joi.number(),
|
|
1458
|
-
page: Joi.number(),
|
|
1459
|
-
start_date: Joi.string().allow(""),
|
|
1460
|
-
end_date: Joi.string().allow(""),
|
|
1461
|
-
search: Joi.string().allow(""),
|
|
1462
|
-
filters: FinancePlatformModel.InoviceListingPayloadDataFilters(),
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
/** @returns {InvoiceListingReq} */
|
|
1467
|
-
static InvoiceListingReq() {
|
|
1468
|
-
return Joi.object({
|
|
1469
|
-
data: FinancePlatformModel.InvoiceListingPayloadData(),
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
/** @returns {UnpaidInvoiceDataItems} */
|
|
1474
|
-
static UnpaidInvoiceDataItems() {
|
|
1475
|
-
return Joi.object({
|
|
1476
|
-
total_unpaid_invoice_count: Joi.number(),
|
|
1477
|
-
currency: Joi.string().allow(""),
|
|
1478
|
-
total_unpaid_amount: Joi.number(),
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
/** @returns {InvoiceListingResponseItems} */
|
|
1483
|
-
static InvoiceListingResponseItems() {
|
|
1484
|
-
return Joi.object({
|
|
1485
|
-
amount: Joi.number(),
|
|
1486
|
-
company: Joi.string().allow(""),
|
|
1487
|
-
status: Joi.string().allow(""),
|
|
1488
|
-
due_date: Joi.string().allow(""),
|
|
1489
|
-
invoice_date: Joi.string().allow(""),
|
|
1490
|
-
invoice_type: Joi.string().allow(""),
|
|
1491
|
-
period: Joi.string().allow(""),
|
|
1492
|
-
invoice_number: Joi.string().allow(""),
|
|
1493
|
-
is_downloadable: Joi.boolean(),
|
|
1494
|
-
invoice_id: Joi.string().allow(""),
|
|
1495
|
-
currency: FinancePlatformModel.Currency(),
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
/** @returns {InvoiceListingResponse} */
|
|
1500
|
-
static InvoiceListingResponse() {
|
|
1501
|
-
return Joi.object({
|
|
1502
|
-
success: Joi.boolean(),
|
|
1503
|
-
headers: Joi.array().items(Joi.string().allow("")),
|
|
1504
|
-
unpaid_invoice_data: FinancePlatformModel.UnpaidInvoiceDataItems(),
|
|
1505
|
-
items: Joi.array().items(
|
|
1506
|
-
FinancePlatformModel.InvoiceListingResponseItems()
|
|
1507
|
-
),
|
|
1508
|
-
page: FinancePlatformModel.Page(),
|
|
1509
|
-
item_count: Joi.number(),
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
/** @returns {InvoicePdfPayloadData} */
|
|
1514
|
-
static InvoicePdfPayloadData() {
|
|
1515
|
-
return Joi.object({
|
|
1516
|
-
invoice_number: Joi.array().items(Joi.string().allow("")),
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
/** @returns {InvoicePdfReq} */
|
|
1521
|
-
static InvoicePdfReq() {
|
|
1522
|
-
return Joi.object({
|
|
1523
|
-
data: FinancePlatformModel.InvoicePdfPayloadData(),
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
/** @returns {InvoicePdfResponse} */
|
|
1528
|
-
static InvoicePdfResponse() {
|
|
1529
|
-
return Joi.object({
|
|
1530
|
-
success: Joi.boolean(),
|
|
1531
|
-
data: Joi.array().items(Joi.string().allow("")),
|
|
1532
|
-
error: Joi.array().items(Joi.string().allow("")),
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
/** @returns {IsCnRefundMethodData} */
|
|
1537
|
-
static IsCnRefundMethodData() {
|
|
1538
|
-
return Joi.object({
|
|
1539
|
-
affiliate_id: Joi.string().allow(""),
|
|
1540
|
-
toggle_edit_required: Joi.boolean(),
|
|
1541
|
-
seller_id: Joi.number(),
|
|
1542
|
-
});
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
/** @returns {IsCnRefundMethodReq} */
|
|
1546
|
-
static IsCnRefundMethodReq() {
|
|
1547
|
-
return Joi.object({
|
|
1548
|
-
data: FinancePlatformModel.IsCnRefundMethodData(),
|
|
1549
|
-
});
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
/** @returns {IsCnRefundMethodResponseData} */
|
|
1553
|
-
static IsCnRefundMethodResponseData() {
|
|
1554
|
-
return Joi.object({
|
|
1555
|
-
is_first_time_user: Joi.boolean(),
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
/** @returns {IsCnRefundMethodResponse} */
|
|
1560
|
-
static IsCnRefundMethodResponse() {
|
|
1561
|
-
return Joi.object({
|
|
1562
|
-
success: Joi.boolean(),
|
|
1563
|
-
data: FinancePlatformModel.IsCnRefundMethodResponseData(),
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
/** @returns {CreditNoteConfigNotificationEvents} */
|
|
1568
|
-
static CreditNoteConfigNotificationEvents() {
|
|
1569
|
-
return Joi.object({
|
|
1570
|
-
expiration_reminder_to_customer: Joi.number(),
|
|
1571
|
-
});
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
/** @returns {CreateSellerCreditNoteConfig} */
|
|
1575
|
-
static CreateSellerCreditNoteConfig() {
|
|
1576
|
-
return Joi.object({
|
|
1577
|
-
is_cn_as_refund_method: Joi.boolean(),
|
|
1578
|
-
affiliate_id: Joi.string().allow(""),
|
|
1579
|
-
source_channel: Joi.array().items(Joi.string().allow("")),
|
|
1580
|
-
seller_id: Joi.number(),
|
|
1581
|
-
notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
|
|
1582
|
-
sales_channel_name: Joi.string().allow(""),
|
|
1583
|
-
ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
1584
|
-
validity: Joi.number(),
|
|
1585
|
-
currency_type: Joi.string().allow(""),
|
|
1586
|
-
slug_values: Joi.array().items(Joi.string().allow("")),
|
|
1587
|
-
});
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
/** @returns {CreateSellerCreditNoteConfigReq} */
|
|
1591
|
-
static CreateSellerCreditNoteConfigReq() {
|
|
1592
|
-
return Joi.object({
|
|
1593
|
-
data: FinancePlatformModel.CreateSellerCreditNoteConfig(),
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
/** @returns {CreateSellerCreditNoteConfigResponse} */
|
|
1598
|
-
static CreateSellerCreditNoteConfigResponse() {
|
|
1599
|
-
return Joi.object({
|
|
1600
|
-
success: Joi.boolean(),
|
|
1601
|
-
message: Joi.string().allow(""),
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
/** @returns {DeleteConfig} */
|
|
1606
|
-
static DeleteConfig() {
|
|
1607
|
-
return Joi.object({
|
|
1608
|
-
affiliate_id: Joi.string().allow(""),
|
|
1609
|
-
slug_values: Joi.array().items(Joi.string().allow("")),
|
|
1610
|
-
seller_id: Joi.number(),
|
|
1611
|
-
});
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
/** @returns {DeleteConfigReq} */
|
|
1615
|
-
static DeleteConfigReq() {
|
|
1616
|
-
return Joi.object({
|
|
1617
|
-
data: FinancePlatformModel.DeleteConfig(),
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
/** @returns {DeleteConfigResponse} */
|
|
1622
|
-
static DeleteConfigResponse() {
|
|
1623
|
-
return Joi.object({
|
|
1624
|
-
success: Joi.boolean(),
|
|
1625
|
-
message: Joi.string().allow(""),
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
/** @returns {ChannelDisplayNameItems} */
|
|
1630
|
-
static ChannelDisplayNameItems() {
|
|
1631
|
-
return Joi.object({
|
|
1632
|
-
key: Joi.string().allow(""),
|
|
1633
|
-
value: Joi.string().allow(""),
|
|
1634
|
-
});
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
/** @returns {ChannelDisplayNameResponse} */
|
|
1638
|
-
static ChannelDisplayNameResponse() {
|
|
1639
|
-
return Joi.object({
|
|
1640
|
-
success: Joi.boolean(),
|
|
1641
|
-
items: Joi.array().items(FinancePlatformModel.ChannelDisplayNameItems()),
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
/** @returns {CnReferenceNumber} */
|
|
1646
|
-
static CnReferenceNumber() {
|
|
1647
|
-
return Joi.object({
|
|
1648
|
-
cn_reference_number: Joi.string().allow(""),
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
/** @returns {GetPdfUrlViewReq} */
|
|
1653
|
-
static GetPdfUrlViewReq() {
|
|
1654
|
-
return Joi.object({
|
|
1655
|
-
data: FinancePlatformModel.CnReferenceNumber(),
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
/** @returns {GetPdfUrlViewResponseData} */
|
|
1660
|
-
static GetPdfUrlViewResponseData() {
|
|
1661
|
-
return Joi.object({
|
|
1662
|
-
s3_pdf_link: Joi.string().allow(""),
|
|
1663
|
-
cn_reference_number: Joi.string().allow(""),
|
|
1664
|
-
});
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
/** @returns {GetPdfUrlViewResponse} */
|
|
1668
|
-
static GetPdfUrlViewResponse() {
|
|
1669
|
-
return Joi.object({
|
|
1670
|
-
success: Joi.boolean(),
|
|
1671
|
-
data: FinancePlatformModel.GetPdfUrlViewResponseData(),
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
/** @returns {CreditNoteDetailsReq} */
|
|
1676
|
-
static CreditNoteDetailsReq() {
|
|
1677
|
-
return Joi.object({
|
|
1678
|
-
data: FinancePlatformModel.CnReferenceNumber(),
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
/** @returns {CnDetails} */
|
|
1683
|
-
static CnDetails() {
|
|
1684
|
-
return Joi.object({
|
|
1685
|
-
staff_id: Joi.string().allow(""),
|
|
1686
|
-
expiry_date: Joi.string().allow(""),
|
|
1687
|
-
channel_of_issuance: Joi.string().allow(""),
|
|
1688
|
-
order_id: Joi.string().allow(""),
|
|
1689
|
-
date_issued: Joi.string().allow(""),
|
|
1690
|
-
ordering_channel: Joi.string().allow(""),
|
|
1691
|
-
shipment_id: Joi.string().allow(""),
|
|
1692
|
-
store_id: Joi.string().allow(""),
|
|
1693
|
-
invoice_number: Joi.string().allow(""),
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
/** @returns {RedemptionDetails} */
|
|
1698
|
-
static RedemptionDetails() {
|
|
1699
|
-
return Joi.object({
|
|
1700
|
-
meta: Joi.any(),
|
|
1701
|
-
staff_id: Joi.string().allow(""),
|
|
1702
|
-
created_at: Joi.string().allow(""),
|
|
1703
|
-
order_id: Joi.string().allow(""),
|
|
1704
|
-
store_id: Joi.string().allow(""),
|
|
1705
|
-
shipment_id: Joi.string().allow(""),
|
|
1706
|
-
ordering_channel: Joi.string().allow(""),
|
|
1707
|
-
amount_debited: Joi.number(),
|
|
1708
|
-
invoice_number: Joi.string().allow(""),
|
|
1709
|
-
});
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
/** @returns {CreditNoteDetails} */
|
|
1713
|
-
static CreditNoteDetails() {
|
|
1714
|
-
return Joi.object({
|
|
1715
|
-
currency: Joi.string().allow("").allow(null),
|
|
1716
|
-
current_amount_used: Joi.number(),
|
|
1717
|
-
cn_status: Joi.string().allow(""),
|
|
1718
|
-
customer_mobile_number: Joi.string().allow(""),
|
|
1719
|
-
cn_reference_number: Joi.string().allow(""),
|
|
1720
|
-
cn_details: FinancePlatformModel.CnDetails(),
|
|
1721
|
-
redemption_details: Joi.array().items(
|
|
1722
|
-
FinancePlatformModel.RedemptionDetails()
|
|
1723
|
-
),
|
|
1724
|
-
remaining_cn_amount: Joi.number(),
|
|
1725
|
-
available_cn_balance: Joi.number(),
|
|
1726
|
-
cn_amount: Joi.number(),
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
/** @returns {CreditNoteDetailsResponse} */
|
|
1731
|
-
static CreditNoteDetailsResponse() {
|
|
1732
|
-
return Joi.object({
|
|
1733
|
-
success: Joi.boolean(),
|
|
1734
|
-
data: FinancePlatformModel.CreditNoteDetails(),
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
/** @returns {GetCustomerCreditBalance} */
|
|
1739
|
-
static GetCustomerCreditBalance() {
|
|
1740
|
-
return Joi.object({
|
|
1741
|
-
affiliate_id: Joi.string().allow(""),
|
|
1742
|
-
seller_id: Joi.number(),
|
|
1743
|
-
customer_mobile_number: Joi.string().allow(""),
|
|
1744
|
-
});
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
/** @returns {GetCustomerCreditBalanceReq} */
|
|
1748
|
-
static GetCustomerCreditBalanceReq() {
|
|
1749
|
-
return Joi.object({
|
|
1750
|
-
data: FinancePlatformModel.GetCustomerCreditBalance(),
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
/** @returns {GetCustomerCreditBalanceResponseData} */
|
|
1755
|
-
static GetCustomerCreditBalanceResponseData() {
|
|
1756
|
-
return Joi.object({
|
|
1757
|
-
customer_mobile_number: Joi.string().allow(""),
|
|
1758
|
-
total_credited_balance: Joi.number(),
|
|
1759
|
-
});
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
/** @returns {GetCustomerCreditBalanceResponse} */
|
|
1763
|
-
static GetCustomerCreditBalanceResponse() {
|
|
1764
|
-
return Joi.object({
|
|
1765
|
-
success: Joi.boolean(),
|
|
1766
|
-
data: FinancePlatformModel.GetCustomerCreditBalanceResponseData(),
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
/** @returns {GetCnConfigReq} */
|
|
1771
|
-
static GetCnConfigReq() {
|
|
1772
|
-
return Joi.object({
|
|
1773
|
-
data: FinancePlatformModel.DeleteConfig(),
|
|
1774
|
-
});
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
/** @returns {GetCnConfigResponseMeta} */
|
|
1778
|
-
static GetCnConfigResponseMeta() {
|
|
1779
|
-
return Joi.object({
|
|
1780
|
-
reason: Joi.string().allow("").allow(null),
|
|
1781
|
-
source_channel: Joi.array().items(Joi.string().allow("")),
|
|
1782
|
-
});
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
/** @returns {GetCnConfigResponseData} */
|
|
1786
|
-
static GetCnConfigResponseData() {
|
|
1787
|
-
return Joi.object({
|
|
1788
|
-
is_cn_as_refund_method: Joi.boolean(),
|
|
1789
|
-
affiliate_id: Joi.string().allow(""),
|
|
1790
|
-
meta: Joi.any(),
|
|
1791
|
-
seller_id: Joi.number(),
|
|
1792
|
-
notification_events: FinancePlatformModel.CreditNoteConfigNotificationEvents(),
|
|
1793
|
-
validity: Joi.number(),
|
|
1794
|
-
redemption_ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
1795
|
-
currency_type: Joi.string().allow(""),
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
/** @returns {GetCnConfigResponse} */
|
|
1800
|
-
static GetCnConfigResponse() {
|
|
1801
|
-
return Joi.object({
|
|
1802
|
-
success: Joi.boolean(),
|
|
1803
|
-
data: FinancePlatformModel.GetCnConfigResponseData(),
|
|
1804
|
-
});
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
/** @returns {CnGenerateReportFilters} */
|
|
1808
|
-
static CnGenerateReportFilters() {
|
|
1809
|
-
return Joi.object({
|
|
1810
|
-
staff_id: Joi.array().items(Joi.string().allow("")),
|
|
1811
|
-
channel_of_issuance: Joi.array().items(Joi.string().allow("")),
|
|
1812
|
-
utilisation: Joi.array().items(Joi.string().allow("")),
|
|
1813
|
-
ordering_channel: Joi.array().items(Joi.string().allow("")),
|
|
1814
|
-
store_id: Joi.array().items(Joi.number()),
|
|
1815
|
-
type_of_transaction: Joi.array().items(Joi.string().allow("")),
|
|
1816
|
-
issuance_channel: Joi.array().items(Joi.string().allow("")),
|
|
1817
|
-
});
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
/** @returns {CnGenerateReport} */
|
|
1821
|
-
static CnGenerateReport() {
|
|
1822
|
-
return Joi.object({
|
|
1823
|
-
page: Joi.number(),
|
|
1824
|
-
end_date: Joi.string().allow(""),
|
|
1825
|
-
page_size: Joi.number(),
|
|
1826
|
-
filters: FinancePlatformModel.CnGenerateReportFilters(),
|
|
1827
|
-
affiliate_id: Joi.string().allow(""),
|
|
1828
|
-
meta: FinancePlatformModel.GenerateReportFilters(),
|
|
1829
|
-
search: Joi.string().allow(""),
|
|
1830
|
-
report_id: Joi.string().allow(""),
|
|
1831
|
-
search_type: Joi.string().allow(""),
|
|
1832
|
-
start_date: Joi.string().allow(""),
|
|
1833
|
-
});
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
/** @returns {GenerateReportCustomerCnReq} */
|
|
1837
|
-
static GenerateReportCustomerCnReq() {
|
|
1838
|
-
return Joi.object({
|
|
1839
|
-
data: FinancePlatformModel.CnGenerateReport(),
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
/** @returns {CnGenerateReportItems} */
|
|
1844
|
-
static CnGenerateReportItems() {
|
|
1845
|
-
return Joi.object({
|
|
1846
|
-
expiry_date: Joi.string().allow(""),
|
|
1847
|
-
status: Joi.string().allow(""),
|
|
1848
|
-
total_amount: Joi.number(),
|
|
1849
|
-
order_id: Joi.string().allow(""),
|
|
1850
|
-
date_issued: Joi.string().allow(""),
|
|
1851
|
-
shipment_id: Joi.string().allow(""),
|
|
1852
|
-
invoice_number: Joi.string().allow(""),
|
|
1853
|
-
credit_note_number: Joi.string().allow(""),
|
|
1854
|
-
});
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
/** @returns {GenerateReportCustomerCnResponseData} */
|
|
1858
|
-
static GenerateReportCustomerCnResponseData() {
|
|
1859
|
-
return Joi.object({
|
|
1860
|
-
success: Joi.boolean(),
|
|
1861
|
-
message: Joi.string().allow(""),
|
|
1862
|
-
items: Joi.array().items(FinancePlatformModel.CnGenerateReportItems()),
|
|
1863
|
-
row_header_display_order: Joi.any(),
|
|
1864
|
-
end_date: Joi.string().allow(""),
|
|
1865
|
-
page: FinancePlatformModel.Page(),
|
|
1866
|
-
headers: Joi.array().items(Joi.string().allow("")),
|
|
1867
|
-
primary_headers: Joi.array().items(Joi.string().allow("")),
|
|
1868
|
-
allowed_filters: Joi.array().items(Joi.string().allow("")),
|
|
1869
|
-
start_date: Joi.string().allow(""),
|
|
1870
|
-
item_count: Joi.number(),
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
/** @returns {GenerateReportCustomerCnResponse} */
|
|
1875
|
-
static GenerateReportCustomerCnResponse() {
|
|
1876
|
-
return Joi.object({
|
|
1877
|
-
data: FinancePlatformModel.GenerateReportCustomerCnResponseData(),
|
|
1878
|
-
});
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
/** @returns {CnDownloadReport} */
|
|
1882
|
-
static CnDownloadReport() {
|
|
1883
|
-
return Joi.object({
|
|
1884
|
-
page: Joi.number(),
|
|
1885
|
-
start_date: Joi.string().allow(""),
|
|
1886
|
-
end_date: Joi.string().allow(""),
|
|
1887
|
-
affiliate_id: Joi.string().allow(""),
|
|
1888
|
-
search: Joi.string().allow(""),
|
|
1889
|
-
status: Joi.string().allow(""),
|
|
1890
|
-
search_type: Joi.string().allow(""),
|
|
1891
|
-
page_size: Joi.number(),
|
|
1892
|
-
});
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
/** @returns {DownloadReportCustomerCnReq} */
|
|
1896
|
-
static DownloadReportCustomerCnReq() {
|
|
1897
|
-
return Joi.object({
|
|
1898
|
-
data: FinancePlatformModel.CnDownloadReport(),
|
|
1899
|
-
});
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
/** @returns {DownloadReportResponseData} */
|
|
1903
|
-
static DownloadReportResponseData() {
|
|
1904
|
-
return Joi.object({
|
|
1905
|
-
report_config_id: Joi.string().allow(""),
|
|
1906
|
-
full_name: Joi.string().allow(""),
|
|
1907
|
-
requested_by: Joi.string().allow(""),
|
|
1908
|
-
start_date: Joi.string().allow(""),
|
|
1909
|
-
end_date: Joi.string().allow(""),
|
|
1910
|
-
request_dict: Joi.any(),
|
|
1911
|
-
download_link: Joi.string().allow(""),
|
|
1912
|
-
created_at: Joi.string().allow(""),
|
|
1913
|
-
meta: Joi.any(),
|
|
1914
|
-
msg: Joi.string().allow(""),
|
|
1915
|
-
report_name: Joi.string().allow(""),
|
|
1916
|
-
status: Joi.string().allow(""),
|
|
1917
|
-
display_name: Joi.string().allow(""),
|
|
1918
|
-
filters: Joi.any(),
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
/** @returns {DownloadReportCustomerCnResponse} */
|
|
1923
|
-
static DownloadReportCustomerCnResponse() {
|
|
1924
|
-
return Joi.object({
|
|
1925
|
-
items: Joi.array().items(
|
|
1926
|
-
FinancePlatformModel.DownloadReportResponseData()
|
|
1927
|
-
),
|
|
1928
|
-
item_count: Joi.number(),
|
|
1929
|
-
page: FinancePlatformModel.Page(),
|
|
1930
|
-
});
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
/** @returns {GetReportingFilters} */
|
|
1934
|
-
static GetReportingFilters() {
|
|
1935
|
-
return Joi.object({
|
|
1936
|
-
text: Joi.string().allow(""),
|
|
1937
|
-
type: Joi.string().allow(""),
|
|
1938
|
-
options: Joi.array().items(Joi.any()),
|
|
1939
|
-
value: Joi.string().allow(""),
|
|
1940
|
-
});
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
/** @returns {GetReportingNestedFilters} */
|
|
1944
|
-
static GetReportingNestedFilters() {
|
|
1945
|
-
return Joi.object({
|
|
1946
|
-
text: Joi.string().allow(""),
|
|
1947
|
-
options: Joi.array().items(Joi.any()),
|
|
1948
|
-
required: Joi.boolean(),
|
|
1949
|
-
placeholder_text: Joi.string().allow(""),
|
|
1950
|
-
type: Joi.string().allow(""),
|
|
1951
|
-
value: Joi.string().allow(""),
|
|
1952
|
-
});
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
/** @returns {GetReportingFiltersReasonOptions} */
|
|
1956
|
-
static GetReportingFiltersReasonOptions() {
|
|
1957
|
-
return Joi.object({
|
|
1958
|
-
text: Joi.string().allow(""),
|
|
1959
|
-
value: Joi.string().allow(""),
|
|
1960
|
-
placeholder_text: Joi.string().allow(""),
|
|
1961
|
-
});
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
/** @returns {GetReportingFiltersReason} */
|
|
1965
|
-
static GetReportingFiltersReason() {
|
|
1966
|
-
return Joi.object({
|
|
1967
|
-
text: Joi.string().allow(""),
|
|
1968
|
-
type: Joi.string().allow(""),
|
|
1969
|
-
value: Joi.string().allow(""),
|
|
1970
|
-
options: Joi.array().items(
|
|
1971
|
-
FinancePlatformModel.GetReportingFiltersReasonOptions()
|
|
1972
|
-
),
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
/** @returns {GetReportingFiltersResponse} */
|
|
1977
|
-
static GetReportingFiltersResponse() {
|
|
1978
|
-
return Joi.object({
|
|
1979
|
-
reason: FinancePlatformModel.GetReportingFiltersReason(),
|
|
1980
|
-
search: FinancePlatformModel.GetReportingFilters(),
|
|
1981
|
-
filters: Joi.array().items(
|
|
1982
|
-
FinancePlatformModel.GetReportingNestedFilters()
|
|
1983
|
-
),
|
|
1984
|
-
status: FinancePlatformModel.GetReportingFilters(),
|
|
1985
|
-
});
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
/** @returns {InvoicePaymentOptionsPayloadData} */
|
|
1989
|
-
static InvoicePaymentOptionsPayloadData() {
|
|
1990
|
-
return Joi.object({
|
|
1991
|
-
invoice_numbers: Joi.array().items(Joi.string().allow("")),
|
|
1992
|
-
});
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
/** @returns {InvoicePaymentOptionsReq} */
|
|
1996
|
-
static InvoicePaymentOptionsReq() {
|
|
1997
|
-
return Joi.object({
|
|
1998
|
-
data: FinancePlatformModel.InvoicePaymentOptionsPayloadData(),
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
/** @returns {InvoicePaymentOptionsResponsePayableAmounts} */
|
|
2003
|
-
static InvoicePaymentOptionsResponsePayableAmounts() {
|
|
2004
|
-
return Joi.object({
|
|
2005
|
-
amount: Joi.number(),
|
|
2006
|
-
amount_key: Joi.string().allow(""),
|
|
2007
|
-
header: Joi.string().allow(""),
|
|
2008
|
-
});
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
|
-
/** @returns {InvoicePaymentOptionsResponseDeductedAmounts} */
|
|
2012
|
-
static InvoicePaymentOptionsResponseDeductedAmounts() {
|
|
2013
|
-
return Joi.object({
|
|
2014
|
-
amount: Joi.number(),
|
|
2015
|
-
header: Joi.string().allow(""),
|
|
2016
|
-
amount_key: Joi.string().allow(""),
|
|
2017
|
-
is_payable: Joi.boolean(),
|
|
2018
|
-
symbol: Joi.string().allow(""),
|
|
2019
|
-
});
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
/** @returns {InvoicePaymentOptionsResponseData} */
|
|
2023
|
-
static InvoicePaymentOptionsResponseData() {
|
|
2024
|
-
return Joi.object({
|
|
2025
|
-
invoice_number: Joi.string().allow(""),
|
|
2026
|
-
invoice_type: Joi.string().allow(""),
|
|
2027
|
-
display_amounts: Joi.array().items(
|
|
2028
|
-
FinancePlatformModel.InvoicePaymentOptionsResponsePayableAmounts()
|
|
2029
|
-
),
|
|
2030
|
-
total_amount: Joi.any(),
|
|
2031
|
-
deducted_amounts: Joi.any(),
|
|
2032
|
-
payable_amounts: Joi.array().items(
|
|
2033
|
-
FinancePlatformModel.InvoicePaymentOptionsResponsePayableAmounts()
|
|
2034
|
-
),
|
|
2035
|
-
currency: FinancePlatformModel.Currency(),
|
|
2036
|
-
});
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
/** @returns {InvoicePaymentOptionsResponse} */
|
|
2040
|
-
static InvoicePaymentOptionsResponse() {
|
|
2041
|
-
return Joi.object({
|
|
2042
|
-
reason: Joi.string().allow(""),
|
|
2043
|
-
data: Joi.array().items(
|
|
2044
|
-
FinancePlatformModel.InvoicePaymentOptionsResponseData()
|
|
2045
|
-
),
|
|
2046
|
-
total_payable_amount: Joi.number(),
|
|
2047
|
-
invoice_count: Joi.number(),
|
|
2048
|
-
success: Joi.boolean(),
|
|
2049
|
-
});
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
/** @returns {PaymentDetail} */
|
|
2053
|
-
static PaymentDetail() {
|
|
2054
|
-
return Joi.object({
|
|
2055
|
-
display_name: Joi.string().allow(""),
|
|
2056
|
-
value: Joi.string().allow(""),
|
|
2057
|
-
});
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
/** @returns {PaidInvoicePaymentDetail} */
|
|
2061
|
-
static PaidInvoicePaymentDetail() {
|
|
2062
|
-
return Joi.object({
|
|
2063
|
-
payment_details: Joi.array().items(FinancePlatformModel.PaymentDetail()),
|
|
2064
|
-
date_of_payment: Joi.string().allow(""),
|
|
2065
|
-
amount: Joi.number(),
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
/** @returns {InvoicePaymentDetailsResponseData} */
|
|
2070
|
-
static InvoicePaymentDetailsResponseData() {
|
|
2071
|
-
return Joi.object({
|
|
2072
|
-
paid_invoice_payment_details: Joi.array().items(
|
|
2073
|
-
FinancePlatformModel.PaidInvoicePaymentDetail()
|
|
2074
|
-
),
|
|
2075
|
-
failed_attempts_details: Joi.array().items(Joi.any()),
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
/** @returns {InvoicePaymentDetailsResponse} */
|
|
2080
|
-
static InvoicePaymentDetailsResponse() {
|
|
2081
|
-
return Joi.object({
|
|
2082
|
-
reason: Joi.string().allow(""),
|
|
2083
|
-
data: FinancePlatformModel.InvoicePaymentDetailsResponseData(),
|
|
2084
|
-
success: Joi.boolean(),
|
|
2085
|
-
payment_details_visible: Joi.boolean(),
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
/** @returns {InvoiceActivityLogsResponseData} */
|
|
2090
|
-
static InvoiceActivityLogsResponseData() {
|
|
2091
|
-
return Joi.object({
|
|
2092
|
-
performed_by: Joi.string().allow("").allow(null),
|
|
2093
|
-
status: Joi.string().allow(""),
|
|
2094
|
-
reason: Joi.string().allow("").allow(null),
|
|
2095
|
-
is_resolved: Joi.boolean(),
|
|
2096
|
-
retry_attempts: Joi.number(),
|
|
2097
|
-
max_retry_attempts: Joi.number().allow(null),
|
|
2098
|
-
});
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
/** @returns {InvoiceActivityLogsResponse} */
|
|
2102
|
-
static InvoiceActivityLogsResponse() {
|
|
2103
|
-
return Joi.object({
|
|
2104
|
-
data: Joi.array().items(
|
|
2105
|
-
FinancePlatformModel.InvoiceActivityLogsResponseData()
|
|
2106
|
-
),
|
|
2107
|
-
});
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
/** @returns {InvoiceActivityLogError} */
|
|
2111
|
-
static InvoiceActivityLogError() {
|
|
2112
|
-
return Joi.object({
|
|
2113
|
-
reason: Joi.string().allow(""),
|
|
2114
|
-
});
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
/** @returns {UnlockCreditNoteRequestData} */
|
|
2118
|
-
static UnlockCreditNoteRequestData() {
|
|
2119
|
-
return Joi.object({
|
|
2120
|
-
seller_id: Joi.string().allow(""),
|
|
2121
|
-
locked_credit_notes: Joi.array().items(Joi.string().allow("")),
|
|
2122
|
-
unlock_reason: Joi.string().allow(""),
|
|
2123
|
-
description: Joi.string().allow(""),
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
/** @returns {UnlockCreditNoteReq} */
|
|
2128
|
-
static UnlockCreditNoteReq() {
|
|
2129
|
-
return Joi.object({
|
|
2130
|
-
data: FinancePlatformModel.UnlockCreditNoteRequestData(),
|
|
2131
|
-
});
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
/** @returns {UnlockCreditNoteResponseData} */
|
|
2135
|
-
static UnlockCreditNoteResponseData() {
|
|
2136
|
-
return Joi.object({
|
|
2137
|
-
is_cn_unlocked: Joi.boolean(),
|
|
2138
|
-
status: Joi.string().allow(""),
|
|
2139
|
-
});
|
|
2140
|
-
}
|
|
2141
|
-
|
|
2142
|
-
/** @returns {UnlockCreditNoteResponse} */
|
|
2143
|
-
static UnlockCreditNoteResponse() {
|
|
2144
|
-
return Joi.object({
|
|
2145
|
-
success: Joi.boolean(),
|
|
2146
|
-
data: FinancePlatformModel.UnlockCreditNoteResponseData(),
|
|
2147
|
-
});
|
|
2148
|
-
}
|
|
2149
|
-
}
|
|
2150
|
-
module.exports = FinancePlatformModel;
|