@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.
- package/dist/cjs/api/resources/Authenticate.d.ts +6 -0
- package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/cjs/api/resources/Authenticate.js +8 -0
- package/dist/cjs/api/resources/Authenticate.js.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectation.d.ts +16 -1
- package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectation.js +20 -0
- package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/cjs/api/resources/Rating.d.ts +2 -2
- package/dist/cjs/api/resources/Rating.d.ts.map +1 -1
- package/dist/cjs/api/resources/Rating.js.map +1 -1
- package/dist/cjs/api/resources/Revision.d.ts +3 -1
- package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revision.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +2 -1
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +3 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/Subscription.d.ts +23 -6
- package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/cjs/api/resources/Subscription.js +28 -8
- package/dist/cjs/api/resources/Subscription.js.map +1 -1
- package/dist/cjs/api/resources/prestation.d.ts +3 -1
- package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/prestation.js.map +1 -1
- package/dist/cjs/types/Enum/Feature.d.ts +41 -0
- package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Feature.js +65 -0
- package/dist/cjs/types/Enum/Feature.js.map +1 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts +13 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +183 -1
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts +27 -0
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +88 -28
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
- package/dist/cjs/types/Enum/PriceGridLegalstart.js +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js +118 -0
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -13
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +9 -3
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +15 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/State.d.ts +7 -0
- package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/State.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +22 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +74 -3
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +5 -8
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/IRegistration.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/brands.js +1 -1
- package/dist/cjs/utils/brands.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +2 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +11 -1
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/Authenticate.d.ts +6 -0
- package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/mjs/api/resources/Authenticate.js +6 -0
- package/dist/mjs/api/resources/Authenticate.js.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectation.d.ts +16 -1
- package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectation.js +20 -0
- package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/mjs/api/resources/Rating.d.ts +2 -2
- package/dist/mjs/api/resources/Rating.d.ts.map +1 -1
- package/dist/mjs/api/resources/Rating.js.map +1 -1
- package/dist/mjs/api/resources/Revision.d.ts +3 -1
- package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revision.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +2 -1
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +3 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/Subscription.d.ts +23 -6
- package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/mjs/api/resources/Subscription.js +28 -8
- package/dist/mjs/api/resources/Subscription.js.map +1 -1
- package/dist/mjs/api/resources/prestation.d.ts +3 -1
- package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/prestation.js.map +1 -1
- package/dist/mjs/types/Enum/Feature.d.ts +41 -0
- package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Feature.js +62 -0
- package/dist/mjs/types/Enum/Feature.js.map +1 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts +13 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +182 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts +27 -0
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +88 -28
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
- package/dist/mjs/types/Enum/PriceGridLegalstart.js +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js +119 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -13
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +11 -4
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +18 -2
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/State.d.ts +7 -0
- package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/State.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +22 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +82 -3
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +4 -8
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/IRegistration.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/brands.js +1 -1
- package/dist/mjs/utils/brands.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +2 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +11 -2
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +2 -2
- package/ts/api/resources/Authenticate.ts +7 -0
- package/ts/api/resources/PaymentExpectation.ts +27 -0
- package/ts/api/resources/Rating.ts +1 -2
- package/ts/api/resources/Revision.ts +1 -1
- package/ts/api/resources/Society.ts +5 -0
- package/ts/api/resources/Subscription.ts +35 -18
- package/ts/api/resources/prestation.ts +1 -1
- package/ts/types/Enum/Feature.ts +68 -0
- package/ts/types/Enum/PrestationType.ts +186 -0
- package/ts/types/Enum/PriceGridClementine.ts +88 -28
- package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
- package/ts/types/Enum/SalesContractBrandClementine.ts +119 -1
- package/ts/types/Interface/api/cerfa/2031.ts +1 -0
- package/ts/types/Interface/api/cerfa/2035.ts +6 -1
- package/ts/types/Interface/api/cerfa/2065.ts +1 -0
- package/ts/types/Interface/api/cerfa/2069RCI.ts +1 -0
- package/ts/types/Interface/api/cerfa/2571.ts +1 -0
- package/ts/types/Interface/api/cerfa/2572.ts +1 -0
- package/ts/types/Interface/api/cerfa/2573.ts +1 -0
- package/ts/types/Interface/api/config/ConfigType.ts +0 -16
- package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +9 -4
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +15 -3
- package/ts/types/Interface/api/society/State.ts +8 -0
- package/ts/types/Interface/api/stripe/Create.ts +59 -4
- package/ts/types/Interface/api/stripe/QueryStripe.ts +3 -5
- package/ts/types/Interface/models/IPayment.ts +2 -0
- package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
- package/ts/types/Interface/models/IRegistration.ts +2 -0
- package/ts/types/Interface/models/IUser.ts +1 -0
- package/ts/types/index.ts +1 -1
- package/ts/utils/brands.ts +1 -1
- package/ts/utils/prestation.ts +15 -1
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.js +0 -3
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.js +0 -2
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
- 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
|
-
|
|
14
|
-
|
|
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
|
|
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
|
}
|
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';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -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 ||
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -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 {
|
|
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 +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 +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 +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 +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"]}
|