@silexpert/core 1.3.37 → 1.3.39

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 (258) hide show
  1. package/dist/cjs/api/resources/Authenticate.d.ts +6 -0
  2. package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Authenticate.js +8 -0
  4. package/dist/cjs/api/resources/Authenticate.js.map +1 -1
  5. package/dist/cjs/api/resources/PaymentExpectation.d.ts +16 -1
  6. package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/PaymentExpectation.js +20 -0
  8. package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
  9. package/dist/cjs/api/resources/Rating.d.ts +2 -2
  10. package/dist/cjs/api/resources/Rating.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Rating.js.map +1 -1
  12. package/dist/cjs/api/resources/Revision.d.ts +3 -1
  13. package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/Revision.js.map +1 -1
  15. package/dist/cjs/api/resources/Society.d.ts +2 -1
  16. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  17. package/dist/cjs/api/resources/Society.js +3 -0
  18. package/dist/cjs/api/resources/Society.js.map +1 -1
  19. package/dist/cjs/api/resources/Subscription.d.ts +23 -6
  20. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  21. package/dist/cjs/api/resources/Subscription.js +28 -8
  22. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  23. package/dist/cjs/api/resources/prestation.d.ts +3 -1
  24. package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
  25. package/dist/cjs/api/resources/prestation.js.map +1 -1
  26. package/dist/cjs/types/Enum/Feature.d.ts +41 -0
  27. package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
  28. package/dist/cjs/types/Enum/Feature.js +65 -0
  29. package/dist/cjs/types/Enum/Feature.js.map +1 -0
  30. package/dist/cjs/types/Enum/PrestationType.d.ts +13 -1
  31. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  32. package/dist/cjs/types/Enum/PrestationType.js +183 -1
  33. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  34. package/dist/cjs/types/Enum/PriceGridClementine.d.ts +27 -0
  35. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  36. package/dist/cjs/types/Enum/PriceGridClementine.js +88 -28
  37. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  38. package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
  39. package/dist/cjs/types/Enum/PriceGridLegalstart.js +1 -1
  40. package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
  41. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  42. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +118 -0
  43. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +1 -0
  45. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  46. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  47. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +1 -0
  48. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  49. package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
  50. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +1 -0
  51. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  52. package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
  53. package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
  54. package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
  56. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -0
  57. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  58. package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
  59. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -0
  60. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  61. package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
  62. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +1 -0
  63. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  64. package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
  65. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -13
  66. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  67. package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
  68. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  69. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  70. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +9 -3
  71. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  72. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  73. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  74. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +15 -1
  75. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  76. package/dist/cjs/types/Interface/api/society/State.d.ts +7 -0
  77. package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -1
  78. package/dist/cjs/types/Interface/api/society/State.js.map +1 -1
  79. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +22 -1
  80. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  81. package/dist/cjs/types/Interface/api/stripe/Create.js +74 -3
  82. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  83. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
  84. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  85. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +5 -8
  86. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  87. package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
  88. package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
  89. package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
  90. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  91. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  92. package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  93. package/dist/cjs/types/Interface/models/IRegistration.d.ts +2 -0
  94. package/dist/cjs/types/Interface/models/IRegistration.d.ts.map +1 -1
  95. package/dist/cjs/types/Interface/models/IRegistration.js.map +1 -1
  96. package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
  97. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  98. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  99. package/dist/cjs/types/index.d.ts +1 -1
  100. package/dist/cjs/types/index.d.ts.map +1 -1
  101. package/dist/cjs/types/index.js +1 -1
  102. package/dist/cjs/types/index.js.map +1 -1
  103. package/dist/cjs/utils/brands.js +1 -1
  104. package/dist/cjs/utils/brands.js.map +1 -1
  105. package/dist/cjs/utils/prestation.d.ts +2 -1
  106. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  107. package/dist/cjs/utils/prestation.js +11 -1
  108. package/dist/cjs/utils/prestation.js.map +1 -1
  109. package/dist/mjs/api/resources/Authenticate.d.ts +6 -0
  110. package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
  111. package/dist/mjs/api/resources/Authenticate.js +6 -0
  112. package/dist/mjs/api/resources/Authenticate.js.map +1 -1
  113. package/dist/mjs/api/resources/PaymentExpectation.d.ts +16 -1
  114. package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  115. package/dist/mjs/api/resources/PaymentExpectation.js +20 -0
  116. package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
  117. package/dist/mjs/api/resources/Rating.d.ts +2 -2
  118. package/dist/mjs/api/resources/Rating.d.ts.map +1 -1
  119. package/dist/mjs/api/resources/Rating.js.map +1 -1
  120. package/dist/mjs/api/resources/Revision.d.ts +3 -1
  121. package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
  122. package/dist/mjs/api/resources/Revision.js.map +1 -1
  123. package/dist/mjs/api/resources/Society.d.ts +2 -1
  124. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  125. package/dist/mjs/api/resources/Society.js +3 -0
  126. package/dist/mjs/api/resources/Society.js.map +1 -1
  127. package/dist/mjs/api/resources/Subscription.d.ts +23 -6
  128. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  129. package/dist/mjs/api/resources/Subscription.js +28 -8
  130. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  131. package/dist/mjs/api/resources/prestation.d.ts +3 -1
  132. package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
  133. package/dist/mjs/api/resources/prestation.js.map +1 -1
  134. package/dist/mjs/types/Enum/Feature.d.ts +41 -0
  135. package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
  136. package/dist/mjs/types/Enum/Feature.js +62 -0
  137. package/dist/mjs/types/Enum/Feature.js.map +1 -0
  138. package/dist/mjs/types/Enum/PrestationType.d.ts +13 -1
  139. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  140. package/dist/mjs/types/Enum/PrestationType.js +182 -0
  141. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  142. package/dist/mjs/types/Enum/PriceGridClementine.d.ts +27 -0
  143. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  144. package/dist/mjs/types/Enum/PriceGridClementine.js +88 -28
  145. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  146. package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
  147. package/dist/mjs/types/Enum/PriceGridLegalstart.js +1 -1
  148. package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
  149. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  150. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +119 -1
  151. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  152. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +1 -0
  153. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  154. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  155. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +1 -0
  156. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  157. package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
  158. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +1 -0
  159. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  160. package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
  161. package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
  162. package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
  163. package/dist/mjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
  164. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -0
  165. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  166. package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
  167. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -0
  168. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  169. package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
  170. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +1 -0
  171. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  172. package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
  173. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -13
  174. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  175. package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
  176. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  177. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  178. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +11 -4
  179. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  180. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  181. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  182. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +18 -2
  183. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  184. package/dist/mjs/types/Interface/api/society/State.d.ts +7 -0
  185. package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -1
  186. package/dist/mjs/types/Interface/api/society/State.js.map +1 -1
  187. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +22 -1
  188. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  189. package/dist/mjs/types/Interface/api/stripe/Create.js +82 -3
  190. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  191. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
  192. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  193. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +4 -8
  194. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  195. package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
  196. package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
  197. package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
  198. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  199. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  200. package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  201. package/dist/mjs/types/Interface/models/IRegistration.d.ts +2 -0
  202. package/dist/mjs/types/Interface/models/IRegistration.d.ts.map +1 -1
  203. package/dist/mjs/types/Interface/models/IRegistration.js.map +1 -1
  204. package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
  205. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  206. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  207. package/dist/mjs/types/index.d.ts +1 -1
  208. package/dist/mjs/types/index.d.ts.map +1 -1
  209. package/dist/mjs/types/index.js +1 -1
  210. package/dist/mjs/types/index.js.map +1 -1
  211. package/dist/mjs/utils/brands.js +1 -1
  212. package/dist/mjs/utils/brands.js.map +1 -1
  213. package/dist/mjs/utils/prestation.d.ts +2 -1
  214. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  215. package/dist/mjs/utils/prestation.js +11 -2
  216. package/dist/mjs/utils/prestation.js.map +1 -1
  217. package/package.json +2 -2
  218. package/ts/api/resources/Authenticate.ts +7 -0
  219. package/ts/api/resources/PaymentExpectation.ts +27 -0
  220. package/ts/api/resources/Rating.ts +1 -2
  221. package/ts/api/resources/Revision.ts +1 -1
  222. package/ts/api/resources/Society.ts +5 -0
  223. package/ts/api/resources/Subscription.ts +35 -18
  224. package/ts/api/resources/prestation.ts +1 -1
  225. package/ts/types/Enum/Feature.ts +68 -0
  226. package/ts/types/Enum/PrestationType.ts +186 -0
  227. package/ts/types/Enum/PriceGridClementine.ts +88 -28
  228. package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
  229. package/ts/types/Enum/SalesContractBrandClementine.ts +119 -1
  230. package/ts/types/Interface/api/cerfa/2031.ts +1 -0
  231. package/ts/types/Interface/api/cerfa/2035.ts +6 -1
  232. package/ts/types/Interface/api/cerfa/2065.ts +1 -0
  233. package/ts/types/Interface/api/cerfa/2069RCI.ts +1 -0
  234. package/ts/types/Interface/api/cerfa/2571.ts +1 -0
  235. package/ts/types/Interface/api/cerfa/2572.ts +1 -0
  236. package/ts/types/Interface/api/cerfa/2573.ts +1 -0
  237. package/ts/types/Interface/api/config/ConfigType.ts +0 -16
  238. package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +9 -4
  239. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +15 -3
  240. package/ts/types/Interface/api/society/State.ts +8 -0
  241. package/ts/types/Interface/api/stripe/Create.ts +59 -4
  242. package/ts/types/Interface/api/stripe/QueryStripe.ts +3 -5
  243. package/ts/types/Interface/models/IPayment.ts +2 -0
  244. package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
  245. package/ts/types/Interface/models/IRegistration.ts +2 -0
  246. package/ts/types/Interface/models/IUser.ts +1 -0
  247. package/ts/types/index.ts +1 -1
  248. package/ts/utils/brands.ts +1 -1
  249. package/ts/utils/prestation.ts +15 -1
  250. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  251. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  252. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js +0 -3
  253. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  254. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  255. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  256. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js +0 -2
  257. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  258. package/ts/types/Interface/api/stripe/ReadStripe.ts +0 -4
