@silexpert/core 1.3.37-5 → 1.3.38

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 (333) hide show
  1. package/dist/cjs/api/resources/Authenticate.d.ts +6 -0
  2. package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Authenticate.js +8 -0
  4. package/dist/cjs/api/resources/Authenticate.js.map +1 -1
  5. package/dist/cjs/api/resources/Card.d.ts +2 -18
  6. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Card.js +0 -19
  8. package/dist/cjs/api/resources/Card.js.map +1 -1
  9. package/dist/cjs/api/resources/PaymentExpectation.d.ts +16 -1
  10. package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/PaymentExpectation.js +20 -0
  12. package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
  13. package/dist/cjs/api/resources/Society.d.ts +2 -1
  14. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  15. package/dist/cjs/api/resources/Society.js +3 -0
  16. package/dist/cjs/api/resources/Society.js.map +1 -1
  17. package/dist/cjs/api/resources/SocietyDetail.js +1 -1
  18. package/dist/cjs/api/resources/SocietyDetail.js.map +1 -1
  19. package/dist/cjs/api/resources/Subscription.d.ts +23 -6
  20. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  21. package/dist/cjs/api/resources/Subscription.js +28 -8
  22. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  23. package/dist/cjs/api/resources/prestation.d.ts +3 -1
  24. package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
  25. package/dist/cjs/api/resources/prestation.js.map +1 -1
  26. package/dist/cjs/types/Enum/Card.d.ts +22 -110
  27. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  28. package/dist/cjs/types/Enum/Card.js +26 -162
  29. package/dist/cjs/types/Enum/Card.js.map +1 -1
  30. package/dist/cjs/types/Enum/Feature.d.ts +41 -0
  31. package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
  32. package/dist/cjs/types/Enum/Feature.js +65 -0
  33. package/dist/cjs/types/Enum/Feature.js.map +1 -0
  34. package/dist/cjs/types/Enum/PartneredAccountantServiceType.d.ts +11 -0
  35. package/dist/cjs/types/Enum/PartneredAccountantServiceType.d.ts.map +1 -0
  36. package/dist/cjs/types/Enum/PartneredAccountantServiceType.js +43 -0
  37. package/dist/cjs/types/Enum/PartneredAccountantServiceType.js.map +1 -0
  38. package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.d.ts +9 -0
  39. package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.d.ts.map +1 -0
  40. package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.js +13 -0
  41. package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -0
  42. package/dist/cjs/types/Enum/PrestationType.d.ts +13 -1
  43. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  44. package/dist/cjs/types/Enum/PrestationType.js +183 -1
  45. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  46. package/dist/cjs/types/Enum/PriceGridClementine.d.ts +27 -0
  47. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  48. package/dist/cjs/types/Enum/PriceGridClementine.js +88 -28
  49. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  50. package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
  51. package/dist/cjs/types/Enum/PriceGridLegalstart.js +1 -1
  52. package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
  53. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  54. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +118 -0
  55. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  56. package/dist/cjs/types/Enum/TimeCounterType.d.ts +362 -9
  57. package/dist/cjs/types/Enum/TimeCounterType.d.ts.map +1 -1
  58. package/dist/cjs/types/Enum/TimeCounterType.js +0 -8
  59. package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
  60. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +1 -11
  61. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  62. package/dist/cjs/types/Interface/api/card/UpdateCard.js +2 -38
  63. package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  64. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +1 -0
  65. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  66. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  67. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +1 -0
  68. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  69. package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
  70. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +1 -0
  71. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  72. package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
  73. package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
  74. package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
  75. package/dist/cjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
  76. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -0
  77. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  78. package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
  79. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -0
  80. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  81. package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
  82. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +1 -0
  83. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  84. package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
  85. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -13
  86. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  87. package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
  88. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  89. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  90. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +9 -3
  91. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  92. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  93. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  94. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +15 -1
  95. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  96. package/dist/cjs/types/Interface/api/society/State.d.ts +7 -0
  97. package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -1
  98. package/dist/cjs/types/Interface/api/society/State.js.map +1 -1
  99. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +22 -1
  100. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  101. package/dist/cjs/types/Interface/api/stripe/Create.js +74 -3
  102. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  103. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
  104. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  105. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +5 -8
  106. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  107. package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts +0 -2
  108. package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
  109. package/dist/cjs/types/Interface/api/team/QueryUpdate.js +0 -7
  110. package/dist/cjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
  111. package/dist/cjs/types/Interface/models/ICard.d.ts +0 -20
  112. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  113. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  114. package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
  115. package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
  116. package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
  117. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  118. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  119. package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  120. package/dist/cjs/types/Interface/models/ITeam.d.ts +0 -2
  121. package/dist/cjs/types/Interface/models/ITeam.d.ts.map +1 -1
  122. package/dist/cjs/types/Interface/models/ITeam.js.map +1 -1
  123. package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
  124. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  125. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  126. package/dist/cjs/types/index.d.ts +3 -2
  127. package/dist/cjs/types/index.d.ts.map +1 -1
  128. package/dist/cjs/types/index.js +3 -2
  129. package/dist/cjs/types/index.js.map +1 -1
  130. package/dist/cjs/utils/brands.js +1 -1
  131. package/dist/cjs/utils/brands.js.map +1 -1
  132. package/dist/cjs/utils/prestation.d.ts +2 -1
  133. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  134. package/dist/cjs/utils/prestation.js +11 -1
  135. package/dist/cjs/utils/prestation.js.map +1 -1
  136. package/dist/cjs/utils/subscription.js +1 -1
  137. package/dist/cjs/utils/subscription.js.map +1 -1
  138. package/dist/mjs/api/resources/Authenticate.d.ts +6 -0
  139. package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
  140. package/dist/mjs/api/resources/Authenticate.js +6 -0
  141. package/dist/mjs/api/resources/Authenticate.js.map +1 -1
  142. package/dist/mjs/api/resources/Card.d.ts +2 -18
  143. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  144. package/dist/mjs/api/resources/Card.js +0 -19
  145. package/dist/mjs/api/resources/Card.js.map +1 -1
  146. package/dist/mjs/api/resources/PaymentExpectation.d.ts +16 -1
  147. package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  148. package/dist/mjs/api/resources/PaymentExpectation.js +20 -0
  149. package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
  150. package/dist/mjs/api/resources/Society.d.ts +2 -1
  151. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  152. package/dist/mjs/api/resources/Society.js +3 -0
  153. package/dist/mjs/api/resources/Society.js.map +1 -1
  154. package/dist/mjs/api/resources/SocietyDetail.js +1 -1
  155. package/dist/mjs/api/resources/SocietyDetail.js.map +1 -1
  156. package/dist/mjs/api/resources/Subscription.d.ts +23 -6
  157. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  158. package/dist/mjs/api/resources/Subscription.js +28 -8
  159. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  160. package/dist/mjs/api/resources/prestation.d.ts +3 -1
  161. package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
  162. package/dist/mjs/api/resources/prestation.js.map +1 -1
  163. package/dist/mjs/types/Enum/Card.d.ts +22 -110
  164. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  165. package/dist/mjs/types/Enum/Card.js +26 -162
  166. package/dist/mjs/types/Enum/Card.js.map +1 -1
  167. package/dist/mjs/types/Enum/Feature.d.ts +41 -0
  168. package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
  169. package/dist/mjs/types/Enum/Feature.js +62 -0
  170. package/dist/mjs/types/Enum/Feature.js.map +1 -0
  171. package/dist/mjs/types/Enum/PartneredAccountantServiceType.d.ts +11 -0
  172. package/dist/mjs/types/Enum/PartneredAccountantServiceType.d.ts.map +1 -0
  173. package/dist/mjs/types/Enum/PartneredAccountantServiceType.js +40 -0
  174. package/dist/mjs/types/Enum/PartneredAccountantServiceType.js.map +1 -0
  175. package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.d.ts +9 -0
  176. package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.d.ts.map +1 -0
  177. package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.js +10 -0
  178. package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -0
  179. package/dist/mjs/types/Enum/PrestationType.d.ts +13 -1
  180. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  181. package/dist/mjs/types/Enum/PrestationType.js +182 -0
  182. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  183. package/dist/mjs/types/Enum/PriceGridClementine.d.ts +27 -0
  184. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  185. package/dist/mjs/types/Enum/PriceGridClementine.js +88 -28
  186. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  187. package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
  188. package/dist/mjs/types/Enum/PriceGridLegalstart.js +1 -1
  189. package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
  190. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  191. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +119 -1
  192. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  193. package/dist/mjs/types/Enum/TimeCounterType.d.ts +362 -9
  194. package/dist/mjs/types/Enum/TimeCounterType.d.ts.map +1 -1
  195. package/dist/mjs/types/Enum/TimeCounterType.js +0 -8
  196. package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
  197. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +1 -11
  198. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  199. package/dist/mjs/types/Interface/api/card/UpdateCard.js +2 -42
  200. package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  201. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +1 -0
  202. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  203. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  204. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +1 -0
  205. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  206. package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
  207. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +1 -0
  208. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  209. package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
  210. package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
  211. package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
  212. package/dist/mjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
  213. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -0
  214. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  215. package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
  216. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -0
  217. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  218. package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
  219. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +1 -0
  220. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  221. package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
  222. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -13
  223. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  224. package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
  225. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  226. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  227. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +11 -4
  228. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  229. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  230. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  231. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +18 -2
  232. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  233. package/dist/mjs/types/Interface/api/society/State.d.ts +7 -0
  234. package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -1
  235. package/dist/mjs/types/Interface/api/society/State.js.map +1 -1
  236. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +22 -1
  237. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  238. package/dist/mjs/types/Interface/api/stripe/Create.js +82 -3
  239. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  240. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
  241. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  242. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +4 -8
  243. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  244. package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts +0 -2
  245. package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
  246. package/dist/mjs/types/Interface/api/team/QueryUpdate.js +1 -9
  247. package/dist/mjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
  248. package/dist/mjs/types/Interface/models/ICard.d.ts +0 -20
  249. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  250. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  251. package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
  252. package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
  253. package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
  254. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  255. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  256. package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  257. package/dist/mjs/types/Interface/models/ITeam.d.ts +0 -2
  258. package/dist/mjs/types/Interface/models/ITeam.d.ts.map +1 -1
  259. package/dist/mjs/types/Interface/models/ITeam.js.map +1 -1
  260. package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
  261. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  262. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  263. package/dist/mjs/types/index.d.ts +3 -2
  264. package/dist/mjs/types/index.d.ts.map +1 -1
  265. package/dist/mjs/types/index.js +3 -2
  266. package/dist/mjs/types/index.js.map +1 -1
  267. package/dist/mjs/utils/brands.js +1 -1
  268. package/dist/mjs/utils/brands.js.map +1 -1
  269. package/dist/mjs/utils/prestation.d.ts +2 -1
  270. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  271. package/dist/mjs/utils/prestation.js +11 -2
  272. package/dist/mjs/utils/prestation.js.map +1 -1
  273. package/dist/mjs/utils/subscription.js +1 -1
  274. package/dist/mjs/utils/subscription.js.map +1 -1
  275. package/package.json +2 -2
  276. package/ts/api/resources/Authenticate.ts +7 -0
  277. package/ts/api/resources/Card.ts +1 -25
  278. package/ts/api/resources/PaymentExpectation.ts +27 -0
  279. package/ts/api/resources/Society.ts +5 -0
  280. package/ts/api/resources/SocietyDetail.ts +1 -1
  281. package/ts/api/resources/Subscription.ts +35 -18
  282. package/ts/api/resources/prestation.ts +1 -1
  283. package/ts/types/Enum/Card.ts +29 -174
  284. package/ts/types/Enum/Feature.ts +68 -0
  285. package/ts/types/Enum/PartneredAccountantServiceType.ts +51 -0
  286. package/ts/types/Enum/PartneredAccountantServiceTypeId.ts +8 -0
  287. package/ts/types/Enum/PrestationType.ts +186 -0
  288. package/ts/types/Enum/PriceGridClementine.ts +88 -28
  289. package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
  290. package/ts/types/Enum/SalesContractBrandClementine.ts +119 -1
  291. package/ts/types/Enum/TimeCounterType.ts +1 -18
  292. package/ts/types/Interface/api/card/UpdateCard.ts +2 -32
  293. package/ts/types/Interface/api/cerfa/2031.ts +1 -0
  294. package/ts/types/Interface/api/cerfa/2035.ts +6 -1
  295. package/ts/types/Interface/api/cerfa/2065.ts +1 -0
  296. package/ts/types/Interface/api/cerfa/2069RCI.ts +1 -0
  297. package/ts/types/Interface/api/cerfa/2571.ts +1 -0
  298. package/ts/types/Interface/api/cerfa/2572.ts +1 -0
  299. package/ts/types/Interface/api/cerfa/2573.ts +1 -0
  300. package/ts/types/Interface/api/config/ConfigType.ts +0 -16
  301. package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +9 -4
  302. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +15 -3
  303. package/ts/types/Interface/api/society/State.ts +8 -0
  304. package/ts/types/Interface/api/stripe/Create.ts +59 -4
  305. package/ts/types/Interface/api/stripe/QueryStripe.ts +3 -5
  306. package/ts/types/Interface/api/team/QueryUpdate.ts +1 -7
  307. package/ts/types/Interface/models/ICard.ts +0 -20
  308. package/ts/types/Interface/models/IPayment.ts +2 -0
  309. package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
  310. package/ts/types/Interface/models/ITeam.ts +0 -2
  311. package/ts/types/Interface/models/IUser.ts +1 -0
  312. package/ts/types/index.ts +3 -2
  313. package/ts/utils/brands.ts +1 -1
  314. package/ts/utils/prestation.ts +15 -1
  315. package/ts/utils/subscription.ts +1 -1
  316. package/dist/cjs/types/Enum/TeamType.d.ts +0 -16
  317. package/dist/cjs/types/Enum/TeamType.d.ts.map +0 -1
  318. package/dist/cjs/types/Enum/TeamType.js +0 -57
  319. package/dist/cjs/types/Enum/TeamType.js.map +0 -1
  320. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  321. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  322. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js +0 -3
  323. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  324. package/dist/mjs/types/Enum/TeamType.d.ts +0 -16
  325. package/dist/mjs/types/Enum/TeamType.d.ts.map +0 -1
  326. package/dist/mjs/types/Enum/TeamType.js +0 -54
  327. package/dist/mjs/types/Enum/TeamType.js.map +0 -1
  328. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  329. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  330. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js +0 -2
  331. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  332. package/ts/types/Enum/TeamType.ts +0 -53
  333. package/ts/types/Interface/api/stripe/ReadStripe.ts +0 -4
