@postpaybr/protos 1.1.0
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 +28 -0
- package/src/account-entry.proto +86 -0
- package/src/address.proto +64 -0
- package/src/admin-card-verification.proto +90 -0
- package/src/administrator.proto +192 -0
- package/src/anticipation.proto +86 -0
- package/src/asset.proto +44 -0
- package/src/auth.proto +29 -0
- package/src/bank-account.proto +62 -0
- package/src/card-vault.proto +36 -0
- package/src/card-verification.proto +30 -0
- package/src/card.proto +138 -0
- package/src/charge-schedule.proto +22 -0
- package/src/charge.proto +610 -0
- package/src/context.proto +174 -0
- package/src/customer.proto +234 -0
- package/src/daily-balance.proto +32 -0
- package/src/document-verification.proto +111 -0
- package/src/email.proto +76 -0
- package/src/expo-push.proto +27 -0
- package/src/fee.proto +65 -0
- package/src/location.proto +40 -0
- package/src/notification.proto +207 -0
- package/src/order.proto +189 -0
- package/src/payable.proto +246 -0
- package/src/payer.proto +24 -0
- package/src/payment-calculator.proto +165 -0
- package/src/payment-card.proto +217 -0
- package/src/payment-gateway.proto +94 -0
- package/src/payment-pix.proto +115 -0
- package/src/receipt.proto +212 -0
- package/src/recipient-payment-gateway.proto +101 -0
- package/src/recipient.proto +237 -0
- package/src/role.proto +57 -0
- package/src/sms.proto +36 -0
- package/src/tax.proto +323 -0
- package/src/transfer.proto +206 -0
- package/src/two-factor.proto +67 -0
- package/src/typescript/account-entry.ts +177 -0
- package/src/typescript/address.ts +133 -0
- package/src/typescript/admin-card-verification.ts +181 -0
- package/src/typescript/administrator.ts +375 -0
- package/src/typescript/anticipation.ts +187 -0
- package/src/typescript/asset.ts +123 -0
- package/src/typescript/auth.ts +84 -0
- package/src/typescript/bank-account.ts +157 -0
- package/src/typescript/card-vault.ts +92 -0
- package/src/typescript/card-verification.ts +93 -0
- package/src/typescript/card.ts +283 -0
- package/src/typescript/charge-schedule.ts +86 -0
- package/src/typescript/charge.ts +930 -0
- package/src/typescript/context.ts +296 -0
- package/src/typescript/customer.ts +425 -0
- package/src/typescript/daily-balance.ts +94 -0
- package/src/typescript/document-verification.ts +219 -0
- package/src/typescript/email.ts +183 -0
- package/src/typescript/expo-push.ts +75 -0
- package/src/typescript/fee.ts +131 -0
- package/src/typescript/location.ts +96 -0
- package/src/typescript/notification.ts +372 -0
- package/src/typescript/order.ts +311 -0
- package/src/typescript/payable.ts +414 -0
- package/src/typescript/payer.ts +68 -0
- package/src/typescript/payment-calculator.ts +252 -0
- package/src/typescript/payment-card.ts +290 -0
- package/src/typescript/payment-gateway.ts +209 -0
- package/src/typescript/payment-pix.ts +170 -0
- package/src/typescript/receipt.ts +344 -0
- package/src/typescript/recipient-payment-gateway.ts +209 -0
- package/src/typescript/recipient.ts +413 -0
- package/src/typescript/role.ts +144 -0
- package/src/typescript/sms.ts +96 -0
- package/src/typescript/tax.ts +463 -0
- package/src/typescript/transfer.ts +260 -0
- package/src/typescript/two-factor.ts +177 -0
- package/src/typescript/user.ts +413 -0
- package/src/typescript/wallet.ts +63 -0
- package/src/user.proto +214 -0
- package/src/wallet.proto +18 -0
package/src/tax.proto
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package tax;
|
|
4
|
+
|
|
5
|
+
service TaxService {
|
|
6
|
+
rpc CreateTax (TaxPayloadRequest) returns (TaxEntity);
|
|
7
|
+
rpc GetTaxesGroupedByPayerLocation (LocationDetailsDto) returns (GroupedPropertyDetails);
|
|
8
|
+
rpc GetTaxesGroupedByDocumentId (TaxByDocumentIdRequest) returns (GroupedPropertyDetails);
|
|
9
|
+
rpc getTaxesByDocumentId (TaxByDocumentIdRequest) returns (TaxDetails);
|
|
10
|
+
rpc getTaxesByDocumentIdAndType (TaxByDocumentIdAndTypeRequest) returns (TaxDetail);
|
|
11
|
+
rpc groupTaxesByDocumentId (TaxesRequest) returns (TaxDetails);
|
|
12
|
+
rpc getTaxDetailsById (TaxByIdRequest) returns (TaxEntity);
|
|
13
|
+
|
|
14
|
+
rpc getTaxDescription (TaxByIdRequest) returns (TaxDescriptionResponse);
|
|
15
|
+
rpc updateTaxReceiptId (UpdateTaxReceiptIdRequest) returns (TaxEntity);
|
|
16
|
+
rpc updateTaxStatus (UpdateTaxStatusRequest) returns (TaxEntity);
|
|
17
|
+
rpc GetAllTaxes (GetAllTaxesRequest) returns (GetAllTaxesResponse);
|
|
18
|
+
rpc GetCompleteTaxDetailsById (TaxByIdRequest) returns (CompleteTaxDetailsResponse);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message Payer {
|
|
22
|
+
optional string id = 1;
|
|
23
|
+
string name = 2;
|
|
24
|
+
string document = 3;
|
|
25
|
+
optional string phone = 4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message LocationDetailsDto {
|
|
29
|
+
string document = 1;
|
|
30
|
+
int32 city = 2;
|
|
31
|
+
int32 state = 3;
|
|
32
|
+
int32 year = 4;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message completeTax {
|
|
36
|
+
string id = 1;
|
|
37
|
+
string type = 2;
|
|
38
|
+
string status = 3;
|
|
39
|
+
string description = 4;
|
|
40
|
+
double amount = 5;
|
|
41
|
+
int32 year = 6;
|
|
42
|
+
string dueAt = 7;
|
|
43
|
+
string documentId = 8;
|
|
44
|
+
string code = 9;
|
|
45
|
+
bool isSingleQuota = 10;
|
|
46
|
+
optional int32 quota = 11;
|
|
47
|
+
double discountAmount = 12;
|
|
48
|
+
double fee = 13;
|
|
49
|
+
double fine = 14;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message TaxPayload {
|
|
53
|
+
completeTax tax = 1;
|
|
54
|
+
Payer payer = 2;
|
|
55
|
+
Location location = 3;
|
|
56
|
+
string metaType = 4;
|
|
57
|
+
Meta meta = 5;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message Tax {
|
|
61
|
+
string id = 1;
|
|
62
|
+
string type = 2;
|
|
63
|
+
string description = 4;
|
|
64
|
+
int32 year = 6;
|
|
65
|
+
string documentId = 8;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message Location {
|
|
69
|
+
int32 state = 1;
|
|
70
|
+
int32 city = 2;
|
|
71
|
+
string recipientId = 3;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message Meta {
|
|
75
|
+
optional Address address = 1;
|
|
76
|
+
optional string licensePlate = 2;
|
|
77
|
+
optional string model = 3;
|
|
78
|
+
optional int32 yearManufacture = 4;
|
|
79
|
+
optional string renavam = 5;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message Address {
|
|
83
|
+
string street = 1;
|
|
84
|
+
string number = 2;
|
|
85
|
+
string complement = 3;
|
|
86
|
+
string neighborhood = 4;
|
|
87
|
+
string city = 5;
|
|
88
|
+
string state = 6;
|
|
89
|
+
string zipCode = 7;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message Property {
|
|
93
|
+
optional string documentId = 1;
|
|
94
|
+
optional Address address = 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message TaxDetail {
|
|
98
|
+
Tax tax = 1;
|
|
99
|
+
Payer payer = 2;
|
|
100
|
+
Location location = 3;
|
|
101
|
+
string metaType = 4;
|
|
102
|
+
Meta meta = 5;
|
|
103
|
+
repeated TaxItem items = 6;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message TaxItem {
|
|
107
|
+
string id = 1;
|
|
108
|
+
string code = 2;
|
|
109
|
+
int32 quota = 3;
|
|
110
|
+
string dueAt = 4;
|
|
111
|
+
double amount = 5;
|
|
112
|
+
bool isSingleQuota = 6;
|
|
113
|
+
string status = 7;
|
|
114
|
+
double discountPercentage = 8;
|
|
115
|
+
double discountAmount = 9;
|
|
116
|
+
double fee = 10;
|
|
117
|
+
double fine = 11;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message PropertyDetail {
|
|
121
|
+
Property property = 1;
|
|
122
|
+
Payer payer = 2;
|
|
123
|
+
repeated string taxTypes = 3;
|
|
124
|
+
optional double pendingTaxesAmount = 4;
|
|
125
|
+
optional double paidTaxesAmount = 5;
|
|
126
|
+
optional double overdueTaxesAmount = 6;
|
|
127
|
+
optional string lastPaidTaxDate = 7;
|
|
128
|
+
optional string nextDueDate = 8;
|
|
129
|
+
repeated TaxDueDate nearDueTaxesDates = 9;
|
|
130
|
+
repeated TaxDueDate overdueTaxesDates = 10;
|
|
131
|
+
optional string receiptId = 11;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
message TaxDueDate {
|
|
135
|
+
string id = 1;
|
|
136
|
+
string dueDate = 2;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message TaxPayloadRequest {
|
|
140
|
+
TaxPayload data = 1;
|
|
141
|
+
Payer payer = 2;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message TaxByDocumentIdRequest {
|
|
145
|
+
string documentId = 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message TaxByDocumentIdAndTypeRequest {
|
|
149
|
+
string documentId = 1;
|
|
150
|
+
string type = 2;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message TaxByIdRequest {
|
|
154
|
+
string id = 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message GroupedPropertyDetails {
|
|
158
|
+
repeated PropertyDetail properties = 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message TaxDetails {
|
|
162
|
+
repeated TaxDetail taxes = 1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
message TaxEntity {
|
|
166
|
+
string id = 1;
|
|
167
|
+
string type = 2;
|
|
168
|
+
string status = 3;
|
|
169
|
+
string description = 4;
|
|
170
|
+
double amount = 5;
|
|
171
|
+
int32 year = 6;
|
|
172
|
+
string dueAt = 7;
|
|
173
|
+
string documentId = 8;
|
|
174
|
+
string code = 9;
|
|
175
|
+
bool isSingleQuota = 10;
|
|
176
|
+
int32 quota = 11;
|
|
177
|
+
double fee = 12;
|
|
178
|
+
double fine = 13;
|
|
179
|
+
double discountPercentage = 14;
|
|
180
|
+
double discountAmount = 15;
|
|
181
|
+
int32 state = 16;
|
|
182
|
+
int32 city = 17;
|
|
183
|
+
string recipientId = 18;
|
|
184
|
+
string metaType = 19;
|
|
185
|
+
optional Meta meta = 20;
|
|
186
|
+
|
|
187
|
+
optional PayerEntity payer = 21;
|
|
188
|
+
OrderItemEntity orderItem = 22;
|
|
189
|
+
optional Receipt receipt = 23;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message Charge {
|
|
193
|
+
string id = 1;
|
|
194
|
+
double amount = 2;
|
|
195
|
+
string paymentMethod = 3;
|
|
196
|
+
string status = 4;
|
|
197
|
+
optional string dueAt = 5;
|
|
198
|
+
optional string txid = 6;
|
|
199
|
+
optional string brcode = 7;
|
|
200
|
+
optional int32 installmentNumber = 8;
|
|
201
|
+
optional double installmentValue = 9;
|
|
202
|
+
string createdAt = 10;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message PayerEntity {
|
|
206
|
+
string id = 1;
|
|
207
|
+
string name = 2;
|
|
208
|
+
string document = 3;
|
|
209
|
+
string phone = 4;
|
|
210
|
+
repeated Tax taxes = 5;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message Receipt {
|
|
214
|
+
string id = 1;
|
|
215
|
+
double amount = 2;
|
|
216
|
+
string protocol = 3;
|
|
217
|
+
optional string txid = 4;
|
|
218
|
+
string createdAt = 5;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message OrderItemEntity {
|
|
222
|
+
string id = 1;
|
|
223
|
+
Recipient recipient = 2;
|
|
224
|
+
Tax tax = 3;
|
|
225
|
+
Order order = 4;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
message Order {
|
|
229
|
+
string id = 1;
|
|
230
|
+
double totalAmount = 2;
|
|
231
|
+
string status = 3;
|
|
232
|
+
string createdAt = 4;
|
|
233
|
+
repeated OrderItemEntity items = 5;
|
|
234
|
+
repeated Charge charges = 6;
|
|
235
|
+
Customer customer = 7;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
message Customer {
|
|
239
|
+
string id = 1;
|
|
240
|
+
string firstName = 2;
|
|
241
|
+
string lastName = 3;
|
|
242
|
+
string document = 4;
|
|
243
|
+
string email = 5;
|
|
244
|
+
bool isEmailVerified = 6;
|
|
245
|
+
string phone = 7;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
message Recipient {
|
|
249
|
+
string id = 1;
|
|
250
|
+
string code = 2;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
message TaxesRequest {
|
|
254
|
+
repeated TaxEntity taxes = 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
message TaxDescriptionResponse {
|
|
259
|
+
string description = 1;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message UpdateTaxReceiptIdRequest {
|
|
263
|
+
string id = 1;
|
|
264
|
+
string receiptId = 2;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
message UpdateTaxStatusRequest {
|
|
268
|
+
string id = 1;
|
|
269
|
+
string status = 2;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
message GetAllTaxesRequest {
|
|
273
|
+
optional GetAllTaxesDto data = 1;
|
|
274
|
+
PaginationFilterDto pagination = 2;
|
|
275
|
+
DateFilterDto date = 3;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
message GetAllTaxesDto {
|
|
279
|
+
optional string recipientId = 1;
|
|
280
|
+
repeated string types = 2;
|
|
281
|
+
repeated string statuses = 3;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
message PaginationFilterDto {
|
|
285
|
+
optional int32 limit = 1;
|
|
286
|
+
optional int32 offset = 2;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
message DateFilterDto {
|
|
290
|
+
optional string startDate = 1;
|
|
291
|
+
optional string endDate = 2;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
message GetAllTaxesResponse {
|
|
295
|
+
repeated TaxEntity taxes = 1;
|
|
296
|
+
int32 count = 2;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
message CompleteTaxDetailsResponse {
|
|
300
|
+
TaxEntity tax = 1;
|
|
301
|
+
optional ChargeDetails charge = 2;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
message ChargeDetails {
|
|
305
|
+
string id = 1;
|
|
306
|
+
double amount = 2;
|
|
307
|
+
string paymentMethod = 3;
|
|
308
|
+
string status = 4;
|
|
309
|
+
string dueAt = 5;
|
|
310
|
+
optional string txid = 6;
|
|
311
|
+
optional string brcode = 7;
|
|
312
|
+
optional int32 installmentNumber = 8;
|
|
313
|
+
optional double installmentValue = 9;
|
|
314
|
+
double fee = 10;
|
|
315
|
+
double baseFee = 11;
|
|
316
|
+
double feePercentage = 12;
|
|
317
|
+
double discountPercentage = 13;
|
|
318
|
+
double discountAmount = 14;
|
|
319
|
+
string createdAt = 15;
|
|
320
|
+
string gatewayId = 16;
|
|
321
|
+
optional string failureReason = 17;
|
|
322
|
+
optional string failureDetails = 18;
|
|
323
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package transfer;
|
|
4
|
+
|
|
5
|
+
service TransferService {
|
|
6
|
+
rpc updateTransferStatus (UpdateTransferStatusRequest) returns (UpdateTransferStatusResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message UpdateTransferStatusRequest {
|
|
10
|
+
string transferId = 1;
|
|
11
|
+
string status = 2;
|
|
12
|
+
map<string, string> responsePayload = 3;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message UpdateTransferStatusResponse {
|
|
16
|
+
bool success = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message Transfer {
|
|
20
|
+
string id = 1;
|
|
21
|
+
double amount = 2;
|
|
22
|
+
string type = 3;
|
|
23
|
+
string recipientId = 4;
|
|
24
|
+
string chargeId = 5;
|
|
25
|
+
string description = 6;
|
|
26
|
+
string status = 7;
|
|
27
|
+
string processedAt = 8;
|
|
28
|
+
string gatewayId = 9;
|
|
29
|
+
string bankAccountId = 10;
|
|
30
|
+
map<string, string> requestPayload = 11;
|
|
31
|
+
map<string, string> responsePayload = 12;
|
|
32
|
+
string createdAt = 13;
|
|
33
|
+
string updatedAt = 14;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message BankAccount {
|
|
37
|
+
string id = 1;
|
|
38
|
+
string recipientId = 2;
|
|
39
|
+
string bankCode = 3;
|
|
40
|
+
string branch = 4;
|
|
41
|
+
string account = 5;
|
|
42
|
+
string accountType = 6;
|
|
43
|
+
string pixKey = 7;
|
|
44
|
+
string pixKeyType = 8;
|
|
45
|
+
double balance = 9;
|
|
46
|
+
repeated string transfers = 10;
|
|
47
|
+
bool isMain = 11;
|
|
48
|
+
string createdAt = 12;
|
|
49
|
+
string updatedAt = 13;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message Recipient {
|
|
53
|
+
string id = 1;
|
|
54
|
+
string code = 2;
|
|
55
|
+
string commercialName = 3;
|
|
56
|
+
string socialReason = 4;
|
|
57
|
+
string holderType = 5;
|
|
58
|
+
string document = 6;
|
|
59
|
+
string cnaeId = 7;
|
|
60
|
+
string legalType = 8;
|
|
61
|
+
string foundation = 9;
|
|
62
|
+
string contactName = 10;
|
|
63
|
+
string contactEmail = 11;
|
|
64
|
+
string contactPhone = 12;
|
|
65
|
+
bool isAutomaticAnticipationEnabled = 13;
|
|
66
|
+
string avatarUrl = 14;
|
|
67
|
+
bool isActive = 15;
|
|
68
|
+
string providerStatus = 16;
|
|
69
|
+
repeated string administrators = 17;
|
|
70
|
+
repeated string payableIds = 19;
|
|
71
|
+
string addressId = 20;
|
|
72
|
+
string createdAt = 21;
|
|
73
|
+
string updatedAt = 22;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message Charge {
|
|
77
|
+
string id = 1;
|
|
78
|
+
double amount = 2;
|
|
79
|
+
string paymentMethod = 3;
|
|
80
|
+
string status = 4;
|
|
81
|
+
string type = 5;
|
|
82
|
+
string dueAt = 6;
|
|
83
|
+
string txid = 7;
|
|
84
|
+
string endToEndId = 8;
|
|
85
|
+
string brcode = 9;
|
|
86
|
+
string pushToken = 10;
|
|
87
|
+
int32 installmentNumber = 11;
|
|
88
|
+
double installmentValue = 12;
|
|
89
|
+
double fee = 13;
|
|
90
|
+
double baseFee = 14;
|
|
91
|
+
double feePercentage = 15;
|
|
92
|
+
bool isScheduled = 16;
|
|
93
|
+
double discountPercentage = 17;
|
|
94
|
+
double discountAmount = 18;
|
|
95
|
+
string createdAt = 19;
|
|
96
|
+
string gatewayId = 20;
|
|
97
|
+
string cardId = 21;
|
|
98
|
+
string orderId = 22;
|
|
99
|
+
string orderScheduleId = 23;
|
|
100
|
+
repeated string payableIds = 24;
|
|
101
|
+
string taxId = 25;
|
|
102
|
+
string metadata = 26;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message Payable {
|
|
106
|
+
string id = 1;
|
|
107
|
+
double amount = 2;
|
|
108
|
+
int32 installment = 3;
|
|
109
|
+
string status = 4;
|
|
110
|
+
string dueAt = 5;
|
|
111
|
+
bool isAnticipated = 6;
|
|
112
|
+
string processedAt = 7;
|
|
113
|
+
string createdAt = 8;
|
|
114
|
+
string chargeId = 9;
|
|
115
|
+
string recipientId = 10;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message BankTransferData {
|
|
119
|
+
string pixKey = 1;
|
|
120
|
+
double amount = 2;
|
|
121
|
+
string chargeId = 3;
|
|
122
|
+
Recipient recipient = 4;
|
|
123
|
+
string routingKey = 5;
|
|
124
|
+
string gatewayId = 6;
|
|
125
|
+
repeated Payable payables = 7;
|
|
126
|
+
string bankAccountId = 8;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message UpdateBankAccountBalanceRequest {
|
|
130
|
+
string bankAccountId = 1;
|
|
131
|
+
double amount = 2;
|
|
132
|
+
string operation = 3;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message UpdateBankAccountBalanceResponse {
|
|
136
|
+
bool success = 1;
|
|
137
|
+
double newBalance = 2;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message GetMainAccountRequest {}
|
|
141
|
+
|
|
142
|
+
message GetMainAccountResponse {
|
|
143
|
+
BankAccount bankAccount = 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message GetBankAccountByRecipientIdRequest {
|
|
147
|
+
string recipientId = 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message GetBankAccountByRecipientIdResponse {
|
|
151
|
+
repeated BankAccount bankAccount = 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message GetRecipientByIdRequest {
|
|
155
|
+
string id = 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message GetRecipientByIdResponse {
|
|
159
|
+
Recipient recipient = 1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message GetLiquidatedChargesForTransferRequest {}
|
|
163
|
+
|
|
164
|
+
message GetLiquidatedChargesForTransferResponse {
|
|
165
|
+
repeated Charge charges = 1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
message UpdatePayablesStatusRequest {
|
|
169
|
+
repeated string payableIds = 1;
|
|
170
|
+
string status = 2;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message UpdatePayablesStatusResponse {
|
|
174
|
+
bool success = 1;
|
|
175
|
+
int32 affected = 2;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
message GetPayableByIdRequest {
|
|
179
|
+
string payableId = 1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message GetPayableByIdResponse {
|
|
183
|
+
Payable payable = 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
message RoutingInfoRequest {
|
|
187
|
+
string method = 1;
|
|
188
|
+
string recipientId = 2;
|
|
189
|
+
string operationType = 3;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message RoutingInfoResponse {
|
|
193
|
+
string gatewayId = 1;
|
|
194
|
+
string pixKey = 2;
|
|
195
|
+
string routingKey = 3;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
message CreatePaymentPixRequest {
|
|
199
|
+
BankTransferData data = 1;
|
|
200
|
+
string routingKey = 2;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
message CreatePaymentPixResponse {
|
|
204
|
+
bool success = 1;
|
|
205
|
+
string paymentId = 2;
|
|
206
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package twoFactor;
|
|
4
|
+
|
|
5
|
+
service TwoFactorService {
|
|
6
|
+
rpc EnableTwoFactor(EnableTwoFactorRequest) returns (TwoFactorResponse);
|
|
7
|
+
rpc VerifyAndEnableTwoFactor(VerifyTwoFactorRequest) returns (VerifyTwoFactorResponse);
|
|
8
|
+
rpc DisableTwoFactor(DisableTwoFactorRequest) returns (DisableTwoFactorResponse);
|
|
9
|
+
rpc VerifyTwoFactorToken(VerifyTwoFactorTokenRequest) returns (VerifyTwoFactorResponse);
|
|
10
|
+
rpc GenerateNewBackupCodes(GenerateBackupCodesRequest) returns (GenerateBackupCodesResponse);
|
|
11
|
+
rpc GetTwoFactorStatus(GetTwoFactorStatusRequest) returns (TwoFactorStatusResponse);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message EnableTwoFactorRequest {
|
|
15
|
+
string accountId = 1;
|
|
16
|
+
string accountType = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message TwoFactorResponse {
|
|
20
|
+
string qrCodeUrl = 1;
|
|
21
|
+
repeated string backupCodes = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message VerifyTwoFactorRequest {
|
|
25
|
+
string accountId = 1;
|
|
26
|
+
string accountType = 2;
|
|
27
|
+
string token = 3;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message VerifyTwoFactorResponse {
|
|
31
|
+
bool success = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message DisableTwoFactorRequest {
|
|
35
|
+
string accountId = 1;
|
|
36
|
+
string accountType = 2;
|
|
37
|
+
string backupCode = 3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message DisableTwoFactorResponse {
|
|
41
|
+
bool success = 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message VerifyTwoFactorTokenRequest {
|
|
45
|
+
string accountId = 1;
|
|
46
|
+
string accountType = 2;
|
|
47
|
+
string token = 3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message GenerateBackupCodesRequest {
|
|
51
|
+
string accountId = 1;
|
|
52
|
+
string accountType = 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message GenerateBackupCodesResponse {
|
|
56
|
+
repeated string backupCodes = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message GetTwoFactorStatusRequest {
|
|
60
|
+
string accountId = 1;
|
|
61
|
+
string accountType = 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message TwoFactorStatusResponse {
|
|
65
|
+
bool isEnabled = 1;
|
|
66
|
+
bool hasBackupCodes = 2;
|
|
67
|
+
}
|