@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,91 +1,49 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {
|
|
6
|
-
* @property {string} [method]
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @typedef AwbNumberLabelBarcodeGenerator
|
|
11
|
-
* @property {KwargsAwbNumber} [kwargs]
|
|
12
|
-
* @property {string} [method]
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @typedef Brand
|
|
17
|
-
* @property {string} [logo]
|
|
18
|
-
* @property {string} [name]
|
|
4
|
+
* @typedef FailedResponse
|
|
5
|
+
* @property {string} message
|
|
19
6
|
*/
|
|
20
7
|
|
|
21
8
|
/**
|
|
22
9
|
* @typedef CDN
|
|
10
|
+
* @property {string} url
|
|
23
11
|
* @property {string} absolute_url
|
|
24
12
|
* @property {string} relative_url
|
|
25
|
-
* @property {string} url
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @typedef Cgst
|
|
30
|
-
* @property {number} [percent]
|
|
31
|
-
* @property {number} [value]
|
|
32
13
|
*/
|
|
33
14
|
|
|
34
15
|
/**
|
|
35
|
-
* @typedef
|
|
36
|
-
* @property {
|
|
37
|
-
* @property {
|
|
38
|
-
* @property {string} [business_country_timezone]
|
|
39
|
-
* @property {string} [cin]
|
|
40
|
-
* @property {string} [city]
|
|
41
|
-
* @property {string} [country]
|
|
42
|
-
* @property {string} [country_code]
|
|
43
|
-
* @property {string} [display_address]
|
|
44
|
-
* @property {string} [email]
|
|
45
|
-
* @property {string} [gstin]
|
|
46
|
-
* @property {string} [name]
|
|
47
|
-
* @property {string} [pan]
|
|
48
|
-
* @property {Object} [phone]
|
|
49
|
-
* @property {string} [phone_no]
|
|
50
|
-
* @property {string} [sector]
|
|
51
|
-
* @property {string} [state]
|
|
52
|
-
* @property {string} [state_code]
|
|
53
|
-
* @property {string} [trn]
|
|
54
|
-
* @property {string} [vat]
|
|
55
|
-
* @property {string} [website_url]
|
|
56
|
-
* @property {number} [zip_code]
|
|
16
|
+
* @typedef Upload
|
|
17
|
+
* @property {number} expiry
|
|
18
|
+
* @property {string} url
|
|
57
19
|
*/
|
|
58
20
|
|
|
59
21
|
/**
|
|
60
|
-
* @typedef
|
|
61
|
-
* @property {string} _id
|
|
62
|
-
* @property {CDN} cdn
|
|
63
|
-
* @property {number} company_id
|
|
64
|
-
* @property {string} content_type
|
|
65
|
-
* @property {CreatedBy} [created_by]
|
|
66
|
-
* @property {string} created_on
|
|
22
|
+
* @typedef StartResponse
|
|
67
23
|
* @property {string} file_name
|
|
68
24
|
* @property {string} file_path
|
|
69
|
-
* @property {string}
|
|
25
|
+
* @property {string} content_type
|
|
26
|
+
* @property {string} [method]
|
|
70
27
|
* @property {string} namespace
|
|
71
28
|
* @property {string} operation
|
|
72
29
|
* @property {number} size
|
|
73
|
-
* @property {boolean} success
|
|
74
|
-
* @property {string[]} [tags]
|
|
75
30
|
* @property {Upload} upload
|
|
31
|
+
* @property {CDN} cdn
|
|
32
|
+
* @property {string[]} [tags]
|
|
76
33
|
*/
|
|
77
34
|
|
|
78
35
|
/**
|
|
79
|
-
* @typedef
|
|
80
|
-
* @property {string} [
|
|
81
|
-
* @property {Object} [rates]
|
|
82
|
-
* @property {number} [timestamp]
|
|
36
|
+
* @typedef Params
|
|
37
|
+
* @property {string} [subpath] - The subpath for the file.
|
|
83
38
|
*/
|
|
84
39
|
|
|
85
40
|
/**
|
|
86
|
-
* @typedef
|
|
87
|
-
* @property {
|
|
88
|
-
* @property {string
|
|
41
|
+
* @typedef StartRequest
|
|
42
|
+
* @property {string} file_name
|
|
43
|
+
* @property {string} content_type
|
|
44
|
+
* @property {number} size
|
|
45
|
+
* @property {string[]} [tags]
|
|
46
|
+
* @property {Params} [params]
|
|
89
47
|
*/
|
|
90
48
|
|
|
91
49
|
/**
|
|
@@ -94,147 +52,106 @@ const Joi = require("joi");
|
|
|
94
52
|
*/
|
|
95
53
|
|
|
96
54
|
/**
|
|
97
|
-
* @typedef
|
|
98
|
-
* @property {string}
|
|
99
|
-
* @property {string}
|
|
100
|
-
* @property {string}
|
|
101
|
-
* @property {string}
|
|
102
|
-
* @property {string}
|
|
103
|
-
* @property {string}
|
|
104
|
-
* @property {
|
|
105
|
-
* @property {
|
|
106
|
-
* @property {
|
|
107
|
-
* @property {
|
|
108
|
-
* @property {
|
|
109
|
-
* @property {string} [
|
|
110
|
-
* @property {string}
|
|
55
|
+
* @typedef CompleteResponse
|
|
56
|
+
* @property {string} _id
|
|
57
|
+
* @property {string} file_name
|
|
58
|
+
* @property {string} file_path
|
|
59
|
+
* @property {string} content_type
|
|
60
|
+
* @property {string} namespace
|
|
61
|
+
* @property {string} operation
|
|
62
|
+
* @property {number} company_id
|
|
63
|
+
* @property {number} size
|
|
64
|
+
* @property {Upload} upload
|
|
65
|
+
* @property {CDN} cdn
|
|
66
|
+
* @property {boolean} success
|
|
67
|
+
* @property {string[]} [tags]
|
|
68
|
+
* @property {string} created_on
|
|
69
|
+
* @property {string} modified_on
|
|
70
|
+
* @property {CreatedBy} [created_by]
|
|
111
71
|
*/
|
|
112
72
|
|
|
113
73
|
/**
|
|
114
|
-
* @typedef
|
|
115
|
-
* @property {string} [
|
|
116
|
-
* @property {string} [city]
|
|
117
|
-
* @property {string} [country]
|
|
118
|
-
* @property {string} [country_code]
|
|
119
|
-
* @property {string} [display_address]
|
|
120
|
-
* @property {string} [gstin]
|
|
121
|
-
* @property {string} [name]
|
|
122
|
-
* @property {string} [phone_no]
|
|
123
|
-
* @property {string} [sector]
|
|
124
|
-
* @property {string} [state]
|
|
125
|
-
* @property {string} [state_code]
|
|
126
|
-
* @property {string} [zip_code]
|
|
74
|
+
* @typedef DestinationNamespace
|
|
75
|
+
* @property {string} [namespace]
|
|
127
76
|
*/
|
|
128
77
|
|
|
129
78
|
/**
|
|
130
|
-
* @typedef
|
|
131
|
-
* @property {string} [
|
|
132
|
-
* @property {
|
|
133
|
-
* @property {string} [destination]
|
|
134
|
-
* @property {string} [eway_bill_number]
|
|
135
|
-
* @property {string} [name]
|
|
136
|
-
* @property {string} [origin]
|
|
79
|
+
* @typedef CopyFiles
|
|
80
|
+
* @property {string[]} [urls]
|
|
81
|
+
* @property {DestinationNamespace} destination
|
|
137
82
|
*/
|
|
138
83
|
|
|
139
84
|
/**
|
|
140
|
-
* @typedef
|
|
141
|
-
* @property {string}
|
|
85
|
+
* @typedef Urls
|
|
86
|
+
* @property {string} url
|
|
87
|
+
* @property {string} signed_url
|
|
88
|
+
* @property {number} expiry
|
|
142
89
|
*/
|
|
143
90
|
|
|
144
91
|
/**
|
|
145
|
-
* @typedef
|
|
146
|
-
* @property {
|
|
147
|
-
* @property {string} [method]
|
|
92
|
+
* @typedef SignUrlResponse
|
|
93
|
+
* @property {Urls[]} urls
|
|
148
94
|
*/
|
|
149
95
|
|
|
150
96
|
/**
|
|
151
|
-
* @typedef
|
|
152
|
-
* @property {number}
|
|
153
|
-
* @property {string}
|
|
154
|
-
* @property {string} [country_code]
|
|
155
|
-
* @property {string} [format]
|
|
156
|
-
* @property {number} [pdf_type_id]
|
|
157
|
-
* @property {string} [template]
|
|
97
|
+
* @typedef SignUrlRequest
|
|
98
|
+
* @property {number} expiry
|
|
99
|
+
* @property {string[]} urls
|
|
158
100
|
*/
|
|
159
101
|
|
|
160
102
|
/**
|
|
161
|
-
* @typedef
|
|
162
|
-
* @property {
|
|
163
|
-
* @property {string}
|
|
103
|
+
* @typedef InvoiceTypesDataResponse
|
|
104
|
+
* @property {boolean} [status]
|
|
105
|
+
* @property {string} _id
|
|
106
|
+
* @property {number} pdf_type_id
|
|
107
|
+
* @property {string} name
|
|
108
|
+
* @property {string[]} format
|
|
109
|
+
* @property {number} __v
|
|
110
|
+
* @property {boolean} visibility
|
|
164
111
|
* @property {string} [country_code]
|
|
165
|
-
* @property {DummyTemplateDataPayload} payload
|
|
166
|
-
* @property {number} [pdf_type_id]
|
|
167
112
|
*/
|
|
168
113
|
|
|
169
114
|
/**
|
|
170
|
-
* @typedef
|
|
171
|
-
* @property {
|
|
115
|
+
* @typedef InvoiceTypesResponse
|
|
116
|
+
* @property {InvoiceTypesDataResponse[]} data
|
|
172
117
|
* @property {boolean} success
|
|
173
118
|
*/
|
|
174
119
|
|
|
175
120
|
/**
|
|
176
|
-
* @typedef
|
|
177
|
-
* @property {
|
|
178
|
-
* @property {number} [
|
|
179
|
-
* @property {string} [
|
|
180
|
-
* @property {string} [
|
|
181
|
-
* @property {Object} [b2b_buyer_details]
|
|
182
|
-
* @property {string} [brand_logo]
|
|
183
|
-
* @property {CompanyDetail} [company_detail]
|
|
184
|
-
* @property {ConversionRate} [conversion_rate]
|
|
185
|
-
* @property {string} [credit_note_id]
|
|
186
|
-
* @property {string} [currency_code]
|
|
187
|
-
* @property {string} [current_date]
|
|
188
|
-
* @property {CustomerBillingDetail} [customer_billing_detail]
|
|
189
|
-
* @property {CustomerShippingDetail} [customer_shipping_detail]
|
|
190
|
-
* @property {string[]} [declaration_texts]
|
|
191
|
-
* @property {DeliveryPartnerDetail} [delivery_partner_detail]
|
|
192
|
-
* @property {string} [digitalsignature]
|
|
193
|
-
* @property {string} [disclaimer]
|
|
194
|
-
* @property {Image} [image]
|
|
195
|
-
* @property {InvoiceDetail} [invoice_detail]
|
|
196
|
-
* @property {boolean} [is_export]
|
|
197
|
-
* @property {boolean} [is_export_shipment]
|
|
198
|
-
* @property {Object} [is_qwik]
|
|
199
|
-
* @property {boolean} [is_self_pickup]
|
|
200
|
-
* @property {boolean} [is_self_ship]
|
|
201
|
-
* @property {Meta} [meta]
|
|
202
|
-
* @property {string} [mode]
|
|
203
|
-
* @property {string} [order_type]
|
|
204
|
-
* @property {PaymentData[]} [payments]
|
|
205
|
-
* @property {string} [platform_name]
|
|
206
|
-
* @property {string} [po_number]
|
|
207
|
-
* @property {ProductTable} [product_table]
|
|
208
|
-
* @property {RegisteredCompanyDetail} [registered_company_detail]
|
|
209
|
-
* @property {ReturnDetail} [return_detail]
|
|
210
|
-
* @property {string} [shipment_id]
|
|
211
|
-
* @property {string} [shipment_id_barcode]
|
|
212
|
-
* @property {string} [signed_qrcode]
|
|
213
|
-
* @property {StoreDetail} [store_detail]
|
|
214
|
-
* @property {TaxTable} [tax_table]
|
|
215
|
-
* @property {number} [total_items]
|
|
216
|
-
* @property {number} [total_value_of_goods]
|
|
217
|
-
* @property {string} [txn_id]
|
|
218
|
-
* @property {string} [uid]
|
|
219
|
-
* @property {string} [upi_qrcode]
|
|
220
|
-
* @property {string} [utr]
|
|
221
|
-
* @property {Object[]} [waybills]
|
|
121
|
+
* @typedef Inr
|
|
122
|
+
* @property {string} [name]
|
|
123
|
+
* @property {number} [value]
|
|
124
|
+
* @property {string} [symbol]
|
|
125
|
+
* @property {string} [sub_unit]
|
|
222
126
|
*/
|
|
223
127
|
|
|
224
128
|
/**
|
|
225
|
-
* @typedef
|
|
226
|
-
* @property {string} [
|
|
129
|
+
* @typedef Usd
|
|
130
|
+
* @property {string} [name]
|
|
131
|
+
* @property {number} [value]
|
|
132
|
+
* @property {string} [symbol]
|
|
133
|
+
* @property {string} [sub_unit]
|
|
227
134
|
*/
|
|
228
135
|
|
|
229
136
|
/**
|
|
230
|
-
* @typedef
|
|
231
|
-
* @property {
|
|
137
|
+
* @typedef Rates
|
|
138
|
+
* @property {Inr} [inr]
|
|
139
|
+
* @property {Usd} [usd]
|
|
232
140
|
*/
|
|
233
141
|
|
|
234
142
|
/**
|
|
235
|
-
* @typedef
|
|
236
|
-
* @property {
|
|
237
|
-
* @property {
|
|
143
|
+
* @typedef ConversionRate
|
|
144
|
+
* @property {string} [base]
|
|
145
|
+
* @property {Rates} [rates]
|
|
146
|
+
* @property {number} [timestamp]
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @typedef DeliveryPartnerDetail
|
|
151
|
+
* @property {string} [name]
|
|
152
|
+
* @property {string} [awb_number_barcode]
|
|
153
|
+
* @property {string} [awb_number]
|
|
154
|
+
* @property {string} [eway_bill_number]
|
|
238
155
|
*/
|
|
239
156
|
|
|
240
157
|
/**
|
|
@@ -242,466 +159,601 @@ const Joi = require("joi");
|
|
|
242
159
|
* @property {string} [sales_channel_logo]
|
|
243
160
|
*/
|
|
244
161
|
|
|
162
|
+
/**
|
|
163
|
+
* @typedef PaymentData
|
|
164
|
+
* @property {string} [payment_type]
|
|
165
|
+
* @property {number} [amount]
|
|
166
|
+
* @property {string} [date]
|
|
167
|
+
* @property {string} [transaction_id]
|
|
168
|
+
*/
|
|
169
|
+
|
|
245
170
|
/**
|
|
246
171
|
* @typedef InvoiceDetail
|
|
247
|
-
* @property {string} [channel_order_id]
|
|
248
|
-
* @property {string} [device_id]
|
|
249
|
-
* @property {string} [external_order_id]
|
|
250
|
-
* @property {string} [invoice_date]
|
|
251
172
|
* @property {string} [invoice_id]
|
|
173
|
+
* @property {string} [invoice_date]
|
|
252
174
|
* @property {string} [irn]
|
|
253
|
-
* @property {string} [
|
|
254
|
-
* @property {string} [marketplace_shipment_id]
|
|
175
|
+
* @property {string} [external_order_id]
|
|
255
176
|
* @property {string} [shipment_id]
|
|
256
177
|
* @property {string} [signed_qrcode]
|
|
257
178
|
* @property {string} [upi_qrcode]
|
|
258
179
|
*/
|
|
259
180
|
|
|
260
181
|
/**
|
|
261
|
-
* @typedef
|
|
262
|
-
* @property {
|
|
263
|
-
* @property {string}
|
|
264
|
-
* @property {string}
|
|
265
|
-
* @property {string[]
|
|
266
|
-
* @property {string}
|
|
267
|
-
* @property {number}
|
|
268
|
-
* @property {
|
|
269
|
-
* @property {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
* @
|
|
274
|
-
* @property {
|
|
275
|
-
* @property {
|
|
182
|
+
* @typedef CompanyDetail
|
|
183
|
+
* @property {string} [name]
|
|
184
|
+
* @property {string} [address]
|
|
185
|
+
* @property {string} [city]
|
|
186
|
+
* @property {string} [state]
|
|
187
|
+
* @property {string} [country]
|
|
188
|
+
* @property {number} [zip_code]
|
|
189
|
+
* @property {string} [state_code]
|
|
190
|
+
* @property {string} [country_code]
|
|
191
|
+
* @property {string} [gstin]
|
|
192
|
+
* @property {string} [pan]
|
|
193
|
+
* @property {string} [phone_no]
|
|
194
|
+
* @property {string} [cin]
|
|
195
|
+
* @property {string} [website_url]
|
|
196
|
+
* @property {string} [email]
|
|
276
197
|
*/
|
|
277
198
|
|
|
278
199
|
/**
|
|
279
|
-
* @typedef
|
|
280
|
-
* @property {
|
|
281
|
-
* @property {string} [
|
|
282
|
-
* @property {
|
|
283
|
-
* @property {string} [
|
|
284
|
-
* @property {string} [
|
|
285
|
-
* @property {
|
|
286
|
-
* @property {
|
|
287
|
-
* @property {string} [
|
|
288
|
-
* @property {string} [
|
|
289
|
-
* @property {string} [size]
|
|
290
|
-
* @property {Tax} [tax]
|
|
291
|
-
* @property {number} [taxable_amount]
|
|
292
|
-
* @property {number} [total]
|
|
293
|
-
* @property {number} [total_taxable_amount]
|
|
294
|
-
* @property {number} [total_units]
|
|
200
|
+
* @typedef StoreDetail
|
|
201
|
+
* @property {string} [store_name]
|
|
202
|
+
* @property {string} [address]
|
|
203
|
+
* @property {string} [city]
|
|
204
|
+
* @property {string} [state]
|
|
205
|
+
* @property {string} [country]
|
|
206
|
+
* @property {string} [country_code]
|
|
207
|
+
* @property {string} [zip_code]
|
|
208
|
+
* @property {string} [state_code]
|
|
209
|
+
* @property {string} [gstin]
|
|
295
210
|
*/
|
|
296
211
|
|
|
297
212
|
/**
|
|
298
|
-
* @typedef
|
|
299
|
-
* @property {string} [
|
|
213
|
+
* @typedef CustomerBillingDetail
|
|
214
|
+
* @property {string} [name]
|
|
215
|
+
* @property {string} [phone_no]
|
|
216
|
+
* @property {string} [address]
|
|
217
|
+
* @property {string} [city]
|
|
218
|
+
* @property {string} [state]
|
|
219
|
+
* @property {string} [country]
|
|
220
|
+
* @property {string} [country_code]
|
|
221
|
+
* @property {string} [zip_code]
|
|
222
|
+
* @property {string} [state_code]
|
|
223
|
+
* @property {string} [gstin]
|
|
300
224
|
*/
|
|
301
225
|
|
|
302
226
|
/**
|
|
303
|
-
* @typedef
|
|
304
|
-
* @property {
|
|
227
|
+
* @typedef CustomerShippingDetail
|
|
228
|
+
* @property {string} [name]
|
|
229
|
+
* @property {string} [phone_no]
|
|
230
|
+
* @property {string} [address]
|
|
231
|
+
* @property {string} [city]
|
|
232
|
+
* @property {string} [state]
|
|
233
|
+
* @property {string} [country]
|
|
234
|
+
* @property {string} [country_code]
|
|
235
|
+
* @property {string} [zip_code]
|
|
236
|
+
* @property {string} [state_code]
|
|
237
|
+
* @property {string} [gstin]
|
|
305
238
|
*/
|
|
306
239
|
|
|
307
240
|
/**
|
|
308
|
-
* @typedef
|
|
309
|
-
* @property {string} [
|
|
310
|
-
* @property {string} [
|
|
241
|
+
* @typedef ReturnDetail
|
|
242
|
+
* @property {string} [address]
|
|
243
|
+
* @property {string} [city]
|
|
244
|
+
* @property {string} [state]
|
|
245
|
+
* @property {string} [country]
|
|
246
|
+
* @property {string} [country_code]
|
|
247
|
+
* @property {string} [zip_code]
|
|
248
|
+
* @property {string} [state_code]
|
|
249
|
+
* @property {string} [gstin]
|
|
311
250
|
*/
|
|
312
251
|
|
|
313
252
|
/**
|
|
314
|
-
* @typedef
|
|
315
|
-
* @property {
|
|
253
|
+
* @typedef Brand
|
|
254
|
+
* @property {string} [logo]
|
|
255
|
+
* @property {string} [name]
|
|
316
256
|
*/
|
|
317
257
|
|
|
318
258
|
/**
|
|
319
|
-
* @typedef
|
|
320
|
-
* @property {
|
|
321
|
-
* @property {
|
|
322
|
-
* @property {DigitalsignatureGenerator} [digitalsignature_generator]
|
|
323
|
-
* @property {ShipmentIdBarcodeGenerator} [shipment_id_barcode_generator]
|
|
324
|
-
* @property {SignedQrcodeGenerator} [signed_qrcode_generator]
|
|
325
|
-
* @property {UpiQrcodeGenerator} [upi_qrcode_generator]
|
|
259
|
+
* @typedef Cgst
|
|
260
|
+
* @property {number} [value]
|
|
261
|
+
* @property {number} [percent]
|
|
326
262
|
*/
|
|
327
263
|
|
|
328
264
|
/**
|
|
329
|
-
* @typedef
|
|
330
|
-
* @property {number} [
|
|
331
|
-
* @property {
|
|
332
|
-
* @property {Object} [meta]
|
|
333
|
-
* @property {string} [mode]
|
|
334
|
-
* @property {string} [name]
|
|
335
|
-
* @property {string} [payment_type]
|
|
336
|
-
* @property {string} [time]
|
|
337
|
-
* @property {string} [transaction_id]
|
|
265
|
+
* @typedef Sgst
|
|
266
|
+
* @property {number} [value]
|
|
267
|
+
* @property {number} [percent]
|
|
338
268
|
*/
|
|
339
269
|
|
|
340
270
|
/**
|
|
341
|
-
* @typedef
|
|
342
|
-
* @property {
|
|
343
|
-
* @property {
|
|
344
|
-
* @property {string} [id]
|
|
345
|
-
* @property {string} [last_name]
|
|
346
|
-
* @property {string} [mobile_number]
|
|
271
|
+
* @typedef Igst
|
|
272
|
+
* @property {number} [value]
|
|
273
|
+
* @property {number} [percent]
|
|
347
274
|
*/
|
|
348
275
|
|
|
349
276
|
/**
|
|
350
|
-
* @typedef
|
|
351
|
-
* @property {
|
|
277
|
+
* @typedef Tax
|
|
278
|
+
* @property {Cgst} [cgst]
|
|
279
|
+
* @property {Sgst} [sgst]
|
|
280
|
+
* @property {Igst} [igst]
|
|
352
281
|
*/
|
|
353
282
|
|
|
354
283
|
/**
|
|
355
|
-
* @typedef
|
|
356
|
-
* @property {string} [
|
|
357
|
-
* @property {string
|
|
358
|
-
* @property {number} [
|
|
359
|
-
* @property {
|
|
360
|
-
* @property {
|
|
361
|
-
* @property {
|
|
362
|
-
* @property {
|
|
363
|
-
* @property {string} [
|
|
364
|
-
* @property {
|
|
365
|
-
* @property {
|
|
366
|
-
* @property {
|
|
367
|
-
* @property {
|
|
284
|
+
* @typedef ItemsProductTable
|
|
285
|
+
* @property {string} [name]
|
|
286
|
+
* @property {string} [seller_identifier]
|
|
287
|
+
* @property {number} [total]
|
|
288
|
+
* @property {Brand} [brand]
|
|
289
|
+
* @property {string} [hsn_code]
|
|
290
|
+
* @property {string} [item_code]
|
|
291
|
+
* @property {number} [total_units]
|
|
292
|
+
* @property {string} [size]
|
|
293
|
+
* @property {number} [mrp]
|
|
294
|
+
* @property {number} [discount]
|
|
295
|
+
* @property {number} [taxable_amount]
|
|
296
|
+
* @property {number} [total_taxable_amount]
|
|
297
|
+
* @property {Tax} [tax]
|
|
368
298
|
*/
|
|
369
299
|
|
|
370
300
|
/**
|
|
371
|
-
* @typedef
|
|
372
|
-
* @property {number} [final_amount]
|
|
373
|
-
* @property {string} [final_amount_in_words]
|
|
374
|
-
* @property {string} [jiomart_order_id]
|
|
375
|
-
* @property {string} [order_created_date]
|
|
376
|
-
* @property {string} [order_created_time]
|
|
377
|
-
* @property {string} [prm_id]
|
|
378
|
-
* @property {string} [receipt_no]
|
|
379
|
-
* @property {PaymentReceiptTaxes} [taxes]
|
|
301
|
+
* @typedef ProductTable
|
|
380
302
|
* @property {number} [total_items]
|
|
303
|
+
* @property {ItemsProductTable[]} [products]
|
|
304
|
+
* @property {number} [grand_total]
|
|
305
|
+
* @property {number} [delivery_charges]
|
|
306
|
+
* @property {string} [delivery_charge_text]
|
|
307
|
+
* @property {number} [cod_charges]
|
|
308
|
+
* @property {number} [fynd_discounts]
|
|
309
|
+
* @property {string} [total_in_words]
|
|
381
310
|
*/
|
|
382
311
|
|
|
383
312
|
/**
|
|
384
|
-
* @typedef
|
|
385
|
-
* @property {
|
|
386
|
-
* @property {
|
|
387
|
-
* @property {
|
|
388
|
-
* @property {string} [uid]
|
|
313
|
+
* @typedef Taxes
|
|
314
|
+
* @property {string} [hsn_code]
|
|
315
|
+
* @property {Tax} [tax]
|
|
316
|
+
* @property {number} [total_tax_value]
|
|
389
317
|
*/
|
|
390
318
|
|
|
391
319
|
/**
|
|
392
|
-
* @typedef
|
|
393
|
-
* @property {
|
|
394
|
-
* @property {
|
|
320
|
+
* @typedef TaxTable
|
|
321
|
+
* @property {Taxes[]} [taxes]
|
|
322
|
+
* @property {number} [total_tax]
|
|
323
|
+
* @property {string} [tax_in_words]
|
|
395
324
|
*/
|
|
396
325
|
|
|
397
326
|
/**
|
|
398
|
-
* @typedef
|
|
399
|
-
* @property {
|
|
400
|
-
* @property {
|
|
327
|
+
* @typedef RegisteredCompanyDetail
|
|
328
|
+
* @property {string} [address]
|
|
329
|
+
* @property {string} [city]
|
|
330
|
+
* @property {string} [state]
|
|
331
|
+
* @property {string} [country]
|
|
332
|
+
* @property {string} [country_code]
|
|
333
|
+
* @property {number} [zip_code]
|
|
334
|
+
* @property {string} [state_code]
|
|
401
335
|
*/
|
|
402
336
|
|
|
403
337
|
/**
|
|
404
|
-
* @typedef
|
|
405
|
-
* @property {string} [
|
|
338
|
+
* @typedef Kwargs
|
|
339
|
+
* @property {string} [value]
|
|
406
340
|
*/
|
|
407
341
|
|
|
408
342
|
/**
|
|
409
|
-
* @typedef
|
|
410
|
-
* @property {string} [
|
|
411
|
-
* @property {
|
|
343
|
+
* @typedef ShipmentIdBarcodeGenerator
|
|
344
|
+
* @property {string} [method]
|
|
345
|
+
* @property {Kwargs} [kwargs]
|
|
412
346
|
*/
|
|
413
347
|
|
|
414
348
|
/**
|
|
415
|
-
* @typedef
|
|
416
|
-
* @property {string} [
|
|
417
|
-
* @property {
|
|
418
|
-
* @property {string} [template] - This is html template string
|
|
349
|
+
* @typedef SignedQrcodeGenerator
|
|
350
|
+
* @property {string} [method]
|
|
351
|
+
* @property {Kwargs} [kwargs]
|
|
419
352
|
*/
|
|
420
353
|
|
|
421
354
|
/**
|
|
422
|
-
* @typedef
|
|
423
|
-
* @property {
|
|
424
|
-
* @property {
|
|
355
|
+
* @typedef KwargsUpiQrcode
|
|
356
|
+
* @property {string} [qr_data]
|
|
357
|
+
* @property {string} [qr_url]
|
|
425
358
|
*/
|
|
426
359
|
|
|
427
360
|
/**
|
|
428
|
-
* @typedef
|
|
429
|
-
* @property {
|
|
430
|
-
* @property {
|
|
431
|
-
* @property {string} [application_id]
|
|
432
|
-
* @property {number} [company_id]
|
|
433
|
-
* @property {string} [format]
|
|
434
|
-
* @property {number} [pdf_type_id]
|
|
435
|
-
* @property {string} [template]
|
|
361
|
+
* @typedef UpiQrcodeGenerator
|
|
362
|
+
* @property {string} [method]
|
|
363
|
+
* @property {KwargsUpiQrcode} [kwargs]
|
|
436
364
|
*/
|
|
437
365
|
|
|
438
366
|
/**
|
|
439
|
-
* @typedef
|
|
440
|
-
* @property {
|
|
441
|
-
* @property {
|
|
367
|
+
* @typedef DigitalsignatureGenerator
|
|
368
|
+
* @property {string} [method]
|
|
369
|
+
* @property {Kwargs} [kwargs]
|
|
442
370
|
*/
|
|
443
371
|
|
|
444
372
|
/**
|
|
445
|
-
* @typedef
|
|
446
|
-
* @property {
|
|
447
|
-
* @property {string} [_id]
|
|
448
|
-
* @property {string} [application_id]
|
|
449
|
-
* @property {number} [company_id]
|
|
450
|
-
* @property {string} [country_code]
|
|
451
|
-
* @property {string} [format]
|
|
452
|
-
* @property {number} [pdf_type_id]
|
|
453
|
-
* @property {string} [template]
|
|
373
|
+
* @typedef KwargsAwbNumber
|
|
374
|
+
* @property {Object[]} [value]
|
|
454
375
|
*/
|
|
455
376
|
|
|
456
377
|
/**
|
|
457
|
-
* @typedef
|
|
458
|
-
* @property {
|
|
459
|
-
* @property {
|
|
378
|
+
* @typedef AwbNumberLabelBarcodeGenerator
|
|
379
|
+
* @property {string} [method]
|
|
380
|
+
* @property {KwargsAwbNumber} [kwargs]
|
|
460
381
|
*/
|
|
461
382
|
|
|
462
383
|
/**
|
|
463
|
-
* @typedef
|
|
464
|
-
* @property {
|
|
465
|
-
* @property {
|
|
466
|
-
* @property {
|
|
467
|
-
* @property {
|
|
468
|
-
* @property {
|
|
469
|
-
* @property {number} [fynd_discounts]
|
|
470
|
-
* @property {number} [gift_price]
|
|
471
|
-
* @property {number} [grand_total]
|
|
472
|
-
* @property {ItemsProductTable[]} [products]
|
|
473
|
-
* @property {number} [promotion]
|
|
474
|
-
* @property {number} [reward]
|
|
475
|
-
* @property {number} [round_off]
|
|
476
|
-
* @property {number} [sub_total]
|
|
477
|
-
* @property {string} [total_in_words]
|
|
478
|
-
* @property {number} [total_items]
|
|
479
|
-
* @property {number} [total_quantity]
|
|
480
|
-
* @property {number} [total_value_of_goods]
|
|
384
|
+
* @typedef MetaProperty
|
|
385
|
+
* @property {ShipmentIdBarcodeGenerator} [shipment_id_barcode_generator]
|
|
386
|
+
* @property {SignedQrcodeGenerator} [signed_qrcode_generator]
|
|
387
|
+
* @property {UpiQrcodeGenerator} [upi_qrcode_generator]
|
|
388
|
+
* @property {DigitalsignatureGenerator} [digitalsignature_generator]
|
|
389
|
+
* @property {AwbNumberLabelBarcodeGenerator} [awb_number_label_barcode_generator]
|
|
481
390
|
*/
|
|
482
391
|
|
|
483
392
|
/**
|
|
484
|
-
* @typedef
|
|
485
|
-
* @property {
|
|
486
|
-
* @property {string} [city]
|
|
487
|
-
* @property {string} [country]
|
|
488
|
-
* @property {string} [country_code]
|
|
489
|
-
* @property {string} [display_address]
|
|
490
|
-
* @property {string} [sector]
|
|
491
|
-
* @property {string} [state]
|
|
492
|
-
* @property {string} [state_code]
|
|
493
|
-
* @property {number} [zip_code]
|
|
393
|
+
* @typedef Meta
|
|
394
|
+
* @property {MetaProperty} [generator]
|
|
494
395
|
*/
|
|
495
396
|
|
|
496
397
|
/**
|
|
497
|
-
* @typedef
|
|
498
|
-
* @property {
|
|
499
|
-
* @property {string} [
|
|
500
|
-
* @property {
|
|
501
|
-
* @property {string} [
|
|
502
|
-
* @property {string} [
|
|
503
|
-
* @property {
|
|
504
|
-
* @property {
|
|
505
|
-
* @property {
|
|
506
|
-
* @property {
|
|
507
|
-
* @property {
|
|
398
|
+
* @typedef DummyTemplateDataPayload
|
|
399
|
+
* @property {boolean} [is_international]
|
|
400
|
+
* @property {string} [app_domain_name]
|
|
401
|
+
* @property {ConversionRate} [conversion_rate]
|
|
402
|
+
* @property {string} [currency_code]
|
|
403
|
+
* @property {string} [shipment_id]
|
|
404
|
+
* @property {DeliveryPartnerDetail} [delivery_partner_detail]
|
|
405
|
+
* @property {Image} [image]
|
|
406
|
+
* @property {PaymentData[]} [payments]
|
|
407
|
+
* @property {InvoiceDetail} [invoice_detail]
|
|
408
|
+
* @property {CompanyDetail} [company_detail]
|
|
409
|
+
* @property {StoreDetail} [store_detail]
|
|
410
|
+
* @property {CustomerBillingDetail} [customer_billing_detail]
|
|
411
|
+
* @property {CustomerShippingDetail} [customer_shipping_detail]
|
|
412
|
+
* @property {ReturnDetail} [return_detail]
|
|
413
|
+
* @property {ProductTable} [product_table]
|
|
414
|
+
* @property {TaxTable} [tax_table]
|
|
415
|
+
* @property {string[]} [declaration_texts]
|
|
416
|
+
* @property {RegisteredCompanyDetail} [registered_company_detail]
|
|
417
|
+
* @property {string} [disclaimer]
|
|
418
|
+
* @property {Meta} [meta]
|
|
419
|
+
* @property {boolean} [is_self_ship]
|
|
420
|
+
* @property {string} [mode]
|
|
421
|
+
* @property {boolean} [is_self_pickup]
|
|
422
|
+
* @property {string} [platform_name]
|
|
423
|
+
* @property {number} [amount_to_be_collected]
|
|
424
|
+
* @property {number} [amount_paid]
|
|
425
|
+
* @property {Object[]} [waybills]
|
|
426
|
+
* @property {number} [total_items]
|
|
427
|
+
* @property {string} [brand_logo]
|
|
428
|
+
* @property {string} [shipment_id_barcode]
|
|
429
|
+
* @property {string} [signed_qrcode]
|
|
430
|
+
* @property {string} [upi_qrcode]
|
|
431
|
+
* @property {string} [digitalsignature]
|
|
432
|
+
* @property {string} [awb_number_barcode]
|
|
433
|
+
* @property {string} [uid]
|
|
508
434
|
*/
|
|
509
435
|
|
|
510
436
|
/**
|
|
511
|
-
* @typedef
|
|
512
|
-
* @property {
|
|
513
|
-
* @property {number} [
|
|
437
|
+
* @typedef DummyTemplateData
|
|
438
|
+
* @property {string} [_id]
|
|
439
|
+
* @property {number} [pdf_type_id]
|
|
440
|
+
* @property {DummyTemplateDataPayload} payload
|
|
441
|
+
* @property {number} [__v]
|
|
514
442
|
*/
|
|
515
443
|
|
|
516
444
|
/**
|
|
517
|
-
* @typedef
|
|
518
|
-
* @property {
|
|
519
|
-
* @property {
|
|
445
|
+
* @typedef DummyTemplateDataItems
|
|
446
|
+
* @property {DummyTemplateData[]} data
|
|
447
|
+
* @property {boolean} success
|
|
520
448
|
*/
|
|
521
449
|
|
|
522
450
|
/**
|
|
523
|
-
* @typedef
|
|
524
|
-
* @property {
|
|
525
|
-
* @property {string} [
|
|
451
|
+
* @typedef PdfConfig
|
|
452
|
+
* @property {string} [format] - This is invoice document format such as A4, A6, POS
|
|
453
|
+
* @property {string} [template] - This is html template string
|
|
454
|
+
* @property {number} [pdf_type_id]
|
|
526
455
|
*/
|
|
527
456
|
|
|
528
457
|
/**
|
|
529
|
-
* @typedef
|
|
530
|
-
* @property {
|
|
531
|
-
* @property {
|
|
458
|
+
* @typedef PdfConfigSuccessData
|
|
459
|
+
* @property {string} [_id]
|
|
460
|
+
* @property {number} [company_id]
|
|
461
|
+
* @property {string} [application_id]
|
|
462
|
+
* @property {number} [pdf_type_id]
|
|
463
|
+
* @property {string} [format]
|
|
464
|
+
* @property {string} [template]
|
|
465
|
+
* @property {number} [__v]
|
|
466
|
+
* @property {string} [country_code]
|
|
532
467
|
*/
|
|
533
468
|
|
|
534
469
|
/**
|
|
535
|
-
* @typedef
|
|
536
|
-
* @property {
|
|
470
|
+
* @typedef PdfConfigSuccess
|
|
471
|
+
* @property {PdfConfigSuccessData[]} [data]
|
|
472
|
+
* @property {boolean} [success]
|
|
537
473
|
*/
|
|
538
474
|
|
|
539
475
|
/**
|
|
540
|
-
* @typedef
|
|
541
|
-
* @property {string}
|
|
542
|
-
* @property {
|
|
543
|
-
* @property {
|
|
544
|
-
* @property {number}
|
|
545
|
-
* @property {string
|
|
476
|
+
* @typedef PdfConfigSaveSuccessData
|
|
477
|
+
* @property {string} [_id]
|
|
478
|
+
* @property {number} [company_id]
|
|
479
|
+
* @property {string} [application_id]
|
|
480
|
+
* @property {number} [pdf_type_id]
|
|
481
|
+
* @property {string} [format]
|
|
482
|
+
* @property {string} [template]
|
|
483
|
+
* @property {number} [__v]
|
|
546
484
|
*/
|
|
547
485
|
|
|
548
486
|
/**
|
|
549
|
-
* @typedef
|
|
550
|
-
* @property {
|
|
551
|
-
* @property {
|
|
552
|
-
* @property {string} file_name
|
|
553
|
-
* @property {string} file_path
|
|
554
|
-
* @property {string} [method]
|
|
555
|
-
* @property {string} namespace
|
|
556
|
-
* @property {string} operation
|
|
557
|
-
* @property {number} size
|
|
558
|
-
* @property {string[]} [tags]
|
|
559
|
-
* @property {Upload} upload
|
|
487
|
+
* @typedef PdfConfigSaveSuccess
|
|
488
|
+
* @property {PdfConfigSaveSuccessData} [data]
|
|
489
|
+
* @property {boolean} [success]
|
|
560
490
|
*/
|
|
561
491
|
|
|
562
492
|
/**
|
|
563
|
-
* @typedef
|
|
564
|
-
* @property {
|
|
565
|
-
* @property {
|
|
566
|
-
|
|
493
|
+
* @typedef PdfDefaultTemplateSuccess
|
|
494
|
+
* @property {Document[]} [data]
|
|
495
|
+
* @property {boolean} [success] - Indicates if the request was successful.
|
|
496
|
+
*/
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* @typedef Document
|
|
500
|
+
* @property {string} [_id]
|
|
501
|
+
* @property {number} [pdf_type_id]
|
|
502
|
+
* @property {string} [format]
|
|
503
|
+
* @property {string} [template]
|
|
567
504
|
* @property {string} [country_code]
|
|
568
|
-
* @property {
|
|
569
|
-
* @property {string} [gstin]
|
|
570
|
-
* @property {string} [sector]
|
|
571
|
-
* @property {string} [state]
|
|
572
|
-
* @property {string} [state_code]
|
|
573
|
-
* @property {string} [store_id]
|
|
574
|
-
* @property {string} [store_name]
|
|
575
|
-
* @property {string} [zip_code]
|
|
505
|
+
* @property {number} [__v]
|
|
576
506
|
*/
|
|
577
507
|
|
|
578
508
|
/**
|
|
579
|
-
* @typedef
|
|
580
|
-
* @property {
|
|
581
|
-
* @property {
|
|
582
|
-
* @property {Sgst} [sgst]
|
|
509
|
+
* @typedef PaymentReceiptRequestBody
|
|
510
|
+
* @property {PaymentReceiptPayload} [payload]
|
|
511
|
+
* @property {PaymentReceiptMeta} [meta]
|
|
583
512
|
*/
|
|
584
513
|
|
|
585
514
|
/**
|
|
586
|
-
* @typedef
|
|
587
|
-
* @property {string} [
|
|
588
|
-
* @property {
|
|
589
|
-
* @property {number} [
|
|
515
|
+
* @typedef PaymentReceiptOrderDetails
|
|
516
|
+
* @property {string} [jiomart_order_id]
|
|
517
|
+
* @property {number} [total_items]
|
|
518
|
+
* @property {number} [final_amount]
|
|
519
|
+
* @property {string} [final_amount_in_words]
|
|
520
|
+
* @property {string} [order_created_date]
|
|
521
|
+
* @property {string} [order_created_time]
|
|
522
|
+
* @property {string} [prm_id]
|
|
523
|
+
* @property {string} [receipt_no]
|
|
524
|
+
* @property {PaymentReceiptTaxes} [taxes]
|
|
590
525
|
*/
|
|
591
526
|
|
|
592
527
|
/**
|
|
593
|
-
* @typedef
|
|
594
|
-
* @property {string} [
|
|
595
|
-
* @property {
|
|
596
|
-
* @property {
|
|
528
|
+
* @typedef PaymentReceiptCustomerDetails
|
|
529
|
+
* @property {string} [id]
|
|
530
|
+
* @property {string} [email_id]
|
|
531
|
+
* @property {string} [last_name]
|
|
532
|
+
* @property {string} [first_name]
|
|
533
|
+
* @property {string} [mobile_number]
|
|
597
534
|
*/
|
|
598
535
|
|
|
599
536
|
/**
|
|
600
|
-
* @typedef
|
|
601
|
-
* @property {
|
|
602
|
-
* @property {string} [
|
|
537
|
+
* @typedef PaymentReceiptPayments
|
|
538
|
+
* @property {string} [payment_desc]
|
|
539
|
+
* @property {string} [txn_date]
|
|
603
540
|
*/
|
|
604
541
|
|
|
605
542
|
/**
|
|
606
|
-
* @typedef
|
|
607
|
-
* @property {
|
|
608
|
-
* @property {string} url
|
|
543
|
+
* @typedef PaymentReceiptFormat
|
|
544
|
+
* @property {string[]} [payment_receipt]
|
|
609
545
|
*/
|
|
610
546
|
|
|
611
547
|
/**
|
|
612
|
-
* @typedef
|
|
613
|
-
* @property {
|
|
614
|
-
|
|
615
|
-
|
|
548
|
+
* @typedef PaymentReceiptService
|
|
549
|
+
* @property {string} [name]
|
|
550
|
+
*/
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* @typedef PaymentReceiptTaxes
|
|
554
|
+
* @property {string} [gstin]
|
|
555
|
+
* @property {string} [pancard]
|
|
556
|
+
*/
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* @typedef PaymentReceiptPayload
|
|
560
|
+
* @property {string} [uid]
|
|
561
|
+
* @property {PaymentReceiptOrderDetails} [order_detail]
|
|
562
|
+
* @property {PaymentReceiptCustomerDetails} [customer_detail]
|
|
563
|
+
* @property {PaymentReceiptPayments[]} [payments]
|
|
564
|
+
*/
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* @typedef PaymentReceiptMeta
|
|
568
|
+
* @property {string} [job_type]
|
|
569
|
+
* @property {string} [action]
|
|
570
|
+
* @property {Object} [event]
|
|
571
|
+
* @property {string} [organizaton_id]
|
|
572
|
+
* @property {number} [company_id]
|
|
573
|
+
* @property {string[]} [application_id]
|
|
574
|
+
* @property {PaymentReceiptFormat} [format]
|
|
575
|
+
* @property {string[]} [trace_id]
|
|
576
|
+
* @property {number} [created_timestamp]
|
|
577
|
+
* @property {PaymentReceiptService} [service]
|
|
578
|
+
* @property {Object} [event_trace_info]
|
|
579
|
+
* @property {string} [trace]
|
|
616
580
|
*/
|
|
617
581
|
|
|
618
582
|
class FileStoragePlatformModel {
|
|
619
|
-
/** @returns {
|
|
620
|
-
static
|
|
583
|
+
/** @returns {FailedResponse} */
|
|
584
|
+
static FailedResponse() {
|
|
621
585
|
return Joi.object({
|
|
622
|
-
|
|
586
|
+
message: Joi.string().allow("").required(),
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/** @returns {CDN} */
|
|
591
|
+
static CDN() {
|
|
592
|
+
return Joi.object({
|
|
593
|
+
url: Joi.string().allow("").required(),
|
|
594
|
+
absolute_url: Joi.string().allow("").required(),
|
|
595
|
+
relative_url: Joi.string().allow("").required(),
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/** @returns {Upload} */
|
|
600
|
+
static Upload() {
|
|
601
|
+
return Joi.object({
|
|
602
|
+
expiry: Joi.number().required(),
|
|
603
|
+
url: Joi.string().allow("").required(),
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/** @returns {StartResponse} */
|
|
608
|
+
static StartResponse() {
|
|
609
|
+
return Joi.object({
|
|
610
|
+
file_name: Joi.string().allow("").required(),
|
|
611
|
+
file_path: Joi.string().allow("").required(),
|
|
612
|
+
content_type: Joi.string().allow("").required(),
|
|
623
613
|
method: Joi.string().allow(""),
|
|
614
|
+
namespace: Joi.string().allow("").required(),
|
|
615
|
+
operation: Joi.string().allow("").required(),
|
|
616
|
+
size: Joi.number().required(),
|
|
617
|
+
upload: FileStoragePlatformModel.Upload().required(),
|
|
618
|
+
cdn: FileStoragePlatformModel.CDN().required(),
|
|
619
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
624
620
|
});
|
|
625
621
|
}
|
|
626
622
|
|
|
627
|
-
/** @returns {
|
|
628
|
-
static
|
|
623
|
+
/** @returns {Params} */
|
|
624
|
+
static Params() {
|
|
625
|
+
return Joi.object({
|
|
626
|
+
subpath: Joi.string().allow(""),
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/** @returns {StartRequest} */
|
|
631
|
+
static StartRequest() {
|
|
632
|
+
return Joi.object({
|
|
633
|
+
file_name: Joi.string().allow("").required(),
|
|
634
|
+
content_type: Joi.string().allow("").required(),
|
|
635
|
+
size: Joi.number().required(),
|
|
636
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
637
|
+
params: FileStoragePlatformModel.Params(),
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/** @returns {CreatedBy} */
|
|
642
|
+
static CreatedBy() {
|
|
643
|
+
return Joi.object({
|
|
644
|
+
username: Joi.string().allow(""),
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/** @returns {CompleteResponse} */
|
|
649
|
+
static CompleteResponse() {
|
|
650
|
+
return Joi.object({
|
|
651
|
+
_id: Joi.string().allow("").required(),
|
|
652
|
+
file_name: Joi.string().allow("").required(),
|
|
653
|
+
file_path: Joi.string().allow("").required(),
|
|
654
|
+
content_type: Joi.string().allow("").required(),
|
|
655
|
+
namespace: Joi.string().allow("").required(),
|
|
656
|
+
operation: Joi.string().allow("").required(),
|
|
657
|
+
company_id: Joi.number().required(),
|
|
658
|
+
size: Joi.number().required(),
|
|
659
|
+
upload: FileStoragePlatformModel.Upload().required(),
|
|
660
|
+
cdn: FileStoragePlatformModel.CDN().required(),
|
|
661
|
+
success: Joi.boolean().required(),
|
|
662
|
+
tags: Joi.array().items(Joi.string().allow("")),
|
|
663
|
+
created_on: Joi.string().allow("").required(),
|
|
664
|
+
modified_on: Joi.string().allow("").required(),
|
|
665
|
+
created_by: FileStoragePlatformModel.CreatedBy(),
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/** @returns {DestinationNamespace} */
|
|
670
|
+
static DestinationNamespace() {
|
|
671
|
+
return Joi.object({
|
|
672
|
+
namespace: Joi.string().allow(""),
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/** @returns {CopyFiles} */
|
|
677
|
+
static CopyFiles() {
|
|
678
|
+
return Joi.object({
|
|
679
|
+
urls: Joi.array().items(Joi.string().allow("")),
|
|
680
|
+
destination: FileStoragePlatformModel.DestinationNamespace().required(),
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/** @returns {Urls} */
|
|
685
|
+
static Urls() {
|
|
686
|
+
return Joi.object({
|
|
687
|
+
url: Joi.string().allow("").required(),
|
|
688
|
+
signed_url: Joi.string().allow("").required(),
|
|
689
|
+
expiry: Joi.number().required(),
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/** @returns {SignUrlResponse} */
|
|
694
|
+
static SignUrlResponse() {
|
|
695
|
+
return Joi.object({
|
|
696
|
+
urls: Joi.array().items(FileStoragePlatformModel.Urls()).required(),
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/** @returns {SignUrlRequest} */
|
|
701
|
+
static SignUrlRequest() {
|
|
629
702
|
return Joi.object({
|
|
630
|
-
|
|
631
|
-
|
|
703
|
+
expiry: Joi.number().required(),
|
|
704
|
+
urls: Joi.array().items(Joi.string().allow("")).required(),
|
|
632
705
|
});
|
|
633
706
|
}
|
|
634
707
|
|
|
635
|
-
/** @returns {
|
|
636
|
-
static
|
|
708
|
+
/** @returns {InvoiceTypesDataResponse} */
|
|
709
|
+
static InvoiceTypesDataResponse() {
|
|
637
710
|
return Joi.object({
|
|
638
|
-
|
|
639
|
-
|
|
711
|
+
status: Joi.boolean(),
|
|
712
|
+
_id: Joi.string().allow("").required(),
|
|
713
|
+
pdf_type_id: Joi.number().required(),
|
|
714
|
+
name: Joi.string().allow("").required(),
|
|
715
|
+
format: Joi.array().items(Joi.string().allow("")).required(),
|
|
716
|
+
__v: Joi.number().required(),
|
|
717
|
+
visibility: Joi.boolean().required(),
|
|
718
|
+
country_code: Joi.string().allow(""),
|
|
640
719
|
});
|
|
641
720
|
}
|
|
642
721
|
|
|
643
|
-
/** @returns {
|
|
644
|
-
static
|
|
722
|
+
/** @returns {InvoiceTypesResponse} */
|
|
723
|
+
static InvoiceTypesResponse() {
|
|
645
724
|
return Joi.object({
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
725
|
+
data: Joi.array()
|
|
726
|
+
.items(FileStoragePlatformModel.InvoiceTypesDataResponse())
|
|
727
|
+
.required(),
|
|
728
|
+
success: Joi.boolean().required(),
|
|
649
729
|
});
|
|
650
730
|
}
|
|
651
731
|
|
|
652
|
-
/** @returns {
|
|
653
|
-
static
|
|
732
|
+
/** @returns {Inr} */
|
|
733
|
+
static Inr() {
|
|
654
734
|
return Joi.object({
|
|
655
|
-
|
|
735
|
+
name: Joi.string().allow(""),
|
|
656
736
|
value: Joi.number(),
|
|
737
|
+
symbol: Joi.string().allow(""),
|
|
738
|
+
sub_unit: Joi.string().allow(""),
|
|
657
739
|
});
|
|
658
740
|
}
|
|
659
741
|
|
|
660
|
-
/** @returns {
|
|
661
|
-
static
|
|
742
|
+
/** @returns {Usd} */
|
|
743
|
+
static Usd() {
|
|
662
744
|
return Joi.object({
|
|
663
|
-
address: Joi.string().allow(""),
|
|
664
|
-
business_country_currency: Joi.object().pattern(/\S/, Joi.any()),
|
|
665
|
-
business_country_timezone: Joi.string().allow(""),
|
|
666
|
-
cin: Joi.string().allow(""),
|
|
667
|
-
city: Joi.string().allow(""),
|
|
668
|
-
country: Joi.string().allow(""),
|
|
669
|
-
country_code: Joi.string().allow(""),
|
|
670
|
-
display_address: Joi.string().allow(""),
|
|
671
|
-
email: Joi.string().allow(""),
|
|
672
|
-
gstin: Joi.string().allow(""),
|
|
673
745
|
name: Joi.string().allow(""),
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
sector: Joi.string().allow(""),
|
|
678
|
-
state: Joi.string().allow(""),
|
|
679
|
-
state_code: Joi.string().allow(""),
|
|
680
|
-
trn: Joi.string().allow(""),
|
|
681
|
-
vat: Joi.string().allow(""),
|
|
682
|
-
website_url: Joi.string().allow(""),
|
|
683
|
-
zip_code: Joi.number(),
|
|
746
|
+
value: Joi.number(),
|
|
747
|
+
symbol: Joi.string().allow(""),
|
|
748
|
+
sub_unit: Joi.string().allow(""),
|
|
684
749
|
});
|
|
685
750
|
}
|
|
686
751
|
|
|
687
|
-
/** @returns {
|
|
688
|
-
static
|
|
752
|
+
/** @returns {Rates} */
|
|
753
|
+
static Rates() {
|
|
689
754
|
return Joi.object({
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
company_id: Joi.number().required(),
|
|
693
|
-
content_type: Joi.string().allow("").required(),
|
|
694
|
-
created_by: FileStoragePlatformModel.CreatedBy(),
|
|
695
|
-
created_on: Joi.string().allow("").required(),
|
|
696
|
-
file_name: Joi.string().allow("").required(),
|
|
697
|
-
file_path: Joi.string().allow("").required(),
|
|
698
|
-
modified_on: Joi.string().allow("").required(),
|
|
699
|
-
namespace: Joi.string().allow("").required(),
|
|
700
|
-
operation: Joi.string().allow("").required(),
|
|
701
|
-
size: Joi.number().required(),
|
|
702
|
-
success: Joi.boolean().required(),
|
|
703
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
704
|
-
upload: FileStoragePlatformModel.Upload().required(),
|
|
755
|
+
inr: FileStoragePlatformModel.Inr(),
|
|
756
|
+
usd: FileStoragePlatformModel.Usd(),
|
|
705
757
|
});
|
|
706
758
|
}
|
|
707
759
|
|
|
@@ -709,411 +761,375 @@ class FileStoragePlatformModel {
|
|
|
709
761
|
static ConversionRate() {
|
|
710
762
|
return Joi.object({
|
|
711
763
|
base: Joi.string().allow(""),
|
|
712
|
-
rates:
|
|
764
|
+
rates: FileStoragePlatformModel.Rates(),
|
|
713
765
|
timestamp: Joi.number(),
|
|
714
766
|
});
|
|
715
767
|
}
|
|
716
768
|
|
|
717
|
-
/** @returns {
|
|
718
|
-
static
|
|
769
|
+
/** @returns {DeliveryPartnerDetail} */
|
|
770
|
+
static DeliveryPartnerDetail() {
|
|
719
771
|
return Joi.object({
|
|
720
|
-
|
|
721
|
-
|
|
772
|
+
name: Joi.string().allow(""),
|
|
773
|
+
awb_number_barcode: Joi.string().allow(""),
|
|
774
|
+
awb_number: Joi.string().allow(""),
|
|
775
|
+
eway_bill_number: Joi.string().allow("").allow(null),
|
|
722
776
|
});
|
|
723
777
|
}
|
|
724
778
|
|
|
725
|
-
/** @returns {
|
|
726
|
-
static
|
|
779
|
+
/** @returns {Image} */
|
|
780
|
+
static Image() {
|
|
727
781
|
return Joi.object({
|
|
728
|
-
|
|
782
|
+
sales_channel_logo: Joi.string().allow(""),
|
|
729
783
|
});
|
|
730
784
|
}
|
|
731
785
|
|
|
732
|
-
/** @returns {
|
|
733
|
-
static
|
|
786
|
+
/** @returns {PaymentData} */
|
|
787
|
+
static PaymentData() {
|
|
788
|
+
return Joi.object({
|
|
789
|
+
payment_type: Joi.string().allow(""),
|
|
790
|
+
amount: Joi.number(),
|
|
791
|
+
date: Joi.string().allow(""),
|
|
792
|
+
transaction_id: Joi.string().allow(""),
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/** @returns {InvoiceDetail} */
|
|
797
|
+
static InvoiceDetail() {
|
|
798
|
+
return Joi.object({
|
|
799
|
+
invoice_id: Joi.string().allow(""),
|
|
800
|
+
invoice_date: Joi.string().allow(""),
|
|
801
|
+
irn: Joi.string().allow(""),
|
|
802
|
+
external_order_id: Joi.string().allow(""),
|
|
803
|
+
shipment_id: Joi.string().allow(""),
|
|
804
|
+
signed_qrcode: Joi.string().allow(""),
|
|
805
|
+
upi_qrcode: Joi.string().allow(""),
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/** @returns {CompanyDetail} */
|
|
810
|
+
static CompanyDetail() {
|
|
734
811
|
return Joi.object({
|
|
812
|
+
name: Joi.string().allow(""),
|
|
735
813
|
address: Joi.string().allow(""),
|
|
736
814
|
city: Joi.string().allow(""),
|
|
815
|
+
state: Joi.string().allow(""),
|
|
737
816
|
country: Joi.string().allow(""),
|
|
817
|
+
zip_code: Joi.number(),
|
|
818
|
+
state_code: Joi.string().allow(""),
|
|
738
819
|
country_code: Joi.string().allow(""),
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
gstin: Joi.string().allow("").allow(null),
|
|
742
|
-
name: Joi.string().allow(""),
|
|
820
|
+
gstin: Joi.string().allow(""),
|
|
821
|
+
pan: Joi.string().allow("").allow(null),
|
|
743
822
|
phone_no: Joi.string().allow(""),
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
zip_code: Joi.string().allow(""),
|
|
823
|
+
cin: Joi.string().allow(""),
|
|
824
|
+
website_url: Joi.string().allow(""),
|
|
825
|
+
email: Joi.string().allow(""),
|
|
748
826
|
});
|
|
749
827
|
}
|
|
750
828
|
|
|
751
|
-
/** @returns {
|
|
752
|
-
static
|
|
829
|
+
/** @returns {StoreDetail} */
|
|
830
|
+
static StoreDetail() {
|
|
753
831
|
return Joi.object({
|
|
832
|
+
store_name: Joi.string().allow(""),
|
|
754
833
|
address: Joi.string().allow(""),
|
|
755
834
|
city: Joi.string().allow(""),
|
|
835
|
+
state: Joi.string().allow(""),
|
|
756
836
|
country: Joi.string().allow(""),
|
|
757
837
|
country_code: Joi.string().allow(""),
|
|
758
|
-
display_address: Joi.string().allow(""),
|
|
759
|
-
gstin: Joi.string().allow("").allow(null),
|
|
760
|
-
name: Joi.string().allow(""),
|
|
761
|
-
phone_no: Joi.string().allow(""),
|
|
762
|
-
sector: Joi.string().allow(""),
|
|
763
|
-
state: Joi.string().allow(""),
|
|
764
|
-
state_code: Joi.string().allow(""),
|
|
765
838
|
zip_code: Joi.string().allow(""),
|
|
839
|
+
state_code: Joi.string().allow(""),
|
|
840
|
+
gstin: Joi.string().allow(""),
|
|
766
841
|
});
|
|
767
842
|
}
|
|
768
843
|
|
|
769
|
-
/** @returns {
|
|
770
|
-
static
|
|
844
|
+
/** @returns {CustomerBillingDetail} */
|
|
845
|
+
static CustomerBillingDetail() {
|
|
771
846
|
return Joi.object({
|
|
772
|
-
awb_number: Joi.string().allow(""),
|
|
773
|
-
awb_number_barcode: Joi.string().allow(""),
|
|
774
|
-
destination: Joi.string().allow(""),
|
|
775
|
-
eway_bill_number: Joi.string().allow("").allow(null),
|
|
776
847
|
name: Joi.string().allow(""),
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
static DestinationNamespace() {
|
|
783
|
-
return Joi.object({
|
|
784
|
-
namespace: Joi.string().allow(""),
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/** @returns {DigitalsignatureGenerator} */
|
|
789
|
-
static DigitalsignatureGenerator() {
|
|
790
|
-
return Joi.object({
|
|
791
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
792
|
-
method: Joi.string().allow(""),
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
/** @returns {Document} */
|
|
797
|
-
static Document() {
|
|
798
|
-
return Joi.object({
|
|
799
|
-
__v: Joi.number(),
|
|
800
|
-
_id: Joi.string().allow(""),
|
|
848
|
+
phone_no: Joi.string().allow(""),
|
|
849
|
+
address: Joi.string().allow(""),
|
|
850
|
+
city: Joi.string().allow(""),
|
|
851
|
+
state: Joi.string().allow(""),
|
|
852
|
+
country: Joi.string().allow(""),
|
|
801
853
|
country_code: Joi.string().allow(""),
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
854
|
+
zip_code: Joi.string().allow(""),
|
|
855
|
+
state_code: Joi.string().allow(""),
|
|
856
|
+
gstin: Joi.string().allow("").allow(null),
|
|
805
857
|
});
|
|
806
858
|
}
|
|
807
859
|
|
|
808
|
-
/** @returns {
|
|
809
|
-
static
|
|
860
|
+
/** @returns {CustomerShippingDetail} */
|
|
861
|
+
static CustomerShippingDetail() {
|
|
810
862
|
return Joi.object({
|
|
811
|
-
|
|
812
|
-
|
|
863
|
+
name: Joi.string().allow(""),
|
|
864
|
+
phone_no: Joi.string().allow(""),
|
|
865
|
+
address: Joi.string().allow(""),
|
|
866
|
+
city: Joi.string().allow(""),
|
|
867
|
+
state: Joi.string().allow(""),
|
|
868
|
+
country: Joi.string().allow(""),
|
|
813
869
|
country_code: Joi.string().allow(""),
|
|
814
|
-
|
|
815
|
-
|
|
870
|
+
zip_code: Joi.string().allow(""),
|
|
871
|
+
state_code: Joi.string().allow(""),
|
|
872
|
+
gstin: Joi.string().allow("").allow(null),
|
|
816
873
|
});
|
|
817
874
|
}
|
|
818
875
|
|
|
819
|
-
/** @returns {
|
|
820
|
-
static
|
|
876
|
+
/** @returns {ReturnDetail} */
|
|
877
|
+
static ReturnDetail() {
|
|
821
878
|
return Joi.object({
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
879
|
+
address: Joi.string().allow(""),
|
|
880
|
+
city: Joi.string().allow(""),
|
|
881
|
+
state: Joi.string().allow(""),
|
|
882
|
+
country: Joi.string().allow(""),
|
|
883
|
+
country_code: Joi.string().allow("").allow(null),
|
|
884
|
+
zip_code: Joi.string().allow(""),
|
|
885
|
+
state_code: Joi.string().allow(""),
|
|
886
|
+
gstin: Joi.string().allow(""),
|
|
826
887
|
});
|
|
827
888
|
}
|
|
828
889
|
|
|
829
|
-
/** @returns {
|
|
830
|
-
static
|
|
890
|
+
/** @returns {Brand} */
|
|
891
|
+
static Brand() {
|
|
831
892
|
return Joi.object({
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
app_domain_name: Joi.string().allow(""),
|
|
835
|
-
awb_number_barcode: Joi.string().allow(""),
|
|
836
|
-
b2b_buyer_details: Joi.object().pattern(/\S/, Joi.any()),
|
|
837
|
-
brand_logo: Joi.string().allow(""),
|
|
838
|
-
company_detail: FileStoragePlatformModel.CompanyDetail(),
|
|
839
|
-
conversion_rate: FileStoragePlatformModel.ConversionRate(),
|
|
840
|
-
credit_note_id: Joi.string().allow("").allow(null),
|
|
841
|
-
currency_code: Joi.string().allow(""),
|
|
842
|
-
current_date: Joi.string().allow(""),
|
|
843
|
-
customer_billing_detail: FileStoragePlatformModel.CustomerBillingDetail(),
|
|
844
|
-
customer_shipping_detail: FileStoragePlatformModel.CustomerShippingDetail(),
|
|
845
|
-
declaration_texts: Joi.array().items(Joi.string().allow("")),
|
|
846
|
-
delivery_partner_detail: FileStoragePlatformModel.DeliveryPartnerDetail(),
|
|
847
|
-
digitalsignature: Joi.string().allow(""),
|
|
848
|
-
disclaimer: Joi.string().allow(""),
|
|
849
|
-
image: FileStoragePlatformModel.Image(),
|
|
850
|
-
invoice_detail: FileStoragePlatformModel.InvoiceDetail(),
|
|
851
|
-
is_export: Joi.boolean(),
|
|
852
|
-
is_export_shipment: Joi.boolean(),
|
|
853
|
-
is_qwik: Joi.object().pattern(/\S/, Joi.any()),
|
|
854
|
-
is_self_pickup: Joi.boolean(),
|
|
855
|
-
is_self_ship: Joi.boolean(),
|
|
856
|
-
meta: FileStoragePlatformModel.Meta(),
|
|
857
|
-
mode: Joi.string().allow(""),
|
|
858
|
-
order_type: Joi.string().allow(""),
|
|
859
|
-
payments: Joi.array().items(FileStoragePlatformModel.PaymentData()),
|
|
860
|
-
platform_name: Joi.string().allow(""),
|
|
861
|
-
po_number: Joi.string().allow(""),
|
|
862
|
-
product_table: FileStoragePlatformModel.ProductTable(),
|
|
863
|
-
registered_company_detail: FileStoragePlatformModel.RegisteredCompanyDetail(),
|
|
864
|
-
return_detail: FileStoragePlatformModel.ReturnDetail(),
|
|
865
|
-
shipment_id: Joi.string().allow(""),
|
|
866
|
-
shipment_id_barcode: Joi.string().allow(""),
|
|
867
|
-
signed_qrcode: Joi.string().allow(""),
|
|
868
|
-
store_detail: FileStoragePlatformModel.StoreDetail(),
|
|
869
|
-
tax_table: FileStoragePlatformModel.TaxTable(),
|
|
870
|
-
total_items: Joi.number(),
|
|
871
|
-
total_value_of_goods: Joi.number(),
|
|
872
|
-
txn_id: Joi.string().allow(""),
|
|
873
|
-
uid: Joi.string().allow(""),
|
|
874
|
-
upi_qrcode: Joi.string().allow(""),
|
|
875
|
-
utr: Joi.string().allow(""),
|
|
876
|
-
waybills: Joi.array().items(Joi.any()),
|
|
893
|
+
logo: Joi.string().allow(""),
|
|
894
|
+
name: Joi.string().allow(""),
|
|
877
895
|
});
|
|
878
896
|
}
|
|
879
897
|
|
|
880
|
-
/** @returns {
|
|
881
|
-
static
|
|
898
|
+
/** @returns {Cgst} */
|
|
899
|
+
static Cgst() {
|
|
882
900
|
return Joi.object({
|
|
883
|
-
|
|
901
|
+
value: Joi.number(),
|
|
902
|
+
percent: Joi.number(),
|
|
884
903
|
});
|
|
885
904
|
}
|
|
886
905
|
|
|
887
|
-
/** @returns {
|
|
888
|
-
static
|
|
906
|
+
/** @returns {Sgst} */
|
|
907
|
+
static Sgst() {
|
|
889
908
|
return Joi.object({
|
|
890
|
-
|
|
909
|
+
value: Joi.number(),
|
|
910
|
+
percent: Joi.number(),
|
|
891
911
|
});
|
|
892
912
|
}
|
|
893
913
|
|
|
894
914
|
/** @returns {Igst} */
|
|
895
915
|
static Igst() {
|
|
896
916
|
return Joi.object({
|
|
897
|
-
percent: Joi.number(),
|
|
898
917
|
value: Joi.number(),
|
|
918
|
+
percent: Joi.number(),
|
|
899
919
|
});
|
|
900
920
|
}
|
|
901
921
|
|
|
902
|
-
/** @returns {
|
|
903
|
-
static
|
|
904
|
-
return Joi.object({
|
|
905
|
-
sales_channel_logo: Joi.string().allow(""),
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
/** @returns {InvoiceDetail} */
|
|
910
|
-
static InvoiceDetail() {
|
|
922
|
+
/** @returns {Tax} */
|
|
923
|
+
static Tax() {
|
|
911
924
|
return Joi.object({
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
invoice_date: Joi.string().allow(""),
|
|
916
|
-
invoice_id: Joi.string().allow(""),
|
|
917
|
-
irn: Joi.string().allow(""),
|
|
918
|
-
marketplace_invoice_id: Joi.string().allow(""),
|
|
919
|
-
marketplace_shipment_id: Joi.string().allow(""),
|
|
920
|
-
shipment_id: Joi.string().allow(""),
|
|
921
|
-
signed_qrcode: Joi.string().allow(""),
|
|
922
|
-
upi_qrcode: Joi.string().allow(""),
|
|
925
|
+
cgst: FileStoragePlatformModel.Cgst(),
|
|
926
|
+
sgst: FileStoragePlatformModel.Sgst(),
|
|
927
|
+
igst: FileStoragePlatformModel.Igst(),
|
|
923
928
|
});
|
|
924
929
|
}
|
|
925
930
|
|
|
926
|
-
/** @returns {
|
|
927
|
-
static
|
|
931
|
+
/** @returns {ItemsProductTable} */
|
|
932
|
+
static ItemsProductTable() {
|
|
928
933
|
return Joi.object({
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
934
|
+
name: Joi.string().allow(""),
|
|
935
|
+
seller_identifier: Joi.string().allow(""),
|
|
936
|
+
total: Joi.number(),
|
|
937
|
+
brand: FileStoragePlatformModel.Brand(),
|
|
938
|
+
hsn_code: Joi.string().allow(""),
|
|
939
|
+
item_code: Joi.string().allow(""),
|
|
940
|
+
total_units: Joi.number(),
|
|
941
|
+
size: Joi.string().allow(""),
|
|
942
|
+
mrp: Joi.number(),
|
|
943
|
+
discount: Joi.number(),
|
|
944
|
+
taxable_amount: Joi.number(),
|
|
945
|
+
total_taxable_amount: Joi.number(),
|
|
946
|
+
tax: FileStoragePlatformModel.Tax(),
|
|
937
947
|
});
|
|
938
948
|
}
|
|
939
949
|
|
|
940
|
-
/** @returns {
|
|
941
|
-
static
|
|
950
|
+
/** @returns {ProductTable} */
|
|
951
|
+
static ProductTable() {
|
|
942
952
|
return Joi.object({
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
953
|
+
total_items: Joi.number(),
|
|
954
|
+
products: Joi.array().items(FileStoragePlatformModel.ItemsProductTable()),
|
|
955
|
+
grand_total: Joi.number(),
|
|
956
|
+
delivery_charges: Joi.number(),
|
|
957
|
+
delivery_charge_text: Joi.string().allow(""),
|
|
958
|
+
cod_charges: Joi.number(),
|
|
959
|
+
fynd_discounts: Joi.number(),
|
|
960
|
+
total_in_words: Joi.string().allow(""),
|
|
947
961
|
});
|
|
948
962
|
}
|
|
949
963
|
|
|
950
|
-
/** @returns {
|
|
951
|
-
static
|
|
964
|
+
/** @returns {Taxes} */
|
|
965
|
+
static Taxes() {
|
|
952
966
|
return Joi.object({
|
|
953
|
-
brand: FileStoragePlatformModel.Brand(),
|
|
954
|
-
country_of_origin: Joi.string().allow(""),
|
|
955
|
-
discount: Joi.number(),
|
|
956
967
|
hsn_code: Joi.string().allow(""),
|
|
957
|
-
item_code: Joi.string().allow(""),
|
|
958
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
959
|
-
mrp: Joi.number(),
|
|
960
|
-
name: Joi.string().allow(""),
|
|
961
|
-
seller_identifier: Joi.string().allow(""),
|
|
962
|
-
size: Joi.string().allow(""),
|
|
963
968
|
tax: FileStoragePlatformModel.Tax(),
|
|
964
|
-
|
|
965
|
-
total: Joi.number(),
|
|
966
|
-
total_taxable_amount: Joi.number(),
|
|
967
|
-
total_units: Joi.number(),
|
|
969
|
+
total_tax_value: Joi.number(),
|
|
968
970
|
});
|
|
969
971
|
}
|
|
970
972
|
|
|
971
|
-
/** @returns {
|
|
972
|
-
static
|
|
973
|
+
/** @returns {TaxTable} */
|
|
974
|
+
static TaxTable() {
|
|
973
975
|
return Joi.object({
|
|
974
|
-
|
|
976
|
+
taxes: Joi.array().items(FileStoragePlatformModel.Taxes()),
|
|
977
|
+
total_tax: Joi.number(),
|
|
978
|
+
tax_in_words: Joi.string().allow(""),
|
|
975
979
|
});
|
|
976
980
|
}
|
|
977
981
|
|
|
978
|
-
/** @returns {
|
|
979
|
-
static
|
|
982
|
+
/** @returns {RegisteredCompanyDetail} */
|
|
983
|
+
static RegisteredCompanyDetail() {
|
|
980
984
|
return Joi.object({
|
|
981
|
-
|
|
985
|
+
address: Joi.string().allow(""),
|
|
986
|
+
city: Joi.string().allow(""),
|
|
987
|
+
state: Joi.string().allow(""),
|
|
988
|
+
country: Joi.string().allow(""),
|
|
989
|
+
country_code: Joi.string().allow(""),
|
|
990
|
+
zip_code: Joi.number(),
|
|
991
|
+
state_code: Joi.string().allow(""),
|
|
982
992
|
});
|
|
983
993
|
}
|
|
984
994
|
|
|
985
|
-
/** @returns {
|
|
986
|
-
static
|
|
995
|
+
/** @returns {Kwargs} */
|
|
996
|
+
static Kwargs() {
|
|
987
997
|
return Joi.object({
|
|
988
|
-
|
|
989
|
-
qr_url: Joi.string().allow(""),
|
|
998
|
+
value: Joi.string().allow(""),
|
|
990
999
|
});
|
|
991
1000
|
}
|
|
992
1001
|
|
|
993
|
-
/** @returns {
|
|
994
|
-
static
|
|
1002
|
+
/** @returns {ShipmentIdBarcodeGenerator} */
|
|
1003
|
+
static ShipmentIdBarcodeGenerator() {
|
|
995
1004
|
return Joi.object({
|
|
996
|
-
|
|
1005
|
+
method: Joi.string().allow(""),
|
|
1006
|
+
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
997
1007
|
});
|
|
998
1008
|
}
|
|
999
1009
|
|
|
1000
|
-
/** @returns {
|
|
1001
|
-
static
|
|
1010
|
+
/** @returns {SignedQrcodeGenerator} */
|
|
1011
|
+
static SignedQrcodeGenerator() {
|
|
1002
1012
|
return Joi.object({
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
digitalsignature_generator: FileStoragePlatformModel.DigitalsignatureGenerator(),
|
|
1006
|
-
shipment_id_barcode_generator: FileStoragePlatformModel.ShipmentIdBarcodeGenerator(),
|
|
1007
|
-
signed_qrcode_generator: FileStoragePlatformModel.SignedQrcodeGenerator(),
|
|
1008
|
-
upi_qrcode_generator: FileStoragePlatformModel.UpiQrcodeGenerator(),
|
|
1013
|
+
method: Joi.string().allow(""),
|
|
1014
|
+
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1009
1015
|
});
|
|
1010
1016
|
}
|
|
1011
1017
|
|
|
1012
|
-
/** @returns {
|
|
1013
|
-
static
|
|
1018
|
+
/** @returns {KwargsUpiQrcode} */
|
|
1019
|
+
static KwargsUpiQrcode() {
|
|
1014
1020
|
return Joi.object({
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1018
|
-
mode: Joi.string().allow(""),
|
|
1019
|
-
name: Joi.string().allow(""),
|
|
1020
|
-
payment_type: Joi.string().allow(""),
|
|
1021
|
-
time: Joi.string().allow(""),
|
|
1022
|
-
transaction_id: Joi.string().allow(""),
|
|
1021
|
+
qr_data: Joi.string().allow(""),
|
|
1022
|
+
qr_url: Joi.string().allow(""),
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
/** @returns {
|
|
1027
|
-
static
|
|
1026
|
+
/** @returns {UpiQrcodeGenerator} */
|
|
1027
|
+
static UpiQrcodeGenerator() {
|
|
1028
1028
|
return Joi.object({
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
id: Joi.string().allow(""),
|
|
1032
|
-
last_name: Joi.string().allow(""),
|
|
1033
|
-
mobile_number: Joi.string().allow(""),
|
|
1029
|
+
method: Joi.string().allow(""),
|
|
1030
|
+
kwargs: FileStoragePlatformModel.KwargsUpiQrcode(),
|
|
1034
1031
|
});
|
|
1035
1032
|
}
|
|
1036
1033
|
|
|
1037
|
-
/** @returns {
|
|
1038
|
-
static
|
|
1034
|
+
/** @returns {DigitalsignatureGenerator} */
|
|
1035
|
+
static DigitalsignatureGenerator() {
|
|
1039
1036
|
return Joi.object({
|
|
1040
|
-
|
|
1037
|
+
method: Joi.string().allow(""),
|
|
1038
|
+
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1041
1039
|
});
|
|
1042
1040
|
}
|
|
1043
1041
|
|
|
1044
|
-
/** @returns {
|
|
1045
|
-
static
|
|
1042
|
+
/** @returns {KwargsAwbNumber} */
|
|
1043
|
+
static KwargsAwbNumber() {
|
|
1046
1044
|
return Joi.object({
|
|
1047
|
-
|
|
1048
|
-
application_id: Joi.array().items(Joi.string().allow("")),
|
|
1049
|
-
company_id: Joi.number(),
|
|
1050
|
-
created_timestamp: Joi.number(),
|
|
1051
|
-
event: Joi.any(),
|
|
1052
|
-
event_trace_info: Joi.any(),
|
|
1053
|
-
format: FileStoragePlatformModel.PaymentReceiptFormat(),
|
|
1054
|
-
job_type: Joi.string().allow(""),
|
|
1055
|
-
organizaton_id: Joi.string().allow(""),
|
|
1056
|
-
service: FileStoragePlatformModel.PaymentReceiptService(),
|
|
1057
|
-
trace: Joi.string().allow(""),
|
|
1058
|
-
trace_id: Joi.array().items(Joi.string().allow("")),
|
|
1045
|
+
value: Joi.array().items(Joi.any()),
|
|
1059
1046
|
});
|
|
1060
1047
|
}
|
|
1061
1048
|
|
|
1062
|
-
/** @returns {
|
|
1063
|
-
static
|
|
1049
|
+
/** @returns {AwbNumberLabelBarcodeGenerator} */
|
|
1050
|
+
static AwbNumberLabelBarcodeGenerator() {
|
|
1064
1051
|
return Joi.object({
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
jiomart_order_id: Joi.string().allow(""),
|
|
1068
|
-
order_created_date: Joi.string().allow(""),
|
|
1069
|
-
order_created_time: Joi.string().allow(""),
|
|
1070
|
-
prm_id: Joi.string().allow(""),
|
|
1071
|
-
receipt_no: Joi.string().allow(""),
|
|
1072
|
-
taxes: FileStoragePlatformModel.PaymentReceiptTaxes(),
|
|
1073
|
-
total_items: Joi.number(),
|
|
1052
|
+
method: Joi.string().allow(""),
|
|
1053
|
+
kwargs: FileStoragePlatformModel.KwargsAwbNumber(),
|
|
1074
1054
|
});
|
|
1075
1055
|
}
|
|
1076
1056
|
|
|
1077
|
-
/** @returns {
|
|
1078
|
-
static
|
|
1057
|
+
/** @returns {MetaProperty} */
|
|
1058
|
+
static MetaProperty() {
|
|
1079
1059
|
return Joi.object({
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
),
|
|
1085
|
-
uid: Joi.string().allow(""),
|
|
1060
|
+
shipment_id_barcode_generator: FileStoragePlatformModel.ShipmentIdBarcodeGenerator(),
|
|
1061
|
+
signed_qrcode_generator: FileStoragePlatformModel.SignedQrcodeGenerator(),
|
|
1062
|
+
upi_qrcode_generator: FileStoragePlatformModel.UpiQrcodeGenerator(),
|
|
1063
|
+
digitalsignature_generator: FileStoragePlatformModel.DigitalsignatureGenerator(),
|
|
1064
|
+
awb_number_label_barcode_generator: FileStoragePlatformModel.AwbNumberLabelBarcodeGenerator(),
|
|
1086
1065
|
});
|
|
1087
1066
|
}
|
|
1088
1067
|
|
|
1089
|
-
/** @returns {
|
|
1090
|
-
static
|
|
1068
|
+
/** @returns {Meta} */
|
|
1069
|
+
static Meta() {
|
|
1091
1070
|
return Joi.object({
|
|
1092
|
-
|
|
1093
|
-
txn_date: Joi.string().allow(""),
|
|
1071
|
+
generator: FileStoragePlatformModel.MetaProperty(),
|
|
1094
1072
|
});
|
|
1095
1073
|
}
|
|
1096
1074
|
|
|
1097
|
-
/** @returns {
|
|
1098
|
-
static
|
|
1075
|
+
/** @returns {DummyTemplateDataPayload} */
|
|
1076
|
+
static DummyTemplateDataPayload() {
|
|
1099
1077
|
return Joi.object({
|
|
1100
|
-
|
|
1101
|
-
|
|
1078
|
+
is_international: Joi.boolean(),
|
|
1079
|
+
app_domain_name: Joi.string().allow(""),
|
|
1080
|
+
conversion_rate: FileStoragePlatformModel.ConversionRate(),
|
|
1081
|
+
currency_code: Joi.string().allow(""),
|
|
1082
|
+
shipment_id: Joi.string().allow(""),
|
|
1083
|
+
delivery_partner_detail: FileStoragePlatformModel.DeliveryPartnerDetail(),
|
|
1084
|
+
image: FileStoragePlatformModel.Image(),
|
|
1085
|
+
payments: Joi.array().items(FileStoragePlatformModel.PaymentData()),
|
|
1086
|
+
invoice_detail: FileStoragePlatformModel.InvoiceDetail(),
|
|
1087
|
+
company_detail: FileStoragePlatformModel.CompanyDetail(),
|
|
1088
|
+
store_detail: FileStoragePlatformModel.StoreDetail(),
|
|
1089
|
+
customer_billing_detail: FileStoragePlatformModel.CustomerBillingDetail(),
|
|
1090
|
+
customer_shipping_detail: FileStoragePlatformModel.CustomerShippingDetail(),
|
|
1091
|
+
return_detail: FileStoragePlatformModel.ReturnDetail(),
|
|
1092
|
+
product_table: FileStoragePlatformModel.ProductTable(),
|
|
1093
|
+
tax_table: FileStoragePlatformModel.TaxTable(),
|
|
1094
|
+
declaration_texts: Joi.array().items(Joi.string().allow("")),
|
|
1095
|
+
registered_company_detail: FileStoragePlatformModel.RegisteredCompanyDetail(),
|
|
1096
|
+
disclaimer: Joi.string().allow(""),
|
|
1097
|
+
meta: FileStoragePlatformModel.Meta(),
|
|
1098
|
+
is_self_ship: Joi.boolean(),
|
|
1099
|
+
mode: Joi.string().allow(""),
|
|
1100
|
+
is_self_pickup: Joi.boolean(),
|
|
1101
|
+
platform_name: Joi.string().allow(""),
|
|
1102
|
+
amount_to_be_collected: Joi.number(),
|
|
1103
|
+
amount_paid: Joi.number(),
|
|
1104
|
+
waybills: Joi.array().items(Joi.any()),
|
|
1105
|
+
total_items: Joi.number(),
|
|
1106
|
+
brand_logo: Joi.string().allow(""),
|
|
1107
|
+
shipment_id_barcode: Joi.string().allow(""),
|
|
1108
|
+
signed_qrcode: Joi.string().allow(""),
|
|
1109
|
+
upi_qrcode: Joi.string().allow(""),
|
|
1110
|
+
digitalsignature: Joi.string().allow(""),
|
|
1111
|
+
awb_number_barcode: Joi.string().allow(""),
|
|
1112
|
+
uid: Joi.string().allow(""),
|
|
1102
1113
|
});
|
|
1103
1114
|
}
|
|
1104
1115
|
|
|
1105
|
-
/** @returns {
|
|
1106
|
-
static
|
|
1116
|
+
/** @returns {DummyTemplateData} */
|
|
1117
|
+
static DummyTemplateData() {
|
|
1107
1118
|
return Joi.object({
|
|
1108
|
-
|
|
1119
|
+
_id: Joi.string().allow(""),
|
|
1120
|
+
pdf_type_id: Joi.number(),
|
|
1121
|
+
payload: FileStoragePlatformModel.DummyTemplateDataPayload().required(),
|
|
1122
|
+
__v: Joi.number(),
|
|
1109
1123
|
});
|
|
1110
1124
|
}
|
|
1111
1125
|
|
|
1112
|
-
/** @returns {
|
|
1113
|
-
static
|
|
1126
|
+
/** @returns {DummyTemplateDataItems} */
|
|
1127
|
+
static DummyTemplateDataItems() {
|
|
1114
1128
|
return Joi.object({
|
|
1115
|
-
|
|
1116
|
-
|
|
1129
|
+
data: Joi.array()
|
|
1130
|
+
.items(FileStoragePlatformModel.DummyTemplateData())
|
|
1131
|
+
.required(),
|
|
1132
|
+
success: Joi.boolean().required(),
|
|
1117
1133
|
});
|
|
1118
1134
|
}
|
|
1119
1135
|
|
|
@@ -1121,29 +1137,22 @@ class FileStoragePlatformModel {
|
|
|
1121
1137
|
static PdfConfig() {
|
|
1122
1138
|
return Joi.object({
|
|
1123
1139
|
format: Joi.string().allow(""),
|
|
1124
|
-
pdf_type_id: Joi.number(),
|
|
1125
1140
|
template: Joi.string().allow(""),
|
|
1141
|
+
pdf_type_id: Joi.number(),
|
|
1126
1142
|
});
|
|
1127
1143
|
}
|
|
1128
1144
|
|
|
1129
|
-
/** @returns {
|
|
1130
|
-
static
|
|
1131
|
-
return Joi.object({
|
|
1132
|
-
data: FileStoragePlatformModel.PdfConfigSaveSuccessData(),
|
|
1133
|
-
success: Joi.boolean(),
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
/** @returns {PdfConfigSaveSuccessData} */
|
|
1138
|
-
static PdfConfigSaveSuccessData() {
|
|
1145
|
+
/** @returns {PdfConfigSuccessData} */
|
|
1146
|
+
static PdfConfigSuccessData() {
|
|
1139
1147
|
return Joi.object({
|
|
1140
|
-
__v: Joi.number(),
|
|
1141
1148
|
_id: Joi.string().allow(""),
|
|
1142
|
-
application_id: Joi.string().allow(""),
|
|
1143
1149
|
company_id: Joi.number(),
|
|
1144
|
-
|
|
1150
|
+
application_id: Joi.string().allow(""),
|
|
1145
1151
|
pdf_type_id: Joi.number(),
|
|
1152
|
+
format: Joi.string().allow(""),
|
|
1146
1153
|
template: Joi.string().allow(""),
|
|
1154
|
+
__v: Joi.number(),
|
|
1155
|
+
country_code: Joi.string().allow(""),
|
|
1147
1156
|
});
|
|
1148
1157
|
}
|
|
1149
1158
|
|
|
@@ -1155,215 +1164,138 @@ class FileStoragePlatformModel {
|
|
|
1155
1164
|
});
|
|
1156
1165
|
}
|
|
1157
1166
|
|
|
1158
|
-
/** @returns {
|
|
1159
|
-
static
|
|
1167
|
+
/** @returns {PdfConfigSaveSuccessData} */
|
|
1168
|
+
static PdfConfigSaveSuccessData() {
|
|
1160
1169
|
return Joi.object({
|
|
1161
|
-
__v: Joi.number(),
|
|
1162
1170
|
_id: Joi.string().allow(""),
|
|
1163
|
-
application_id: Joi.string().allow(""),
|
|
1164
1171
|
company_id: Joi.number(),
|
|
1165
|
-
|
|
1166
|
-
format: Joi.string().allow(""),
|
|
1172
|
+
application_id: Joi.string().allow(""),
|
|
1167
1173
|
pdf_type_id: Joi.number(),
|
|
1174
|
+
format: Joi.string().allow(""),
|
|
1168
1175
|
template: Joi.string().allow(""),
|
|
1176
|
+
__v: Joi.number(),
|
|
1169
1177
|
});
|
|
1170
1178
|
}
|
|
1171
1179
|
|
|
1172
|
-
/** @returns {
|
|
1173
|
-
static
|
|
1180
|
+
/** @returns {PdfConfigSaveSuccess} */
|
|
1181
|
+
static PdfConfigSaveSuccess() {
|
|
1174
1182
|
return Joi.object({
|
|
1175
|
-
data:
|
|
1183
|
+
data: FileStoragePlatformModel.PdfConfigSaveSuccessData(),
|
|
1176
1184
|
success: Joi.boolean(),
|
|
1177
1185
|
});
|
|
1178
1186
|
}
|
|
1179
1187
|
|
|
1180
|
-
/** @returns {
|
|
1181
|
-
static
|
|
1188
|
+
/** @returns {PdfDefaultTemplateSuccess} */
|
|
1189
|
+
static PdfDefaultTemplateSuccess() {
|
|
1182
1190
|
return Joi.object({
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
delivery_charge_text: Joi.string().allow(""),
|
|
1186
|
-
delivery_charges: Joi.number(),
|
|
1187
|
-
discount: Joi.number(),
|
|
1188
|
-
fynd_discounts: Joi.number(),
|
|
1189
|
-
gift_price: Joi.number(),
|
|
1190
|
-
grand_total: Joi.number(),
|
|
1191
|
-
products: Joi.array().items(FileStoragePlatformModel.ItemsProductTable()),
|
|
1192
|
-
promotion: Joi.number(),
|
|
1193
|
-
reward: Joi.number(),
|
|
1194
|
-
round_off: Joi.number(),
|
|
1195
|
-
sub_total: Joi.number(),
|
|
1196
|
-
total_in_words: Joi.string().allow(""),
|
|
1197
|
-
total_items: Joi.number(),
|
|
1198
|
-
total_quantity: Joi.number(),
|
|
1199
|
-
total_value_of_goods: Joi.number(),
|
|
1191
|
+
data: Joi.array().items(FileStoragePlatformModel.Document()),
|
|
1192
|
+
success: Joi.boolean(),
|
|
1200
1193
|
});
|
|
1201
1194
|
}
|
|
1202
1195
|
|
|
1203
|
-
/** @returns {
|
|
1204
|
-
static
|
|
1196
|
+
/** @returns {Document} */
|
|
1197
|
+
static Document() {
|
|
1205
1198
|
return Joi.object({
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1199
|
+
_id: Joi.string().allow(""),
|
|
1200
|
+
pdf_type_id: Joi.number(),
|
|
1201
|
+
format: Joi.string().allow(""),
|
|
1202
|
+
template: Joi.string().allow(""),
|
|
1209
1203
|
country_code: Joi.string().allow(""),
|
|
1210
|
-
|
|
1211
|
-
sector: Joi.string().allow(""),
|
|
1212
|
-
state: Joi.string().allow(""),
|
|
1213
|
-
state_code: Joi.string().allow(""),
|
|
1214
|
-
zip_code: Joi.number(),
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
/** @returns {ReturnDetail} */
|
|
1219
|
-
static ReturnDetail() {
|
|
1220
|
-
return Joi.object({
|
|
1221
|
-
address: Joi.string().allow(""),
|
|
1222
|
-
city: Joi.string().allow(""),
|
|
1223
|
-
country: Joi.string().allow(""),
|
|
1224
|
-
country_code: Joi.string().allow("").allow(null),
|
|
1225
|
-
display_address: Joi.string().allow(""),
|
|
1226
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1227
|
-
sector: Joi.string().allow(""),
|
|
1228
|
-
state: Joi.string().allow(""),
|
|
1229
|
-
state_code: Joi.string().allow(""),
|
|
1230
|
-
zip_code: Joi.string().allow(""),
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
/** @returns {Sgst} */
|
|
1235
|
-
static Sgst() {
|
|
1236
|
-
return Joi.object({
|
|
1237
|
-
percent: Joi.number(),
|
|
1238
|
-
value: Joi.number(),
|
|
1239
|
-
});
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
/** @returns {ShipmentIdBarcodeGenerator} */
|
|
1243
|
-
static ShipmentIdBarcodeGenerator() {
|
|
1244
|
-
return Joi.object({
|
|
1245
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1246
|
-
method: Joi.string().allow(""),
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
/** @returns {SignedQrcodeGenerator} */
|
|
1251
|
-
static SignedQrcodeGenerator() {
|
|
1252
|
-
return Joi.object({
|
|
1253
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1254
|
-
method: Joi.string().allow(""),
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
/** @returns {SignUrlRequest} */
|
|
1259
|
-
static SignUrlRequest() {
|
|
1260
|
-
return Joi.object({
|
|
1261
|
-
expiry: Joi.number().required(),
|
|
1262
|
-
urls: Joi.array().items(Joi.string().allow("")).required(),
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
/** @returns {SignUrlResponse} */
|
|
1267
|
-
static SignUrlResponse() {
|
|
1268
|
-
return Joi.object({
|
|
1269
|
-
urls: Joi.array().items(FileStoragePlatformModel.Urls()).required(),
|
|
1204
|
+
__v: Joi.number(),
|
|
1270
1205
|
});
|
|
1271
1206
|
}
|
|
1272
1207
|
|
|
1273
|
-
/** @returns {
|
|
1274
|
-
static
|
|
1208
|
+
/** @returns {PaymentReceiptRequestBody} */
|
|
1209
|
+
static PaymentReceiptRequestBody() {
|
|
1275
1210
|
return Joi.object({
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
params: Joi.object().pattern(/\S/, Joi.any()),
|
|
1279
|
-
size: Joi.number().required(),
|
|
1280
|
-
tags: Joi.array().items(Joi.string().allow("")),
|
|
1211
|
+
payload: FileStoragePlatformModel.PaymentReceiptPayload(),
|
|
1212
|
+
meta: FileStoragePlatformModel.PaymentReceiptMeta(),
|
|
1281
1213
|
});
|
|
1282
1214
|
}
|
|
1283
1215
|
|
|
1284
|
-
/** @returns {
|
|
1285
|
-
static
|
|
1216
|
+
/** @returns {PaymentReceiptOrderDetails} */
|
|
1217
|
+
static PaymentReceiptOrderDetails() {
|
|
1286
1218
|
return Joi.object({
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
upload: FileStoragePlatformModel.Upload().required(),
|
|
1219
|
+
jiomart_order_id: Joi.string().allow(""),
|
|
1220
|
+
total_items: Joi.number(),
|
|
1221
|
+
final_amount: Joi.number(),
|
|
1222
|
+
final_amount_in_words: Joi.string().allow(""),
|
|
1223
|
+
order_created_date: Joi.string().allow(""),
|
|
1224
|
+
order_created_time: Joi.string().allow(""),
|
|
1225
|
+
prm_id: Joi.string().allow(""),
|
|
1226
|
+
receipt_no: Joi.string().allow(""),
|
|
1227
|
+
taxes: FileStoragePlatformModel.PaymentReceiptTaxes(),
|
|
1297
1228
|
});
|
|
1298
1229
|
}
|
|
1299
1230
|
|
|
1300
|
-
/** @returns {
|
|
1301
|
-
static
|
|
1231
|
+
/** @returns {PaymentReceiptCustomerDetails} */
|
|
1232
|
+
static PaymentReceiptCustomerDetails() {
|
|
1302
1233
|
return Joi.object({
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1309
|
-
sector: Joi.string().allow(""),
|
|
1310
|
-
state: Joi.string().allow(""),
|
|
1311
|
-
state_code: Joi.string().allow(""),
|
|
1312
|
-
store_id: Joi.string().allow(""),
|
|
1313
|
-
store_name: Joi.string().allow(""),
|
|
1314
|
-
zip_code: Joi.string().allow(""),
|
|
1234
|
+
id: Joi.string().allow(""),
|
|
1235
|
+
email_id: Joi.string().allow(""),
|
|
1236
|
+
last_name: Joi.string().allow(""),
|
|
1237
|
+
first_name: Joi.string().allow(""),
|
|
1238
|
+
mobile_number: Joi.string().allow(""),
|
|
1315
1239
|
});
|
|
1316
1240
|
}
|
|
1317
1241
|
|
|
1318
|
-
/** @returns {
|
|
1319
|
-
static
|
|
1242
|
+
/** @returns {PaymentReceiptPayments} */
|
|
1243
|
+
static PaymentReceiptPayments() {
|
|
1320
1244
|
return Joi.object({
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
sgst: FileStoragePlatformModel.Sgst(),
|
|
1245
|
+
payment_desc: Joi.string().allow(""),
|
|
1246
|
+
txn_date: Joi.string().allow(""),
|
|
1324
1247
|
});
|
|
1325
1248
|
}
|
|
1326
1249
|
|
|
1327
|
-
/** @returns {
|
|
1328
|
-
static
|
|
1250
|
+
/** @returns {PaymentReceiptFormat} */
|
|
1251
|
+
static PaymentReceiptFormat() {
|
|
1329
1252
|
return Joi.object({
|
|
1330
|
-
|
|
1331
|
-
tax: FileStoragePlatformModel.Tax(),
|
|
1332
|
-
total_tax_value: Joi.number(),
|
|
1253
|
+
payment_receipt: Joi.array().items(Joi.string().allow("")),
|
|
1333
1254
|
});
|
|
1334
1255
|
}
|
|
1335
1256
|
|
|
1336
|
-
/** @returns {
|
|
1337
|
-
static
|
|
1257
|
+
/** @returns {PaymentReceiptService} */
|
|
1258
|
+
static PaymentReceiptService() {
|
|
1338
1259
|
return Joi.object({
|
|
1339
|
-
|
|
1340
|
-
taxes: Joi.array().items(FileStoragePlatformModel.Taxes()),
|
|
1341
|
-
total_tax: Joi.number(),
|
|
1260
|
+
name: Joi.string().allow(""),
|
|
1342
1261
|
});
|
|
1343
1262
|
}
|
|
1344
1263
|
|
|
1345
|
-
/** @returns {
|
|
1346
|
-
static
|
|
1264
|
+
/** @returns {PaymentReceiptTaxes} */
|
|
1265
|
+
static PaymentReceiptTaxes() {
|
|
1347
1266
|
return Joi.object({
|
|
1348
|
-
|
|
1349
|
-
|
|
1267
|
+
gstin: Joi.string().allow(""),
|
|
1268
|
+
pancard: Joi.string().allow(""),
|
|
1350
1269
|
});
|
|
1351
1270
|
}
|
|
1352
1271
|
|
|
1353
|
-
/** @returns {
|
|
1354
|
-
static
|
|
1272
|
+
/** @returns {PaymentReceiptPayload} */
|
|
1273
|
+
static PaymentReceiptPayload() {
|
|
1355
1274
|
return Joi.object({
|
|
1356
|
-
|
|
1357
|
-
|
|
1275
|
+
uid: Joi.string().allow(""),
|
|
1276
|
+
order_detail: FileStoragePlatformModel.PaymentReceiptOrderDetails(),
|
|
1277
|
+
customer_detail: FileStoragePlatformModel.PaymentReceiptCustomerDetails(),
|
|
1278
|
+
payments: Joi.array().items(
|
|
1279
|
+
FileStoragePlatformModel.PaymentReceiptPayments()
|
|
1280
|
+
),
|
|
1358
1281
|
});
|
|
1359
1282
|
}
|
|
1360
1283
|
|
|
1361
|
-
/** @returns {
|
|
1362
|
-
static
|
|
1284
|
+
/** @returns {PaymentReceiptMeta} */
|
|
1285
|
+
static PaymentReceiptMeta() {
|
|
1363
1286
|
return Joi.object({
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1287
|
+
job_type: Joi.string().allow(""),
|
|
1288
|
+
action: Joi.string().allow(""),
|
|
1289
|
+
event: Joi.any(),
|
|
1290
|
+
organizaton_id: Joi.string().allow(""),
|
|
1291
|
+
company_id: Joi.number(),
|
|
1292
|
+
application_id: Joi.array().items(Joi.string().allow("")),
|
|
1293
|
+
format: FileStoragePlatformModel.PaymentReceiptFormat(),
|
|
1294
|
+
trace_id: Joi.array().items(Joi.string().allow("")),
|
|
1295
|
+
created_timestamp: Joi.number(),
|
|
1296
|
+
service: FileStoragePlatformModel.PaymentReceiptService(),
|
|
1297
|
+
event_trace_info: Joi.any(),
|
|
1298
|
+
trace: Joi.string().allow(""),
|
|
1367
1299
|
});
|
|
1368
1300
|
}
|
|
1369
1301
|
}
|