@silexpert/core 1.1.409 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (961) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/api/resources/Acceptance.d.ts +0 -1
  3. package/dist/cjs/api/resources/Acceptance.d.ts.map +1 -1
  4. package/dist/cjs/api/resources/Acceptance.js +0 -3
  5. package/dist/cjs/api/resources/Acceptance.js.map +1 -1
  6. package/dist/cjs/api/resources/AccountingFiles.d.ts +2 -2
  7. package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
  8. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  9. package/dist/cjs/api/resources/BankAccount.d.ts +1 -2
  10. package/dist/cjs/api/resources/BankAccount.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/BankAccount.js +0 -3
  12. package/dist/cjs/api/resources/BankAccount.js.map +1 -1
  13. package/dist/cjs/api/resources/Cerfa.d.ts +25 -0
  14. package/dist/cjs/api/resources/Cerfa.d.ts.map +1 -0
  15. package/dist/cjs/api/resources/Cerfa.js +37 -0
  16. package/dist/cjs/api/resources/Cerfa.js.map +1 -0
  17. package/dist/cjs/api/resources/Checklist.d.ts +1 -6
  18. package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
  19. package/dist/cjs/api/resources/Checklist.js +0 -11
  20. package/dist/cjs/api/resources/Checklist.js.map +1 -1
  21. package/dist/cjs/api/resources/Exercice.d.ts +0 -1
  22. package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
  23. package/dist/cjs/api/resources/Exercice.js +0 -3
  24. package/dist/cjs/api/resources/Exercice.js.map +1 -1
  25. package/dist/cjs/api/resources/GeneralLedger.d.ts +4 -0
  26. package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
  27. package/dist/cjs/api/resources/GeneralLedger.js +20 -0
  28. package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
  29. package/dist/cjs/api/resources/IncomeStatement.d.ts +2 -0
  30. package/dist/cjs/api/resources/IncomeStatement.d.ts.map +1 -1
  31. package/dist/cjs/api/resources/IncomeStatement.js +10 -0
  32. package/dist/cjs/api/resources/IncomeStatement.js.map +1 -1
  33. package/dist/cjs/api/resources/Journal.d.ts +2 -0
  34. package/dist/cjs/api/resources/Journal.d.ts.map +1 -1
  35. package/dist/cjs/api/resources/Journal.js +7 -0
  36. package/dist/cjs/api/resources/Journal.js.map +1 -1
  37. package/dist/cjs/api/resources/Mail.d.ts +1 -1
  38. package/dist/cjs/api/resources/Mail.d.ts.map +1 -1
  39. package/dist/cjs/api/resources/Mail.js +2 -2
  40. package/dist/cjs/api/resources/Mail.js.map +1 -1
  41. package/dist/cjs/api/resources/Payment.d.ts +1 -7
  42. package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
  43. package/dist/cjs/api/resources/Payment.js +0 -15
  44. package/dist/cjs/api/resources/Payment.js.map +1 -1
  45. package/dist/cjs/api/resources/Provision.d.ts +2 -0
  46. package/dist/cjs/api/resources/Provision.d.ts.map +1 -1
  47. package/dist/cjs/api/resources/Provision.js +4 -0
  48. package/dist/cjs/api/resources/Provision.js.map +1 -1
  49. package/dist/cjs/api/resources/Qonto.d.ts +0 -3
  50. package/dist/cjs/api/resources/Qonto.d.ts.map +1 -1
  51. package/dist/cjs/api/resources/Qonto.js +0 -3
  52. package/dist/cjs/api/resources/Qonto.js.map +1 -1
  53. package/dist/cjs/api/resources/Revision.d.ts +1 -1
  54. package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
  55. package/dist/cjs/api/resources/Revision.js +2 -2
  56. package/dist/cjs/api/resources/Revision.js.map +1 -1
  57. package/dist/cjs/api/resources/SalariesFile.d.ts +2 -0
  58. package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
  59. package/dist/cjs/api/resources/SalariesFile.js +4 -0
  60. package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
  61. package/dist/cjs/api/resources/Stocks.d.ts +4 -0
  62. package/dist/cjs/api/resources/Stocks.d.ts.map +1 -1
  63. package/dist/cjs/api/resources/Stocks.js +8 -0
  64. package/dist/cjs/api/resources/Stocks.js.map +1 -1
  65. package/dist/cjs/api/resources/Vat.d.ts +3 -3
  66. package/dist/cjs/api/resources/Vat.d.ts.map +1 -1
  67. package/dist/cjs/api/resources/Vat.js +8 -5
  68. package/dist/cjs/api/resources/Vat.js.map +1 -1
  69. package/dist/cjs/api/resources.d.ts +2 -10
  70. package/dist/cjs/api/resources.d.ts.map +1 -1
  71. package/dist/cjs/api/resources.js +2 -10
  72. package/dist/cjs/api/resources.js.map +1 -1
  73. package/dist/cjs/index.d.ts +0 -1
  74. package/dist/cjs/index.d.ts.map +1 -1
  75. package/dist/cjs/index.js +0 -1
  76. package/dist/cjs/index.js.map +1 -1
  77. package/dist/cjs/types/Enum/Aspone.d.ts +0 -6
  78. package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
  79. package/dist/cjs/types/Enum/Aspone.js +1 -8
  80. package/dist/cjs/types/Enum/Aspone.js.map +1 -1
  81. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts +2 -4
  82. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
  83. package/dist/cjs/types/Enum/AutomaticRegistration.js +1 -3
  84. package/dist/cjs/types/Enum/AutomaticRegistration.js.map +1 -1
  85. package/dist/cjs/types/Enum/BankAccountType.d.ts +0 -1
  86. package/dist/cjs/types/Enum/BankAccountType.d.ts.map +1 -1
  87. package/dist/cjs/types/Enum/BankAccountType.js.map +1 -1
  88. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  89. package/dist/cjs/types/Enum/BrandClementine.js +0 -1
  90. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  91. package/dist/cjs/types/Enum/ChecklistType.d.ts +1 -5
  92. package/dist/cjs/types/Enum/ChecklistType.d.ts.map +1 -1
  93. package/dist/cjs/types/Enum/ChecklistType.js +0 -4
  94. package/dist/cjs/types/Enum/ChecklistType.js.map +1 -1
  95. package/dist/cjs/types/Enum/CommercialManagement.d.ts +0 -4
  96. package/dist/cjs/types/Enum/CommercialManagement.d.ts.map +1 -1
  97. package/dist/cjs/types/Enum/CommercialManagement.js +1 -6
  98. package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
  99. package/dist/cjs/types/Enum/ConnectorType.d.ts +1 -2
  100. package/dist/cjs/types/Enum/ConnectorType.d.ts.map +1 -1
  101. package/dist/cjs/types/Enum/ConnectorType.js +0 -1
  102. package/dist/cjs/types/Enum/ConnectorType.js.map +1 -1
  103. package/dist/cjs/types/Enum/ConstitutionState.d.ts +1 -2
  104. package/dist/cjs/types/Enum/ConstitutionState.d.ts.map +1 -1
  105. package/dist/cjs/types/Enum/ConstitutionState.js +0 -7
  106. package/dist/cjs/types/Enum/ConstitutionState.js.map +1 -1
  107. package/dist/cjs/types/Enum/DepositDocumentType.d.ts.map +1 -1
  108. package/dist/cjs/types/Enum/DepositDocumentType.js +0 -6
  109. package/dist/cjs/types/Enum/DepositDocumentType.js.map +1 -1
  110. package/dist/cjs/types/Enum/EstimateInvoice.d.ts +0 -14
  111. package/dist/cjs/types/Enum/EstimateInvoice.d.ts.map +1 -1
  112. package/dist/cjs/types/Enum/EstimateInvoice.js +1 -22
  113. package/dist/cjs/types/Enum/EstimateInvoice.js.map +1 -1
  114. package/dist/cjs/types/Enum/FuelType.d.ts +0 -2
  115. package/dist/cjs/types/Enum/FuelType.d.ts.map +1 -1
  116. package/dist/cjs/types/Enum/FuelType.js +14 -15
  117. package/dist/cjs/types/Enum/FuelType.js.map +1 -1
  118. package/dist/cjs/types/Enum/Ged.d.ts +2 -5
  119. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  120. package/dist/cjs/types/Enum/Ged.js +1 -5
  121. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  122. package/dist/cjs/types/Enum/JobTitle.d.ts +1 -3
  123. package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
  124. package/dist/cjs/types/Enum/JobTitle.js +1 -13
  125. package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
  126. package/dist/cjs/types/Enum/Log.d.ts +1 -15
  127. package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
  128. package/dist/cjs/types/Enum/Log.js +0 -14
  129. package/dist/cjs/types/Enum/Log.js.map +1 -1
  130. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +1 -2
  131. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  132. package/dist/cjs/types/Enum/ReasonTerminationType.js +0 -6
  133. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  134. package/dist/cjs/types/Enum/Role.d.ts +1 -2
  135. package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
  136. package/dist/cjs/types/Enum/Role.js +0 -1
  137. package/dist/cjs/types/Enum/Role.js.map +1 -1
  138. package/dist/cjs/types/Enum/RoleDetail.d.ts +0 -12
  139. package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
  140. package/dist/cjs/types/Enum/RoleDetail.js +0 -12
  141. package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
  142. package/dist/cjs/types/Enum/StockType.js +1 -1
  143. package/dist/cjs/types/Enum/StockType.js.map +1 -1
  144. package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  145. package/dist/cjs/types/Enum/TaskResponseType.js +0 -11
  146. package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
  147. package/dist/cjs/types/Enum/TimeSlot.d.ts +1 -2
  148. package/dist/cjs/types/Enum/TimeSlot.d.ts.map +1 -1
  149. package/dist/cjs/types/Enum/TimeSlot.js +16 -23
  150. package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
  151. package/dist/cjs/types/Enum/TypeSupportForNotation.d.ts +0 -1
  152. package/dist/cjs/types/Enum/TypeSupportForNotation.d.ts.map +1 -1
  153. package/dist/cjs/types/Enum/TypeSupportForNotation.js +2 -2
  154. package/dist/cjs/types/Enum/TypeSupportForNotation.js.map +1 -1
  155. package/dist/cjs/types/Enum/VatDeclarationType.d.ts.map +1 -1
  156. package/dist/cjs/types/Enum/VatDeclarationType.js +1 -67
  157. package/dist/cjs/types/Enum/VatDeclarationType.js.map +1 -1
  158. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.d.ts +1 -0
  159. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.d.ts.map +1 -1
  160. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.js +6 -0
  161. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.js.map +1 -1
  162. package/dist/cjs/types/Interface/api/OnBoarding.d.ts +1 -1
  163. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  164. package/dist/cjs/types/Interface/api/OnBoarding.js +2 -2
  165. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
  166. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +0 -10
  167. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  168. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -49
  169. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  170. package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts +1 -2
  171. package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
  172. package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  173. package/dist/cjs/types/Interface/api/aspone/Util.d.ts +0 -1
  174. package/dist/cjs/types/Interface/api/aspone/Util.d.ts.map +1 -1
  175. package/dist/cjs/types/Interface/api/aspone/Util.js.map +1 -1
  176. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts +0 -5
  177. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -1
  178. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js +1 -19
  179. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js.map +1 -1
  180. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +1 -9
  181. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  182. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  183. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +0 -5
  184. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  185. package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
  186. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +0 -9
  187. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  188. package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
  189. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +3 -1
  190. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  191. package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
  192. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +3 -1
  193. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  194. package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
  195. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -23
  196. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  197. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  198. package/dist/cjs/types/Interface/api/checklist/Query.d.ts +0 -4
  199. package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
  200. package/dist/cjs/types/Interface/api/checklist/Query.js +1 -14
  201. package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
  202. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +1 -16
  203. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  204. package/dist/cjs/types/Interface/api/commercialManagement/Create.js +0 -72
  205. package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  206. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +0 -2
  207. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  208. package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  209. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +0 -1
  210. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  211. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +0 -5
  212. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  213. package/dist/cjs/types/Interface/api/exercice/Create.d.ts +0 -1
  214. package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
  215. package/dist/cjs/types/Interface/api/exercice/Create.js +0 -6
  216. package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -1
  217. package/dist/cjs/types/Interface/api/payment/Util.d.ts +1 -0
  218. package/dist/cjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  219. package/dist/cjs/types/Interface/api/payment/Util.js.map +1 -1
  220. package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts +0 -7
  221. package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  222. package/dist/cjs/types/Interface/api/registration/CreateRegistration.js +1 -31
  223. package/dist/cjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  224. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.d.ts +0 -4
  225. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
  226. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.js +1 -16
  227. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
  228. package/dist/cjs/types/Interface/api/revision/Create.d.ts +0 -3
  229. package/dist/cjs/types/Interface/api/revision/Create.d.ts.map +1 -1
  230. package/dist/cjs/types/Interface/api/revision/Create.js +0 -17
  231. package/dist/cjs/types/Interface/api/revision/Create.js.map +1 -1
  232. package/dist/cjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  233. package/dist/cjs/types/Interface/api/revision/Query.js.map +1 -1
  234. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +0 -1
  235. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  236. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +2 -9
  237. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  238. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +0 -1
  239. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -1
  240. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +0 -6
  241. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -1
  242. package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +1 -2
  243. package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
  244. package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js +0 -5
  245. package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  246. package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +1 -2
  247. package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
  248. package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +0 -5
  249. package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  250. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +3 -0
  251. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  252. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +9 -1
  253. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  254. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +0 -6
  255. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  256. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +1 -4
  257. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  258. package/dist/cjs/types/Interface/models/IApiError.d.ts +0 -1
  259. package/dist/cjs/types/Interface/models/IApiError.d.ts.map +1 -1
  260. package/dist/cjs/types/Interface/models/IApiError.js +0 -1
  261. package/dist/cjs/types/Interface/models/IApiError.js.map +1 -1
  262. package/dist/cjs/types/Interface/models/IAutomaticRegistration.d.ts +1 -1
  263. package/dist/cjs/types/Interface/models/IAutomaticRegistration.d.ts.map +1 -1
  264. package/dist/cjs/types/Interface/models/IAutomaticRegistration.js.map +1 -1
  265. package/dist/cjs/types/Interface/models/IBankAccount.d.ts +1 -2
  266. package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  267. package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
  268. package/dist/cjs/types/Interface/models/IChecklist.d.ts +0 -3
  269. package/dist/cjs/types/Interface/models/IChecklist.d.ts.map +1 -1
  270. package/dist/cjs/types/Interface/models/IChecklist.js.map +1 -1
  271. package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts +1 -2
  272. package/dist/cjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  273. package/dist/cjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
  274. package/dist/cjs/types/Interface/models/IExercice.d.ts +0 -2
  275. package/dist/cjs/types/Interface/models/IExercice.d.ts.map +1 -1
  276. package/dist/cjs/types/Interface/models/IExercice.js.map +1 -1
  277. package/dist/cjs/types/Interface/models/IFile.d.ts +1 -4
  278. package/dist/cjs/types/Interface/models/IFile.d.ts.map +1 -1
  279. package/dist/cjs/types/Interface/models/IFile.js.map +1 -1
  280. package/dist/cjs/types/Interface/models/IRefund.d.ts +0 -1
  281. package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
  282. package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
  283. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +2 -16
  284. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  285. package/dist/cjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  286. package/dist/cjs/types/Interface/models/ISupervision.d.ts +0 -2
  287. package/dist/cjs/types/Interface/models/ISupervision.d.ts.map +1 -1
  288. package/dist/cjs/types/Interface/models/ISupervision.js.map +1 -1
  289. package/dist/cjs/types/Interface/models/IThirdParty.d.ts +0 -2
  290. package/dist/cjs/types/Interface/models/IThirdParty.d.ts.map +1 -1
  291. package/dist/cjs/types/Interface/models/IThirdParty.js.map +1 -1
  292. package/dist/cjs/types/index.d.ts +0 -15
  293. package/dist/cjs/types/index.d.ts.map +1 -1
  294. package/dist/cjs/types/index.js +0 -15
  295. package/dist/cjs/types/index.js.map +1 -1
  296. package/dist/cjs/utils/brands.d.ts +0 -1
  297. package/dist/cjs/utils/brands.d.ts.map +1 -1
  298. package/dist/cjs/utils/brands.js.map +1 -1
  299. package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
  300. package/dist/cjs/utils/commercialManagement/document.js +12 -19
  301. package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
  302. package/dist/cjs/utils/commercialManagement/templates/body.js +15 -15
  303. package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
  304. package/dist/cjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
  305. package/dist/cjs/utils/commercialManagement/templates/common.js +39 -56
  306. package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
  307. package/dist/cjs/utils/email.d.ts.map +1 -1
  308. package/dist/cjs/utils/email.js +2 -5
  309. package/dist/cjs/utils/email.js.map +1 -1
  310. package/dist/cjs/utils/payment.d.ts.map +1 -1
  311. package/dist/cjs/utils/payment.js +8 -13
  312. package/dist/cjs/utils/payment.js.map +1 -1
  313. package/dist/cjs/utils/prestation.d.ts +0 -7
  314. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  315. package/dist/cjs/utils/prestation.js +2 -12
  316. package/dist/cjs/utils/prestation.js.map +1 -1
  317. package/dist/cjs/utils/tests/payment.spec.js +16 -0
  318. package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
  319. package/dist/mjs/api/resources/Acceptance.d.ts +0 -1
  320. package/dist/mjs/api/resources/Acceptance.d.ts.map +1 -1
  321. package/dist/mjs/api/resources/Acceptance.js +0 -3
  322. package/dist/mjs/api/resources/Acceptance.js.map +1 -1
  323. package/dist/mjs/api/resources/AccountingFiles.d.ts +2 -2
  324. package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
  325. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  326. package/dist/mjs/api/resources/BankAccount.d.ts +1 -2
  327. package/dist/mjs/api/resources/BankAccount.d.ts.map +1 -1
  328. package/dist/mjs/api/resources/BankAccount.js +0 -3
  329. package/dist/mjs/api/resources/BankAccount.js.map +1 -1
  330. package/dist/mjs/api/resources/Cerfa.d.ts +25 -0
  331. package/dist/mjs/api/resources/Cerfa.d.ts.map +1 -0
  332. package/dist/mjs/api/resources/Cerfa.js +33 -0
  333. package/dist/mjs/api/resources/Cerfa.js.map +1 -0
  334. package/dist/mjs/api/resources/Checklist.d.ts +1 -6
  335. package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
  336. package/dist/mjs/api/resources/Checklist.js +0 -11
  337. package/dist/mjs/api/resources/Checklist.js.map +1 -1
  338. package/dist/mjs/api/resources/Exercice.d.ts +0 -1
  339. package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
  340. package/dist/mjs/api/resources/Exercice.js +0 -3
  341. package/dist/mjs/api/resources/Exercice.js.map +1 -1
  342. package/dist/mjs/api/resources/GeneralLedger.d.ts +4 -0
  343. package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
  344. package/dist/mjs/api/resources/GeneralLedger.js +20 -0
  345. package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
  346. package/dist/mjs/api/resources/IncomeStatement.d.ts +2 -0
  347. package/dist/mjs/api/resources/IncomeStatement.d.ts.map +1 -1
  348. package/dist/mjs/api/resources/IncomeStatement.js +10 -0
  349. package/dist/mjs/api/resources/IncomeStatement.js.map +1 -1
  350. package/dist/mjs/api/resources/Journal.d.ts +2 -0
  351. package/dist/mjs/api/resources/Journal.d.ts.map +1 -1
  352. package/dist/mjs/api/resources/Journal.js +7 -0
  353. package/dist/mjs/api/resources/Journal.js.map +1 -1
  354. package/dist/mjs/api/resources/Mail.d.ts +1 -1
  355. package/dist/mjs/api/resources/Mail.d.ts.map +1 -1
  356. package/dist/mjs/api/resources/Mail.js +2 -5
  357. package/dist/mjs/api/resources/Mail.js.map +1 -1
  358. package/dist/mjs/api/resources/Payment.d.ts +1 -7
  359. package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
  360. package/dist/mjs/api/resources/Payment.js +0 -15
  361. package/dist/mjs/api/resources/Payment.js.map +1 -1
  362. package/dist/mjs/api/resources/Provision.d.ts +2 -0
  363. package/dist/mjs/api/resources/Provision.d.ts.map +1 -1
  364. package/dist/mjs/api/resources/Provision.js +4 -0
  365. package/dist/mjs/api/resources/Provision.js.map +1 -1
  366. package/dist/mjs/api/resources/Qonto.d.ts +0 -3
  367. package/dist/mjs/api/resources/Qonto.d.ts.map +1 -1
  368. package/dist/mjs/api/resources/Qonto.js +0 -3
  369. package/dist/mjs/api/resources/Qonto.js.map +1 -1
  370. package/dist/mjs/api/resources/Revision.d.ts +1 -1
  371. package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
  372. package/dist/mjs/api/resources/Revision.js +2 -2
  373. package/dist/mjs/api/resources/Revision.js.map +1 -1
  374. package/dist/mjs/api/resources/SalariesFile.d.ts +2 -0
  375. package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
  376. package/dist/mjs/api/resources/SalariesFile.js +4 -0
  377. package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
  378. package/dist/mjs/api/resources/Stocks.d.ts +4 -0
  379. package/dist/mjs/api/resources/Stocks.d.ts.map +1 -1
  380. package/dist/mjs/api/resources/Stocks.js +8 -0
  381. package/dist/mjs/api/resources/Stocks.js.map +1 -1
  382. package/dist/mjs/api/resources/Vat.d.ts +3 -3
  383. package/dist/mjs/api/resources/Vat.d.ts.map +1 -1
  384. package/dist/mjs/api/resources/Vat.js +8 -5
  385. package/dist/mjs/api/resources/Vat.js.map +1 -1
  386. package/dist/mjs/api/resources.d.ts +2 -10
  387. package/dist/mjs/api/resources.d.ts.map +1 -1
  388. package/dist/mjs/api/resources.js +2 -10
  389. package/dist/mjs/api/resources.js.map +1 -1
  390. package/dist/mjs/index.d.ts +0 -1
  391. package/dist/mjs/index.d.ts.map +1 -1
  392. package/dist/mjs/index.js +0 -1
  393. package/dist/mjs/index.js.map +1 -1
  394. package/dist/mjs/types/Enum/Aspone.d.ts +0 -6
  395. package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
  396. package/dist/mjs/types/Enum/Aspone.js +0 -7
  397. package/dist/mjs/types/Enum/Aspone.js.map +1 -1
  398. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts +2 -4
  399. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
  400. package/dist/mjs/types/Enum/AutomaticRegistration.js +1 -3
  401. package/dist/mjs/types/Enum/AutomaticRegistration.js.map +1 -1
  402. package/dist/mjs/types/Enum/BankAccountType.d.ts +0 -1
  403. package/dist/mjs/types/Enum/BankAccountType.d.ts.map +1 -1
  404. package/dist/mjs/types/Enum/BankAccountType.js.map +1 -1
  405. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  406. package/dist/mjs/types/Enum/BrandClementine.js +0 -1
  407. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  408. package/dist/mjs/types/Enum/ChecklistType.d.ts +1 -5
  409. package/dist/mjs/types/Enum/ChecklistType.d.ts.map +1 -1
  410. package/dist/mjs/types/Enum/ChecklistType.js +0 -4
  411. package/dist/mjs/types/Enum/ChecklistType.js.map +1 -1
  412. package/dist/mjs/types/Enum/CommercialManagement.d.ts +0 -4
  413. package/dist/mjs/types/Enum/CommercialManagement.d.ts.map +1 -1
  414. package/dist/mjs/types/Enum/CommercialManagement.js +0 -5
  415. package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
  416. package/dist/mjs/types/Enum/ConnectorType.d.ts +1 -2
  417. package/dist/mjs/types/Enum/ConnectorType.d.ts.map +1 -1
  418. package/dist/mjs/types/Enum/ConnectorType.js +0 -1
  419. package/dist/mjs/types/Enum/ConnectorType.js.map +1 -1
  420. package/dist/mjs/types/Enum/ConstitutionState.d.ts +1 -2
  421. package/dist/mjs/types/Enum/ConstitutionState.d.ts.map +1 -1
  422. package/dist/mjs/types/Enum/ConstitutionState.js +0 -7
  423. package/dist/mjs/types/Enum/ConstitutionState.js.map +1 -1
  424. package/dist/mjs/types/Enum/DepositDocumentType.d.ts.map +1 -1
  425. package/dist/mjs/types/Enum/DepositDocumentType.js +0 -6
  426. package/dist/mjs/types/Enum/DepositDocumentType.js.map +1 -1
  427. package/dist/mjs/types/Enum/EstimateInvoice.d.ts +0 -14
  428. package/dist/mjs/types/Enum/EstimateInvoice.d.ts.map +1 -1
  429. package/dist/mjs/types/Enum/EstimateInvoice.js +0 -21
  430. package/dist/mjs/types/Enum/EstimateInvoice.js.map +1 -1
  431. package/dist/mjs/types/Enum/FuelType.d.ts +0 -2
  432. package/dist/mjs/types/Enum/FuelType.d.ts.map +1 -1
  433. package/dist/mjs/types/Enum/FuelType.js +14 -15
  434. package/dist/mjs/types/Enum/FuelType.js.map +1 -1
  435. package/dist/mjs/types/Enum/Ged.d.ts +2 -5
  436. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  437. package/dist/mjs/types/Enum/Ged.js +1 -5
  438. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  439. package/dist/mjs/types/Enum/JobTitle.d.ts +1 -3
  440. package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
  441. package/dist/mjs/types/Enum/JobTitle.js +1 -13
  442. package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
  443. package/dist/mjs/types/Enum/Log.d.ts +1 -15
  444. package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
  445. package/dist/mjs/types/Enum/Log.js +0 -14
  446. package/dist/mjs/types/Enum/Log.js.map +1 -1
  447. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +1 -2
  448. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  449. package/dist/mjs/types/Enum/ReasonTerminationType.js +0 -6
  450. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  451. package/dist/mjs/types/Enum/Role.d.ts +1 -2
  452. package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
  453. package/dist/mjs/types/Enum/Role.js +0 -1
  454. package/dist/mjs/types/Enum/Role.js.map +1 -1
  455. package/dist/mjs/types/Enum/RoleDetail.d.ts +0 -12
  456. package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
  457. package/dist/mjs/types/Enum/RoleDetail.js +0 -12
  458. package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
  459. package/dist/mjs/types/Enum/StockType.js +1 -1
  460. package/dist/mjs/types/Enum/StockType.js.map +1 -1
  461. package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  462. package/dist/mjs/types/Enum/TaskResponseType.js +0 -11
  463. package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
  464. package/dist/mjs/types/Enum/TimeSlot.d.ts +1 -2
  465. package/dist/mjs/types/Enum/TimeSlot.d.ts.map +1 -1
  466. package/dist/mjs/types/Enum/TimeSlot.js +16 -23
  467. package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
  468. package/dist/mjs/types/Enum/TypeSupportForNotation.d.ts +0 -1
  469. package/dist/mjs/types/Enum/TypeSupportForNotation.d.ts.map +1 -1
  470. package/dist/mjs/types/Enum/TypeSupportForNotation.js +2 -2
  471. package/dist/mjs/types/Enum/TypeSupportForNotation.js.map +1 -1
  472. package/dist/mjs/types/Enum/VatDeclarationType.d.ts.map +1 -1
  473. package/dist/mjs/types/Enum/VatDeclarationType.js +1 -67
  474. package/dist/mjs/types/Enum/VatDeclarationType.js.map +1 -1
  475. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.d.ts +1 -0
  476. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.d.ts.map +1 -1
  477. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.js +7 -0
  478. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.js.map +1 -1
  479. package/dist/mjs/types/Interface/api/OnBoarding.d.ts +1 -1
  480. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  481. package/dist/mjs/types/Interface/api/OnBoarding.js +2 -2
  482. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
  483. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +0 -10
  484. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  485. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -56
  486. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  487. package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts +1 -2
  488. package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
  489. package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  490. package/dist/mjs/types/Interface/api/aspone/Util.d.ts +0 -1
  491. package/dist/mjs/types/Interface/api/aspone/Util.d.ts.map +1 -1
  492. package/dist/mjs/types/Interface/api/aspone/Util.js +0 -1
  493. package/dist/mjs/types/Interface/api/aspone/Util.js.map +1 -1
  494. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts +0 -5
  495. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -1
  496. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js +0 -20
  497. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js.map +1 -1
  498. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +1 -9
  499. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  500. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  501. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +0 -5
  502. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  503. package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
  504. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +0 -9
  505. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  506. package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
  507. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +3 -1
  508. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  509. package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
  510. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +3 -1
  511. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  512. package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
  513. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -23
  514. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  515. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  516. package/dist/mjs/types/Interface/api/checklist/Query.d.ts +0 -4
  517. package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
  518. package/dist/mjs/types/Interface/api/checklist/Query.js +1 -15
  519. package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
  520. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +1 -16
  521. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  522. package/dist/mjs/types/Interface/api/commercialManagement/Create.js +1 -87
  523. package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  524. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +0 -2
  525. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  526. package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  527. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +0 -1
  528. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  529. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +0 -6
  530. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  531. package/dist/mjs/types/Interface/api/exercice/Create.d.ts +0 -1
  532. package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
  533. package/dist/mjs/types/Interface/api/exercice/Create.js +0 -7
  534. package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -1
  535. package/dist/mjs/types/Interface/api/payment/Util.d.ts +1 -0
  536. package/dist/mjs/types/Interface/api/payment/Util.d.ts.map +1 -1
  537. package/dist/mjs/types/Interface/api/payment/Util.js.map +1 -1
  538. package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts +0 -7
  539. package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  540. package/dist/mjs/types/Interface/api/registration/CreateRegistration.js +1 -35
  541. package/dist/mjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  542. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.d.ts +0 -4
  543. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
  544. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.js +0 -16
  545. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
  546. package/dist/mjs/types/Interface/api/revision/Create.d.ts +0 -3
  547. package/dist/mjs/types/Interface/api/revision/Create.d.ts.map +1 -1
  548. package/dist/mjs/types/Interface/api/revision/Create.js +1 -21
  549. package/dist/mjs/types/Interface/api/revision/Create.js.map +1 -1
  550. package/dist/mjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  551. package/dist/mjs/types/Interface/api/revision/Query.js.map +1 -1
  552. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +0 -1
  553. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  554. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +2 -10
  555. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  556. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +0 -1
  557. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -1
  558. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +0 -7
  559. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -1
  560. package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +1 -2
  561. package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
  562. package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js +0 -6
  563. package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
  564. package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +1 -2
  565. package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
  566. package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +0 -6
  567. package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
  568. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +3 -0
  569. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  570. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +8 -0
  571. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  572. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +0 -6
  573. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  574. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +0 -5
  575. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  576. package/dist/mjs/types/Interface/models/IApiError.d.ts +0 -1
  577. package/dist/mjs/types/Interface/models/IApiError.d.ts.map +1 -1
  578. package/dist/mjs/types/Interface/models/IApiError.js +0 -1
  579. package/dist/mjs/types/Interface/models/IApiError.js.map +1 -1
  580. package/dist/mjs/types/Interface/models/IAutomaticRegistration.d.ts +1 -1
  581. package/dist/mjs/types/Interface/models/IAutomaticRegistration.d.ts.map +1 -1
  582. package/dist/mjs/types/Interface/models/IAutomaticRegistration.js.map +1 -1
  583. package/dist/mjs/types/Interface/models/IBankAccount.d.ts +1 -2
  584. package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  585. package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
  586. package/dist/mjs/types/Interface/models/IChecklist.d.ts +0 -3
  587. package/dist/mjs/types/Interface/models/IChecklist.d.ts.map +1 -1
  588. package/dist/mjs/types/Interface/models/IChecklist.js.map +1 -1
  589. package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts +1 -2
  590. package/dist/mjs/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  591. package/dist/mjs/types/Interface/models/IEstimateInvoice.js.map +1 -1
  592. package/dist/mjs/types/Interface/models/IExercice.d.ts +0 -2
  593. package/dist/mjs/types/Interface/models/IExercice.d.ts.map +1 -1
  594. package/dist/mjs/types/Interface/models/IExercice.js.map +1 -1
  595. package/dist/mjs/types/Interface/models/IFile.d.ts +1 -4
  596. package/dist/mjs/types/Interface/models/IFile.d.ts.map +1 -1
  597. package/dist/mjs/types/Interface/models/IFile.js.map +1 -1
  598. package/dist/mjs/types/Interface/models/IRefund.d.ts +0 -1
  599. package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
  600. package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
  601. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +2 -16
  602. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  603. package/dist/mjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  604. package/dist/mjs/types/Interface/models/ISupervision.d.ts +0 -2
  605. package/dist/mjs/types/Interface/models/ISupervision.d.ts.map +1 -1
  606. package/dist/mjs/types/Interface/models/ISupervision.js.map +1 -1
  607. package/dist/mjs/types/Interface/models/IThirdParty.d.ts +0 -2
  608. package/dist/mjs/types/Interface/models/IThirdParty.d.ts.map +1 -1
  609. package/dist/mjs/types/Interface/models/IThirdParty.js.map +1 -1
  610. package/dist/mjs/types/index.d.ts +0 -15
  611. package/dist/mjs/types/index.d.ts.map +1 -1
  612. package/dist/mjs/types/index.js +0 -15
  613. package/dist/mjs/types/index.js.map +1 -1
  614. package/dist/mjs/utils/brands.d.ts +0 -1
  615. package/dist/mjs/utils/brands.d.ts.map +1 -1
  616. package/dist/mjs/utils/brands.js.map +1 -1
  617. package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
  618. package/dist/mjs/utils/commercialManagement/document.js +6 -14
  619. package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
  620. package/dist/mjs/utils/commercialManagement/templates/body.js +15 -15
  621. package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
  622. package/dist/mjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
  623. package/dist/mjs/utils/commercialManagement/templates/common.js +39 -56
  624. package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
  625. package/dist/mjs/utils/email.d.ts.map +1 -1
  626. package/dist/mjs/utils/email.js +1 -4
  627. package/dist/mjs/utils/email.js.map +1 -1
  628. package/dist/mjs/utils/payment.d.ts.map +1 -1
  629. package/dist/mjs/utils/payment.js +8 -13
  630. package/dist/mjs/utils/payment.js.map +1 -1
  631. package/dist/mjs/utils/prestation.d.ts +0 -7
  632. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  633. package/dist/mjs/utils/prestation.js +1 -10
  634. package/dist/mjs/utils/prestation.js.map +1 -1
  635. package/dist/mjs/utils/tests/payment.spec.js +16 -0
  636. package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
  637. package/package-lock.json +1 -1
  638. package/package.json +1 -2
  639. package/ts/api/resources/Acceptance.ts +0 -4
  640. package/ts/api/resources/AccountingFiles.ts +2 -2
  641. package/ts/api/resources/BankAccount.ts +1 -5
  642. package/ts/api/resources/Cerfa.ts +39 -0
  643. package/ts/api/resources/Checklist.ts +1 -14
  644. package/ts/api/resources/Exercice.ts +0 -4
  645. package/ts/api/resources/GeneralLedger.ts +23 -0
  646. package/ts/api/resources/IncomeStatement.ts +12 -1
  647. package/ts/api/resources/Journal.ts +9 -1
  648. package/ts/api/resources/Mail.ts +2 -5
  649. package/ts/api/resources/Payment.ts +1 -22
  650. package/ts/api/resources/Provision.ts +5 -0
  651. package/ts/api/resources/Qonto.ts +0 -3
  652. package/ts/api/resources/Revision.ts +2 -2
  653. package/ts/api/resources/SalariesFile.ts +5 -0
  654. package/ts/api/resources/Stocks.ts +10 -0
  655. package/ts/api/resources/Vat.ts +10 -7
  656. package/ts/api/resources.ts +2 -10
  657. package/ts/index.ts +0 -1
  658. package/ts/types/Enum/Aspone.ts +0 -7
  659. package/ts/types/Enum/AutomaticRegistration.ts +1 -3
  660. package/ts/types/Enum/BankAccountType.ts +1 -3
  661. package/ts/types/Enum/BrandClementine.ts +0 -1
  662. package/ts/types/Enum/ChecklistType.ts +0 -4
  663. package/ts/types/Enum/CommercialManagement.ts +1 -6
  664. package/ts/types/Enum/ConnectorType.ts +0 -1
  665. package/ts/types/Enum/ConstitutionState.ts +1 -7
  666. package/ts/types/Enum/DepositDocumentType.ts +0 -6
  667. package/ts/types/Enum/EstimateInvoice.ts +0 -22
  668. package/ts/types/Enum/FuelType.ts +15 -18
  669. package/ts/types/Enum/Ged.ts +1 -5
  670. package/ts/types/Enum/JobTitle.ts +1 -13
  671. package/ts/types/Enum/Log.ts +0 -14
  672. package/ts/types/Enum/ReasonTerminationType.ts +0 -6
  673. package/ts/types/Enum/Role.ts +0 -1
  674. package/ts/types/Enum/RoleDetail.ts +0 -12
  675. package/ts/types/Enum/StockType.ts +1 -1
  676. package/ts/types/Enum/TaskResponseType.ts +0 -11
  677. package/ts/types/Enum/TimeSlot.ts +16 -23
  678. package/ts/types/Enum/TypeSupportForNotation.ts +2 -2
  679. package/ts/types/Enum/VatDeclarationType.ts +1 -67
  680. package/ts/types/Interface/api/3cx/Query3cxMeeting.ts +5 -0
  681. package/ts/types/Interface/api/OnBoarding.ts +2 -2
  682. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +0 -42
  683. package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -2
  684. package/ts/types/Interface/api/aspone/Util.ts +0 -1
  685. package/ts/types/Interface/api/card/ModifyPlanning.ts +0 -14
  686. package/ts/types/Interface/api/cerfa/2031.ts +1 -3
  687. package/ts/types/Interface/api/cerfa/2035.ts +0 -2
  688. package/ts/types/Interface/api/cerfa/2065.ts +2 -4
  689. package/ts/types/Interface/api/cerfa/2571.ts +3 -1
  690. package/ts/types/Interface/api/cerfa/2572.ts +2 -5
  691. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +1 -30
  692. package/ts/types/Interface/api/checklist/Query.ts +1 -11
  693. package/ts/types/Interface/api/commercialManagement/Create.ts +2 -67
  694. package/ts/types/Interface/api/commercialManagement/Read.ts +0 -2
  695. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +0 -4
  696. package/ts/types/Interface/api/exercice/Create.ts +0 -5
  697. package/ts/types/Interface/api/payment/Util.ts +1 -0
  698. package/ts/types/Interface/api/registration/CreateRegistration.ts +0 -27
  699. package/ts/types/Interface/api/registration/DeclareRegistration.ts +0 -12
  700. package/ts/types/Interface/api/revision/Create.ts +2 -16
  701. package/ts/types/Interface/api/revision/Query.ts +113 -113
  702. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +2 -8
  703. package/ts/types/Interface/api/terminationList/QueryPaginateTerminationList.ts +0 -5
  704. package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +1 -5
  705. package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +1 -5
  706. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +6 -0
  707. package/ts/types/Interface/api/vatDeclaration/ReadVatDeclaration.ts +0 -7
  708. package/ts/types/Interface/models/IApiError.ts +0 -1
  709. package/ts/types/Interface/models/IAutomaticRegistration.ts +1 -1
  710. package/ts/types/Interface/models/IBankAccount.ts +1 -2
  711. package/ts/types/Interface/models/IChecklist.ts +0 -3
  712. package/ts/types/Interface/models/IEstimateInvoice.ts +1 -2
  713. package/ts/types/Interface/models/IExercice.ts +0 -2
  714. package/ts/types/Interface/models/IFile.ts +1 -4
  715. package/ts/types/Interface/models/IRefund.ts +0 -1
  716. package/ts/types/Interface/models/ISocietyGescom.ts +2 -16
  717. package/ts/types/Interface/models/ISupervision.ts +0 -2
  718. package/ts/types/Interface/models/IThirdParty.ts +0 -2
  719. package/ts/types/index.ts +0 -15
  720. package/ts/utils/brands.ts +0 -1
  721. package/ts/utils/commercialManagement/document.ts +5 -17
  722. package/ts/utils/commercialManagement/templates/body.ts +15 -15
  723. package/ts/utils/commercialManagement/templates/common.ts +39 -56
  724. package/ts/utils/email.ts +1 -3
  725. package/ts/utils/payment.ts +9 -13
  726. package/ts/utils/prestation.ts +1 -12
  727. package/ts/utils/tests/payment.spec.ts +16 -0
  728. package/dist/cjs/api/resources/JuridicalMission.d.ts +0 -6
  729. package/dist/cjs/api/resources/JuridicalMission.d.ts.map +0 -1
  730. package/dist/cjs/api/resources/JuridicalMission.js +0 -11
  731. package/dist/cjs/api/resources/JuridicalMission.js.map +0 -1
  732. package/dist/cjs/api/resources/PrestationComplementary.d.ts +0 -7
  733. package/dist/cjs/api/resources/PrestationComplementary.d.ts.map +0 -1
  734. package/dist/cjs/api/resources/PrestationComplementary.js +0 -14
  735. package/dist/cjs/api/resources/PrestationComplementary.js.map +0 -1
  736. package/dist/cjs/api/resources/PrevisionalForm.d.ts +0 -10
  737. package/dist/cjs/api/resources/PrevisionalForm.d.ts.map +0 -1
  738. package/dist/cjs/api/resources/PrevisionalForm.js +0 -23
  739. package/dist/cjs/api/resources/PrevisionalForm.js.map +0 -1
  740. package/dist/cjs/api/resources/Refund.d.ts +0 -7
  741. package/dist/cjs/api/resources/Refund.d.ts.map +0 -1
  742. package/dist/cjs/api/resources/Refund.js +0 -14
  743. package/dist/cjs/api/resources/Refund.js.map +0 -1
  744. package/dist/cjs/api/resources/ToDoExpress.d.ts +0 -29
  745. package/dist/cjs/api/resources/ToDoExpress.d.ts.map +0 -1
  746. package/dist/cjs/api/resources/ToDoExpress.js +0 -36
  747. package/dist/cjs/api/resources/ToDoExpress.js.map +0 -1
  748. package/dist/cjs/types/Enum/PaymentRecovery.d.ts +0 -51
  749. package/dist/cjs/types/Enum/PaymentRecovery.d.ts.map +0 -1
  750. package/dist/cjs/types/Enum/PaymentRecovery.js +0 -57
  751. package/dist/cjs/types/Enum/PaymentRecovery.js.map +0 -1
  752. package/dist/cjs/types/Enum/PrestationState.d.ts +0 -15
  753. package/dist/cjs/types/Enum/PrestationState.d.ts.map +0 -1
  754. package/dist/cjs/types/Enum/PrestationState.js +0 -51
  755. package/dist/cjs/types/Enum/PrestationState.js.map +0 -1
  756. package/dist/cjs/types/Enum/PrevisionalForm.d.ts +0 -16
  757. package/dist/cjs/types/Enum/PrevisionalForm.d.ts.map +0 -1
  758. package/dist/cjs/types/Enum/PrevisionalForm.js +0 -15
  759. package/dist/cjs/types/Enum/PrevisionalForm.js.map +0 -1
  760. package/dist/cjs/types/Enum/Template.d.ts +0 -13
  761. package/dist/cjs/types/Enum/Template.d.ts.map +0 -1
  762. package/dist/cjs/types/Enum/Template.js +0 -17
  763. package/dist/cjs/types/Enum/Template.js.map +0 -1
  764. package/dist/cjs/types/Interface/api/PaymentRecovery/Caarl.d.ts +0 -140
  765. package/dist/cjs/types/Interface/api/PaymentRecovery/Caarl.d.ts.map +0 -1
  766. package/dist/cjs/types/Interface/api/PaymentRecovery/Caarl.js +0 -3
  767. package/dist/cjs/types/Interface/api/PaymentRecovery/Caarl.js.map +0 -1
  768. package/dist/cjs/types/Interface/api/PaymentRecovery/Create.d.ts +0 -49
  769. package/dist/cjs/types/Interface/api/PaymentRecovery/Create.d.ts.map +0 -1
  770. package/dist/cjs/types/Interface/api/PaymentRecovery/Create.js +0 -162
  771. package/dist/cjs/types/Interface/api/PaymentRecovery/Create.js.map +0 -1
  772. package/dist/cjs/types/Interface/api/PaymentRecovery/Query.d.ts +0 -14
  773. package/dist/cjs/types/Interface/api/PaymentRecovery/Query.d.ts.map +0 -1
  774. package/dist/cjs/types/Interface/api/PaymentRecovery/Query.js +0 -72
  775. package/dist/cjs/types/Interface/api/PaymentRecovery/Query.js.map +0 -1
  776. package/dist/cjs/types/Interface/api/PaymentRecovery/Read.d.ts +0 -53
  777. package/dist/cjs/types/Interface/api/PaymentRecovery/Read.d.ts.map +0 -1
  778. package/dist/cjs/types/Interface/api/PaymentRecovery/Read.js +0 -3
  779. package/dist/cjs/types/Interface/api/PaymentRecovery/Read.js.map +0 -1
  780. package/dist/cjs/types/Interface/api/juridicalMission/Query.d.ts +0 -13
  781. package/dist/cjs/types/Interface/api/juridicalMission/Query.d.ts.map +0 -1
  782. package/dist/cjs/types/Interface/api/juridicalMission/Query.js +0 -73
  783. package/dist/cjs/types/Interface/api/juridicalMission/Query.js.map +0 -1
  784. package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts +0 -76
  785. package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +0 -1
  786. package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +0 -217
  787. package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +0 -1
  788. package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +0 -67
  789. package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +0 -1
  790. package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js +0 -3
  791. package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +0 -1
  792. package/dist/cjs/types/Interface/api/terminationList/TerminationList.d.ts +0 -7
  793. package/dist/cjs/types/Interface/api/terminationList/TerminationList.d.ts.map +0 -1
  794. package/dist/cjs/types/Interface/api/terminationList/TerminationList.js +0 -42
  795. package/dist/cjs/types/Interface/api/terminationList/TerminationList.js.map +0 -1
  796. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +0 -35
  797. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +0 -1
  798. package/dist/cjs/types/Interface/api/toDoExpress/Query.js +0 -203
  799. package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +0 -1
  800. package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts +0 -18
  801. package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts.map +0 -1
  802. package/dist/cjs/types/Interface/api/toDoExpress/Read.js +0 -3
  803. package/dist/cjs/types/Interface/api/toDoExpress/Read.js.map +0 -1
  804. package/dist/cjs/types/Interface/models/IPaymentRecovery.d.ts +0 -17
  805. package/dist/cjs/types/Interface/models/IPaymentRecovery.d.ts.map +0 -1
  806. package/dist/cjs/types/Interface/models/IPaymentRecovery.js +0 -3
  807. package/dist/cjs/types/Interface/models/IPaymentRecovery.js.map +0 -1
  808. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.d.ts +0 -13
  809. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.d.ts.map +0 -1
  810. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.js +0 -3
  811. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.js.map +0 -1
  812. package/dist/cjs/types/Interface/models/IPrevisionalForm.d.ts +0 -13
  813. package/dist/cjs/types/Interface/models/IPrevisionalForm.d.ts.map +0 -1
  814. package/dist/cjs/types/Interface/models/IPrevisionalForm.js +0 -3
  815. package/dist/cjs/types/Interface/models/IPrevisionalForm.js.map +0 -1
  816. package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts +0 -3
  817. package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +0 -1
  818. package/dist/cjs/utils/commercialManagement/internationalization/choices.js +0 -419
  819. package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +0 -1
  820. package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts +0 -145
  821. package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts.map +0 -1
  822. package/dist/cjs/utils/commercialManagement/internationalization/type.js +0 -3
  823. package/dist/cjs/utils/commercialManagement/internationalization/type.js.map +0 -1
  824. package/dist/cjs/utils/commercialManagement/recovery.d.ts +0 -7
  825. package/dist/cjs/utils/commercialManagement/recovery.d.ts.map +0 -1
  826. package/dist/cjs/utils/commercialManagement/recovery.js +0 -31
  827. package/dist/cjs/utils/commercialManagement/recovery.js.map +0 -1
  828. package/dist/cjs/utils/decorators/isE164PhoneNumber.decorator.d.ts +0 -6
  829. package/dist/cjs/utils/decorators/isE164PhoneNumber.decorator.d.ts.map +0 -1
  830. package/dist/cjs/utils/decorators/isE164PhoneNumber.decorator.js +0 -25
  831. package/dist/cjs/utils/decorators/isE164PhoneNumber.decorator.js.map +0 -1
  832. package/dist/mjs/api/resources/JuridicalMission.d.ts +0 -6
  833. package/dist/mjs/api/resources/JuridicalMission.d.ts.map +0 -1
  834. package/dist/mjs/api/resources/JuridicalMission.js +0 -7
  835. package/dist/mjs/api/resources/JuridicalMission.js.map +0 -1
  836. package/dist/mjs/api/resources/PrestationComplementary.d.ts +0 -7
  837. package/dist/mjs/api/resources/PrestationComplementary.d.ts.map +0 -1
  838. package/dist/mjs/api/resources/PrestationComplementary.js +0 -10
  839. package/dist/mjs/api/resources/PrestationComplementary.js.map +0 -1
  840. package/dist/mjs/api/resources/PrevisionalForm.d.ts +0 -10
  841. package/dist/mjs/api/resources/PrevisionalForm.d.ts.map +0 -1
  842. package/dist/mjs/api/resources/PrevisionalForm.js +0 -23
  843. package/dist/mjs/api/resources/PrevisionalForm.js.map +0 -1
  844. package/dist/mjs/api/resources/Refund.d.ts +0 -7
  845. package/dist/mjs/api/resources/Refund.d.ts.map +0 -1
  846. package/dist/mjs/api/resources/Refund.js +0 -10
  847. package/dist/mjs/api/resources/Refund.js.map +0 -1
  848. package/dist/mjs/api/resources/ToDoExpress.d.ts +0 -29
  849. package/dist/mjs/api/resources/ToDoExpress.d.ts.map +0 -1
  850. package/dist/mjs/api/resources/ToDoExpress.js +0 -40
  851. package/dist/mjs/api/resources/ToDoExpress.js.map +0 -1
  852. package/dist/mjs/types/Enum/PaymentRecovery.d.ts +0 -51
  853. package/dist/mjs/types/Enum/PaymentRecovery.d.ts.map +0 -1
  854. package/dist/mjs/types/Enum/PaymentRecovery.js +0 -54
  855. package/dist/mjs/types/Enum/PaymentRecovery.js.map +0 -1
  856. package/dist/mjs/types/Enum/PrestationState.d.ts +0 -15
  857. package/dist/mjs/types/Enum/PrestationState.d.ts.map +0 -1
  858. package/dist/mjs/types/Enum/PrestationState.js +0 -48
  859. package/dist/mjs/types/Enum/PrestationState.js.map +0 -1
  860. package/dist/mjs/types/Enum/PrevisionalForm.d.ts +0 -16
  861. package/dist/mjs/types/Enum/PrevisionalForm.d.ts.map +0 -1
  862. package/dist/mjs/types/Enum/PrevisionalForm.js +0 -12
  863. package/dist/mjs/types/Enum/PrevisionalForm.js.map +0 -1
  864. package/dist/mjs/types/Enum/Template.d.ts +0 -13
  865. package/dist/mjs/types/Enum/Template.d.ts.map +0 -1
  866. package/dist/mjs/types/Enum/Template.js +0 -14
  867. package/dist/mjs/types/Enum/Template.js.map +0 -1
  868. package/dist/mjs/types/Interface/api/PaymentRecovery/Caarl.d.ts +0 -140
  869. package/dist/mjs/types/Interface/api/PaymentRecovery/Caarl.d.ts.map +0 -1
  870. package/dist/mjs/types/Interface/api/PaymentRecovery/Caarl.js +0 -2
  871. package/dist/mjs/types/Interface/api/PaymentRecovery/Caarl.js.map +0 -1
  872. package/dist/mjs/types/Interface/api/PaymentRecovery/Create.d.ts +0 -49
  873. package/dist/mjs/types/Interface/api/PaymentRecovery/Create.d.ts.map +0 -1
  874. package/dist/mjs/types/Interface/api/PaymentRecovery/Create.js +0 -182
  875. package/dist/mjs/types/Interface/api/PaymentRecovery/Create.js.map +0 -1
  876. package/dist/mjs/types/Interface/api/PaymentRecovery/Query.d.ts +0 -14
  877. package/dist/mjs/types/Interface/api/PaymentRecovery/Query.d.ts.map +0 -1
  878. package/dist/mjs/types/Interface/api/PaymentRecovery/Query.js +0 -75
  879. package/dist/mjs/types/Interface/api/PaymentRecovery/Query.js.map +0 -1
  880. package/dist/mjs/types/Interface/api/PaymentRecovery/Read.d.ts +0 -53
  881. package/dist/mjs/types/Interface/api/PaymentRecovery/Read.d.ts.map +0 -1
  882. package/dist/mjs/types/Interface/api/PaymentRecovery/Read.js +0 -2
  883. package/dist/mjs/types/Interface/api/PaymentRecovery/Read.js.map +0 -1
  884. package/dist/mjs/types/Interface/api/juridicalMission/Query.d.ts +0 -13
  885. package/dist/mjs/types/Interface/api/juridicalMission/Query.d.ts.map +0 -1
  886. package/dist/mjs/types/Interface/api/juridicalMission/Query.js +0 -78
  887. package/dist/mjs/types/Interface/api/juridicalMission/Query.js.map +0 -1
  888. package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts +0 -76
  889. package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +0 -1
  890. package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +0 -277
  891. package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +0 -1
  892. package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +0 -67
  893. package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +0 -1
  894. package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js +0 -2
  895. package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +0 -1
  896. package/dist/mjs/types/Interface/api/terminationList/TerminationList.d.ts +0 -7
  897. package/dist/mjs/types/Interface/api/terminationList/TerminationList.d.ts.map +0 -1
  898. package/dist/mjs/types/Interface/api/terminationList/TerminationList.js +0 -42
  899. package/dist/mjs/types/Interface/api/terminationList/TerminationList.js.map +0 -1
  900. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +0 -35
  901. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +0 -1
  902. package/dist/mjs/types/Interface/api/toDoExpress/Query.js +0 -227
  903. package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +0 -1
  904. package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts +0 -18
  905. package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts.map +0 -1
  906. package/dist/mjs/types/Interface/api/toDoExpress/Read.js +0 -2
  907. package/dist/mjs/types/Interface/api/toDoExpress/Read.js.map +0 -1
  908. package/dist/mjs/types/Interface/models/IPaymentRecovery.d.ts +0 -17
  909. package/dist/mjs/types/Interface/models/IPaymentRecovery.d.ts.map +0 -1
  910. package/dist/mjs/types/Interface/models/IPaymentRecovery.js +0 -2
  911. package/dist/mjs/types/Interface/models/IPaymentRecovery.js.map +0 -1
  912. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.d.ts +0 -13
  913. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.d.ts.map +0 -1
  914. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.js +0 -2
  915. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.js.map +0 -1
  916. package/dist/mjs/types/Interface/models/IPrevisionalForm.d.ts +0 -13
  917. package/dist/mjs/types/Interface/models/IPrevisionalForm.d.ts.map +0 -1
  918. package/dist/mjs/types/Interface/models/IPrevisionalForm.js +0 -2
  919. package/dist/mjs/types/Interface/models/IPrevisionalForm.js.map +0 -1
  920. package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts +0 -3
  921. package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +0 -1
  922. package/dist/mjs/utils/commercialManagement/internationalization/choices.js +0 -416
  923. package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +0 -1
  924. package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts +0 -145
  925. package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts.map +0 -1
  926. package/dist/mjs/utils/commercialManagement/internationalization/type.js +0 -2
  927. package/dist/mjs/utils/commercialManagement/internationalization/type.js.map +0 -1
  928. package/dist/mjs/utils/commercialManagement/recovery.d.ts +0 -7
  929. package/dist/mjs/utils/commercialManagement/recovery.d.ts.map +0 -1
  930. package/dist/mjs/utils/commercialManagement/recovery.js +0 -26
  931. package/dist/mjs/utils/commercialManagement/recovery.js.map +0 -1
  932. package/dist/mjs/utils/decorators/isE164PhoneNumber.decorator.d.ts +0 -6
  933. package/dist/mjs/utils/decorators/isE164PhoneNumber.decorator.d.ts.map +0 -1
  934. package/dist/mjs/utils/decorators/isE164PhoneNumber.decorator.js +0 -22
  935. package/dist/mjs/utils/decorators/isE164PhoneNumber.decorator.js.map +0 -1
  936. package/ts/api/resources/JuridicalMission.ts +0 -14
  937. package/ts/api/resources/PrestationComplementary.ts +0 -17
  938. package/ts/api/resources/PrevisionalForm.ts +0 -28
  939. package/ts/api/resources/Refund.ts +0 -12
  940. package/ts/api/resources/ToDoExpress.ts +0 -44
  941. package/ts/types/Enum/PaymentRecovery.ts +0 -52
  942. package/ts/types/Enum/PrestationState.ts +0 -47
  943. package/ts/types/Enum/PrevisionalForm.ts +0 -11
  944. package/ts/types/Enum/Template.ts +0 -12
  945. package/ts/types/Interface/api/PaymentRecovery/Caarl.ts +0 -144
  946. package/ts/types/Interface/api/PaymentRecovery/Create.ts +0 -136
  947. package/ts/types/Interface/api/PaymentRecovery/Query.ts +0 -49
  948. package/ts/types/Interface/api/PaymentRecovery/Read.ts +0 -53
  949. package/ts/types/Interface/api/juridicalMission/Query.ts +0 -51
  950. package/ts/types/Interface/api/previsionalForm/CreatePrevisionalForm.ts +0 -177
  951. package/ts/types/Interface/api/previsionalForm/PrevisionalFormPayload.ts +0 -76
  952. package/ts/types/Interface/api/terminationList/TerminationList.ts +0 -28
  953. package/ts/types/Interface/api/toDoExpress/Query.ts +0 -159
  954. package/ts/types/Interface/api/toDoExpress/Read.ts +0 -11
  955. package/ts/types/Interface/models/IPaymentRecovery.ts +0 -18
  956. package/ts/types/Interface/models/IPrestationComplementaryHistory.ts +0 -16
  957. package/ts/types/Interface/models/IPrevisionalForm.ts +0 -15
  958. package/ts/utils/commercialManagement/internationalization/choices.ts +0 -423
  959. package/ts/utils/commercialManagement/internationalization/type.ts +0 -157
  960. package/ts/utils/commercialManagement/recovery.ts +0 -26
  961. package/ts/utils/decorators/isE164PhoneNumber.decorator.ts +0 -16
