@silexpert/core 1.3.150-levy-3 → 1.3.151

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 (65) hide show
  1. package/dist/cjs/api/resources.d.ts +0 -2
  2. package/dist/cjs/api/resources.d.ts.map +1 -1
  3. package/dist/cjs/api/resources.js +0 -2
  4. package/dist/cjs/api/resources.js.map +1 -1
  5. package/dist/cjs/types/Enum/GlobalRegime.d.ts.map +1 -1
  6. package/dist/cjs/types/Enum/GlobalRegime.js +20 -0
  7. package/dist/cjs/types/Enum/GlobalRegime.js.map +1 -1
  8. package/dist/cjs/types/Enum/VisualizedInformation.d.ts +1 -2
  9. package/dist/cjs/types/Enum/VisualizedInformation.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/VisualizedInformation.js +0 -1
  11. package/dist/cjs/types/Enum/VisualizedInformation.js.map +1 -1
  12. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +0 -3
  13. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  14. package/dist/cjs/types/Interface/api/stripe/Create.js +1 -11
  15. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -5
  17. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +1 -20
  19. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  20. package/dist/cjs/utils/brands.d.ts.map +1 -1
  21. package/dist/cjs/utils/brands.js.map +1 -1
  22. package/dist/cjs/utils/vat/centuries.d.ts.map +1 -1
  23. package/dist/cjs/utils/vat/centuries.js +5 -1
  24. package/dist/cjs/utils/vat/centuries.js.map +1 -1
  25. package/dist/mjs/api/resources.d.ts +0 -2
  26. package/dist/mjs/api/resources.d.ts.map +1 -1
  27. package/dist/mjs/api/resources.js +0 -2
  28. package/dist/mjs/api/resources.js.map +1 -1
  29. package/dist/mjs/types/Enum/GlobalRegime.d.ts.map +1 -1
  30. package/dist/mjs/types/Enum/GlobalRegime.js +20 -0
  31. package/dist/mjs/types/Enum/GlobalRegime.js.map +1 -1
  32. package/dist/mjs/types/Enum/VisualizedInformation.d.ts +1 -2
  33. package/dist/mjs/types/Enum/VisualizedInformation.d.ts.map +1 -1
  34. package/dist/mjs/types/Enum/VisualizedInformation.js +0 -1
  35. package/dist/mjs/types/Enum/VisualizedInformation.js.map +1 -1
  36. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +0 -3
  37. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  38. package/dist/mjs/types/Interface/api/stripe/Create.js +0 -10
  39. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  40. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -5
  41. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  42. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +0 -21
  43. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  44. package/dist/mjs/utils/brands.d.ts.map +1 -1
  45. package/dist/mjs/utils/brands.js.map +1 -1
  46. package/dist/mjs/utils/vat/centuries.d.ts.map +1 -1
  47. package/dist/mjs/utils/vat/centuries.js +5 -1
  48. package/dist/mjs/utils/vat/centuries.js.map +1 -1
  49. package/package.json +1 -1
  50. package/ts/api/resources.ts +0 -2
  51. package/ts/types/Enum/GlobalRegime.ts +20 -0
  52. package/ts/types/Enum/VisualizedInformation.ts +0 -1
  53. package/ts/types/Interface/api/stripe/Create.ts +0 -8
  54. package/ts/types/Interface/api/stripe/QueryStripe.ts +0 -15
  55. package/ts/utils/brands.ts +1 -0
  56. package/ts/utils/vat/centuries.ts +7 -1
  57. package/dist/cjs/api/resources/StripeCustomer.d.ts +0 -6
  58. package/dist/cjs/api/resources/StripeCustomer.d.ts.map +0 -1
  59. package/dist/cjs/api/resources/StripeCustomer.js +0 -11
  60. package/dist/cjs/api/resources/StripeCustomer.js.map +0 -1
  61. package/dist/mjs/api/resources/StripeCustomer.d.ts +0 -6
  62. package/dist/mjs/api/resources/StripeCustomer.d.ts.map +0 -1
  63. package/dist/mjs/api/resources/StripeCustomer.js +0 -7
  64. package/dist/mjs/api/resources/StripeCustomer.js.map +0 -1
  65. package/ts/api/resources/StripeCustomer.ts +0 -8
@@ -48,18 +48,3 @@ export class QueryStripePaymentHook {
48
48
  @ToBoolean()
49
49
  isSoftware?: boolean;
50
50
  }
51
-
52
- export class QueryProcessCustomerPaymentMethods {
53
- @ApiProperty({ description: 'Context identifier to link the visualized information' })
54
- @IsString()
55
- context: string;
56
-
57
- @ApiProperty()
58
- @IsBoolean()
59
- @ToBoolean()
60
- isSoftware: boolean;
61
-
62
- @ApiProperty()
63
- @IsNumber()
64
- idUser: number;
65
- }
@@ -245,6 +245,7 @@ function getBrand(params?: GetBrandParam): Brand {
245
245
 
246
246
  return brand;
247
247
  }