@@ -293,20 +293,25 @@ export const PriceGridClementine = [
293
293
  applicationCost: 14.9,
294
294
  priceWithTaxesIncluded: false,
295
295
  partner: [
296
+ // {
297
+ // amountMinimum: 1,
298
+ // amountMaximum: 1,
299
+ // price: 249,
300
+ // },
301
+ // {
302
+ // amountMinimum: 2,
303
+ // amountMaximum: 4,
304
+ // price: 299,
305
+ // },
306
+ // {
307
+ // amountMinimum: 5,
308
+ // amountMaximum: 1000000,
309
+ // price: 399,
310
+ // },
296
311
  {
297
312
  amountMinimum: 1,
298
- amountMaximum: 1,
299
- price: 249,
300
- },
301
- {
302
- amountMinimum: 2,
303
- amountMaximum: 4,
304
- price: 299,
305
- },
306
- {
307
- amountMinimum: 5,
308
313
  amountMaximum: 1000000,
309
- price: 399,
314
+ price: 249,
310
315
  },
311
316
  ],
312
317
  },
@@ -323,21 +328,11 @@ export const PriceGridClementine = [
323
328
  },
324
329
  {
325
330
  amountMinimum: 2,
326
- amountMaximum: 5,
331
+ amountMaximum: 10,
327
332
  price: 30,
328
333
  },
