@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,95 +1,7 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {number} [pdf_type_id]
|
|
6
|
-
* @property {string} [name]
|
|
7
|
-
* @property {string[]} [format]
|
|
8
|
-
* @property {boolean} [visibility]
|
|
9
|
-
* @property {Object} [schema]
|
|
10
|
-
* @property {boolean} [store_os]
|
|
11
|
-
* @property {string} [country_code]
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @typedef PdfTypeIdResponse
|
|
16
|
-
* @property {boolean} [store_os]
|
|
17
|
-
* @property {string} [country_code]
|
|
18
|
-
* @property {number} [pdf_type_id]
|
|
19
|
-
* @property {number} [__v]
|
|
20
|
-
* @property {string[]} [format]
|
|
21
|
-
* @property {string} [name]
|
|
22
|
-
* @property {boolean} [visibility]
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @typedef PdfConfigurationData
|
|
27
|
-
* @property {string} [_id]
|
|
28
|
-
* @property {number} [pdf_type_id]
|
|
29
|
-
* @property {string} [format]
|
|
30
|
-
* @property {string} [template]
|
|
31
|
-
* @property {string} [country_code]
|
|
32
|
-
* @property {number} [__v]
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @typedef PdfConfigurationResponse
|
|
37
|
-
* @property {PdfConfigurationData} [data]
|
|
38
|
-
* @property {boolean} [success]
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @typedef UpdateTemplate
|
|
43
|
-
* @property {number} [pdf_type_id]
|
|
44
|
-
* @property {string} [format] - This is invoice document format such as A4, A6, POS, A5
|
|
45
|
-
* @property {string} [country_code] - This is iso code of a country
|
|
46
|
-
* @property {string} [template] - This is html template string
|
|
47
|
-
* @property {boolean} [store_os] - This flag is to identify store-os
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @typedef PdfDefaultTemplateResponse
|
|
52
|
-
* @property {string} [_id] - The ID of the PDF default template
|
|
53
|
-
* @property {string} [country_code] - The country code associated with the template
|
|
54
|
-
* @property {string} [format] - The format of the template (e.g., "A4")
|
|
55
|
-
* @property {number} [pdf_type_id] - The ID of the PDF type
|
|
56
|
-
* @property {number} [__v] - Version number
|
|
57
|
-
* @property {string} [template] - The HTML template content
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @typedef PdfTemplateCreateSuccess
|
|
62
|
-
* @property {number} [code]
|
|
63
|
-
* @property {boolean} [success]
|
|
64
|
-
* @property {PdfTemplateCreateSuccessData} [data]
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @typedef PdfTemplateCreateSuccessData
|
|
69
|
-
* @property {string} [_id]
|
|
70
|
-
* @property {number} [pdf_type_id]
|
|
71
|
-
* @property {string} [format]
|
|
72
|
-
* @property {string} [template]
|
|
73
|
-
* @property {string} [country_code]
|
|
74
|
-
* @property {number} [__v]
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @typedef CreateTemplate
|
|
79
|
-
* @property {number} pdf_type_id
|
|
80
|
-
* @property {string} format - This is invoice document format such as A4, A6, POS, A5
|
|
81
|
-
* @property {string} country_code - This is iso code of a country
|
|
82
|
-
* @property {string} [template] - This is html template string
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @typedef PdfDefaultTemplateSuccess
|
|
87
|
-
* @property {Document[]} [data]
|
|
88
|
-
* @property {boolean} [success] - Indicates if the request was successful.
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @typedef FailedResponse
|
|
4
|
+
* @typedef FailedBrowseFilesResult
|
|
93
5
|
* @property {string} message
|
|
94
6
|
*/
|
|
95
7
|
|
|
@@ -107,7 +19,7 @@ const Joi = require("joi");
|
|
|
107
19
|
*/
|
|
108
20
|
|
|
109
21
|
/**
|
|
110
|
-
* @typedef
|
|
22
|
+
* @typedef FileUpload
|
|
111
23
|
* @property {string} file_name
|
|
112
24
|
* @property {string} file_path
|
|
113
25
|
* @property {string} content_type
|
|
@@ -120,7 +32,7 @@ const Joi = require("joi");
|
|
|
120
32
|
*/
|
|
121
33
|
|
|
122
34
|
/**
|
|
123
|
-
* @typedef
|
|
35
|
+
* @typedef FileUploadStart
|
|
124
36
|
* @property {string} file_name
|
|
125
37
|
* @property {string} content_type
|
|
126
38
|
* @property {number} size
|
|
@@ -134,7 +46,7 @@ const Joi = require("joi");
|
|
|
134
46
|
*/
|
|
135
47
|
|
|
136
48
|
/**
|
|
137
|
-
* @typedef
|
|
49
|
+
* @typedef FileUploadComplete
|
|
138
50
|
* @property {string} _id
|
|
139
51
|
* @property {string} file_name
|
|
140
52
|
* @property {string} file_path
|
|
@@ -153,7 +65,7 @@ const Joi = require("joi");
|
|
|
153
65
|
*/
|
|
154
66
|
|
|
155
67
|
/**
|
|
156
|
-
* @typedef
|
|
68
|
+
* @typedef ProxyFileAccess
|
|
157
69
|
* @property {Object} [data]
|
|
158
70
|
* @property {Object} [support]
|
|
159
71
|
*/
|
|
@@ -177,424 +89,16 @@ const Joi = require("joi");
|
|
|
177
89
|
*/
|
|
178
90
|
|
|
179
91
|
/**
|
|
180
|
-
* @typedef
|
|
92
|
+
* @typedef SignUrlResult
|
|
181
93
|
* @property {Urls[]} urls
|
|
182
94
|
*/
|
|
183
95
|
|
|
184
96
|
/**
|
|
185
|
-
* @typedef
|
|
97
|
+
* @typedef SignUrl
|
|
186
98
|
* @property {number} expiry
|
|
187
99
|
* @property {string[]} urls
|
|
188
100
|
*/
|
|
189
101
|
|
|
190
|
-
/**
|
|
191
|
-
* @typedef InvoiceTypesDataResponse
|
|
192
|
-
* @property {boolean} [status]
|
|
193
|
-
* @property {string} _id
|
|
194
|
-
* @property {number} pdf_type_id
|
|
195
|
-
* @property {string} name
|
|
196
|
-
* @property {string[]} format
|
|
197
|
-
* @property {number} __v
|
|
198
|
-
* @property {boolean} visibility
|
|
199
|
-
* @property {boolean} store_os
|
|
200
|
-
* @property {string} country_code
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* @typedef InvoiceTypesResponse
|
|
205
|
-
* @property {InvoiceTypesDataResponse[]} data
|
|
206
|
-
* @property {boolean} success
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @typedef ConversionRate
|
|
211
|
-
* @property {string} [base]
|
|
212
|
-
* @property {Object} [rates]
|
|
213
|
-
* @property {number} [timestamp]
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @typedef DeliveryPartnerDetail
|
|
218
|
-
* @property {string} [name]
|
|
219
|
-
* @property {string} [awb_number_barcode]
|
|
220
|
-
* @property {string} [awb_number]
|
|
221
|
-
* @property {string} [origin]
|
|
222
|
-
* @property {string} [destination]
|
|
223
|
-
* @property {string} [eway_bill_number]
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @typedef Image
|
|
228
|
-
* @property {string} [sales_channel_logo]
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* @typedef PaymentData
|
|
233
|
-
* @property {string} [payment_type]
|
|
234
|
-
* @property {number} [amount]
|
|
235
|
-
* @property {string} [date]
|
|
236
|
-
* @property {string} [transaction_id]
|
|
237
|
-
* @property {string} [time]
|
|
238
|
-
* @property {string} [mode]
|
|
239
|
-
* @property {string} [name]
|
|
240
|
-
* @property {Object} [meta]
|
|
241
|
-
*/
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* @typedef InvoiceDetail
|
|
245
|
-
* @property {string} [invoice_id]
|
|
246
|
-
* @property {string} [invoice_date]
|
|
247
|
-
* @property {string} [irn]
|
|
248
|
-
* @property {string} [external_order_id]
|
|
249
|
-
* @property {string} [shipment_id]
|
|
250
|
-
* @property {string} [signed_qrcode]
|
|
251
|
-
* @property {string} [upi_qrcode]
|
|
252
|
-
* @property {string} [device_id]
|
|
253
|
-
* @property {string} [marketplace_invoice_id]
|
|
254
|
-
* @property {string} [marketplace_shipment_id]
|
|
255
|
-
* @property {string} [channel_order_id]
|
|
256
|
-
*/
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @typedef CompanyDetail
|
|
260
|
-
* @property {string} [name] - The official name of the company.
|
|
261
|
-
* @property {string} [address] - The physical street address of the company.
|
|
262
|
-
* @property {string} [city] - The city where the company is located.
|
|
263
|
-
* @property {string} [state] - The state or province where the company is located.
|
|
264
|
-
* @property {string} [country] - The country where the company is based.
|
|
265
|
-
* @property {number} [zip_code] - The postal code for the company's location.
|
|
266
|
-
* @property {string} [state_code] - A code representing the state, often used
|
|
267
|
-
* in official documents and forms.
|
|
268
|
-
* @property {string} [country_code] - The code of the country.
|
|
269
|
-
* @property {string} [gstin] - The Goods and Services Tax Identification
|
|
270
|
-
* Number, unique to each business in India.
|
|
271
|
-
* @property {string} [pan] - The Permanent Account Number, unique to each
|
|
272
|
-
* taxpayer in India.
|
|
273
|
-
* @property {string} [phone_no] - The primary contact phone number for the company.
|
|
274
|
-
* @property {string} [cin] - The Corporate Identification Number, unique to
|
|
275
|
-
* each company registered in India.
|
|
276
|
-
* @property {string} [website_url] - The URL to the company's official website.
|
|
277
|
-
* @property {string} [email] - The company's official email address.
|
|
278
|
-
* @property {string} [display_address] - The display address of the company.
|
|
279
|
-
* @property {string} [sector] - The sector in which company is located.
|
|
280
|
-
* @property {Object} [phone] - The provided phone no of country.
|
|
281
|
-
* @property {string} [trn] - The trn no of the company.
|
|
282
|
-
* @property {string} [vat] - The vat no of the company.
|
|
283
|
-
* @property {string} [business_country_timezone] - The bussiness country timezone.
|
|
284
|
-
* @property {Object} [business_country_currency] - This object represents the
|
|
285
|
-
* bussiness country currency.
|
|
286
|
-
* @property {Object} [meta] - This object represents the meta fields for company.
|
|
287
|
-
*/
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* @typedef StoreDetail
|
|
291
|
-
* @property {string} [store_name]
|
|
292
|
-
* @property {string} [address]
|
|
293
|
-
* @property {string} [city]
|
|
294
|
-
* @property {string} [state]
|
|
295
|
-
* @property {string} [country]
|
|
296
|
-
* @property {string} [country_code]
|
|
297
|
-
* @property {string} [zip_code]
|
|
298
|
-
* @property {string} [state_code]
|
|
299
|
-
* @property {string} [gstin]
|
|
300
|
-
* @property {string} [display_address]
|
|
301
|
-
* @property {string} [sector]
|
|
302
|
-
* @property {string} [store_id]
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* @typedef CustomerBillingDetail
|
|
307
|
-
* @property {string} [name]
|
|
308
|
-
* @property {string} [phone_no]
|
|
309
|
-
* @property {string} [address]
|
|
310
|
-
* @property {string} [city]
|
|
311
|
-
* @property {string} [state]
|
|
312
|
-
* @property {string} [country]
|
|
313
|
-
* @property {string} [country_code]
|
|
314
|
-
* @property {string} [zip_code]
|
|
315
|
-
* @property {string} [state_code]
|
|
316
|
-
* @property {string} [gstin]
|
|
317
|
-
* @property {string} [display_address]
|
|
318
|
-
* @property {string} [sector]
|
|
319
|
-
* @property {string} [email]
|
|
320
|
-
*/
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* @typedef CustomerShippingDetail
|
|
324
|
-
* @property {string} [name]
|
|
325
|
-
* @property {string} [phone_no]
|
|
326
|
-
* @property {string} [address]
|
|
327
|
-
* @property {string} [city]
|
|
328
|
-
* @property {string} [state]
|
|
329
|
-
* @property {string} [country]
|
|
330
|
-
* @property {string} [country_code]
|
|
331
|
-
* @property {string} [zip_code]
|
|
332
|
-
* @property {string} [state_code]
|
|
333
|
-
* @property {string} [gstin]
|
|
334
|
-
* @property {string} [display_address]
|
|
335
|
-
* @property {string} [sector]
|
|
336
|
-
*/
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* @typedef ReturnDetail
|
|
340
|
-
* @property {string} [address]
|
|
341
|
-
* @property {string} [city]
|
|
342
|
-
* @property {string} [state]
|
|
343
|
-
* @property {string} [country]
|
|
344
|
-
* @property {string} [country_code]
|
|
345
|
-
* @property {string} [zip_code]
|
|
346
|
-
* @property {string} [state_code]
|
|
347
|
-
* @property {string} [gstin]
|
|
348
|
-
* @property {string} [display_address]
|
|
349
|
-
* @property {string} [sector]
|
|
350
|
-
*/
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @typedef Brand
|
|
354
|
-
* @property {string} [logo]
|
|
355
|
-
* @property {string} [name]
|
|
356
|
-
*/
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* @typedef Cgst
|
|
360
|
-
* @property {number} [value]
|
|
361
|
-
* @property {number} [percent]
|
|
362
|
-
*/
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* @typedef Sgst
|
|
366
|
-
* @property {number} [value]
|
|
367
|
-
* @property {number} [percent]
|
|
368
|
-
*/
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* @typedef Igst
|
|
372
|
-
* @property {number} [value]
|
|
373
|
-
* @property {number} [percent]
|
|
374
|
-
*/
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* @typedef Tax
|
|
378
|
-
* @property {Cgst} [cgst]
|
|
379
|
-
* @property {Sgst} [sgst]
|
|
380
|
-
* @property {Igst} [igst]
|
|
381
|
-
*/
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* @typedef ItemsProductTable
|
|
385
|
-
* @property {string} [name]
|
|
386
|
-
* @property {string} [seller_identifier]
|
|
387
|
-
* @property {number} [total]
|
|
388
|
-
* @property {Brand} [brand]
|
|
389
|
-
* @property {string} [hsn_code]
|
|
390
|
-
* @property {string} [item_code]
|
|
391
|
-
* @property {number} [total_units]
|
|
392
|
-
* @property {string} [size]
|
|
393
|
-
* @property {number} [mrp]
|
|
394
|
-
* @property {number} [discount]
|
|
395
|
-
* @property {number} [taxable_amount]
|
|
396
|
-
* @property {number} [total_taxable_amount]
|
|
397
|
-
* @property {Tax} [tax]
|
|
398
|
-
* @property {Object} [meta]
|
|
399
|
-
* @property {string} [country_of_origin]
|
|
400
|
-
*/
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* @typedef ProductTable
|
|
404
|
-
* @property {number} [total_items]
|
|
405
|
-
* @property {ItemsProductTable[]} [products]
|
|
406
|
-
* @property {number} [grand_total]
|
|
407
|
-
* @property {number} [delivery_charges]
|
|
408
|
-
* @property {string} [delivery_charge_text]
|
|
409
|
-
* @property {number} [cod_charges]
|
|
410
|
-
* @property {number} [fynd_discounts]
|
|
411
|
-
* @property {string} [total_in_words]
|
|
412
|
-
* @property {number} [gift_price]
|
|
413
|
-
* @property {number} [total_quantity]
|
|
414
|
-
* @property {number} [sub_total]
|
|
415
|
-
* @property {number} [discount]
|
|
416
|
-
* @property {number} [promotion]
|
|
417
|
-
* @property {number} [coupon]
|
|
418
|
-
* @property {number} [reward]
|
|
419
|
-
* @property {number} [round_off]
|
|
420
|
-
* @property {number} [total_value_of_goods]
|
|
421
|
-
*/
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* @typedef Taxes
|
|
425
|
-
* @property {string} [hsn_code]
|
|
426
|
-
* @property {Tax} [tax]
|
|
427
|
-
* @property {number} [total_tax_value]
|
|
428
|
-
*/
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* @typedef TaxTable
|
|
432
|
-
* @property {Taxes[]} [taxes]
|
|
433
|
-
* @property {number} [total_tax]
|
|
434
|
-
* @property {string} [tax_in_words]
|
|
435
|
-
*/
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* @typedef RegisteredCompanyDetail
|
|
439
|
-
* @property {string} [address]
|
|
440
|
-
* @property {string} [city]
|
|
441
|
-
* @property {string} [state]
|
|
442
|
-
* @property {string} [country]
|
|
443
|
-
* @property {string} [country_code]
|
|
444
|
-
* @property {number} [zip_code]
|
|
445
|
-
* @property {string} [state_code]
|
|
446
|
-
* @property {string} [display_address]
|
|
447
|
-
* @property {string} [sector]
|
|
448
|
-
*/
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* @typedef Kwargs
|
|
452
|
-
* @property {string} [value]
|
|
453
|
-
*/
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* @typedef ShipmentIdBarcodeGenerator
|
|
457
|
-
* @property {string} [method]
|
|
458
|
-
* @property {Kwargs} [kwargs]
|
|
459
|
-
*/
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* @typedef SignedQrcodeGenerator
|
|
463
|
-
* @property {string} [method]
|
|
464
|
-
* @property {Kwargs} [kwargs]
|
|
465
|
-
*/
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* @typedef KwargsUpiQrcode
|
|
469
|
-
* @property {string} [qr_data]
|
|
470
|
-
* @property {string} [qr_url]
|
|
471
|
-
*/
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* @typedef UpiQrcodeGenerator
|
|
475
|
-
* @property {string} [method]
|
|
476
|
-
* @property {KwargsUpiQrcode} [kwargs]
|
|
477
|
-
*/
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* @typedef DigitalsignatureGenerator
|
|
481
|
-
* @property {string} [method]
|
|
482
|
-
* @property {Kwargs} [kwargs]
|
|
483
|
-
*/
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* @typedef KwargsAwbNumber
|
|
487
|
-
* @property {Object[]} [value]
|
|
488
|
-
*/
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* @typedef AwbNumberLabelBarcodeGenerator
|
|
492
|
-
* @property {string} [method]
|
|
493
|
-
* @property {KwargsAwbNumber} [kwargs]
|
|
494
|
-
*/
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* @typedef AwbNumberBarcodeGenerator
|
|
498
|
-
* @property {string} [method]
|
|
499
|
-
* @property {Kwargs} [kwargs]
|
|
500
|
-
*/
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* @typedef MetaProperty
|
|
504
|
-
* @property {ShipmentIdBarcodeGenerator} [shipment_id_barcode_generator]
|
|
505
|
-
* @property {SignedQrcodeGenerator} [signed_qrcode_generator]
|
|
506
|
-
* @property {UpiQrcodeGenerator} [upi_qrcode_generator]
|
|
507
|
-
* @property {DigitalsignatureGenerator} [digitalsignature_generator]
|
|
508
|
-
* @property {AwbNumberLabelBarcodeGenerator} [awb_number_label_barcode_generator]
|
|
509
|
-
* @property {AwbNumberBarcodeGenerator} [awb_number_barcode_generator]
|
|
510
|
-
*/
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @typedef Meta
|
|
514
|
-
* @property {MetaProperty} [generator]
|
|
515
|
-
*/
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* @typedef DummyTemplateDataPayload
|
|
519
|
-
* @property {boolean} [is_export]
|
|
520
|
-
* @property {boolean} [is_export_shipment]
|
|
521
|
-
* @property {string} [app_domain_name]
|
|
522
|
-
* @property {string} [txn_id]
|
|
523
|
-
* @property {string} [utr]
|
|
524
|
-
* @property {string} [po_number]
|
|
525
|
-
* @property {string} [credit_note_id]
|
|
526
|
-
* @property {string} [current_date]
|
|
527
|
-
* @property {number} [total_value_of_goods]
|
|
528
|
-
* @property {Object} [b2b_buyer_details]
|
|
529
|
-
* @property {Object} [is_qwik]
|
|
530
|
-
* @property {string} [order_type]
|
|
531
|
-
* @property {ConversionRate} [conversion_rate]
|
|
532
|
-
* @property {string} [currency_code]
|
|
533
|
-
* @property {string} [shipment_id]
|
|
534
|
-
* @property {DeliveryPartnerDetail} [delivery_partner_detail]
|
|
535
|
-
* @property {Image} [image]
|
|
536
|
-
* @property {PaymentData[]} [payments]
|
|
537
|
-
* @property {InvoiceDetail} [invoice_detail]
|
|
538
|
-
* @property {CompanyDetail} [company_detail]
|
|
539
|
-
* @property {StoreDetail} [store_detail]
|
|
540
|
-
* @property {CustomerBillingDetail} [customer_billing_detail]
|
|
541
|
-
* @property {CustomerShippingDetail} [customer_shipping_detail]
|
|
542
|
-
* @property {ReturnDetail} [return_detail]
|
|
543
|
-
* @property {ProductTable} [product_table]
|
|
544
|
-
* @property {TaxTable} [tax_table]
|
|
545
|
-
* @property {string[]} [declaration_texts]
|
|
546
|
-
* @property {RegisteredCompanyDetail} [registered_company_detail]
|
|
547
|
-
* @property {string} [disclaimer]
|
|
548
|
-
* @property {Meta} [meta]
|
|
549
|
-
* @property {boolean} [is_self_ship]
|
|
550
|
-
* @property {string} [mode]
|
|
551
|
-
* @property {boolean} [is_self_pickup]
|
|
552
|
-
* @property {string} [platform_name]
|
|
553
|
-
* @property {number} [amount_to_be_collected]
|
|
554
|
-
* @property {number} [amount_paid]
|
|
555
|
-
* @property {Object[]} [waybills]
|
|
556
|
-
* @property {number} [total_items]
|
|
557
|
-
* @property {string} [brand_logo]
|
|
558
|
-
* @property {string} [shipment_id_barcode]
|
|
559
|
-
* @property {string} [signed_qrcode]
|
|
560
|
-
* @property {string} [upi_qrcode]
|
|
561
|
-
* @property {string} [digitalsignature]
|
|
562
|
-
* @property {string} [awb_number_barcode]
|
|
563
|
-
* @property {string} [uid]
|
|
564
|
-
*/
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* @typedef DummyTemplateData
|
|
568
|
-
* @property {string} [_id] - This field contains the unique identifier for the
|
|
569
|
-
* PDF payload.
|
|
570
|
-
* @property {number} [pdf_type_id] - This is invoice unique id
|
|
571
|
-
* @property {DummyTemplateDataPayload} payload
|
|
572
|
-
* @property {string} [country_code] - This field represents the country code.
|
|
573
|
-
* @property {number} [__v]
|
|
574
|
-
*/
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* @typedef savePdfPayload
|
|
578
|
-
* @property {number} [pdf_type_id]
|
|
579
|
-
* @property {DummyTemplateDataPayload} [payload]
|
|
580
|
-
* @property {string} [country_code]
|
|
581
|
-
*/
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* @typedef DummyPayloadById
|
|
585
|
-
* @property {string} [_id]
|
|
586
|
-
* @property {number} [pdf_type_id]
|
|
587
|
-
* @property {DummyTemplateDataPayload} [payload]
|
|
588
|
-
* @property {string} [country_code]
|
|
589
|
-
* @property {number} [__v] - This field holds the version number.
|
|
590
|
-
*/
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* @typedef DummyTemplateDataItems
|
|
594
|
-
* @property {DummyTemplateData[]} data
|
|
595
|
-
* @property {boolean} success
|
|
596
|
-
*/
|
|
597
|
-
|
|
598
102
|
/**
|
|
599
103
|
* @typedef PdfConfig
|
|
600
104
|
* @property {string} [format] - This is invoice document format such as A4, A6, POS
|
|
@@ -619,9 +123,7 @@ const Joi = require("joi");
|
|
|
619
123
|
* for the PDF document.
|
|
620
124
|
* @property {number} [__v] - This field holds the version number of the PDF
|
|
621
125
|
* configuration document.
|
|
622
|
-
* @property {string} [country_code]
|
|
623
|
-
* @property {boolean} [default_template] - This field indicates whether the
|
|
624
|
-
* HTML template is the default template.
|
|
126
|
+
* @property {string} [country_code]
|
|
625
127
|
*/
|
|
626
128
|
|
|
627
129
|
/**
|
|
@@ -647,16 +149,6 @@ const Joi = require("joi");
|
|
|
647
149
|
* @property {boolean} [success]
|
|
648
150
|
*/
|
|
649
151
|
|
|
650
|
-
/**
|
|
651
|
-
* @typedef Document
|
|
652
|
-
* @property {string} [_id]
|
|
653
|
-
* @property {number} [pdf_type_id]
|
|
654
|
-
* @property {string} [format]
|
|
655
|
-
* @property {string} [template]
|
|
656
|
-
* @property {string} [country_code]
|
|
657
|
-
* @property {number} [__v]
|
|
658
|
-
*/
|
|
659
|
-
|
|
660
152
|
/**
|
|
661
153
|
* @typedef PaymentReceiptRequestBody
|
|
662
154
|
* @property {PaymentReceiptPayload} [payload]
|
|
@@ -737,116 +229,8 @@ const Joi = require("joi");
|
|
|
737
229
|
*/
|
|
738
230
|
|
|
739
231
|
class FileStoragePlatformModel {
|
|
740
|
-
/** @returns {
|
|
741
|
-
static
|
|
742
|
-
return Joi.object({
|
|
743
|
-
pdf_type_id: Joi.number(),
|
|
744
|
-
name: Joi.string().allow(""),
|
|
745
|
-
format: Joi.array().items(Joi.string().allow("")),
|
|
746
|
-
visibility: Joi.boolean(),
|
|
747
|
-
schema: Joi.any(),
|
|
748
|
-
store_os: Joi.boolean(),
|
|
749
|
-
country_code: Joi.string().allow(""),
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
/** @returns {PdfTypeIdResponse} */
|
|
754
|
-
static PdfTypeIdResponse() {
|
|
755
|
-
return Joi.object({
|
|
756
|
-
store_os: Joi.boolean(),
|
|
757
|
-
country_code: Joi.string().allow(""),
|
|
758
|
-
pdf_type_id: Joi.number(),
|
|
759
|
-
__v: Joi.number(),
|
|
760
|
-
format: Joi.array().items(Joi.string().allow("")),
|
|
761
|
-
name: Joi.string().allow(""),
|
|
762
|
-
visibility: Joi.boolean(),
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/** @returns {PdfConfigurationData} */
|
|
767
|
-
static PdfConfigurationData() {
|
|
768
|
-
return Joi.object({
|
|
769
|
-
_id: Joi.string().allow(""),
|
|
770
|
-
pdf_type_id: Joi.number(),
|
|
771
|
-
format: Joi.string().allow(""),
|
|
772
|
-
template: Joi.string().allow(""),
|
|
773
|
-
country_code: Joi.string().allow(""),
|
|
774
|
-
__v: Joi.number(),
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
/** @returns {PdfConfigurationResponse} */
|
|
779
|
-
static PdfConfigurationResponse() {
|
|
780
|
-
return Joi.object({
|
|
781
|
-
data: FileStoragePlatformModel.PdfConfigurationData(),
|
|
782
|
-
success: Joi.boolean(),
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
/** @returns {UpdateTemplate} */
|
|
787
|
-
static UpdateTemplate() {
|
|
788
|
-
return Joi.object({
|
|
789
|
-
pdf_type_id: Joi.number(),
|
|
790
|
-
format: Joi.string().allow(""),
|
|
791
|
-
country_code: Joi.string().allow(""),
|
|
792
|
-
template: Joi.string().allow(""),
|
|
793
|
-
store_os: Joi.boolean(),
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
/** @returns {PdfDefaultTemplateResponse} */
|
|
798
|
-
static PdfDefaultTemplateResponse() {
|
|
799
|
-
return Joi.object({
|
|
800
|
-
_id: Joi.string().allow(""),
|
|
801
|
-
country_code: Joi.string().allow(""),
|
|
802
|
-
format: Joi.string().allow(""),
|
|
803
|
-
pdf_type_id: Joi.number(),
|
|
804
|
-
__v: Joi.number(),
|
|
805
|
-
template: Joi.string().allow(""),
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
/** @returns {PdfTemplateCreateSuccess} */
|
|
810
|
-
static PdfTemplateCreateSuccess() {
|
|
811
|
-
return Joi.object({
|
|
812
|
-
code: Joi.number(),
|
|
813
|
-
success: Joi.boolean(),
|
|
814
|
-
data: FileStoragePlatformModel.PdfTemplateCreateSuccessData(),
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
/** @returns {PdfTemplateCreateSuccessData} */
|
|
819
|
-
static PdfTemplateCreateSuccessData() {
|
|
820
|
-
return Joi.object({
|
|
821
|
-
_id: Joi.string().allow(""),
|
|
822
|
-
pdf_type_id: Joi.number(),
|
|
823
|
-
format: Joi.string().allow(""),
|
|
824
|
-
template: Joi.string().allow(""),
|
|
825
|
-
country_code: Joi.string().allow(""),
|
|
826
|
-
__v: Joi.number(),
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/** @returns {CreateTemplate} */
|
|
831
|
-
static CreateTemplate() {
|
|
832
|
-
return Joi.object({
|
|
833
|
-
pdf_type_id: Joi.number().required(),
|
|
834
|
-
format: Joi.string().allow("").required(),
|
|
835
|
-
country_code: Joi.string().allow("").required(),
|
|
836
|
-
template: Joi.string().allow(""),
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
/** @returns {PdfDefaultTemplateSuccess} */
|
|
841
|
-
static PdfDefaultTemplateSuccess() {
|
|
842
|
-
return Joi.object({
|
|
843
|
-
data: Joi.array().items(FileStoragePlatformModel.Document()),
|
|
844
|
-
success: Joi.boolean(),
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
/** @returns {FailedResponse} */
|
|
849
|
-
static FailedResponse() {
|
|
232
|
+
/** @returns {FailedBrowseFilesResult} */
|
|
233
|
+
static FailedBrowseFilesResult() {
|
|
850
234
|
return Joi.object({
|
|
851
235
|
message: Joi.string().allow("").required(),
|
|
852
236
|
});
|
|
@@ -869,8 +253,8 @@ class FileStoragePlatformModel {
|
|
|
869
253
|
});
|
|
870
254
|
}
|
|
871
255
|
|
|
872
|
-
/** @returns {
|
|
873
|
-
static
|
|
256
|
+
/** @returns {FileUpload} */
|
|
257
|
+
static FileUpload() {
|
|
874
258
|
return Joi.object({
|
|
875
259
|
file_name: Joi.string().allow("").required(),
|
|
876
260
|
file_path: Joi.string().allow("").required(),
|
|
@@ -884,8 +268,8 @@ class FileStoragePlatformModel {
|
|
|
884
268
|
});
|
|
885
269
|
}
|
|
886
270
|
|
|
887
|
-
/** @returns {
|
|
888
|
-
static
|
|
271
|
+
/** @returns {FileUploadStart} */
|
|
272
|
+
static FileUploadStart() {
|
|
889
273
|
return Joi.object({
|
|
890
274
|
file_name: Joi.string().allow("").required(),
|
|
891
275
|
content_type: Joi.string().allow("").required(),
|
|
@@ -902,8 +286,8 @@ class FileStoragePlatformModel {
|
|
|
902
286
|
});
|
|
903
287
|
}
|
|
904
288
|
|
|
905
|
-
/** @returns {
|
|
906
|
-
static
|
|
289
|
+
/** @returns {FileUploadComplete} */
|
|
290
|
+
static FileUploadComplete() {
|
|
907
291
|
return Joi.object({
|
|
908
292
|
_id: Joi.string().allow("").required(),
|
|
909
293
|
file_name: Joi.string().allow("").required(),
|
|
@@ -923,8 +307,8 @@ class FileStoragePlatformModel {
|
|
|
923
307
|
});
|
|
924
308
|
}
|
|
925
309
|
|
|
926
|
-
/** @returns {
|
|
927
|
-
static
|
|
310
|
+
/** @returns {ProxyFileAccess} */
|
|
311
|
+
static ProxyFileAccess() {
|
|
928
312
|
return Joi.object({
|
|
929
313
|
data: Joi.object().pattern(/\S/, Joi.any()),
|
|
930
314
|
support: Joi.object().pattern(/\S/, Joi.any()),
|
|
@@ -955,503 +339,21 @@ class FileStoragePlatformModel {
|
|
|
955
339
|
});
|
|
956
340
|
}
|
|
957
341
|
|
|
958
|
-
/** @returns {
|
|
959
|
-
static
|
|
342
|
+
/** @returns {SignUrlResult} */
|
|
343
|
+
static SignUrlResult() {
|
|
960
344
|
return Joi.object({
|
|
961
345
|
urls: Joi.array().items(FileStoragePlatformModel.Urls()).required(),
|
|
962
346
|
});
|
|
963
347
|
}
|
|
964
348
|
|
|
965
|
-
/** @returns {
|
|
966
|
-
static
|
|
349
|
+
/** @returns {SignUrl} */
|
|
350
|
+
static SignUrl() {
|
|
967
351
|
return Joi.object({
|
|
968
352
|
expiry: Joi.number().required(),
|
|
969
353
|
urls: Joi.array().items(Joi.string().allow("")).required(),
|
|
970
354
|
});
|
|
971
355
|
}
|
|
972
356
|
|
|
973
|
-
/** @returns {InvoiceTypesDataResponse} */
|
|
974
|
-
static InvoiceTypesDataResponse() {
|
|
975
|
-
return Joi.object({
|
|
976
|
-
status: Joi.boolean(),
|
|
977
|
-
_id: Joi.string().allow("").required(),
|
|
978
|
-
pdf_type_id: Joi.number().required(),
|
|
979
|
-
name: Joi.string().allow("").required(),
|
|
980
|
-
format: Joi.array().items(Joi.string().allow("")).required(),
|
|
981
|
-
__v: Joi.number().required(),
|
|
982
|
-
visibility: Joi.boolean().required(),
|
|
983
|
-
store_os: Joi.boolean().required(),
|
|
984
|
-
country_code: Joi.string().allow("").required(),
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
/** @returns {InvoiceTypesResponse} */
|
|
989
|
-
static InvoiceTypesResponse() {
|
|
990
|
-
return Joi.object({
|
|
991
|
-
data: Joi.array()
|
|
992
|
-
.items(FileStoragePlatformModel.InvoiceTypesDataResponse())
|
|
993
|
-
.required(),
|
|
994
|
-
success: Joi.boolean().required(),
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
/** @returns {ConversionRate} */
|
|
999
|
-
static ConversionRate() {
|
|
1000
|
-
return Joi.object({
|
|
1001
|
-
base: Joi.string().allow(""),
|
|
1002
|
-
rates: Joi.object().pattern(/\S/, Joi.any()),
|
|
1003
|
-
timestamp: Joi.number(),
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
/** @returns {DeliveryPartnerDetail} */
|
|
1008
|
-
static DeliveryPartnerDetail() {
|
|
1009
|
-
return Joi.object({
|
|
1010
|
-
name: Joi.string().allow(""),
|
|
1011
|
-
awb_number_barcode: Joi.string().allow(""),
|
|
1012
|
-
awb_number: Joi.string().allow(""),
|
|
1013
|
-
origin: Joi.string().allow(""),
|
|
1014
|
-
destination: Joi.string().allow(""),
|
|
1015
|
-
eway_bill_number: Joi.string().allow("").allow(null),
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
/** @returns {Image} */
|
|
1020
|
-
static Image() {
|
|
1021
|
-
return Joi.object({
|
|
1022
|
-
sales_channel_logo: Joi.string().allow(""),
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/** @returns {PaymentData} */
|
|
1027
|
-
static PaymentData() {
|
|
1028
|
-
return Joi.object({
|
|
1029
|
-
payment_type: Joi.string().allow(""),
|
|
1030
|
-
amount: Joi.number(),
|
|
1031
|
-
date: Joi.string().allow(""),
|
|
1032
|
-
transaction_id: Joi.string().allow(""),
|
|
1033
|
-
time: Joi.string().allow(""),
|
|
1034
|
-
mode: Joi.string().allow(""),
|
|
1035
|
-
name: Joi.string().allow(""),
|
|
1036
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
/** @returns {InvoiceDetail} */
|
|
1041
|
-
static InvoiceDetail() {
|
|
1042
|
-
return Joi.object({
|
|
1043
|
-
invoice_id: Joi.string().allow(""),
|
|
1044
|
-
invoice_date: Joi.string().allow(""),
|
|
1045
|
-
irn: Joi.string().allow(""),
|
|
1046
|
-
external_order_id: Joi.string().allow(""),
|
|
1047
|
-
shipment_id: Joi.string().allow(""),
|
|
1048
|
-
signed_qrcode: Joi.string().allow(""),
|
|
1049
|
-
upi_qrcode: Joi.string().allow(""),
|
|
1050
|
-
device_id: Joi.string().allow(""),
|
|
1051
|
-
marketplace_invoice_id: Joi.string().allow(""),
|
|
1052
|
-
marketplace_shipment_id: Joi.string().allow(""),
|
|
1053
|
-
channel_order_id: Joi.string().allow(""),
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
/** @returns {CompanyDetail} */
|
|
1058
|
-
static CompanyDetail() {
|
|
1059
|
-
return Joi.object({
|
|
1060
|
-
name: Joi.string().allow(""),
|
|
1061
|
-
address: Joi.string().allow(""),
|
|
1062
|
-
city: Joi.string().allow(""),
|
|
1063
|
-
state: Joi.string().allow(""),
|
|
1064
|
-
country: Joi.string().allow(""),
|
|
1065
|
-
zip_code: Joi.number(),
|
|
1066
|
-
state_code: Joi.string().allow(""),
|
|
1067
|
-
country_code: Joi.string().allow(""),
|
|
1068
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1069
|
-
pan: Joi.string().allow("").allow(null),
|
|
1070
|
-
phone_no: Joi.string().allow("").allow(null),
|
|
1071
|
-
cin: Joi.string().allow(""),
|
|
1072
|
-
website_url: Joi.string().allow(""),
|
|
1073
|
-
email: Joi.string().allow(""),
|
|
1074
|
-
display_address: Joi.string().allow(""),
|
|
1075
|
-
sector: Joi.string().allow(""),
|
|
1076
|
-
phone: Joi.object().pattern(/\S/, Joi.any()),
|
|
1077
|
-
trn: Joi.string().allow(""),
|
|
1078
|
-
vat: Joi.string().allow(""),
|
|
1079
|
-
business_country_timezone: Joi.string().allow(""),
|
|
1080
|
-
business_country_currency: Joi.object().pattern(/\S/, Joi.any()),
|
|
1081
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
/** @returns {StoreDetail} */
|
|
1086
|
-
static StoreDetail() {
|
|
1087
|
-
return Joi.object({
|
|
1088
|
-
store_name: Joi.string().allow(""),
|
|
1089
|
-
address: Joi.string().allow(""),
|
|
1090
|
-
city: Joi.string().allow(""),
|
|
1091
|
-
state: Joi.string().allow(""),
|
|
1092
|
-
country: Joi.string().allow(""),
|
|
1093
|
-
country_code: Joi.string().allow(""),
|
|
1094
|
-
zip_code: Joi.string().allow(""),
|
|
1095
|
-
state_code: Joi.string().allow(""),
|
|
1096
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1097
|
-
display_address: Joi.string().allow(""),
|
|
1098
|
-
sector: Joi.string().allow(""),
|
|
1099
|
-
store_id: Joi.string().allow(""),
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/** @returns {CustomerBillingDetail} */
|
|
1104
|
-
static CustomerBillingDetail() {
|
|
1105
|
-
return Joi.object({
|
|
1106
|
-
name: Joi.string().allow(""),
|
|
1107
|
-
phone_no: Joi.string().allow(""),
|
|
1108
|
-
address: Joi.string().allow(""),
|
|
1109
|
-
city: Joi.string().allow(""),
|
|
1110
|
-
state: Joi.string().allow(""),
|
|
1111
|
-
country: Joi.string().allow(""),
|
|
1112
|
-
country_code: Joi.string().allow(""),
|
|
1113
|
-
zip_code: Joi.string().allow(""),
|
|
1114
|
-
state_code: Joi.string().allow(""),
|
|
1115
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1116
|
-
display_address: Joi.string().allow(""),
|
|
1117
|
-
sector: Joi.string().allow(""),
|
|
1118
|
-
email: Joi.string().allow(""),
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
/** @returns {CustomerShippingDetail} */
|
|
1123
|
-
static CustomerShippingDetail() {
|
|
1124
|
-
return Joi.object({
|
|
1125
|
-
name: Joi.string().allow(""),
|
|
1126
|
-
phone_no: Joi.string().allow(""),
|
|
1127
|
-
address: Joi.string().allow(""),
|
|
1128
|
-
city: Joi.string().allow(""),
|
|
1129
|
-
state: Joi.string().allow(""),
|
|
1130
|
-
country: Joi.string().allow(""),
|
|
1131
|
-
country_code: Joi.string().allow(""),
|
|
1132
|
-
zip_code: Joi.string().allow(""),
|
|
1133
|
-
state_code: Joi.string().allow(""),
|
|
1134
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1135
|
-
display_address: Joi.string().allow(""),
|
|
1136
|
-
sector: Joi.string().allow(""),
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
/** @returns {ReturnDetail} */
|
|
1141
|
-
static ReturnDetail() {
|
|
1142
|
-
return Joi.object({
|
|
1143
|
-
address: Joi.string().allow(""),
|
|
1144
|
-
city: Joi.string().allow(""),
|
|
1145
|
-
state: Joi.string().allow(""),
|
|
1146
|
-
country: Joi.string().allow(""),
|
|
1147
|
-
country_code: Joi.string().allow("").allow(null),
|
|
1148
|
-
zip_code: Joi.string().allow(""),
|
|
1149
|
-
state_code: Joi.string().allow(""),
|
|
1150
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1151
|
-
display_address: Joi.string().allow(""),
|
|
1152
|
-
sector: Joi.string().allow(""),
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
/** @returns {Brand} */
|
|
1157
|
-
static Brand() {
|
|
1158
|
-
return Joi.object({
|
|
1159
|
-
logo: Joi.string().allow(""),
|
|
1160
|
-
name: Joi.string().allow(""),
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
/** @returns {Cgst} */
|
|
1165
|
-
static Cgst() {
|
|
1166
|
-
return Joi.object({
|
|
1167
|
-
value: Joi.number(),
|
|
1168
|
-
percent: Joi.number(),
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
/** @returns {Sgst} */
|
|
1173
|
-
static Sgst() {
|
|
1174
|
-
return Joi.object({
|
|
1175
|
-
value: Joi.number(),
|
|
1176
|
-
percent: Joi.number(),
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
/** @returns {Igst} */
|
|
1181
|
-
static Igst() {
|
|
1182
|
-
return Joi.object({
|
|
1183
|
-
value: Joi.number(),
|
|
1184
|
-
percent: Joi.number(),
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
/** @returns {Tax} */
|
|
1189
|
-
static Tax() {
|
|
1190
|
-
return Joi.object({
|
|
1191
|
-
cgst: FileStoragePlatformModel.Cgst(),
|
|
1192
|
-
sgst: FileStoragePlatformModel.Sgst(),
|
|
1193
|
-
igst: FileStoragePlatformModel.Igst(),
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
/** @returns {ItemsProductTable} */
|
|
1198
|
-
static ItemsProductTable() {
|
|
1199
|
-
return Joi.object({
|
|
1200
|
-
name: Joi.string().allow(""),
|
|
1201
|
-
seller_identifier: Joi.string().allow(""),
|
|
1202
|
-
total: Joi.number(),
|
|
1203
|
-
brand: FileStoragePlatformModel.Brand(),
|
|
1204
|
-
hsn_code: Joi.string().allow(""),
|
|
1205
|
-
item_code: Joi.string().allow(""),
|
|
1206
|
-
total_units: Joi.number(),
|
|
1207
|
-
size: Joi.string().allow(""),
|
|
1208
|
-
mrp: Joi.number(),
|
|
1209
|
-
discount: Joi.number(),
|
|
1210
|
-
taxable_amount: Joi.number(),
|
|
1211
|
-
total_taxable_amount: Joi.number(),
|
|
1212
|
-
tax: FileStoragePlatformModel.Tax(),
|
|
1213
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1214
|
-
country_of_origin: Joi.string().allow(""),
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
/** @returns {ProductTable} */
|
|
1219
|
-
static ProductTable() {
|
|
1220
|
-
return Joi.object({
|
|
1221
|
-
total_items: Joi.number(),
|
|
1222
|
-
products: Joi.array().items(FileStoragePlatformModel.ItemsProductTable()),
|
|
1223
|
-
grand_total: Joi.number(),
|
|
1224
|
-
delivery_charges: Joi.number(),
|
|
1225
|
-
delivery_charge_text: Joi.string().allow(""),
|
|
1226
|
-
cod_charges: Joi.number(),
|
|
1227
|
-
fynd_discounts: Joi.number(),
|
|
1228
|
-
total_in_words: Joi.string().allow(""),
|
|
1229
|
-
gift_price: Joi.number(),
|
|
1230
|
-
total_quantity: Joi.number(),
|
|
1231
|
-
sub_total: Joi.number(),
|
|
1232
|
-
discount: Joi.number(),
|
|
1233
|
-
promotion: Joi.number(),
|
|
1234
|
-
coupon: Joi.number(),
|
|
1235
|
-
reward: Joi.number(),
|
|
1236
|
-
round_off: Joi.number(),
|
|
1237
|
-
total_value_of_goods: Joi.number(),
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
/** @returns {Taxes} */
|
|
1242
|
-
static Taxes() {
|
|
1243
|
-
return Joi.object({
|
|
1244
|
-
hsn_code: Joi.string().allow(""),
|
|
1245
|
-
tax: FileStoragePlatformModel.Tax(),
|
|
1246
|
-
total_tax_value: Joi.number(),
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
/** @returns {TaxTable} */
|
|
1251
|
-
static TaxTable() {
|
|
1252
|
-
return Joi.object({
|
|
1253
|
-
taxes: Joi.array().items(FileStoragePlatformModel.Taxes()),
|
|
1254
|
-
total_tax: Joi.number(),
|
|
1255
|
-
tax_in_words: Joi.string().allow(""),
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
/** @returns {RegisteredCompanyDetail} */
|
|
1260
|
-
static RegisteredCompanyDetail() {
|
|
1261
|
-
return Joi.object({
|
|
1262
|
-
address: Joi.string().allow(""),
|
|
1263
|
-
city: Joi.string().allow(""),
|
|
1264
|
-
state: Joi.string().allow(""),
|
|
1265
|
-
country: Joi.string().allow(""),
|
|
1266
|
-
country_code: Joi.string().allow(""),
|
|
1267
|
-
zip_code: Joi.number(),
|
|
1268
|
-
state_code: Joi.string().allow(""),
|
|
1269
|
-
display_address: Joi.string().allow(""),
|
|
1270
|
-
sector: Joi.string().allow(""),
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
/** @returns {Kwargs} */
|
|
1275
|
-
static Kwargs() {
|
|
1276
|
-
return Joi.object({
|
|
1277
|
-
value: Joi.string().allow(""),
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
/** @returns {ShipmentIdBarcodeGenerator} */
|
|
1282
|
-
static ShipmentIdBarcodeGenerator() {
|
|
1283
|
-
return Joi.object({
|
|
1284
|
-
method: Joi.string().allow(""),
|
|
1285
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
/** @returns {SignedQrcodeGenerator} */
|
|
1290
|
-
static SignedQrcodeGenerator() {
|
|
1291
|
-
return Joi.object({
|
|
1292
|
-
method: Joi.string().allow(""),
|
|
1293
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1294
|
-
});
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
/** @returns {KwargsUpiQrcode} */
|
|
1298
|
-
static KwargsUpiQrcode() {
|
|
1299
|
-
return Joi.object({
|
|
1300
|
-
qr_data: Joi.string().allow(""),
|
|
1301
|
-
qr_url: Joi.string().allow(""),
|
|
1302
|
-
});
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
/** @returns {UpiQrcodeGenerator} */
|
|
1306
|
-
static UpiQrcodeGenerator() {
|
|
1307
|
-
return Joi.object({
|
|
1308
|
-
method: Joi.string().allow(""),
|
|
1309
|
-
kwargs: FileStoragePlatformModel.KwargsUpiQrcode(),
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
/** @returns {DigitalsignatureGenerator} */
|
|
1314
|
-
static DigitalsignatureGenerator() {
|
|
1315
|
-
return Joi.object({
|
|
1316
|
-
method: Joi.string().allow(""),
|
|
1317
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
/** @returns {KwargsAwbNumber} */
|
|
1322
|
-
static KwargsAwbNumber() {
|
|
1323
|
-
return Joi.object({
|
|
1324
|
-
value: Joi.array().items(Joi.any()),
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
/** @returns {AwbNumberLabelBarcodeGenerator} */
|
|
1329
|
-
static AwbNumberLabelBarcodeGenerator() {
|
|
1330
|
-
return Joi.object({
|
|
1331
|
-
method: Joi.string().allow(""),
|
|
1332
|
-
kwargs: FileStoragePlatformModel.KwargsAwbNumber(),
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
/** @returns {AwbNumberBarcodeGenerator} */
|
|
1337
|
-
static AwbNumberBarcodeGenerator() {
|
|
1338
|
-
return Joi.object({
|
|
1339
|
-
method: Joi.string().allow(""),
|
|
1340
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
/** @returns {MetaProperty} */
|
|
1345
|
-
static MetaProperty() {
|
|
1346
|
-
return Joi.object({
|
|
1347
|
-
shipment_id_barcode_generator: FileStoragePlatformModel.ShipmentIdBarcodeGenerator(),
|
|
1348
|
-
signed_qrcode_generator: FileStoragePlatformModel.SignedQrcodeGenerator(),
|
|
1349
|
-
upi_qrcode_generator: FileStoragePlatformModel.UpiQrcodeGenerator(),
|
|
1350
|
-
digitalsignature_generator: FileStoragePlatformModel.DigitalsignatureGenerator(),
|
|
1351
|
-
awb_number_label_barcode_generator: FileStoragePlatformModel.AwbNumberLabelBarcodeGenerator(),
|
|
1352
|
-
awb_number_barcode_generator: FileStoragePlatformModel.AwbNumberBarcodeGenerator(),
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
/** @returns {Meta} */
|
|
1357
|
-
static Meta() {
|
|
1358
|
-
return Joi.object({
|
|
1359
|
-
generator: FileStoragePlatformModel.MetaProperty(),
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
/** @returns {DummyTemplateDataPayload} */
|
|
1364
|
-
static DummyTemplateDataPayload() {
|
|
1365
|
-
return Joi.object({
|
|
1366
|
-
is_export: Joi.boolean(),
|
|
1367
|
-
is_export_shipment: Joi.boolean(),
|
|
1368
|
-
app_domain_name: Joi.string().allow(""),
|
|
1369
|
-
txn_id: Joi.string().allow(""),
|
|
1370
|
-
utr: Joi.string().allow(""),
|
|
1371
|
-
po_number: Joi.string().allow(""),
|
|
1372
|
-
credit_note_id: Joi.string().allow("").allow(null),
|
|
1373
|
-
current_date: Joi.string().allow(""),
|
|
1374
|
-
total_value_of_goods: Joi.number(),
|
|
1375
|
-
b2b_buyer_details: Joi.object().pattern(/\S/, Joi.any()),
|
|
1376
|
-
is_qwik: Joi.object().pattern(/\S/, Joi.any()),
|
|
1377
|
-
order_type: Joi.string().allow(""),
|
|
1378
|
-
conversion_rate: FileStoragePlatformModel.ConversionRate(),
|
|
1379
|
-
currency_code: Joi.string().allow(""),
|
|
1380
|
-
shipment_id: Joi.string().allow(""),
|
|
1381
|
-
delivery_partner_detail: FileStoragePlatformModel.DeliveryPartnerDetail(),
|
|
1382
|
-
image: FileStoragePlatformModel.Image(),
|
|
1383
|
-
payments: Joi.array().items(FileStoragePlatformModel.PaymentData()),
|
|
1384
|
-
invoice_detail: FileStoragePlatformModel.InvoiceDetail(),
|
|
1385
|
-
company_detail: FileStoragePlatformModel.CompanyDetail(),
|
|
1386
|
-
store_detail: FileStoragePlatformModel.StoreDetail(),
|
|
1387
|
-
customer_billing_detail: FileStoragePlatformModel.CustomerBillingDetail(),
|
|
1388
|
-
customer_shipping_detail: FileStoragePlatformModel.CustomerShippingDetail(),
|
|
1389
|
-
return_detail: FileStoragePlatformModel.ReturnDetail(),
|
|
1390
|
-
product_table: FileStoragePlatformModel.ProductTable(),
|
|
1391
|
-
tax_table: FileStoragePlatformModel.TaxTable(),
|
|
1392
|
-
declaration_texts: Joi.array().items(Joi.string().allow("")),
|
|
1393
|
-
registered_company_detail: FileStoragePlatformModel.RegisteredCompanyDetail(),
|
|
1394
|
-
disclaimer: Joi.string().allow(""),
|
|
1395
|
-
meta: FileStoragePlatformModel.Meta(),
|
|
1396
|
-
is_self_ship: Joi.boolean(),
|
|
1397
|
-
mode: Joi.string().allow(""),
|
|
1398
|
-
is_self_pickup: Joi.boolean(),
|
|
1399
|
-
platform_name: Joi.string().allow(""),
|
|
1400
|
-
amount_to_be_collected: Joi.number(),
|
|
1401
|
-
amount_paid: Joi.number(),
|
|
1402
|
-
waybills: Joi.array().items(Joi.any()),
|
|
1403
|
-
total_items: Joi.number(),
|
|
1404
|
-
brand_logo: Joi.string().allow(""),
|
|
1405
|
-
shipment_id_barcode: Joi.string().allow(""),
|
|
1406
|
-
signed_qrcode: Joi.string().allow(""),
|
|
1407
|
-
upi_qrcode: Joi.string().allow(""),
|
|
1408
|
-
digitalsignature: Joi.string().allow(""),
|
|
1409
|
-
awb_number_barcode: Joi.string().allow(""),
|
|
1410
|
-
uid: Joi.string().allow(""),
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
/** @returns {DummyTemplateData} */
|
|
1415
|
-
static DummyTemplateData() {
|
|
1416
|
-
return Joi.object({
|
|
1417
|
-
_id: Joi.string().allow(""),
|
|
1418
|
-
pdf_type_id: Joi.number(),
|
|
1419
|
-
payload: FileStoragePlatformModel.DummyTemplateDataPayload().required(),
|
|
1420
|
-
country_code: Joi.string().allow(""),
|
|
1421
|
-
__v: Joi.number(),
|
|
1422
|
-
});
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
/** @returns {savePdfPayload} */
|
|
1426
|
-
static savePdfPayload() {
|
|
1427
|
-
return Joi.object({
|
|
1428
|
-
pdf_type_id: Joi.number(),
|
|
1429
|
-
payload: FileStoragePlatformModel.DummyTemplateDataPayload(),
|
|
1430
|
-
country_code: Joi.string().allow(""),
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
/** @returns {DummyPayloadById} */
|
|
1435
|
-
static DummyPayloadById() {
|
|
1436
|
-
return Joi.object({
|
|
1437
|
-
_id: Joi.string().allow(""),
|
|
1438
|
-
pdf_type_id: Joi.number(),
|
|
1439
|
-
payload: FileStoragePlatformModel.DummyTemplateDataPayload(),
|
|
1440
|
-
country_code: Joi.string().allow(""),
|
|
1441
|
-
__v: Joi.number(),
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
/** @returns {DummyTemplateDataItems} */
|
|
1446
|
-
static DummyTemplateDataItems() {
|
|
1447
|
-
return Joi.object({
|
|
1448
|
-
data: Joi.array()
|
|
1449
|
-
.items(FileStoragePlatformModel.DummyTemplateData())
|
|
1450
|
-
.required(),
|
|
1451
|
-
success: Joi.boolean().required(),
|
|
1452
|
-
});
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
357
|
/** @returns {PdfConfig} */
|
|
1456
358
|
static PdfConfig() {
|
|
1457
359
|
return Joi.object({
|
|
@@ -1474,7 +376,6 @@ class FileStoragePlatformModel {
|
|
|
1474
376
|
template: Joi.string().allow(""),
|
|
1475
377
|
__v: Joi.number(),
|
|
1476
378
|
country_code: Joi.string().allow(""),
|
|
1477
|
-
default_template: Joi.boolean(),
|
|
1478
379
|
});
|
|
1479
380
|
}
|
|
1480
381
|
|
|
@@ -1507,18 +408,6 @@ class FileStoragePlatformModel {
|
|
|
1507
408
|
});
|
|
1508
409
|
}
|
|
1509
410
|
|
|
1510
|
-
/** @returns {Document} */
|
|
1511
|
-
static Document() {
|
|
1512
|
-
return Joi.object({
|
|
1513
|
-
_id: Joi.string().allow(""),
|
|
1514
|
-
pdf_type_id: Joi.number(),
|
|
1515
|
-
format: Joi.string().allow(""),
|
|
1516
|
-
template: Joi.string().allow(""),
|
|
1517
|
-
country_code: Joi.string().allow(""),
|
|
1518
|
-
__v: Joi.number(),
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
411
|
/** @returns {PaymentReceiptRequestBody} */
|
|
1523
412
|
static PaymentReceiptRequestBody() {
|
|
1524
413
|
return Joi.object({
|
|
@@ -1600,7 +489,7 @@ class FileStoragePlatformModel {
|
|
|
1600
489
|
return Joi.object({
|
|
1601
490
|
job_type: Joi.string().allow(""),
|
|
1602
491
|
action: Joi.string().allow(""),
|
|
1603
|
-
event: Joi.any(),
|
|
492
|
+
event: Joi.object().pattern(/\S/, Joi.any()),
|
|
1604
493
|
organizaton_id: Joi.string().allow(""),
|
|
1605
494
|
company_id: Joi.number(),
|
|
1606
495
|
application_id: Joi.array().items(Joi.string().allow("")),
|
|
@@ -1608,7 +497,7 @@ class FileStoragePlatformModel {
|
|
|
1608
497
|
trace_id: Joi.array().items(Joi.string().allow("")),
|
|
1609
498
|
created_timestamp: Joi.number(),
|
|
1610
499
|
service: FileStoragePlatformModel.PaymentReceiptService(),
|
|
1611
|
-
event_trace_info: Joi.any(),
|
|
500
|
+
event_trace_info: Joi.object().pattern(/\S/, Joi.any()),
|
|
1612
501
|
trace: Joi.string().allow(""),
|
|
1613
502
|
});
|
|
1614
503
|
}
|