@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,165 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package paymentCalculator;
|
|
4
|
+
|
|
5
|
+
service PaymentCalculatorService {
|
|
6
|
+
rpc calculateInstallments (CalculateInstallmentsRequest) returns (CalculateInstallmentsResponse);
|
|
7
|
+
rpc getPaymentMethods (GetPaymentMethodsRequest) returns (GetPaymentMethodsResponse);
|
|
8
|
+
rpc getPrincipalMethod (GetPrincipalMethodRequest) returns (GetPrincipalMethodResponse);
|
|
9
|
+
rpc calculatePostpayFee (CalculatePostpayFeeRequest) returns (CalculatePostpayFeeResponse);
|
|
10
|
+
|
|
11
|
+
rpc calculateIndividualTaxFees (CalculateIndividualTaxFeesRequest) returns (CalculateIndividualTaxFeesResponse);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message CalculateInstallmentsRequest {
|
|
15
|
+
string customerId = 1;
|
|
16
|
+
int32 count = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message CalculateInstallmentsResponse {
|
|
20
|
+
repeated Installment installments = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message Installment {
|
|
24
|
+
int32 installment = 1;
|
|
25
|
+
double amount = 2;
|
|
26
|
+
double fee = 3;
|
|
27
|
+
double totalAmount = 4;
|
|
28
|
+
double baseAmount = 5;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message GetPaymentMethodsRequest {
|
|
32
|
+
string customerId = 1;
|
|
33
|
+
PaymentSchedule paymentSchedule = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message GetPaymentMethodsResponse {
|
|
37
|
+
repeated PaymentDetails methods = 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message PaymentDetails {
|
|
41
|
+
string method = 1;
|
|
42
|
+
double amount = 2;
|
|
43
|
+
optional double discountPercentage = 3;
|
|
44
|
+
double fee = 4;
|
|
45
|
+
optional double discountAmount = 5;
|
|
46
|
+
optional string gatewayId = 6;
|
|
47
|
+
optional Card card = 7;
|
|
48
|
+
PaymentSchedule paymentSchedule = 8;
|
|
49
|
+
double baseFee = 9;
|
|
50
|
+
double feePercentage = 10;
|
|
51
|
+
optional string chargeId = 11;
|
|
52
|
+
optional bool isRetry = 12;
|
|
53
|
+
optional string orderId = 13;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message Card {
|
|
57
|
+
string id = 1;
|
|
58
|
+
string shadowNumber = 2;
|
|
59
|
+
string brand = 3;
|
|
60
|
+
optional int32 installments = 4;
|
|
61
|
+
optional double installmentValue = 5;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message GetPrincipalMethodRequest {
|
|
65
|
+
string customerId = 1;
|
|
66
|
+
PaymentSchedule paymentSchedule = 2;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message GetPrincipalMethodResponse {
|
|
70
|
+
PaymentDetails principalMethod = 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message CalculatePostpayFeeRequest {
|
|
74
|
+
repeated TaxDetail taxes = 1;
|
|
75
|
+
PaymentDetails paymentDetails = 2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message CalculatePostpayFeeResponse {
|
|
79
|
+
double totalPostpayFee = 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message TaxDetail {
|
|
83
|
+
Tax tax = 1;
|
|
84
|
+
Payer payer = 2;
|
|
85
|
+
LocationInfo location = 3;
|
|
86
|
+
string metaType = 4;
|
|
87
|
+
Meta meta = 5;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message Meta {
|
|
91
|
+
optional Address address = 1;
|
|
92
|
+
optional string licensePlate = 2;
|
|
93
|
+
optional string model = 3;
|
|
94
|
+
optional int32 yearManufacture = 4;
|
|
95
|
+
optional string renavam = 5;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message Address {
|
|
99
|
+
string street = 1;
|
|
100
|
+
string number = 2;
|
|
101
|
+
string complement = 3;
|
|
102
|
+
string neighborhood = 4;
|
|
103
|
+
string city = 5;
|
|
104
|
+
string state = 6;
|
|
105
|
+
string zipCode = 7;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
message Tax {
|
|
109
|
+
string id = 1;
|
|
110
|
+
string type = 2;
|
|
111
|
+
string status = 3;
|
|
112
|
+
string description = 4;
|
|
113
|
+
double amount = 5;
|
|
114
|
+
int32 year = 6;
|
|
115
|
+
string dueAt = 7;
|
|
116
|
+
string documentId = 8;
|
|
117
|
+
string code = 9;
|
|
118
|
+
bool isSingleQuota = 10;
|
|
119
|
+
optional int32 quota = 11;
|
|
120
|
+
double discountAmount = 12;
|
|
121
|
+
double fee = 13;
|
|
122
|
+
double fine = 14;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message LocationInfo {
|
|
126
|
+
int32 state = 1;
|
|
127
|
+
int32 city = 2;
|
|
128
|
+
string recipientId = 3;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
message Payer {
|
|
132
|
+
optional string id = 1;
|
|
133
|
+
string name = 2;
|
|
134
|
+
string document = 3;
|
|
135
|
+
optional string phone = 4;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message PaymentSchedule {
|
|
139
|
+
string type = 1;
|
|
140
|
+
optional string date = 2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
message CalculateIndividualTaxFeesRequest {
|
|
145
|
+
repeated TaxDetail taxes = 1;
|
|
146
|
+
string recipientId = 2;
|
|
147
|
+
string method = 3;
|
|
148
|
+
optional string brand = 4;
|
|
149
|
+
int32 installment = 5;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
message CalculateIndividualTaxFeesResponse {
|
|
153
|
+
repeated IndividualFeePerTax feesPerTax = 1;
|
|
154
|
+
double totalFee = 2;
|
|
155
|
+
double totalAmount = 3;
|
|
156
|
+
double baseFee = 4;
|
|
157
|
+
double feePercentage = 5;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
message IndividualFeePerTax {
|
|
161
|
+
string taxId = 1;
|
|
162
|
+
double amount = 2;
|
|
163
|
+
double fee = 3;
|
|
164
|
+
double totalAmount = 4;
|
|
165
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package paymentCard;
|
|
4
|
+
|
|
5
|
+
service PaymentCard {
|
|
6
|
+
rpc CreatePayment (CreatePaymentRequest) returns (CreatePaymentResponse);
|
|
7
|
+
rpc ProcessScheduledPayment (ProcessScheduledPaymentRequest) returns (ProcessScheduledPaymentResponse);
|
|
8
|
+
rpc CreateVerificationPayment (CreateVerificationPaymentRequest) returns (CreateVerificationPaymentResponse);
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message CreatePaymentRequest {
|
|
13
|
+
string customerId = 1;
|
|
14
|
+
repeated TaxPayload taxes = 2;
|
|
15
|
+
PaymentDetails payment = 3;
|
|
16
|
+
optional bool closed = 4;
|
|
17
|
+
optional string ip = 5;
|
|
18
|
+
optional string sessionId = 6;
|
|
19
|
+
string pushToken = 7;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message TaxPayload {
|
|
23
|
+
Tax tax = 1;
|
|
24
|
+
Payer payer = 2;
|
|
25
|
+
Location location = 3;
|
|
26
|
+
string metaType = 4;
|
|
27
|
+
Meta meta = 5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message Tax {
|
|
31
|
+
string id = 1;
|
|
32
|
+
string type = 2;
|
|
33
|
+
string status = 3;
|
|
34
|
+
string description = 4;
|
|
35
|
+
double amount = 5;
|
|
36
|
+
int32 year = 6;
|
|
37
|
+
string dueAt = 7;
|
|
38
|
+
string documentId = 8;
|
|
39
|
+
string code = 9;
|
|
40
|
+
bool isSingleQuota = 10;
|
|
41
|
+
optional int32 quota = 11;
|
|
42
|
+
double discountAmount = 12;
|
|
43
|
+
double fee = 13;
|
|
44
|
+
double fine = 14;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message Payer {
|
|
48
|
+
optional string id = 1;
|
|
49
|
+
string name = 2;
|
|
50
|
+
string document = 3;
|
|
51
|
+
optional string phone = 4;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message Location {
|
|
55
|
+
int32 state = 1;
|
|
56
|
+
int32 city = 2;
|
|
57
|
+
string recipientId = 3;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message Meta {
|
|
61
|
+
optional Address address = 1;
|
|
62
|
+
optional string licensePlate = 2;
|
|
63
|
+
optional string model = 3;
|
|
64
|
+
optional int32 yearManufacture = 4;
|
|
65
|
+
optional string renavam = 5;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message Address {
|
|
69
|
+
string street = 1;
|
|
70
|
+
string number = 2;
|
|
71
|
+
string complement = 3;
|
|
72
|
+
string neighborhood = 4;
|
|
73
|
+
string city = 5;
|
|
74
|
+
string state = 6;
|
|
75
|
+
string zipCode = 7;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
message PaymentDetails {
|
|
79
|
+
string method = 1;
|
|
80
|
+
double amount = 2;
|
|
81
|
+
optional double discountPercentage = 3;
|
|
82
|
+
double fee = 4;
|
|
83
|
+
optional double discountAmount = 5;
|
|
84
|
+
optional string gatewayId = 6;
|
|
85
|
+
optional Card card = 7;
|
|
86
|
+
PaymentSchedule paymentSchedule = 8;
|
|
87
|
+
double baseFee = 9;
|
|
88
|
+
double feePercentage = 10;
|
|
89
|
+
optional string chargeId = 11;
|
|
90
|
+
optional bool isRetry = 12;
|
|
91
|
+
optional string orderId = 13;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message PaymentSchedule {
|
|
95
|
+
string type = 1;
|
|
96
|
+
optional string date = 2;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message Card {
|
|
100
|
+
string id = 1;
|
|
101
|
+
string shadowNumber = 2;
|
|
102
|
+
string brand = 3;
|
|
103
|
+
optional int32 installments = 4;
|
|
104
|
+
optional double installmentValue = 5;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message CreatePaymentResponse {
|
|
108
|
+
Order order = 1;
|
|
109
|
+
string orderType = 2;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message ProcessScheduledPaymentRequest {
|
|
113
|
+
string customerId = 1;
|
|
114
|
+
TaxPayload tax = 2;
|
|
115
|
+
Charge charge = 3;
|
|
116
|
+
PaymentDetails payment = 4;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message ProcessScheduledPaymentResponse {}
|
|
120
|
+
|
|
121
|
+
message CreateVerificationPaymentRequest {
|
|
122
|
+
string customerId = 1;
|
|
123
|
+
CardDetails card = 2;
|
|
124
|
+
double value = 3;
|
|
125
|
+
optional string cardVerificationId = 4;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message CardDetails {
|
|
129
|
+
optional string id = 1;
|
|
130
|
+
string vaultToken = 2;
|
|
131
|
+
string vaultTokenCvv = 3;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
message CreateVerificationPaymentResponse {}
|
|
135
|
+
|
|
136
|
+
message Charge {
|
|
137
|
+
string id = 1;
|
|
138
|
+
double amount = 2;
|
|
139
|
+
string paymentMethod = 3;
|
|
140
|
+
string status = 4;
|
|
141
|
+
string dueAt = 5;
|
|
142
|
+
string txid = 6;
|
|
143
|
+
string brcode = 7;
|
|
144
|
+
string pushToken = 8;
|
|
145
|
+
int32 installmentNumber = 9;
|
|
146
|
+
double installmentValue = 10;
|
|
147
|
+
double fee = 11;
|
|
148
|
+
double baseFee = 12;
|
|
149
|
+
double feePercentage = 13;
|
|
150
|
+
bool isScheduled = 14;
|
|
151
|
+
double discountPercentage = 15;
|
|
152
|
+
double discountAmount = 16;
|
|
153
|
+
string createdAt = 17;
|
|
154
|
+
string gatewayId = 18;
|
|
155
|
+
string cardId = 19;
|
|
156
|
+
string orderId = 20;
|
|
157
|
+
string orderScheduleId = 21;
|
|
158
|
+
repeated string payableIds = 22;
|
|
159
|
+
repeated string taxIds = 23;
|
|
160
|
+
ChargeSchedule chargeSchedule = 24;
|
|
161
|
+
string endToEndId = 25;
|
|
162
|
+
string type = 26;
|
|
163
|
+
map<string, string> metadata = 27;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
message ChargeSchedule {
|
|
167
|
+
string id = 1;
|
|
168
|
+
string executionDate = 2;
|
|
169
|
+
bool isExecuted = 3;
|
|
170
|
+
string createdAt = 4;
|
|
171
|
+
string updatedAt = 5;
|
|
172
|
+
Charge charge = 6;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
message Recipient {
|
|
176
|
+
string id = 1;
|
|
177
|
+
string code = 2;
|
|
178
|
+
string commercialName = 3;
|
|
179
|
+
string socialReason = 4;
|
|
180
|
+
string holderType = 5;
|
|
181
|
+
string document = 6;
|
|
182
|
+
string cnaeId = 7;
|
|
183
|
+
string legalType = 8;
|
|
184
|
+
string contactName = 10;
|
|
185
|
+
string contactEmail = 11;
|
|
186
|
+
string contactPhone = 12;
|
|
187
|
+
bool isAutomaticAnticipationEnabled = 13;
|
|
188
|
+
string foundation = 14;
|
|
189
|
+
optional string avatarUrl = 15;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message Order {
|
|
193
|
+
string id = 1;
|
|
194
|
+
double totalAmount = 2;
|
|
195
|
+
string status = 3;
|
|
196
|
+
string createdAt = 4;
|
|
197
|
+
repeated OrderItemEntity items = 5;
|
|
198
|
+
repeated Charge charges = 6;
|
|
199
|
+
Customer customer = 7;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
message OrderItemEntity {
|
|
203
|
+
string id = 1;
|
|
204
|
+
Recipient recipient = 2;
|
|
205
|
+
Tax tax = 3;
|
|
206
|
+
Order order = 4;
|
|
207
|
+
}
|
|
208
|
+
message Customer {
|
|
209
|
+
string id = 1;
|
|
210
|
+
string firstName = 2;
|
|
211
|
+
string lastName = 3;
|
|
212
|
+
string document = 4;
|
|
213
|
+
string email = 5;
|
|
214
|
+
bool isEmailVerified = 6;
|
|
215
|
+
string phone = 7;
|
|
216
|
+
}
|
|
217
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package paymentGateway;
|
|
4
|
+
|
|
5
|
+
service PaymentGatewayService {
|
|
6
|
+
rpc getById(GetByIdRequest) returns (PaymentGatewayResponse);
|
|
7
|
+
rpc getByGatewayId(GetByGatewayIdRequest) returns (PaymentGatewayResponse);
|
|
8
|
+
rpc getAllGateways(GetAllGatewaysRequest) returns (PaymentGatewayListResponse);
|
|
9
|
+
rpc getGatewaysByMethodSupport(GetGatewaysByMethodSupportRequest) returns (PaymentGatewayListResponse);
|
|
10
|
+
rpc createGateway(CreateGatewayRequest) returns (PaymentGatewayResponse);
|
|
11
|
+
rpc updateGateway(UpdateGatewayRequest) returns (PaymentGatewayResponse);
|
|
12
|
+
rpc deactivateGateway(DeactivateGatewayRequest) returns (Void);
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message PaymentGateway {
|
|
17
|
+
string id = 1;
|
|
18
|
+
string name = 2;
|
|
19
|
+
string gatewayId = 3;
|
|
20
|
+
bool supportsPix = 4;
|
|
21
|
+
bool supportsCreditCard = 5;
|
|
22
|
+
bool supportsDebitCard = 6;
|
|
23
|
+
bool supportsAutomaticAnticipation = 7;
|
|
24
|
+
bool supportsManualAnticipation = 8;
|
|
25
|
+
bool isActive = 9;
|
|
26
|
+
string description = 10;
|
|
27
|
+
string createdAt = 11;
|
|
28
|
+
string updatedAt = 12;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message PaymentGatewayResponse {
|
|
32
|
+
PaymentGateway paymentGateway = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message PaymentGatewayListResponse {
|
|
36
|
+
repeated PaymentGateway gateways = 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message GetByIdRequest {
|
|
40
|
+
string id = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message GetByGatewayIdRequest {
|
|
44
|
+
string gatewayId = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GetGatewaysByMethodSupportRequest {
|
|
48
|
+
string method = 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message CreateGatewayRequest {
|
|
52
|
+
string name = 1;
|
|
53
|
+
string gatewayId = 2;
|
|
54
|
+
bool supportsPix = 3;
|
|
55
|
+
bool supportsCreditCard = 4;
|
|
56
|
+
bool supportsDebitCard = 5;
|
|
57
|
+
bool supportsAutomaticAnticipation = 6;
|
|
58
|
+
bool supportsManualAnticipation = 7;
|
|
59
|
+
bool isActive = 8;
|
|
60
|
+
string description = 9;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message UpdateGatewayRequest {
|
|
64
|
+
string id = 1;
|
|
65
|
+
optional string name = 2;
|
|
66
|
+
optional string gatewayId = 3;
|
|
67
|
+
optional bool supportsPix = 4;
|
|
68
|
+
optional bool supportsCreditCard = 5;
|
|
69
|
+
optional bool supportsDebitCard = 6;
|
|
70
|
+
optional bool supportsAutomaticAnticipation = 7;
|
|
71
|
+
optional bool supportsManualAnticipation = 8;
|
|
72
|
+
optional bool isActive = 9;
|
|
73
|
+
optional string description = 10;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message DeactivateGatewayRequest {
|
|
77
|
+
string id = 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message Void {}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
message TableFilterParams {
|
|
84
|
+
optional int32 pageIndex = 1;
|
|
85
|
+
optional int32 pageSize = 2;
|
|
86
|
+
repeated string statuses = 3;
|
|
87
|
+
optional string globalFilter = 4;
|
|
88
|
+
optional string startDate = 5;
|
|
89
|
+
optional string endDate = 6;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message GetAllGatewaysRequest {
|
|
93
|
+
TableFilterParams filter = 1;
|
|
94
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package paymentPix;
|
|
4
|
+
|
|
5
|
+
service PaymentPix {
|
|
6
|
+
rpc CreatePayment (CreatePaymentRequest) returns (CreatePaymentResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message CreatePaymentRequest {
|
|
10
|
+
string customerId = 1;
|
|
11
|
+
repeated TaxPayload taxes = 2;
|
|
12
|
+
PaymentDetails payment = 3;
|
|
13
|
+
optional bool closed = 4;
|
|
14
|
+
optional string ip = 5;
|
|
15
|
+
optional string sessionId = 6;
|
|
16
|
+
string pushToken = 7;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message TaxPayload {
|
|
20
|
+
Tax tax = 1;
|
|
21
|
+
Payer payer = 2;
|
|
22
|
+
Location location = 3;
|
|
23
|
+
string metaType = 4;
|
|
24
|
+
Meta meta = 5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message Tax {
|
|
28
|
+
string id = 1;
|
|
29
|
+
string type = 2;
|
|
30
|
+
string status = 3;
|
|
31
|
+
string description = 4;
|
|
32
|
+
double amount = 5;
|
|
33
|
+
int32 year = 6;
|
|
34
|
+
string dueAt = 7;
|
|
35
|
+
string documentId = 8;
|
|
36
|
+
string code = 9;
|
|
37
|
+
bool isSingleQuota = 10;
|
|
38
|
+
optional int32 quota = 11;
|
|
39
|
+
double discountAmount = 12;
|
|
40
|
+
double fee = 13;
|
|
41
|
+
double fine = 14;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message Payer {
|
|
45
|
+
optional string id = 1;
|
|
46
|
+
string name = 2;
|
|
47
|
+
string document = 3;
|
|
48
|
+
optional string phone = 4;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message Location {
|
|
52
|
+
int32 state = 1;
|
|
53
|
+
int32 city = 2;
|
|
54
|
+
string recipientId = 3;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message Meta {
|
|
58
|
+
optional Address address = 1;
|
|
59
|
+
optional string licensePlate = 2;
|
|
60
|
+
optional string model = 3;
|
|
61
|
+
optional int32 yearManufacture = 4;
|
|
62
|
+
optional string renavam = 5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message Address {
|
|
66
|
+
string street = 1;
|
|
67
|
+
string number = 2;
|
|
68
|
+
string complement = 3;
|
|
69
|
+
string neighborhood = 4;
|
|
70
|
+
string city = 5;
|
|
71
|
+
string state = 6;
|
|
72
|
+
string zipCode = 7;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message PaymentDetails {
|
|
76
|
+
string method = 1;
|
|
77
|
+
double amount = 2;
|
|
78
|
+
optional double discountPercentage = 3;
|
|
79
|
+
double fee = 4;
|
|
80
|
+
optional double discountAmount = 5;
|
|
81
|
+
optional string gatewayId = 6;
|
|
82
|
+
optional Card card = 7;
|
|
83
|
+
PaymentSchedule paymentSchedule = 8;
|
|
84
|
+
double baseFee = 9;
|
|
85
|
+
double feePercentage = 10;
|
|
86
|
+
optional string chargeId = 11;
|
|
87
|
+
optional bool isRetry = 12;
|
|
88
|
+
optional string orderId = 13;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message PaymentSchedule {
|
|
92
|
+
string type = 1;
|
|
93
|
+
optional string date = 2;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message Card {
|
|
97
|
+
string id = 1;
|
|
98
|
+
string shadowNumber = 2;
|
|
99
|
+
string brand = 3;
|
|
100
|
+
optional int32 installments = 4;
|
|
101
|
+
optional double installmentValue = 5;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message Order {
|
|
105
|
+
string id = 1;
|
|
106
|
+
double totalAmount = 2;
|
|
107
|
+
string status = 3;
|
|
108
|
+
string createdAt = 4;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message CreatePaymentResponse {
|
|
112
|
+
Order order = 1;
|
|
113
|
+
string orderType = 2;
|
|
114
|
+
string chargeId = 3;
|
|
115
|
+
}
|