329
334
  {
330
- amountMinimum: 6,
331
- amountMaximum: 20,
332
- price: 28,
333
- },
334
- {
335
- amountMinimum: 21,
336
- amountMaximum: 50,
337
- price: 27,
338
- },
339
- {
340
- amountMinimum: 50,
335
+ amountMinimum: 11,
341
336
  amountMaximum: 1000000,
342
337
  price: 25,
343
338
  },
@@ -349,18 +344,83 @@ export const PriceGridClementine = [
349
344
  applicationCost: 14.9,
350
345
  priceWithTaxesIncluded: false,
351
346
  exerciceNbr: [
347
+ // {
348
+ // minimum: 1,
349
+ // maximum: 2,
350
+ // price: 149,
351
+ // },
352
+ // {
353
+ // minimum: 3,
354
+ // maximum: 1000,
355
+ // price: 299,
356
+ // },
352
357
  {
353
358
  minimum: 1,
354
- maximum: 2,
355
- price: 149,
356
- },
357
- {
358
- minimum: 3,
359
359
  maximum: 1000,
360
360
  price: 299,
361
361
  },
362
362
  ],
363
363
  },
364
+ {
365
+ /* Compta Expertise */
366
+ idPrestationList: [PrestationType.EXPERTISE],
367
+ applicationCost: 0,
368
+ priceWithTaxesIncluded: false,
369
+ monthlyNbr: [],
370
+ turnoverMonthly: [
371
+ {
372
+ turnoverValue: 1000000000000,
373
+ price: 89,
374
+ },
375
+ ],
376
+ turnoverYearly: [
377
+ {
378
+ turnoverValue: 1000000000000,
379
+ price: 890,
380
+ },
381
+ ],
382
+ vatRegimeMonthly: [],
383
+ },
384
+ {
385
+ /* Compta Accompagnement */
386
+ idPrestationList: [PrestationType.SUPPORT],
387
+ applicationCost: 0,
388
+ priceWithTaxesIncluded: false,
389
+ monthlyNbr: [],
390
+ turnoverMonthly: [
391
+ {
392
+ turnoverValue: 1000000000000,
393
+ price: 139,
394
+ },
395
+ ],
396
+ turnoverYearly: [
397
+ {
398
+ turnoverValue: 1000000000000,
399
+ price: 1390,
400
+ },
401
+ ],
402
+ vatRegimeMonthly: [],
403
+ },
404
+ {
405
+ /* Compta Premium */
406
+ idPrestationList: [PrestationType.PREMIUM],
407
+ applicationCost: 0,
408
+ priceWithTaxesIncluded: false,
409
+ monthlyNbr: [],
410
+ turnoverMonthly: [
411
+ {
412
+ turnoverValue: 1000000000000,
413
+ price: 199,
414
+ },
415
+ ],
416
+ turnoverYearly: [
417
+ {
418
+ turnoverValue: 1000000000000,
419
+ price: 1990,
420
+ },
421
+ ],
422
+ vatRegimeMonthly: [],
423
+ },
364
424
  ],
