@postpaybr/protos 1.1.2 → 1.1.5
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/package.json +9 -7
- package/typescript/account-entry.ts +0 -177
- package/typescript/address.ts +0 -133
- package/typescript/admin-card-verification.ts +0 -181
- package/typescript/administrator.ts +0 -375
- package/typescript/anticipation.ts +0 -187
- package/typescript/asset.ts +0 -123
- package/typescript/auth.ts +0 -84
- package/typescript/bank-account.ts +0 -157
- package/typescript/card-vault.ts +0 -92
- package/typescript/card-verification.ts +0 -93
- package/typescript/card.ts +0 -283
- package/typescript/charge-schedule.ts +0 -86
- package/typescript/charge.ts +0 -930
- package/typescript/context.ts +0 -296
- package/typescript/customer.ts +0 -425
- package/typescript/daily-balance.ts +0 -94
- package/typescript/document-verification.ts +0 -219
- package/typescript/email.ts +0 -183
- package/typescript/expo-push.ts +0 -75
- package/typescript/fee.ts +0 -131
- package/typescript/location.ts +0 -96
- package/typescript/notification.ts +0 -372
- package/typescript/order.ts +0 -311
- package/typescript/payable.ts +0 -414
- package/typescript/payer.ts +0 -68
- package/typescript/payment-calculator.ts +0 -252
- package/typescript/payment-card.ts +0 -289
- package/typescript/payment-gateway.ts +0 -209
- package/typescript/payment-pix.ts +0 -170
- package/typescript/receipt.ts +0 -344
- package/typescript/recipient-payment-gateway.ts +0 -209
- package/typescript/recipient.ts +0 -413
- package/typescript/role.ts +0 -144
- package/typescript/sms.ts +0 -96
- package/typescript/tax.ts +0 -463
- package/typescript/transfer.ts +0 -260
- package/typescript/two-factor.ts +0 -177
- package/typescript/user.ts +0 -413
- package/typescript/wallet.ts +0 -63
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postpaybr/protos",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./typescript/index.
|
|
6
|
-
"types": "./typescript/index.ts",
|
|
5
|
+
"main": "./dist/typescript/index.js",
|
|
6
|
+
"types": "./dist/typescript/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"typescript",
|
|
8
|
+
"dist/typescript",
|
|
9
9
|
"*.proto"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"
|
|
12
|
+
"build": "tsc -p tsconfig.json",
|
|
13
|
+
"generate:proto": "cross-var npx protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=typescript -I=. --ts_proto_opt=nestJs=true %npm_config_proto%.proto",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
13
15
|
},
|
|
14
16
|
"dependencies": {
|
|
15
17
|
"@postpaybr/contracts": "latest"
|
|
@@ -20,8 +22,8 @@
|
|
|
20
22
|
"ts-proto": "^2.7.0"
|
|
21
23
|
},
|
|
22
24
|
"exports": {
|
|
23
|
-
".": "./typescript/index.
|
|
24
|
-
"./typescript/*": "./typescript/*",
|
|
25
|
+
".": "./dist/typescript/index.js",
|
|
26
|
+
"./typescript/*": "./dist/typescript/*",
|
|
25
27
|
"./*.proto": "./*.proto"
|
|
26
28
|
}
|
|
27
29
|
}
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.0
|
|
4
|
-
// protoc v6.32.0
|
|
5
|
-
// source: account-entry.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import {
|
|
9
|
-
AccountEntryType,
|
|
10
|
-
ChargeMetadata,
|
|
11
|
-
GatewayIdentification,
|
|
12
|
-
PaymentMethods,
|
|
13
|
-
} from '@postpaybr/contracts/types';
|
|
14
|
-
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
15
|
-
import { Observable } from 'rxjs';
|
|
16
|
-
|
|
17
|
-
export const protobufPackage = 'accountEntry';
|
|
18
|
-
|
|
19
|
-
export interface CreateAccountEntryRequest {
|
|
20
|
-
amount: number;
|
|
21
|
-
type: AccountEntryType;
|
|
22
|
-
description: string;
|
|
23
|
-
bankAccountId: string;
|
|
24
|
-
recipientId: string;
|
|
25
|
-
transferId?: string | undefined;
|
|
26
|
-
chargeId?: string | undefined;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface CreateAccountEntryResponse {
|
|
30
|
-
accountEntry: AccountEntry | undefined;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface CreateAccountEntriesRequest {
|
|
34
|
-
entries: CreateAccountEntryRequest[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface CreateAccountEntriesResponse {
|
|
38
|
-
accountEntries: AccountEntry[];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface GetEntriesByTransferRequest {
|
|
42
|
-
transferId: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface GetEntriesByTransferResponse {
|
|
46
|
-
accountEntries: AccountEntry[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface TableFilterParams {
|
|
50
|
-
pageIndex?: number;
|
|
51
|
-
pageSize?: number;
|
|
52
|
-
status?: string[];
|
|
53
|
-
globalFilter?: string;
|
|
54
|
-
startDate?: Date;
|
|
55
|
-
endDate?: Date;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface GetEntriesByPeriodRequest {
|
|
59
|
-
recipientId: string;
|
|
60
|
-
filter: TableFilterParams | undefined;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface GetEntriesByPeriodResponse {
|
|
64
|
-
accountEntries: AccountEntry[];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface AccountEntry {
|
|
68
|
-
id: string;
|
|
69
|
-
amount: number;
|
|
70
|
-
type: AccountEntryType;
|
|
71
|
-
description: string;
|
|
72
|
-
bankAccountId: string;
|
|
73
|
-
recipientId: string;
|
|
74
|
-
transferId?: string | undefined;
|
|
75
|
-
chargeId?: string | undefined;
|
|
76
|
-
createdAt: Date;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface Charge {
|
|
80
|
-
id: string;
|
|
81
|
-
amount: number;
|
|
82
|
-
paymentMethod: PaymentMethods;
|
|
83
|
-
txid: string;
|
|
84
|
-
gatewayId: GatewayIdentification;
|
|
85
|
-
metadata: ChargeMetadata;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface DailyBalance {
|
|
89
|
-
date: Date;
|
|
90
|
-
balance: number;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export const ACCOUNT_ENTRY_PACKAGE_NAME = 'accountEntry';
|
|
94
|
-
|
|
95
|
-
export interface AccountEntryServiceClient {
|
|
96
|
-
createAccountEntry(
|
|
97
|
-
request: CreateAccountEntryRequest,
|
|
98
|
-
): Observable<CreateAccountEntryResponse>;
|
|
99
|
-
|
|
100
|
-
createAccountEntries(
|
|
101
|
-
request: CreateAccountEntriesRequest,
|
|
102
|
-
): Observable<CreateAccountEntriesResponse>;
|
|
103
|
-
|
|
104
|
-
getEntriesByTransfer(
|
|
105
|
-
request: GetEntriesByTransferRequest,
|
|
106
|
-
): Observable<GetEntriesByTransferResponse>;
|
|
107
|
-
|
|
108
|
-
getEntriesByPeriod(
|
|
109
|
-
request: GetEntriesByPeriodRequest,
|
|
110
|
-
): Observable<GetEntriesByPeriodResponse>;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface AccountEntryServiceController {
|
|
114
|
-
createAccountEntry(
|
|
115
|
-
request: CreateAccountEntryRequest,
|
|
116
|
-
):
|
|
117
|
-
| Promise<CreateAccountEntryResponse>
|
|
118
|
-
| Observable<CreateAccountEntryResponse>
|
|
119
|
-
| CreateAccountEntryResponse;
|
|
120
|
-
|
|
121
|
-
createAccountEntries(
|
|
122
|
-
request: CreateAccountEntriesRequest,
|
|
123
|
-
):
|
|
124
|
-
| Promise<CreateAccountEntriesResponse>
|
|
125
|
-
| Observable<CreateAccountEntriesResponse>
|
|
126
|
-
| CreateAccountEntriesResponse;
|
|
127
|
-
|
|
128
|
-
getEntriesByTransfer(
|
|
129
|
-
request: GetEntriesByTransferRequest,
|
|
130
|
-
):
|
|
131
|
-
| Promise<GetEntriesByTransferResponse>
|
|
132
|
-
| Observable<GetEntriesByTransferResponse>
|
|
133
|
-
| GetEntriesByTransferResponse;
|
|
134
|
-
|
|
135
|
-
getEntriesByPeriod(
|
|
136
|
-
request: GetEntriesByPeriodRequest,
|
|
137
|
-
):
|
|
138
|
-
| Promise<GetEntriesByPeriodResponse>
|
|
139
|
-
| Observable<GetEntriesByPeriodResponse>
|
|
140
|
-
| GetEntriesByPeriodResponse;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export function AccountEntryServiceControllerMethods() {
|
|
144
|
-
return function (constructor: Function) {
|
|
145
|
-
const grpcMethods: string[] = [
|
|
146
|
-
'createAccountEntry',
|
|
147
|
-
'createAccountEntries',
|
|
148
|
-
'getEntriesByTransfer',
|
|
149
|
-
'getEntriesByPeriod',
|
|
150
|
-
];
|
|
151
|
-
for (const method of grpcMethods) {
|
|
152
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
153
|
-
constructor.prototype,
|
|
154
|
-
method,
|
|
155
|
-
);
|
|
156
|
-
GrpcMethod('AccountEntryService', method)(
|
|
157
|
-
constructor.prototype[method],
|
|
158
|
-
method,
|
|
159
|
-
descriptor,
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
const grpcStreamMethods: string[] = [];
|
|
163
|
-
for (const method of grpcStreamMethods) {
|
|
164
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
165
|
-
constructor.prototype,
|
|
166
|
-
method,
|
|
167
|
-
);
|
|
168
|
-
GrpcStreamMethod('AccountEntryService', method)(
|
|
169
|
-
constructor.prototype[method],
|
|
170
|
-
method,
|
|
171
|
-
descriptor,
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export const ACCOUNT_ENTRY_SERVICE_NAME = 'AccountEntryService';
|
package/typescript/address.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.0
|
|
4
|
-
// protoc v6.32.0
|
|
5
|
-
// source: address.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = 'address';
|
|
12
|
-
|
|
13
|
-
export interface Address {
|
|
14
|
-
id: string;
|
|
15
|
-
zipCode: string;
|
|
16
|
-
street: string;
|
|
17
|
-
number: string;
|
|
18
|
-
complement?: string | undefined;
|
|
19
|
-
neighborhood: string;
|
|
20
|
-
city: string;
|
|
21
|
-
state: string;
|
|
22
|
-
nickname?: string | undefined;
|
|
23
|
-
reference?: string | undefined;
|
|
24
|
-
accountId?: string | undefined;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface CreateAddressDto {
|
|
28
|
-
state: string;
|
|
29
|
-
city: string;
|
|
30
|
-
zipCode: string;
|
|
31
|
-
neighborhood: string;
|
|
32
|
-
street: string;
|
|
33
|
-
number: string;
|
|
34
|
-
nickname?: string | undefined;
|
|
35
|
-
complement?: string | undefined;
|
|
36
|
-
reference?: string | undefined;
|
|
37
|
-
accountId?: string | undefined;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface getAddressesByAccountIdRequest {
|
|
41
|
-
accountId: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface GetAddressByIdRequest {
|
|
45
|
-
accountId: string;
|
|
46
|
-
id: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface AddressList {
|
|
50
|
-
addresses: Address[];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface UpdateAddressRequest {
|
|
54
|
-
id: string;
|
|
55
|
-
state?: string | undefined;
|
|
56
|
-
city?: string | undefined;
|
|
57
|
-
zipCode?: string | undefined;
|
|
58
|
-
neighborhood?: string | undefined;
|
|
59
|
-
street?: string | undefined;
|
|
60
|
-
number?: string | undefined;
|
|
61
|
-
nickname?: string | undefined;
|
|
62
|
-
complement?: string | undefined;
|
|
63
|
-
reference?: string | undefined;
|
|
64
|
-
accountId?: string | undefined;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export const ADDRESS_PACKAGE_NAME = 'address';
|
|
68
|
-
|
|
69
|
-
export interface AddressServiceClient {
|
|
70
|
-
createAddress(request: CreateAddressDto): Observable<Address>;
|
|
71
|
-
|
|
72
|
-
getAddressesByAccountId(
|
|
73
|
-
request: getAddressesByAccountIdRequest,
|
|
74
|
-
): Observable<AddressList>;
|
|
75
|
-
|
|
76
|
-
getAddressById(request: GetAddressByIdRequest): Observable<Address>;
|
|
77
|
-
|
|
78
|
-
updateAddress(request: UpdateAddressRequest): Observable<Address>;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface AddressServiceController {
|
|
82
|
-
createAddress(
|
|
83
|
-
request: CreateAddressDto,
|
|
84
|
-
): Promise<Address> | Observable<Address> | Address;
|
|
85
|
-
|
|
86
|
-
getAddressesByAccountId(
|
|
87
|
-
request: getAddressesByAccountIdRequest,
|
|
88
|
-
): Promise<AddressList> | Observable<AddressList> | AddressList;
|
|
89
|
-
|
|
90
|
-
getAddressById(
|
|
91
|
-
request: GetAddressByIdRequest,
|
|
92
|
-
): Promise<Address> | Observable<Address> | Address;
|
|
93
|
-
|
|
94
|
-
updateAddress(
|
|
95
|
-
request: UpdateAddressRequest,
|
|
96
|
-
): Promise<Address> | Observable<Address> | Address;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function AddressServiceControllerMethods() {
|
|
100
|
-
return function (constructor: Function) {
|
|
101
|
-
const grpcMethods: string[] = [
|
|
102
|
-
'createAddress',
|
|
103
|
-
'getAddressesByAccountId',
|
|
104
|
-
'getAddressById',
|
|
105
|
-
'updateAddress',
|
|
106
|
-
];
|
|
107
|
-
for (const method of grpcMethods) {
|
|
108
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
109
|
-
constructor.prototype,
|
|
110
|
-
method,
|
|
111
|
-
);
|
|
112
|
-
GrpcMethod('AddressService', method)(
|
|
113
|
-
constructor.prototype[method],
|
|
114
|
-
method,
|
|
115
|
-
descriptor,
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
const grpcStreamMethods: string[] = [];
|
|
119
|
-
for (const method of grpcStreamMethods) {
|
|
120
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
121
|
-
constructor.prototype,
|
|
122
|
-
method,
|
|
123
|
-
);
|
|
124
|
-
GrpcStreamMethod('AddressService', method)(
|
|
125
|
-
constructor.prototype[method],
|
|
126
|
-
method,
|
|
127
|
-
descriptor,
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export const ADDRESS_SERVICE_NAME = 'AddressService';
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.0
|
|
4
|
-
// protoc v3.20.3
|
|
5
|
-
// source: admin-card-verification.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import {
|
|
9
|
-
CardChallenge,
|
|
10
|
-
CardRejectionReason,
|
|
11
|
-
VerificationStatus,
|
|
12
|
-
} from '@postpaybr/contracts/types';
|
|
13
|
-
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
14
|
-
import { Observable } from 'rxjs';
|
|
15
|
-
|
|
16
|
-
export const protobufPackage = 'adminCardVerification';
|
|
17
|
-
|
|
18
|
-
export interface CreateCardVerificationRequest {
|
|
19
|
-
customerId: string;
|
|
20
|
-
cardId: string;
|
|
21
|
-
selfieWithCardUrl: string;
|
|
22
|
-
challenge: CardChallenge;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface UpdateVerificationStatusRequest {
|
|
26
|
-
id: string;
|
|
27
|
-
status: VerificationStatus;
|
|
28
|
-
rejectionReasons?: CardRejectionReason[];
|
|
29
|
-
customRejectionReason?: string | undefined;
|
|
30
|
-
reviewerId?: string | undefined;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface CardVerificationResponse {
|
|
34
|
-
id: string;
|
|
35
|
-
cardId: string;
|
|
36
|
-
selfieWithCardUrl: string;
|
|
37
|
-
rejectionReasons: CardRejectionReason[];
|
|
38
|
-
customRejectionReason: string;
|
|
39
|
-
histories?: VerificationHistory[];
|
|
40
|
-
challenge: CardChallenge;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface GetVerificationsWithCardDetailsRequest {
|
|
44
|
-
status: VerificationStatus;
|
|
45
|
-
offset?: number | undefined;
|
|
46
|
-
limit?: number | undefined;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface GetAllVerificationsWithDetailsResponse {
|
|
50
|
-
verifications: VerificationWithDetails[];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface VerificationWithDetails {
|
|
54
|
-
id: string;
|
|
55
|
-
customerName: string;
|
|
56
|
-
cardNumber: string;
|
|
57
|
-
createdAt: Date;
|
|
58
|
-
reviewedBy: string;
|
|
59
|
-
status: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface VerificationHistory {
|
|
63
|
-
id: string;
|
|
64
|
-
status: VerificationStatus;
|
|
65
|
-
reviewerId: string;
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface GetVerificationDetailsByIdRequest {
|
|
70
|
-
id: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface VerificationDetailsResponse {
|
|
74
|
-
id: string;
|
|
75
|
-
cardNumber: string;
|
|
76
|
-
cardName: string;
|
|
77
|
-
selfieWithCardUrl: string;
|
|
78
|
-
selfieWithDocumentUrl: string;
|
|
79
|
-
challenge: CardChallenge;
|
|
80
|
-
status: VerificationStatus;
|
|
81
|
-
histories: VerificationHistoryWithAdmin[];
|
|
82
|
-
rejectionReasons: CardRejectionReason[];
|
|
83
|
-
customRejectionReason: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface VerificationHistoryWithAdmin {
|
|
87
|
-
id: string;
|
|
88
|
-
status: VerificationStatus;
|
|
89
|
-
reviewerId: string;
|
|
90
|
-
createdAt: Date;
|
|
91
|
-
reviewedBy: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface Empty {}
|
|
95
|
-
|
|
96
|
-
export const ADMIN_CARD_VERIFICATION_PACKAGE_NAME = 'adminCardVerification';
|
|
97
|
-
|
|
98
|
-
export interface AdminCardVerificationServiceClient {
|
|
99
|
-
initiateCardVerification(
|
|
100
|
-
request: CreateCardVerificationRequest,
|
|
101
|
-
): Observable<CardVerificationResponse>;
|
|
102
|
-
|
|
103
|
-
updateVerificationStatus(
|
|
104
|
-
request: UpdateVerificationStatusRequest,
|
|
105
|
-
): Observable<CardVerificationResponse>;
|
|
106
|
-
|
|
107
|
-
getVerificationsWithCardDetails(
|
|
108
|
-
request: GetVerificationsWithCardDetailsRequest,
|
|
109
|
-
): Observable<GetAllVerificationsWithDetailsResponse>;
|
|
110
|
-
|
|
111
|
-
getVerificationDetailsById(
|
|
112
|
-
request: GetVerificationDetailsByIdRequest,
|
|
113
|
-
): Observable<VerificationDetailsResponse>;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface AdminCardVerificationServiceController {
|
|
117
|
-
initiateCardVerification(
|
|
118
|
-
request: CreateCardVerificationRequest,
|
|
119
|
-
):
|
|
120
|
-
| Promise<CardVerificationResponse>
|
|
121
|
-
| Observable<CardVerificationResponse>
|
|
122
|
-
| CardVerificationResponse;
|
|
123
|
-
|
|
124
|
-
updateVerificationStatus(
|
|
125
|
-
request: UpdateVerificationStatusRequest,
|
|
126
|
-
):
|
|
127
|
-
| Promise<CardVerificationResponse>
|
|
128
|
-
| Observable<CardVerificationResponse>
|
|
129
|
-
| CardVerificationResponse;
|
|
130
|
-
|
|
131
|
-
getVerificationsWithCardDetails(
|
|
132
|
-
request: GetVerificationsWithCardDetailsRequest,
|
|
133
|
-
):
|
|
134
|
-
| Promise<GetAllVerificationsWithDetailsResponse>
|
|
135
|
-
| Observable<GetAllVerificationsWithDetailsResponse>
|
|
136
|
-
| GetAllVerificationsWithDetailsResponse;
|
|
137
|
-
|
|
138
|
-
getVerificationDetailsById(
|
|
139
|
-
request: GetVerificationDetailsByIdRequest,
|
|
140
|
-
):
|
|
141
|
-
| Promise<VerificationDetailsResponse>
|
|
142
|
-
| Observable<VerificationDetailsResponse>
|
|
143
|
-
| VerificationDetailsResponse;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export function AdminCardVerificationServiceControllerMethods() {
|
|
147
|
-
return function (constructor: Function) {
|
|
148
|
-
const grpcMethods: string[] = [
|
|
149
|
-
'initiateCardVerification',
|
|
150
|
-
'updateVerificationStatus',
|
|
151
|
-
'getVerificationsWithCardDetails',
|
|
152
|
-
'getVerificationDetailsById',
|
|
153
|
-
];
|
|
154
|
-
for (const method of grpcMethods) {
|
|
155
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
156
|
-
constructor.prototype,
|
|
157
|
-
method,
|
|
158
|
-
);
|
|
159
|
-
GrpcMethod('AdminCardVerificationService', method)(
|
|
160
|
-
constructor.prototype[method],
|
|
161
|
-
method,
|
|
162
|
-
descriptor,
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
const grpcStreamMethods: string[] = [];
|
|
166
|
-
for (const method of grpcStreamMethods) {
|
|
167
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(
|
|
168
|
-
constructor.prototype,
|
|
169
|
-
method,
|
|
170
|
-
);
|
|
171
|
-
GrpcStreamMethod('AdminCardVerificationService', method)(
|
|
172
|
-
constructor.prototype[method],
|
|
173
|
-
method,
|
|
174
|
-
descriptor,
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export const ADMIN_CARD_VERIFICATION_SERVICE_NAME =
|
|
181
|
-
'AdminCardVerificationService';
|