@darraghor/nest-backend-libs 2.18.20 → 2.18.22
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/organisation-subscriptions/organisation-subscriptions.service.d.ts +1 -0
- package/dist/organisation-subscriptions/organisation-subscriptions.service.js +12 -0
- package/dist/organisation-subscriptions/organisation-subscriptions.service.js.map +1 -1
- package/dist/person/person.service.js +3 -1
- package/dist/person/person.service.js.map +1 -1
- package/dist/stripe-client/controllers/stripe-customer-portal-controller.d.ts +3 -3
- package/dist/stripe-client/controllers/stripe-customer-portal-controller.js +7 -10
- package/dist/stripe-client/controllers/stripe-customer-portal-controller.js.map +1 -1
- package/dist/stripe-client/models/StripeCustomerPortalRequestDto.d.ts +4 -0
- package/dist/stripe-client/models/StripeCustomerPortalRequestDto.js +32 -0
- package/dist/stripe-client/models/StripeCustomerPortalRequestDto.js.map +1 -0
- package/dist/stripe-client/models/StripeCustomerPortalResponseDto.d.ts +3 -0
- package/dist/stripe-client/models/StripeCustomerPortalResponseDto.js +22 -0
- package/dist/stripe-client/models/StripeCustomerPortalResponseDto.js.map +1 -0
- package/dist/stripe-client/services/stripe-checkout.service.d.ts +6 -4
- package/dist/stripe-client/services/stripe-checkout.service.js +19 -7
- package/dist/stripe-client/services/stripe-checkout.service.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export declare class OrganisationSubscriptionService {
|
|
|
11
11
|
constructor(orgRepo: Repository<Organisation>, orgSubRepository: Repository<OrganisationSubscriptionRecord>, paymentSessionService: PaymentSessionService);
|
|
12
12
|
private notFoundMessage;
|
|
13
13
|
findAllForOwnerOfOrg(orgUuid: string, currentUserId: number): Promise<OrganisationSubscriptionRecord[]>;
|
|
14
|
+
findOne(subscriptionUuid: string): Promise<OrganisationSubscriptionRecord>;
|
|
14
15
|
findAllForOrg(orgUuid: string): Promise<OrganisationSubscriptionRecord[]>;
|
|
15
16
|
save(subRecordDtoCollection: SaveOrganisationSubscriptionRecordDto[], orgUuid?: string): Promise<OrganisationSubscriptionRecord[]>;
|
|
16
17
|
delete(subUuid: string): Promise<boolean>;
|
|
@@ -53,6 +53,18 @@ let OrganisationSubscriptionService = OrganisationSubscriptionService_1 = class
|
|
|
53
53
|
}
|
|
54
54
|
return org.subscriptionRecords;
|
|
55
55
|
}
|
|
56
|
+
async findOne(subscriptionUuid) {
|
|
57
|
+
// find the org if the user is owner
|
|
58
|
+
const record = await this.orgSubRepository.findOne({
|
|
59
|
+
where: {
|
|
60
|
+
uuid: subscriptionUuid,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
if (!record) {
|
|
64
|
+
throw new common_1.NotFoundException("Subscription not found");
|
|
65
|
+
}
|
|
66
|
+
return record;
|
|
67
|
+
}
|
|
56
68
|
async findAllForOrg(orgUuid) {
|
|
57
69
|
// find the org if the user is owner
|
|
58
70
|
const org = await this.orgRepo.findOne({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organisation-subscriptions.service.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,6CAAiD;AACjD,qCAAmC;AACnC,6DAAoD;AACpD,sFAA0E;AAC1E,yFAAkF;AAClF,kGAA2F;AAIpF,IAAM,+BAA+B,uCAArC,MAAM,+BAA+B;IAI5B;IAEA;IACS;IANJ,MAAM,GAAG,IAAI,eAAM,CAAC,iCAA+B,CAAC,IAAI,CAAC,CAAC;IAC3E,YAEY,OAAiC,EAEjC,gBAA4D,EACnD,qBAA4C;QAHrD,YAAO,GAAP,OAAO,CAA0B;QAEjC,qBAAgB,GAAhB,gBAAgB,CAA4C;QACnD,0BAAqB,GAArB,qBAAqB,CAAuB;IAC9D,CAAC;IACI,eAAe,GACnB,mDAAmD,CAAC;IACxD,KAAK,CAAC,oBAAoB,CACtB,OAAe,EACf,aAAqB;QAErB,oCAAoC;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnC,KAAK,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE;oBACT,QAAQ,EAAE,aAAa;oBACvB,KAAK,EAAE;wBACH,IAAI,EAAE,iBAAK,CAAC,KAAK;qBACpB;iBACJ;aACJ;YACD,SAAS,EAAE;gBACP,mBAAmB,EAAE,IAAI;aAC5B;SACJ,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,EAAE;YACN,MAAM,IAAI,0BAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SACrD;QAED,OAAO,GAAG,CAAC,mBAAmB,CAAC;IACnC,CAAC;
|
|
1
|
+
{"version":3,"file":"organisation-subscriptions.service.js","sourceRoot":"","sources":["../../src/organisation-subscriptions/organisation-subscriptions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,6CAAiD;AACjD,qCAAmC;AACnC,6DAAoD;AACpD,sFAA0E;AAC1E,yFAAkF;AAClF,kGAA2F;AAIpF,IAAM,+BAA+B,uCAArC,MAAM,+BAA+B;IAI5B;IAEA;IACS;IANJ,MAAM,GAAG,IAAI,eAAM,CAAC,iCAA+B,CAAC,IAAI,CAAC,CAAC;IAC3E,YAEY,OAAiC,EAEjC,gBAA4D,EACnD,qBAA4C;QAHrD,YAAO,GAAP,OAAO,CAA0B;QAEjC,qBAAgB,GAAhB,gBAAgB,CAA4C;QACnD,0BAAqB,GAArB,qBAAqB,CAAuB;IAC9D,CAAC;IACI,eAAe,GACnB,mDAAmD,CAAC;IACxD,KAAK,CAAC,oBAAoB,CACtB,OAAe,EACf,aAAqB;QAErB,oCAAoC;QACpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;YACnC,KAAK,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE;oBACT,QAAQ,EAAE,aAAa;oBACvB,KAAK,EAAE;wBACH,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,0BAA0B,CAAC;YACzC,oBAAoB,CAAC,0BAA0B;gBAC3C,SAAS,CAAC,0BAA0B,CAAC;YACzC,oBAAoB,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;YACvD,oBAAoB,CAAC,kBAAkB;gBACnC,SAAS,CAAC,kBAAkB,CAAC;YAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAC3C,oBAAoB,CACvB,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACxB;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe;QACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC;YAC9C,IAAI,EAAE,OAAO;SAChB,CAAC,CAAC;QAEH,OAAO,CACH,MAAM,CAAC,QAAQ,KAAK,SAAS;YAC7B,MAAM,CAAC,QAAQ,KAAK,IAAI;YACxB,MAAM,CAAC,QAAQ,GAAG,CAAC,CACtB,CAAC;IACN,CAAC;CACJ,CAAA;AAvKY,+BAA+B;IAD3C,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,0BAAgB,EAAC,kCAAY,CAAC,CAAA;IAE9B,WAAA,IAAA,0BAAgB,EAAC,iEAA8B,CAAC,CAAA;qCADhC,oBAAU;QAED,oBAAU;QACI,+CAAqB;GAPxD,+BAA+B,CAuK3C;AAvKY,0EAA+B"}
|
|
@@ -38,7 +38,9 @@ let PersonService = PersonService_1 = class PersonService {
|
|
|
38
38
|
// try to find the person and their memberships
|
|
39
39
|
const foundPerson = await this.repository.findOne({
|
|
40
40
|
where: { auth0UserId: payload.sub },
|
|
41
|
-
relations:
|
|
41
|
+
relations: {
|
|
42
|
+
memberships: true,
|
|
43
|
+
},
|
|
42
44
|
});
|
|
43
45
|
// if person already configured then get out of here
|
|
44
46
|
if (foundPerson !== undefined &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.service.js","sourceRoot":"","sources":["../../src/person/person.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,6CAAiD;AACjD,qCAAmC;AAGnC,gEAAgE;AAEhE,wHAA2G;AAC3G,6DAAoD;AACpD,oFAA2E;AAC3E,sFAA0E;AAE1E,4DAAgD;AAGzC,IAAM,aAAa,qBAAnB,MAAM,aAAa;IAIV;IACA;IAJK,MAAM,GAAG,IAAI,eAAM,CAAC,eAAa,CAAC,IAAI,CAAC,CAAC;IACzD,YAEY,UAA8B,EAC9B,WAA+B;QAD/B,eAAU,GAAV,UAAU,CAAoB;QAC9B,gBAAW,GAAX,WAAW,CAAoB;IACxC,CAAC;IAEJ,KAAK,CAAC,YAAY,CACd,OAAoB,EACpB,cAAsB;QAEtB,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1D,CAAC;IAED,KAAK,CAAC,YAAY,CACd,OAAoB,EACpB,cAAsB;QAEtB,+CAA+C;QAC/C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC9C,KAAK,EAAE,EAAC,WAAW,EAAE,OAAO,CAAC,GAAG,EAAC;YACjC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"person.service.js","sourceRoot":"","sources":["../../src/person/person.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,6CAAiD;AACjD,qCAAmC;AAGnC,gEAAgE;AAEhE,wHAA2G;AAC3G,6DAAoD;AACpD,oFAA2E;AAC3E,sFAA0E;AAE1E,4DAAgD;AAGzC,IAAM,aAAa,qBAAnB,MAAM,aAAa;IAIV;IACA;IAJK,MAAM,GAAG,IAAI,eAAM,CAAC,eAAa,CAAC,IAAI,CAAC,CAAC;IACzD,YAEY,UAA8B,EAC9B,WAA+B;QAD/B,eAAU,GAAV,UAAU,CAAoB;QAC9B,gBAAW,GAAX,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KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,eAAuB;QAC9C,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,CAAC;QAEnD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;YAC7C,KAAK,EAAE;gBACH,IAAI;aACP;YACD,SAAS,EAAE;gBACP,WAAW,EAAE;oBACT,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC,CAAC;QACH,IACI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACxB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,iBAAK,CAAC,KAAK,CAAC,CAC9C,EACH;YACE,MAAM,IAAI,KAAK,CACX,sEAAsE,CACzE,CAAC;SACL;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAEO,YAAY,CAChB,IAAY,EACZ,eAAuB,EACvB,eAAuB;QAEvB,IAAI,IAAI,KAAK,eAAe,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,eAAe,eAAe,EAAE;gBAC7D,eAAe;gBACf,IAAI;aACP,CAAC,CAAC;YACH,MAAM,IAAI,0BAAiB,EAAE,CAAC;SACjC;IACL,CAAC;CACJ,CAAA;AA/LY,aAAa;IADzB,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,0BAAgB,EAAC,sBAAM,CAAC,CAAA;qCACL,oBAAU;QACT,kCAAkB;GALlC,aAAa,CA+LzB;AA/LY,sCAAa"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RequestWithUser } from "../../authz/RequestWithUser";
|
|
2
2
|
import { StripeCheckoutService } from "./../services/stripe-checkout.service";
|
|
3
|
+
import { StripeCustomerPortalResponseDto } from "../models/StripeCustomerPortalResponseDto";
|
|
4
|
+
import { StripeCustomerPortalRequestDto } from "../models/StripeCustomerPortalRequestDto";
|
|
3
5
|
export declare class StripeCustomerPortalController {
|
|
4
6
|
private readonly stripeService;
|
|
5
7
|
constructor(stripeService: StripeCheckoutService);
|
|
6
|
-
createCustomerPortalSession(request: RequestWithUser): Promise<
|
|
7
|
-
url: string;
|
|
8
|
-
}>;
|
|
8
|
+
createCustomerPortalSession(request: RequestWithUser, body: StripeCustomerPortalRequestDto): Promise<StripeCustomerPortalResponseDto>;
|
|
9
9
|
}
|
|
@@ -17,20 +17,16 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const passport_1 = require("@nestjs/passport");
|
|
18
18
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
19
|
const stripe_checkout_service_1 = require("./../services/stripe-checkout.service");
|
|
20
|
-
const
|
|
20
|
+
const StripeCustomerPortalResponseDto_1 = require("../models/StripeCustomerPortalResponseDto");
|
|
21
|
+
const StripeCustomerPortalRequestDto_1 = require("../models/StripeCustomerPortalRequestDto");
|
|
21
22
|
let StripeCustomerPortalController = class StripeCustomerPortalController {
|
|
22
23
|
stripeService;
|
|
23
24
|
constructor(stripeService) {
|
|
24
25
|
this.stripeService = stripeService;
|
|
25
26
|
}
|
|
26
27
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
27
|
-
async createCustomerPortalSession(request) {
|
|
28
|
-
|
|
29
|
-
user: request.user,
|
|
30
|
-
});
|
|
31
|
-
return {
|
|
32
|
-
url: result,
|
|
33
|
-
};
|
|
28
|
+
async createCustomerPortalSession(request, body) {
|
|
29
|
+
return await this.stripeService.createCustomerPortalSession(body, request.user);
|
|
34
30
|
}
|
|
35
31
|
};
|
|
36
32
|
__decorate([
|
|
@@ -38,14 +34,15 @@ __decorate([
|
|
|
38
34
|
(0, swagger_1.ApiBearerAuth)(),
|
|
39
35
|
(0, common_1.Post)("customer-portal-session"),
|
|
40
36
|
(0, swagger_1.ApiOkResponse)({
|
|
41
|
-
type:
|
|
37
|
+
type: StripeCustomerPortalResponseDto_1.StripeCustomerPortalResponseDto,
|
|
42
38
|
description: "The URL to the customer portal",
|
|
43
39
|
})
|
|
44
40
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45
41
|
,
|
|
46
42
|
__param(0, (0, common_1.Request)()),
|
|
43
|
+
__param(1, (0, common_1.Body)()),
|
|
47
44
|
__metadata("design:type", Function),
|
|
48
|
-
__metadata("design:paramtypes", [Object]),
|
|
45
|
+
__metadata("design:paramtypes", [Object, StripeCustomerPortalRequestDto_1.StripeCustomerPortalRequestDto]),
|
|
49
46
|
__metadata("design:returntype", Promise)
|
|
50
47
|
], StripeCustomerPortalController.prototype, "createCustomerPortalSession", null);
|
|
51
48
|
StripeCustomerPortalController = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-customer-portal-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-customer-portal-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"stripe-customer-portal-controller.js","sourceRoot":"","sources":["../../../src/stripe-client/controllers/stripe-customer-portal-controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0E;AAC1E,+CAA2C;AAC3C,6CAAsE;AAEtE,mFAA4E;AAC5E,+FAA0F;AAC1F,6FAAwF;AAIjF,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IACV;IAA7B,YAA6B,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;IAAG,CAAC;IAU/D,AADN,6DAA6D;IAC7D,KAAK,CAAC,2BAA2B,CAClB,OAAwB,EAC3B,IAAoC;QAE5C,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,2BAA2B,CACvD,IAAI,EACJ,OAAO,CAAC,IAAI,CACf,CAAC;IACN,CAAC;CACJ,CAAA;AATS;IARL,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC3B,IAAA,uBAAa,GAAE;IACf,IAAA,aAAI,EAAC,yBAAyB,CAAC;IAC/B,IAAA,uBAAa,EAAC;QACX,IAAI,EAAE,iEAA+B;QACrC,WAAW,EAAE,gCAAgC;KAChD,CAAC;IACF,6DAA6D;;IAExD,WAAA,IAAA,gBAAO,GAAE,CAAA;IACT,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,+DAA8B;;iFAM/C;AAnBQ,8BAA8B;IAF1C,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,UAAU,CAAC;qCAE4B,+CAAqB;GADxD,8BAA8B,CAoB1C;AApBY,wEAA8B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StripeCustomerPortalRequestDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class StripeCustomerPortalRequestDto {
|
|
16
|
+
subscriptionRecordUuid;
|
|
17
|
+
returnUrl;
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsDefined)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], StripeCustomerPortalRequestDto.prototype, "subscriptionRecordUuid", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsDefined)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], StripeCustomerPortalRequestDto.prototype, "returnUrl", void 0);
|
|
31
|
+
exports.StripeCustomerPortalRequestDto = StripeCustomerPortalRequestDto;
|
|
32
|
+
//# sourceMappingURL=StripeCustomerPortalRequestDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StripeCustomerPortalRequestDto.js","sourceRoot":"","sources":["../../../src/stripe-client/models/StripeCustomerPortalRequestDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,qDAAoD;AAEpD,MAAa,8BAA8B;IAIhC,sBAAsB,CAAU;IAKhC,SAAS,CAAU;CAC7B;AATG;IAAC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,GAAE;;8EAC2B;AAEvC;IAAC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,GAAE;;iEACc;AAT9B,wEAUC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StripeCustomerPortalResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class StripeCustomerPortalResponseDto {
|
|
15
|
+
sessionUrl;
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], StripeCustomerPortalResponseDto.prototype, "sessionUrl", void 0);
|
|
21
|
+
exports.StripeCustomerPortalResponseDto = StripeCustomerPortalResponseDto;
|
|
22
|
+
//# sourceMappingURL=StripeCustomerPortalResponseDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StripeCustomerPortalResponseDto.js","sourceRoot":"","sources":["../../../src/stripe-client/models/StripeCustomerPortalResponseDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAE5C,MAAa,+BAA+B;IAEjC,UAAU,CAAU;CAC9B;AAFG;IAAC,IAAA,qBAAW,GAAE;;mEACa;AAF/B,0EAGC"}
|
|
@@ -4,15 +4,17 @@ import { StripeCheckoutSessionRequestDto } from "../models/StripeCheckoutSession
|
|
|
4
4
|
import { StripeCheckoutSessionResponseDto } from "../models/StripeCheckoutSessionResponseDto";
|
|
5
5
|
import { StripeClientConfigurationService } from "../StripeClientConfigurationService";
|
|
6
6
|
import { PaymentSessionService } from "../../payment-sessions/payment-session.service";
|
|
7
|
+
import { OrganisationSubscriptionService } from "../../organisation-subscriptions";
|
|
8
|
+
import { StripeCustomerPortalResponseDto } from "../models/StripeCustomerPortalResponseDto";
|
|
9
|
+
import { StripeCustomerPortalRequestDto } from "../models/StripeCustomerPortalRequestDto";
|
|
7
10
|
export declare class StripeCheckoutService {
|
|
8
11
|
private readonly clientInstance;
|
|
9
12
|
private readonly stripeClientConfigurationService;
|
|
10
13
|
private readonly paymentSessionService;
|
|
14
|
+
private readonly organisationSubscriptionService;
|
|
11
15
|
private readonly logger;
|
|
12
|
-
constructor(clientInstance: Stripe, stripeClientConfigurationService: StripeClientConfigurationService, paymentSessionService: PaymentSessionService);
|
|
13
|
-
createCustomerPortalSession(parameters:
|
|
14
|
-
user: RequestPerson;
|
|
15
|
-
}): Promise<string>;
|
|
16
|
+
constructor(clientInstance: Stripe, stripeClientConfigurationService: StripeClientConfigurationService, paymentSessionService: PaymentSessionService, organisationSubscriptionService: OrganisationSubscriptionService);
|
|
17
|
+
createCustomerPortalSession(parameters: StripeCustomerPortalRequestDto, user: RequestPerson): Promise<StripeCustomerPortalResponseDto>;
|
|
16
18
|
createAuthenticatedCheckoutSession(parameters: StripeCheckoutSessionRequestDto, user: RequestPerson): Promise<StripeCheckoutSessionResponseDto>;
|
|
17
19
|
createCheckoutSession(parameters: StripeCheckoutSessionRequestDto): Promise<StripeCheckoutSessionResponseDto>;
|
|
18
20
|
private createStripeSession;
|
|
@@ -23,24 +23,35 @@ const stripe_1 = __importDefault(require("stripe"));
|
|
|
23
23
|
const StripeCheckoutSessionResponseDto_1 = require("../models/StripeCheckoutSessionResponseDto");
|
|
24
24
|
const StripeClientConfigurationService_1 = require("../StripeClientConfigurationService");
|
|
25
25
|
const payment_session_service_1 = require("../../payment-sessions/payment-session.service");
|
|
26
|
+
const organisation_subscriptions_1 = require("../../organisation-subscriptions");
|
|
26
27
|
let StripeCheckoutService = StripeCheckoutService_1 = class StripeCheckoutService {
|
|
27
28
|
clientInstance;
|
|
28
29
|
stripeClientConfigurationService;
|
|
29
30
|
paymentSessionService;
|
|
31
|
+
organisationSubscriptionService;
|
|
30
32
|
logger = new common_1.Logger(StripeCheckoutService_1.name);
|
|
31
|
-
constructor(clientInstance, stripeClientConfigurationService, paymentSessionService) {
|
|
33
|
+
constructor(clientInstance, stripeClientConfigurationService, paymentSessionService, organisationSubscriptionService) {
|
|
32
34
|
this.clientInstance = clientInstance;
|
|
33
35
|
this.stripeClientConfigurationService = stripeClientConfigurationService;
|
|
34
36
|
this.paymentSessionService = paymentSessionService;
|
|
37
|
+
this.organisationSubscriptionService = organisationSubscriptionService;
|
|
35
38
|
}
|
|
36
39
|
// must set the org id to the customer id field so we can get this later
|
|
37
|
-
async createCustomerPortalSession(parameters) {
|
|
38
|
-
|
|
40
|
+
async createCustomerPortalSession(parameters, user) {
|
|
41
|
+
// is the user a member of the organisation with the subscription record
|
|
42
|
+
const subscriptionRecord = await this.organisationSubscriptionService.findOne(parameters.subscriptionRecordUuid);
|
|
43
|
+
if (!user.memberships
|
|
44
|
+
.map((m) => m.organisation.uuid)
|
|
45
|
+
.includes(subscriptionRecord.organisation.uuid)) {
|
|
46
|
+
{
|
|
47
|
+
throw new Error("You are not a member of the organisation associated with this billing account");
|
|
48
|
+
}
|
|
49
|
+
}
|
|
39
50
|
const session = await this.clientInstance.billingPortal.sessions.create({
|
|
40
|
-
customer:
|
|
41
|
-
return_url: `${this.stripeClientConfigurationService.stripeRedirectsBaseUrl}
|
|
51
|
+
customer: subscriptionRecord.paymentSystemCustomerId,
|
|
52
|
+
return_url: `${this.stripeClientConfigurationService.stripeRedirectsBaseUrl}${parameters.returnUrl}`,
|
|
42
53
|
});
|
|
43
|
-
return session.url;
|
|
54
|
+
return { sessionUrl: session.url };
|
|
44
55
|
}
|
|
45
56
|
async createAuthenticatedCheckoutSession(parameters, user) {
|
|
46
57
|
// create a new session in the database
|
|
@@ -95,7 +106,8 @@ StripeCheckoutService = StripeCheckoutService_1 = __decorate([
|
|
|
95
106
|
__param(0, (0, common_1.Inject)("StripeClient")),
|
|
96
107
|
__metadata("design:paramtypes", [stripe_1.default,
|
|
97
108
|
StripeClientConfigurationService_1.StripeClientConfigurationService,
|
|
98
|
-
payment_session_service_1.PaymentSessionService
|
|
109
|
+
payment_session_service_1.PaymentSessionService,
|
|
110
|
+
organisation_subscriptions_1.OrganisationSubscriptionService])
|
|
99
111
|
], StripeCheckoutService);
|
|
100
112
|
exports.StripeCheckoutService = StripeCheckoutService;
|
|
101
113
|
//# sourceMappingURL=stripe-checkout.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-checkout.service.js","sourceRoot":"","sources":["../../../src/stripe-client/services/stripe-checkout.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0D;AAC1D,oDAA4B;AAG5B,iGAA4F;AAC5F,0FAAqF;AACrF,4FAAqF;
|
|
1
|
+
{"version":3,"file":"stripe-checkout.service.js","sourceRoot":"","sources":["../../../src/stripe-client/services/stripe-checkout.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAA0D;AAC1D,oDAA4B;AAG5B,iGAA4F;AAC5F,0FAAqF;AACrF,4FAAqF;AACrF,iFAAiF;AAK1E,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAIT;IACA;IACA;IACA;IANJ,MAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;IACjE,YAEqB,cAAsB,EACtB,gCAAkE,EAClE,qBAA4C,EAC5C,+BAAgE;QAHhE,mBAAc,GAAd,cAAc,CAAQ;QACtB,qCAAgC,GAAhC,gCAAgC,CAAkC;QAClE,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,oCAA+B,GAA/B,+BAA+B,CAAiC;IAClF,CAAC;IAEJ,wEAAwE;IACjE,KAAK,CAAC,2BAA2B,CACpC,UAA0C,EAC1C,IAAmB;QAEnB,wEAAwE;QACxE,MAAM,kBAAkB,GACpB,MAAM,IAAI,CAAC,+BAA+B,C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CAAC;QACxC,QAAQ,CAAC,eAAe,GAAG,OAAO,CAAC,EAAE,CAAC;QAEtC,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ,CAAA;AAhHY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;qCACU,gBAAM;QACY,mEAAgC;QAC3C,+CAAqB;QACX,4DAA+B;GAP5E,qBAAqB,CAgHjC;AAhHY,sDAAqB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darraghor/nest-backend-libs",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.22",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"description": "Some helpers for personal projects in nestjs",
|
|
6
6
|
"homepage": "https://github.com/darraghoriordan/nest-backend-libs",
|