365
425
  },
366
426
  {
@@ -46,7 +46,7 @@ export const PriceGridLegalstart = [
46
46
  price: 90,
47
47
  },
48
48
  ],
49
- turnoverYearlyy: [
49
+ turnoverYearly: [
50
50
  {
51
51
  turnoverValue: 50000,
52
52
  price: 600,
@@ -1,5 +1,5 @@
1
1
  import { SaleContract } from '..';
2
- import { PrestationType, allPrestationsWithBrochure, PrestationDetail } from './PrestationType';
2
+ import { PrestationType, allPrestationsWithBrochure, PrestationDetail, allPrestations2025WithBrochure } from './PrestationType';
3
3
 
4
4
  export const SalesContractClementine: SaleContract[] = [
5
5
  {
@@ -9,6 +9,13 @@ export const SalesContractClementine: SaleContract[] = [
9
9
  versionable: false,
10
10
  idPrestationType: allPrestationsWithBrochure,
11
11
  },
12
+ {
13
+ label: "Page d'introduction 2025",
14
+ name: 'page_intro_2025',
15
+ needBgImage: true,
16
+ versionable: false,
17
+ idPrestationType: allPrestations2025WithBrochure,
18
+ },
12
19
  {
13
20
  label: 'Page chiffres',
14
21
  name: 'page_numbers',
@@ -16,6 +23,82 @@ export const SalesContractClementine: SaleContract[] = [
16
23
  versionable: false,
17
24
  idPrestationType: allPrestationsWithBrochure,
18
25
  },
26
+ {
27
+ label: "Page chiffres 2025",
28
+ name: 'page_numbers_2025',
29
+ needBgImage: true,
30
+ versionable: false,
31
+ idPrestationType: allPrestations2025WithBrochure,
32
+ },
33
+ {
34
+ label: "Page expertise 2025",
35
+ name: 'page_expertise_2025',
36
+ needBgImage: false,
37
+ versionable: false,
38
+ idPrestationType: [
39
+ PrestationType.EXPERTISE,
40
+ ],
41
+ condition: (turnover: number): boolean => turnover < 250000,
42
+ },
43
+ {
44
+ label: "Page accompagnement 2025",
45
+ name: 'page_support_2025',
46
+ needBgImage: false,
47
+ versionable: false,
48
+ idPrestationType: [
49
+ PrestationType.SUPPORT,
50
+ ],
51
+ condition: (turnover: number): boolean => turnover < 750000,
52
+ },
53
+ {
54
+ label: "Page premium 2025",
55
+ name: 'page_premium_2025',
56
+ needBgImage: false,
57
+ versionable: false,
58
+ idPrestationType: [
59
+ PrestationType.PREMIUM,
60
+ ],
61
+ condition: (turnover: number): boolean => turnover < 1200000,
62
+ },
63
+ // {
64
+ // label: 'Forfait social 2025',
65
+ // name: 'bloc_social_2025',
66
+ // needBgImage: false,
67
+ // versionable: true,
68
+ // idPrestationType: allPrestations2025WithBrochure,
69
+ // keyName: 'idPrestationSocial',
70
+ // },
71
+ // {
72
+ // label: 'Forfait approbation des comptes annuels 2025',
73
+ // name: 'bloc_annual_accounts_2025',
74
+ // needBgImage: false,
75
+ // idPrestationType: allPrestations2025WithBrochure,
76
+ // versionable: true,
77
+ // keyName: 'idPrestationJuridique',
78
+ // },
79
+ // {
80
+ // label: 'Accompagnement contrôle fiscal 2025',
81
+ // name: 'bloc_tax_audit_2025',
82
+ // needBgImage: false,
83
+ // idPrestationType: allPrestations2025WithBrochure,
84
+ // versionable: true,
85
+ // keyName: 'idPrestationControleFiscal',
86
+ // },
87
+ // {
88
+ // label: 'Heure de Conseil 2025',
89
+ // name: 'bloc_heure_de_conseil_2025',
90
+ // needBgImage: false,
91
+ // idPrestationType: allPrestations2025WithBrochure,
92
+ // versionable: false,
93
+ // keyName: 'prestationOptions',
94
+ // },
95
+ {
96
+ label: 'Prestations complémentaires 2025',
97
+ name: 'page_presta_complem_2025',
98
+ needBgImage: false,
99
+ idPrestationType: allPrestations2025WithBrochure,
100
+ versionable: false,
101
+ },
19
102
  {
20
103
  label: 'Page simplifié',
21
104
  name: 'page_simplified',
@@ -195,6 +278,41 @@ export const SalesContractClementine: SaleContract[] = [
195
278
  idPrestationType: allPrestationsWithBrochure,
196
279
  versionable: false,
197
280
  },
281
+ {
282
+ label: 'Conditions Générales de Vente 2025 (CGV) 1/3',
283
+ name: 'bloc_cgv_first_2025',
284
+ needBgImage: false,
285
+ idPrestationType: allPrestations2025WithBrochure,
286
+ versionable: false,
287
+ },
288
+ {
289
+ label: 'Conditions Générales de Vente 2025 (CGV) 2/3',
290
+ name: 'bloc_cgv_second_2025',
291
+ needBgImage: false,
292
+ idPrestationType: allPrestations2025WithBrochure,
293
+ versionable: false,
294
+ },
295
+ {
296
+ label: 'Conditions Générales de Vente 2025 (CGV) 3/3',
297
+ name: 'bloc_cgv_third_2025',
298
+ needBgImage: false,
299
+ idPrestationType: allPrestations2025WithBrochure,
300
+ versionable: false,
301
+ },
302
+ {
303
+ label: 'Détail de la lettre de mission 2025',
304
+ name: 'page_detail_ldm_2025',
305
+ needBgImage: false,
306
+ versionable: false,
307
+ idPrestationType: allPrestations2025WithBrochure
308
+ },
309
+ {
310
+ label: 'Devis 2025',
311
+ name: 'page_quotation_2025',
312
+ needBgImage: false,
313
+ idPrestationType: allPrestations2025WithBrochure,
314
+ versionable: false,
315
+ },
198
316
  {
199
317
  label: 'Mandat de prélèvement SEPA',
200
318
  name: 'bloc_sepa',
@@ -1,18 +1,9 @@
1
1
  import { Role } from './Role';
2
2
 
3
- export interface TimeCounterTypeInterface {
4
- id: number;
5
- label: string;
6
- aberrantTime: number;
7
- limitedRoles: Role[] | null;
8
- color: string;
9
- isOverlappable: boolean;
10
- }
11
-
12
3
  /**
13
4
  * Pour les calendarEvent, utilisé comme type principal
14
5
  */
15
- export const TimeCounterType: Record<string, TimeCounterTypeInterface> = {
6
+ export const TimeCounterType = {
16
7
  ONBOARDING: {
17
8
  id: 1,
18
9
  label: 'OnBoarding',
@@ -391,12 +382,4 @@ export const TimeCounterType: Record<string, TimeCounterTypeInterface> = {
391
382
  color: 'fern-dark',
392
383
  isOverlappable: false,
393
384
  },
394
- CARD: {
395
- id: 46,
396
- label: 'Comptallo',
397
- aberrantTime: 15,
398
- limitedRoles: null,
399
- color: 'fire',
400
- isOverlappable: true,
401
- }
402
385
  };
@@ -1,37 +1,8 @@
1
- import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsBoolean, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
3
  import { CardState, CardType } from '../../../Enum/Card';
4
4
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
5
 
6
- export class UpdateCardV2 {
7
- @ApiPropertyOptional()
8
- @IsOptional()
9
- @IsEnum(CardState)
10
- state?: CardState;
11
-
12
- @ApiPropertyOptional()
13
- @IsOptional()
14
- plannedAt?: Date | null;
15
-
16
- @ApiPropertyOptional()
17
- @IsOptional()
18
- @IsInt()
19
- idUser?: number;
20
-
21
- @ApiPropertyOptional()
22
- @IsOptional()
23
- @IsString()
24
- comment?: string;
25
-
26
- @ApiPropertyOptional()
27
- @IsOptional()
28
- @IsInt()
29
- priority?: number;
30
- }
31
-
32
- /**
33
- * @deprecated Use UpdateCardV2 instead
34
- */
35
6
  export class UpdateCard {
36
7
  @ApiPropertyOptional()
37
8
  @IsOptional()
@@ -48,7 +19,7 @@ export class UpdateCard {
48
19
  @IsOptional()
49
20
  @IsBoolean()
50
21
  @ToBoolean()
51
- isBlocked?: boolean;
22
+ isBlocked?: string;
52
23
 
53
24
  @ApiPropertyOptional()
54
25
  @IsOptional()
@@ -58,7 +29,6 @@ export class UpdateCard {
58
29
 
59
30
  @ApiPropertyOptional()
60
31
  @IsOptional()
61
- @IsDate()
62
32
  plannedAt?: Date | null;
63
33
 
64
34
  @ApiPropertyOptional()
@@ -540,6 +540,7 @@ export interface Cerfa2031_2025 {
540
540
  export type Prepare2031Params = {
541
541
  idSociety: number;
542
542
  idExercice: number;
543
+ idUser: number;
543
544
  values: {
544
545
  cerfa2031: Cerfa2031 | Cerfa2031_2024;
545
546
  cerfa2033: AnyCerfa2033Century;
@@ -52,7 +52,12 @@ export type FullCerfa2035_2025 = Cerfa2035_2025 & Cerfa2035WithSuites_2025;
52
52
 
53
53
  export type AnyCerfa2035Century = FullCerfa2035 | FullCerfa2035_2024 | FullCerfa2035_2025;
54
54
 
55
- export type Prepare2035Params = { idSociety: number; idExercice: number; values: FullCerfa2035 | FullCerfa2035_2024 };
55
+ export type Prepare2035Params = {
56
+ idSociety: number;
57
+ idUser: number;
58
+ idExercice: number;
59
+ values: FullCerfa2035 | FullCerfa2035_2024;
60
+ };
56
61
 
57
62
  export interface Cerfa2035ProfessionalRecipes {
58
63
  collected: number;
@@ -256,6 +256,7 @@ export interface Cerfa2065_2024 {
256
256
  export type PrepareCerfa2065 = {
257
257
  idExercice: number;
258
258
  idSociety: number;
259
+ idUser: number;
259
260
  values: { cerfa2065: AnyCerfa2065Century; cerfa2033: AnyCerfa2033Century };
260
261
  };
261
262
 
@@ -189,5 +189,6 @@ export type ReadCerfa2069RCIInputs = {
189
189
  export type PrepareCerfa2069RCI = {
190
190
  idExercice: number;
191
191
  idSociety: number;
192
+ idUser: number;
192
193
  values: { cerfa2069RCI: Cerfa2069RCI_2024 };
193
194
  };
@@ -149,6 +149,7 @@ export type Cerfa2571_2025 = Cerfa2571_2024;
149
149
 
150
150
  export type Prepare2571Params = {
151
151
  idSociety: number;
152
+ idUser: number;
152
153
  idExercice: number;
153
154
  idRegistration: number;
154
155
  };
@@ -398,6 +398,7 @@ export class Cerfa2572_2025 {
398
398
  export type Prepare2572Params = {
399
399
  idSociety: number;
400
400
  idExercice: number;
401
+ idUser: number;
401
402
  idRegistration: number;
402
403
  };
403
404
 
@@ -67,6 +67,7 @@ export type AnyCerfa2573Century = Cerfa2573_2024;
67
67
  export type Prepare2573Params = {
68
68
  idSociety: number;
69
69
  idExercice: number;
70
+ idUser: number;
70
71
  values: AnyCerfa2573Century;
71
72
  };
72
73
 
@@ -13,9 +13,6 @@ export interface ConfigType {
13
13
  comptaclementineTest: ComptaclementineTest;
14
14
  bred: Bred;
15
15
  awsClementine: AwsClementine;
16
- stripe: Stripe;
17
- stripeECB: StripeEcb;
18
- stripeStatuts: StripeStatuts;
19
16
  mail: Mail;
20
17
  client: Client;
21
18
  twilio: Twilio;
@@ -155,19 +152,6 @@ export interface AwsClementine {
155
152
  apiVersion: string;
156
153
  }
157
154
 
158
- export interface Stripe {
159
- secretKey: string;
160
- secretKeyTestToDelete: string;
161
- }
162
-
163
- export interface StripeEcb {
164
- secretKey: string;
165
- }
166
-
167
- export interface StripeStatuts {
168
- secretKey: string;
169
- }
170
-
171
155
  export interface Mail {
172
156
  user: string;
173
157
  password: string;
@@ -1,4 +1,4 @@
1
- import { IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { PaymentReason } from '../../../Enum/PaymentReason';
4
4
 
@@ -17,16 +17,16 @@ export class CreatePaymentExpecation {
17
17
  payload?: string | null;
18
18
 
19
19
  @ApiProperty()
20
- @IsNumber()
20
+ @IsInt()
21
21
  idReason: PaymentReason;
22
22
 
23
23
  @ApiPropertyOptional()
24
- @IsNumber()
24
+ @IsInt()
25
25
  @IsOptional()
26
26
  idPrestation?: number | null;
27
27
 
28
28
  @ApiPropertyOptional()
29
- @IsNumber()
29
+ @IsInt()
30
30
  @IsOptional()
31
31
  idRegulation?: number | null;
32
32
 
@@ -34,4 +34,9 @@ export class CreatePaymentExpecation {
34
34
  @IsString()
35
35
  @IsOptional()
36
36
  ref?: string | null;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsInt()
40
+ @IsOptional()
41
+ idUserNotifyPaiementProceed?: number | null;
37
42
  }
@@ -1,11 +1,23 @@
1
- import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsIn, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { RequiredQueryPaginate } from '../BasePaginate';
4
4
 
5
5
  export class QueryGetPaymentExpectation {
6
- @ApiProperty()
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
7
8
  @IsInt()
8
- idPrestation: number;
9
+ idPrestation?: number;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsString()
14
+ ref?: string;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsString({each: true})
19
+ @IsIn(['society', 'owner'], { each: true })
20
+ includes?: string[];
9
21
  }
10
22
 
11
23
  export class QueryGetPaymentExpectationPaginated extends RequiredQueryPaginate {
@@ -1,4 +1,5 @@
1
1
  import { TerminationListState, TerminationListType } from '../../../Enum/TerminationList';
2
+ import { IPrestation } from '../../models/IPrestation';
2
3
  import { ITerminationList } from '../../models/ITerminationList';
3
4
 
4
5
  interface SocietyStateTerminationInfo {
@@ -13,3 +14,10 @@ export interface GetSocietyState {
13
14
  terminations: ITerminationList[];
14
15
  isCorporatePartner: number;
15
16
  }
17
+
18
+ export type ReadCurrentPrestations = {
19
+ /** Accountancy subscription prestation (does not contains balancesheets prestations...) */
20
+ accountancySubscription: Partial<IPrestation> | null;
21
+ social: Partial<IPrestation>[];
22
+ juridical: Partial<IPrestation>[];
23
+ };
@@ -1,6 +1,6 @@
1
- import { IsDate, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
-
3
+ import type Stripe from 'stripe';
4
4
  export class CreateStripeConnection {
5
5
  @ApiProperty()
6
6
  @IsString()
@@ -8,10 +8,27 @@ export class CreateStripeConnection {
8
8
  }
9
9
 
10
10
  export class CreateStripePortals {
11
+ @ApiProperty()
12
+ @IsString()
13
+ stripeCustomerId: string;
14
+ }
15
+
16
+ export class CreateCustomer {
17
+ @ApiProperty()
18
+ @IsInt()
19
+ id: number;
20
+
21
+ @ApiProperty()
22
+ @IsString()
23
+ email: string;
24
+
11
25
  @ApiPropertyOptional()
12
26
  @IsString()
13
- @IsOptional()
14
- stripeCustomerId?: string;
27
+ lastname?: string;
28
+
29
+ @ApiPropertyOptional()
30
+ @IsString()
31
+ firstname?: string;
15
32
  }
16
33
 
17
34
  export class CreateImportTransactionForSociety {
@@ -25,3 +42,41 @@ export class CreateImportTransactionForSociety {
25
42
  @IsOptional()
26
43
  endDate?: Date;
27
44
  }
45
+
46
+ export class CreateSubscriptionSession {
47
+ @ApiProperty()
48
+ @IsString()
49
+ priceId: string;
50
+ }
51
+
52
+ export class CreateSubscriptionSessionOff {
53
+ @ApiProperty()
54
+ @IsString()
55
+ stripeCustomerId: string;
56
+
57
+ @ApiProperty()
58
+ @IsString()
59
+ ref: string;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsString()
64
+ returnUrl?: string;
65
+ }
66
+
67
+ export class CreatePaymentIntent {
68
+ @ApiProperty()
69
+ @IsString()
70
+ stripeCustomerId: string;
71
+
72
+ @ApiProperty()
73
+ @IsString()
74
+ paymentMethodId: string;
75
+
76
+ @ApiProperty()
77
+ @IsInt()
78
+ amountInCents: number;
79
+
80
+ @ApiPropertyOptional()
81
+ metadata?: Stripe.MetadataParam;
82
+ }
@@ -1,13 +1,11 @@
1
- import { IsBoolean, IsOptional } from 'class-validator';
1
+ import { IsBoolean, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
- export class RetrieveUpcomingInvoiceParams {
5
+ export class RetrievePaymentMethodsParams {
6
6
  @ApiProperty()
7
+ @IsString()
7
8
  customerId: string;
8
-
9
- @ApiProperty()
10
- subscriptionId: string;
11
9
  }
12
10
 
13
11
  export class QueryStripeSession {
@@ -1,6 +1,5 @@
1
- import { IsArray, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
- import { TeamType } from '../../../Enum/TeamType';
4
3
 
5
4
  export class QueryUpdateTeam {
6
5
  @ApiPropertyOptional()
@@ -22,9 +21,4 @@ export class QueryUpdateTeam {
22
21
  @IsOptional()
23
22
  @IsArray()
24
23
  usersToDelete?: number[];
25
-
26
- @ApiPropertyOptional()
27
- @IsOptional()
28
- @IsEnum(TeamType)
29
- idType?: TeamType | null;
30
24
  }