@@ -1 +1 @@
1
- {"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AACxC,uCAAqD;AACrD,yCAA0C;AAC1C,iEAAgF;AAChF,uDAA4D;AAC5D,qEAAwF;AACxF,2EAAwE;AACxE,6EAA0E;AAC1E,2EAAwE;AACxE,mFAAgF;AAChF,2DAAwD;AACxD,qCAAiD;AACjD,+BAA+B;AAC/B,yCAA4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a,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC1O,aAAa;aACR,IAAI,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC5N,aAAa;aACR,IAAI,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;;YAChN,OAAO,KAAK,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,CAAC;AAEf,CAAC,CAAC;AAGoQ,kDAAmB","sourcesContent":["import { IExercice, IPrestation, IPrestationList } from '../types';\nimport { Vat } from '../types/Enum/Vat';\nimport { getTaxesIncludedAmount } from './vat/utils';\nimport { intersection } from './noLodash';\nimport { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\nimport { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\nimport { exerciceNumber } from './exercice';\n\ntype priceGridBrand = {\n idTypeBrand: number,\n price: priceGrid[]\n};\n\ntype priceGrid = {\n idPrestationList: number[],\n priceWithTaxesIncluded: boolean,\n applicationCost: number,\n monthlyNbr?: monthlyNbr[],\n exerciceNbr?: exerciceNbr[],\n turnoverCreatedYear?: turnover[],\n turnoverPastYear?: turnover[],\n turnoverMonthly?: turnover[],\n turnoverYearly?: turnover[],\n employee?: employee[],\n partner?: employee[],\n properties?: propertie[],\n vatRegimeMonthly?: vatRegime[],\n vatRegimeYearly?: vatRegime[],\n taxSystem?: taxSystem[],\n legalForm?: legalForm[],\n employeeByLegalForm?: employeeByLegalForm[],\n};\n\ntype monthlyNbr = {\n minimum: number,\n maximum: number,\n value: number,\n closingType: number[],\n};\n\ntype exerciceNbr = {\n minimum: number,\n maximum: number,\n price: number,\n};\n\ntype turnover = {\n turnoverValue: number,\n price: number,\n};\n\ntype legalForm = {\n idLegalForm: number,\n price: number,\n};\n\ntype employee = {\n amountMinimum: number,\n amountMaximum: number,\n price: number,\n};\n\ntype employeeByLegalForm = {\n idLegalForm: number,\n price: number,\n};\n\ntype propertie = {\n amount: number,\n price: number,\n};\n\ntype vatRegime = {\n type: number,\n price: number,\n};\n\ntype taxSystem = {\n id: number,\n price: number,\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => !!intersection(idPrestationList, [PrestationType.CREATION_SOCIETE, PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE]).length;\n\nconst isFromStatutsExpress = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE].includes(idPL)).length;\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst calculateScoringOfPrestation = (idPrestationType: PrestationType, prestations: IPrestation[]): number => {\n const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid && prestation.signed && prestation.terminationList === null);\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter((p) => p.isComptable && !p.isCatalog);\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n const numberPoint = prestaDetails?.point || 0;\n\n // Get list of prestations that are already done and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType)) return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nexport const calculateMonthlyAmount = (params: { monthlyPrice: number, monthNumber: number, monthOffer: number, idVatForInternalInvoicing?: number | null, returnTaxesIncludedValue?: boolean }): number =>{\n const { monthlyPrice, monthNumber, monthOffer, idVatForInternalInvoicing, returnTaxesIncludedValue = true } = params;\n \n if (!idVatForInternalInvoicing && returnTaxesIncludedValue) throw new Error('Taux de TVA manquant pour calculer le montant TTC');\n\n if (!idVatForInternalInvoicing || !returnTaxesIncludedValue) return monthlyPrice * (monthNumber - monthOffer);\n\n return monthlyPrice * (monthNumber - monthOffer) * (1 + (Object.values(Vat).find(el => el.id === idVatForInternalInvoicing).value / 100));\n};\n\nexport const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart, PriceGridStatutsExpress,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile) currentBrandPriceGrid = currentPriceGridFile.find((priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand);\n if (currentBrandPriceGrid) currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) => price.idPrestationList.includes(idPrestationList));\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (\n idPrestationList: number, \n endDate: string, \n NbrMonth: number, /* Nbr de mois dans l'exercice */\n turnover: number, \n rentsNumber: number, \n employeesNumber: number, \n associatesNumber: number, \n idTypeBrand: number, \n idVatRegime: number, \n pastBalanceSheet: boolean, \n isYearly: boolean, /* Prestation annuel ou mensuel */\n totalMonth: number, /* Nbr de moiis offer */\n idTaxSystem: number, \n idLegalForm: number, \n exerciceNbr: number,\n balanceSheetOffered: number = 0, /* montant du bilan offer */\n): { \n totalPrestation: number, \n reduceMonth: number, \n canBeCreated: boolean, \n monthNbr: number, \n price: number \n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n let canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n \n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n let taxSystemPrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly) vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find(regime => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly) vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find(regime => regime.type === idVatRegime)?.price;\n\n /* Gestion du Régime d'imposition */\n if (currentPriceGrid.taxSystem && idTaxSystem) taxSystemPrice = currentPriceGrid.taxSystem?.find(tax => tax.id === idTaxSystem)?.price;\n\n /* Gestion des montants */\n /* Récupératioin des prix mensuels */\n if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) {\n monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n } else if (currentPriceGrid.employeeByLegalForm) {\n monthlyPrice = currentPriceGrid.employeeByLegalForm?.find(emp => emp.idLegalForm === idLegalForm)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n /* Récupération des prix annuels */\n } else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;\n else if (currentPriceGrid.legalForm) yearlyPrice = currentPriceGrid.legalForm?.find(form => form.idLegalForm === idLegalForm)?.price;\n else if (currentPriceGrid.exerciceNbr) yearlyPrice = currentPriceGrid.exerciceNbr?.find(el => el.minimum <= exerciceNbr && exerciceNbr <= el.maximum )?.price;\n /* Calcul du prix mensuel final */\n finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n let monthlyNbrList: monthlyNbr[] | undefined;\n let monthlyNbr: monthlyNbr | undefined;\n if (currentPriceGrid.monthlyNbr) {\n monthlyNbrList = currentPriceGrid.monthlyNbr?.filter(el => el.closingType.includes(cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS));\n if (monthlyNbrList) {\n monthlyNbr = monthlyNbrList.find(el => (el.minimum <= monthNbr) && (monthNbr <= el.maximum));\n if (monthlyNbr) {\n monthNbr = monthlyNbr.value;\n }\n }\n }\n /* Gestion des offres, mois offer */\n if (totalMonth > 0) {\n if (monthlyNbr && ((monthNbr - totalMonth) < monthlyNbr?.minimum)) canBeCreated = false; \n monthNbr = monthNbr - totalMonth;\n recalculateMonthly = true;\n }\n\n /* Calcul du nombre de mois soustraient */\n reduceMonth = (monthNbr === NbrMonth - totalMonth ? totalMonth : 0);\n\n /* Gestion des offres, bilan offer */\n if (balanceSheetOffered > 0) {\n yearlyPrice = undefined;\n recalculateMonthly = false;\n finalMonthlyPrice = balanceSheetOffered / monthNbr;\n }\n \n /* Prix Final */\n totalPrestation = (yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr);\n }\n return { totalPrestation, reduceMonth, canBeCreated, monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr, price: yearlyPrice ? yearlyPrice : recalculateMonthly ? (totalPrestation / monthNbr) : (finalMonthlyPrice ? finalMonthlyPrice : 0) };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList?.price || 0;\n\n return totalPrestation;\n};\n\n/**\n * From idLegalForm, get application fees amount (without taxes included if no idVat passed, or with taxes included calculated by given idVat)\n * @param idLegalForm \n * @param idVat \n * @returns amount of application fees, without taxes included\n */\nconst getApplicationFeesAmount = (idLegalForm: number, idVat?: number) =>{\n let applicationFeesAmount = 50;\n if (idLegalForm === LegalFormTypeEnum.SCI) applicationFeesAmount = 150;\n\n //Sans tva, on envoie le montant HT\n if (!idVat) return applicationFeesAmount;\n\n //Avec tva, on envoie le montant TTC\n return getTaxesIncludedAmount(applicationFeesAmount, idVat);\n};\n\nconst calculatePrestationPrice = (\n idPrestationList: number, \n prestationList: IPrestationList, \n endDate: string, \n NbrMonth: number, /* Nbr de mois dans l'exercice */\n turnover: number, \n rentsNumber: number, \n employeesNumber: number, \n associatesNumber: number, \n idTypeBrand: number, \n idVatRegime: number, \n pastBalanceSheet: boolean, \n optionsList: number[], \n totalPercentage: number, /* total pourcentage offer (%) */\n totalAmount: number, /* total montant offer (€) */\n totalMonth: number, /* total mois offer (mois) */\n isWithApplicationFees: boolean, /* frais de dossier */\n idTaxSystem: number, \n idLegalForm: number, \n isYearly: boolean = false, /* prestation annuel ou mensuel */\n isSubPrestation: boolean = false,\n balanceSheetOffered: number = 0,\n exerciceList: IExercice[] = [],\n): { \n totalPrestation: number, \n reduceMonth: number, \n canBeCreated: boolean, \n calculDetail: string, \n monthlyPrice: string, \n price: number \n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n PrestationType.COMPTA_EI_KLEMS,\n PrestationType.COMPTA_EI_KLEMS_EXPRESS,\n PrestationType.COMPTA_MICRO_KLEMS,\n PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,\n PrestationType.STATUTS_OPTION_2,\n ].includes(idPrestationList)\n ) {\n let exerciceNbr: number = 0;\n if (exerciceList.length) exerciceNbr = exerciceNumber(dayjs(endDate, 'YYYY-MM-DD').toDate(), exerciceList);\n totalWithReduce = calculatePrestationPriceWithPriceGrid(\n idPrestationList, \n endDate, \n NbrMonth, \n turnover, \n rentsNumber, \n employeesNumber, \n associatesNumber, \n idTypeBrand, \n idVatRegime, \n pastBalanceSheet, \n isYearly, \n totalMonth, \n idTaxSystem, \n idLegalForm, \n exerciceNbr,\n balanceSheetOffered,\n );\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation) totalPrestation += 50;\n }\n /* Gestion des offres */\n /* Offre montant offer */\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n /* Offre pourcentage offer */\n if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));\n /* Gesstioin du prix minimum acceptable pour la prestation */\n if (prestationList && prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find((option) => option.id === optionId)?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += (OptionTotalPrice ? OptionTotalPrice : 0);\n /* Gestion des frais de dossier */\n if (isWithApplicationFees) {\n const applicationFeesAmount = getApplicationFeesAmount(idLegalForm);\n totalPrestation += applicationFeesAmount;\n }\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + (Math.round(price * 100) / 100) + '€' : (Math.round(price * 100) / 100) + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return { totalPrestation, reduceMonth, canBeCreated, calculDetail, monthlyPrice: monthNbr > 0 ? (Math.round(price * 100) / 100) + '€/mois' : (Math.round(price * 100) / 100) + '€', price };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter(option => option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)));\n return PrestationOptionList.filter(option => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (idTypeBrand: number, idPrestationList: number, turnover: number, pastBalanceSheet: boolean): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n // @ts-ignore\n if ([PrestationType.COMPTA_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && !pastBalanceSheet && currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && pastBalanceSheet && currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover) return true;\n else return false;\n }\n return false;\n\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isFromStatutsExpress, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice, calculatePrestationPriceWithPriceGrid, getApplicationFeesAmount,\n};"]}
1
+ {"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":";;;AACA,uCAAqD;AACrD,yCAA0C;AAC1C,iEAAgF;AAChF,uDAA4D;AAC5D,qEAAwF;AACxF,2EAAwE;AACxE,6EAA0E;AAC1E,2EAAwE;AACxE,mFAAgF;AAChF,2DAAwD;AACxD,qCAAiD;AACjD,+BAA+B;AAC/B,yCAA4C;AA4E5C,MAAM,yBAAyB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CAAC;IACvE,+BAAc,CAAC,YAAY;IAC3B,+BAAc,CAAC,mBAAmB;IAClC,+BAAc,CAAC,wCAAwC;IACvD,+BAAc,CAAC,uBAAuB;IACtC,+BAAc,CAAC,GAAG;IAClB,+BAAc,CAAC,aAAa;IAC5B,+BAAc,CAAC,kBAAkB;CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AA+U9D,8DAAyB;AA7U3B,MAAM,wBAAwB,GAAG,CAAC,WAAmB,EAAE,SAAiB,EAAE,gBAAwB,EAAW,EAAE,CAAC,gBAAgB,KAAK,+BAAc,CAAC,iBAAiB,IAAI,SAAS,IAAI,WAAW,CAAC;AA6UrK,4DAAwB;AA3UrD,MAAM,oBAAoB,GAAG,CAAC,gBAAwB,EAAW,EAAE,CAAC,gBAAgB,KAAK,+BAAc,CAAC,+BAA+B,CAAC;AA2U7D,oDAAoB;AAzU/F,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,SAAi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,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC5N,aAAa;aACR,IAAI,CAAC,+BAAc,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,QAAQ;YAAE,OAAO,IAAI,CAAC;;YAChN,OAAO,KAAK,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,CAAC;AAEf,CAAC,CAAC;AAGoQ,kDAAmB","sourcesContent":["import { IExercice, IPrestation, IPrestationList } from '../types';\nimport { getTaxesIncludedAmount } from './vat/utils';\nimport { intersection } from './noLodash';\nimport { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\nimport { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';\nimport { PriceGridClementine } from '../types/Enum/PriceGridClementine';\nimport { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';\nimport { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';\nimport { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';\nimport { ClosingType } from '../types/Enum/ClosingType';\nimport { getBrandNameByNodeEnv } from './brands';\nimport * as dayjs from 'dayjs';\nimport { exerciceNumber } from './exercice';\n\ntype priceGridBrand = {\n idTypeBrand: number,\n price: priceGrid[]\n};\n\ntype priceGrid = {\n idPrestationList: number[],\n priceWithTaxesIncluded: boolean,\n applicationCost: number,\n monthlyNbr?: monthlyNbr[],\n exerciceNbr?: exerciceNbr[],\n turnoverCreatedYear?: turnover[],\n turnoverPastYear?: turnover[],\n turnoverMonthly?: turnover[],\n turnoverYearly?: turnover[],\n employee?: employee[],\n partner?: employee[],\n properties?: propertie[],\n vatRegimeMonthly?: vatRegime[],\n vatRegimeYearly?: vatRegime[],\n taxSystem?: taxSystem[],\n legalForm?: legalForm[],\n employeeByLegalForm?: employeeByLegalForm[],\n};\n\ntype monthlyNbr = {\n minimum: number,\n maximum: number,\n value: number,\n closingType: number[],\n};\n\ntype exerciceNbr = {\n minimum: number,\n maximum: number,\n price: number,\n};\n\ntype turnover = {\n turnoverValue: number,\n price: number,\n};\n\ntype legalForm = {\n idLegalForm: number,\n price: number,\n};\n\ntype employee = {\n amountMinimum: number,\n amountMaximum: number,\n price: number,\n};\n\ntype employeeByLegalForm = {\n idLegalForm: number,\n price: number,\n};\n\ntype propertie = {\n amount: number,\n price: number,\n};\n\ntype vatRegime = {\n type: number,\n price: number,\n};\n\ntype taxSystem = {\n id: number,\n price: number,\n};\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => !!intersection(idPrestationList, [PrestationType.CREATION_SOCIETE, PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE]).length;\n\nconst isFromStatutsExpress = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE].includes(idPL)).length;\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nconst calculateScoringOfPrestation = (idPrestationType: PrestationType, prestations: IPrestation[]): number => {\n const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid && prestation.signed && prestation.terminationList === null);\n\n // Get the list of prestations that are half price\n const prestationHalfPriceList = Object.values(PrestationDetail).filter((p) => p.isComptable && !p.isCatalog);\n const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);\n\n // Get the number of points for the new prestation\n const prestaDetails = Object.values(PrestationDetail).find((prestaDetail) => prestaDetail.id === idPrestationType);\n const numberPoint = prestaDetails?.point || 0;\n\n // Get list of prestations that are already done and check if one of them is in the list of prestations that are half price\n const prestationsExistIds = prestationsSignedPaid.map((prestation) => prestation.idPrestationList);\n const prestationHalfPriceAlreadyDoneIds = prestationsExistIds.filter((id) => prestationHalfPriceIds.includes(id));\n\n // If one of the prestations already done is in the list of prestations that are half price and if the idPrestationType is in prestationHalfPriceIds, return 50% of points\n if (prestationHalfPriceAlreadyDoneIds.length && prestationHalfPriceIds.includes(idPrestationType)) return Math.floor(numberPoint * 0.3);\n\n return numberPoint;\n};\n\nexport const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {\n let currentBrandPriceGrid: priceGridBrand | undefined;\n let currentPriceGrid: priceGrid | undefined;\n\n const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);\n const listEnvEnum = {\n PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart, PriceGridStatutsExpress,\n };\n // @ts-ignore\n const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];\n if (currentPriceGridFile) currentBrandPriceGrid = currentPriceGridFile.find((priceGrid: priceGridBrand) => priceGrid.idTypeBrand === idTypeBrand);\n if (currentBrandPriceGrid) currentPriceGrid = currentBrandPriceGrid?.price.find((price: priceGrid) => price.idPrestationList.includes(idPrestationList));\n return currentPriceGrid;\n};\n\nconst calculatePrestationPriceWithPriceGrid = (\n idPrestationList: number, \n endDate: string, \n NbrMonth: number, /* Nbr de mois dans l'exercice */\n turnover: number, \n rentsNumber: number, \n employeesNumber: number, \n associatesNumber: number, \n idTypeBrand: number, \n idVatRegime: number, \n pastBalanceSheet: boolean, \n isYearly: boolean, /* Prestation annuel ou mensuel */\n totalMonth: number, /* Nbr de moiis offer */\n idTaxSystem: number, \n idLegalForm: number, \n exerciceNbr: number,\n balanceSheetOffered: number = 0, /* montant du bilan offer */\n): { \n totalPrestation: number, \n reduceMonth: number, \n canBeCreated: boolean, \n monthNbr: number, \n price: number \n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let monthNbr: number = NbrMonth;\n let yearlyPrice: number | undefined;\n let finalMonthlyPrice: number | undefined;\n let canBeCreated: boolean = true;\n let recalculateMonthly: boolean = false;\n\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n \n if (currentPriceGrid) {\n let monthlyPrice: number | undefined;\n let vatRegimePrice: number | undefined;\n let taxSystemPrice: number | undefined;\n\n /* Gestion du régime de TVA */\n if (currentPriceGrid.vatRegimeMonthly && !isYearly) vatRegimePrice = currentPriceGrid.vatRegimeMonthly?.find(regime => regime.type === idVatRegime)?.price;\n else if (currentPriceGrid.vatRegimeYearly && isYearly) vatRegimePrice = currentPriceGrid.vatRegimeYearly?.find(regime => regime.type === idVatRegime)?.price;\n\n /* Gestion du Régime d'imposition */\n if (currentPriceGrid.taxSystem && idTaxSystem) taxSystemPrice = currentPriceGrid.taxSystem?.find(tax => tax.id === idTaxSystem)?.price;\n\n /* Gestion des montants */\n /* Récupératioin des prix mensuels */\n if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;\n else if (currentPriceGrid.employee) {\n monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n } else if (currentPriceGrid.employeeByLegalForm) {\n monthlyPrice = currentPriceGrid.employeeByLegalForm?.find(emp => emp.idLegalForm === idLegalForm)?.price;\n monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;\n /* Récupération des prix annuels */\n } else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;\n else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;\n else if (currentPriceGrid.legalForm) yearlyPrice = currentPriceGrid.legalForm?.find(form => form.idLegalForm === idLegalForm)?.price;\n else if (currentPriceGrid.exerciceNbr) yearlyPrice = currentPriceGrid.exerciceNbr?.find(el => el.minimum <= exerciceNbr && exerciceNbr <= el.maximum )?.price;\n /* Calcul du prix mensuel final */\n finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);\n\n /* Gestion des mois */\n let cloturedPast: boolean = false;\n if (dayjs(endDate, 'YYYY-MM-DD').subtract(15, 'day').isBefore(dayjs())) cloturedPast = true;\n let monthlyNbrList: monthlyNbr[] | undefined;\n let monthlyNbr: monthlyNbr | undefined;\n if (currentPriceGrid.monthlyNbr) {\n monthlyNbrList = currentPriceGrid.monthlyNbr?.filter(el => el.closingType.includes(cloturedPast ? ClosingType.OUTDATED : ClosingType.IN_PROGRESS));\n if (monthlyNbrList) {\n monthlyNbr = monthlyNbrList.find(el => (el.minimum <= monthNbr) && (monthNbr <= el.maximum));\n if (monthlyNbr) {\n monthNbr = monthlyNbr.value;\n }\n }\n }\n /* Gestion des offres, mois offer */\n if (totalMonth > 0) {\n if (monthlyNbr && ((monthNbr - totalMonth) < monthlyNbr?.minimum)) canBeCreated = false; \n monthNbr = monthNbr - totalMonth;\n recalculateMonthly = true;\n }\n\n /* Calcul du nombre de mois soustraient */\n reduceMonth = (monthNbr === NbrMonth - totalMonth ? totalMonth : 0);\n\n /* Gestion des offres, bilan offer */\n if (balanceSheetOffered > 0) {\n yearlyPrice = undefined;\n recalculateMonthly = false;\n finalMonthlyPrice = balanceSheetOffered / monthNbr;\n }\n \n /* Prix Final */\n totalPrestation = (yearlyPrice ? yearlyPrice : finalMonthlyPrice * monthNbr);\n }\n return { totalPrestation, reduceMonth, canBeCreated, monthNbr: yearlyPrice ? 0 : recalculateMonthly ? NbrMonth : monthNbr, price: yearlyPrice ? yearlyPrice : recalculateMonthly ? (totalPrestation / monthNbr) : (finalMonthlyPrice ? finalMonthlyPrice : 0) };\n};\n\nconst calculatePrestationPriceWithPrestationList = (prestationList: IPrestationList): number => {\n let totalPrestation: number = 0;\n\n totalPrestation = prestationList?.price || 0;\n\n return totalPrestation;\n};\n\n/**\n * From idLegalForm, get application fees amount (without taxes included if no idVat passed, or with taxes included calculated by given idVat)\n * @param idLegalForm \n * @param idVat \n * @returns amount of application fees, without taxes included\n */\nconst getApplicationFeesAmount = (idLegalForm: number, idVat?: number) =>{\n let applicationFeesAmount = 50;\n if (idLegalForm === LegalFormTypeEnum.SCI) applicationFeesAmount = 150;\n\n //Sans tva, on envoie le montant HT\n if (!idVat) return applicationFeesAmount;\n\n //Avec tva, on envoie le montant TTC\n return getTaxesIncludedAmount(applicationFeesAmount, idVat);\n};\n\nconst calculatePrestationPrice = (\n idPrestationList: number, \n prestationList: IPrestationList, \n endDate: string, \n NbrMonth: number, /* Nbr de mois dans l'exercice */\n turnover: number, \n rentsNumber: number, \n employeesNumber: number, \n associatesNumber: number, \n idTypeBrand: number, \n idVatRegime: number, \n pastBalanceSheet: boolean, \n optionsList: number[], \n totalPercentage: number, /* total pourcentage offer (%) */\n totalAmount: number, /* total montant offer (€) */\n totalMonth: number, /* total mois offer (mois) */\n isWithApplicationFees: boolean, /* frais de dossier */\n idTaxSystem: number, \n idLegalForm: number, \n isYearly: boolean = false, /* prestation annuel ou mensuel */\n isSubPrestation: boolean = false,\n balanceSheetOffered: number = 0,\n exerciceList: IExercice[] = [],\n): { \n totalPrestation: number, \n reduceMonth: number, \n canBeCreated: boolean, \n calculDetail: string, \n monthlyPrice: string, \n price: number \n} => {\n let totalPrestation: number = 0;\n let reduceMonth: number = 0;\n let canBeCreated: boolean = true;\n let monthNbr: number = 0;\n let price: number = 0;\n let totalWithReduce: { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } = { totalPrestation: 0, reduceMonth: 0, canBeCreated: true, monthNbr: 0, price: 0 };\n\n /* Gestion du prix en fonction de la prestation */\n if (\n [\n PrestationType.COMPTA_PRO,\n PrestationType.COMPTA_PRO_EXPRESS,\n PrestationType.COMPTA_ENTREPRISE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS,\n PrestationType.COMPTA_SCI,\n PrestationType.COMPTA_SCI_EXPRESS,\n PrestationType.BILAN_PREVISIONNEL,\n PrestationType.COMPTA_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM,\n PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS,\n PrestationType.COMPTA_POURCENTAGE,\n PrestationType.COMPTA_POURCENTAGE_EXPRESS,\n PrestationType.SOCIAL,\n PrestationType.GESTION_JURIDIQUE,\n PrestationType.COMPTA_PRO_COMPTASTART,\n PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,\n PrestationType.COMPTA_EI_KLEMS,\n PrestationType.COMPTA_EI_KLEMS_EXPRESS,\n PrestationType.COMPTA_MICRO_KLEMS,\n PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,\n PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,\n PrestationType.STATUTS_OPTION_2,\n ].includes(idPrestationList)\n ) {\n let exerciceNbr: number = 0;\n if (exerciceList.length) exerciceNbr = exerciceNumber(dayjs(endDate, 'YYYY-MM-DD').toDate(), exerciceList);\n totalWithReduce = calculatePrestationPriceWithPriceGrid(\n idPrestationList, \n endDate, \n NbrMonth, \n turnover, \n rentsNumber, \n employeesNumber, \n associatesNumber, \n idTypeBrand, \n idVatRegime, \n pastBalanceSheet, \n isYearly, \n totalMonth, \n idTaxSystem, \n idLegalForm, \n exerciceNbr,\n balanceSheetOffered,\n );\n totalPrestation = totalWithReduce.totalPrestation;\n reduceMonth = totalWithReduce.reduceMonth;\n canBeCreated = totalWithReduce.canBeCreated;\n monthNbr = totalWithReduce.monthNbr;\n price = totalWithReduce.price;\n } else {\n totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);\n if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation) totalPrestation += 50;\n }\n /* Gestion des offres */\n /* Offre montant offer */\n if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;\n /* Offre pourcentage offer */\n if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));\n /* Gesstioin du prix minimum acceptable pour la prestation */\n if (prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;\n /* Gestion des options */\n let OptionTotalPrice: number = 0;\n if (optionsList.length) {\n optionsList.forEach((optionId) => {\n const optionPrice: number | undefined = Object.values(PrestationOption).find((option) => option.id === optionId)?.price;\n if (optionPrice) OptionTotalPrice += optionPrice;\n });\n }\n totalPrestation += (OptionTotalPrice ? OptionTotalPrice : 0);\n /* Gestion des frais de dossier */\n if (isWithApplicationFees) {\n const applicationFeesAmount = getApplicationFeesAmount(idLegalForm);\n totalPrestation += applicationFeesAmount;\n }\n\n const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + (Math.round(price * 100) / 100) + '€' : (Math.round(price * 100) / 100) + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;\n\n return { totalPrestation, reduceMonth, canBeCreated, calculDetail, monthlyPrice: monthNbr > 0 ? (Math.round(price * 100) / 100) + '€/mois' : (Math.round(price * 100) / 100) + '€', price };\n};\n\nconst getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {\n const PrestationOptionList: PrestationOptionType[] = Object.values(PrestationOption).filter(option => option.brand.includes(getBrandNameByNodeEnv(process.env.NODE_ENV)));\n return PrestationOptionList.filter(option => option.prestationList.includes(idPrestationList));\n};\n\nconst isAbleToUpdatePrice = (idTypeBrand: number, idPrestationList: number, turnover: number, pastBalanceSheet: boolean): boolean => {\n /* Récupération de la grille tarifaire */\n const currentPriceGrid: priceGrid | undefined = getPriceGrid(idTypeBrand, idPrestationList);\n if (currentPriceGrid) {\n // @ts-ignore\n if ([PrestationType.COMPTA_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 2].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS].includes(idPrestationList) && currentPriceGrid.turnoverMonthly[currentPriceGrid.turnoverMonthly.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && !pastBalanceSheet && currentPriceGrid.turnoverCreatedYear[currentPriceGrid.turnoverCreatedYear.length - 1].turnoverValue < turnover) return true;\n // @ts-ignore\n else if ([PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList) && pastBalanceSheet && currentPriceGrid.turnoverPastYear[currentPriceGrid.turnoverPastYear.length - 1].turnoverValue < turnover) return true;\n else return false;\n }\n return false;\n\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isFromStatutsExpress, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice, calculatePrestationPriceWithPriceGrid, getApplicationFeesAmount,\n};"]}
@@ -85,6 +85,7 @@ describe('Payment', () => {
85
85
  prestationList.hidden = true;
86
86
  (0, payment_1.calculatePaymentsAuto)({
87
87
  idTypeBrand: 1,
88
+ goToClient: dayjs('2024-06-06').toDate(),
88
89
  firstExerciceNonExpresssEndDate,
89
90
  idPrestation,
90
91
  isWithApplicationFees: true,
@@ -110,6 +111,7 @@ describe('Payment', () => {
110
111
  test('if only one express, monthly payments of actual exo should be in parallel of express monthly payments, smoothed in number of remaining months (mini 3 months) (if not in 3 last month)', () => __awaiter(void 0, void 0, void 0, function* () {
111
112
  const payments = (0, payment_1.calculatePaymentsAuto)({
112
113
  idTypeBrand: 1,
114
+ goToClient: dayjs('2024-06-06').toDate(),
113
115
  firstExerciceNonExpresssEndDate,
114
116
  idPrestation,
115
117
  isWithApplicationFees: true,
@@ -129,6 +131,7 @@ describe('Payment', () => {
129
131
  var _a, _b, _c, _d;
130
132
  const payments = (0, payment_1.calculatePaymentsAuto)({
131
133
  idTypeBrand: 1,
134
+ goToClient: dayjs('2024-06-06').toDate(),
132
135
  firstExerciceNonExpresssEndDate,
133
136
  idPrestation,
134
137
  isWithApplicationFees: true,
@@ -152,6 +155,7 @@ describe('Payment', () => {
152
155
  const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();
153
156
  const payments = (0, payment_1.calculatePaymentsAuto)({
154
157
  idTypeBrand: 1,
158
+ goToClient: dayjs('2024-06-06').toDate(),
155
159
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
156
160
  idPrestation,
157
161
  isWithApplicationFees: true,
@@ -176,6 +180,7 @@ describe('Payment', () => {
176
180
  const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();
177
181
  const payments = (0, payment_1.calculatePaymentsAuto)({
178
182
  idTypeBrand: 1,
183
+ goToClient: dayjs('2024-06-06').toDate(),
179
184
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
180
185
  idPrestation,
181
186
  isWithApplicationFees: true,
@@ -204,6 +209,7 @@ describe('Payment', () => {
204
209
  }];
205
210
  const payments = (0, payment_1.calculatePaymentsAuto)({
206
211
  idTypeBrand: 1,
212
+ goToClient: dayjs('2024-06-06').toDate(),
207
213
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
208
214
  idPrestation,
209
215
  isWithApplicationFees: false,
@@ -229,6 +235,7 @@ describe('Payment', () => {
229
235
  }];
230
236
  const payments = (0, payment_1.calculatePaymentsAuto)({
231
237
  idTypeBrand: 1,
238
+ goToClient: dayjs('2024-06-06').toDate(),
232
239
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
233
240
  idPrestation,
234
241
  isWithApplicationFees: false,
@@ -251,6 +258,7 @@ describe('Payment', () => {
251
258
  const newFirstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate();
252
259
  const payments = (0, payment_1.calculatePaymentsAuto)({
253
260
  idTypeBrand: 1,
261
+ goToClient: dayjs('2024-06-06').toDate(),
254
262
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
255
263
  idPrestation,
256
264
  isWithApplicationFees: true,
@@ -276,6 +284,7 @@ describe('Payment', () => {
276
284
  const newFirstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate();
277
285
  const payments = (0, payment_1.calculatePaymentsAuto)({
278
286
  idTypeBrand: 1,
287
+ goToClient: dayjs('2024-06-06').toDate(),
279
288
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
280
289
  idPrestation,
281
290
  isWithApplicationFees: true,
@@ -301,6 +310,7 @@ describe('Payment', () => {
301
310
  const newFirstExerciceNonExpresssEndDate = dayjs().add(12, 'month').endOf('month').toDate();
302
311
  const payments = (0, payment_1.calculatePaymentsAuto)({
303
312
  idTypeBrand: 1,
313
+ goToClient: dayjs('2024-06-06').toDate(),
304
314
  firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
305
315
  idPrestation,
306
316
  isWithApplicationFees: false,
@@ -328,6 +338,7 @@ describe('Payment', () => {
328
338
  listPartialExercicePrestationExpressCloned[1] = Object.assign(Object.assign({}, listPartialExercicePrestationExpress[1]), { startDate: dayjs().startOf('month').toDate() });
329
339
  const payments = (0, payment_1.calculatePaymentsAuto)({
330
340
  idTypeBrand: 1,
341
+ goToClient: dayjs('2024-06-06').toDate(),
331
342
  firstExerciceNonExpresssEndDate,
332
343
  idPrestation,
333
344
  isWithApplicationFees: true,
@@ -347,6 +358,7 @@ describe('Payment', () => {
347
358
  mockdate_1.default.set(mockedDate);
348
359
  const payments = (0, payment_1.calculatePaymentsAuto)({
349
360
  idTypeBrand: 1,
361
+ goToClient: dayjs('2024-06-06').toDate(),
350
362
  firstExerciceNonExpresssEndDate,
351
363
  idPrestation,
352
364
  isWithApplicationFees: false,
@@ -384,6 +396,7 @@ describe('Payment', () => {
384
396
  mockdate_1.default.set(mockedDate);
385
397
  const payments = (0, payment_1.calculatePaymentsAuto)({
386
398
  idTypeBrand: 1,
399
+ goToClient: dayjs('2024-06-06').toDate(),
387
400
  firstExerciceNonExpresssEndDate,
388
401
  idPrestation,
389
402
  isWithApplicationFees: false,
@@ -404,6 +417,7 @@ describe('Payment', () => {
404
417
  mockdate_1.default.set(mockedDate);
405
418
  const payments = (0, payment_1.calculatePaymentsAuto)({
406
419
  idTypeBrand: 1,
420
+ goToClient: dayjs('2024-06-06').toDate(),
407
421
  firstExerciceNonExpresssEndDate,
408
422
  idPrestation,
409
423
  isWithApplicationFees: true,
@@ -422,6 +436,7 @@ describe('Payment', () => {
422
436
  var _j, _k, _l;
423
437
  const payments = (0, payment_1.calculatePaymentsAuto)({
424
438
  idTypeBrand: 1,
439
+ goToClient: dayjs('2024-06-06').toDate(),
425
440
  firstExerciceNonExpresssEndDate,
426
441
  idPrestation,
427
442
  isWithApplicationFees: true,
@@ -439,6 +454,7 @@ describe('Payment', () => {
439
454
  var _m, _o, _p;
440
455
  const payments = (0, payment_1.calculatePaymentsAuto)({
441
456
  idTypeBrand: 1,
457
+ goToClient: dayjs('2024-06-06').toDate(),
442
458
  firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(),
443
459
  idPrestation,
444
460
  isWithApplicationFees: true,
@@ -1 +1 @@
1
- {"version":3,"file":"payment.spec.js","sourceRoot":"","sources":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ent":["import * as dayjs from 'dayjs';\nimport { IRegulation, Vat, PaymentMethod, LegalFormTypeEnum, getTaxesIncludedAmount } from '../../types';\nimport MockDate from 'mockdate';\n\nimport { calculatePaymentsAuto } from '../payment';\nimport { PartialExercicePrestationExpress } from '../../types/Interface/api/payment/Util';\n\ndescribe('Payment', () => {\n describe('calculatePayments', () => {\n const idPrestation = 1;\n const idSociety = 1;\n const yearlyAmountNonExpress = 1800;\n const nextYearlyAmountNonExpress = 1800;\n const appCost = 14.9;\n\n const firstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate(); \n const prestationList = {\n id: 34,\n name: 'Compta Pro',\n isComptable: true,\n isJuridique: false,\n isSocial: false,\n isAttestation: false,\n inAverageCart: true,\n isBack: false,\n minimumPrice: null,\n price: null,\n isCatalog: false,\n isPlannable: false,\n hidden: false,\n isComplementary: false,\n signaturePosition: '400,54,569,90',\n signaturePage: 7,\n };\n const idVat = Vat.TX_10.id;\n const listPartialExercicePrestationExpress:PartialExercicePrestationExpress[] = [\n {\n startDate: dayjs().subtract(2, 'year').startOf('month').toDate(), \n endDate: dayjs().subtract(13, 'month').endOf('month').toDate(), \n countExpressMonthlyPayment: 2,\n totalAmount: 1200,\n },\n {\n startDate: dayjs().subtract(1, 'year').startOf('month').toDate(), \n endDate: dayjs().subtract(1, 'month').endOf('month').toDate(), \n countExpressMonthlyPayment: 2,\n totalAmount: 1800,\n },\n ];\n const listRegulations:IRegulation[] = [{\n amount: 600,\n amountUsed: 0,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }, {\n amount: 300,\n amountUsed: 0,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }, {\n amount: 300,\n amountUsed: 300,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }];\n\n // =====================\n // errors handling\n // =====================\n test('should return error if prestationList doesn\\'t correspond (!hidden, isCatalog, isComptable)', () => {\n expect.assertions(2);\n try {\n prestationList.hidden = true;\n calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList: {\n ...prestationList,\n isCatalog: true,\n },\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n } catch (error) {\n expect(error).toBeInstanceOf(Error);\n // @ts-ignore\n expect(error.message).toStrictEqual('Ce type de prestation ne correspond pas aux conditions attendues.');\n }\n });\n\n // =====================\n // logical\n // =====================\n // express\n test('if only one express, monthly payments of actual exo should be in parallel of express monthly payments, smoothed in number of remaining months (mini 3 months) (if not in 3 last month)', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [listPartialExercicePrestationExpress[0]],\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const firstExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) < 0)[0].datePayment;\n const firstNonExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) === 0)[0].datePayment;\n expect(dayjs(firstNonExpressDatePayment).diff(firstExpressDatePayment, 'month')).toStrictEqual(0);\n });\n test('if more than one express, monthly payments of actual exo should be in a row of express monthly payments and smoothed, smoothed in number of remaining months after express monthly payments (mini 3 months) (if in 3 last month of exercice)', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const lastExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) < 0).splice(-1)?.[0]?.datePayment;\n const firstNonExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) === 0)?.[0]?.datePayment;\n expect(dayjs(firstNonExpressDatePayment).diff(lastExpressDatePayment, 'month')).toStrictEqual(1);\n });\n // non express\n test('should return a number of payments equal to nb of remaining months in exercice (if not in 3 last months)', async () => {\n const mockedDate = dayjs('2024-05-15').toDate();\n MockDate.set(mockedDate);\n \n const nbMonthDelay = 6;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n // const listNonExpressPayments = payments.filter(p => p.closingDate === newFirstExerciceNonExpresssEndDate);\n const listNonExpressPayments = payments.filter(p => dayjs(p.closingDate).diff(newFirstExerciceNonExpresssEndDate) === 0);\n expect(listNonExpressPayments.length).toStrictEqual(1 + nbMonthDelay); //On ajoute 1 pour les frais de dossier\n \n MockDate.reset();\n });\n test('should return a number of payments equal to 3 (if in 3 last month of exercice)', async () => {\n const nbMonthDelay = 1;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const listNonExpressPayments = payments.filter(p => dayjs(p.closingDate).diff(newFirstExerciceNonExpresssEndDate) === 0);\n expect(listNonExpressPayments.length).toStrictEqual(1 + 3); //On ajoute 1 pour les frais de dossier\n });\n test('should (yearlyAmountNonExpress - sum of listRegulations) / count of monthly payments be equal to monthly payment amount (if not in 3 last month)', async () => {\n const mockedDate = dayjs('2024-05-15').toDate();\n MockDate.set(mockedDate);\n \n const nbMonthDelay = 6;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n const newListRegulations = [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation];\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: newListRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n \n const diff = getTaxesIncludedAmount(yearlyAmountNonExpress, idVat) - newListRegulations.reduce((acc, r:IRegulation) => acc + r.amount - r.amountUsed, 0);\n const amount = Math.round(100 * diff / nbMonthDelay) / 100;\n\n expect(payments[1].amount).toStrictEqual(amount);\n \n MockDate.reset();\n });\n test('should (totalAmount - firstPaymentAmount) / 3 be equal to monthly payment amount (if in 3 last month of exercice)', async () => {\n const nbMonthDelay = 1;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n const newListRegulations = [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation];\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: newListRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const diff = getTaxesIncludedAmount(yearlyAmountNonExpress, idVat) - newListRegulations.reduce((acc, r:IRegulation) => acc + r.amount - r.amountUsed, 0);\n const amount = Math.round(100 * diff / 3) / 100;\n\n expect(payments[1].amount).toStrictEqual(amount);\n });\n // annual price increase\n test('should apply annual price increase (2,75%) if signed before last 3 months of civil year', async () => {\n const mockedDate = dayjs('2024-08-15').toDate();\n MockDate.set(mockedDate);\n\n const newFirstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate();\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const listNonExpressPayments = payments.filter(p => dayjs(p.closingDate).diff(newFirstExerciceNonExpresssEndDate) === 0);\n const firstPaymentWithTaxRateForced = listNonExpressPayments[1].amount * 1.0275;\n expect(firstPaymentWithTaxRateForced - listNonExpressPayments.splice(-2)[0].amount).toBeLessThanOrEqual(0.01); //Permet de gérer le pb d'arrondi\n\n MockDate.reset();\n });\n test('should not apply annual price increase (2,75%) if signed in last 3 months of civil year', async () => {\n const mockedDate = dayjs('2024-11-15').toDate();\n MockDate.set(mockedDate);\n \n const newFirstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate();\n \n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n \n const listNonExpressPayments = payments.filter(p => dayjs(p.datePayment).diff(dayjs('2025-06-01')) === 0);\n expect(listNonExpressPayments[0].amount).toStrictEqual(listNonExpressPayments.splice(-2)[0].amount);\n \n MockDate.reset();\n });\n\n test('should apply 14,9€ HT increase for the second exercice created (only offered on first exo) (no rules for 3 last months)', async () => {\n const mockedDate = dayjs('2024-06-15').toDate();\n MockDate.set(mockedDate);\n \n const newFirstExerciceNonExpresssEndDate = dayjs().add(12, 'month').endOf('month').toDate();\n \n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 50,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const paymentsOfFirstExo = payments.filter(p => dayjs(p.datePayment).diff(dayjs('2025-06-01')) === 0)[0].amount ?? 0;\n const paymentsOfSecondExo = payments.filter(p => dayjs(p.datePayment).diff(dayjs('2025-07-01')) === 0).splice(-1)[0].amount ?? 0;\n expect(Math.round(100 * (paymentsOfFirstExo + getTaxesIncludedAmount(appCost, idVat) * 1.0275)) / 100).toStrictEqual(paymentsOfSecondExo);\n \n MockDate.reset();\n });\n \n // misc\n test('should payments been generated sorted by exercices start date', async () => {\n const listPartialExercicePrestationExpressCloned = [...listPartialExercicePrestationExpress];\n listPartialExercicePrestationExpressCloned[0] = { \n ...listPartialExercicePrestationExpress[0],\n startDate: dayjs().add(1, 'year').startOf('month').toDate(), \n };\n listPartialExercicePrestationExpressCloned[1] = { \n ...listPartialExercicePrestationExpress[1],\n startDate: dayjs().startOf('month').toDate(), \n };\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: listPartialExercicePrestationExpressCloned,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(4);\n expect(dayjs(payments[payments.length - 1].datePayment).diff(dayjs(payments?.[0]?.datePayment), 'month')).toBeGreaterThan(0);\n });\n test('if regulations are bigger than sum exercice prestation amounts, should pass some exercice payments', async () => {\n const mockedDate = dayjs('2024-03-15').toDate();\n MockDate.set(mockedDate);\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations: [{\n amount: 2000,\n amountUsed: 0,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(2);\n expect(payments[0]).toMatchObject(\n {\n amount: 1320, // 1200 * 1,1\n idPrestation: 1,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n });\n expect(payments[1]).toMatchObject(\n {\n amount: 680, // 2000 - (1200 * 1,1)\n idPrestation: 1,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n });\n MockDate.reset();\n });\n test('should not consider actual month if signed in last 3 days of month', async () => {\n const mockedDate = dayjs('2024-03-29').toDate();\n MockDate.set(mockedDate);\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(4);\n expect(payments?.[1]?.datePayment).toStrictEqual(dayjs().add(2, 'month').startOf('month').toDate());\n MockDate.reset();\n });\n test('last payment returned should be last of a year (12/XX)', async () => {\n const mockedDate = dayjs('2024-03-29').toDate();\n MockDate.set(mockedDate);\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(4);\n expect(dayjs(payments[payments.length - 1].datePayment).month()).toStrictEqual(11);\n });\n test('first payment and last payment should have at least one year difference (ex. : 23 - 24)', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(dayjs(payments.slice(-1)?.[0]?.datePayment).diff(dayjs(payments?.[0]?.datePayment), 'year', true)).toBeGreaterThan(1);\n });\n test('real case : idSociety 114440', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(), \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat: Vat.TX_20.id,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 1006.8,\n amountUsed: 0,\n date: dayjs('2024-06-06').toDate(), \n processed: false,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }],\n yearlyAmountNonExpress: 1433, nextYearlyAmountNonExpress: 1433 });\n expect(dayjs(payments.slice(-1)?.[0]?.datePayment).diff(dayjs(payments?.[0]?.datePayment), 'year', true)).toBeGreaterThan(1);\n });\n });\n});"]}
1
+ {"version":3,"file":"payment.spec.js","sourceRoot":"","sources":["../../../../ts/utils/tests/payment.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+BAA+B;AAC/B,uCAAyG;AACzG,uCAAgC;AAEhC,wCAAmD;AAGnD,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;QACjC,MAAM,YAAY,GAAG,CAAC,CAAC;QACvB,MAAM,SAAS,GAAG,CAAC,CAAC;QACpB,MAAM,sBAAsB,GAAG,IAAI,CAAC;QACpC,MAAM,0BAA0B,GAAG,IAAI,CAAC;QACxC,MAAM,OAAO,GAAG,IAAI,CAAC;QAErB,MAAM,+BAA+B,GAAG,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;QACzF,MAAM,cAAc,GAAG;YACrB,EAAE,EAAE,EAAE;YACN,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,KAAK;YACf,aAAa,EAAE,KAAK;YACpB,aAAa,EAAE,IAAI;YACnB,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,IAAI;YAClB,KAAK,EAAE,IAAI;YACX,SAAS,EAAE,KAAK;YAChB,WAAW,EAAE,KAAK;YAClB,MAAM,EAAE,KAAK;YACb,eAAe,EAAE,KAAK;YACtB,iBAAiB,EAAE,eAAe;YAClC,aAAa,EAAE,CAAC;SACjB,CAAC;QACF,MAAM,KAAK,GAAG,WAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3B,MAAM,oCAAoC,GAAsC;YAC9E;gBACE,SAAS,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC,EAA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C,CAAC;QACH,IAAI,CAAC,8BAA8B,EAAE,GAAS,EAAE;;YAC9C,MAAM,QAAQ,GAAG,IAAA,+BAAqB,EAAC;gBACrC,WAAW,EAAE,CAAC;gBACd,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE;gBACxC,+BAA+B,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE;gBAC7D,YAAY;gBACZ,qBAAqB,EAAE,IAAI;gBAC3B,WAAW,EAAE,yBAAiB,CAAC,IAAI;gBACnC,cAAc;gBACd,KAAK,EAAE,WAAG,CAAC,KAAK,CAAC,EAAE;gBACnB,oCAAoC,EAAE,EAAE;gBACxC,eAAe,EAAE,CAAC;wBAChB,MAAM,EAAE,MAAM;wBACd,UAAU,EAAE,CAAC;wBACb,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE;wBAClC,SAAS,EAAE,KAAK;wBAChB,eAAe,EAAE,qBAAa,CAAC,SAAS,CAAC,EAAE;wBAC3C,SAAS;qBACV,CAAC;gBACF,sBAAsB,EAAE,IAAI,EAAE,0BAA0B,EAAE,IAAI;aAAE,CAAC,CAAC;YACpE,MAAM,CAAC,KAAK,CAAC,MAAA,MAAA,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,0CAAG,CAAC,CAAC,0CAAE,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,0CAAE,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QAC/H,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { IRegulation, Vat, PaymentMethod, LegalFormTypeEnum, getTaxesIncludedAmount } from '../../types';\nimport MockDate from 'mockdate';\n\nimport { calculatePaymentsAuto } from '../payment';\nimport { PartialExercicePrestationExpress } from '../../types/Interface/api/payment/Util';\n\ndescribe('Payment', () => {\n describe('calculatePayments', () => {\n const idPrestation = 1;\n const idSociety = 1;\n const yearlyAmountNonExpress = 1800;\n const nextYearlyAmountNonExpress = 1800;\n const appCost = 14.9;\n\n const firstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate(); \n const prestationList = {\n id: 34,\n name: 'Compta Pro',\n isComptable: true,\n isJuridique: false,\n isSocial: false,\n isAttestation: false,\n inAverageCart: true,\n isBack: false,\n minimumPrice: null,\n price: null,\n isCatalog: false,\n isPlannable: false,\n hidden: false,\n isComplementary: false,\n signaturePosition: '400,54,569,90',\n signaturePage: 7,\n };\n const idVat = Vat.TX_10.id;\n const listPartialExercicePrestationExpress:PartialExercicePrestationExpress[] = [\n {\n startDate: dayjs().subtract(2, 'year').startOf('month').toDate(), \n endDate: dayjs().subtract(13, 'month').endOf('month').toDate(), \n countExpressMonthlyPayment: 2,\n totalAmount: 1200,\n },\n {\n startDate: dayjs().subtract(1, 'year').startOf('month').toDate(), \n endDate: dayjs().subtract(1, 'month').endOf('month').toDate(), \n countExpressMonthlyPayment: 2,\n totalAmount: 1800,\n },\n ];\n const listRegulations:IRegulation[] = [{\n amount: 600,\n amountUsed: 0,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }, {\n amount: 300,\n amountUsed: 0,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }, {\n amount: 300,\n amountUsed: 300,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }];\n\n // =====================\n // errors handling\n // =====================\n test('should return error if prestationList doesn\\'t correspond (!hidden, isCatalog, isComptable)', () => {\n expect.assertions(2);\n try {\n prestationList.hidden = true;\n calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList: {\n ...prestationList,\n isCatalog: true,\n },\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n } catch (error) {\n expect(error).toBeInstanceOf(Error);\n // @ts-ignore\n expect(error.message).toStrictEqual('Ce type de prestation ne correspond pas aux conditions attendues.');\n }\n });\n\n // =====================\n // logical\n // =====================\n // express\n test('if only one express, monthly payments of actual exo should be in parallel of express monthly payments, smoothed in number of remaining months (mini 3 months) (if not in 3 last month)', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [listPartialExercicePrestationExpress[0]],\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const firstExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) < 0)[0].datePayment;\n const firstNonExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) === 0)[0].datePayment;\n expect(dayjs(firstNonExpressDatePayment).diff(firstExpressDatePayment, 'month')).toStrictEqual(0);\n });\n test('if more than one express, monthly payments of actual exo should be in a row of express monthly payments and smoothed, smoothed in number of remaining months after express monthly payments (mini 3 months) (if in 3 last month of exercice)', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const lastExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) < 0).splice(-1)?.[0]?.datePayment;\n const firstNonExpressDatePayment = payments.filter(p => dayjs(p.closingDate).diff(firstExerciceNonExpresssEndDate) === 0)?.[0]?.datePayment;\n expect(dayjs(firstNonExpressDatePayment).diff(lastExpressDatePayment, 'month')).toStrictEqual(1);\n });\n // non express\n test('should return a number of payments equal to nb of remaining months in exercice (if not in 3 last months)', async () => {\n const mockedDate = dayjs('2024-05-15').toDate();\n MockDate.set(mockedDate);\n \n const nbMonthDelay = 6;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n // const listNonExpressPayments = payments.filter(p => p.closingDate === newFirstExerciceNonExpresssEndDate);\n const listNonExpressPayments = payments.filter(p => dayjs(p.closingDate).diff(newFirstExerciceNonExpresssEndDate) === 0);\n expect(listNonExpressPayments.length).toStrictEqual(1 + nbMonthDelay); //On ajoute 1 pour les frais de dossier\n \n MockDate.reset();\n });\n test('should return a number of payments equal to 3 (if in 3 last month of exercice)', async () => {\n const nbMonthDelay = 1;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const listNonExpressPayments = payments.filter(p => dayjs(p.closingDate).diff(newFirstExerciceNonExpresssEndDate) === 0);\n expect(listNonExpressPayments.length).toStrictEqual(1 + 3); //On ajoute 1 pour les frais de dossier\n });\n test('should (yearlyAmountNonExpress - sum of listRegulations) / count of monthly payments be equal to monthly payment amount (if not in 3 last month)', async () => {\n const mockedDate = dayjs('2024-05-15').toDate();\n MockDate.set(mockedDate);\n \n const nbMonthDelay = 6;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n const newListRegulations = [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation];\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: newListRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n \n const diff = getTaxesIncludedAmount(yearlyAmountNonExpress, idVat) - newListRegulations.reduce((acc, r:IRegulation) => acc + r.amount - r.amountUsed, 0);\n const amount = Math.round(100 * diff / nbMonthDelay) / 100;\n\n expect(payments[1].amount).toStrictEqual(amount);\n \n MockDate.reset();\n });\n test('should (totalAmount - firstPaymentAmount) / 3 be equal to monthly payment amount (if in 3 last month of exercice)', async () => {\n const nbMonthDelay = 1;\n const newFirstExerciceNonExpresssEndDate = dayjs().add(nbMonthDelay, 'month').endOf('month').toDate();\n const newListRegulations = [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation];\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: newListRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const diff = getTaxesIncludedAmount(yearlyAmountNonExpress, idVat) - newListRegulations.reduce((acc, r:IRegulation) => acc + r.amount - r.amountUsed, 0);\n const amount = Math.round(100 * diff / 3) / 100;\n\n expect(payments[1].amount).toStrictEqual(amount);\n });\n // annual price increase\n test('should apply annual price increase (2,75%) if signed before last 3 months of civil year', async () => {\n const mockedDate = dayjs('2024-08-15').toDate();\n MockDate.set(mockedDate);\n\n const newFirstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate();\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const listNonExpressPayments = payments.filter(p => dayjs(p.closingDate).diff(newFirstExerciceNonExpresssEndDate) === 0);\n const firstPaymentWithTaxRateForced = listNonExpressPayments[1].amount * 1.0275;\n expect(firstPaymentWithTaxRateForced - listNonExpressPayments.splice(-2)[0].amount).toBeLessThanOrEqual(0.01); //Permet de gérer le pb d'arrondi\n\n MockDate.reset();\n });\n test('should not apply annual price increase (2,75%) if signed in last 3 months of civil year', async () => {\n const mockedDate = dayjs('2024-11-15').toDate();\n MockDate.set(mockedDate);\n \n const newFirstExerciceNonExpresssEndDate = dayjs().add(11, 'month').endOf('month').toDate();\n \n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 0,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n \n const listNonExpressPayments = payments.filter(p => dayjs(p.datePayment).diff(dayjs('2025-06-01')) === 0);\n expect(listNonExpressPayments[0].amount).toStrictEqual(listNonExpressPayments.splice(-2)[0].amount);\n \n MockDate.reset();\n });\n\n test('should apply 14,9€ HT increase for the second exercice created (only offered on first exo) (no rules for 3 last months)', async () => {\n const mockedDate = dayjs('2024-06-15').toDate();\n MockDate.set(mockedDate);\n \n const newFirstExerciceNonExpresssEndDate = dayjs().add(12, 'month').endOf('month').toDate();\n \n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 50,\n amountUsed: 50,\n } as IRegulation],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n\n const paymentsOfFirstExo = payments.filter(p => dayjs(p.datePayment).diff(dayjs('2025-06-01')) === 0)[0].amount ?? 0;\n const paymentsOfSecondExo = payments.filter(p => dayjs(p.datePayment).diff(dayjs('2025-07-01')) === 0).splice(-1)[0].amount ?? 0;\n expect(Math.round(100 * (paymentsOfFirstExo + getTaxesIncludedAmount(appCost, idVat) * 1.0275)) / 100).toStrictEqual(paymentsOfSecondExo);\n \n MockDate.reset();\n });\n \n // misc\n test('should payments been generated sorted by exercices start date', async () => {\n const listPartialExercicePrestationExpressCloned = [...listPartialExercicePrestationExpress];\n listPartialExercicePrestationExpressCloned[0] = { \n ...listPartialExercicePrestationExpress[0],\n startDate: dayjs().add(1, 'year').startOf('month').toDate(), \n };\n listPartialExercicePrestationExpressCloned[1] = { \n ...listPartialExercicePrestationExpress[1],\n startDate: dayjs().startOf('month').toDate(), \n };\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: listPartialExercicePrestationExpressCloned,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(4);\n expect(dayjs(payments[payments.length - 1].datePayment).diff(dayjs(payments?.[0]?.datePayment), 'month')).toBeGreaterThan(0);\n });\n test('if regulations are bigger than sum exercice prestation amounts, should pass some exercice payments', async () => {\n const mockedDate = dayjs('2024-03-15').toDate();\n MockDate.set(mockedDate);\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations: [{\n amount: 2000,\n amountUsed: 0,\n date: new Date(),\n processed: true,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }],\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(2);\n expect(payments[0]).toMatchObject(\n {\n amount: 1320, // 1200 * 1,1\n idPrestation: 1,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n });\n expect(payments[1]).toMatchObject(\n {\n amount: 680, // 2000 - (1200 * 1,1)\n idPrestation: 1,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n });\n MockDate.reset();\n });\n test('should not consider actual month if signed in last 3 days of month', async () => {\n const mockedDate = dayjs('2024-03-29').toDate();\n MockDate.set(mockedDate);\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: false,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(4);\n expect(payments?.[1]?.datePayment).toStrictEqual(dayjs().add(2, 'month').startOf('month').toDate());\n MockDate.reset();\n });\n test('last payment returned should be last of a year (12/XX)', async () => {\n const mockedDate = dayjs('2024-03-29').toDate();\n MockDate.set(mockedDate);\n\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress,\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(payments.length).toBeGreaterThanOrEqual(4);\n expect(dayjs(payments[payments.length - 1].datePayment).month()).toStrictEqual(11);\n });\n test('first payment and last payment should have at least one year difference (ex. : 23 - 24)', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate, \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat,\n listPartialExercicePrestationExpress: [],\n listRegulations,\n yearlyAmountNonExpress,\n nextYearlyAmountNonExpress });\n expect(dayjs(payments.slice(-1)?.[0]?.datePayment).diff(dayjs(payments?.[0]?.datePayment), 'year', true)).toBeGreaterThan(1);\n });\n test('real case : idSociety 114440', async () => {\n const payments = calculatePaymentsAuto({ \n idTypeBrand: 1,\n goToClient: dayjs('2024-06-06').toDate(),\n firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(), \n idPrestation,\n isWithApplicationFees: true,\n idLegalForm: LegalFormTypeEnum.SARL,\n prestationList,\n idVat: Vat.TX_20.id,\n listPartialExercicePrestationExpress: [],\n listRegulations: [{\n amount: 1006.8,\n amountUsed: 0,\n date: dayjs('2024-06-06').toDate(), \n processed: false,\n idPaymentMethod: PaymentMethod.BANK_CARD.id,\n idSociety,\n }],\n yearlyAmountNonExpress: 1433, nextYearlyAmountNonExpress: 1433 });\n expect(dayjs(payments.slice(-1)?.[0]?.datePayment).diff(dayjs(payments?.[0]?.datePayment), 'year', true)).toBeGreaterThan(1);\n });\n });\n});"]}
@@ -2,6 +2,5 @@ import { Resource } from '../Resource';
2
2
  import { CreateCustomerAcceptance, ICustomerAcceptance } from '../../types';
3
3
  export declare class Acceptance extends Resource {
4
4
  create(payload: CreateCustomerAcceptance): Promise<ICustomerAcceptance>;
5
- getAll(params: Partial<ICustomerAcceptance>): Promise<ICustomerAcceptance[]>;
6
5
  }
7
6
  //# sourceMappingURL=Acceptance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Acceptance.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIvE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAG7E"}
1
+ {"version":3,"file":"Acceptance.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAGxE"}
@@ -3,8 +3,5 @@ export class Acceptance extends Resource {
3
3
  create(payload) {
4
4
  return this.axios.$post('/customers-acceptances', payload);
5
5
  }
6
- getAll(params) {
7
- return this.axios.$get('/customers-acceptances', { params });
8
- }
9
6
  }
10
7
  //# sourceMappingURL=Acceptance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Acceptance.js","sourceRoot":"","sources":["../../../../ts/api/resources/Acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,OAAiC;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,CAAC,MAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateCustomerAcceptance, ICustomerAcceptance } from '../../types';\n\nexport class Acceptance extends Resource {\n create(payload: CreateCustomerAcceptance): Promise<ICustomerAcceptance> {\n return this.axios.$post('/customers-acceptances', payload);\n }\n\n getAll(params: Partial<ICustomerAcceptance>): Promise<ICustomerAcceptance[]> {\n return this.axios.$get('/customers-acceptances', { params });\n }\n}\n"]}
1
+ {"version":3,"file":"Acceptance.js","sourceRoot":"","sources":["../../../../ts/api/resources/Acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,MAAM,CAAC,OAAiC;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateCustomerAcceptance, ICustomerAcceptance } from '../../types';\n\nexport class Acceptance extends Resource {\n create(payload: CreateCustomerAcceptance): Promise<ICustomerAcceptance> {\n return this.axios.$post('/customers-acceptances', payload);\n }\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  import { Resource } from '../Resource';
2
- import { BasePaginate, CreateAccountingFileFromFile, IAccountingFile, QueryAccountingFiles, QueryAccountingFilesV2, QueryPaginatedAccountingFile, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile } from '../../types';
2
+ import { BasePaginate, CreateAccountingFileFromFile, IAccountingFile, QueryAccountingFiles, QueryAccountingFilesV2, QueryTransaction, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile } from '../../types';
3
3
  export declare class AccountingFiles extends Resource {
4
4
  accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[]>;
5
5
  createFromFile(idSociety: number, idFile: number, params: CreateAccountingFileFromFile): Promise<IAccountingFile>;
6
6
  createCashBasedAccountingFiles(params: QueryAccountingFilesV2): Promise<IAccountingFile[]>;
7
7
  createAccrualAccountingFile(params: QueryAccountingFilesV2): Promise<ReadFormattedAccountingTransaction[]>;
8
8
  delete(id: number): Promise<true>;
9
- getPaginated(idSociety: number, params: QueryPaginatedAccountingFile): Promise<BasePaginate<IAccountingFile>>;
9
+ getPaginated(idSociety: number, params: QueryTransaction): Promise<BasePaginate<IAccountingFile>>;
10
10
  update(id: number, payload: Partial<IAccountingFile>): Promise<ReadUpdateAccouningFile>;
11
11
  }
12
12
  //# sourceMappingURL=AccountingFiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccountingFiles.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/A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AAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,MAAoC;QAClE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,CAAC,EAAS,EAAE,OAAiC;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate, CreateAccountingFileFromFile, IAccountingFile, QueryAccountingFiles, QueryAccountingFilesV2, QueryPaginatedAccountingFile, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile,\n} from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[] > {\n const sendAccountingFiles = new FormData();\n\n sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());\n sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());\n sendAccountingFiles.append('split', params.split.toString());\n sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());\n if (params.emissionDate) {\n sendAccountingFiles.append('emissionDate', params.emissionDate.toString());\n }\n\n if (params.withSocketReturn) {\n sendAccountingFiles.append('withSocketReturn', params.withSocketReturn.toString());\n }\n\n\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n \n return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n createFromFile(idSociety: number, idFile: number, params: CreateAccountingFileFromFile): Promise<IAccountingFile> {\n return this.axios.$post(`societies/${idSociety}/files/${idFile}/accountingFiles`, params);\n }\n\n createCashBasedAccountingFiles(params: QueryAccountingFilesV2) : Promise<IAccountingFile[]> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else \n formData.append(key, `${value}`);\n }\n });\n \n return this.axios.$post(`/societies/${params.idSociety}/accounting-files`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n createAccrualAccountingFile(params: QueryAccountingFilesV2) : Promise<ReadFormattedAccountingTransaction[]> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else \n formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${params.idSociety}/accounting-files`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/accounting-files/${id}`);\n }\n\n getPaginated(idSociety: number, params: QueryPaginatedAccountingFile): Promise<BasePaginate<IAccountingFile>> {\n return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });\n }\n\n update(id:number, payload: Partial<IAccountingFile>): Promise<ReadUpdateAccouningFile> {\n return this.axios.$put(`/accounting-files/${id}`, payload);\n }\n}"]}
1
+ {"version":3,"file":"AccountingFiles.js","sourceRoot":"","sources":["../../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAA4B;QACzC,MAAM,mBAAmB,GAAG,IAAI,QAAQ,EAAE,CAAC;QAE3C,mBAAmB,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnF,mBAAmB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM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f,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,MAAwB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,CAAC,EAAS,EAAE,OAAiC;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate, CreateAccountingFileFromFile, IAccountingFile, QueryAccountingFiles, QueryAccountingFilesV2, QueryTransaction, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile,\n} from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[] > {\n const sendAccountingFiles = new FormData();\n\n sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());\n sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());\n sendAccountingFiles.append('split', params.split.toString());\n sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());\n if (params.emissionDate) {\n sendAccountingFiles.append('emissionDate', params.emissionDate.toString());\n }\n\n if (params.withSocketReturn) {\n sendAccountingFiles.append('withSocketReturn', params.withSocketReturn.toString());\n }\n\n\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n \n return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n createFromFile(idSociety: number, idFile: number, params: CreateAccountingFileFromFile): Promise<IAccountingFile> {\n return this.axios.$post(`societies/${idSociety}/files/${idFile}/accountingFiles`, params);\n }\n\n createCashBasedAccountingFiles(params: QueryAccountingFilesV2) : Promise<IAccountingFile[]> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else \n formData.append(key, `${value}`);\n }\n });\n \n return this.axios.$post(`/societies/${params.idSociety}/accounting-files`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n createAccrualAccountingFile(params: QueryAccountingFilesV2) : Promise<ReadFormattedAccountingTransaction[]> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else \n formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${params.idSociety}/accounting-files`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/accounting-files/${id}`);\n }\n\n getPaginated(idSociety: number, params: QueryTransaction): Promise<BasePaginate<IAccountingFile>> {\n return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });\n }\n\n update(id:number, payload: Partial<IAccountingFile>): Promise<ReadUpdateAccouningFile> {\n return this.axios.$put(`/accounting-files/${id}`, payload);\n }\n}"]}
@@ -1,4 +1,4 @@
1
- import { BasePaginate, CreateBankAccount, IBalanceBankAccount, IBankAccount, QueryBankAccount, QueryTransactionsForComparisonPaginated, ReadBankAccountTransactionsIntermediateSolde, ReadExpiredBankAccount, UpdateBankAccountMerge } from '../../types';
1
+ import { BasePaginate, CreateBankAccount, IBankAccount, QueryBankAccount, QueryTransactionsForComparisonPaginated, ReadBankAccountTransactionsIntermediateSolde, ReadExpiredBankAccount, UpdateBankAccountMerge } from '../../types';
2
2
  import { Resource } from '../Resource';
3
3
  export declare class BankAccount extends Resource {
4
4
  getAll(idSociety: number, params?: QueryBankAccount): Promise<IBankAccount[]>;
@@ -7,7 +7,6 @@ export declare class BankAccount extends Resource {
7
7
  getPaginatedTransactionsWithIntermediateBalance(id: number, params: QueryTransactionsForComparisonPaginated, signal?: AbortSignal): Promise<BasePaginate<ReadBankAccountTransactionsIntermediateSolde>>;
8
8
  getHasDifferenceForLastSevenDays(id: number, params: QueryTransactionsForComparisonPaginated, signal?: AbortSignal): Promise<boolean>;
9
9
  create(idSociety: number, payload: CreateBankAccount): Promise<IBankAccount>;
10
- createBalance(payload: IBalanceBankAccount): Promise<IBalanceBankAccount>;
11
10
  merge(idSociety: number, idBankAccountDest: number, payload: UpdateBankAccountMerge): Promise<true>;
12
11
  }
13
12
  //# sourceMappingURL=BankAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BankAccount.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BankAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,YAAY,EAAE,gBAAgB,EAAE,uCAAuC,EAAE,4CAA4C,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC1P,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,WAAY,SAAQ,QAAQ;IACvC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAI7E,wBAAwB,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAI7D,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIxE,+CAA+C,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,uCAAuC,EAAE,MAAM,CAAC,EAAE,WAAW,GAAI,OAAO,CAAC,YAAY,CAAC,4CAA4C,CAAC,CAAC;IAIxM,gCAAgC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,uCAAuC,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrI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AY,CAAC;IAI5E,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGpG"}
@@ -18,9 +18,6 @@ export class BankAccount extends Resource {
18
18
  create(idSociety, payload) {
19
19
  return this.axios.$post(`societies/${idSociety}/bank-accounts`, payload);
20
20
  }
21
- createBalance(payload) {
22
- return this.axios.$post('bank-accounts/balances', payload);
23
- }
24
21
  merge(idSociety, idBankAccountDest, payload) {
25
22
  return this.axios.$put(`societies/${idSociety}/bank-accounts/${idBankAccountDest}/merge`, payload);
26
23
  }