@silexpert/core 1.1.279 → 1.1.281
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/Subscription.d.ts +1 -1
- package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/cjs/api/resources/Subscription.js +2 -2
- package/dist/cjs/api/resources/Subscription.js.map +1 -1
- package/dist/mjs/api/resources/Subscription.d.ts +1 -1
- package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/mjs/api/resources/Subscription.js +2 -2
- package/dist/mjs/api/resources/Subscription.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Subscription.ts +2 -2
|
@@ -4,7 +4,7 @@ import Stripe from 'stripe';
|
|
|
4
4
|
export declare class Subscription extends Resource {
|
|
5
5
|
retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice>;
|
|
6
6
|
getBySociety(idSociety: number): Promise<Stripe.Response<Stripe.Subscription> | null>;
|
|
7
|
-
createSession(idSociety: number,
|
|
7
|
+
createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
8
8
|
createPortalSession(): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=Subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrG,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,qBAAa,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5F,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAIrF,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrG,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,qBAAa,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5F,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAIrF,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAI7G,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;CAG9E"}
|
|
@@ -9,8 +9,8 @@ class Subscription extends Resource_1.Resource {
|
|
|
9
9
|
getBySociety(idSociety) {
|
|
10
10
|
return this.axios.$get(`/societies/${idSociety}/subscriptions`);
|
|
11
11
|
}
|
|
12
|
-
createSession(idSociety,
|
|
13
|
-
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`,
|
|
12
|
+
createSession(idSociety, body) {
|
|
13
|
+
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);
|
|
14
14
|
}
|
|
15
15
|
createPortalSession() {
|
|
16
16
|
return this.axios.$post('/subscriptions/portals');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAIvC,MAAa,YAAa,SAAQ,mBAAQ;IACxC,uBAAuB,CAAC,MAAqC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,aAAa,CAAC,SAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAIvC,MAAa,YAAa,SAAQ,mBAAQ;IACxC,uBAAuB,CAAC,MAAqC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,aAAa,CAAC,SAAiB,EAAE,IAAwB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACpD,CAAC;CACF;AAhBD,oCAgBC","sourcesContent":["import { Resource } from '../Resource';\nimport { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession } from '../../types';\nimport Stripe from 'stripe';\n\nexport class Subscription extends Resource {\n retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {\n return this.axios.$get('/subscription/next-invoice', { params });\n }\n\n getBySociety(idSociety: number): Promise<Stripe.Response<Stripe.Subscription> | null> {\n return this.axios.$get(`/societies/${idSociety}/subscriptions`);\n }\n\n createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);\n }\n\n createPortalSession(): Promise<Stripe.Response<Stripe.BillingPortal.Session>> {\n return this.axios.$post('/subscriptions/portals');\n }\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import Stripe from 'stripe';
|
|
|
4
4
|
export declare class Subscription extends Resource {
|
|
5
5
|
retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice>;
|
|
6
6
|
getBySociety(idSociety: number): Promise<Stripe.Response<Stripe.Subscription> | null>;
|
|
7
|
-
createSession(idSociety: number,
|
|
7
|
+
createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
8
8
|
createPortalSession(): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=Subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrG,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,qBAAa,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5F,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAIrF,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrG,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,qBAAa,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5F,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAIrF,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAI7G,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;CAG9E"}
|
|
@@ -6,8 +6,8 @@ export class Subscription extends Resource {
|
|
|
6
6
|
getBySociety(idSociety) {
|
|
7
7
|
return this.axios.$get(`/societies/${idSociety}/subscriptions`);
|
|
8
8
|
}
|
|
9
|
-
createSession(idSociety,
|
|
10
|
-
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`,
|
|
9
|
+
createSession(idSociety, body) {
|
|
10
|
+
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);
|
|
11
11
|
}
|
|
12
12
|
createPortalSession() {
|
|
13
13
|
return this.axios.$post('/subscriptions/portals');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAqC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,aAAa,CAAC,SAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,uBAAuB,CAAC,MAAqC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,gBAAgB,CAAC,CAAC;IAClE,CAAC;IAED,aAAa,CAAC,SAAiB,EAAE,IAAwB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACpD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice, QueryStripeSession } from '../../types';\nimport Stripe from 'stripe';\n\nexport class Subscription extends Resource {\n retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {\n return this.axios.$get('/subscription/next-invoice', { params });\n }\n\n getBySociety(idSociety: number): Promise<Stripe.Response<Stripe.Subscription> | null> {\n return this.axios.$get(`/societies/${idSociety}/subscriptions`);\n }\n\n createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);\n }\n\n createPortalSession(): Promise<Stripe.Response<Stripe.BillingPortal.Session>> {\n return this.axios.$post('/subscriptions/portals');\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.281",
|
|
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",
|
|
@@ -11,8 +11,8 @@ export class Subscription extends Resource {
|
|
|
11
11
|
return this.axios.$get(`/societies/${idSociety}/subscriptions`);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
createSession(idSociety: number,
|
|
15
|
-
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`,
|
|
14
|
+
createSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {
|
|
15
|
+
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
createPortalSession(): Promise<Stripe.Response<Stripe.BillingPortal.Session>> {
|