@silexpert/core 1.3.145 → 1.3.147
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/PaymentExpectationCustomer.d.ts +2 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js +3 -0
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/cjs/api/resources/prestation.d.ts +0 -7
- package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/prestation.js +0 -9
- package/dist/cjs/api/resources/prestation.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +7 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +29 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +2 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js +3 -0
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/mjs/api/resources/prestation.d.ts +0 -7
- package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/prestation.js +0 -9
- package/dist/mjs/api/resources/prestation.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +7 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +32 -0
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/PaymentExpectationCustomer.ts +5 -0
- package/ts/api/resources/prestation.ts +0 -10
- package/ts/types/Interface/api/stripe/Create.ts +22 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelToken } from 'axios';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
|
-
import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer, CreateTapToPayIntent, CreateTapToPayConnectionToken } from '../../types';
|
|
3
|
+
import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer, CreateTapToPayIntent, CreateTapToPayConnectionToken, CreatePaymentLocation } from '../../types';
|
|
4
4
|
import Stripe from 'stripe';
|
|
5
5
|
export declare class PaymentExpectationCustomer extends Resource {
|
|
6
6
|
get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
|
|
@@ -15,6 +15,7 @@ export declare class PaymentExpectationCustomer extends Resource {
|
|
|
15
15
|
/**
|
|
16
16
|
* TAP TO PAY - STRIPE
|
|
17
17
|
*/
|
|
18
|
+
createLocation(body: CreatePaymentLocation): Promise<Stripe.Response<Stripe.Terminal.Location>>;
|
|
18
19
|
getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>>;
|
|
19
20
|
createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken>;
|
|
20
21
|
createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,4CAA4C,EAC5C,YAAY,EACZ,6CAA6C,EAC7C,uCAAuC,EACvC,kCAAkC,EAClC,iDAAiD,EACjD,iBAAiB,EACjB,8BAA8B,EAC9B,oBAAoB,EACpB,6BAA6B,
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,4CAA4C,EAC5C,YAAY,EACZ,6CAA6C,EAC7C,uCAAuC,EACvC,kCAAkC,EAClC,iDAAiD,EACjD,iBAAiB,EACjB,8BAA8B,EAC9B,oBAAoB,EACpB,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,qBAAa,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGrF,YAAY,CACV,MAAM,EAAE,4CAA4C,EACpD,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,C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
|
40
|
+
}
|
|
38
41
|
getAllLocations() {
|
|
39
42
|
return this.axios.$get('/stripe/tap-to-pay/locations');
|
|
40
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":";;;AACA,0CAAuC;
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAqBvC,MAAa,0BAA2B,SAAQ,mBAAQ;IACtD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CACV,MAAoD,EACpD,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,gCAAgC,gDAC9E,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,IACN,CAAC;IACL,CAAC;IACD,KAAK,CAAC,MAAyD;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,sCAAsC,EAAE;YACzF,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IACD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,CAAC,MAA8C;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qCAAqC,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;IACD,MAAM,CAAC,MAAoD;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IACD,MAAM,CAAC,MAAqD;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACnH,CAAC;IACD,MAAM,CAAC,MAA+C;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,MAAM,CAAC,SAAS,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAC7F,CAAC;IAED,IAAI,CAAC,EAAU,EAAE,OAAuC;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0CAA0C,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IAEH,cAAc,CAAC,IAA2B;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACzD,CAAC;IAED,6BAA6B,CAAC,OAAsC;QAClE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED,oBAAoB,CAAC,OAA6B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AA3DD,gEA2DC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer,\n IPaymentExpectationCustomer,\n QueryPayPaymentExpectationCustomer,\n QueryConfirmPaymentExpectationCustomer,\n QueryGetSocietyPaymentsExpectationsCustomers,\n QueryDeleteSocietyPaymentExpectationCustomer,\n BasePaginate,\n UpdateRefundSocietyPaymentExpectationCustomer,\n CreateSocietyPaymentExpectationCustomer,\n ReadPaymentExpectationCustomerStat,\n QueryGetSocietyPaymentsExpectationsCustomersStats,\n ReadPaymentIntent,\n SendPaymentExpectationCustomer,\n CreateTapToPayIntent,\n CreateTapToPayConnectionToken,\n CreatePaymentLocation,\n} from '../../types';\nimport Stripe from 'stripe';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(\n params: QueryGetSocietyPaymentsExpectationsCustomers,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {\n params,\n });\n }\n pay(params: QueryPayPaymentExpectationCustomer): Promise<ReadPaymentIntent | IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(params: QueryDeleteSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`);\n }\n refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`, params);\n }\n create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(`/society/${params.idSociety}/paymentExpectationCustomer`, params);\n }\n\n send(id: number, payload: SendPaymentExpectationCustomer): Promise<true> {\n return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);\n }\n\n /**\n * TAP TO PAY - STRIPE\n */\n\n createLocation(body: CreatePaymentLocation): Promise<Stripe.Response<Stripe.Terminal.Location>> {\n return this.axios.$post('/stripe/tap-to-pay/locations', body);\n }\n\n getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>> {\n return this.axios.$get('/stripe/tap-to-pay/locations');\n }\n\n createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {\n return this.axios.$post('/stripe/tap-to-pay/tokens', payload);\n }\n\n createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {\n return this.axios.$post('/stripe/tap-to-pay/intents', payload);\n }\n}\n"]}
|
|
@@ -15,13 +15,6 @@ export declare class Prestation extends Resource {
|
|
|
15
15
|
* @returns { IPrestation }
|
|
16
16
|
*/
|
|
17
17
|
update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation>;
|
|
18
|
-
/**
|
|
19
|
-
* Supprime une prestation et met à jour les références parentes
|
|
20
|
-
* et supprime les revenuesMovements liés
|
|
21
|
-
* @param { number } idPrestation
|
|
22
|
-
* @returns { true }
|
|
23
|
-
*/
|
|
24
|
-
delete(idPrestation: number): Promise<true>;
|
|
25
18
|
/**
|
|
26
19
|
* retourne toutes les prestations juridique d'une société
|
|
27
20
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,a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EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAQ/C,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAuB5G,wBAAwB,CAC7B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,WAAW,CAAC;CAGxB"}
|
|
@@ -21,15 +21,6 @@ class Prestation extends Resource_1.Resource {
|
|
|
21
21
|
update(idPrestation, params) {
|
|
22
22
|
return this.axios.$put(`/prestation/${idPrestation}`, params);
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Supprime une prestation et met à jour les références parentes
|
|
26
|
-
* et supprime les revenuesMovements liés
|
|
27
|
-
* @param { number } idPrestation
|
|
28
|
-
* @returns { true }
|
|
29
|
-
*/
|
|
30
|
-
delete(idPrestation) {
|
|
31
|
-
return this.axios.$delete(`/prestations/${idPrestation}`);
|
|
32
|
-
}
|
|
33
24
|
/**
|
|
34
25
|
* retourne toutes les prestations juridique d'une société
|
|
35
26
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AACvC,uCAUqB;AAErB,MAAa,UAAW,SAAQ,mBAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IA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,CAAC,CAAC,EAAE,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,EAAE;gBACN,iBAAiB,EAAE;oBACjB,sBAAc,CAAC,UAAU;oBACzB,sBAAc,CAAC,MAAM;oBACrB,sBAAc,CAAC,qBAAqB;oBACpC,sBAAc,CAAC,6BAA6B;oBAC5C,sBAAc,CAAC,sCAAsC;oBACrD,sBAAc,CAAC,8BAA8B;oBAC7C,sBAAc,CAAC,2BAA2B;oBAC1C,sBAAc,CAAC,mBAAmB;oBAClC,sBAAc,CAAC,eAAe;oBAC9B,sBAAc,CAAC,uBAAuB;oBACtC,sBAAc,CAAC,sBAAsB;oBACrC,sBAAc,CAAC,8BAA8B;iBAC9C;aACF,IACD,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA7ED,gCA6EC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
|
|
@@ -74,4 +74,11 @@ export declare class CreatePaymentSession {
|
|
|
74
74
|
stripeAccount?: string;
|
|
75
75
|
idempotencyKey?: string;
|
|
76
76
|
}
|
|
77
|
+
export declare class CreatePaymentLocation {
|
|
78
|
+
name: string;
|
|
79
|
+
address: string;
|
|
80
|
+
city: string;
|
|
81
|
+
zipCode: string;
|
|
82
|
+
idCountry: number;
|
|
83
|
+
}
|
|
77
84
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAGlC,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,+BAA+B;IAG1C,SAAS,EAAE,MAAM,CAAC;IAIlB,aAAa,EAAE,MAAM,CAAC;IAKtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED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EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,oBAAoB;IAM/B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,6BAA6B;IAIxC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,qBAAqB;IAIhC,UAAU,EAAE,OAAO,CAAC;IAIpB,kBAAkB,EAAE,MAAM,CAAC;IAI3B,iBAAiB,EAAE,MAAM,CAAC;IAG1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAI3C,KAAK,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrD;AACD,qBAAa,oBAAoB;IAG/B,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,MAAM,CAAC;IAIlB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAK3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAKlC,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAKnC,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,qBAAqB;IAGhC,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreatePaymentSession = exports.CreatePurchaseSession = exports.CreateTapToPayConnectionToken = exports.CreateTapToPayIntent = exports.PostProcessPaymentAutomatically = exports.UpdatePaymentMethod = exports.CreatePaymentIntent = exports.CreateSubscriptionSessionOffApp = exports.CreateSubscriptionSessionOff = exports.CreateCommercialSession = exports.CreateSubscriptionSession = exports.CreateImportTransactionForSociety = exports.CreateCustomer = exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
|
|
12
|
+
exports.CreatePaymentLocation = exports.CreatePaymentSession = exports.CreatePurchaseSession = exports.CreateTapToPayConnectionToken = exports.CreateTapToPayIntent = exports.PostProcessPaymentAutomatically = exports.UpdatePaymentMethod = exports.CreatePaymentIntent = exports.CreateSubscriptionSessionOffApp = exports.CreateSubscriptionSessionOff = exports.CreateCommercialSession = exports.CreateSubscriptionSession = exports.CreateImportTransactionForSociety = exports.CreateCustomer = exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
|
|
@@ -283,4 +283,32 @@ __decorate([
|
|
|
283
283
|
(0, class_validator_1.IsString)(),
|
|
284
284
|
__metadata("design:type", String)
|
|
285
285
|
], CreatePaymentSession.prototype, "idempotencyKey", void 0);
|
|
286
|
+
class CreatePaymentLocation {
|
|
287
|
+
}
|
|
288
|
+
exports.CreatePaymentLocation = CreatePaymentLocation;
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, utils_1.ApiProperty)(),
|
|
291
|
+
(0, class_validator_1.IsString)(),
|
|
292
|
+
__metadata("design:type", String)
|
|
293
|
+
], CreatePaymentLocation.prototype, "name", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
(0, utils_1.ApiProperty)(),
|
|
296
|
+
(0, class_validator_1.IsString)(),
|
|
297
|
+
__metadata("design:type", String)
|
|
298
|
+
], CreatePaymentLocation.prototype, "address", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
(0, utils_1.ApiProperty)(),
|
|
301
|
+
(0, class_validator_1.IsString)(),
|
|
302
|
+
__metadata("design:type", String)
|
|
303
|
+
], CreatePaymentLocation.prototype, "city", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, utils_1.ApiProperty)(),
|
|
306
|
+
(0, class_validator_1.IsString)(),
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], CreatePaymentLocation.prototype, "zipCode", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
(0, utils_1.ApiProperty)(),
|
|
311
|
+
(0, class_validator_1.IsInt)(),
|
|
312
|
+
__metadata("design:type", Number)
|
|
313
|
+
], CreatePaymentLocation.prototype, "idCountry", void 0);
|
|
286
314
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuH;AACvH,6CAAqE;AAErE,sFAA2E;AAC3E,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6DACc;AAG3B,MAAa,cAAc;CAgB1B;AAhBD,wCAgBC;AAbC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0CACG;AAIX;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;;gDACO;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;;iDACQ;AAGrB,MAA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ADC,IAAA,2BAAmB,GAAE;;uDACqB;AAI3C;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;8BACH,KAAK;oDAAwC;AAEtD,MAAa,oBAAoB;CA0ChC;AA1CD,oDA0CC;AAvCC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;8DACc;AAKzB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;uDACO;AAIlB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;sDAC8B;AAK3C;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sEAC0B;AAKlC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACM;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uEAC2B;AAKnC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAKvB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACa","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffApp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class UpdatePaymentMethod {\n @ApiProperty()\n @IsString()\n stripePaymentMethodId: string;\n\n @ApiProperty()\n metadata: any;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n idempotencyKey?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuH;AACvH,6CAAqE;AAErE,sFAA2E;AAC3E,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6DACc;AAG3B,MAAa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B;CAoBjC;AApBD,sDAoBC;AAjBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;sDACK;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;sDACK;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;wDACU","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffApp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class UpdatePaymentMethod {\n @ApiProperty()\n @IsString()\n stripePaymentMethodId: string;\n\n @ApiProperty()\n metadata: any;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n idempotencyKey?: string;\n}\n\nexport class CreatePaymentLocation {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsString()\n address: string;\n\n @ApiProperty()\n @IsString()\n city: string;\n\n @ApiProperty()\n @IsString()\n zipCode: string;\n\n @ApiProperty()\n @IsInt()\n idCountry: number;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelToken } from 'axios';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
|
-
import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer, CreateTapToPayIntent, CreateTapToPayConnectionToken } from '../../types';
|
|
3
|
+
import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats, ReadPaymentIntent, SendPaymentExpectationCustomer, CreateTapToPayIntent, CreateTapToPayConnectionToken, CreatePaymentLocation } from '../../types';
|
|
4
4
|
import Stripe from 'stripe';
|
|
5
5
|
export declare class PaymentExpectationCustomer extends Resource {
|
|
6
6
|
get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
|
|
@@ -15,6 +15,7 @@ export declare class PaymentExpectationCustomer extends Resource {
|
|
|
15
15
|
/**
|
|
16
16
|
* TAP TO PAY - STRIPE
|
|
17
17
|
*/
|
|
18
|
+
createLocation(body: CreatePaymentLocation): Promise<Stripe.Response<Stripe.Terminal.Location>>;
|
|
18
19
|
getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>>;
|
|
19
20
|
createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken>;
|
|
20
21
|
createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,4CAA4C,EAC5C,YAAY,EACZ,6CAA6C,EAC7C,uCAAuC,EACvC,kCAAkC,EAClC,iDAAiD,EACjD,iBAAiB,EACjB,8BAA8B,EAC9B,oBAAoB,EACpB,6BAA6B,
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,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AC,CAAC;IAI/F,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAIpE,6BAA6B,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IAI/G,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;CAGpG"}
|
|
@@ -36,6 +36,9 @@ export class PaymentExpectationCustomer extends Resource {
|
|
|
36
36
|
/**
|
|
37
37
|
* TAP TO PAY - STRIPE
|
|
38
38
|
*/
|
|
39
|
+
createLocation(body) {
|
|
40
|
+
return this.axios.$post('/stripe/tap-to-pay/locations', body);
|
|
41
|
+
}
|
|
39
42
|
getAllLocations() {
|
|
40
43
|
return this.axios.$get('/stripe/tap-to-pay/locations');
|
|
41
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAqBvC,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CACV,MAAoD,EACpD,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,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ED;;OAEG;IAEH,cAAc,CAAC,IAA2B;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACzD,CAAC;IAED,6BAA6B,CAAC,OAAsC;QAClE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED,oBAAoB,CAAC,OAA6B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer,\n IPaymentExpectationCustomer,\n QueryPayPaymentExpectationCustomer,\n QueryConfirmPaymentExpectationCustomer,\n QueryGetSocietyPaymentsExpectationsCustomers,\n QueryDeleteSocietyPaymentExpectationCustomer,\n BasePaginate,\n UpdateRefundSocietyPaymentExpectationCustomer,\n CreateSocietyPaymentExpectationCustomer,\n ReadPaymentExpectationCustomerStat,\n QueryGetSocietyPaymentsExpectationsCustomersStats,\n ReadPaymentIntent,\n SendPaymentExpectationCustomer,\n CreateTapToPayIntent,\n CreateTapToPayConnectionToken,\n CreatePaymentLocation,\n} from '../../types';\nimport Stripe from 'stripe';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(\n params: QueryGetSocietyPaymentsExpectationsCustomers,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {\n params,\n });\n }\n pay(params: QueryPayPaymentExpectationCustomer): Promise<ReadPaymentIntent | IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(params: QueryDeleteSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`);\n }\n refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`, params);\n }\n create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(`/society/${params.idSociety}/paymentExpectationCustomer`, params);\n }\n\n send(id: number, payload: SendPaymentExpectationCustomer): Promise<true> {\n return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);\n }\n\n /**\n * TAP TO PAY - STRIPE\n */\n\n createLocation(body: CreatePaymentLocation): Promise<Stripe.Response<Stripe.Terminal.Location>> {\n return this.axios.$post('/stripe/tap-to-pay/locations', body);\n }\n\n getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>> {\n return this.axios.$get('/stripe/tap-to-pay/locations');\n }\n\n createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {\n return this.axios.$post('/stripe/tap-to-pay/tokens', payload);\n }\n\n createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {\n return this.axios.$post('/stripe/tap-to-pay/intents', payload);\n }\n}\n"]}
|
|
@@ -15,13 +15,6 @@ export declare class Prestation extends Resource {
|
|
|
15
15
|
* @returns { IPrestation }
|
|
16
16
|
*/
|
|
17
17
|
update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation>;
|
|
18
|
-
/**
|
|
19
|
-
* Supprime une prestation et met à jour les références parentes
|
|
20
|
-
* et supprime les revenuesMovements liés
|
|
21
|
-
* @param { number } idPrestation
|
|
22
|
-
* @returns { true }
|
|
23
|
-
*/
|
|
24
|
-
delete(idPrestation: number): Promise<true>;
|
|
25
18
|
/**
|
|
26
19
|
* retourne toutes les prestations juridique d'une société
|
|
27
20
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,oCAAoC,EACpC,WAAW,EACX,QAAQ,EAER,qBAAqB,EACrB,wCAAwC,EACxC,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlE;;;;;OAKG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF
|
|
1
|
+
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,oCAAoC,EACpC,WAAW,EACX,QAAQ,EAER,qBAAqB,EACrB,wCAAwC,EACxC,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlE;;;;;OAKG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF;;;;OAIG;IACI,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAI5D,mCAAmC,CACxC,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAI3B,iBAAiB,CACtB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,eAAe,EACxB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAQ/C,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAuB5G,wBAAwB,CAC7B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,WAAW,CAAC;CAGxB"}
|
|
@@ -18,15 +18,6 @@ export class Prestation extends Resource {
|
|
|
18
18
|
update(idPrestation, params) {
|
|
19
19
|
return this.axios.$put(`/prestation/${idPrestation}`, params);
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Supprime une prestation et met à jour les références parentes
|
|
23
|
-
* et supprime les revenuesMovements liés
|
|
24
|
-
* @param { number } idPrestation
|
|
25
|
-
* @returns { true }
|
|
26
|
-
*/
|
|
27
|
-
delete(idPrestation) {
|
|
28
|
-
return this.axios.$delete(`/prestations/${idPrestation}`);
|
|
29
|
-
}
|
|
30
21
|
/**
|
|
31
22
|
* retourne toutes les prestations juridique d'une société
|
|
32
23
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAKL,cAAc,GAKf,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAKL,cAAc,GAKf,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACI,wBAAwB,CAAC,EAAU;QACxC,OAAO,IAA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CAAC,8BAA8B;iBAC9C;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
|
|
@@ -74,4 +74,11 @@ export declare class CreatePaymentSession {
|
|
|
74
74
|
stripeAccount?: string;
|
|
75
75
|
idempotencyKey?: string;
|
|
76
76
|
}
|
|
77
|
+
export declare class CreatePaymentLocation {
|
|
78
|
+
name: string;
|
|
79
|
+
address: string;
|
|
80
|
+
city: string;
|
|
81
|
+
zipCode: string;
|
|
82
|
+
idCountry: number;
|
|
83
|
+
}
|
|
77
84
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB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AAC;CACrD;AACD,qBAAa,oBAAoB;IAG/B,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,MAAM,CAAC;IAIlB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAK3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAKlC,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAKnC,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,qBAAqB;IAGhC,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,MAAM,CAAC;IAIhB,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -307,4 +307,36 @@ __decorate([
|
|
|
307
307
|
IsString(),
|
|
308
308
|
__metadata("design:type", String)
|
|
309
309
|
], CreatePaymentSession.prototype, "idempotencyKey", void 0);
|
|
310
|
+
export class CreatePaymentLocation {
|
|
311
|
+
name;
|
|
312
|
+
address;
|
|
313
|
+
city;
|
|
314
|
+
zipCode;
|
|
315
|
+
idCountry;
|
|
316
|
+
}
|
|
317
|
+
__decorate([
|
|
318
|
+
ApiProperty(),
|
|
319
|
+
IsString(),
|
|
320
|
+
__metadata("design:type", String)
|
|
321
|
+
], CreatePaymentLocation.prototype, "name", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
ApiProperty(),
|
|
324
|
+
IsString(),
|
|
325
|
+
__metadata("design:type", String)
|
|
326
|
+
], CreatePaymentLocation.prototype, "address", void 0);
|
|
327
|
+
__decorate([
|
|
328
|
+
ApiProperty(),
|
|
329
|
+
IsString(),
|
|
330
|
+
__metadata("design:type", String)
|
|
331
|
+
], CreatePaymentLocation.prototype, "city", void 0);
|
|
332
|
+
__decorate([
|
|
333
|
+
ApiProperty(),
|
|
334
|
+
IsString(),
|
|
335
|
+
__metadata("design:type", String)
|
|
336
|
+
], CreatePaymentLocation.prototype, "zipCode", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
ApiProperty(),
|
|
339
|
+
IsInt(),
|
|
340
|
+
__metadata("design:type", Number)
|
|
341
|
+
], CreatePaymentLocation.prototype, "idCountry", void 0);
|
|
310
342
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAG3B,MAAM,OAAO,cAAc;IAGzB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,QAAQ,CAAU;IAIlB,SAAS,CAAU;CACpB;AAbC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0CACG;AAIX;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACG;AAId;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;gDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;iDACQ;AAGrB,MAAM,OAAO,iCAAiC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AAE;;gEACe;AAG1B;IADC,mBAAmB,EAAE;;uDACqB;AAI3C;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;8BACH,KAAK;oDAAwC;AAEtD,MAAM,OAAO,oBAAoB;IAG/B,gBAAgB,CAAS;IAKzB,KAAK,CAAU;IAIf,SAAS,CAAS;IAIlB,QAAQ,CAAmC;IAK3C,wBAAwB,CAAU;IAKlC,OAAO,CAAU;IAKjB,yBAAyB,CAAU;IAKnC,aAAa,CAAU;IAKvB,cAAc,CAAU;CACzB;AAvCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;8DACc;AAKzB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACI;AAIf;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;sDAC8B;AAK3C;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;sEAC0B;AAKlC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;uEAC2B;AAKnC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACY;AAKvB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4DACa","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffApp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class UpdatePaymentMethod {\n @ApiProperty()\n @IsString()\n stripePaymentMethodId: string;\n\n @ApiProperty()\n metadata: any;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n idempotencyKey?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAA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;;qDACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;uEAC2B;AAKnC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACY;AAKvB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4DACa;AAG1B,MAAM,OAAO,qBAAqB;IAGhC,IAAI,CAAS;IAIb,OAAO,CAAS;IAIhB,IAAI,CAAS;IAIb,OAAO,CAAS;IAIhB,SAAS,CAAS;CACnB;AAjBC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;mDACE;AAIb;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;sDACK;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;mDACE;AAIb;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;sDACK;AAIhB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;wDACU","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffApp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class UpdatePaymentMethod {\n @ApiProperty()\n @IsString()\n stripePaymentMethodId: string;\n\n @ApiProperty()\n metadata: any;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n idempotencyKey?: string;\n}\n\nexport class CreatePaymentLocation {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsString()\n address: string;\n\n @ApiProperty()\n @IsString()\n city: string;\n\n @ApiProperty()\n @IsString()\n zipCode: string;\n\n @ApiProperty()\n @IsInt()\n idCountry: number;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.147",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
SendPaymentExpectationCustomer,
|
|
17
17
|
CreateTapToPayIntent,
|
|
18
18
|
CreateTapToPayConnectionToken,
|
|
19
|
+
CreatePaymentLocation,
|
|
19
20
|
} from '../../types';
|
|
20
21
|
import Stripe from 'stripe';
|
|
21
22
|
|
|
@@ -63,6 +64,10 @@ export class PaymentExpectationCustomer extends Resource {
|
|
|
63
64
|
* TAP TO PAY - STRIPE
|
|
64
65
|
*/
|
|
65
66
|
|
|
67
|
+
createLocation(body: CreatePaymentLocation): Promise<Stripe.Response<Stripe.Terminal.Location>> {
|
|
68
|
+
return this.axios.$post('/stripe/tap-to-pay/locations', body);
|
|
69
|
+
}
|
|
70
|
+
|
|
66
71
|
getAllLocations(): Promise<Stripe.ApiList<Stripe.Terminal.Location>> {
|
|
67
72
|
return this.axios.$get('/stripe/tap-to-pay/locations');
|
|
68
73
|
}
|
|
@@ -32,16 +32,6 @@ export class Prestation extends Resource {
|
|
|
32
32
|
return this.axios.$put(`/prestation/${idPrestation}`, params);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* Supprime une prestation et met à jour les références parentes
|
|
37
|
-
* et supprime les revenuesMovements liés
|
|
38
|
-
* @param { number } idPrestation
|
|
39
|
-
* @returns { true }
|
|
40
|
-
*/
|
|
41
|
-
public delete(idPrestation: number): Promise<true> {
|
|
42
|
-
return this.axios.$delete(`/prestations/${idPrestation}`);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
35
|
/**
|
|
46
36
|
* retourne toutes les prestations juridique d'une société
|
|
47
37
|
* @param { number } id
|
|
@@ -213,3 +213,25 @@ export class CreatePaymentSession {
|
|
|
213
213
|
@IsString()
|
|
214
214
|
idempotencyKey?: string;
|
|
215
215
|
}
|
|
216
|
+
|
|
217
|
+
export class CreatePaymentLocation {
|
|
218
|
+
@ApiProperty()
|
|
219
|
+
@IsString()
|
|
220
|
+
name: string;
|
|
221
|
+
|
|
222
|
+
@ApiProperty()
|
|
223
|
+
@IsString()
|
|
224
|
+
address: string;
|
|
225
|
+
|
|
226
|
+
@ApiProperty()
|
|
227
|
+
@IsString()
|
|
228
|
+
city: string;
|
|
229
|
+
|
|
230
|
+
@ApiProperty()
|
|
231
|
+
@IsString()
|
|
232
|
+
zipCode: string;
|
|
233
|
+
|
|
234
|
+
@ApiProperty()
|
|
235
|
+
@IsInt()
|
|
236
|
+
idCountry: number;
|
|
237
|
+
}
|