@gofynd/fdk-client-javascript 1.6.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
- package/sdk/application/Cart/CartApplicationClient.js +26 -268
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
- package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
- package/sdk/application/Common/CommonApplicationClient.js +1 -16
- package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
- package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
- package/sdk/application/Content/ContentApplicationClient.js +222 -191
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
- package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
- package/sdk/application/Lead/LeadApplicationClient.js +21 -52
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
- package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
- package/sdk/application/Order/OrderApplicationClient.js +68 -153
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
- package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
- package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
- package/sdk/application/Share/ShareApplicationClient.js +21 -75
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
- package/sdk/application/User/UserApplicationClient.js +1 -407
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +4 -4
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +2 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
- package/sdk/platform/Cart/CartPlatformModel.js +38 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
- package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
- package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
- package/sdk/platform/Content/ContentPlatformModel.js +717 -34
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
- package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
- package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
- package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
- package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
- package/sdk/platform/Order/OrderPlatformClient.js +397 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +41 -9
- package/sdk/platform/Order/OrderPlatformModel.js +20 -7
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
- package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +10 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +79 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +13 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +12 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +52 -1
- package/sdk/platform/User/UserPlatformModel.js +36 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +5 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +2 -0
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
- package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
- package/sdk/public/Content/ContentPublicClient.js +261 -104
- package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
- package/sdk/public/Content/ContentPublicModel.js +102 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
- package/sdk/public/Content/ContentPublicValidator.js +26 -0
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
|
@@ -1,94 +1,5 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @typedef UpdatePdfType
|
|
5
|
-
* @property {number} [pdf_type_id]
|
|
6
|
-
* @property {string} [name]
|
|
7
|
-
* @property {string[]} [format]
|
|
8
|
-
* @property {boolean} [visibility]
|
|
9
|
-
* @property {Object} [schema]
|
|
10
|
-
* @property {boolean} [store_os]
|
|
11
|
-
* @property {string} [country_code]
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @typedef PdfTypeByIdDetails
|
|
16
|
-
* @property {boolean} [store_os]
|
|
17
|
-
* @property {string} [country_code]
|
|
18
|
-
* @property {number} [pdf_type_id]
|
|
19
|
-
* @property {number} [__v]
|
|
20
|
-
* @property {string} [_id]
|
|
21
|
-
* @property {string[]} [format]
|
|
22
|
-
* @property {string} [name]
|
|
23
|
-
* @property {boolean} [visibility]
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @typedef PdfConfigurationData
|
|
28
|
-
* @property {string} [_id]
|
|
29
|
-
* @property {number} [pdf_type_id]
|
|
30
|
-
* @property {string} [format]
|
|
31
|
-
* @property {string} [template]
|
|
32
|
-
* @property {string} [country_code]
|
|
33
|
-
* @property {number} [__v]
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @typedef UpdatedDefaultTemplateById
|
|
38
|
-
* @property {PdfConfigurationData} [data]
|
|
39
|
-
* @property {boolean} [success]
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @typedef UpdateTemplate
|
|
44
|
-
* @property {number} [pdf_type_id]
|
|
45
|
-
* @property {string} [format] - This is invoice document format such as A4, A6, POS, A5
|
|
46
|
-
* @property {string} [country_code] - This is iso code of a country
|
|
47
|
-
* @property {string} [template] - This is html template string
|
|
48
|
-
* @property {boolean} [store_os] - This flag is to identify store-os
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @typedef PdfDefaultTemplateById
|
|
53
|
-
* @property {string} [_id] - The ID of the PDF default template
|
|
54
|
-
* @property {string} [country_code] - The country code associated with the template
|
|
55
|
-
* @property {string} [format] - The format of the template (e.g., "A4")
|
|
56
|
-
* @property {number} [pdf_type_id] - The ID of the PDF type
|
|
57
|
-
* @property {number} [__v] - Version number
|
|
58
|
-
* @property {string} [template] - The HTML template content
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @typedef PdfTemplateCreateSuccess
|
|
63
|
-
* @property {number} [code]
|
|
64
|
-
* @property {boolean} [success]
|
|
65
|
-
* @property {PdfTemplateCreateSuccessData} [data]
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @typedef PdfTemplateCreateSuccessData
|
|
70
|
-
* @property {string} [_id]
|
|
71
|
-
* @property {number} [pdf_type_id]
|
|
72
|
-
* @property {string} [format]
|
|
73
|
-
* @property {string} [template]
|
|
74
|
-
* @property {string} [country_code]
|
|
75
|
-
* @property {number} [__v]
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @typedef CreateTemplate
|
|
80
|
-
* @property {number} pdf_type_id
|
|
81
|
-
* @property {string} format - This is invoice document format such as A4, A6, POS, A5
|
|
82
|
-
* @property {string} country_code - This is iso code of a country
|
|
83
|
-
* @property {string} [template] - This is html template string
|
|
84
|
-
*/
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @typedef PdfDefaultTemplateSuccess
|
|
88
|
-
* @property {Document[]} [data]
|
|
89
|
-
* @property {boolean} [success] - Indicates if the request was successful.
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
3
|
/**
|
|
93
4
|
* @typedef FailedBrowseFilesResult
|
|
94
5
|
* @property {string} message
|
|
@@ -188,414 +99,6 @@ const Joi = require("joi");
|
|
|
188
99
|
* @property {string[]} urls
|
|
189
100
|
*/
|
|
190
101
|
|
|
191
|
-
/**
|
|
192
|
-
* @typedef InvoiceTypesData
|
|
193
|
-
* @property {boolean} [status]
|
|
194
|
-
* @property {string} _id
|
|
195
|
-
* @property {number} pdf_type_id
|
|
196
|
-
* @property {string} name
|
|
197
|
-
* @property {string[]} format
|
|
198
|
-
* @property {number} __v
|
|
199
|
-
* @property {boolean} visibility
|
|
200
|
-
* @property {boolean} store_os
|
|
201
|
-
* @property {string} country_code
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @typedef InvoiceTypes
|
|
206
|
-
* @property {InvoiceTypesData[]} data
|
|
207
|
-
* @property {boolean} success
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* @typedef ConversionRate
|
|
212
|
-
* @property {string} [base]
|
|
213
|
-
* @property {Object} [rates]
|
|
214
|
-
* @property {number} [timestamp]
|
|
215
|
-
*/
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* @typedef DeliveryPartnerDetail
|
|
219
|
-
* @property {string} [name]
|
|
220
|
-
* @property {string} [awb_number_barcode]
|
|
221
|
-
* @property {string} [awb_number]
|
|
222
|
-
* @property {string} [origin]
|
|
223
|
-
* @property {string} [destination]
|
|
224
|
-
* @property {string} [eway_bill_number]
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @typedef Image
|
|
229
|
-
* @property {string} [sales_channel_logo]
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* @typedef PaymentData
|
|
234
|
-
* @property {string} [payment_type]
|
|
235
|
-
* @property {number} [amount]
|
|
236
|
-
* @property {string} [date]
|
|
237
|
-
* @property {string} [transaction_id]
|
|
238
|
-
* @property {string} [time]
|
|
239
|
-
* @property {string} [mode]
|
|
240
|
-
* @property {string} [name]
|
|
241
|
-
* @property {Object} [meta]
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @typedef InvoiceDetail
|
|
246
|
-
* @property {string} [invoice_id]
|
|
247
|
-
* @property {string} [invoice_date]
|
|
248
|
-
* @property {string} [irn]
|
|
249
|
-
* @property {string} [external_order_id]
|
|
250
|
-
* @property {string} [shipment_id]
|
|
251
|
-
* @property {string} [signed_qrcode]
|
|
252
|
-
* @property {string} [upi_qrcode]
|
|
253
|
-
* @property {string} [device_id]
|
|
254
|
-
* @property {string} [marketplace_invoice_id]
|
|
255
|
-
* @property {string} [marketplace_shipment_id]
|
|
256
|
-
* @property {string} [channel_order_id]
|
|
257
|
-
*/
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* @typedef CompanyDetail
|
|
261
|
-
* @property {string} [name] - The official name of the company.
|
|
262
|
-
* @property {string} [address] - The physical street address of the company.
|
|
263
|
-
* @property {string} [city] - The city where the company is located.
|
|
264
|
-
* @property {string} [state] - The state or province where the company is located.
|
|
265
|
-
* @property {string} [country] - The country where the company is based.
|
|
266
|
-
* @property {number} [zip_code] - The postal code for the company's location.
|
|
267
|
-
* @property {string} [state_code] - A code representing the state, often used
|
|
268
|
-
* in official documents and forms.
|
|
269
|
-
* @property {string} [country_code] - The code of the country.
|
|
270
|
-
* @property {string} [gstin] - The Goods and Services Tax Identification
|
|
271
|
-
* Number, unique to each business in India.
|
|
272
|
-
* @property {string} [pan] - The Permanent Account Number, unique to each
|
|
273
|
-
* taxpayer in India.
|
|
274
|
-
* @property {string} [phone_no] - The primary contact phone number for the company.
|
|
275
|
-
* @property {string} [cin] - The Corporate Identification Number, unique to
|
|
276
|
-
* each company registered in India.
|
|
277
|
-
* @property {string} [website_url] - The URL to the company's official website.
|
|
278
|
-
* @property {string} [email] - The company's official email address.
|
|
279
|
-
* @property {string} [display_address] - The display address of the company.
|
|
280
|
-
* @property {string} [sector] - The sector in which company is located.
|
|
281
|
-
* @property {Object} [phone] - The provided phone no of country.
|
|
282
|
-
* @property {string} [trn] - The trn no of the company.
|
|
283
|
-
* @property {string} [vat] - The vat no of the company.
|
|
284
|
-
* @property {string} [business_country_timezone] - The bussiness country timezone.
|
|
285
|
-
* @property {Object} [business_country_currency] - This object represents the
|
|
286
|
-
* bussiness country currency.
|
|
287
|
-
* @property {Object} [meta] - This object represents the meta fields for company.
|
|
288
|
-
*/
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @typedef StoreDetail
|
|
292
|
-
* @property {string} [store_name]
|
|
293
|
-
* @property {string} [address]
|
|
294
|
-
* @property {string} [city]
|
|
295
|
-
* @property {string} [state]
|
|
296
|
-
* @property {string} [country]
|
|
297
|
-
* @property {string} [country_code]
|
|
298
|
-
* @property {string} [zip_code]
|
|
299
|
-
* @property {string} [state_code]
|
|
300
|
-
* @property {string} [gstin]
|
|
301
|
-
* @property {string} [display_address]
|
|
302
|
-
* @property {string} [sector]
|
|
303
|
-
* @property {string} [store_id]
|
|
304
|
-
*/
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @typedef CustomerBillingDetail
|
|
308
|
-
* @property {string} [name]
|
|
309
|
-
* @property {string} [phone_no]
|
|
310
|
-
* @property {string} [address]
|
|
311
|
-
* @property {string} [city]
|
|
312
|
-
* @property {string} [state]
|
|
313
|
-
* @property {string} [country]
|
|
314
|
-
* @property {string} [country_code]
|
|
315
|
-
* @property {string} [zip_code]
|
|
316
|
-
* @property {string} [state_code]
|
|
317
|
-
* @property {string} [gstin]
|
|
318
|
-
* @property {string} [display_address]
|
|
319
|
-
* @property {string} [sector]
|
|
320
|
-
* @property {string} [email]
|
|
321
|
-
*/
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* @typedef CustomerShippingDetail
|
|
325
|
-
* @property {string} [name]
|
|
326
|
-
* @property {string} [phone_no]
|
|
327
|
-
* @property {string} [address]
|
|
328
|
-
* @property {string} [city]
|
|
329
|
-
* @property {string} [state]
|
|
330
|
-
* @property {string} [country]
|
|
331
|
-
* @property {string} [country_code]
|
|
332
|
-
* @property {string} [zip_code]
|
|
333
|
-
* @property {string} [state_code]
|
|
334
|
-
* @property {string} [gstin]
|
|
335
|
-
* @property {string} [display_address]
|
|
336
|
-
* @property {string} [sector]
|
|
337
|
-
*/
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* @typedef ReturnDetail
|
|
341
|
-
* @property {string} [address]
|
|
342
|
-
* @property {string} [city]
|
|
343
|
-
* @property {string} [state]
|
|
344
|
-
* @property {string} [country]
|
|
345
|
-
* @property {string} [country_code]
|
|
346
|
-
* @property {string} [zip_code]
|
|
347
|
-
* @property {string} [state_code]
|
|
348
|
-
* @property {string} [gstin]
|
|
349
|
-
* @property {string} [display_address]
|
|
350
|
-
* @property {string} [sector]
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @typedef Brand
|
|
355
|
-
* @property {string} [logo]
|
|
356
|
-
* @property {string} [name]
|
|
357
|
-
*/
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* @typedef Cgst
|
|
361
|
-
* @property {number} [value]
|
|
362
|
-
* @property {number} [percent]
|
|
363
|
-
*/
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @typedef Sgst
|
|
367
|
-
* @property {number} [value]
|
|
368
|
-
* @property {number} [percent]
|
|
369
|
-
*/
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* @typedef Igst
|
|
373
|
-
* @property {number} [value]
|
|
374
|
-
* @property {number} [percent]
|
|
375
|
-
*/
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* @typedef Tax
|
|
379
|
-
* @property {Cgst} [cgst]
|
|
380
|
-
* @property {Sgst} [sgst]
|
|
381
|
-
* @property {Igst} [igst]
|
|
382
|
-
*/
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* @typedef ItemsProductTable
|
|
386
|
-
* @property {string} [name]
|
|
387
|
-
* @property {string} [seller_identifier]
|
|
388
|
-
* @property {number} [total]
|
|
389
|
-
* @property {Brand} [brand]
|
|
390
|
-
* @property {string} [hsn_code]
|
|
391
|
-
* @property {string} [item_code]
|
|
392
|
-
* @property {number} [total_units]
|
|
393
|
-
* @property {string} [size]
|
|
394
|
-
* @property {number} [mrp]
|
|
395
|
-
* @property {number} [discount]
|
|
396
|
-
* @property {number} [taxable_amount]
|
|
397
|
-
* @property {number} [total_taxable_amount]
|
|
398
|
-
* @property {Tax} [tax]
|
|
399
|
-
* @property {Object} [meta]
|
|
400
|
-
* @property {string} [country_of_origin]
|
|
401
|
-
*/
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* @typedef ProductTable
|
|
405
|
-
* @property {number} [total_items]
|
|
406
|
-
* @property {ItemsProductTable[]} [products]
|
|
407
|
-
* @property {number} [grand_total]
|
|
408
|
-
* @property {number} [delivery_charges]
|
|
409
|
-
* @property {string} [delivery_charge_text]
|
|
410
|
-
* @property {number} [cod_charges]
|
|
411
|
-
* @property {number} [fynd_discounts]
|
|
412
|
-
* @property {string} [total_in_words]
|
|
413
|
-
* @property {number} [gift_price]
|
|
414
|
-
* @property {number} [total_quantity]
|
|
415
|
-
* @property {number} [sub_total]
|
|
416
|
-
* @property {number} [discount]
|
|
417
|
-
* @property {number} [promotion]
|
|
418
|
-
* @property {number} [coupon]
|
|
419
|
-
* @property {number} [reward]
|
|
420
|
-
* @property {number} [round_off]
|
|
421
|
-
* @property {number} [total_value_of_goods]
|
|
422
|
-
*/
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* @typedef Taxes
|
|
426
|
-
* @property {string} [hsn_code]
|
|
427
|
-
* @property {Tax} [tax]
|
|
428
|
-
* @property {number} [total_tax_value]
|
|
429
|
-
*/
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* @typedef TaxTable
|
|
433
|
-
* @property {Taxes[]} [taxes]
|
|
434
|
-
* @property {number} [total_tax]
|
|
435
|
-
* @property {string} [tax_in_words]
|
|
436
|
-
*/
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* @typedef RegisteredCompanyDetail
|
|
440
|
-
* @property {string} [address]
|
|
441
|
-
* @property {string} [city]
|
|
442
|
-
* @property {string} [state]
|
|
443
|
-
* @property {string} [country]
|
|
444
|
-
* @property {string} [country_code]
|
|
445
|
-
* @property {number} [zip_code]
|
|
446
|
-
* @property {string} [state_code]
|
|
447
|
-
* @property {string} [display_address]
|
|
448
|
-
* @property {string} [sector]
|
|
449
|
-
*/
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* @typedef Kwargs
|
|
453
|
-
* @property {string} [value]
|
|
454
|
-
*/
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* @typedef ShipmentIdBarcodeGenerator
|
|
458
|
-
* @property {string} [method]
|
|
459
|
-
* @property {Kwargs} [kwargs]
|
|
460
|
-
*/
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* @typedef SignedQrcodeGenerator
|
|
464
|
-
* @property {string} [method]
|
|
465
|
-
* @property {Kwargs} [kwargs]
|
|
466
|
-
*/
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* @typedef KwargsUpiQrcode
|
|
470
|
-
* @property {string} [qr_data]
|
|
471
|
-
* @property {string} [qr_url]
|
|
472
|
-
*/
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @typedef UpiQrcodeGenerator
|
|
476
|
-
* @property {string} [method]
|
|
477
|
-
* @property {KwargsUpiQrcode} [kwargs]
|
|
478
|
-
*/
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* @typedef DigitalsignatureGenerator
|
|
482
|
-
* @property {string} [method]
|
|
483
|
-
* @property {Kwargs} [kwargs]
|
|
484
|
-
*/
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* @typedef KwargsAwbNumber
|
|
488
|
-
* @property {Object[]} [value]
|
|
489
|
-
*/
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* @typedef AwbNumberLabelBarcodeGenerator
|
|
493
|
-
* @property {string} [method]
|
|
494
|
-
* @property {KwargsAwbNumber} [kwargs]
|
|
495
|
-
*/
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* @typedef AwbNumberBarcodeGenerator
|
|
499
|
-
* @property {string} [method]
|
|
500
|
-
* @property {Kwargs} [kwargs]
|
|
501
|
-
*/
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* @typedef MetaProperty
|
|
505
|
-
* @property {ShipmentIdBarcodeGenerator} [shipment_id_barcode_generator]
|
|
506
|
-
* @property {SignedQrcodeGenerator} [signed_qrcode_generator]
|
|
507
|
-
* @property {UpiQrcodeGenerator} [upi_qrcode_generator]
|
|
508
|
-
* @property {DigitalsignatureGenerator} [digitalsignature_generator]
|
|
509
|
-
* @property {AwbNumberLabelBarcodeGenerator} [awb_number_label_barcode_generator]
|
|
510
|
-
* @property {AwbNumberBarcodeGenerator} [awb_number_barcode_generator]
|
|
511
|
-
*/
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* @typedef Meta
|
|
515
|
-
* @property {MetaProperty} [generator]
|
|
516
|
-
*/
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* @typedef PdfPayloadDetails
|
|
520
|
-
* @property {boolean} [is_export]
|
|
521
|
-
* @property {boolean} [is_export_shipment]
|
|
522
|
-
* @property {string} [app_domain_name]
|
|
523
|
-
* @property {string} [txn_id]
|
|
524
|
-
* @property {string} [utr]
|
|
525
|
-
* @property {string} [po_number]
|
|
526
|
-
* @property {string} [credit_note_id]
|
|
527
|
-
* @property {string} [current_date]
|
|
528
|
-
* @property {number} [total_value_of_goods]
|
|
529
|
-
* @property {Object} [b2b_buyer_details]
|
|
530
|
-
* @property {Object} [is_qwik]
|
|
531
|
-
* @property {string} [order_type]
|
|
532
|
-
* @property {ConversionRate} [conversion_rate]
|
|
533
|
-
* @property {string} [currency_code]
|
|
534
|
-
* @property {string} [shipment_id]
|
|
535
|
-
* @property {DeliveryPartnerDetail} [delivery_partner_detail]
|
|
536
|
-
* @property {Image} [image]
|
|
537
|
-
* @property {PaymentData[]} [payments]
|
|
538
|
-
* @property {InvoiceDetail} [invoice_detail]
|
|
539
|
-
* @property {CompanyDetail} [company_detail]
|
|
540
|
-
* @property {StoreDetail} [store_detail]
|
|
541
|
-
* @property {CustomerBillingDetail} [customer_billing_detail]
|
|
542
|
-
* @property {CustomerShippingDetail} [customer_shipping_detail]
|
|
543
|
-
* @property {ReturnDetail} [return_detail]
|
|
544
|
-
* @property {ProductTable} [product_table]
|
|
545
|
-
* @property {TaxTable} [tax_table]
|
|
546
|
-
* @property {string[]} [declaration_texts]
|
|
547
|
-
* @property {RegisteredCompanyDetail} [registered_company_detail]
|
|
548
|
-
* @property {string} [disclaimer]
|
|
549
|
-
* @property {Meta} [meta]
|
|
550
|
-
* @property {boolean} [is_self_ship]
|
|
551
|
-
* @property {string} [mode]
|
|
552
|
-
* @property {boolean} [is_self_pickup]
|
|
553
|
-
* @property {string} [platform_name]
|
|
554
|
-
* @property {number} [amount_to_be_collected]
|
|
555
|
-
* @property {number} [amount_paid]
|
|
556
|
-
* @property {Object[]} [waybills]
|
|
557
|
-
* @property {number} [total_items]
|
|
558
|
-
* @property {string} [brand_logo]
|
|
559
|
-
* @property {string} [shipment_id_barcode]
|
|
560
|
-
* @property {string} [signed_qrcode]
|
|
561
|
-
* @property {string} [upi_qrcode]
|
|
562
|
-
* @property {string} [digitalsignature]
|
|
563
|
-
* @property {string} [awb_number_barcode]
|
|
564
|
-
* @property {string} [uid]
|
|
565
|
-
*/
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
* @typedef DummyTemplateData
|
|
569
|
-
* @property {string} [_id] - This field contains the unique identifier for the
|
|
570
|
-
* PDF payload.
|
|
571
|
-
* @property {number} [pdf_type_id] - This is invoice unique id
|
|
572
|
-
* @property {PdfPayloadDetails} payload
|
|
573
|
-
* @property {string} [country_code] - This field represents the country code.
|
|
574
|
-
* @property {number} [__v]
|
|
575
|
-
*/
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* @typedef savePdfPayload
|
|
579
|
-
* @property {number} [pdf_type_id]
|
|
580
|
-
* @property {PdfPayloadDetails} [payload]
|
|
581
|
-
* @property {string} [country_code]
|
|
582
|
-
*/
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* @typedef MapperDetails
|
|
586
|
-
* @property {string} [_id]
|
|
587
|
-
* @property {number} [pdf_type_id]
|
|
588
|
-
* @property {PdfPayloadDetails} [payload]
|
|
589
|
-
* @property {string} [country_code]
|
|
590
|
-
* @property {number} [__v] - This field holds the version number.
|
|
591
|
-
*/
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* @typedef PdfDataItemsDetails
|
|
595
|
-
* @property {DummyTemplateData[]} data
|
|
596
|
-
* @property {boolean} success
|
|
597
|
-
*/
|
|
598
|
-
|
|
599
102
|
/**
|
|
600
103
|
* @typedef PdfConfig
|
|
601
104
|
* @property {string} [format] - This is invoice document format such as A4, A6, POS
|
|
@@ -623,13 +126,6 @@ const Joi = require("joi");
|
|
|
623
126
|
* @property {string} [country_code]
|
|
624
127
|
*/
|
|
625
128
|
|
|
626
|
-
/**
|
|
627
|
-
* @typedef DeleteMapperById
|
|
628
|
-
* @property {string} [message] - This field represents the country code.
|
|
629
|
-
* @property {boolean} [default_template] - This field indicates whether the
|
|
630
|
-
* HTML template is the default template.
|
|
631
|
-
*/
|
|
632
|
-
|
|
633
129
|
/**
|
|
634
130
|
* @typedef PdfConfigSuccess
|
|
635
131
|
* @property {PdfConfigSuccessData[]} [data]
|
|
@@ -653,16 +149,6 @@ const Joi = require("joi");
|
|
|
653
149
|
* @property {boolean} [success]
|
|
654
150
|
*/
|
|
655
151
|
|
|
656
|
-
/**
|
|
657
|
-
* @typedef Document
|
|
658
|
-
* @property {string} [_id]
|
|
659
|
-
* @property {number} [pdf_type_id]
|
|
660
|
-
* @property {string} [format]
|
|
661
|
-
* @property {string} [template]
|
|
662
|
-
* @property {string} [country_code]
|
|
663
|
-
* @property {number} [__v]
|
|
664
|
-
*/
|
|
665
|
-
|
|
666
152
|
/**
|
|
667
153
|
* @typedef PaymentReceiptRequestBody
|
|
668
154
|
* @property {PaymentReceiptPayload} [payload]
|
|
@@ -743,115 +229,6 @@ const Joi = require("joi");
|
|
|
743
229
|
*/
|
|
744
230
|
|
|
745
231
|
class FileStoragePlatformModel {
|
|
746
|
-
/** @returns {UpdatePdfType} */
|
|
747
|
-
static UpdatePdfType() {
|
|
748
|
-
return Joi.object({
|
|
749
|
-
pdf_type_id: Joi.number(),
|
|
750
|
-
name: Joi.string().allow(""),
|
|
751
|
-
format: Joi.array().items(Joi.string().allow("")),
|
|
752
|
-
visibility: Joi.boolean(),
|
|
753
|
-
schema: Joi.object().pattern(/\S/, Joi.any()),
|
|
754
|
-
store_os: Joi.boolean(),
|
|
755
|
-
country_code: Joi.string().allow(""),
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
/** @returns {PdfTypeByIdDetails} */
|
|
760
|
-
static PdfTypeByIdDetails() {
|
|
761
|
-
return Joi.object({
|
|
762
|
-
store_os: Joi.boolean(),
|
|
763
|
-
country_code: Joi.string().allow(""),
|
|
764
|
-
pdf_type_id: Joi.number(),
|
|
765
|
-
__v: Joi.number(),
|
|
766
|
-
_id: Joi.string().allow(""),
|
|
767
|
-
format: Joi.array().items(Joi.string().allow("")),
|
|
768
|
-
name: Joi.string().allow(""),
|
|
769
|
-
visibility: Joi.boolean(),
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
/** @returns {PdfConfigurationData} */
|
|
774
|
-
static PdfConfigurationData() {
|
|
775
|
-
return Joi.object({
|
|
776
|
-
_id: Joi.string().allow(""),
|
|
777
|
-
pdf_type_id: Joi.number(),
|
|
778
|
-
format: Joi.string().allow(""),
|
|
779
|
-
template: Joi.string().allow(""),
|
|
780
|
-
country_code: Joi.string().allow(""),
|
|
781
|
-
__v: Joi.number(),
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
/** @returns {UpdatedDefaultTemplateById} */
|
|
786
|
-
static UpdatedDefaultTemplateById() {
|
|
787
|
-
return Joi.object({
|
|
788
|
-
data: FileStoragePlatformModel.PdfConfigurationData(),
|
|
789
|
-
success: Joi.boolean(),
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
/** @returns {UpdateTemplate} */
|
|
794
|
-
static UpdateTemplate() {
|
|
795
|
-
return Joi.object({
|
|
796
|
-
pdf_type_id: Joi.number(),
|
|
797
|
-
format: Joi.string().allow(""),
|
|
798
|
-
country_code: Joi.string().allow(""),
|
|
799
|
-
template: Joi.string().allow(""),
|
|
800
|
-
store_os: Joi.boolean(),
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
/** @returns {PdfDefaultTemplateById} */
|
|
805
|
-
static PdfDefaultTemplateById() {
|
|
806
|
-
return Joi.object({
|
|
807
|
-
_id: Joi.string().allow(""),
|
|
808
|
-
country_code: Joi.string().allow(""),
|
|
809
|
-
format: Joi.string().allow(""),
|
|
810
|
-
pdf_type_id: Joi.number(),
|
|
811
|
-
__v: Joi.number(),
|
|
812
|
-
template: Joi.string().allow(""),
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
/** @returns {PdfTemplateCreateSuccess} */
|
|
817
|
-
static PdfTemplateCreateSuccess() {
|
|
818
|
-
return Joi.object({
|
|
819
|
-
code: Joi.number(),
|
|
820
|
-
success: Joi.boolean(),
|
|
821
|
-
data: FileStoragePlatformModel.PdfTemplateCreateSuccessData(),
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/** @returns {PdfTemplateCreateSuccessData} */
|
|
826
|
-
static PdfTemplateCreateSuccessData() {
|
|
827
|
-
return Joi.object({
|
|
828
|
-
_id: Joi.string().allow(""),
|
|
829
|
-
pdf_type_id: Joi.number(),
|
|
830
|
-
format: Joi.string().allow(""),
|
|
831
|
-
template: Joi.string().allow(""),
|
|
832
|
-
country_code: Joi.string().allow(""),
|
|
833
|
-
__v: Joi.number(),
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
/** @returns {CreateTemplate} */
|
|
838
|
-
static CreateTemplate() {
|
|
839
|
-
return Joi.object({
|
|
840
|
-
pdf_type_id: Joi.number().required(),
|
|
841
|
-
format: Joi.string().allow("").required(),
|
|
842
|
-
country_code: Joi.string().allow("").required(),
|
|
843
|
-
template: Joi.string().allow(""),
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
/** @returns {PdfDefaultTemplateSuccess} */
|
|
848
|
-
static PdfDefaultTemplateSuccess() {
|
|
849
|
-
return Joi.object({
|
|
850
|
-
data: Joi.array().items(FileStoragePlatformModel.Document()),
|
|
851
|
-
success: Joi.boolean(),
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
|
|
855
232
|
/** @returns {FailedBrowseFilesResult} */
|
|
856
233
|
static FailedBrowseFilesResult() {
|
|
857
234
|
return Joi.object({
|
|
@@ -977,488 +354,6 @@ class FileStoragePlatformModel {
|
|
|
977
354
|
});
|
|
978
355
|
}
|
|
979
356
|
|
|
980
|
-
/** @returns {InvoiceTypesData} */
|
|
981
|
-
static InvoiceTypesData() {
|
|
982
|
-
return Joi.object({
|
|
983
|
-
status: Joi.boolean(),
|
|
984
|
-
_id: Joi.string().allow("").required(),
|
|
985
|
-
pdf_type_id: Joi.number().required(),
|
|
986
|
-
name: Joi.string().allow("").required(),
|
|
987
|
-
format: Joi.array().items(Joi.string().allow("")).required(),
|
|
988
|
-
__v: Joi.number().required(),
|
|
989
|
-
visibility: Joi.boolean().required(),
|
|
990
|
-
store_os: Joi.boolean().required(),
|
|
991
|
-
country_code: Joi.string().allow("").required(),
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
/** @returns {InvoiceTypes} */
|
|
996
|
-
static InvoiceTypes() {
|
|
997
|
-
return Joi.object({
|
|
998
|
-
data: Joi.array()
|
|
999
|
-
.items(FileStoragePlatformModel.InvoiceTypesData())
|
|
1000
|
-
.required(),
|
|
1001
|
-
success: Joi.boolean().required(),
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
/** @returns {ConversionRate} */
|
|
1006
|
-
static ConversionRate() {
|
|
1007
|
-
return Joi.object({
|
|
1008
|
-
base: Joi.string().allow(""),
|
|
1009
|
-
rates: Joi.object().pattern(/\S/, Joi.any()),
|
|
1010
|
-
timestamp: Joi.number(),
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
/** @returns {DeliveryPartnerDetail} */
|
|
1015
|
-
static DeliveryPartnerDetail() {
|
|
1016
|
-
return Joi.object({
|
|
1017
|
-
name: Joi.string().allow(""),
|
|
1018
|
-
awb_number_barcode: Joi.string().allow(""),
|
|
1019
|
-
awb_number: Joi.string().allow(""),
|
|
1020
|
-
origin: Joi.string().allow(""),
|
|
1021
|
-
destination: Joi.string().allow(""),
|
|
1022
|
-
eway_bill_number: Joi.string().allow("").allow(null),
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/** @returns {Image} */
|
|
1027
|
-
static Image() {
|
|
1028
|
-
return Joi.object({
|
|
1029
|
-
sales_channel_logo: Joi.string().allow(""),
|
|
1030
|
-
});
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
/** @returns {PaymentData} */
|
|
1034
|
-
static PaymentData() {
|
|
1035
|
-
return Joi.object({
|
|
1036
|
-
payment_type: Joi.string().allow(""),
|
|
1037
|
-
amount: Joi.number(),
|
|
1038
|
-
date: Joi.string().allow(""),
|
|
1039
|
-
transaction_id: Joi.string().allow(""),
|
|
1040
|
-
time: Joi.string().allow(""),
|
|
1041
|
-
mode: Joi.string().allow(""),
|
|
1042
|
-
name: Joi.string().allow(""),
|
|
1043
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
/** @returns {InvoiceDetail} */
|
|
1048
|
-
static InvoiceDetail() {
|
|
1049
|
-
return Joi.object({
|
|
1050
|
-
invoice_id: Joi.string().allow(""),
|
|
1051
|
-
invoice_date: Joi.string().allow(""),
|
|
1052
|
-
irn: Joi.string().allow(""),
|
|
1053
|
-
external_order_id: Joi.string().allow(""),
|
|
1054
|
-
shipment_id: Joi.string().allow(""),
|
|
1055
|
-
signed_qrcode: Joi.string().allow(""),
|
|
1056
|
-
upi_qrcode: Joi.string().allow(""),
|
|
1057
|
-
device_id: Joi.string().allow(""),
|
|
1058
|
-
marketplace_invoice_id: Joi.string().allow(""),
|
|
1059
|
-
marketplace_shipment_id: Joi.string().allow(""),
|
|
1060
|
-
channel_order_id: Joi.string().allow(""),
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
/** @returns {CompanyDetail} */
|
|
1065
|
-
static CompanyDetail() {
|
|
1066
|
-
return Joi.object({
|
|
1067
|
-
name: Joi.string().allow(""),
|
|
1068
|
-
address: Joi.string().allow(""),
|
|
1069
|
-
city: Joi.string().allow(""),
|
|
1070
|
-
state: Joi.string().allow(""),
|
|
1071
|
-
country: Joi.string().allow(""),
|
|
1072
|
-
zip_code: Joi.number(),
|
|
1073
|
-
state_code: Joi.string().allow(""),
|
|
1074
|
-
country_code: Joi.string().allow(""),
|
|
1075
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1076
|
-
pan: Joi.string().allow("").allow(null),
|
|
1077
|
-
phone_no: Joi.string().allow("").allow(null),
|
|
1078
|
-
cin: Joi.string().allow(""),
|
|
1079
|
-
website_url: Joi.string().allow(""),
|
|
1080
|
-
email: Joi.string().allow(""),
|
|
1081
|
-
display_address: Joi.string().allow(""),
|
|
1082
|
-
sector: Joi.string().allow(""),
|
|
1083
|
-
phone: Joi.object().pattern(/\S/, Joi.any()),
|
|
1084
|
-
trn: Joi.string().allow(""),
|
|
1085
|
-
vat: Joi.string().allow(""),
|
|
1086
|
-
business_country_timezone: Joi.string().allow(""),
|
|
1087
|
-
business_country_currency: Joi.object().pattern(/\S/, Joi.any()),
|
|
1088
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1089
|
-
});
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
/** @returns {StoreDetail} */
|
|
1093
|
-
static StoreDetail() {
|
|
1094
|
-
return Joi.object({
|
|
1095
|
-
store_name: Joi.string().allow(""),
|
|
1096
|
-
address: Joi.string().allow(""),
|
|
1097
|
-
city: Joi.string().allow(""),
|
|
1098
|
-
state: Joi.string().allow(""),
|
|
1099
|
-
country: Joi.string().allow(""),
|
|
1100
|
-
country_code: Joi.string().allow(""),
|
|
1101
|
-
zip_code: Joi.string().allow(""),
|
|
1102
|
-
state_code: Joi.string().allow(""),
|
|
1103
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1104
|
-
display_address: Joi.string().allow(""),
|
|
1105
|
-
sector: Joi.string().allow(""),
|
|
1106
|
-
store_id: Joi.string().allow(""),
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
/** @returns {CustomerBillingDetail} */
|
|
1111
|
-
static CustomerBillingDetail() {
|
|
1112
|
-
return Joi.object({
|
|
1113
|
-
name: Joi.string().allow(""),
|
|
1114
|
-
phone_no: Joi.string().allow(""),
|
|
1115
|
-
address: Joi.string().allow(""),
|
|
1116
|
-
city: Joi.string().allow(""),
|
|
1117
|
-
state: Joi.string().allow(""),
|
|
1118
|
-
country: Joi.string().allow(""),
|
|
1119
|
-
country_code: Joi.string().allow(""),
|
|
1120
|
-
zip_code: Joi.string().allow(""),
|
|
1121
|
-
state_code: Joi.string().allow(""),
|
|
1122
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1123
|
-
display_address: Joi.string().allow(""),
|
|
1124
|
-
sector: Joi.string().allow(""),
|
|
1125
|
-
email: Joi.string().allow(""),
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
/** @returns {CustomerShippingDetail} */
|
|
1130
|
-
static CustomerShippingDetail() {
|
|
1131
|
-
return Joi.object({
|
|
1132
|
-
name: Joi.string().allow(""),
|
|
1133
|
-
phone_no: Joi.string().allow(""),
|
|
1134
|
-
address: Joi.string().allow(""),
|
|
1135
|
-
city: Joi.string().allow(""),
|
|
1136
|
-
state: Joi.string().allow(""),
|
|
1137
|
-
country: Joi.string().allow(""),
|
|
1138
|
-
country_code: Joi.string().allow(""),
|
|
1139
|
-
zip_code: Joi.string().allow(""),
|
|
1140
|
-
state_code: Joi.string().allow(""),
|
|
1141
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1142
|
-
display_address: Joi.string().allow(""),
|
|
1143
|
-
sector: Joi.string().allow(""),
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
/** @returns {ReturnDetail} */
|
|
1148
|
-
static ReturnDetail() {
|
|
1149
|
-
return Joi.object({
|
|
1150
|
-
address: Joi.string().allow(""),
|
|
1151
|
-
city: Joi.string().allow(""),
|
|
1152
|
-
state: Joi.string().allow(""),
|
|
1153
|
-
country: Joi.string().allow(""),
|
|
1154
|
-
country_code: Joi.string().allow("").allow(null),
|
|
1155
|
-
zip_code: Joi.string().allow(""),
|
|
1156
|
-
state_code: Joi.string().allow(""),
|
|
1157
|
-
gstin: Joi.string().allow("").allow(null),
|
|
1158
|
-
display_address: Joi.string().allow(""),
|
|
1159
|
-
sector: Joi.string().allow(""),
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
/** @returns {Brand} */
|
|
1164
|
-
static Brand() {
|
|
1165
|
-
return Joi.object({
|
|
1166
|
-
logo: Joi.string().allow(""),
|
|
1167
|
-
name: Joi.string().allow(""),
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
/** @returns {Cgst} */
|
|
1172
|
-
static Cgst() {
|
|
1173
|
-
return Joi.object({
|
|
1174
|
-
value: Joi.number(),
|
|
1175
|
-
percent: Joi.number(),
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
/** @returns {Sgst} */
|
|
1180
|
-
static Sgst() {
|
|
1181
|
-
return Joi.object({
|
|
1182
|
-
value: Joi.number(),
|
|
1183
|
-
percent: Joi.number(),
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
/** @returns {Igst} */
|
|
1188
|
-
static Igst() {
|
|
1189
|
-
return Joi.object({
|
|
1190
|
-
value: Joi.number(),
|
|
1191
|
-
percent: Joi.number(),
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
/** @returns {Tax} */
|
|
1196
|
-
static Tax() {
|
|
1197
|
-
return Joi.object({
|
|
1198
|
-
cgst: FileStoragePlatformModel.Cgst(),
|
|
1199
|
-
sgst: FileStoragePlatformModel.Sgst(),
|
|
1200
|
-
igst: FileStoragePlatformModel.Igst(),
|
|
1201
|
-
});
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
/** @returns {ItemsProductTable} */
|
|
1205
|
-
static ItemsProductTable() {
|
|
1206
|
-
return Joi.object({
|
|
1207
|
-
name: Joi.string().allow(""),
|
|
1208
|
-
seller_identifier: Joi.string().allow(""),
|
|
1209
|
-
total: Joi.number(),
|
|
1210
|
-
brand: FileStoragePlatformModel.Brand(),
|
|
1211
|
-
hsn_code: Joi.string().allow(""),
|
|
1212
|
-
item_code: Joi.string().allow(""),
|
|
1213
|
-
total_units: Joi.number(),
|
|
1214
|
-
size: Joi.string().allow(""),
|
|
1215
|
-
mrp: Joi.number(),
|
|
1216
|
-
discount: Joi.number(),
|
|
1217
|
-
taxable_amount: Joi.number(),
|
|
1218
|
-
total_taxable_amount: Joi.number(),
|
|
1219
|
-
tax: FileStoragePlatformModel.Tax(),
|
|
1220
|
-
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1221
|
-
country_of_origin: Joi.string().allow(""),
|
|
1222
|
-
});
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
/** @returns {ProductTable} */
|
|
1226
|
-
static ProductTable() {
|
|
1227
|
-
return Joi.object({
|
|
1228
|
-
total_items: Joi.number(),
|
|
1229
|
-
products: Joi.array().items(FileStoragePlatformModel.ItemsProductTable()),
|
|
1230
|
-
grand_total: Joi.number(),
|
|
1231
|
-
delivery_charges: Joi.number(),
|
|
1232
|
-
delivery_charge_text: Joi.string().allow(""),
|
|
1233
|
-
cod_charges: Joi.number(),
|
|
1234
|
-
fynd_discounts: Joi.number(),
|
|
1235
|
-
total_in_words: Joi.string().allow(""),
|
|
1236
|
-
gift_price: Joi.number(),
|
|
1237
|
-
total_quantity: Joi.number(),
|
|
1238
|
-
sub_total: Joi.number(),
|
|
1239
|
-
discount: Joi.number(),
|
|
1240
|
-
promotion: Joi.number(),
|
|
1241
|
-
coupon: Joi.number(),
|
|
1242
|
-
reward: Joi.number(),
|
|
1243
|
-
round_off: Joi.number(),
|
|
1244
|
-
total_value_of_goods: Joi.number(),
|
|
1245
|
-
});
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
/** @returns {Taxes} */
|
|
1249
|
-
static Taxes() {
|
|
1250
|
-
return Joi.object({
|
|
1251
|
-
hsn_code: Joi.string().allow(""),
|
|
1252
|
-
tax: FileStoragePlatformModel.Tax(),
|
|
1253
|
-
total_tax_value: Joi.number(),
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
/** @returns {TaxTable} */
|
|
1258
|
-
static TaxTable() {
|
|
1259
|
-
return Joi.object({
|
|
1260
|
-
taxes: Joi.array().items(FileStoragePlatformModel.Taxes()),
|
|
1261
|
-
total_tax: Joi.number(),
|
|
1262
|
-
tax_in_words: Joi.string().allow(""),
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
/** @returns {RegisteredCompanyDetail} */
|
|
1267
|
-
static RegisteredCompanyDetail() {
|
|
1268
|
-
return Joi.object({
|
|
1269
|
-
address: Joi.string().allow(""),
|
|
1270
|
-
city: Joi.string().allow(""),
|
|
1271
|
-
state: Joi.string().allow(""),
|
|
1272
|
-
country: Joi.string().allow(""),
|
|
1273
|
-
country_code: Joi.string().allow(""),
|
|
1274
|
-
zip_code: Joi.number(),
|
|
1275
|
-
state_code: Joi.string().allow(""),
|
|
1276
|
-
display_address: Joi.string().allow(""),
|
|
1277
|
-
sector: Joi.string().allow(""),
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
/** @returns {Kwargs} */
|
|
1282
|
-
static Kwargs() {
|
|
1283
|
-
return Joi.object({
|
|
1284
|
-
value: Joi.string().allow(""),
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
/** @returns {ShipmentIdBarcodeGenerator} */
|
|
1289
|
-
static ShipmentIdBarcodeGenerator() {
|
|
1290
|
-
return Joi.object({
|
|
1291
|
-
method: Joi.string().allow(""),
|
|
1292
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
/** @returns {SignedQrcodeGenerator} */
|
|
1297
|
-
static SignedQrcodeGenerator() {
|
|
1298
|
-
return Joi.object({
|
|
1299
|
-
method: Joi.string().allow(""),
|
|
1300
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
/** @returns {KwargsUpiQrcode} */
|
|
1305
|
-
static KwargsUpiQrcode() {
|
|
1306
|
-
return Joi.object({
|
|
1307
|
-
qr_data: Joi.string().allow(""),
|
|
1308
|
-
qr_url: Joi.string().allow(""),
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
/** @returns {UpiQrcodeGenerator} */
|
|
1313
|
-
static UpiQrcodeGenerator() {
|
|
1314
|
-
return Joi.object({
|
|
1315
|
-
method: Joi.string().allow(""),
|
|
1316
|
-
kwargs: FileStoragePlatformModel.KwargsUpiQrcode(),
|
|
1317
|
-
});
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
/** @returns {DigitalsignatureGenerator} */
|
|
1321
|
-
static DigitalsignatureGenerator() {
|
|
1322
|
-
return Joi.object({
|
|
1323
|
-
method: Joi.string().allow(""),
|
|
1324
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
/** @returns {KwargsAwbNumber} */
|
|
1329
|
-
static KwargsAwbNumber() {
|
|
1330
|
-
return Joi.object({
|
|
1331
|
-
value: Joi.array().items(Joi.any()),
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/** @returns {AwbNumberLabelBarcodeGenerator} */
|
|
1336
|
-
static AwbNumberLabelBarcodeGenerator() {
|
|
1337
|
-
return Joi.object({
|
|
1338
|
-
method: Joi.string().allow(""),
|
|
1339
|
-
kwargs: FileStoragePlatformModel.KwargsAwbNumber(),
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
/** @returns {AwbNumberBarcodeGenerator} */
|
|
1344
|
-
static AwbNumberBarcodeGenerator() {
|
|
1345
|
-
return Joi.object({
|
|
1346
|
-
method: Joi.string().allow(""),
|
|
1347
|
-
kwargs: FileStoragePlatformModel.Kwargs(),
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
/** @returns {MetaProperty} */
|
|
1352
|
-
static MetaProperty() {
|
|
1353
|
-
return Joi.object({
|
|
1354
|
-
shipment_id_barcode_generator: FileStoragePlatformModel.ShipmentIdBarcodeGenerator(),
|
|
1355
|
-
signed_qrcode_generator: FileStoragePlatformModel.SignedQrcodeGenerator(),
|
|
1356
|
-
upi_qrcode_generator: FileStoragePlatformModel.UpiQrcodeGenerator(),
|
|
1357
|
-
digitalsignature_generator: FileStoragePlatformModel.DigitalsignatureGenerator(),
|
|
1358
|
-
awb_number_label_barcode_generator: FileStoragePlatformModel.AwbNumberLabelBarcodeGenerator(),
|
|
1359
|
-
awb_number_barcode_generator: FileStoragePlatformModel.AwbNumberBarcodeGenerator(),
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
/** @returns {Meta} */
|
|
1364
|
-
static Meta() {
|
|
1365
|
-
return Joi.object({
|
|
1366
|
-
generator: FileStoragePlatformModel.MetaProperty(),
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
/** @returns {PdfPayloadDetails} */
|
|
1371
|
-
static PdfPayloadDetails() {
|
|
1372
|
-
return Joi.object({
|
|
1373
|
-
is_export: Joi.boolean(),
|
|
1374
|
-
is_export_shipment: Joi.boolean(),
|
|
1375
|
-
app_domain_name: Joi.string().allow(""),
|
|
1376
|
-
txn_id: Joi.string().allow(""),
|
|
1377
|
-
utr: Joi.string().allow(""),
|
|
1378
|
-
po_number: Joi.string().allow(""),
|
|
1379
|
-
credit_note_id: Joi.string().allow("").allow(null),
|
|
1380
|
-
current_date: Joi.string().allow(""),
|
|
1381
|
-
total_value_of_goods: Joi.number(),
|
|
1382
|
-
b2b_buyer_details: Joi.object().pattern(/\S/, Joi.any()),
|
|
1383
|
-
is_qwik: Joi.object().pattern(/\S/, Joi.any()),
|
|
1384
|
-
order_type: Joi.string().allow(""),
|
|
1385
|
-
conversion_rate: FileStoragePlatformModel.ConversionRate(),
|
|
1386
|
-
currency_code: Joi.string().allow(""),
|
|
1387
|
-
shipment_id: Joi.string().allow(""),
|
|
1388
|
-
delivery_partner_detail: FileStoragePlatformModel.DeliveryPartnerDetail(),
|
|
1389
|
-
image: FileStoragePlatformModel.Image(),
|
|
1390
|
-
payments: Joi.array().items(FileStoragePlatformModel.PaymentData()),
|
|
1391
|
-
invoice_detail: FileStoragePlatformModel.InvoiceDetail(),
|
|
1392
|
-
company_detail: FileStoragePlatformModel.CompanyDetail(),
|
|
1393
|
-
store_detail: FileStoragePlatformModel.StoreDetail(),
|
|
1394
|
-
customer_billing_detail: FileStoragePlatformModel.CustomerBillingDetail(),
|
|
1395
|
-
customer_shipping_detail: FileStoragePlatformModel.CustomerShippingDetail(),
|
|
1396
|
-
return_detail: FileStoragePlatformModel.ReturnDetail(),
|
|
1397
|
-
product_table: FileStoragePlatformModel.ProductTable(),
|
|
1398
|
-
tax_table: FileStoragePlatformModel.TaxTable(),
|
|
1399
|
-
declaration_texts: Joi.array().items(Joi.string().allow("")),
|
|
1400
|
-
registered_company_detail: FileStoragePlatformModel.RegisteredCompanyDetail(),
|
|
1401
|
-
disclaimer: Joi.string().allow(""),
|
|
1402
|
-
meta: FileStoragePlatformModel.Meta(),
|
|
1403
|
-
is_self_ship: Joi.boolean(),
|
|
1404
|
-
mode: Joi.string().allow(""),
|
|
1405
|
-
is_self_pickup: Joi.boolean(),
|
|
1406
|
-
platform_name: Joi.string().allow(""),
|
|
1407
|
-
amount_to_be_collected: Joi.number(),
|
|
1408
|
-
amount_paid: Joi.number(),
|
|
1409
|
-
waybills: Joi.array().items(Joi.any()),
|
|
1410
|
-
total_items: Joi.number(),
|
|
1411
|
-
brand_logo: Joi.string().allow(""),
|
|
1412
|
-
shipment_id_barcode: Joi.string().allow(""),
|
|
1413
|
-
signed_qrcode: Joi.string().allow(""),
|
|
1414
|
-
upi_qrcode: Joi.string().allow(""),
|
|
1415
|
-
digitalsignature: Joi.string().allow(""),
|
|
1416
|
-
awb_number_barcode: Joi.string().allow(""),
|
|
1417
|
-
uid: Joi.string().allow(""),
|
|
1418
|
-
});
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
/** @returns {DummyTemplateData} */
|
|
1422
|
-
static DummyTemplateData() {
|
|
1423
|
-
return Joi.object({
|
|
1424
|
-
_id: Joi.string().allow(""),
|
|
1425
|
-
pdf_type_id: Joi.number(),
|
|
1426
|
-
payload: FileStoragePlatformModel.PdfPayloadDetails().required(),
|
|
1427
|
-
country_code: Joi.string().allow(""),
|
|
1428
|
-
__v: Joi.number(),
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
/** @returns {savePdfPayload} */
|
|
1433
|
-
static savePdfPayload() {
|
|
1434
|
-
return Joi.object({
|
|
1435
|
-
pdf_type_id: Joi.number(),
|
|
1436
|
-
payload: FileStoragePlatformModel.PdfPayloadDetails(),
|
|
1437
|
-
country_code: Joi.string().allow(""),
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
/** @returns {MapperDetails} */
|
|
1442
|
-
static MapperDetails() {
|
|
1443
|
-
return Joi.object({
|
|
1444
|
-
_id: Joi.string().allow(""),
|
|
1445
|
-
pdf_type_id: Joi.number(),
|
|
1446
|
-
payload: FileStoragePlatformModel.PdfPayloadDetails(),
|
|
1447
|
-
country_code: Joi.string().allow(""),
|
|
1448
|
-
__v: Joi.number(),
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
/** @returns {PdfDataItemsDetails} */
|
|
1453
|
-
static PdfDataItemsDetails() {
|
|
1454
|
-
return Joi.object({
|
|
1455
|
-
data: Joi.array()
|
|
1456
|
-
.items(FileStoragePlatformModel.DummyTemplateData())
|
|
1457
|
-
.required(),
|
|
1458
|
-
success: Joi.boolean().required(),
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
357
|
/** @returns {PdfConfig} */
|
|
1463
358
|
static PdfConfig() {
|
|
1464
359
|
return Joi.object({
|
|
@@ -1484,14 +379,6 @@ class FileStoragePlatformModel {
|
|
|
1484
379
|
});
|
|
1485
380
|
}
|
|
1486
381
|
|
|
1487
|
-
/** @returns {DeleteMapperById} */
|
|
1488
|
-
static DeleteMapperById() {
|
|
1489
|
-
return Joi.object({
|
|
1490
|
-
message: Joi.string().allow(""),
|
|
1491
|
-
default_template: Joi.boolean(),
|
|
1492
|
-
});
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
382
|
/** @returns {PdfConfigSuccess} */
|
|
1496
383
|
static PdfConfigSuccess() {
|
|
1497
384
|
return Joi.object({
|
|
@@ -1521,18 +408,6 @@ class FileStoragePlatformModel {
|
|
|
1521
408
|
});
|
|
1522
409
|
}
|
|
1523
410
|
|
|
1524
|
-
/** @returns {Document} */
|
|
1525
|
-
static Document() {
|
|
1526
|
-
return Joi.object({
|
|
1527
|
-
_id: Joi.string().allow(""),
|
|
1528
|
-
pdf_type_id: Joi.number(),
|
|
1529
|
-
format: Joi.string().allow(""),
|
|
1530
|
-
template: Joi.string().allow(""),
|
|
1531
|
-
country_code: Joi.string().allow(""),
|
|
1532
|
-
__v: Joi.number(),
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
411
|
/** @returns {PaymentReceiptRequestBody} */
|
|
1537
412
|
static PaymentReceiptRequestBody() {
|
|
1538
413
|
return Joi.object({
|