@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.3

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