@@ -1,6 +1,6 @@
1
- import { IsDate, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
-
3
+ import type Stripe from 'stripe';
4
4
  export class CreateStripeConnection {
5
5
  @ApiProperty()
6
6
  @IsString()
@@ -8,10 +8,27 @@ export class CreateStripeConnection {
8
8
  }
9
9
 
10
10
  export class CreateStripePortals {
11
+ @ApiProperty()
12
+ @IsString()
13
+ stripeCustomerId: string;
14
+ }
15
+
16
+ export class CreateCustomer {
17
+ @ApiProperty()
18
+ @IsInt()
19
+ id: number;
20
+
21
+ @ApiProperty()
22
+ @IsString()
23
+ email: string;
24
+
11
25
  @ApiPropertyOptional()
12
26
  @IsString()
13
- @IsOptional()
14
- stripeCustomerId?: string;
27
+ lastname?: string;
28
+
29
+ @ApiPropertyOptional()
30
+ @IsString()
31
+ firstname?: string;
15
32
  }
16
33
 
17
34
  export class CreateImportTransactionForSociety {
@@ -25,3 +42,41 @@ export class CreateImportTransactionForSociety {
25
42
  @IsOptional()
26
43
  endDate?: Date;
27
44
  }
45
+
46
+ export class CreateSubscriptionSession {
47
+ @ApiProperty()
48
+ @IsString()
49
+ priceId: string;
50
+ }
51
+
52
+ export class CreateSubscriptionSessionOff {
53
+ @ApiProperty()
54
+ @IsString()
55
+ stripeCustomerId: string;
56
+
57
+ @ApiProperty()
58
+ @IsString()
59
+ ref: string;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsString()
64
+ returnUrl?: string;
65
+ }
66
+
67
+ export class CreatePaymentIntent {
68
+ @ApiProperty()
69
+ @IsString()
70
+ stripeCustomerId: string;
71
+
72
+ @ApiProperty()
73
+ @IsString()
74
+ paymentMethodId: string;
75
+
76
+ @ApiProperty()
77
+ @IsInt()
78
+ amountInCents: number;
79
+
80
+ @ApiPropertyOptional()
81
+ metadata?: Stripe.MetadataParam;
82
+ }
@@ -1,13 +1,11 @@
1
- import { IsBoolean, IsOptional } from 'class-validator';
1
+ import { IsBoolean, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
- export class RetrieveUpcomingInvoiceParams {
5
+ export class RetrievePaymentMethodsParams {
6
6
  @ApiProperty()
7
+ @IsString()
7
8
  customerId: string;
8
-
9
- @ApiProperty()
10
- subscriptionId: string;
11
9
  }
12
10
 
13
11
  export class QueryStripeSession {
@@ -3,6 +3,7 @@ import { IPaymentMethod } from './IPaymentMethod';
3
3
  import { IUser } from './IUser';
4
4
  import { IExercice } from './IExercice';
5
5
  import { IFile } from './IFile';
6
+ import { IPaymentExpectation } from './IPaymentExpectation';
6
7
 
7
8
  // payments
8
9
  export interface IPayment {
@@ -39,6 +40,7 @@ export interface IPayment {
39
40
  // Associations
40
41
  paymentsPrestations?: IPrestation;
41
42
  paymentsMethod?: IPaymentMethod;
43
+ paymentExpectations?: IPaymentExpectation[];
42
44
  user?: IUser;
43
45
  exercice?: IExercice;
44
46
  files?: IFile;
@@ -15,6 +15,7 @@ export interface IPaymentExpectation {
15
15
  idSociety: number;
16
16
  idRegulation: number | null;
17
17
  idPrestation: number | null;
18
+ idPayment: number | null;
18
19
  idUserNotifyPaiementProceed?: number | null;
19
20
  idUserTaskPaiementProceed?: number | null;
20
21
  createdAt?: Date | null;
@@ -5,6 +5,7 @@ import { ICustomerIsRegime } from './ICustomerIsRegime';
5
5
  import { IUser } from './IUser';
6
6
  import { IAccountingTransaction } from './IAccountingTransaction';
7
7
  import { IRegistrationCertificate } from './IRegistrationCertificate';
8
+ import { ICustomerVat } from './ICustomerVat';
8
9
 
9
10
  export interface IRegistration {
10
11
  id?: number;
@@ -36,4 +37,5 @@ export interface IRegistration {
36
37
  society?: ISociety;
37
38
  file?: IFile;
38
39
  certificates?: IRegistrationCertificate[];
40
+ customerVat?: ICustomerVat | null;
39
41
  }
@@ -39,6 +39,7 @@ export interface IUser {
39
39
  isMigrated?: boolean;
40
40
  username?: string | null;
41
41
  stripeCustomerId?: string | null;
42
+ stripeCustomerIdErp?: string | null;
42
43
  positionLabel?: string | null;
43
44
  sha?: string | null;
44
45
  hash?: string | null;
package/ts/types/index.ts CHANGED
@@ -336,6 +336,7 @@ export * from './Form/FormAuthenticate';
336
336
  export * from './Form/FormConnector';
337
337
 
338
338
  // Enums
339
+ export * from './Enum/Feature';
339
340
  export * from './Enum/AutomaticRegistration';
340
341
  export * from './Enum/IntermediateManagementRebate';
341
342
  export * from './Enum/Das';
@@ -826,7 +827,6 @@ export * from './Interface/api/pappers/CreatePappers';
826
827
  export * from './Interface/api/bankAccount/Query';
827
828
  export * from './Interface/api/bankAccount/Update';
828
829
  export * from './Interface/api/stripe/QueryStripe';
829
- export * from './Interface/api/stripe/ReadStripe';
830
830
  export * from './Interface/api/supervision/Query';
831
831
  export * from './Interface/api/supervision/Read';
832
832
  export * from './Interface/api/salariesFile/ReadSalariesFile';
@@ -180,7 +180,7 @@ type GetBrandParam = {
180
180
 
181
181
  const getBrandNameByNodeEnv = (nodeEnv?: string): BrandList => {
182
182
  const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;
183
- if (env) {
183
+ if (env && env !== 'dev') {
184
184
  if (
185
185
  env.indexOf('legalstart') > -1 ||
186
186
  env.indexOf('Legalstart') > -1 ||
@@ -2,7 +2,11 @@ import { IExercice, IPrestation, IPrestationList } from '../types';
2
2
  import { Vat } from '../types/Enum/Vat';
3
3
  import { getTaxesIncludedAmount } from './vat/utils';
4
4
  import { intersection } from './noLodash';
5
- import { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';
5
+ import {
6
+ ClementineSubscriptionAccountancySoftwarePrestations,
7
+ PrestationDetail,
8
+ PrestationType,
9
+ } from '../types/Enum/PrestationType';
6
10
  import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
7
11
  import { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';
8
12
  import { PriceGridClementine } from '../types/Enum/PriceGridClementine';
@@ -448,6 +452,10 @@ const calculatePrestationPrice = (
448
452
  PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
449
453
  PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
450
454
  PrestationType.STATUTS_OPTION_2,
455
+ PrestationType.EXPERTISE,
456
+ PrestationType.SUPPORT,
457
+ PrestationType.PREMIUM,
458
+ PrestationType.CUSTOM_MADE,
451
459
  ].includes(idPrestationList)
452
460
  ) {
453
461
  let exerciceNbr: number = 0;
@@ -567,6 +575,11 @@ const isAbleToUpdatePrice = (
567
575
  return false;
568
576
  };
569
577
 
578
+ const idPrestationListToOfferType = (idPrestationList: number): 'software' | 'expertise' => {
579
+ if (ClementineSubscriptionAccountancySoftwarePrestations.includes(idPrestationList)) return 'software';
580
+ return 'expertise';
581
+ };
582
+
570
583
  export {
571
584
  isOtherAccountingMissions,
572
585
  isOtherJuridicalMissions,
@@ -585,4 +598,5 @@ export {
585
598
  isAbleToUpdatePrice,
586
599
  calculatePrestationPriceWithPriceGrid,
587
600
  getApplicationFeesAmount,
601
+ idPrestationListToOfferType,
588
602
  };
@@ -1,5 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };
5
- //# sourceMappingURL=ReadStripe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ReadStripe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadUpcomingInvoice = {\n total: number;\n date: Date;\n};\n"]}
@@ -1,5 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };
5
- //# sourceMappingURL=ReadStripe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ReadStripe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadUpcomingInvoice = {\n total: number;\n date: Date;\n};\n"]}
@@ -1,4 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };