@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4

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