@postpaybr/protos 1.1.11 → 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 +3 -14
- package/dist/typescript/account-entry.js +2 -2
- package/dist/typescript/address.d.ts +1 -1
- package/dist/typescript/address.js +8 -13
- package/dist/typescript/admin-card-verification.d.ts +5 -7
- package/dist/typescript/admin-card-verification.js +3 -2
- package/dist/typescript/administrator.d.ts +10 -15
- package/dist/typescript/administrator.js +3 -2
- package/dist/typescript/anticipation.d.ts +2 -1
- package/dist/typescript/anticipation.js +3 -2
- 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 +3 -6
- package/dist/typescript/bank-account.js +2 -2
- 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 +1 -15
- package/dist/typescript/card.js +3 -2
- package/dist/typescript/charge-schedule.d.ts +3 -15
- package/dist/typescript/charge-schedule.js +8 -8
- package/dist/typescript/charge.d.ts +87 -97
- package/dist/typescript/charge.js +2 -2
- package/dist/typescript/common.d.ts +139 -0
- package/dist/typescript/common.js +11 -0
- package/dist/typescript/context.d.ts +13 -41
- package/dist/typescript/context.js +2 -2
- package/dist/typescript/customer.d.ts +5 -14
- package/dist/typescript/customer.js +2 -2
- package/dist/typescript/daily-balance.d.ts +1 -4
- package/dist/typescript/daily-balance.js +2 -2
- package/dist/typescript/document-verification.d.ts +8 -9
- package/dist/typescript/document-verification.js +3 -2
- package/dist/typescript/email.js +2 -2
- package/dist/typescript/expo-push.d.ts +2 -3
- package/dist/typescript/expo-push.js +8 -8
- package/dist/typescript/fee.d.ts +1 -2
- package/dist/typescript/fee.js +2 -2
- package/dist/typescript/location.d.ts +1 -1
- package/dist/typescript/location.js +8 -8
- package/dist/typescript/notification.d.ts +6 -13
- package/dist/typescript/notification.js +3 -2
- package/dist/typescript/order.d.ts +20 -17
- package/dist/typescript/order.js +3 -2
- package/dist/typescript/payable.d.ts +20 -23
- package/dist/typescript/payable.js +3 -2
- package/dist/typescript/payer.d.ts +1 -1
- package/dist/typescript/payer.js +8 -8
- package/dist/typescript/payment-calculator.d.ts +4 -56
- package/dist/typescript/payment-calculator.js +3 -2
- package/dist/typescript/payment-card.d.ts +12 -70
- package/dist/typescript/payment-card.js +3 -2
- package/dist/typescript/payment-gateway.d.ts +3 -11
- package/dist/typescript/payment-gateway.js +3 -2
- package/dist/typescript/payment-pix.d.ts +4 -78
- package/dist/typescript/payment-pix.js +5 -5
- package/dist/typescript/receipt.d.ts +16 -53
- package/dist/typescript/receipt.js +3 -2
- package/dist/typescript/recipient-payment-gateway.d.ts +8 -15
- package/dist/typescript/recipient-payment-gateway.js +3 -2
- package/dist/typescript/recipient.d.ts +6 -11
- package/dist/typescript/recipient.js +3 -2
- package/dist/typescript/role.d.ts +3 -7
- package/dist/typescript/role.js +3 -2
- package/dist/typescript/sms.d.ts +1 -1
- package/dist/typescript/sms.js +8 -8
- package/dist/typescript/tax.d.ts +16 -66
- package/dist/typescript/tax.js +3 -2
- package/dist/typescript/transfer.d.ts +31 -10
- package/dist/typescript/transfer.js +2 -2
- package/dist/typescript/two-factor.d.ts +7 -7
- package/dist/typescript/two-factor.js +3 -2
- package/dist/typescript/user.d.ts +13 -17
- package/dist/typescript/user.js +2 -2
- 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 +14 -78
- package/src/protos/common.proto +152 -0
- package/src/protos/context.proto +9 -50
- package/src/protos/customer.proto +6 -16
- 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/payable.proto +5 -6
- 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 +14 -65
- 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 +18 -81
- package/src/protos/user.proto +7 -13
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AccountEntryType,
|
|
1
|
+
import { AccountEntryType, GatewayIdentification, PaymentMethods } from '@postpaybr/contracts/types';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { TableFilterParams } from './common';
|
|
3
4
|
export declare const protobufPackage = "accountEntry";
|
|
4
5
|
export interface CreateAccountEntryRequest {
|
|
5
6
|
amount: number;
|
|
@@ -25,14 +26,6 @@ export interface GetEntriesByTransferRequest {
|
|
|
25
26
|
export interface GetEntriesByTransferResponse {
|
|
26
27
|
accountEntries: AccountEntry[];
|
|
27
28
|
}
|
|
28
|
-
export interface TableFilterParams {
|
|
29
|
-
pageIndex?: number;
|
|
30
|
-
pageSize?: number;
|
|
31
|
-
status?: string[];
|
|
32
|
-
globalFilter?: string;
|
|
33
|
-
startDate?: Date;
|
|
34
|
-
endDate?: Date;
|
|
35
|
-
}
|
|
36
29
|
export interface GetEntriesByPeriodRequest {
|
|
37
30
|
recipientId: string;
|
|
38
31
|
filter: TableFilterParams | undefined;
|
|
@@ -57,11 +50,7 @@ export interface Charge {
|
|
|
57
50
|
paymentMethod: PaymentMethods;
|
|
58
51
|
txid: string;
|
|
59
52
|
gatewayId: GatewayIdentification;
|
|
60
|
-
metadata:
|
|
61
|
-
}
|
|
62
|
-
export interface DailyBalance {
|
|
63
|
-
date: Date;
|
|
64
|
-
balance: number;
|
|
53
|
+
metadata: string;
|
|
65
54
|
}
|
|
66
55
|
export declare const ACCOUNT_ENTRY_PACKAGE_NAME = "accountEntry";
|
|
67
56
|
export interface AccountEntryServiceClient {
|
|
@@ -1,8 +1,8 @@
|
|
|
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.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: account-entry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ACCOUNT_ENTRY_SERVICE_NAME = exports.ACCOUNT_ENTRY_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
@@ -1,33 +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 v6.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: address.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ADDRESS_SERVICE_NAME = exports.ADDRESS_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AddressServiceControllerMethods = AddressServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.ADDRESS_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "address";
|
|
13
|
+
exports.ADDRESS_PACKAGE_NAME = "address";
|
|
14
14
|
function AddressServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
17
|
-
'createAddress',
|
|
18
|
-
'getAddressesByAccountId',
|
|
19
|
-
'getAddressById',
|
|
20
|
-
'updateAddress',
|
|
21
|
-
];
|
|
16
|
+
const grpcMethods = ["createAddress", "getAddressesByAccountId", "getAddressById", "updateAddress"];
|
|
22
17
|
for (const method of grpcMethods) {
|
|
23
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AddressService", method)(constructor.prototype[method], method, descriptor);
|
|
25
20
|
}
|
|
26
21
|
const grpcStreamMethods = [];
|
|
27
22
|
for (const method of grpcStreamMethods) {
|
|
28
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("AddressService", method)(constructor.prototype[method], method, descriptor);
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
|
-
exports.ADDRESS_SERVICE_NAME =
|
|
28
|
+
exports.ADDRESS_SERVICE_NAME = "AddressService";
|
|
@@ -10,7 +10,7 @@ export interface CreateCardVerificationRequest {
|
|
|
10
10
|
export interface UpdateVerificationStatusRequest {
|
|
11
11
|
id: string;
|
|
12
12
|
status: VerificationStatus;
|
|
13
|
-
rejectionReasons?: CardRejectionReason[];
|
|
13
|
+
rejectionReasons?: CardRejectionReason[] | undefined;
|
|
14
14
|
customRejectionReason?: string | undefined;
|
|
15
15
|
reviewerId?: string | undefined;
|
|
16
16
|
}
|
|
@@ -20,8 +20,8 @@ export interface CardVerificationResponse {
|
|
|
20
20
|
selfieWithCardUrl: string;
|
|
21
21
|
rejectionReasons: CardRejectionReason[];
|
|
22
22
|
customRejectionReason: string;
|
|
23
|
-
histories
|
|
24
|
-
challenge:
|
|
23
|
+
histories: VerificationHistory[];
|
|
24
|
+
challenge: string;
|
|
25
25
|
}
|
|
26
26
|
export interface GetVerificationsWithCardDetailsRequest {
|
|
27
27
|
status: VerificationStatus;
|
|
@@ -37,7 +37,7 @@ export interface VerificationWithDetails {
|
|
|
37
37
|
cardNumber: string;
|
|
38
38
|
createdAt: Date;
|
|
39
39
|
reviewedBy: string;
|
|
40
|
-
status:
|
|
40
|
+
status: VerificationStatus;
|
|
41
41
|
}
|
|
42
42
|
export interface VerificationHistory {
|
|
43
43
|
id: string;
|
|
@@ -54,7 +54,7 @@ export interface VerificationDetailsResponse {
|
|
|
54
54
|
cardName: string;
|
|
55
55
|
selfieWithCardUrl: string;
|
|
56
56
|
selfieWithDocumentUrl: string;
|
|
57
|
-
challenge:
|
|
57
|
+
challenge: string;
|
|
58
58
|
status: VerificationStatus;
|
|
59
59
|
histories: VerificationHistoryWithAdmin[];
|
|
60
60
|
rejectionReasons: CardRejectionReason[];
|
|
@@ -67,8 +67,6 @@ export interface VerificationHistoryWithAdmin {
|
|
|
67
67
|
createdAt: Date;
|
|
68
68
|
reviewedBy: string;
|
|
69
69
|
}
|
|
70
|
-
export interface Empty {
|
|
71
|
-
}
|
|
72
70
|
export declare const ADMIN_CARD_VERIFICATION_PACKAGE_NAME = "adminCardVerification";
|
|
73
71
|
export interface AdminCardVerificationServiceClient {
|
|
74
72
|
initiateCardVerification(request: CreateCardVerificationRequest): Observable<CardVerificationResponse>;
|
|
@@ -1,12 +1,13 @@
|
|
|
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: admin-card-verification.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME = exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AdminCardVerificationServiceControllerMethods = AdminCardVerificationServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
12
|
exports.protobufPackage = 'adminCardVerification';
|
|
12
13
|
exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME = 'adminCardVerification';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { HolderType, RecipientLegalType, UserStatus } from '@postpaybr/contracts/enums';
|
|
2
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,28 +20,22 @@ export interface AdministratorResponse {
|
|
|
18
20
|
document: string;
|
|
19
21
|
email: string;
|
|
20
22
|
isAccessRestricted: boolean;
|
|
21
|
-
roles?: Role[];
|
|
23
|
+
roles?: Role[] | undefined;
|
|
22
24
|
status?: UserStatus | undefined;
|
|
23
25
|
isSuperAdmin: boolean;
|
|
24
26
|
recipientId: string;
|
|
25
27
|
userId: string;
|
|
26
|
-
twoFactorEnabled?: boolean;
|
|
28
|
+
twoFactorEnabled?: boolean | undefined;
|
|
27
29
|
}
|
|
28
30
|
export interface UpdateAdministratorRequest {
|
|
29
31
|
id: string;
|
|
30
32
|
firstName?: string | undefined;
|
|
31
33
|
lastName?: string | undefined;
|
|
32
34
|
email?: string | undefined;
|
|
33
|
-
roleIds?: string[];
|
|
35
|
+
roleIds?: string[] | undefined;
|
|
34
36
|
document?: string | undefined;
|
|
35
37
|
status?: UserStatus | undefined;
|
|
36
38
|
}
|
|
37
|
-
export interface Role {
|
|
38
|
-
id: string;
|
|
39
|
-
code: string;
|
|
40
|
-
description: string;
|
|
41
|
-
permissions: string[];
|
|
42
|
-
}
|
|
43
39
|
export interface GetAllAdministratorsRequest {
|
|
44
40
|
}
|
|
45
41
|
export interface GetAllAdministratorsResponse {
|
|
@@ -85,13 +81,14 @@ export interface Recipient {
|
|
|
85
81
|
code: string;
|
|
86
82
|
commercialName: string;
|
|
87
83
|
socialReason: string;
|
|
88
|
-
holderType:
|
|
84
|
+
holderType: string;
|
|
89
85
|
document: string;
|
|
90
86
|
cnaeId: string;
|
|
91
|
-
legalType:
|
|
87
|
+
legalType: string;
|
|
92
88
|
contactName: string;
|
|
93
89
|
contactEmail: string;
|
|
94
90
|
contactPhone: string;
|
|
91
|
+
isAutomaticAnticipationEnabled?: boolean | undefined;
|
|
95
92
|
foundation: string;
|
|
96
93
|
avatarUrl?: string | undefined;
|
|
97
94
|
isActive: boolean;
|
|
@@ -114,11 +111,9 @@ export interface handleAdministratorChangePasswordResponse {
|
|
|
114
111
|
export interface ResendVerificationEmailRequest {
|
|
115
112
|
administratorId: string;
|
|
116
113
|
}
|
|
117
|
-
export interface Void {
|
|
118
|
-
}
|
|
119
114
|
export interface ChangeAdministratorStatusRequest {
|
|
120
115
|
administratorId: string;
|
|
121
|
-
status:
|
|
116
|
+
status: UserStatus;
|
|
122
117
|
}
|
|
123
118
|
export interface ChangeAdministratorStatusResponse {
|
|
124
119
|
success: boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
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.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: administrator.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ADMINISTRATOR_SERVICE_NAME = exports.ADMINISTRATOR_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AdministratorServiceControllerMethods = AdministratorServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
12
|
exports.protobufPackage = 'administrator';
|
|
12
13
|
exports.ADMINISTRATOR_PACKAGE_NAME = 'administrator';
|
|
@@ -34,7 +34,7 @@ export interface Anticipation {
|
|
|
34
34
|
fee: number;
|
|
35
35
|
baseFee: number;
|
|
36
36
|
feePercentage: number;
|
|
37
|
-
status:
|
|
37
|
+
status: AnticipationStatus;
|
|
38
38
|
externalId?: string | undefined;
|
|
39
39
|
anticipatedDays?: number | undefined;
|
|
40
40
|
createdAt: Date;
|
|
@@ -58,6 +58,7 @@ export interface UpdateAnticipationRequest {
|
|
|
58
58
|
externalId?: string | undefined;
|
|
59
59
|
status?: AnticipationStatus | undefined;
|
|
60
60
|
amount?: number | undefined;
|
|
61
|
+
netAmount?: number | undefined;
|
|
61
62
|
fee?: number | undefined;
|
|
62
63
|
baseFee?: number | undefined;
|
|
63
64
|
feePercentage?: number | undefined;
|
|
@@ -1,12 +1,13 @@
|
|
|
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: anticipation.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ANTICIPATION_SERVICE_NAME = exports.ANTICIPATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AnticipationServiceControllerMethods = AnticipationServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
12
|
exports.protobufPackage = 'anticipation';
|
|
12
13
|
exports.ANTICIPATION_PACKAGE_NAME = 'anticipation';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "asset";
|
|
3
3
|
export interface WriteFileRequest {
|
|
4
|
-
buffer: Uint8Array;
|
|
5
4
|
mimetype: string;
|
|
6
|
-
|
|
5
|
+
buffer: Uint8Array;
|
|
6
|
+
folder?: string | undefined;
|
|
7
7
|
}
|
|
8
8
|
export interface WriteFileResponse {
|
|
9
9
|
filename: string;
|
package/dist/typescript/asset.js
CHANGED
|
@@ -1,33 +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: asset.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ASSET_SERVICE_NAME = exports.ASSET_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AssetServiceControllerMethods = AssetServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.ASSET_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "asset";
|
|
13
|
+
exports.ASSET_PACKAGE_NAME = "asset";
|
|
14
14
|
function AssetServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
17
|
-
'writeFile',
|
|
18
|
-
'readFile',
|
|
19
|
-
'deleteFile',
|
|
20
|
-
'fileExists',
|
|
21
|
-
];
|
|
16
|
+
const grpcMethods = ["writeFile", "readFile", "deleteFile", "fileExists"];
|
|
22
17
|
for (const method of grpcMethods) {
|
|
23
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AssetService", method)(constructor.prototype[method], method, descriptor);
|
|
25
20
|
}
|
|
26
21
|
const grpcStreamMethods = [];
|
|
27
22
|
for (const method of grpcStreamMethods) {
|
|
28
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("AssetService", method)(constructor.prototype[method], method, descriptor);
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
|
-
exports.ASSET_SERVICE_NAME =
|
|
28
|
+
exports.ASSET_SERVICE_NAME = "AssetService";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "auth";
|
|
3
3
|
export interface SignInRequest {
|
|
4
4
|
id: string;
|
|
@@ -13,7 +13,7 @@ export interface RefreshAccessTokenRequest {
|
|
|
13
13
|
export interface RefreshAccessTokenResponse {
|
|
14
14
|
accessToken: string;
|
|
15
15
|
refreshToken: string;
|
|
16
|
-
accountId?: string;
|
|
16
|
+
accountId?: string | undefined;
|
|
17
17
|
}
|
|
18
18
|
export declare const AUTH_PACKAGE_NAME = "auth";
|
|
19
19
|
export interface AuthServiceClient {
|
package/dist/typescript/auth.js
CHANGED
|
@@ -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: auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.AUTH_SERVICE_NAME = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.AUTH_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "auth";
|
|
13
|
+
exports.AUTH_PACKAGE_NAME = "auth";
|
|
14
14
|
function AuthServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["signIn", "refreshAccessToken"];
|
|
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)("AuthService", 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)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.AUTH_SERVICE_NAME =
|
|
28
|
+
exports.AUTH_SERVICE_NAME = "AuthService";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { BankAccountType, HolderType } from '@postpaybr/contracts/enums';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { Void } from './common';
|
|
3
4
|
export declare const protobufPackage = "bankAccount";
|
|
4
5
|
export interface CreateBankAccountRequest {
|
|
5
6
|
bankCompeCode: number;
|
|
6
7
|
agency: string;
|
|
7
8
|
account: string;
|
|
8
9
|
digitAccount: string;
|
|
9
|
-
|
|
10
|
-
pixKey?: string;
|
|
10
|
+
pixKey?: string | undefined;
|
|
11
11
|
holderType: HolderType;
|
|
12
12
|
accountType: BankAccountType;
|
|
13
|
-
recipientId: string;
|
|
14
13
|
}
|
|
15
14
|
export interface GetBankAccountByRecipientIdRequest {
|
|
16
15
|
recipientId: string;
|
|
@@ -28,7 +27,7 @@ export interface BankAccount {
|
|
|
28
27
|
account: string;
|
|
29
28
|
digitAccount: string;
|
|
30
29
|
balance: number;
|
|
31
|
-
pixKey?: string;
|
|
30
|
+
pixKey?: string | undefined;
|
|
32
31
|
holderType: HolderType;
|
|
33
32
|
accountType: BankAccountType;
|
|
34
33
|
recipientId: string;
|
|
@@ -36,8 +35,6 @@ export interface BankAccount {
|
|
|
36
35
|
export interface BankAccountResponse {
|
|
37
36
|
bankAccount: BankAccount | undefined;
|
|
38
37
|
}
|
|
39
|
-
export interface Void {
|
|
40
|
-
}
|
|
41
38
|
export interface GetBankAccountRequest {
|
|
42
39
|
id: string;
|
|
43
40
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: bank-account.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.BANK_ACCOUNT_SERVICE_NAME = exports.BANK_ACCOUNT_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
@@ -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: card-vault.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CARD_VAULT_SERVICE_NAME = exports.CARD_VAULT_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.CardVaultServiceControllerMethods = CardVaultServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.CARD_VAULT_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "cardVault";
|
|
13
|
+
exports.CARD_VAULT_PACKAGE_NAME = "cardVault";
|
|
14
14
|
function CardVaultServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["getCardDetails", "deleteCard"];
|
|
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)("CardVaultService", 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)("CardVaultService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.CARD_VAULT_SERVICE_NAME =
|
|
28
|
+
exports.CARD_VAULT_SERVICE_NAME = "CardVaultService";
|
|
@@ -1,31 +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: card-verification.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CARD_VERIFICATION_SERVICE_NAME = exports.CARD_VERIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.CardVerificationServiceControllerMethods = CardVerificationServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.CARD_VERIFICATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "cardVerification";
|
|
13
|
+
exports.CARD_VERIFICATION_PACKAGE_NAME = "cardVerification";
|
|
14
14
|
function CardVerificationServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
17
|
-
'createCardVerification',
|
|
18
|
-
'checkVerifyCardCode',
|
|
19
|
-
];
|
|
16
|
+
const grpcMethods = ["createCardVerification", "checkVerifyCardCode"];
|
|
20
17
|
for (const method of grpcMethods) {
|
|
21
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
22
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("CardVerificationService", method)(constructor.prototype[method], method, descriptor);
|
|
23
20
|
}
|
|
24
21
|
const grpcStreamMethods = [];
|
|
25
22
|
for (const method of grpcStreamMethods) {
|
|
26
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
27
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("CardVerificationService", method)(constructor.prototype[method], method, descriptor);
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
27
|
}
|
|
31
|
-
exports.CARD_VERIFICATION_SERVICE_NAME =
|
|
28
|
+
exports.CARD_VERIFICATION_SERVICE_NAME = "CardVerificationService";
|
|
@@ -79,20 +79,6 @@ export interface GetVaultCardDetailsResponse {
|
|
|
79
79
|
token: string;
|
|
80
80
|
cvv: string;
|
|
81
81
|
}
|
|
82
|
-
export interface TokenizeCardRequest {
|
|
83
|
-
ccn: string;
|
|
84
|
-
cvv: string;
|
|
85
|
-
expMonth: number;
|
|
86
|
-
expYear: number;
|
|
87
|
-
cardType: string;
|
|
88
|
-
fullName: string;
|
|
89
|
-
referenceId: string;
|
|
90
|
-
cvvTtl: number;
|
|
91
|
-
}
|
|
92
|
-
export interface TokenizeCardResponse {
|
|
93
|
-
vaultToken: string;
|
|
94
|
-
vaultTokenCvv: string;
|
|
95
|
-
}
|
|
96
82
|
export interface GetAllCardsByCustomerIdRequest {
|
|
97
83
|
customerId: string;
|
|
98
84
|
}
|
|
@@ -118,7 +104,7 @@ export interface ValidateCVVResponse {
|
|
|
118
104
|
isValid: boolean;
|
|
119
105
|
remainingAttempts: number;
|
|
120
106
|
isBlocked: boolean;
|
|
121
|
-
blockedUntil?: Date;
|
|
107
|
+
blockedUntil?: Date | undefined;
|
|
122
108
|
}
|
|
123
109
|
export declare const CARD_PACKAGE_NAME = "card";
|
|
124
110
|
export interface CardServiceClient {
|
package/dist/typescript/card.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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: card.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CARD_SERVICE_NAME = exports.CARD_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.CardServiceControllerMethods = CardServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
12
|
exports.protobufPackage = 'card';
|
|
12
13
|
exports.CARD_PACKAGE_NAME = 'card';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "chargeSchedule";
|
|
3
3
|
export interface CreateChargeScheduleRequest {
|
|
4
4
|
chargeId: string;
|
|
@@ -12,24 +12,12 @@ export interface ChargeSchedule {
|
|
|
12
12
|
executionDate: Date;
|
|
13
13
|
isExecuted: boolean;
|
|
14
14
|
}
|
|
15
|
-
export interface HealthCheckRequest {
|
|
16
|
-
}
|
|
17
|
-
export interface HealthCheckResponse {
|
|
18
|
-
status: string;
|
|
19
|
-
details: {
|
|
20
|
-
[key: string]: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export interface HealthCheckResponse_DetailsEntry {
|
|
24
|
-
key: string;
|
|
25
|
-
value: string;
|
|
26
|
-
}
|
|
27
15
|
export declare const CHARGE_SCHEDULE_PACKAGE_NAME = "chargeSchedule";
|
|
28
16
|
export interface ChargeScheduleServiceClient {
|
|
29
|
-
|
|
17
|
+
createChargeSchedule(request: CreateChargeScheduleRequest): Observable<CreateChargeScheduleResponse>;
|
|
30
18
|
}
|
|
31
19
|
export interface ChargeScheduleServiceController {
|
|
32
|
-
|
|
20
|
+
createChargeSchedule(request: CreateChargeScheduleRequest): Promise<CreateChargeScheduleResponse> | Observable<CreateChargeScheduleResponse> | CreateChargeScheduleResponse;
|
|
33
21
|
}
|
|
34
22
|
export declare function ChargeScheduleServiceControllerMethods(): (constructor: Function) => void;
|
|
35
23
|
export declare const CHARGE_SCHEDULE_SERVICE_NAME = "ChargeScheduleService";
|