@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
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package receipt;
|
|
4
|
+
|
|
5
|
+
service ReceiptService {
|
|
6
|
+
rpc createReceipt (CreateReceiptRequest) returns (ReceiptResponse);
|
|
7
|
+
rpc getReceipt (GetReceiptRequest) returns (ReceiptDetailResponse);
|
|
8
|
+
rpc getAllReceipts (GetAllReceiptsRequest) returns (ReceiptsListResponse);
|
|
9
|
+
rpc updateTxidByChargeId (UpdateTxidRequest) returns (ReceiptsResponse);
|
|
10
|
+
rpc getPaymentSummaryPreview (PaymentSummaryPreviewRequest) returns (PaymentSummaryPreviewResponse);
|
|
11
|
+
rpc getReceiptsByTaxIds (ReceiptsByTaxIdsRequest) returns (ReceiptsResponse);
|
|
12
|
+
rpc getReceiptsByTaxIdsExcludingSeeded (ReceiptsByTaxIdsRequest) returns (ReceiptsResponse);
|
|
13
|
+
rpc getReceiptById (GetReceiptByIdRequest) returns (ReceiptResponse);
|
|
14
|
+
rpc deleteReceiptByChargeId (deleteReceiptByChargeIdRequest) returns (DeleteReceiptsResponse);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message CreateReceiptRequest {
|
|
18
|
+
string customerId = 1;
|
|
19
|
+
CreateReceiptDto data = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message GetReceiptRequest {
|
|
23
|
+
string customerId = 1;
|
|
24
|
+
string id = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message GetAllReceiptsRequest {
|
|
28
|
+
string customerId = 1;
|
|
29
|
+
DateFilter dateFilter = 2;
|
|
30
|
+
PaginationFilter pagination = 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message UpdateTxidRequest {
|
|
34
|
+
string chargeId = 1;
|
|
35
|
+
string txid = 2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message PaymentSummaryPreviewRequest {
|
|
39
|
+
string customerId = 1;
|
|
40
|
+
string orderId = 2;
|
|
41
|
+
string orderType = 3;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message ReceiptsByTaxIdsRequest {
|
|
45
|
+
repeated string taxIds = 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message GetReceiptByIdRequest {
|
|
49
|
+
string id = 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message ReceiptResponse {
|
|
53
|
+
string id = 1;
|
|
54
|
+
double amount = 2;
|
|
55
|
+
string protocol = 3;
|
|
56
|
+
string txid = 4;
|
|
57
|
+
string createdAt = 5;
|
|
58
|
+
string payableId = 6;
|
|
59
|
+
string customerId = 7;
|
|
60
|
+
string taxId = 8;
|
|
61
|
+
optional string chargeId = 12;
|
|
62
|
+
optional bool isNfseIssued = 13;
|
|
63
|
+
map<string, string> metadata = 14;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message ReceiptDetailResponse {
|
|
67
|
+
string id = 1;
|
|
68
|
+
string createdAt = 2;
|
|
69
|
+
string method = 3;
|
|
70
|
+
double discountPercentage = 4;
|
|
71
|
+
double discountAmount = 5;
|
|
72
|
+
double fee = 6;
|
|
73
|
+
double fine = 7;
|
|
74
|
+
double amount = 8;
|
|
75
|
+
string protocol = 9;
|
|
76
|
+
string txid = 10;
|
|
77
|
+
TaxDetail tax = 11;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message ReceiptsListResponse {
|
|
81
|
+
repeated ReceiptListItem receipts = 1;
|
|
82
|
+
int32 count = 2;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message ReceiptListItem {
|
|
86
|
+
string id = 1;
|
|
87
|
+
string recipient = 2;
|
|
88
|
+
string paymentDate = 3;
|
|
89
|
+
double amount = 4;
|
|
90
|
+
string method = 5;
|
|
91
|
+
string taxType = 6;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message ReceiptsResponse {
|
|
95
|
+
repeated ReceiptResponse receipts = 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message PaymentSummaryPreviewResponse {
|
|
99
|
+
PaymentSummary summary = 1;
|
|
100
|
+
repeated IndividualPayment paymentsMade = 2;
|
|
101
|
+
repeated IndividualPayment scheduledPayments = 3;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message CreateReceiptDto {
|
|
105
|
+
double amount = 1;
|
|
106
|
+
string protocol = 2;
|
|
107
|
+
string chargeId = 3;
|
|
108
|
+
string taxId = 4;
|
|
109
|
+
string txid = 5;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message DateFilter {
|
|
113
|
+
optional string startDate = 1;
|
|
114
|
+
optional string endDate = 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message PaginationFilter {
|
|
118
|
+
optional int32 limit = 1;
|
|
119
|
+
optional int32 offset = 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message TaxDetail {
|
|
123
|
+
reducedTax tax = 1;
|
|
124
|
+
Payer payer = 2;
|
|
125
|
+
LocationInfo location = 3;
|
|
126
|
+
string metaType = 4;
|
|
127
|
+
Meta meta = 5;
|
|
128
|
+
repeated TaxItem items = 6;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
message Meta {
|
|
132
|
+
optional Address address = 1;
|
|
133
|
+
optional string licensePlate = 2;
|
|
134
|
+
optional string model = 3;
|
|
135
|
+
optional int32 yearManufacture = 4;
|
|
136
|
+
optional string renavam = 5;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message Address {
|
|
140
|
+
string street = 1;
|
|
141
|
+
string number = 2;
|
|
142
|
+
string complement = 3;
|
|
143
|
+
string neighborhood = 4;
|
|
144
|
+
string city = 5;
|
|
145
|
+
string state = 6;
|
|
146
|
+
string zipCode = 7;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message reducedTax {
|
|
150
|
+
string id = 1;
|
|
151
|
+
string type = 2;
|
|
152
|
+
string description = 3;
|
|
153
|
+
int32 year = 4;
|
|
154
|
+
string documentId = 5;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message LocationInfo {
|
|
158
|
+
int32 state = 1;
|
|
159
|
+
int32 city = 2;
|
|
160
|
+
string recipientId = 3;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
message TaxItem {
|
|
164
|
+
string id = 1;
|
|
165
|
+
string code = 2;
|
|
166
|
+
int32 quota = 3;
|
|
167
|
+
string dueAt = 4;
|
|
168
|
+
double amount = 5;
|
|
169
|
+
bool isSingleQuota = 6;
|
|
170
|
+
string status = 7;
|
|
171
|
+
double discountPercentage = 8;
|
|
172
|
+
double discountAmount = 9;
|
|
173
|
+
double fee = 10;
|
|
174
|
+
double fine = 11;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
message Payer {
|
|
178
|
+
string name = 2;
|
|
179
|
+
string document = 3;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message PaymentSummary {
|
|
183
|
+
optional double totalPaymentsMade = 1;
|
|
184
|
+
optional double totalScheduledPayments = 2;
|
|
185
|
+
string timestamp = 3;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
message IndividualPayment {
|
|
189
|
+
string id = 1;
|
|
190
|
+
string createdAt = 2;
|
|
191
|
+
string paymentMethod = 3;
|
|
192
|
+
string propertyDocument = 4;
|
|
193
|
+
string propertyDetail = 5;
|
|
194
|
+
int32 installmentNumber = 6;
|
|
195
|
+
double installmentValue = 7;
|
|
196
|
+
optional ChargeScheduleDetail schedule = 8;
|
|
197
|
+
string taxType = 9;
|
|
198
|
+
string status = 10;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
message ChargeScheduleDetail {
|
|
202
|
+
string executionDate = 2;
|
|
203
|
+
bool isExecuted = 3;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
message deleteReceiptByChargeIdRequest {
|
|
207
|
+
string chargeId = 1;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message DeleteReceiptsResponse {
|
|
211
|
+
int32 affected = 1;
|
|
212
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package recipientPaymentGateway;
|
|
4
|
+
|
|
5
|
+
service RecipientPaymentGatewayService {
|
|
6
|
+
rpc CreateRecipientPaymentGateway(CreateRecipientPaymentGatewayRequest) returns (RecipientPaymentGatewayResponse);
|
|
7
|
+
rpc DeleteRecipientPaymentGateway(DeleteRecipientPaymentGatewayRequest) returns (Void);
|
|
8
|
+
rpc GetGatewayByRecipientAndType(GetGatewayByRecipientAndTypeRequest) returns (RecipientPaymentGatewayResponse);
|
|
9
|
+
rpc GetAvailableGateways(GetAvailableGatewaysRequest) returns (PaymentGatewayListResponse);
|
|
10
|
+
rpc ListGatewayIdentifications(Void) returns (GatewayIdentificationListResponse);
|
|
11
|
+
|
|
12
|
+
rpc GetRecipientPaymentGatewaysByRecipientId(GetRecipientPaymentGatewaysByRecipientIdRequest) returns (RecipientPaymentGatewayListResponse);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message RecipientPaymentGateway {
|
|
16
|
+
string id = 1;
|
|
17
|
+
string recipientId = 2;
|
|
18
|
+
string paymentGatewayId = 3;
|
|
19
|
+
string type = 4;
|
|
20
|
+
bool isPixEnabled = 5;
|
|
21
|
+
bool isCreditCardEnabled = 6;
|
|
22
|
+
bool isDebitCardEnabled = 7;
|
|
23
|
+
bool isAutomaticAnticipationEnabled = 8;
|
|
24
|
+
bool isManualAnticipationEnabled = 9;
|
|
25
|
+
string createdAt = 10;
|
|
26
|
+
string updatedAt = 11;
|
|
27
|
+
string gatewayId = 12;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message PaymentGateway {
|
|
31
|
+
string id = 1;
|
|
32
|
+
string name = 2;
|
|
33
|
+
string gatewayId = 3;
|
|
34
|
+
bool supportsPix = 4;
|
|
35
|
+
bool supportsCreditCard = 5;
|
|
36
|
+
bool supportsDebitCard = 6;
|
|
37
|
+
bool supportsAutomaticAnticipation = 7;
|
|
38
|
+
bool supportsManualAnticipation = 8;
|
|
39
|
+
bool isActive = 9;
|
|
40
|
+
string createdAt = 10;
|
|
41
|
+
string updatedAt = 11;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message RecipientPaymentGatewayResponse {
|
|
45
|
+
RecipientPaymentGateway recipientPaymentGateway = 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message RecipientPaymentGatewayListResponse {
|
|
49
|
+
repeated RecipientPaymentGateway recipientPaymentGateways = 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
message PaymentGatewayListResponse {
|
|
54
|
+
repeated PaymentGateway gateways = 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message GatewayIdentificationListResponse {
|
|
58
|
+
repeated string gateways = 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message CreateRecipientPaymentGatewayRequest {
|
|
62
|
+
string recipientId = 1;
|
|
63
|
+
string paymentGatewayId = 2;
|
|
64
|
+
string type = 3;
|
|
65
|
+
bool isPixEnabled = 4;
|
|
66
|
+
bool isCreditCardEnabled = 5;
|
|
67
|
+
bool isDebitCardEnabled = 6;
|
|
68
|
+
bool isAutomaticAnticipationEnabled = 7;
|
|
69
|
+
bool isManualAnticipationEnabled = 8;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message DeleteRecipientPaymentGatewayRequest {
|
|
73
|
+
string id = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message GetGatewayByRecipientAndTypeRequest {
|
|
77
|
+
string recipientId = 1;
|
|
78
|
+
string method = 2;
|
|
79
|
+
string type = 3;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message GetAvailableGatewaysRequest {
|
|
83
|
+
string method = 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message Void {}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
message TableFilterParams {
|
|
90
|
+
optional int32 pageIndex = 1;
|
|
91
|
+
optional int32 pageSize = 2;
|
|
92
|
+
repeated string statuses = 3;
|
|
93
|
+
optional string globalFilter = 4;
|
|
94
|
+
optional string startDate = 5;
|
|
95
|
+
optional string endDate = 6;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message GetRecipientPaymentGatewaysByRecipientIdRequest {
|
|
99
|
+
string recipientId = 1;
|
|
100
|
+
TableFilterParams filter = 2;
|
|
101
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package recipient;
|
|
4
|
+
|
|
5
|
+
service RecipientService {
|
|
6
|
+
rpc CreateRecipient (CreateRecipientRequest) returns (RecipientResponse);
|
|
7
|
+
rpc UpdateRecipient (UpdateRecipientRequest) returns (RecipientResponse);
|
|
8
|
+
rpc GetRecipientById (GetRecipientByIdRequest) returns (RecipientResponse);
|
|
9
|
+
rpc GetRecipientByCode (GetRecipientByCodeRequest) returns (RecipientResponse);
|
|
10
|
+
rpc GetRecipientNameById (GetRecipientNameByIdRequest) returns (RecipientNameResponse);
|
|
11
|
+
rpc GetAllRecipients (Void) returns (GetAllRecipientsResponse);
|
|
12
|
+
rpc GetRecipientFees (GetRecipientFeesRequest) returns (RecipientFeesResponse);
|
|
13
|
+
rpc GetRecipientGateways (GetRecipientGatewaysRequest) returns (RecipientGatewaysResponse);
|
|
14
|
+
rpc UpdateRecipientAvatar (UpdateRecipientAvatarRequest) returns (RecipientResponse);
|
|
15
|
+
rpc GetRecipientDetailsById (GetRecipientDetailsByIdRequest) returns (RecipientDetailsResponse);
|
|
16
|
+
|
|
17
|
+
rpc IsAutomaticAnticipationEnabled (IsAutomaticAnticipationEnabledRequest) returns (IsAutomaticAnticipationEnabledResponse);
|
|
18
|
+
rpc GetExternalRecipientId (GetExternalRecipientIdRequest) returns (GetExternalRecipientIdResponse);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message Recipient {
|
|
22
|
+
string id = 1;
|
|
23
|
+
string code = 2;
|
|
24
|
+
string commercialName = 3;
|
|
25
|
+
string socialReason = 4;
|
|
26
|
+
string holderType = 5;
|
|
27
|
+
string document = 6;
|
|
28
|
+
string cnaeId = 7;
|
|
29
|
+
string avatarUrl = 8;
|
|
30
|
+
string legalType = 9;
|
|
31
|
+
string foundation = 10;
|
|
32
|
+
string contactName = 11;
|
|
33
|
+
string contactEmail = 12;
|
|
34
|
+
string contactPhone = 13;
|
|
35
|
+
string createdAt = 14;
|
|
36
|
+
string updatedAt = 15;
|
|
37
|
+
string addressId = 16;
|
|
38
|
+
bool isActive = 17;
|
|
39
|
+
string providerStatus = 18;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message RecipientResponse {
|
|
43
|
+
Recipient recipient = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message GetRecipientByIdRequest {
|
|
47
|
+
string id = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message GetRecipientByCodeRequest {
|
|
51
|
+
string code = 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message GetRecipientNameByIdRequest {
|
|
55
|
+
string id = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message RecipientNameResponse {
|
|
59
|
+
string name = 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message Void {}
|
|
63
|
+
|
|
64
|
+
message GetAllRecipientsResponse {
|
|
65
|
+
repeated Recipient recipients = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message GetRecipientFeesRequest {
|
|
69
|
+
string id = 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message Fee {
|
|
73
|
+
string id = 1;
|
|
74
|
+
string method = 2;
|
|
75
|
+
string type = 3;
|
|
76
|
+
double base = 4;
|
|
77
|
+
double percentage = 5;
|
|
78
|
+
double promotionalBase = 6;
|
|
79
|
+
double promotionalPercentage = 7;
|
|
80
|
+
string description = 8;
|
|
81
|
+
int32 installment = 9;
|
|
82
|
+
bool isDefault = 10;
|
|
83
|
+
string brand = 11;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message RecipientFeesResponse {
|
|
87
|
+
repeated Fee fees = 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message GetRecipientGatewaysRequest {
|
|
91
|
+
string id = 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message RecipientGateway {
|
|
95
|
+
string id = 1;
|
|
96
|
+
string type = 2;
|
|
97
|
+
bool isAutomaticAnticipationEnabled = 3;
|
|
98
|
+
bool isManualAnticipationEnabled = 4;
|
|
99
|
+
bool isPixEnabled = 5;
|
|
100
|
+
bool isCreditCardEnabled = 6;
|
|
101
|
+
bool isDebitCardEnabled = 7;
|
|
102
|
+
string createdAt = 8;
|
|
103
|
+
string updatedAt = 9;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message RecipientGatewaysResponse {
|
|
107
|
+
repeated RecipientGateway gateways = 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message ImageData {
|
|
111
|
+
string mimetype = 1;
|
|
112
|
+
bytes buffer = 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message UpdateRecipientAvatarRequest {
|
|
116
|
+
string id = 1;
|
|
117
|
+
ImageData avatar = 2;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message GetRecipientDetailsByIdRequest {
|
|
121
|
+
string id = 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message Address {
|
|
125
|
+
string id = 1;
|
|
126
|
+
string zipCode = 2;
|
|
127
|
+
string street = 3;
|
|
128
|
+
string number = 4;
|
|
129
|
+
string complement = 5;
|
|
130
|
+
string neighborhood = 6;
|
|
131
|
+
string city = 7;
|
|
132
|
+
string state = 8;
|
|
133
|
+
string nickname = 9;
|
|
134
|
+
string reference = 10;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message BankAccount {
|
|
138
|
+
string id = 1;
|
|
139
|
+
int32 bankCompeCode = 2;
|
|
140
|
+
string agency = 3;
|
|
141
|
+
string account = 4;
|
|
142
|
+
string digitAccount = 5;
|
|
143
|
+
double balance = 6;
|
|
144
|
+
string pixKey = 7;
|
|
145
|
+
string holderType = 8;
|
|
146
|
+
string accountType = 9;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message Representative {
|
|
150
|
+
string id = 1;
|
|
151
|
+
string name = 2;
|
|
152
|
+
string email = 3;
|
|
153
|
+
string phone = 4;
|
|
154
|
+
string document = 5;
|
|
155
|
+
string birthDate = 6;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message RecipientDetailsResponse {
|
|
159
|
+
Recipient recipient = 1;
|
|
160
|
+
Address address = 2;
|
|
161
|
+
BankAccount bankAccount = 3;
|
|
162
|
+
Representative representative = 4;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
message CreateRecipientRequest {
|
|
166
|
+
string code = 1;
|
|
167
|
+
string commercialName = 2;
|
|
168
|
+
string socialReason = 3;
|
|
169
|
+
string holderType = 4;
|
|
170
|
+
string document = 5;
|
|
171
|
+
string cnaeId = 6;
|
|
172
|
+
string legalType = 7;
|
|
173
|
+
string contactName = 8;
|
|
174
|
+
string contactEmail = 9;
|
|
175
|
+
string contactPhone = 10;
|
|
176
|
+
string foundation = 11;
|
|
177
|
+
CreateAddressDto address = 12;
|
|
178
|
+
CreateBankAccountDto bankAccount = 13;
|
|
179
|
+
CreateRepresentativeDto representative = 14;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message CreateAddressDto {
|
|
183
|
+
string state = 1;
|
|
184
|
+
string city = 2;
|
|
185
|
+
string zipCode = 3;
|
|
186
|
+
string neighborhood = 4;
|
|
187
|
+
string street = 5;
|
|
188
|
+
string number = 6;
|
|
189
|
+
optional string nickname = 7;
|
|
190
|
+
optional string complement = 8;
|
|
191
|
+
optional string recipientId = 10;
|
|
192
|
+
optional string reference = 11;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message CreateBankAccountDto {
|
|
196
|
+
int32 bankCompeCode = 1;
|
|
197
|
+
string holderType = 2;
|
|
198
|
+
string agency = 3;
|
|
199
|
+
string account = 4;
|
|
200
|
+
string digitAccount = 5;
|
|
201
|
+
string accountType = 6;
|
|
202
|
+
optional string pixKey = 7;
|
|
203
|
+
optional double balance = 8;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
message CreateRepresentativeDto {
|
|
207
|
+
string name = 1;
|
|
208
|
+
string email = 2;
|
|
209
|
+
string phone = 3;
|
|
210
|
+
string document = 4;
|
|
211
|
+
string birthDate = 5;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
message UpdateRecipientRequest {
|
|
216
|
+
string id = 1;
|
|
217
|
+
CreateRecipientRequest data = 2;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
message IsAutomaticAnticipationEnabledRequest {
|
|
222
|
+
string recipientId = 1;
|
|
223
|
+
string gatewayId = 2;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
message IsAutomaticAnticipationEnabledResponse {
|
|
227
|
+
bool isEnabled = 1;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message GetExternalRecipientIdRequest {
|
|
231
|
+
string recipientId = 1;
|
|
232
|
+
string gatewayId = 2;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
message GetExternalRecipientIdResponse {
|
|
236
|
+
string externalRecipientId = 1;
|
|
237
|
+
}
|
package/src/role.proto
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package role;
|
|
4
|
+
|
|
5
|
+
service RoleService {
|
|
6
|
+
rpc CreateRole (CreateRoleRequest) returns (Role);
|
|
7
|
+
rpc DeleteRole (DeleteRoleRequest) returns (DeleteRoleResponse);
|
|
8
|
+
rpc GetRoleById (GetRoleByIdRequest) returns (Role);
|
|
9
|
+
rpc GetAllRoles (GetAllRolesRequest) returns (GetAllRolesResponse);
|
|
10
|
+
rpc UpdateRole (Role) returns (Role);
|
|
11
|
+
rpc GetPermissionGroups (GetPermissionGroupsRequest) returns (GetPermissionGroupsResponse);
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message CreateRoleRequest {
|
|
16
|
+
string code = 1;
|
|
17
|
+
string description = 2;
|
|
18
|
+
repeated string permissions = 3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message DeleteRoleRequest {
|
|
22
|
+
string id = 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message DeleteRoleResponse {
|
|
26
|
+
bool success = 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message GetRoleByIdRequest {
|
|
30
|
+
string id = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message Role {
|
|
34
|
+
string id = 1;
|
|
35
|
+
string code = 2;
|
|
36
|
+
string description = 3;
|
|
37
|
+
repeated string permissions = 4;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message GetAllRolesRequest {}
|
|
41
|
+
|
|
42
|
+
message GetAllRolesResponse {
|
|
43
|
+
repeated Role roles = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message GetPermissionGroupsRequest {}
|
|
47
|
+
|
|
48
|
+
message PermissionGroup {
|
|
49
|
+
string group = 1;
|
|
50
|
+
string description = 2;
|
|
51
|
+
repeated string permissions = 3;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message GetPermissionGroupsResponse {
|
|
55
|
+
repeated PermissionGroup permissionGroups = 1;
|
|
56
|
+
}
|
|
57
|
+
|
package/src/sms.proto
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package sms;
|
|
4
|
+
|
|
5
|
+
service SmsService {
|
|
6
|
+
rpc SendSmsToVerify (SendSmsToVerifyRequest) returns (SendSmsToVerifyResponse);
|
|
7
|
+
rpc VerifySmsCode (VerifySmsCodeRequest) returns (VerifySmsCodeResponse);
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message SendSmsToVerifyRequest {
|
|
12
|
+
string phoneNumber = 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message SendSmsToVerifyResponse {
|
|
16
|
+
string id = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message VerifySmsCodeRequest {
|
|
20
|
+
string id = 1;
|
|
21
|
+
int32 code = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message VerifySmsCodeResponse {
|
|
25
|
+
bool success = 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message SmsVerifyEntity {
|
|
29
|
+
string id = 1;
|
|
30
|
+
string phoneNumber = 2;
|
|
31
|
+
string errorCodeMessage = 3;
|
|
32
|
+
int32 verificationCode = 4;
|
|
33
|
+
int32 attempts = 5;
|
|
34
|
+
bool verified = 6;
|
|
35
|
+
}
|
|
36
|
+
|