@postpaybr/protos 1.1.10 → 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 +4 -3
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Location, Order, Payer, PaymentSchedule, Tax } from "./common";
|
|
3
3
|
export declare const protobufPackage = "context";
|
|
4
4
|
export interface LocationDetails {
|
|
5
5
|
document: string;
|
|
@@ -7,28 +7,6 @@ export interface LocationDetails {
|
|
|
7
7
|
city: number;
|
|
8
8
|
year: number;
|
|
9
9
|
}
|
|
10
|
-
export interface Tax {
|
|
11
|
-
id: string;
|
|
12
|
-
type: TaxTypes;
|
|
13
|
-
status: TaxStatus;
|
|
14
|
-
description: string;
|
|
15
|
-
amount: number;
|
|
16
|
-
year: number;
|
|
17
|
-
dueAt: string;
|
|
18
|
-
documentId: string;
|
|
19
|
-
code: string;
|
|
20
|
-
isSingleQuota: boolean;
|
|
21
|
-
quota?: number | undefined;
|
|
22
|
-
fee: number;
|
|
23
|
-
fine: number;
|
|
24
|
-
discountAmount: number;
|
|
25
|
-
}
|
|
26
|
-
export interface Payer {
|
|
27
|
-
id?: string | undefined;
|
|
28
|
-
name: string;
|
|
29
|
-
document: string;
|
|
30
|
-
phone?: string | undefined;
|
|
31
|
-
}
|
|
32
10
|
export interface MetaAddress {
|
|
33
11
|
street: string;
|
|
34
12
|
complement: string;
|
|
@@ -38,25 +16,27 @@ export interface MetaAddress {
|
|
|
38
16
|
state: string;
|
|
39
17
|
zipCode: string;
|
|
40
18
|
}
|
|
41
|
-
export interface
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
19
|
+
export interface Meta {
|
|
20
|
+
address?: MetaAddress | undefined;
|
|
21
|
+
licensePlate?: string | undefined;
|
|
22
|
+
model?: string | undefined;
|
|
23
|
+
yearManufacture?: number | undefined;
|
|
24
|
+
renavam?: string | undefined;
|
|
45
25
|
}
|
|
46
26
|
export interface TaxDetail {
|
|
47
27
|
tax: Tax | undefined;
|
|
48
28
|
payer: Payer | undefined;
|
|
49
|
-
location:
|
|
50
|
-
metaType:
|
|
51
|
-
meta:
|
|
29
|
+
location: Location | undefined;
|
|
30
|
+
metaType: string;
|
|
31
|
+
meta: Meta | undefined;
|
|
52
32
|
}
|
|
53
33
|
export interface PaymentDetails {
|
|
54
|
-
method:
|
|
34
|
+
method: string;
|
|
55
35
|
amount: number;
|
|
56
36
|
discountPercentage?: number | undefined;
|
|
57
37
|
fee: number;
|
|
58
38
|
discountAmount?: number | undefined;
|
|
59
|
-
gatewayId?:
|
|
39
|
+
gatewayId?: string | undefined;
|
|
60
40
|
card?: Card | undefined;
|
|
61
41
|
paymentSchedule: PaymentSchedule | undefined;
|
|
62
42
|
baseFee: number;
|
|
@@ -66,19 +46,15 @@ export interface PaymentDetails {
|
|
|
66
46
|
orderId?: string | undefined;
|
|
67
47
|
keepData?: boolean | undefined;
|
|
68
48
|
}
|
|
69
|
-
export interface PaymentSchedule {
|
|
70
|
-
type: PaymentScheduleType;
|
|
71
|
-
date?: string | undefined;
|
|
72
|
-
}
|
|
73
49
|
export interface Card {
|
|
74
50
|
id: string;
|
|
75
51
|
shadowNumber: string;
|
|
76
|
-
brand
|
|
52
|
+
brand?: string | undefined;
|
|
77
53
|
installments?: number | undefined;
|
|
78
54
|
installmentValue?: number | undefined;
|
|
79
55
|
}
|
|
80
56
|
export interface Context {
|
|
81
|
-
taxes
|
|
57
|
+
taxes: TaxDetail[];
|
|
82
58
|
location?: LocationDetails | undefined;
|
|
83
59
|
paymentDetails?: PaymentDetails | undefined;
|
|
84
60
|
pushToken?: string | undefined;
|
|
@@ -114,15 +90,9 @@ export interface PostPushTokenRequest {
|
|
|
114
90
|
export interface CheckoutRequest {
|
|
115
91
|
customerId: string;
|
|
116
92
|
}
|
|
117
|
-
export interface Order {
|
|
118
|
-
id: string;
|
|
119
|
-
totalAmount: number;
|
|
120
|
-
status: string;
|
|
121
|
-
createdAt: Date;
|
|
122
|
-
}
|
|
123
93
|
export interface CheckoutResponse {
|
|
124
94
|
order: Order | undefined;
|
|
125
|
-
orderType:
|
|
95
|
+
orderType: string;
|
|
126
96
|
chargeId?: string | undefined;
|
|
127
97
|
}
|
|
128
98
|
export interface PostPaymentDateRequest {
|
|
@@ -1,36 +1,37 @@
|
|
|
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: context.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CONTEXT_SERVICE_NAME = exports.CONTEXT_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.ContextServiceControllerMethods = ContextServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.CONTEXT_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "context";
|
|
13
|
+
exports.CONTEXT_PACKAGE_NAME = "context";
|
|
13
14
|
function ContextServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
"getContext",
|
|
18
|
+
"clearContext",
|
|
19
|
+
"postLocation",
|
|
20
|
+
"postTaxes",
|
|
21
|
+
"postPaymentDetail",
|
|
22
|
+
"postPushToken",
|
|
23
|
+
"checkout",
|
|
24
|
+
"postPaymentDate",
|
|
24
25
|
];
|
|
25
26
|
for (const method of grpcMethods) {
|
|
26
27
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
27
|
-
(0, microservices_1.GrpcMethod)(
|
|
28
|
+
(0, microservices_1.GrpcMethod)("ContextService", method)(constructor.prototype[method], method, descriptor);
|
|
28
29
|
}
|
|
29
30
|
const grpcStreamMethods = [];
|
|
30
31
|
for (const method of grpcStreamMethods) {
|
|
31
32
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
32
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
33
|
+
(0, microservices_1.GrpcStreamMethod)("ContextService", method)(constructor.prototype[method], method, descriptor);
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
exports.CONTEXT_SERVICE_NAME =
|
|
37
|
+
exports.CONTEXT_SERVICE_NAME = "ContextService";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { ImageData, Role } from "./common";
|
|
2
3
|
export declare const protobufPackage = "customer";
|
|
3
4
|
export interface CreateCustomerRequest {
|
|
4
5
|
customer: CustomerSignUp | undefined;
|
|
@@ -130,12 +131,6 @@ export interface UserSignUp {
|
|
|
130
131
|
password: string;
|
|
131
132
|
devices: Device[];
|
|
132
133
|
}
|
|
133
|
-
export interface Role {
|
|
134
|
-
id: string;
|
|
135
|
-
code: string;
|
|
136
|
-
description: string;
|
|
137
|
-
permissions: string[];
|
|
138
|
-
}
|
|
139
134
|
export interface Device {
|
|
140
135
|
token?: string | undefined;
|
|
141
136
|
expoPushToken: string;
|
|
@@ -143,10 +138,10 @@ export interface Device {
|
|
|
143
138
|
export interface GetCustomersWithFiltersRequest {
|
|
144
139
|
pageIndex?: number | undefined;
|
|
145
140
|
pageSize?: number | undefined;
|
|
146
|
-
statuses
|
|
141
|
+
statuses: string[];
|
|
147
142
|
globalFilter?: string | undefined;
|
|
148
|
-
startDate?:
|
|
149
|
-
endDate?:
|
|
143
|
+
startDate?: string | undefined;
|
|
144
|
+
endDate?: string | undefined;
|
|
150
145
|
}
|
|
151
146
|
export interface GetCustomersWithFiltersResponse {
|
|
152
147
|
customers: CustomerWithStatus[];
|
|
@@ -159,10 +154,6 @@ export interface CustomerWithStatus {
|
|
|
159
154
|
phone: string;
|
|
160
155
|
userStatus: string;
|
|
161
156
|
}
|
|
162
|
-
export interface ImageData {
|
|
163
|
-
mimetype: string;
|
|
164
|
-
buffer: Uint8Array;
|
|
165
|
-
}
|
|
166
157
|
export interface InitiateDocumentVerificationRequest {
|
|
167
158
|
customerId: string;
|
|
168
159
|
documentFront: ImageData | undefined;
|
|
@@ -172,7 +163,7 @@ export interface DocumentVerificationResponse {
|
|
|
172
163
|
id: string;
|
|
173
164
|
documentFrontUrl: string;
|
|
174
165
|
selfieWithDocumentUrl: string;
|
|
175
|
-
reviewDeadline
|
|
166
|
+
reviewDeadline: string;
|
|
176
167
|
rejectionReasons: string[];
|
|
177
168
|
customRejectionReason: string;
|
|
178
169
|
}
|
|
@@ -1,43 +1,43 @@
|
|
|
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: customer.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CUSTOMER_SERVICE_NAME = exports.CUSTOMER_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.CustomerServiceControllerMethods = CustomerServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.CUSTOMER_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "customer";
|
|
13
|
+
exports.CUSTOMER_PACKAGE_NAME = "customer";
|
|
14
14
|
function CustomerServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
"createCustomer",
|
|
18
|
+
"checkCustomerExists",
|
|
19
|
+
"getCustomerById",
|
|
20
|
+
"getCustomerByEmail",
|
|
21
|
+
"getVerifiedCustomerByDocument",
|
|
22
|
+
"getProfile",
|
|
23
|
+
"updateCustomer",
|
|
24
|
+
"updateIsEmailVerifiedStatus",
|
|
25
|
+
"changePin",
|
|
26
|
+
"checkIsValidPin",
|
|
27
|
+
"validateAndSignIn",
|
|
28
|
+
"validateAndRefreshToken",
|
|
29
|
+
"getCustomersWithFilters",
|
|
30
|
+
"initiateDocumentVerification",
|
|
31
31
|
];
|
|
32
32
|
for (const method of grpcMethods) {
|
|
33
33
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
34
|
-
(0, microservices_1.GrpcMethod)(
|
|
34
|
+
(0, microservices_1.GrpcMethod)("CustomerService", method)(constructor.prototype[method], method, descriptor);
|
|
35
35
|
}
|
|
36
36
|
const grpcStreamMethods = [];
|
|
37
37
|
for (const method of grpcStreamMethods) {
|
|
38
38
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
39
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
39
|
+
(0, microservices_1.GrpcStreamMethod)("CustomerService", method)(constructor.prototype[method], method, descriptor);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
exports.CUSTOMER_SERVICE_NAME =
|
|
43
|
+
exports.CUSTOMER_SERVICE_NAME = "CustomerService";
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DailyBalance } from "./common";
|
|
2
3
|
export declare const protobufPackage = "dailyBalance";
|
|
3
4
|
export interface GetBalanceHistoryRequest {
|
|
4
5
|
recipientId: string;
|
|
5
|
-
startDate:
|
|
6
|
-
endDate:
|
|
7
|
-
}
|
|
8
|
-
export interface DailyBalance {
|
|
9
|
-
date: Date;
|
|
10
|
-
balance: number;
|
|
6
|
+
startDate: string;
|
|
7
|
+
endDate: string;
|
|
11
8
|
}
|
|
12
9
|
export interface GetBalanceHistoryResponse {
|
|
13
10
|
dailyBalances: DailyBalance[];
|
|
@@ -17,7 +14,7 @@ export interface getCurrentBalanceRequest {
|
|
|
17
14
|
}
|
|
18
15
|
export interface getCurrentBalanceResponse {
|
|
19
16
|
balance: number;
|
|
20
|
-
lastUpdate:
|
|
17
|
+
lastUpdate: string;
|
|
21
18
|
}
|
|
22
19
|
export declare const DAILY_BALANCE_PACKAGE_NAME = "dailyBalance";
|
|
23
20
|
export interface DailyBalanceServiceClient {
|
|
@@ -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 v6.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: daily-balance.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.DAILY_BALANCE_SERVICE_NAME = exports.DAILY_BALANCE_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.DailyBalanceServiceControllerMethods = DailyBalanceServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.DAILY_BALANCE_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "dailyBalance";
|
|
13
|
+
exports.DAILY_BALANCE_PACKAGE_NAME = "dailyBalance";
|
|
14
14
|
function DailyBalanceServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["getBalanceHistory", "getCurrentBalance"];
|
|
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)("DailyBalanceService", 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)("DailyBalanceService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.DAILY_BALANCE_SERVICE_NAME =
|
|
28
|
+
exports.DAILY_BALANCE_SERVICE_NAME = "DailyBalanceService";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Empty } from "./common";
|
|
3
3
|
export declare const protobufPackage = "documentVerification";
|
|
4
4
|
export interface UpdateDocumentVerificationStatusRequest {
|
|
5
5
|
id: string;
|
|
6
|
-
status:
|
|
7
|
-
rejectionReasons
|
|
6
|
+
status: string;
|
|
7
|
+
rejectionReasons: string[];
|
|
8
8
|
customRejectionReason?: string | undefined;
|
|
9
9
|
reviewerId?: string | undefined;
|
|
10
10
|
actedById: string;
|
|
@@ -13,15 +13,15 @@ export interface DocumentVerificationResponse {
|
|
|
13
13
|
id: string;
|
|
14
14
|
documentFrontUrl: string;
|
|
15
15
|
selfieWithDocumentUrl: string;
|
|
16
|
-
rejectionReasons:
|
|
16
|
+
rejectionReasons: string[];
|
|
17
17
|
customRejectionReason: string;
|
|
18
18
|
}
|
|
19
19
|
export interface GetVerificationsWithDetailsRequest {
|
|
20
|
-
status:
|
|
20
|
+
status: string;
|
|
21
21
|
offset?: number | undefined;
|
|
22
22
|
limit?: number | undefined;
|
|
23
|
-
startDate?:
|
|
24
|
-
endDate?:
|
|
23
|
+
startDate?: string | undefined;
|
|
24
|
+
endDate?: string | undefined;
|
|
25
25
|
reviewerIds: string[];
|
|
26
26
|
}
|
|
27
27
|
export interface GetDocumentVerificationsWithDetailsResponse {
|
|
@@ -34,10 +34,10 @@ export interface DocumentVerificationWithDetails {
|
|
|
34
34
|
id: string;
|
|
35
35
|
customerName: string;
|
|
36
36
|
document: string;
|
|
37
|
-
createdAt:
|
|
37
|
+
createdAt: string;
|
|
38
38
|
reviewDeadline: string;
|
|
39
|
-
latestHistoryCreatedAt:
|
|
40
|
-
status:
|
|
39
|
+
latestHistoryCreatedAt: string;
|
|
40
|
+
status: string;
|
|
41
41
|
lastReviewer: Reviewer | undefined;
|
|
42
42
|
}
|
|
43
43
|
export interface GetVerificationDetailsByIdRequest {
|
|
@@ -47,16 +47,16 @@ export interface DocumentVerificationDetailsResponse {
|
|
|
47
47
|
id: string;
|
|
48
48
|
document: string;
|
|
49
49
|
customerName: string;
|
|
50
|
-
createdAt:
|
|
51
|
-
currentStatus:
|
|
50
|
+
createdAt: string;
|
|
51
|
+
currentStatus: string;
|
|
52
52
|
documentFrontUrl?: string | undefined;
|
|
53
53
|
selfieWithDocumentUrl?: string | undefined;
|
|
54
54
|
elapsedBusinessTime?: string | undefined;
|
|
55
55
|
lastReviewer?: Reviewer | undefined;
|
|
56
|
-
histories
|
|
57
|
-
rejectionReasons
|
|
56
|
+
histories: VerificationHistoryWithDetails[];
|
|
57
|
+
rejectionReasons: string[];
|
|
58
58
|
customRejectionReason?: string | undefined;
|
|
59
|
-
finalDecisionAt?:
|
|
59
|
+
finalDecisionAt?: string | undefined;
|
|
60
60
|
}
|
|
61
61
|
export interface Reviewer {
|
|
62
62
|
id: string;
|
|
@@ -64,13 +64,11 @@ export interface Reviewer {
|
|
|
64
64
|
}
|
|
65
65
|
export interface VerificationHistoryWithDetails {
|
|
66
66
|
id: string;
|
|
67
|
-
status:
|
|
68
|
-
createdAt:
|
|
67
|
+
status: string;
|
|
68
|
+
createdAt: string;
|
|
69
69
|
reviewedBy: string;
|
|
70
70
|
actedBy: string;
|
|
71
71
|
}
|
|
72
|
-
export interface Empty {
|
|
73
|
-
}
|
|
74
72
|
export interface CountResponse {
|
|
75
73
|
count: number;
|
|
76
74
|
}
|
|
@@ -1,34 +1,35 @@
|
|
|
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: document-verification.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.DOCUMENT_VERIFICATION_SERVICE_NAME = exports.DOCUMENT_VERIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.DocumentVerificationServiceControllerMethods = DocumentVerificationServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.DOCUMENT_VERIFICATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "documentVerification";
|
|
13
|
+
exports.DOCUMENT_VERIFICATION_PACKAGE_NAME = "documentVerification";
|
|
13
14
|
function DocumentVerificationServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
"updateVerificationStatus",
|
|
18
|
+
"getDocumentVerificationsWithDetails",
|
|
19
|
+
"getDocumentVerificationDetailsById",
|
|
20
|
+
"countPendingOrInProgressVerifications",
|
|
21
|
+
"getDistinctReviewers",
|
|
22
|
+
"undoLastStatusChange",
|
|
22
23
|
];
|
|
23
24
|
for (const method of grpcMethods) {
|
|
24
25
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
25
|
-
(0, microservices_1.GrpcMethod)(
|
|
26
|
+
(0, microservices_1.GrpcMethod)("DocumentVerificationService", method)(constructor.prototype[method], method, descriptor);
|
|
26
27
|
}
|
|
27
28
|
const grpcStreamMethods = [];
|
|
28
29
|
for (const method of grpcStreamMethods) {
|
|
29
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
30
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
31
|
+
(0, microservices_1.GrpcStreamMethod)("DocumentVerificationService", method)(constructor.prototype[method], method, descriptor);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
exports.DOCUMENT_VERIFICATION_SERVICE_NAME =
|
|
35
|
+
exports.DOCUMENT_VERIFICATION_SERVICE_NAME = "DocumentVerificationService";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "email";
|
|
3
3
|
export interface SendVerificationEmailRequest {
|
|
4
4
|
email: string;
|
|
@@ -47,7 +47,7 @@ export interface GetEmailVerificationByTokenResponse {
|
|
|
47
47
|
recipientId: string;
|
|
48
48
|
recipientType: string;
|
|
49
49
|
token: string;
|
|
50
|
-
expiresAt:
|
|
50
|
+
expiresAt: string;
|
|
51
51
|
isVerified: boolean;
|
|
52
52
|
}
|
|
53
53
|
export declare const EMAIL_PACKAGE_NAME = "email";
|
package/dist/typescript/email.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
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: email.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.EMAIL_SERVICE_NAME = exports.EMAIL_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.EmailServiceControllerMethods = EmailServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.EMAIL_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "email";
|
|
13
|
+
exports.EMAIL_PACKAGE_NAME = "email";
|
|
14
14
|
function EmailServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
"sendVerificationEmail",
|
|
18
|
+
"checkVerificationEmail",
|
|
19
|
+
"sendMessageEmail",
|
|
20
|
+
"sendRecoveryPasswordEmail",
|
|
21
|
+
"checkRecoveryPasswordToken",
|
|
22
|
+
"getEmailVerificationByToken",
|
|
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)("EmailService", 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)("EmailService", method)(constructor.prototype[method], method, descriptor);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.EMAIL_SERVICE_NAME =
|
|
35
|
+
exports.EMAIL_SERVICE_NAME = "EmailService";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Empty } from "./common";
|
|
2
3
|
export declare const protobufPackage = "expoPush";
|
|
3
4
|
export interface NotificationDto {
|
|
4
5
|
pushTokens: string[];
|
|
@@ -18,8 +19,6 @@ export interface DataValue {
|
|
|
18
19
|
boolValue?: boolean | undefined;
|
|
19
20
|
floatValue?: number | undefined;
|
|
20
21
|
}
|
|
21
|
-
export interface Empty {
|
|
22
|
-
}
|
|
23
22
|
export declare const EXPO_PUSH_PACKAGE_NAME = "expoPush";
|
|
24
23
|
export interface ExpoPushServiceClient {
|
|
25
24
|
sendNotification(request: NotificationDto): Observable<Empty>;
|
|
@@ -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: expo-push.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.EXPO_PUSH_SERVICE_NAME = exports.EXPO_PUSH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.ExpoPushServiceControllerMethods = ExpoPushServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.EXPO_PUSH_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "expoPush";
|
|
13
|
+
exports.EXPO_PUSH_PACKAGE_NAME = "expoPush";
|
|
14
14
|
function ExpoPushServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["sendNotification"];
|
|
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)("ExpoPushService", 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)("ExpoPushService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.EXPO_PUSH_SERVICE_NAME =
|
|
28
|
+
exports.EXPO_PUSH_SERVICE_NAME = "ExpoPushService";
|
package/dist/typescript/fee.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { brandType, FeeType, PaymentMethods } from
|
|
2
|
-
import { Observable } from
|
|
1
|
+
import { brandType, FeeType, PaymentMethods } from "@postpaybr/contracts/types";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { Void } from "./common";
|
|
3
4
|
export declare const protobufPackage = "fee";
|
|
4
5
|
export interface CreateFeeDto {
|
|
5
6
|
method: PaymentMethods;
|
|
@@ -13,15 +14,15 @@ export interface CreateFeeDto {
|
|
|
13
14
|
brand: brandType;
|
|
14
15
|
}
|
|
15
16
|
export interface UpdateFeeDto {
|
|
16
|
-
method?:
|
|
17
|
-
type?:
|
|
17
|
+
method?: string | undefined;
|
|
18
|
+
type?: string | undefined;
|
|
18
19
|
base?: number | undefined;
|
|
19
20
|
percentage?: number | undefined;
|
|
20
21
|
promotionalBase?: number | undefined;
|
|
21
22
|
promotionalPercentage?: number | undefined;
|
|
22
23
|
description?: string | undefined;
|
|
23
24
|
installment?: number | undefined;
|
|
24
|
-
brand?:
|
|
25
|
+
brand?: string | undefined;
|
|
25
26
|
recipientId: string;
|
|
26
27
|
feeId: string;
|
|
27
28
|
}
|
|
@@ -47,8 +48,6 @@ export interface FeeEntity {
|
|
|
47
48
|
export interface FeeEntityList {
|
|
48
49
|
fees: FeeEntity[];
|
|
49
50
|
}
|
|
50
|
-
export interface Void {
|
|
51
|
-
}
|
|
52
51
|
export declare const FEE_PACKAGE_NAME = "fee";
|
|
53
52
|
export interface FeeServiceClient {
|
|
54
53
|
createFee(request: CreateFeeDto): Observable<FeeEntity>;
|