248
+
248
249
  /**
249
250
  * @deprecated use getBrand()
250
251
  */
@@ -163,7 +163,13 @@ const vatDocuments: VatDocument[] = [
163
163
 
164
164
  export const getVatCerfaObject = (idCerfaType: CerfaType, endDate: string): VatDocument => {
165
165
  // Suppression du add(1, 'day') suite à une déclaration 3310 31/12 rejetée car millésime trop avancé pour le champ (0C3CE366-26EB-4BBA-AB61-93A606686C9A)
166
- const year = +dayjs(endDate).year();
166
+
167
+ // CA12 => Utiliser le millésime N pour les déclarations dont la date de fin de période CB/DTM >= 31/12/N-1
168
+ // Autre => Utiliser le millésime N pour les déclarations dont la date de fin de période CB/DTM >= 01/01/N
169
+ const year =
170
+ idCerfaType === CerfaType.CERFA_3517 && dayjs(endDate).format('MM-DD') === '12-31'
171
+ ? +dayjs(endDate).year() + 1
172
+ : +dayjs(endDate).year();
167
173
 
168
174
  const cerfa = vatDocuments.find((v) => v.idCerfaType === idCerfaType && v.centuries.find((c) => c === year));
169
175
  if (!cerfa) throw new Error(`Cerfa type #${idCerfaType} with century ${year} is not managed yet.`);
@@ -1,6 +0,0 @@
1
- import { CreateCustomerPaymentMethodPortal } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class StripeCustomer extends Resource {
4
- configurePaymentMethods(payload: CreateCustomerPaymentMethodPortal): Promise<string>;
5
- }
6
- //# sourceMappingURL=StripeCustomer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StripeCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/StripeCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,uBAAuB,CAAC,OAAO,EAAE,iCAAiC,GAAG,OAAO,CAAC,MAAM,CAAC;CAGrF"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StripeCustomer = void 0;
4
- const Resource_1 = require("../Resource");
5
- class StripeCustomer extends Resource_1.Resource {
6
- configurePaymentMethods(payload) {
7
- return this.axios.post('connector/stripe/customers/configure-payment-methods', payload);
8
- }
9
- }
10
- exports.StripeCustomer = StripeCustomer;
11
- //# sourceMappingURL=StripeCustomer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StripeCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/StripeCustomer.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAEvC,MAAa,cAAe,SAAQ,mBAAQ;IAC1C,uBAAuB,CAAC,OAA0C;QAChE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sDAAsD,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;CACF;AAJD,wCAIC","sourcesContent":["import { CreateCustomerPaymentMethodPortal } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class StripeCustomer extends Resource {\n configurePaymentMethods(payload: CreateCustomerPaymentMethodPortal): Promise<string> {\n return this.axios.post('connector/stripe/customers/configure-payment-methods', payload);\n }\n}\n"]}
@@ -1,6 +0,0 @@
1
- import { CreateCustomerPaymentMethodPortal } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class StripeCustomer extends Resource {
4
- configurePaymentMethods(payload: CreateCustomerPaymentMethodPortal): Promise<string>;
5
- }
6
- //# sourceMappingURL=StripeCustomer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StripeCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/StripeCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,uBAAuB,CAAC,OAAO,EAAE,iCAAiC,GAAG,OAAO,CAAC,MAAM,CAAC;CAGrF"}
@@ -1,7 +0,0 @@
1
- import { Resource } from '../Resource';
2
- export class StripeCustomer extends Resource {
3
- configurePaymentMethods(payload) {
4
- return this.axios.post('connector/stripe/customers/configure-payment-methods', payload);
5
- }
6
- }
7
- //# sourceMappingURL=StripeCustomer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StripeCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/StripeCustomer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,cAAe,SAAQ,QAAQ;IAC1C,uBAAuB,CAAC,OAA0C;QAChE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sDAAsD,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;CACF","sourcesContent":["import { CreateCustomerPaymentMethodPortal } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class StripeCustomer extends Resource {\n configurePaymentMethods(payload: CreateCustomerPaymentMethodPortal): Promise<string> {\n return this.axios.post('connector/stripe/customers/configure-payment-methods', payload);\n }\n}\n"]}
@@ -1,8 +0,0 @@
1
- import { CreateCustomerPaymentMethodPortal } from '../../types';
2
- import { Resource } from '../Resource';
3
-
4
- export class StripeCustomer extends Resource {
5
- configurePaymentMethods(payload: CreateCustomerPaymentMethodPortal): Promise<string> {
6
- return this.axios.post('connector/stripe/customers/configure-payment-methods', payload);
7
- }
8
- }