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

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