@postpaybr/protos 1.1.14 → 1.1.16
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 +5 -5
- package/dist/typescript/account-entry.js +9 -9
- package/dist/typescript/admin-card-verification.d.ts +15 -14
- package/dist/typescript/admin-card-verification.js +9 -9
- package/dist/typescript/administrator.d.ts +10 -8
- package/dist/typescript/administrator.js +18 -18
- package/dist/typescript/anticipation.d.ts +8 -7
- package/dist/typescript/anticipation.js +11 -11
- package/dist/typescript/bank-account.d.ts +3 -3
- package/dist/typescript/bank-account.js +10 -10
- package/dist/typescript/card.d.ts +6 -5
- package/dist/typescript/card.js +14 -14
- package/dist/typescript/charge-schedule.d.ts +1 -1
- package/dist/typescript/charge.d.ts +48 -70
- package/dist/typescript/charge.js +36 -36
- package/dist/typescript/common.d.ts +35 -18
- package/dist/typescript/common.js +2 -2
- package/dist/typescript/context.d.ts +9 -7
- package/dist/typescript/context.js +13 -14
- package/dist/typescript/customer.d.ts +8 -8
- package/dist/typescript/customer.js +19 -19
- package/dist/typescript/daily-balance.d.ts +5 -5
- package/dist/typescript/daily-balance.js +6 -6
- package/dist/typescript/document-verification.d.ts +21 -20
- package/dist/typescript/document-verification.js +11 -11
- package/dist/typescript/email.d.ts +2 -2
- package/dist/typescript/email.js +11 -11
- package/dist/typescript/fee.d.ts +6 -6
- package/dist/typescript/fee.js +9 -9
- package/dist/typescript/notification.d.ts +42 -40
- package/dist/typescript/notification.js +16 -16
- package/dist/typescript/order.d.ts +24 -23
- package/dist/typescript/order.js +15 -15
- package/dist/typescript/payable.d.ts +33 -35
- package/dist/typescript/payable.js +18 -18
- package/dist/typescript/payment-calculator.d.ts +6 -5
- package/dist/typescript/payment-calculator.js +10 -10
- package/dist/typescript/payment-card.d.ts +14 -16
- package/dist/typescript/payment-card.js +10 -6
- package/dist/typescript/payment-gateway.d.ts +11 -9
- package/dist/typescript/payment-gateway.js +12 -12
- package/dist/typescript/payment-pix.d.ts +4 -3
- package/dist/typescript/payment-pix.js +6 -6
- package/dist/typescript/receipt.d.ts +15 -29
- package/dist/typescript/receipt.js +14 -14
- package/dist/typescript/recipient-payment-gateway.d.ts +14 -12
- package/dist/typescript/recipient-payment-gateway.js +11 -11
- package/dist/typescript/recipient.d.ts +21 -19
- package/dist/typescript/recipient.js +17 -17
- package/dist/typescript/role.d.ts +5 -3
- package/dist/typescript/role.js +11 -11
- package/dist/typescript/tax.d.ts +33 -61
- package/dist/typescript/tax.js +17 -17
- package/dist/typescript/transfer.d.ts +21 -19
- package/dist/typescript/transfer.js +6 -7
- package/dist/typescript/two-factor.d.ts +8 -7
- package/dist/typescript/two-factor.js +11 -11
- package/dist/typescript/user.d.ts +13 -14
- package/dist/typescript/user.js +22 -22
- package/package.json +1 -1
- package/src/protos/charge.proto +4 -33
- package/src/protos/common.proto +12 -0
- package/src/protos/context.proto +1 -1
- package/src/protos/customer.proto +1 -1
- package/src/protos/payable.proto +5 -6
- package/src/protos/receipt.proto +7 -21
- package/src/protos/tax.proto +6 -40
- package/src/protos/user.proto +3 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AccountEntryType,
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { TableFilterParams } from
|
|
1
|
+
import { AccountEntryType, GatewayIdentification, PaymentMethods } from '@postpaybr/contracts/types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TableFilterParams } from './common';
|
|
4
4
|
export declare const protobufPackage = "accountEntry";
|
|
5
5
|
export interface CreateAccountEntryRequest {
|
|
6
6
|
amount: number;
|
|
@@ -42,7 +42,7 @@ export interface AccountEntry {
|
|
|
42
42
|
recipientId: string;
|
|
43
43
|
transferId?: string | undefined;
|
|
44
44
|
chargeId?: string | undefined;
|
|
45
|
-
createdAt:
|
|
45
|
+
createdAt: Date;
|
|
46
46
|
}
|
|
47
47
|
export interface Charge {
|
|
48
48
|
id: string;
|
|
@@ -50,7 +50,7 @@ export interface Charge {
|
|
|
50
50
|
paymentMethod: PaymentMethods;
|
|
51
51
|
txid: string;
|
|
52
52
|
gatewayId: GatewayIdentification;
|
|
53
|
-
metadata:
|
|
53
|
+
metadata: string;
|
|
54
54
|
}
|
|
55
55
|
export declare const ACCOUNT_ENTRY_PACKAGE_NAME = "accountEntry";
|
|
56
56
|
export interface AccountEntryServiceClient {
|
|
@@ -8,25 +8,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.ACCOUNT_ENTRY_SERVICE_NAME = exports.ACCOUNT_ENTRY_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AccountEntryServiceControllerMethods = AccountEntryServiceControllerMethods;
|
|
10
10
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.ACCOUNT_ENTRY_PACKAGE_NAME =
|
|
11
|
+
exports.protobufPackage = 'accountEntry';
|
|
12
|
+
exports.ACCOUNT_ENTRY_PACKAGE_NAME = 'accountEntry';
|
|
13
13
|
function AccountEntryServiceControllerMethods() {
|
|
14
14
|
return function (constructor) {
|
|
15
15
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
'createAccountEntry',
|
|
17
|
+
'createAccountEntries',
|
|
18
|
+
'getEntriesByTransfer',
|
|
19
|
+
'getEntriesByPeriod',
|
|
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)('AccountEntryService', 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)('AccountEntryService', method)(constructor.prototype[method], method, descriptor);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
exports.ACCOUNT_ENTRY_SERVICE_NAME =
|
|
32
|
+
exports.ACCOUNT_ENTRY_SERVICE_NAME = 'AccountEntryService';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardChallenge, CardRejectionReason, VerificationStatus } from '@postpaybr/contracts/types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
export declare const protobufPackage = "adminCardVerification";
|
|
3
4
|
export interface CreateCardVerificationRequest {
|
|
4
5
|
customerId: string;
|
|
5
6
|
cardId: string;
|
|
6
7
|
selfieWithCardUrl: string;
|
|
7
|
-
challenge:
|
|
8
|
+
challenge: CardChallenge;
|
|
8
9
|
}
|
|
9
10
|
export interface UpdateVerificationStatusRequest {
|
|
10
11
|
id: string;
|
|
11
|
-
status:
|
|
12
|
-
rejectionReasons
|
|
12
|
+
status: VerificationStatus;
|
|
13
|
+
rejectionReasons?: CardRejectionReason[] | undefined;
|
|
13
14
|
customRejectionReason?: string | undefined;
|
|
14
15
|
reviewerId?: string | undefined;
|
|
15
16
|
}
|
|
@@ -17,13 +18,13 @@ export interface CardVerificationResponse {
|
|
|
17
18
|
id: string;
|
|
18
19
|
cardId: string;
|
|
19
20
|
selfieWithCardUrl: string;
|
|
20
|
-
rejectionReasons:
|
|
21
|
+
rejectionReasons: CardRejectionReason[];
|
|
21
22
|
customRejectionReason: string;
|
|
22
23
|
histories: VerificationHistory[];
|
|
23
24
|
challenge: string;
|
|
24
25
|
}
|
|
25
26
|
export interface GetVerificationsWithCardDetailsRequest {
|
|
26
|
-
status:
|
|
27
|
+
status: VerificationStatus;
|
|
27
28
|
offset?: number | undefined;
|
|
28
29
|
limit?: number | undefined;
|
|
29
30
|
}
|
|
@@ -34,15 +35,15 @@ export interface VerificationWithDetails {
|
|
|
34
35
|
id: string;
|
|
35
36
|
customerName: string;
|
|
36
37
|
cardNumber: string;
|
|
37
|
-
createdAt:
|
|
38
|
+
createdAt: Date;
|
|
38
39
|
reviewedBy: string;
|
|
39
|
-
status:
|
|
40
|
+
status: VerificationStatus;
|
|
40
41
|
}
|
|
41
42
|
export interface VerificationHistory {
|
|
42
43
|
id: string;
|
|
43
|
-
status:
|
|
44
|
+
status: VerificationStatus;
|
|
44
45
|
reviewerId: string;
|
|
45
|
-
createdAt:
|
|
46
|
+
createdAt: Date;
|
|
46
47
|
}
|
|
47
48
|
export interface GetVerificationDetailsByIdRequest {
|
|
48
49
|
id: string;
|
|
@@ -54,16 +55,16 @@ export interface VerificationDetailsResponse {
|
|
|
54
55
|
selfieWithCardUrl: string;
|
|
55
56
|
selfieWithDocumentUrl: string;
|
|
56
57
|
challenge: string;
|
|
57
|
-
status:
|
|
58
|
+
status: VerificationStatus;
|
|
58
59
|
histories: VerificationHistoryWithAdmin[];
|
|
59
|
-
rejectionReasons:
|
|
60
|
+
rejectionReasons: CardRejectionReason[];
|
|
60
61
|
customRejectionReason: string;
|
|
61
62
|
}
|
|
62
63
|
export interface VerificationHistoryWithAdmin {
|
|
63
64
|
id: string;
|
|
64
|
-
status:
|
|
65
|
+
status: VerificationStatus;
|
|
65
66
|
reviewerId: string;
|
|
66
|
-
createdAt:
|
|
67
|
+
createdAt: Date;
|
|
67
68
|
reviewedBy: string;
|
|
68
69
|
}
|
|
69
70
|
export declare const ADMIN_CARD_VERIFICATION_PACKAGE_NAME = "adminCardVerification";
|
|
@@ -9,25 +9,25 @@ exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME = exports.ADMIN_CARD_VERIFICATION_P
|
|
|
9
9
|
exports.AdminCardVerificationServiceControllerMethods = AdminCardVerificationServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'adminCardVerification';
|
|
13
|
+
exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME = 'adminCardVerification';
|
|
14
14
|
function AdminCardVerificationServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
'initiateCardVerification',
|
|
18
|
+
'updateVerificationStatus',
|
|
19
|
+
'getVerificationsWithCardDetails',
|
|
20
|
+
'getVerificationDetailsById',
|
|
21
21
|
];
|
|
22
22
|
for (const method of grpcMethods) {
|
|
23
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcMethod)(
|
|
24
|
+
(0, microservices_1.GrpcMethod)('AdminCardVerificationService', method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
const grpcStreamMethods = [];
|
|
27
27
|
for (const method of grpcStreamMethods) {
|
|
28
28
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
29
|
+
(0, microservices_1.GrpcStreamMethod)('AdminCardVerificationService', method)(constructor.prototype[method], method, descriptor);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME =
|
|
33
|
+
exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME = 'AdminCardVerificationService';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { Role, Void } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Role, Void } from './common';
|
|
3
|
+
import { UserStatus } from '@postpaybr/contracts/enums';
|
|
4
|
+
export { Void } from './common';
|
|
3
5
|
export declare const protobufPackage = "administrator";
|
|
4
6
|
export interface CreateAdministratorRequest {
|
|
5
7
|
firstName: string;
|
|
@@ -18,8 +20,8 @@ export interface AdministratorResponse {
|
|
|
18
20
|
document: string;
|
|
19
21
|
email: string;
|
|
20
22
|
isAccessRestricted: boolean;
|
|
21
|
-
roles
|
|
22
|
-
status?:
|
|
23
|
+
roles?: Role[] | undefined;
|
|
24
|
+
status?: UserStatus | undefined;
|
|
23
25
|
isSuperAdmin: boolean;
|
|
24
26
|
recipientId: string;
|
|
25
27
|
userId: string;
|
|
@@ -30,9 +32,9 @@ export interface UpdateAdministratorRequest {
|
|
|
30
32
|
firstName?: string | undefined;
|
|
31
33
|
lastName?: string | undefined;
|
|
32
34
|
email?: string | undefined;
|
|
33
|
-
roleIds
|
|
35
|
+
roleIds?: string[] | undefined;
|
|
34
36
|
document?: string | undefined;
|
|
35
|
-
status?:
|
|
37
|
+
status?: UserStatus | undefined;
|
|
36
38
|
}
|
|
37
39
|
export interface GetAllAdministratorsRequest {
|
|
38
40
|
}
|
|
@@ -86,7 +88,7 @@ export interface Recipient {
|
|
|
86
88
|
contactName: string;
|
|
87
89
|
contactEmail: string;
|
|
88
90
|
contactPhone: string;
|
|
89
|
-
isAutomaticAnticipationEnabled
|
|
91
|
+
isAutomaticAnticipationEnabled?: boolean | undefined;
|
|
90
92
|
foundation: string;
|
|
91
93
|
avatarUrl?: string | undefined;
|
|
92
94
|
isActive: boolean;
|
|
@@ -111,7 +113,7 @@ export interface ResendVerificationEmailRequest {
|
|
|
111
113
|
}
|
|
112
114
|
export interface ChangeAdministratorStatusRequest {
|
|
113
115
|
administratorId: string;
|
|
114
|
-
status:
|
|
116
|
+
status: UserStatus;
|
|
115
117
|
}
|
|
116
118
|
export interface ChangeAdministratorStatusResponse {
|
|
117
119
|
success: boolean;
|
|
@@ -9,34 +9,34 @@ exports.ADMINISTRATOR_SERVICE_NAME = exports.ADMINISTRATOR_PACKAGE_NAME = export
|
|
|
9
9
|
exports.AdministratorServiceControllerMethods = AdministratorServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.ADMINISTRATOR_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'administrator';
|
|
13
|
+
exports.ADMINISTRATOR_PACKAGE_NAME = 'administrator';
|
|
14
14
|
function AdministratorServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
'createAdministrator',
|
|
18
|
+
'getAdministratorById',
|
|
19
|
+
'updateAdministrator',
|
|
20
|
+
'getAllAdministrators',
|
|
21
|
+
'validateAndSignIn',
|
|
22
|
+
'verifyTwoFactorAuthentication',
|
|
23
|
+
'refreshAccessToken',
|
|
24
|
+
'handleAdministratorChangePassword',
|
|
25
|
+
'resendVerificationEmail',
|
|
26
|
+
'changeAdministratorStatus',
|
|
27
|
+
'initiateAdministratorChangePassword',
|
|
28
|
+
'getAdministratorName',
|
|
29
|
+
'getAdministratorsByRecipient',
|
|
30
30
|
];
|
|
31
31
|
for (const method of grpcMethods) {
|
|
32
32
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
33
|
-
(0, microservices_1.GrpcMethod)(
|
|
33
|
+
(0, microservices_1.GrpcMethod)('AdministratorService', method)(constructor.prototype[method], method, descriptor);
|
|
34
34
|
}
|
|
35
35
|
const grpcStreamMethods = [];
|
|
36
36
|
for (const method of grpcStreamMethods) {
|
|
37
37
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
38
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
38
|
+
(0, microservices_1.GrpcStreamMethod)('AdministratorService', method)(constructor.prototype[method], method, descriptor);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.ADMINISTRATOR_SERVICE_NAME =
|
|
42
|
+
exports.ADMINISTRATOR_SERVICE_NAME = 'AdministratorService';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnticipationStatus } from '@postpaybr/contracts/types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
export declare const protobufPackage = "anticipation";
|
|
3
4
|
export interface SimulateAnticipationsRequest {
|
|
4
5
|
payableIds: string[];
|
|
@@ -33,11 +34,11 @@ export interface Anticipation {
|
|
|
33
34
|
fee: number;
|
|
34
35
|
baseFee: number;
|
|
35
36
|
feePercentage: number;
|
|
36
|
-
status:
|
|
37
|
+
status: AnticipationStatus;
|
|
37
38
|
externalId?: string | undefined;
|
|
38
39
|
anticipatedDays?: number | undefined;
|
|
39
|
-
createdAt:
|
|
40
|
-
updatedAt:
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
updatedAt: Date;
|
|
41
42
|
payable: Payable | undefined;
|
|
42
43
|
}
|
|
43
44
|
export interface Payable {
|
|
@@ -46,16 +47,16 @@ export interface Payable {
|
|
|
46
47
|
installment: number;
|
|
47
48
|
status: string;
|
|
48
49
|
dueAt: string;
|
|
49
|
-
createdAt:
|
|
50
|
+
createdAt: Date;
|
|
50
51
|
isAnticipated: boolean;
|
|
51
|
-
processedAt:
|
|
52
|
+
processedAt: Date;
|
|
52
53
|
chargeId: string;
|
|
53
54
|
recipientId: string;
|
|
54
55
|
}
|
|
55
56
|
export interface UpdateAnticipationRequest {
|
|
56
57
|
payableId: string;
|
|
57
58
|
externalId?: string | undefined;
|
|
58
|
-
status?:
|
|
59
|
+
status?: AnticipationStatus | undefined;
|
|
59
60
|
amount?: number | undefined;
|
|
60
61
|
netAmount?: number | undefined;
|
|
61
62
|
fee?: number | undefined;
|
|
@@ -9,27 +9,27 @@ exports.ANTICIPATION_SERVICE_NAME = exports.ANTICIPATION_PACKAGE_NAME = exports.
|
|
|
9
9
|
exports.AnticipationServiceControllerMethods = AnticipationServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.ANTICIPATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'anticipation';
|
|
13
|
+
exports.ANTICIPATION_PACKAGE_NAME = 'anticipation';
|
|
14
14
|
function AnticipationServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
'simulateAnticipations',
|
|
18
|
+
'createAnticipations',
|
|
19
|
+
'getAnticipationsByRecipient',
|
|
20
|
+
'getAnticipation',
|
|
21
|
+
'updateAnticipationStatus',
|
|
22
|
+
'updateAnticipation',
|
|
23
23
|
];
|
|
24
24
|
for (const method of grpcMethods) {
|
|
25
25
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
26
|
-
(0, microservices_1.GrpcMethod)(
|
|
26
|
+
(0, microservices_1.GrpcMethod)('AnticipationService', method)(constructor.prototype[method], method, descriptor);
|
|
27
27
|
}
|
|
28
28
|
const grpcStreamMethods = [];
|
|
29
29
|
for (const method of grpcStreamMethods) {
|
|
30
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
31
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
31
|
+
(0, microservices_1.GrpcStreamMethod)('AnticipationService', method)(constructor.prototype[method], method, descriptor);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.ANTICIPATION_SERVICE_NAME =
|
|
35
|
+
exports.ANTICIPATION_SERVICE_NAME = 'AnticipationService';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BankAccountType, HolderType } from
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { Void } from
|
|
1
|
+
import { BankAccountType, HolderType } from '@postpaybr/contracts/enums';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Void } from './common';
|
|
4
4
|
export declare const protobufPackage = "bankAccount";
|
|
5
5
|
export interface CreateBankAccountRequest {
|
|
6
6
|
bankCompeCode: number;
|
|
@@ -8,26 +8,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.BANK_ACCOUNT_SERVICE_NAME = exports.BANK_ACCOUNT_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.BankAccountServiceControllerMethods = BankAccountServiceControllerMethods;
|
|
10
10
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.BANK_ACCOUNT_PACKAGE_NAME =
|
|
11
|
+
exports.protobufPackage = 'bankAccount';
|
|
12
|
+
exports.BANK_ACCOUNT_PACKAGE_NAME = 'bankAccount';
|
|
13
13
|
function BankAccountServiceControllerMethods() {
|
|
14
14
|
return function (constructor) {
|
|
15
15
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
'createBankAccount',
|
|
17
|
+
'getBankAccountByRecipientId',
|
|
18
|
+
'getMainAccount',
|
|
19
|
+
'getAllBankAccounts',
|
|
20
|
+
'getBankAccount',
|
|
21
21
|
];
|
|
22
22
|
for (const method of grpcMethods) {
|
|
23
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcMethod)(
|
|
24
|
+
(0, microservices_1.GrpcMethod)('BankAccountService', method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
const grpcStreamMethods = [];
|
|
27
27
|
for (const method of grpcStreamMethods) {
|
|
28
28
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
29
|
+
(0, microservices_1.GrpcStreamMethod)('BankAccountService', method)(constructor.prototype[method], method, descriptor);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
exports.BANK_ACCOUNT_SERVICE_NAME =
|
|
33
|
+
exports.BANK_ACCOUNT_SERVICE_NAME = 'BankAccountService';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { brandType } from '@postpaybr/contracts/types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
export declare const protobufPackage = "card";
|
|
3
4
|
export interface CreateCardRequest {
|
|
4
5
|
customerId: string;
|
|
@@ -7,7 +8,7 @@ export interface CreateCardRequest {
|
|
|
7
8
|
export interface CreateCardResponse {
|
|
8
9
|
id: string;
|
|
9
10
|
shadowNumber: string;
|
|
10
|
-
brand:
|
|
11
|
+
brand: brandType;
|
|
11
12
|
expiration: string;
|
|
12
13
|
isCredit: boolean;
|
|
13
14
|
isDebit: boolean;
|
|
@@ -31,7 +32,7 @@ export interface UpdateCardNicknameRequest {
|
|
|
31
32
|
export interface UpdateCardNicknameResponse {
|
|
32
33
|
id: string;
|
|
33
34
|
nickname?: string | undefined;
|
|
34
|
-
brand:
|
|
35
|
+
brand: brandType;
|
|
35
36
|
shadowNumber: string;
|
|
36
37
|
vaultToken: string;
|
|
37
38
|
vaultTokenCvv: string;
|
|
@@ -57,7 +58,7 @@ export interface GetCardsByTypeResponse {
|
|
|
57
58
|
export interface CardDetails {
|
|
58
59
|
id: string;
|
|
59
60
|
nickname?: string | undefined;
|
|
60
|
-
brand:
|
|
61
|
+
brand: brandType;
|
|
61
62
|
shadowNumber: string;
|
|
62
63
|
vaultToken: string;
|
|
63
64
|
vaultTokenCvv: string;
|
|
@@ -103,7 +104,7 @@ export interface ValidateCVVResponse {
|
|
|
103
104
|
isValid: boolean;
|
|
104
105
|
remainingAttempts: number;
|
|
105
106
|
isBlocked: boolean;
|
|
106
|
-
blockedUntil?:
|
|
107
|
+
blockedUntil?: Date | undefined;
|
|
107
108
|
}
|
|
108
109
|
export declare const CARD_PACKAGE_NAME = "card";
|
|
109
110
|
export interface CardServiceClient {
|
package/dist/typescript/card.js
CHANGED
|
@@ -9,30 +9,30 @@ exports.CARD_SERVICE_NAME = exports.CARD_PACKAGE_NAME = exports.protobufPackage
|
|
|
9
9
|
exports.CardServiceControllerMethods = CardServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.CARD_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'card';
|
|
13
|
+
exports.CARD_PACKAGE_NAME = 'card';
|
|
14
14
|
function CardServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
'createCard',
|
|
18
|
+
'updateCardNickname',
|
|
19
|
+
'deleteCard',
|
|
20
|
+
'getCardsByType',
|
|
21
|
+
'getVaultCardDetails',
|
|
22
|
+
'getAllCardsByCustomerId',
|
|
23
|
+
'getCardById',
|
|
24
|
+
'validateCardNumber',
|
|
25
|
+
'validateCvv',
|
|
26
26
|
];
|
|
27
27
|
for (const method of grpcMethods) {
|
|
28
28
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcMethod)(
|
|
29
|
+
(0, microservices_1.GrpcMethod)('CardService', method)(constructor.prototype[method], method, descriptor);
|
|
30
30
|
}
|
|
31
31
|
const grpcStreamMethods = [];
|
|
32
32
|
for (const method of grpcStreamMethods) {
|
|
33
33
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
34
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
34
|
+
(0, microservices_1.GrpcStreamMethod)('CardService', method)(constructor.prototype[method], method, descriptor);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
exports.CARD_SERVICE_NAME =
|
|
38
|
+
exports.CARD_SERVICE_NAME = 'CardService';
|