@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.
- package/dist/cjs/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/GlobalRegime.d.ts.map +1 -1
- package/dist/cjs/types/Enum/GlobalRegime.js +20 -0
- package/dist/cjs/types/Enum/GlobalRegime.js.map +1 -1
- package/dist/cjs/types/Enum/VisualizedInformation.d.ts +1 -2
- package/dist/cjs/types/Enum/VisualizedInformation.d.ts.map +1 -1
- package/dist/cjs/types/Enum/VisualizedInformation.js +0 -1
- package/dist/cjs/types/Enum/VisualizedInformation.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +0 -3
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +1 -11
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -5
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +1 -20
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/cjs/utils/brands.d.ts.map +1 -1
- package/dist/cjs/utils/brands.js.map +1 -1
- package/dist/cjs/utils/vat/centuries.d.ts.map +1 -1
- package/dist/cjs/utils/vat/centuries.js +5 -1
- package/dist/cjs/utils/vat/centuries.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/GlobalRegime.d.ts.map +1 -1
- package/dist/mjs/types/Enum/GlobalRegime.js +20 -0
- package/dist/mjs/types/Enum/GlobalRegime.js.map +1 -1
- package/dist/mjs/types/Enum/VisualizedInformation.d.ts +1 -2
- package/dist/mjs/types/Enum/VisualizedInformation.d.ts.map +1 -1
- package/dist/mjs/types/Enum/VisualizedInformation.js +0 -1
- package/dist/mjs/types/Enum/VisualizedInformation.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +0 -3
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +0 -10
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -5
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +0 -21
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/utils/brands.d.ts.map +1 -1
- package/dist/mjs/utils/brands.js.map +1 -1
- package/dist/mjs/utils/vat/centuries.d.ts.map +1 -1
- package/dist/mjs/utils/vat/centuries.js +5 -1
- package/dist/mjs/utils/vat/centuries.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/GlobalRegime.ts +20 -0
- package/ts/types/Enum/VisualizedInformation.ts +0 -1
- package/ts/types/Interface/api/stripe/Create.ts +0 -8
- package/ts/types/Interface/api/stripe/QueryStripe.ts +0 -15
- package/ts/utils/brands.ts +1 -0
- package/ts/utils/vat/centuries.ts +7 -1
- package/dist/cjs/api/resources/StripeCustomer.d.ts +0 -6
- package/dist/cjs/api/resources/StripeCustomer.d.ts.map +0 -1
- package/dist/cjs/api/resources/StripeCustomer.js +0 -11
- package/dist/cjs/api/resources/StripeCustomer.js.map +0 -1
- package/dist/mjs/api/resources/StripeCustomer.d.ts +0 -6
- package/dist/mjs/api/resources/StripeCustomer.d.ts.map +0 -1
- package/dist/mjs/api/resources/StripeCustomer.js +0 -7
- package/dist/mjs/api/resources/StripeCustomer.js.map +0 -1
- 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
|
-
}
|
package/ts/utils/brands.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
}
|