@postpaybr/protos 1.1.11 → 1.1.14
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/typescript/account-entry.d.ts +4 -15
- package/dist/typescript/account-entry.js +11 -11
- package/dist/typescript/address.d.ts +1 -1
- package/dist/typescript/address.js +8 -13
- package/dist/typescript/admin-card-verification.d.ts +16 -19
- package/dist/typescript/admin-card-verification.js +12 -11
- package/dist/typescript/administrator.d.ts +10 -17
- package/dist/typescript/administrator.js +21 -20
- package/dist/typescript/anticipation.d.ts +7 -7
- package/dist/typescript/anticipation.js +14 -13
- package/dist/typescript/asset.d.ts +3 -3
- package/dist/typescript/asset.js +8 -13
- package/dist/typescript/auth.d.ts +2 -2
- package/dist/typescript/auth.js +8 -8
- package/dist/typescript/bank-account.d.ts +5 -8
- package/dist/typescript/bank-account.js +12 -12
- package/dist/typescript/card-vault.d.ts +1 -1
- package/dist/typescript/card-vault.js +8 -8
- package/dist/typescript/card-verification.d.ts +1 -1
- package/dist/typescript/card-verification.js +8 -11
- package/dist/typescript/card.d.ts +5 -20
- package/dist/typescript/card.js +17 -16
- package/dist/typescript/charge-schedule.d.ts +4 -16
- package/dist/typescript/charge-schedule.js +8 -8
- package/dist/typescript/charge.d.ts +112 -100
- package/dist/typescript/charge.js +38 -38
- package/dist/typescript/common.d.ts +122 -0
- package/dist/typescript/common.js +11 -0
- package/dist/typescript/context.d.ts +16 -46
- package/dist/typescript/context.js +16 -15
- package/dist/typescript/customer.d.ts +6 -15
- package/dist/typescript/customer.js +21 -21
- package/dist/typescript/daily-balance.d.ts +5 -8
- package/dist/typescript/daily-balance.js +8 -8
- package/dist/typescript/document-verification.d.ts +18 -20
- package/dist/typescript/document-verification.js +14 -13
- package/dist/typescript/email.d.ts +2 -2
- package/dist/typescript/email.js +13 -13
- package/dist/typescript/expo-push.d.ts +2 -3
- package/dist/typescript/expo-push.js +8 -8
- package/dist/typescript/fee.d.ts +6 -7
- package/dist/typescript/fee.js +11 -11
- package/dist/typescript/location.d.ts +1 -1
- package/dist/typescript/location.js +8 -8
- package/dist/typescript/notification.d.ts +39 -48
- package/dist/typescript/notification.js +19 -18
- package/dist/typescript/order.d.ts +38 -36
- package/dist/typescript/order.js +18 -17
- package/dist/typescript/payable.d.ts +39 -40
- package/dist/typescript/payable.js +21 -20
- package/dist/typescript/payer.d.ts +1 -1
- package/dist/typescript/payer.js +8 -8
- package/dist/typescript/payment-calculator.d.ts +7 -60
- package/dist/typescript/payment-calculator.js +13 -12
- package/dist/typescript/payment-card.d.ts +25 -81
- package/dist/typescript/payment-card.js +9 -12
- package/dist/typescript/payment-gateway.d.ts +9 -19
- package/dist/typescript/payment-gateway.js +15 -14
- package/dist/typescript/payment-pix.d.ts +3 -78
- package/dist/typescript/payment-pix.js +10 -10
- package/dist/typescript/receipt.d.ts +20 -43
- package/dist/typescript/receipt.js +17 -16
- package/dist/typescript/recipient-payment-gateway.d.ts +14 -23
- package/dist/typescript/recipient-payment-gateway.js +14 -13
- package/dist/typescript/recipient.d.ts +18 -25
- package/dist/typescript/recipient.js +20 -19
- package/dist/typescript/role.d.ts +3 -9
- package/dist/typescript/role.js +14 -13
- package/dist/typescript/sms.d.ts +1 -1
- package/dist/typescript/sms.js +8 -8
- package/dist/typescript/tax.d.ts +38 -60
- package/dist/typescript/tax.js +20 -19
- package/dist/typescript/transfer.d.ts +38 -19
- package/dist/typescript/transfer.js +9 -8
- package/dist/typescript/two-factor.d.ts +7 -8
- package/dist/typescript/two-factor.js +14 -13
- package/dist/typescript/user.d.ts +16 -19
- package/dist/typescript/user.js +24 -24
- package/dist/typescript/wallet.d.ts +1 -1
- package/dist/typescript/wallet.js +8 -8
- package/package.json +3 -2
- package/src/protos/account-entry.proto +3 -15
- package/src/protos/admin-card-verification.proto +0 -2
- package/src/protos/administrator.proto +4 -11
- package/src/protos/bank-account.proto +4 -5
- package/src/protos/charge.proto +12 -47
- package/src/protos/common.proto +140 -0
- package/src/protos/context.proto +8 -49
- package/src/protos/customer.proto +5 -15
- package/src/protos/daily-balance.proto +3 -6
- package/src/protos/document-verification.proto +5 -6
- package/src/protos/expo-push.proto +3 -3
- package/src/protos/fee.proto +3 -3
- package/src/protos/notification.proto +4 -12
- package/src/protos/order.proto +6 -16
- package/src/protos/payment-calculator.proto +11 -87
- package/src/protos/payment-card.proto +7 -90
- package/src/protos/payment-gateway.proto +4 -14
- package/src/protos/payment-pix.proto +5 -95
- package/src/protos/receipt.proto +7 -44
- package/src/protos/recipient-payment-gateway.proto +5 -15
- package/src/protos/recipient.proto +4 -9
- package/src/protos/role.proto +6 -11
- package/src/protos/tax.proto +12 -41
- package/src/protos/user.proto +4 -9
package/dist/typescript/fee.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: fee.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.FEE_SERVICE_NAME = exports.FEE_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.FeeServiceControllerMethods = FeeServiceControllerMethods;
|
|
10
10
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.FEE_PACKAGE_NAME =
|
|
11
|
+
exports.protobufPackage = "fee";
|
|
12
|
+
exports.FEE_PACKAGE_NAME = "fee";
|
|
13
13
|
function FeeServiceControllerMethods() {
|
|
14
14
|
return function (constructor) {
|
|
15
15
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
"createFee",
|
|
17
|
+
"updateRecipientFee",
|
|
18
|
+
"getAllDefaultFees",
|
|
19
|
+
"getFeeForRecipientAndMethod",
|
|
20
20
|
];
|
|
21
21
|
for (const method of grpcMethods) {
|
|
22
22
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
23
|
-
(0, microservices_1.GrpcMethod)(
|
|
23
|
+
(0, microservices_1.GrpcMethod)("FeeService", method)(constructor.prototype[method], method, descriptor);
|
|
24
24
|
}
|
|
25
25
|
const grpcStreamMethods = [];
|
|
26
26
|
for (const method of grpcStreamMethods) {
|
|
27
27
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
28
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
28
|
+
(0, microservices_1.GrpcStreamMethod)("FeeService", method)(constructor.prototype[method], method, descriptor);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
exports.FEE_SERVICE_NAME =
|
|
32
|
+
exports.FEE_SERVICE_NAME = "FeeService";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: location.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.LOCATION_SERVICE_NAME = exports.LOCATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.LocationServiceControllerMethods = LocationServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.LOCATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "location";
|
|
13
|
+
exports.LOCATION_PACKAGE_NAME = "location";
|
|
14
14
|
function LocationServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["getCities", "getStates"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("LocationService", method)(constructor.prototype[method], method, descriptor);
|
|
20
20
|
}
|
|
21
21
|
const grpcStreamMethods = [];
|
|
22
22
|
for (const method of grpcStreamMethods) {
|
|
23
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("LocationService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.LOCATION_SERVICE_NAME =
|
|
28
|
+
exports.LOCATION_SERVICE_NAME = "LocationService";
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DateFilter, PaginationFilter } from "./common";
|
|
4
3
|
export declare const protobufPackage = "notification";
|
|
5
4
|
export interface GetAllNotificationsDto {
|
|
6
5
|
recipientId: string;
|
|
7
|
-
recipientType:
|
|
8
|
-
severities
|
|
6
|
+
recipientType: string;
|
|
7
|
+
severities: number[];
|
|
9
8
|
isRead?: boolean | undefined;
|
|
10
9
|
}
|
|
11
|
-
export interface DateFilter {
|
|
12
|
-
startDate?: Date | undefined;
|
|
13
|
-
endDate?: Date | undefined;
|
|
14
|
-
}
|
|
15
|
-
export interface PaginationFilter {
|
|
16
|
-
limit?: number | undefined;
|
|
17
|
-
offset?: number | undefined;
|
|
18
|
-
}
|
|
19
10
|
export interface NotificationChange {
|
|
20
|
-
field:
|
|
11
|
+
field: string;
|
|
21
12
|
oldValue: string;
|
|
22
13
|
newValue: string;
|
|
23
14
|
}
|
|
@@ -30,26 +21,26 @@ export interface NotificationMetadata {
|
|
|
30
21
|
url?: string | undefined;
|
|
31
22
|
deviceInfo?: string | undefined;
|
|
32
23
|
location?: string | undefined;
|
|
33
|
-
eventDate?:
|
|
24
|
+
eventDate?: string | undefined;
|
|
34
25
|
securityAction?: string | undefined;
|
|
35
|
-
changes
|
|
36
|
-
startDate?:
|
|
37
|
-
endDate?:
|
|
26
|
+
changes: NotificationChange[];
|
|
27
|
+
startDate?: string | undefined;
|
|
28
|
+
endDate?: string | undefined;
|
|
38
29
|
impactDescription?: string | undefined;
|
|
39
30
|
updateReason?: string | undefined;
|
|
40
|
-
changePoints
|
|
31
|
+
changePoints: ChangePoint[];
|
|
41
32
|
userId?: string | undefined;
|
|
42
|
-
scheduledPaymentDate?:
|
|
33
|
+
scheduledPaymentDate?: string | undefined;
|
|
43
34
|
paymentAmount?: number | undefined;
|
|
44
35
|
paymentStatus?: string | undefined;
|
|
45
36
|
paymentMethod?: string | undefined;
|
|
46
37
|
chargeId?: string | undefined;
|
|
47
38
|
receiptId?: string | undefined;
|
|
48
39
|
taxId?: string | undefined;
|
|
49
|
-
params
|
|
40
|
+
params: {
|
|
50
41
|
[key: string]: string;
|
|
51
42
|
};
|
|
52
|
-
actionButtonVariant?:
|
|
43
|
+
actionButtonVariant?: string | undefined;
|
|
53
44
|
callToAction?: string | undefined;
|
|
54
45
|
}
|
|
55
46
|
export interface NotificationMetadata_ParamsEntry {
|
|
@@ -62,33 +53,33 @@ export interface Notification {
|
|
|
62
53
|
description: string;
|
|
63
54
|
isRead: boolean;
|
|
64
55
|
severity: number;
|
|
65
|
-
createdAt:
|
|
66
|
-
updatedAt:
|
|
67
|
-
category:
|
|
68
|
-
recipientType:
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
category: string;
|
|
59
|
+
recipientType: string;
|
|
69
60
|
recipientId: string;
|
|
70
61
|
imageUrl?: string | undefined;
|
|
71
|
-
imageType?:
|
|
62
|
+
imageType?: string | undefined;
|
|
72
63
|
meta?: NotificationMetadata | undefined;
|
|
73
64
|
}
|
|
74
65
|
export interface CreateNotificationRequest {
|
|
75
66
|
recipientId: string;
|
|
76
|
-
recipientType:
|
|
67
|
+
recipientType: string;
|
|
77
68
|
title: string;
|
|
78
69
|
description: string;
|
|
79
70
|
severity?: number | undefined;
|
|
80
|
-
category?:
|
|
71
|
+
category?: string | undefined;
|
|
81
72
|
meta?: NotificationMetadata | undefined;
|
|
82
73
|
isRead?: boolean | undefined;
|
|
83
74
|
imageUrl?: string | undefined;
|
|
84
|
-
imageType?:
|
|
75
|
+
imageType?: string | undefined;
|
|
85
76
|
}
|
|
86
77
|
export interface NotificationResponse {
|
|
87
78
|
notification: Notification | undefined;
|
|
88
79
|
}
|
|
89
80
|
export interface GetNotificationByIdRequest {
|
|
90
81
|
recipientId: string;
|
|
91
|
-
recipientType:
|
|
82
|
+
recipientType: string;
|
|
92
83
|
id: string;
|
|
93
84
|
}
|
|
94
85
|
export interface GetAllNotificationsRequest {
|
|
@@ -102,14 +93,14 @@ export interface NotificationsResponse {
|
|
|
102
93
|
}
|
|
103
94
|
export interface CountUnreadNotificationsRequest {
|
|
104
95
|
recipientId: string;
|
|
105
|
-
recipientType:
|
|
96
|
+
recipientType: string;
|
|
106
97
|
}
|
|
107
98
|
export interface CountUnreadNotificationsResponse {
|
|
108
99
|
countNotRead: number;
|
|
109
100
|
}
|
|
110
101
|
export interface MarkAsReadRequest {
|
|
111
102
|
recipientId: string;
|
|
112
|
-
recipientType:
|
|
103
|
+
recipientType: string;
|
|
113
104
|
notificationId: string;
|
|
114
105
|
}
|
|
115
106
|
export interface MarkAsReadResponse {
|
|
@@ -117,49 +108,49 @@ export interface MarkAsReadResponse {
|
|
|
117
108
|
}
|
|
118
109
|
export interface CreateSecurityNotificationRequest {
|
|
119
110
|
recipientId: string;
|
|
120
|
-
recipientType:
|
|
111
|
+
recipientType: string;
|
|
121
112
|
deviceInfo?: string | undefined;
|
|
122
113
|
location?: string | undefined;
|
|
123
|
-
eventDate:
|
|
114
|
+
eventDate: string;
|
|
124
115
|
imageUrl?: string | undefined;
|
|
125
|
-
imageType?:
|
|
116
|
+
imageType?: string | undefined;
|
|
126
117
|
}
|
|
127
118
|
export interface CreatePasswordChangedNotificationRequest {
|
|
128
119
|
recipientId: string;
|
|
129
|
-
recipientType:
|
|
120
|
+
recipientType: string;
|
|
130
121
|
deviceInfo?: string | undefined;
|
|
131
122
|
location?: string | undefined;
|
|
132
|
-
eventDate:
|
|
123
|
+
eventDate: string;
|
|
133
124
|
imageUrl?: string | undefined;
|
|
134
|
-
imageType?:
|
|
125
|
+
imageType?: string | undefined;
|
|
135
126
|
}
|
|
136
127
|
export interface CreateMaintenanceNotificationRequest {
|
|
137
128
|
recipientId: string;
|
|
138
|
-
recipientType:
|
|
139
|
-
startDate:
|
|
140
|
-
endDate:
|
|
129
|
+
recipientType: string;
|
|
130
|
+
startDate: string;
|
|
131
|
+
endDate: string;
|
|
141
132
|
impactDescription: string;
|
|
142
133
|
imageUrl?: string | undefined;
|
|
143
|
-
imageType?:
|
|
134
|
+
imageType?: string | undefined;
|
|
144
135
|
}
|
|
145
136
|
export interface CreateTermsUpdatedNotificationRequest {
|
|
146
137
|
recipientId: string;
|
|
147
|
-
recipientType:
|
|
138
|
+
recipientType: string;
|
|
148
139
|
updateReason: string;
|
|
149
140
|
changePoints: ChangePoint[];
|
|
150
141
|
imageUrl?: string | undefined;
|
|
151
|
-
imageType?:
|
|
142
|
+
imageType?: string | undefined;
|
|
152
143
|
}
|
|
153
144
|
export interface CreateProfileUpdatedNotificationRequest {
|
|
154
145
|
recipientId: string;
|
|
155
|
-
recipientType:
|
|
146
|
+
recipientType: string;
|
|
156
147
|
changes: NotificationChange[];
|
|
157
148
|
imageUrl?: string | undefined;
|
|
158
|
-
imageType?:
|
|
149
|
+
imageType?: string | undefined;
|
|
159
150
|
}
|
|
160
151
|
export interface GetNotificationStatusRequest {
|
|
161
152
|
recipientId: string;
|
|
162
|
-
recipientType:
|
|
153
|
+
recipientType: string;
|
|
163
154
|
}
|
|
164
155
|
export interface GetNotificationStatusResponse {
|
|
165
156
|
hasCritical: boolean;
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: notification.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.NotificationServiceControllerMethods = NotificationServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.NOTIFICATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "notification";
|
|
13
|
+
exports.NOTIFICATION_PACKAGE_NAME = "notification";
|
|
13
14
|
function NotificationServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
"createNotification",
|
|
18
|
+
"getNotificationById",
|
|
19
|
+
"getAllNotifications",
|
|
20
|
+
"countUnreadNotifications",
|
|
21
|
+
"markAsRead",
|
|
22
|
+
"createSecurityNotification",
|
|
23
|
+
"createPasswordChangedNotification",
|
|
24
|
+
"createMaintenanceNotification",
|
|
25
|
+
"createTermsUpdatedNotification",
|
|
26
|
+
"createProfileUpdatedNotification",
|
|
27
|
+
"getNotificationStatus",
|
|
27
28
|
];
|
|
28
29
|
for (const method of grpcMethods) {
|
|
29
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
30
|
-
(0, microservices_1.GrpcMethod)(
|
|
31
|
+
(0, microservices_1.GrpcMethod)("NotificationService", method)(constructor.prototype[method], method, descriptor);
|
|
31
32
|
}
|
|
32
33
|
const grpcStreamMethods = [];
|
|
33
34
|
for (const method of grpcStreamMethods) {
|
|
34
35
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
35
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
36
|
+
(0, microservices_1.GrpcStreamMethod)("NotificationService", method)(constructor.prototype[method], method, descriptor);
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
exports.NOTIFICATION_SERVICE_NAME =
|
|
40
|
+
exports.NOTIFICATION_SERVICE_NAME = "NotificationService";
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DateFilter, PaginationFilter, Void } from "./common";
|
|
3
3
|
export declare const protobufPackage = "order";
|
|
4
4
|
export interface CreateOrderRequest {
|
|
5
5
|
customerId: string;
|
|
6
6
|
totalAmount: number;
|
|
7
|
-
orderType:
|
|
7
|
+
orderType: string;
|
|
8
8
|
}
|
|
9
9
|
export interface GetOrderByIdRequest {
|
|
10
10
|
id: string;
|
|
11
|
-
orderType?:
|
|
11
|
+
orderType?: string | undefined;
|
|
12
12
|
}
|
|
13
13
|
export interface GetAllOrdersRequest {
|
|
14
14
|
recipientId?: string | undefined;
|
|
15
|
-
statuses
|
|
16
|
-
orderType?:
|
|
15
|
+
statuses: string[];
|
|
16
|
+
orderType?: string | undefined;
|
|
17
17
|
pagination: PaginationFilter | undefined;
|
|
18
18
|
date: DateFilter | undefined;
|
|
19
19
|
}
|
|
20
|
-
export interface PaginationFilter {
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
offset?: number | undefined;
|
|
23
|
-
}
|
|
24
|
-
export interface DateFilter {
|
|
25
|
-
startDate?: Date | undefined;
|
|
26
|
-
endDate?: Date | undefined;
|
|
27
|
-
}
|
|
28
20
|
export interface GetAllOrdersResponse {
|
|
29
21
|
orders: Order[];
|
|
30
22
|
count: number;
|
|
@@ -32,40 +24,50 @@ export interface GetAllOrdersResponse {
|
|
|
32
24
|
export interface CreateOrderItemsRequest {
|
|
33
25
|
order: Order | undefined;
|
|
34
26
|
taxIds: string[];
|
|
35
|
-
orderType:
|
|
27
|
+
orderType: string;
|
|
36
28
|
}
|
|
37
29
|
export interface GetReceiptsByOrderIdRequest {
|
|
38
30
|
orderId: string;
|
|
39
|
-
orderType:
|
|
31
|
+
orderType: string;
|
|
40
32
|
}
|
|
41
33
|
export interface GetReceiptsByOrderIdResponse {
|
|
42
34
|
receipts: ReceiptEntity[];
|
|
43
35
|
}
|
|
44
36
|
export interface updateOrderStatusRequest {
|
|
45
37
|
orderId: string;
|
|
46
|
-
orderStatus:
|
|
47
|
-
orderType:
|
|
38
|
+
orderStatus: string;
|
|
39
|
+
orderType: string;
|
|
40
|
+
}
|
|
41
|
+
export interface HealthCheckRequest {
|
|
48
42
|
}
|
|
49
|
-
export interface
|
|
43
|
+
export interface HealthCheckResponse {
|
|
44
|
+
status: string;
|
|
45
|
+
details: {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface HealthCheckResponse_DetailsEntry {
|
|
50
|
+
key: string;
|
|
51
|
+
value: string;
|
|
50
52
|
}
|
|
51
53
|
export interface Order {
|
|
52
54
|
id: string;
|
|
53
55
|
totalAmount: number;
|
|
54
|
-
status:
|
|
55
|
-
createdAt:
|
|
56
|
-
updatedAt:
|
|
56
|
+
status: string;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
57
59
|
chargeIds: string[];
|
|
58
60
|
customerId: string;
|
|
59
61
|
items: OrderItem[];
|
|
60
62
|
orderSchedule: OrderSchedule | undefined;
|
|
61
|
-
type?:
|
|
63
|
+
type?: string | undefined;
|
|
62
64
|
}
|
|
63
65
|
export interface OrderSchedule {
|
|
64
66
|
id: string;
|
|
65
67
|
totalAmount: number;
|
|
66
|
-
status:
|
|
67
|
-
createdAt:
|
|
68
|
-
updatedAt:
|
|
68
|
+
status: string;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
updatedAt: string;
|
|
69
71
|
chargeIds: string[];
|
|
70
72
|
customerId: string;
|
|
71
73
|
items: OrderItem[];
|
|
@@ -84,7 +86,7 @@ export interface ReceiptEntity {
|
|
|
84
86
|
amount: number;
|
|
85
87
|
protocol: string;
|
|
86
88
|
txid?: string | undefined;
|
|
87
|
-
createdAt:
|
|
89
|
+
createdAt: string;
|
|
88
90
|
}
|
|
89
91
|
export interface GetOrderCustomerNameResponse {
|
|
90
92
|
customerName: string;
|
|
@@ -92,29 +94,29 @@ export interface GetOrderCustomerNameResponse {
|
|
|
92
94
|
export interface updateOrderWithChargeIdRequest {
|
|
93
95
|
orderId: string;
|
|
94
96
|
chargeId: string;
|
|
95
|
-
orderType:
|
|
97
|
+
orderType: string;
|
|
96
98
|
}
|
|
97
99
|
export interface UpdateOrderAmountAndStatusRequest {
|
|
98
100
|
id: string;
|
|
99
|
-
orderType:
|
|
101
|
+
orderType: string;
|
|
100
102
|
totalAmount: number;
|
|
101
|
-
status?:
|
|
103
|
+
status?: string | undefined;
|
|
102
104
|
}
|
|
103
105
|
export interface OrderDetail {
|
|
104
106
|
id: string;
|
|
105
107
|
totalAmount: number;
|
|
106
|
-
status:
|
|
107
|
-
createdAt:
|
|
108
|
-
updatedAt:
|
|
108
|
+
status: string;
|
|
109
|
+
createdAt: string;
|
|
110
|
+
updatedAt: string;
|
|
109
111
|
chargeIds: string[];
|
|
110
112
|
customerId: string;
|
|
111
|
-
type:
|
|
113
|
+
type: string;
|
|
112
114
|
}
|
|
113
115
|
export interface OrderPayments {
|
|
114
116
|
totalPaid: number;
|
|
115
117
|
totalPending: number;
|
|
116
|
-
nextPaymentDate?:
|
|
117
|
-
paymentMethod?:
|
|
118
|
+
nextPaymentDate?: string | undefined;
|
|
119
|
+
paymentMethod?: string | undefined;
|
|
118
120
|
customerName: string;
|
|
119
121
|
}
|
|
120
122
|
export interface DetailedTax {
|
package/dist/typescript/order.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc v6.33.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: order.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ORDER_SERVICE_NAME = exports.ORDER_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.OrderServiceControllerMethods = OrderServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.ORDER_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "order";
|
|
13
|
+
exports.ORDER_PACKAGE_NAME = "order";
|
|
13
14
|
function OrderServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
"createOrder",
|
|
18
|
+
"getOrderById",
|
|
19
|
+
"getAllOrders",
|
|
20
|
+
"createOrderItems",
|
|
21
|
+
"getReceiptsByOrderId",
|
|
22
|
+
"updateOrderStatus",
|
|
23
|
+
"getOrderCustomerName",
|
|
24
|
+
"updateOrderWithChargeId",
|
|
25
|
+
"updateOrderAmountAndStatus",
|
|
26
|
+
"getDetailedOrder",
|
|
26
27
|
];
|
|
27
28
|
for (const method of grpcMethods) {
|
|
28
29
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcMethod)(
|
|
30
|
+
(0, microservices_1.GrpcMethod)("OrderService", method)(constructor.prototype[method], method, descriptor);
|
|
30
31
|
}
|
|
31
32
|
const grpcStreamMethods = [];
|
|
32
33
|
for (const method of grpcStreamMethods) {
|
|
33
34
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
34
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
35
|
+
(0, microservices_1.GrpcStreamMethod)("OrderService", method)(constructor.prototype[method], method, descriptor);
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
exports.ORDER_SERVICE_NAME =
|
|
39
|
+
exports.ORDER_SERVICE_NAME = "OrderService";
|