tychat-contracts 1.0.80 → 1.0.81
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/analytics/event-analytic.enum.d.ts +1 -1
- package/dist/analytics/event-analytic.enum.d.ts.map +1 -1
- package/dist/analytics/event-analytic.enum.js +8 -0
- package/dist/billing/billing-response.dto.d.ts +2 -3
- package/dist/billing/billing-response.dto.d.ts.map +1 -1
- package/dist/billing/billing-response.dto.js +6 -16
- package/dist/billing/create-billing.dto.d.ts +1 -6
- package/dist/billing/create-billing.dto.d.ts.map +1 -1
- package/dist/billing/create-billing.dto.js +8 -28
- package/dist/billing/list-billings-query.dto.d.ts +2 -3
- package/dist/billing/list-billings-query.dto.d.ts.map +1 -1
- package/dist/billing/list-billings-query.dto.js +5 -17
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/payment-gateway/create-gateway-payment.dto.d.ts +25 -0
- package/dist/payment-gateway/create-gateway-payment.dto.d.ts.map +1 -0
- package/dist/payment-gateway/create-gateway-payment.dto.js +147 -0
- package/dist/payment-gateway/gateway-payment-response.dto.d.ts +24 -0
- package/dist/payment-gateway/gateway-payment-response.dto.d.ts.map +1 -0
- package/dist/payment-gateway/gateway-payment-response.dto.js +105 -0
- package/dist/payment-gateway/index.d.ts +8 -0
- package/dist/payment-gateway/index.d.ts.map +1 -0
- package/dist/payment-gateway/index.js +23 -0
- package/dist/payment-gateway/list-gateway-payments-query.dto.d.ts +14 -0
- package/dist/payment-gateway/list-gateway-payments-query.dto.d.ts.map +1 -0
- package/dist/payment-gateway/list-gateway-payments-query.dto.js +73 -0
- package/dist/payment-gateway/payment-gateway-kafka-topics.d.ts +19 -0
- package/dist/payment-gateway/payment-gateway-kafka-topics.d.ts.map +1 -0
- package/dist/payment-gateway/payment-gateway-kafka-topics.js +21 -0
- package/dist/payment-gateway/payment-gateway.enums.d.ts +16 -0
- package/dist/payment-gateway/payment-gateway.enums.d.ts.map +1 -0
- package/dist/payment-gateway/payment-gateway.enums.js +32 -0
- package/dist/payment-gateway/update-gateway-payment.dto.d.ts +9 -0
- package/dist/payment-gateway/update-gateway-payment.dto.d.ts.map +1 -0
- package/dist/payment-gateway/update-gateway-payment.dto.js +11 -0
- package/dist/payment-gateway/webhook-payload.dto.d.ts +12 -0
- package/dist/payment-gateway/webhook-payload.dto.d.ts.map +1 -0
- package/dist/payment-gateway/webhook-payload.dto.js +55 -0
- package/package.json +1 -1
- package/src/analytics/event-analytic.enum.ts +9 -0
- package/src/billing/billing-response.dto.ts +4 -16
- package/src/billing/create-billing.dto.ts +6 -28
- package/src/billing/list-billings-query.dto.ts +4 -18
- package/src/index.ts +1 -0
- package/src/payment-gateway/create-gateway-payment.dto.ts +122 -0
- package/src/payment-gateway/gateway-payment-response.dto.ts +65 -0
- package/src/payment-gateway/index.ts +7 -0
- package/src/payment-gateway/list-gateway-payments-query.dto.ts +53 -0
- package/src/payment-gateway/payment-gateway-kafka-topics.ts +25 -0
- package/src/payment-gateway/payment-gateway.enums.ts +34 -0
- package/src/payment-gateway/update-gateway-payment.dto.ts +7 -0
- package/src/payment-gateway/webhook-payload.dto.ts +32 -0
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Enum of all analytic event types emitted by microservices.
|
|
3
3
|
* Each value follows the pattern: `domain.action`.
|
|
4
4
|
*/
|
|
5
|
-
export declare const EVENT_ANALYTIC_TYPES: readonly ["patient.created", "patient.updated", "patient.deleted", "patient.status_changed", "appointment.created", "appointment.updated", "appointment.canceled", "appointment.rescheduled", "appointment.no_show", "appointment.finished", "checkin.effectued", "checkout.effectued", "message.sent", "message.received", "conversation.session_started", "conversation.session_ended", "conversation.transferred_to_human", "followup.triggered", "followup.completed", "followup.config_updated", "payment.created", "payment.payed", "payment.refunded", "payment.canceled", "payment.overdue", "billing.invoice_created", "billing.invoice_paid", "ai.interaction", "ai.fallback", "auth.login", "auth.logout", "auth.password_reset", "user.created", "user.updated", "user.deleted", "notification.sent", "notification.failed", "whatsapp.connection_established", "whatsapp.connection_lost", "procedure.created", "procedure.updated", "procedure.deleted", "specialty.created", "specialty.updated", "specialty.deleted", "professional.created", "professional.updated", "professional.deleted", "configuration.updated", "storage.file_uploaded", "storage.file_deleted", "tenant.created", "tenant.updated"];
|
|
5
|
+
export declare const EVENT_ANALYTIC_TYPES: readonly ["patient.created", "patient.updated", "patient.deleted", "patient.status_changed", "appointment.created", "appointment.updated", "appointment.canceled", "appointment.rescheduled", "appointment.no_show", "appointment.finished", "checkin.effectued", "checkout.effectued", "message.sent", "message.received", "conversation.session_started", "conversation.session_ended", "conversation.transferred_to_human", "followup.triggered", "followup.completed", "followup.config_updated", "payment.created", "payment.payed", "payment.refunded", "payment.canceled", "payment.overdue", "payment_gateway.payment_created", "payment_gateway.payment_confirmed", "payment_gateway.payment_failed", "payment_gateway.payment_refunded", "payment_gateway.payment_canceled", "payment_gateway.payment_expired", "payment_gateway.webhook_received", "billing.invoice_created", "billing.invoice_paid", "ai.interaction", "ai.fallback", "auth.login", "auth.logout", "auth.password_reset", "user.created", "user.updated", "user.deleted", "notification.sent", "notification.failed", "whatsapp.connection_established", "whatsapp.connection_lost", "procedure.created", "procedure.updated", "procedure.deleted", "specialty.created", "specialty.updated", "specialty.deleted", "professional.created", "professional.updated", "professional.deleted", "configuration.updated", "storage.file_uploaded", "storage.file_deleted", "tenant.created", "tenant.updated"];
|
|
6
6
|
export type EventAnalyticType = (typeof EVENT_ANALYTIC_TYPES)[number];
|
|
7
7
|
//# sourceMappingURL=event-analytic.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-analytic.enum.d.ts","sourceRoot":"","sources":["../../src/analytics/event-analytic.enum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"event-analytic.enum.d.ts","sourceRoot":"","sources":["../../src/analytics/event-analytic.enum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,s5CAoGvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -38,6 +38,14 @@ exports.EVENT_ANALYTIC_TYPES = [
|
|
|
38
38
|
'payment.refunded',
|
|
39
39
|
'payment.canceled',
|
|
40
40
|
'payment.overdue',
|
|
41
|
+
// ── Payment Gateway events ─────────────────────────────────────
|
|
42
|
+
'payment_gateway.payment_created',
|
|
43
|
+
'payment_gateway.payment_confirmed',
|
|
44
|
+
'payment_gateway.payment_failed',
|
|
45
|
+
'payment_gateway.payment_refunded',
|
|
46
|
+
'payment_gateway.payment_canceled',
|
|
47
|
+
'payment_gateway.payment_expired',
|
|
48
|
+
'payment_gateway.webhook_received',
|
|
41
49
|
// ── Billing events ──────────────────────────────────────────────
|
|
42
50
|
'billing.invoice_created',
|
|
43
51
|
'billing.invoice_paid',
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BillingStatusDto } from './create-billing.dto';
|
|
2
2
|
export declare class BillingResponseDto {
|
|
3
3
|
id: string;
|
|
4
4
|
tenantId: string;
|
|
5
5
|
value: number;
|
|
6
6
|
status: BillingStatusDto;
|
|
7
|
-
|
|
8
|
-
gateway: BillingGatewayDto;
|
|
7
|
+
paymentId?: string | null;
|
|
9
8
|
dueDate: string;
|
|
10
9
|
payedAt?: string | null;
|
|
11
10
|
createdAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-response.dto.d.ts","sourceRoot":"","sources":["../../src/billing/billing-response.dto.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"billing-response.dto.d.ts","sourceRoot":"","sources":["../../src/billing/billing-response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,kBAAkB;IAK7B,EAAE,EAAE,MAAM,CAAC;IAMX,QAAQ,EAAE,MAAM,CAAC;IAMjB,KAAK,EAAE,MAAM,CAAC;IAOd,MAAM,EAAE,gBAAgB,CAAC;IAMzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAM1B,OAAO,EAAE,MAAM,CAAC;IAMhB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAMxB,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B"}
|
|
@@ -17,8 +17,7 @@ class BillingResponseDto {
|
|
|
17
17
|
tenantId;
|
|
18
18
|
value;
|
|
19
19
|
status;
|
|
20
|
-
|
|
21
|
-
gateway;
|
|
20
|
+
paymentId;
|
|
22
21
|
dueDate;
|
|
23
22
|
payedAt;
|
|
24
23
|
createdAt;
|
|
@@ -56,21 +55,12 @@ __decorate([
|
|
|
56
55
|
__metadata("design:type", String)
|
|
57
56
|
], BillingResponseDto.prototype, "status", void 0);
|
|
58
57
|
__decorate([
|
|
59
|
-
(0, swagger_1.
|
|
60
|
-
description: 'Payment
|
|
61
|
-
|
|
62
|
-
example: 'PIX',
|
|
63
|
-
}),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], BillingResponseDto.prototype, "method", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, swagger_1.ApiProperty)({
|
|
68
|
-
description: 'Payment gateway',
|
|
69
|
-
enum: create_billing_dto_1.BILLING_GATEWAYS,
|
|
70
|
-
example: 'ASAAS',
|
|
58
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
59
|
+
description: 'Payment ID from payment-gateway service (UUID)',
|
|
60
|
+
example: '550e8400-e29b-41d4-a716-446655440002',
|
|
71
61
|
}),
|
|
72
|
-
__metadata("design:type",
|
|
73
|
-
], BillingResponseDto.prototype, "
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], BillingResponseDto.prototype, "paymentId", void 0);
|
|
74
64
|
__decorate([
|
|
75
65
|
(0, swagger_1.ApiProperty)({
|
|
76
66
|
description: 'Due date (ISO 8601)',
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
export declare const BILLING_STATUSES: readonly ["PENDING", "PAYED", "REFUNDED", "CANCELED", "OVERDUE"];
|
|
2
2
|
export type BillingStatusDto = (typeof BILLING_STATUSES)[number];
|
|
3
|
-
export declare const BILLING_METHODS: readonly ["PIX", "CREDIT_CARD", "DEBIT_CARD", "VOUCHER", "CASH"];
|
|
4
|
-
export type BillingMethodDto = (typeof BILLING_METHODS)[number];
|
|
5
|
-
export declare const BILLING_GATEWAYS: readonly ["ASAAS", "MERCADO_PAGO", "STRIPE"];
|
|
6
|
-
export type BillingGatewayDto = (typeof BILLING_GATEWAYS)[number];
|
|
7
3
|
export declare class CreateBillingDto {
|
|
8
4
|
tenantId: string;
|
|
9
5
|
value: number;
|
|
10
6
|
status?: BillingStatusDto;
|
|
11
|
-
|
|
12
|
-
gateway: BillingGatewayDto;
|
|
7
|
+
paymentId?: string;
|
|
13
8
|
dueDate: string;
|
|
14
9
|
payedAt?: string;
|
|
15
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-billing.dto.d.ts","sourceRoot":"","sources":["../../src/billing/create-billing.dto.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,kEAMnB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,
|
|
1
|
+
{"version":3,"file":"create-billing.dto.d.ts","sourceRoot":"","sources":["../../src/billing/create-billing.dto.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,kEAMnB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,qBAAa,gBAAgB;IAO3B,QAAQ,EAAE,MAAM,CAAC;IASjB,KAAK,EAAE,MAAM,CAAC;IASd,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAQ1B,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,OAAO,EAAE,MAAM,CAAC;IAQhB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -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.CreateBillingDto = exports.
|
|
12
|
+
exports.CreateBillingDto = exports.BILLING_STATUSES = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
exports.BILLING_STATUSES = [
|
|
@@ -19,20 +19,11 @@ exports.BILLING_STATUSES = [
|
|
|
19
19
|
'CANCELED',
|
|
20
20
|
'OVERDUE',
|
|
21
21
|
];
|
|
22
|
-
exports.BILLING_METHODS = [
|
|
23
|
-
'PIX',
|
|
24
|
-
'CREDIT_CARD',
|
|
25
|
-
'DEBIT_CARD',
|
|
26
|
-
'VOUCHER',
|
|
27
|
-
'CASH',
|
|
28
|
-
];
|
|
29
|
-
exports.BILLING_GATEWAYS = ['ASAAS', 'MERCADO_PAGO', 'STRIPE'];
|
|
30
22
|
class CreateBillingDto {
|
|
31
23
|
tenantId;
|
|
32
24
|
value;
|
|
33
25
|
status;
|
|
34
|
-
|
|
35
|
-
gateway;
|
|
26
|
+
paymentId;
|
|
36
27
|
dueDate;
|
|
37
28
|
payedAt;
|
|
38
29
|
}
|
|
@@ -67,25 +58,14 @@ __decorate([
|
|
|
67
58
|
__metadata("design:type", String)
|
|
68
59
|
], CreateBillingDto.prototype, "status", void 0);
|
|
69
60
|
__decorate([
|
|
70
|
-
(0, swagger_1.
|
|
71
|
-
description: 'Payment
|
|
72
|
-
|
|
73
|
-
example: 'PIX',
|
|
74
|
-
}),
|
|
75
|
-
(0, class_validator_1.IsEnum)(exports.BILLING_METHODS),
|
|
76
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], CreateBillingDto.prototype, "method", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, swagger_1.ApiProperty)({
|
|
81
|
-
description: 'Payment gateway',
|
|
82
|
-
enum: exports.BILLING_GATEWAYS,
|
|
83
|
-
example: 'ASAAS',
|
|
61
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
62
|
+
description: 'Payment ID from payment-gateway service (UUID)',
|
|
63
|
+
example: '550e8400-e29b-41d4-a716-446655440002',
|
|
84
64
|
}),
|
|
85
|
-
(0, class_validator_1.
|
|
86
|
-
(0, class_validator_1.
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsUUID)('4'),
|
|
87
67
|
__metadata("design:type", String)
|
|
88
|
-
], CreateBillingDto.prototype, "
|
|
68
|
+
], CreateBillingDto.prototype, "paymentId", void 0);
|
|
89
69
|
__decorate([
|
|
90
70
|
(0, swagger_1.ApiProperty)({
|
|
91
71
|
description: 'Due date (ISO 8601)',
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BillingStatusDto } from './create-billing.dto';
|
|
2
2
|
export declare class ListBillingsQueryDto {
|
|
3
3
|
tenantId?: string;
|
|
4
4
|
status?: BillingStatusDto;
|
|
5
|
-
|
|
6
|
-
gateway?: BillingGatewayDto;
|
|
5
|
+
paymentId?: string;
|
|
7
6
|
page?: number;
|
|
8
7
|
limit?: number;
|
|
9
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-billings-query.dto.d.ts","sourceRoot":"","sources":["../../src/billing/list-billings-query.dto.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"list-billings-query.dto.d.ts","sourceRoot":"","sources":["../../src/billing/list-billings-query.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,oBAAoB;IAO/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IASlB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAQ1B,SAAS,CAAC,EAAE,MAAM,CAAC;IAWnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAad,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -16,8 +16,7 @@ const create_billing_dto_1 = require("./create-billing.dto");
|
|
|
16
16
|
class ListBillingsQueryDto {
|
|
17
17
|
tenantId;
|
|
18
18
|
status;
|
|
19
|
-
|
|
20
|
-
gateway;
|
|
19
|
+
paymentId;
|
|
21
20
|
page;
|
|
22
21
|
limit;
|
|
23
22
|
}
|
|
@@ -43,24 +42,13 @@ __decorate([
|
|
|
43
42
|
], ListBillingsQueryDto.prototype, "status", void 0);
|
|
44
43
|
__decorate([
|
|
45
44
|
(0, swagger_1.ApiPropertyOptional)({
|
|
46
|
-
description: '
|
|
47
|
-
|
|
48
|
-
example: 'PIX',
|
|
45
|
+
description: 'Payment ID filter (UUID)',
|
|
46
|
+
example: '550e8400-e29b-41d4-a716-446655440002',
|
|
49
47
|
}),
|
|
50
48
|
(0, class_validator_1.IsOptional)(),
|
|
51
|
-
(0, class_validator_1.
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], ListBillingsQueryDto.prototype, "method", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
56
|
-
description: 'Billing gateway filter',
|
|
57
|
-
enum: create_billing_dto_1.BILLING_GATEWAYS,
|
|
58
|
-
example: 'ASAAS',
|
|
59
|
-
}),
|
|
60
|
-
(0, class_validator_1.IsOptional)(),
|
|
61
|
-
(0, class_validator_1.IsEnum)(create_billing_dto_1.BILLING_GATEWAYS),
|
|
49
|
+
(0, class_validator_1.IsUUID)('4'),
|
|
62
50
|
__metadata("design:type", String)
|
|
63
|
-
], ListBillingsQueryDto.prototype, "
|
|
51
|
+
], ListBillingsQueryDto.prototype, "paymentId", void 0);
|
|
64
52
|
__decorate([
|
|
65
53
|
(0, swagger_1.ApiPropertyOptional)({
|
|
66
54
|
description: 'Page number (starting at 1)',
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,MAAM,CAAC;AACrB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./specialties"), exports);
|
|
|
24
24
|
__exportStar(require("./professionals"), exports);
|
|
25
25
|
__exportStar(require("./payments"), exports);
|
|
26
26
|
__exportStar(require("./billing"), exports);
|
|
27
|
+
__exportStar(require("./payment-gateway"), exports);
|
|
27
28
|
__exportStar(require("./ai"), exports);
|
|
28
29
|
__exportStar(require("./storage"), exports);
|
|
29
30
|
__exportStar(require("./notifications"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PaymentGatewayDto, GatewayPaymentMethodDto } from './payment-gateway.enums';
|
|
2
|
+
/**
|
|
3
|
+
* Optional customer data for gateway registration.
|
|
4
|
+
*/
|
|
5
|
+
export declare class GatewayCustomerDto {
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
cpfCnpj?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* DTO for creating a payment through the payment gateway service.
|
|
13
|
+
*/
|
|
14
|
+
export declare class CreateGatewayPaymentDto {
|
|
15
|
+
tenantId: string;
|
|
16
|
+
billingId: string;
|
|
17
|
+
amount: number;
|
|
18
|
+
gateway: PaymentGatewayDto;
|
|
19
|
+
method: GatewayPaymentMethodDto;
|
|
20
|
+
dueDate: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
customer?: GatewayCustomerDto;
|
|
23
|
+
metadata?: Record<string, unknown>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=create-gateway-payment.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-gateway-payment.dto.d.ts","sourceRoot":"","sources":["../../src/payment-gateway/create-gateway-payment.dto.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,iBAAiB,EAEjB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,qBAAa,kBAAkB;IAI7B,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,uBAAuB;IAOlC,QAAQ,EAAE,MAAM,CAAC;IAQjB,SAAS,EAAE,MAAM,CAAC;IASlB,MAAM,EAAE,MAAM,CAAC;IASf,OAAO,EAAE,iBAAiB,CAAC;IAS3B,MAAM,EAAE,uBAAuB,CAAC;IAOhC,OAAO,EAAE,MAAM,CAAC;IAQhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAQrB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAO9B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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.CreateGatewayPaymentDto = exports.GatewayCustomerDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const payment_gateway_enums_1 = require("./payment-gateway.enums");
|
|
17
|
+
/**
|
|
18
|
+
* Optional customer data for gateway registration.
|
|
19
|
+
*/
|
|
20
|
+
class GatewayCustomerDto {
|
|
21
|
+
name;
|
|
22
|
+
email;
|
|
23
|
+
cpfCnpj;
|
|
24
|
+
phone;
|
|
25
|
+
}
|
|
26
|
+
exports.GatewayCustomerDto = GatewayCustomerDto;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ description: 'Customer name', example: 'John Doe' }),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GatewayCustomerDto.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ description: 'Customer email', example: 'john@example.com' }),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], GatewayCustomerDto.prototype, "email", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Customer CPF/CNPJ', example: '12345678900' }),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GatewayCustomerDto.prototype, "cpfCnpj", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Customer phone', example: '+5511999999999' }),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], GatewayCustomerDto.prototype, "phone", void 0);
|
|
51
|
+
/**
|
|
52
|
+
* DTO for creating a payment through the payment gateway service.
|
|
53
|
+
*/
|
|
54
|
+
class CreateGatewayPaymentDto {
|
|
55
|
+
tenantId;
|
|
56
|
+
billingId;
|
|
57
|
+
amount;
|
|
58
|
+
gateway;
|
|
59
|
+
method;
|
|
60
|
+
dueDate;
|
|
61
|
+
description;
|
|
62
|
+
customer;
|
|
63
|
+
metadata;
|
|
64
|
+
}
|
|
65
|
+
exports.CreateGatewayPaymentDto = CreateGatewayPaymentDto;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiProperty)({
|
|
68
|
+
description: 'Tenant ID (UUID)',
|
|
69
|
+
example: '550e8400-e29b-41d4-a716-446655440000',
|
|
70
|
+
}),
|
|
71
|
+
(0, class_validator_1.IsUUID)('4'),
|
|
72
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CreateGatewayPaymentDto.prototype, "tenantId", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiProperty)({
|
|
77
|
+
description: 'Billing ID from billing service (UUID)',
|
|
78
|
+
example: '550e8400-e29b-41d4-a716-446655440001',
|
|
79
|
+
}),
|
|
80
|
+
(0, class_validator_1.IsUUID)('4'),
|
|
81
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], CreateGatewayPaymentDto.prototype, "billingId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Payment amount',
|
|
87
|
+
example: 99.90,
|
|
88
|
+
minimum: 0.01,
|
|
89
|
+
}),
|
|
90
|
+
(0, class_validator_1.IsNumber)(),
|
|
91
|
+
(0, class_validator_1.Min)(0.01),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], CreateGatewayPaymentDto.prototype, "amount", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)({
|
|
96
|
+
description: 'Payment gateway to use',
|
|
97
|
+
enum: payment_gateway_enums_1.PAYMENT_GATEWAYS,
|
|
98
|
+
example: 'ASAAS',
|
|
99
|
+
}),
|
|
100
|
+
(0, class_validator_1.IsEnum)(payment_gateway_enums_1.PAYMENT_GATEWAYS),
|
|
101
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], CreateGatewayPaymentDto.prototype, "gateway", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)({
|
|
106
|
+
description: 'Payment method',
|
|
107
|
+
enum: payment_gateway_enums_1.GATEWAY_PAYMENT_METHODS,
|
|
108
|
+
example: 'PIX',
|
|
109
|
+
}),
|
|
110
|
+
(0, class_validator_1.IsEnum)(payment_gateway_enums_1.GATEWAY_PAYMENT_METHODS),
|
|
111
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], CreateGatewayPaymentDto.prototype, "method", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)({
|
|
116
|
+
description: 'Due date (ISO 8601)',
|
|
117
|
+
example: '2026-04-15T00:00:00.000Z',
|
|
118
|
+
}),
|
|
119
|
+
(0, class_validator_1.IsDateString)(),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], CreateGatewayPaymentDto.prototype, "dueDate", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
124
|
+
description: 'Description of the payment',
|
|
125
|
+
example: 'Monthly subscription - April 2026',
|
|
126
|
+
}),
|
|
127
|
+
(0, class_validator_1.IsOptional)(),
|
|
128
|
+
(0, class_validator_1.IsString)(),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], CreateGatewayPaymentDto.prototype, "description", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
133
|
+
description: 'Customer data for gateway registration',
|
|
134
|
+
}),
|
|
135
|
+
(0, class_validator_1.IsOptional)(),
|
|
136
|
+
(0, class_validator_1.ValidateNested)(),
|
|
137
|
+
(0, class_transformer_1.Type)(() => GatewayCustomerDto),
|
|
138
|
+
__metadata("design:type", GatewayCustomerDto)
|
|
139
|
+
], CreateGatewayPaymentDto.prototype, "customer", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
142
|
+
description: 'Additional metadata as JSON',
|
|
143
|
+
example: { invoiceNumber: 'INV-001' },
|
|
144
|
+
}),
|
|
145
|
+
(0, class_validator_1.IsOptional)(),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], CreateGatewayPaymentDto.prototype, "metadata", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PaymentGatewayDto, GatewayPaymentMethodDto, GatewayPaymentStatusDto } from './payment-gateway.enums';
|
|
2
|
+
/**
|
|
3
|
+
* Response DTO for a gateway payment record.
|
|
4
|
+
*/
|
|
5
|
+
export declare class GatewayPaymentResponseDto {
|
|
6
|
+
id: string;
|
|
7
|
+
tenantId: string;
|
|
8
|
+
billingId: string;
|
|
9
|
+
amount: number;
|
|
10
|
+
gateway: PaymentGatewayDto;
|
|
11
|
+
method: GatewayPaymentMethodDto;
|
|
12
|
+
status: GatewayPaymentStatusDto;
|
|
13
|
+
externalId?: string | null;
|
|
14
|
+
errorMessage?: string | null;
|
|
15
|
+
metadata?: Record<string, unknown> | null;
|
|
16
|
+
dueDate: string;
|
|
17
|
+
paidAt?: string | null;
|
|
18
|
+
expiresAt?: string | null;
|
|
19
|
+
refundAmount?: number | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
deletedAt?: string | null;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=gateway-payment-response.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-payment-response.dto.d.ts","sourceRoot":"","sources":["../../src/payment-gateway/gateway-payment-response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,uBAAuB,EAEvB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,qBAAa,yBAAyB;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,iBAAiB,CAAC;IAG3B,MAAM,EAAE,uBAAuB,CAAC;IAGhC,MAAM,EAAE,uBAAuB,CAAC;IAGhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAG1C,OAAO,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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.GatewayPaymentResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const payment_gateway_enums_1 = require("./payment-gateway.enums");
|
|
15
|
+
/**
|
|
16
|
+
* Response DTO for a gateway payment record.
|
|
17
|
+
*/
|
|
18
|
+
class GatewayPaymentResponseDto {
|
|
19
|
+
id;
|
|
20
|
+
tenantId;
|
|
21
|
+
billingId;
|
|
22
|
+
amount;
|
|
23
|
+
gateway;
|
|
24
|
+
method;
|
|
25
|
+
status;
|
|
26
|
+
externalId;
|
|
27
|
+
errorMessage;
|
|
28
|
+
metadata;
|
|
29
|
+
dueDate;
|
|
30
|
+
paidAt;
|
|
31
|
+
expiresAt;
|
|
32
|
+
refundAmount;
|
|
33
|
+
createdAt;
|
|
34
|
+
updatedAt;
|
|
35
|
+
deletedAt;
|
|
36
|
+
}
|
|
37
|
+
exports.GatewayPaymentResponseDto = GatewayPaymentResponseDto;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({ description: 'Payment ID (UUID)', example: '550e8400-e29b-41d4-a716-446655440111' }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], GatewayPaymentResponseDto.prototype, "id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ description: 'Tenant ID (UUID)', example: '550e8400-e29b-41d4-a716-446655440000' }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], GatewayPaymentResponseDto.prototype, "tenantId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({ description: 'Billing ID (UUID)', example: '550e8400-e29b-41d4-a716-446655440001' }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], GatewayPaymentResponseDto.prototype, "billingId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({ description: 'Payment amount', example: 99.90 }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], GatewayPaymentResponseDto.prototype, "amount", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)({ description: 'Payment gateway', enum: payment_gateway_enums_1.PAYMENT_GATEWAYS, example: 'ASAAS' }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], GatewayPaymentResponseDto.prototype, "gateway", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({ description: 'Payment method', enum: payment_gateway_enums_1.GATEWAY_PAYMENT_METHODS, example: 'PIX' }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], GatewayPaymentResponseDto.prototype, "method", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ description: 'Payment status', enum: payment_gateway_enums_1.GATEWAY_PAYMENT_STATUSES, example: 'PENDING' }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], GatewayPaymentResponseDto.prototype, "status", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'External ID from the gateway', example: 'pay_abc123' }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], GatewayPaymentResponseDto.prototype, "externalId", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Error message if payment failed', example: null }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], GatewayPaymentResponseDto.prototype, "errorMessage", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Additional metadata', example: {} }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], GatewayPaymentResponseDto.prototype, "metadata", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({ description: 'Due date (ISO 8601)', example: '2026-04-15T00:00:00.000Z' }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], GatewayPaymentResponseDto.prototype, "dueDate", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Date when payment was confirmed (ISO 8601)', example: null }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], GatewayPaymentResponseDto.prototype, "paidAt", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Payment expiration date (ISO 8601)', example: null }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], GatewayPaymentResponseDto.prototype, "expiresAt", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Refund amount if partially/fully refunded', example: null }),
|
|
92
|
+
__metadata("design:type", Object)
|
|
93
|
+
], GatewayPaymentResponseDto.prototype, "refundAmount", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiProperty)({ description: 'Creation timestamp (ISO 8601)', example: '2026-03-14T12:00:00.000Z' }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], GatewayPaymentResponseDto.prototype, "createdAt", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, swagger_1.ApiProperty)({ description: 'Last update timestamp (ISO 8601)', example: '2026-03-14T12:00:00.000Z' }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], GatewayPaymentResponseDto.prototype, "updatedAt", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Soft deletion timestamp (ISO 8601)', example: null }),
|
|
104
|
+
__metadata("design:type", Object)
|
|
105
|
+
], GatewayPaymentResponseDto.prototype, "deletedAt", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './payment-gateway.enums';
|
|
2
|
+
export * from './create-gateway-payment.dto';
|
|
3
|
+
export * from './update-gateway-payment.dto';
|
|
4
|
+
export * from './gateway-payment-response.dto';
|
|
5
|
+
export * from './list-gateway-payments-query.dto';
|
|
6
|
+
export * from './payment-gateway-kafka-topics';
|
|
7
|
+
export * from './webhook-payload.dto';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/payment-gateway/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payment-gateway.enums"), exports);
|
|
18
|
+
__exportStar(require("./create-gateway-payment.dto"), exports);
|
|
19
|
+
__exportStar(require("./update-gateway-payment.dto"), exports);
|
|
20
|
+
__exportStar(require("./gateway-payment-response.dto"), exports);
|
|
21
|
+
__exportStar(require("./list-gateway-payments-query.dto"), exports);
|
|
22
|
+
__exportStar(require("./payment-gateway-kafka-topics"), exports);
|
|
23
|
+
__exportStar(require("./webhook-payload.dto"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaymentGatewayDto, GatewayPaymentMethodDto, GatewayPaymentStatusDto } from './payment-gateway.enums';
|
|
2
|
+
/**
|
|
3
|
+
* Query DTO for listing gateway payments with optional filters and pagination.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ListGatewayPaymentsQueryDto {
|
|
6
|
+
tenantId?: string;
|
|
7
|
+
billingId?: string;
|
|
8
|
+
gateway?: PaymentGatewayDto;
|
|
9
|
+
method?: GatewayPaymentMethodDto;
|
|
10
|
+
status?: GatewayPaymentStatusDto;
|
|
11
|
+
page?: number;
|
|
12
|
+
limit?: number;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=list-gateway-payments-query.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-gateway-payments-query.dto.d.ts","sourceRoot":"","sources":["../../src/payment-gateway/list-gateway-payments-query.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,iBAAiB,EAEjB,uBAAuB,EAEvB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,qBAAa,2BAA2B;IAItC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAK5B,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAKjC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAMjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAOd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|