@postpaybr/protos 1.1.14 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/typescript/account-entry.d.ts +5 -5
- package/dist/typescript/account-entry.js +9 -9
- package/dist/typescript/admin-card-verification.d.ts +15 -14
- package/dist/typescript/admin-card-verification.js +9 -9
- package/dist/typescript/administrator.d.ts +10 -8
- package/dist/typescript/administrator.js +18 -18
- package/dist/typescript/anticipation.d.ts +8 -7
- package/dist/typescript/anticipation.js +11 -11
- package/dist/typescript/bank-account.d.ts +3 -3
- package/dist/typescript/bank-account.js +10 -10
- package/dist/typescript/card.d.ts +6 -5
- package/dist/typescript/card.js +14 -14
- package/dist/typescript/charge-schedule.d.ts +1 -1
- package/dist/typescript/charge.d.ts +48 -70
- package/dist/typescript/charge.js +36 -36
- package/dist/typescript/common.d.ts +35 -18
- package/dist/typescript/common.js +2 -2
- package/dist/typescript/context.d.ts +9 -7
- package/dist/typescript/context.js +13 -14
- package/dist/typescript/customer.d.ts +8 -8
- package/dist/typescript/customer.js +19 -19
- package/dist/typescript/daily-balance.d.ts +5 -5
- package/dist/typescript/daily-balance.js +6 -6
- package/dist/typescript/document-verification.d.ts +21 -20
- package/dist/typescript/document-verification.js +11 -11
- package/dist/typescript/email.d.ts +2 -2
- package/dist/typescript/email.js +11 -11
- package/dist/typescript/fee.d.ts +6 -6
- package/dist/typescript/fee.js +9 -9
- package/dist/typescript/notification.d.ts +42 -40
- package/dist/typescript/notification.js +16 -16
- package/dist/typescript/order.d.ts +24 -23
- package/dist/typescript/order.js +15 -15
- package/dist/typescript/payable.d.ts +33 -35
- package/dist/typescript/payable.js +18 -18
- package/dist/typescript/payment-calculator.d.ts +6 -5
- package/dist/typescript/payment-calculator.js +10 -10
- package/dist/typescript/payment-card.d.ts +14 -16
- package/dist/typescript/payment-card.js +10 -6
- package/dist/typescript/payment-gateway.d.ts +11 -9
- package/dist/typescript/payment-gateway.js +12 -12
- package/dist/typescript/payment-pix.d.ts +4 -3
- package/dist/typescript/payment-pix.js +6 -6
- package/dist/typescript/receipt.d.ts +15 -29
- package/dist/typescript/receipt.js +14 -14
- package/dist/typescript/recipient-payment-gateway.d.ts +14 -12
- package/dist/typescript/recipient-payment-gateway.js +11 -11
- package/dist/typescript/recipient.d.ts +21 -19
- package/dist/typescript/recipient.js +17 -17
- package/dist/typescript/role.d.ts +5 -3
- package/dist/typescript/role.js +11 -11
- package/dist/typescript/tax.d.ts +33 -61
- package/dist/typescript/tax.js +17 -17
- package/dist/typescript/transfer.d.ts +21 -19
- package/dist/typescript/transfer.js +6 -7
- package/dist/typescript/two-factor.d.ts +8 -7
- package/dist/typescript/two-factor.js +11 -11
- package/dist/typescript/user.d.ts +13 -14
- package/dist/typescript/user.js +22 -22
- package/package.json +1 -1
- package/src/protos/charge.proto +4 -33
- package/src/protos/common.proto +12 -0
- package/src/protos/context.proto +1 -1
- package/src/protos/customer.proto +1 -1
- package/src/protos/payable.proto +5 -6
- package/src/protos/receipt.proto +7 -21
- package/src/protos/tax.proto +6 -40
- package/src/protos/user.proto +3 -4
package/src/protos/charge.proto
CHANGED
|
@@ -3,6 +3,7 @@ syntax = "proto3";
|
|
|
3
3
|
package charge;
|
|
4
4
|
|
|
5
5
|
import "common.proto";
|
|
6
|
+
import "tax.proto";
|
|
6
7
|
|
|
7
8
|
service ChargeService {
|
|
8
9
|
rpc createCharge (CreateChargeRequest) returns (ChargeResponse);
|
|
@@ -221,7 +222,7 @@ message getChargeAdministratorDetailsResponse {
|
|
|
221
222
|
optional string failureReason = 21;
|
|
222
223
|
optional string failureDetails = 22;
|
|
223
224
|
repeated ChargeSplit splits = 23;
|
|
224
|
-
optional TaxPayload tax = 24;
|
|
225
|
+
optional tax.TaxPayload tax = 24;
|
|
225
226
|
optional common.ChargeScheduleDetail schedule = 25;
|
|
226
227
|
}
|
|
227
228
|
|
|
@@ -257,41 +258,11 @@ message Tax {
|
|
|
257
258
|
string recipientId = 18;
|
|
258
259
|
string metaType = 19;
|
|
259
260
|
common.Meta meta = 20;
|
|
260
|
-
Payer payer = 21;
|
|
261
|
+
common.Payer payer = 21;
|
|
261
262
|
OrderItemEntity orderItem = 22;
|
|
262
263
|
optional Receipt receipt = 23;
|
|
263
264
|
}
|
|
264
265
|
|
|
265
|
-
message completeTax {
|
|
266
|
-
string id = 1;
|
|
267
|
-
string type = 2;
|
|
268
|
-
string status = 3;
|
|
269
|
-
string description = 4;
|
|
270
|
-
double amount = 5;
|
|
271
|
-
int32 year = 6;
|
|
272
|
-
string dueAt = 7;
|
|
273
|
-
string documentId = 8;
|
|
274
|
-
string code = 9;
|
|
275
|
-
bool isSingleQuota = 10;
|
|
276
|
-
optional int32 quota = 11;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
message TaxPayload {
|
|
280
|
-
completeTax tax = 1;
|
|
281
|
-
Payer payer = 2;
|
|
282
|
-
common.Location location = 3;
|
|
283
|
-
string metaType = 4;
|
|
284
|
-
common.Meta meta = 5;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
message Payer {
|
|
288
|
-
string id = 1;
|
|
289
|
-
string name = 2;
|
|
290
|
-
string document = 3;
|
|
291
|
-
string phone = 4;
|
|
292
|
-
repeated Tax taxes = 5;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
266
|
message Order {
|
|
296
267
|
string id = 1;
|
|
297
268
|
double totalAmount = 2;
|
|
@@ -419,7 +390,7 @@ message ChargeClientDetailsResponse {
|
|
|
419
390
|
optional CardDetails card = 16;
|
|
420
391
|
double discountPercentage = 17;
|
|
421
392
|
double discountAmount = 18;
|
|
422
|
-
optional TaxPayload tax = 19;
|
|
393
|
+
optional tax.TaxPayload tax = 19;
|
|
423
394
|
optional common.ChargeScheduleDetail schedule = 20;
|
|
424
395
|
optional string orderId = 21;
|
|
425
396
|
}
|
package/src/protos/common.proto
CHANGED
|
@@ -2,6 +2,9 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package common;
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
import "tax.proto";
|
|
7
|
+
|
|
5
8
|
message Void {}
|
|
6
9
|
|
|
7
10
|
message Empty {}
|
|
@@ -60,6 +63,15 @@ message Payer {
|
|
|
60
63
|
optional string phone = 4;
|
|
61
64
|
}
|
|
62
65
|
|
|
66
|
+
|
|
67
|
+
message FullPayer {
|
|
68
|
+
string id = 1;
|
|
69
|
+
string name = 2;
|
|
70
|
+
string document = 3;
|
|
71
|
+
string phone = 4;
|
|
72
|
+
repeated TaxEntity taxes = 5;
|
|
73
|
+
}
|
|
74
|
+
|
|
63
75
|
message Tax {
|
|
64
76
|
string id = 1;
|
|
65
77
|
string type = 2;
|
package/src/protos/context.proto
CHANGED
package/src/protos/payable.proto
CHANGED
|
@@ -2,6 +2,8 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package payable;
|
|
4
4
|
|
|
5
|
+
import "common.proto";
|
|
6
|
+
|
|
5
7
|
service PayableService {
|
|
6
8
|
rpc CreatePayable (CreatePayableRequest) returns (PayableResponse);
|
|
7
9
|
rpc GetPayablesByChargeId (GetPayablesByChargeIdRequest) returns (GetPayablesByChargeIdResponse);
|
|
@@ -48,7 +50,7 @@ message Payable {
|
|
|
48
50
|
string dueAt = 5;
|
|
49
51
|
string createdAt = 6;
|
|
50
52
|
bool isAnticipated = 7;
|
|
51
|
-
Anticipation anticipation = 8;
|
|
53
|
+
optional Anticipation anticipation = 8;
|
|
52
54
|
optional string chargeId = 9;
|
|
53
55
|
optional string recipientId = 10;
|
|
54
56
|
optional string processedAt = 11;
|
|
@@ -119,7 +121,7 @@ message DeletePayableResponse {
|
|
|
119
121
|
message GetAllPayablesRequest {
|
|
120
122
|
optional GetAllPayablesData data = 1;
|
|
121
123
|
PaginationFilter pagination = 2;
|
|
122
|
-
DateFilter date = 3;
|
|
124
|
+
common.DateFilter date = 3;
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
message GetAllPayablesData {
|
|
@@ -133,10 +135,7 @@ message PaginationFilter {
|
|
|
133
135
|
int32 offset = 2;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
|
-
|
|
137
|
-
optional string startDate = 1;
|
|
138
|
-
optional string endDate = 2;
|
|
139
|
-
}
|
|
138
|
+
|
|
140
139
|
|
|
141
140
|
message GetAllPayablesResponse {
|
|
142
141
|
repeated PayableWithDetails payables = 1;
|
package/src/protos/receipt.proto
CHANGED
|
@@ -3,6 +3,7 @@ syntax = "proto3";
|
|
|
3
3
|
package receipt;
|
|
4
4
|
|
|
5
5
|
import "common.proto";
|
|
6
|
+
import "tax.proto";
|
|
6
7
|
|
|
7
8
|
service ReceiptService {
|
|
8
9
|
rpc createReceipt (CreateReceiptRequest) returns (ReceiptResponse);
|
|
@@ -57,12 +58,11 @@ message ReceiptResponse {
|
|
|
57
58
|
string protocol = 3;
|
|
58
59
|
string txid = 4;
|
|
59
60
|
string createdAt = 5;
|
|
60
|
-
string
|
|
61
|
-
string
|
|
62
|
-
string
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
map<string, string> metadata = 14;
|
|
61
|
+
string customerId = 6;
|
|
62
|
+
string taxId = 7;
|
|
63
|
+
optional string chargeId = 8;
|
|
64
|
+
bool isNfseIssued = 9;
|
|
65
|
+
map<string, string> metadata = 10;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
message ReceiptDetailResponse {
|
|
@@ -117,7 +117,7 @@ message TaxDetail {
|
|
|
117
117
|
common.Location location = 3;
|
|
118
118
|
string metaType = 4;
|
|
119
119
|
common.Meta meta = 5;
|
|
120
|
-
repeated TaxItem items = 6;
|
|
120
|
+
repeated tax.TaxItem items = 6;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
message reducedTax {
|
|
@@ -128,20 +128,6 @@ message reducedTax {
|
|
|
128
128
|
string documentId = 5;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
message TaxItem {
|
|
132
|
-
string id = 1;
|
|
133
|
-
string code = 2;
|
|
134
|
-
int32 quota = 3;
|
|
135
|
-
string dueAt = 4;
|
|
136
|
-
double amount = 5;
|
|
137
|
-
bool isSingleQuota = 6;
|
|
138
|
-
string status = 7;
|
|
139
|
-
double discountPercentage = 8;
|
|
140
|
-
double discountAmount = 9;
|
|
141
|
-
double fee = 10;
|
|
142
|
-
double fine = 11;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
131
|
message Payer {
|
|
146
132
|
string name = 2;
|
|
147
133
|
string document = 3;
|
package/src/protos/tax.proto
CHANGED
|
@@ -155,9 +155,10 @@ message TaxEntity {
|
|
|
155
155
|
string metaType = 19;
|
|
156
156
|
optional common.Meta meta = 20;
|
|
157
157
|
|
|
158
|
-
optional
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
optional common.FullPayer payer = 21;
|
|
159
|
+
optional Receipt receipt = 22;
|
|
160
|
+
string createdAt = 23;
|
|
161
|
+
string updatedAt = 24;
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
message Charge {
|
|
@@ -173,14 +174,6 @@ message Charge {
|
|
|
173
174
|
string createdAt = 10;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
message PayerEntity {
|
|
177
|
-
string id = 1;
|
|
178
|
-
string name = 2;
|
|
179
|
-
string document = 3;
|
|
180
|
-
string phone = 4;
|
|
181
|
-
repeated Tax taxes = 5;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
177
|
message Receipt {
|
|
185
178
|
string id = 1;
|
|
186
179
|
double amount = 2;
|
|
@@ -189,23 +182,6 @@ message Receipt {
|
|
|
189
182
|
string createdAt = 5;
|
|
190
183
|
}
|
|
191
184
|
|
|
192
|
-
message OrderItemEntity {
|
|
193
|
-
string id = 1;
|
|
194
|
-
Recipient recipient = 2;
|
|
195
|
-
Tax tax = 3;
|
|
196
|
-
Order order = 4;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
message Order {
|
|
200
|
-
string id = 1;
|
|
201
|
-
double totalAmount = 2;
|
|
202
|
-
string status = 3;
|
|
203
|
-
string createdAt = 4;
|
|
204
|
-
repeated OrderItemEntity items = 5;
|
|
205
|
-
repeated Charge charges = 6;
|
|
206
|
-
Customer customer = 7;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
185
|
message Customer {
|
|
210
186
|
string id = 1;
|
|
211
187
|
string firstName = 2;
|
|
@@ -242,8 +218,8 @@ message UpdateTaxStatusRequest {
|
|
|
242
218
|
|
|
243
219
|
message GetAllTaxesRequest {
|
|
244
220
|
optional GetAllTaxesDto data = 1;
|
|
245
|
-
|
|
246
|
-
|
|
221
|
+
common.PaginationFilter pagination = 2;
|
|
222
|
+
common.DateFilter date = 3;
|
|
247
223
|
}
|
|
248
224
|
|
|
249
225
|
message GetAllTaxesDto {
|
|
@@ -252,16 +228,6 @@ message GetAllTaxesDto {
|
|
|
252
228
|
repeated string statuses = 3;
|
|
253
229
|
}
|
|
254
230
|
|
|
255
|
-
message PaginationFilterDto {
|
|
256
|
-
optional int32 limit = 1;
|
|
257
|
-
optional int32 offset = 2;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
message DateFilterDto {
|
|
261
|
-
optional string startDate = 1;
|
|
262
|
-
optional string endDate = 2;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
231
|
message GetAllTaxesResponse {
|
|
266
232
|
repeated TaxEntity taxes = 1;
|
|
267
233
|
int32 count = 2;
|
package/src/protos/user.proto
CHANGED
|
@@ -70,8 +70,7 @@ message ChangePasswordEntity {
|
|
|
70
70
|
int32 attempts = 4;
|
|
71
71
|
bool isVerified = 5;
|
|
72
72
|
string createdAt = 6;
|
|
73
|
-
|
|
74
|
-
User user = 8;
|
|
73
|
+
User user = 7;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
// User Messages
|
|
@@ -152,12 +151,12 @@ message UserWithDevices {
|
|
|
152
151
|
message Device {
|
|
153
152
|
string id = 1;
|
|
154
153
|
string token = 2;
|
|
155
|
-
string expoPushToken = 3;
|
|
154
|
+
optional string expoPushToken = 3;
|
|
156
155
|
User user = 4;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
message CreateDevice {
|
|
160
|
-
string token = 2;
|
|
159
|
+
optional string token = 2;
|
|
161
160
|
optional string expoPushToken = 3;
|
|
162
161
|
}
|
|
163
162
|
|