@postpaybr/protos 1.1.10 → 1.1.14

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.
Files changed (105) hide show
  1. package/dist/typescript/account-entry.d.ts +4 -15
  2. package/dist/typescript/account-entry.js +11 -11
  3. package/dist/typescript/address.d.ts +1 -1
  4. package/dist/typescript/address.js +8 -13
  5. package/dist/typescript/admin-card-verification.d.ts +16 -19
  6. package/dist/typescript/admin-card-verification.js +12 -11
  7. package/dist/typescript/administrator.d.ts +10 -17
  8. package/dist/typescript/administrator.js +21 -20
  9. package/dist/typescript/anticipation.d.ts +7 -7
  10. package/dist/typescript/anticipation.js +14 -13
  11. package/dist/typescript/asset.d.ts +3 -3
  12. package/dist/typescript/asset.js +8 -13
  13. package/dist/typescript/auth.d.ts +2 -2
  14. package/dist/typescript/auth.js +8 -8
  15. package/dist/typescript/bank-account.d.ts +5 -8
  16. package/dist/typescript/bank-account.js +12 -12
  17. package/dist/typescript/card-vault.d.ts +1 -1
  18. package/dist/typescript/card-vault.js +8 -8
  19. package/dist/typescript/card-verification.d.ts +1 -1
  20. package/dist/typescript/card-verification.js +8 -11
  21. package/dist/typescript/card.d.ts +5 -20
  22. package/dist/typescript/card.js +17 -16
  23. package/dist/typescript/charge-schedule.d.ts +4 -16
  24. package/dist/typescript/charge-schedule.js +8 -8
  25. package/dist/typescript/charge.d.ts +112 -100
  26. package/dist/typescript/charge.js +38 -38
  27. package/dist/typescript/common.d.ts +122 -0
  28. package/dist/typescript/common.js +11 -0
  29. package/dist/typescript/context.d.ts +16 -46
  30. package/dist/typescript/context.js +16 -15
  31. package/dist/typescript/customer.d.ts +6 -15
  32. package/dist/typescript/customer.js +21 -21
  33. package/dist/typescript/daily-balance.d.ts +5 -8
  34. package/dist/typescript/daily-balance.js +8 -8
  35. package/dist/typescript/document-verification.d.ts +18 -20
  36. package/dist/typescript/document-verification.js +14 -13
  37. package/dist/typescript/email.d.ts +2 -2
  38. package/dist/typescript/email.js +13 -13
  39. package/dist/typescript/expo-push.d.ts +2 -3
  40. package/dist/typescript/expo-push.js +8 -8
  41. package/dist/typescript/fee.d.ts +6 -7
  42. package/dist/typescript/fee.js +11 -11
  43. package/dist/typescript/location.d.ts +1 -1
  44. package/dist/typescript/location.js +8 -8
  45. package/dist/typescript/notification.d.ts +39 -48
  46. package/dist/typescript/notification.js +19 -18
  47. package/dist/typescript/order.d.ts +38 -36
  48. package/dist/typescript/order.js +18 -17
  49. package/dist/typescript/payable.d.ts +39 -40
  50. package/dist/typescript/payable.js +21 -20
  51. package/dist/typescript/payer.d.ts +1 -1
  52. package/dist/typescript/payer.js +8 -8
  53. package/dist/typescript/payment-calculator.d.ts +7 -60
  54. package/dist/typescript/payment-calculator.js +13 -12
  55. package/dist/typescript/payment-card.d.ts +25 -81
  56. package/dist/typescript/payment-card.js +9 -12
  57. package/dist/typescript/payment-gateway.d.ts +9 -19
  58. package/dist/typescript/payment-gateway.js +15 -14
  59. package/dist/typescript/payment-pix.d.ts +3 -78
  60. package/dist/typescript/payment-pix.js +10 -10
  61. package/dist/typescript/receipt.d.ts +20 -43
  62. package/dist/typescript/receipt.js +17 -16
  63. package/dist/typescript/recipient-payment-gateway.d.ts +14 -23
  64. package/dist/typescript/recipient-payment-gateway.js +14 -13
  65. package/dist/typescript/recipient.d.ts +18 -25
  66. package/dist/typescript/recipient.js +20 -19
  67. package/dist/typescript/role.d.ts +3 -9
  68. package/dist/typescript/role.js +14 -13
  69. package/dist/typescript/sms.d.ts +1 -1
  70. package/dist/typescript/sms.js +8 -8
  71. package/dist/typescript/tax.d.ts +38 -60
  72. package/dist/typescript/tax.js +20 -19
  73. package/dist/typescript/transfer.d.ts +38 -19
  74. package/dist/typescript/transfer.js +9 -8
  75. package/dist/typescript/two-factor.d.ts +7 -8
  76. package/dist/typescript/two-factor.js +14 -13
  77. package/dist/typescript/user.d.ts +16 -19
  78. package/dist/typescript/user.js +24 -24
  79. package/dist/typescript/wallet.d.ts +1 -1
  80. package/dist/typescript/wallet.js +8 -8
  81. package/package.json +4 -3
  82. package/src/protos/account-entry.proto +3 -15
  83. package/src/protos/admin-card-verification.proto +0 -2
  84. package/src/protos/administrator.proto +4 -11
  85. package/src/protos/bank-account.proto +4 -5
  86. package/src/protos/charge.proto +12 -47
  87. package/src/protos/common.proto +140 -0
  88. package/src/protos/context.proto +8 -49
  89. package/src/protos/customer.proto +5 -15
  90. package/src/protos/daily-balance.proto +3 -6
  91. package/src/protos/document-verification.proto +5 -6
  92. package/src/protos/expo-push.proto +3 -3
  93. package/src/protos/fee.proto +3 -3
  94. package/src/protos/notification.proto +4 -12
  95. package/src/protos/order.proto +6 -16
  96. package/src/protos/payment-calculator.proto +11 -87
  97. package/src/protos/payment-card.proto +7 -90
  98. package/src/protos/payment-gateway.proto +4 -14
  99. package/src/protos/payment-pix.proto +5 -95
  100. package/src/protos/receipt.proto +7 -44
  101. package/src/protos/recipient-payment-gateway.proto +5 -15
  102. package/src/protos/recipient.proto +4 -9
  103. package/src/protos/role.proto +6 -11
  104. package/src/protos/tax.proto +12 -41
  105. package/src/protos/user.proto +4 -9
@@ -2,6 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package paymentCard;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service PaymentCard {
6
8
  rpc CreatePayment (CreatePaymentRequest) returns (CreatePaymentResponse);
7
9
  rpc ProcessScheduledPayment (ProcessScheduledPaymentRequest) returns (ProcessScheduledPaymentResponse);
@@ -11,99 +13,14 @@ service PaymentCard {
11
13
 
12
14
  message CreatePaymentRequest {
13
15
  string customerId = 1;
14
- repeated TaxPayload taxes = 2;
15
- PaymentDetails payment = 3;
16
+ repeated common.TaxPayload taxes = 2;
17
+ common.PaymentDetails payment = 3;
16
18
  optional bool closed = 4;
17
19
  optional string ip = 5;
18
20
  optional string sessionId = 6;
19
21
  string pushToken = 7;
20
22
  }
21
23
 
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
24
  message CreatePaymentResponse {
108
25
  Order order = 1;
109
26
  string orderType = 2;
@@ -111,9 +28,9 @@ message CreatePaymentResponse {
111
28
 
112
29
  message ProcessScheduledPaymentRequest {
113
30
  string customerId = 1;
114
- TaxPayload tax = 2;
31
+ common.TaxPayload tax = 2;
115
32
  Charge charge = 3;
116
- PaymentDetails payment = 4;
33
+ common.PaymentDetails payment = 4;
117
34
  }
118
35
 
119
36
  message ProcessScheduledPaymentResponse {}
@@ -202,7 +119,7 @@ message Order {
202
119
  message OrderItemEntity {
203
120
  string id = 1;
204
121
  Recipient recipient = 2;
205
- Tax tax = 3;
122
+ common.Tax tax = 3;
206
123
  Order order = 4;
207
124
  }
208
125
  message Customer {
@@ -2,6 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package paymentGateway;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service PaymentGatewayService {
6
8
  rpc getById(GetByIdRequest) returns (PaymentGatewayResponse);
7
9
  rpc getByGatewayId(GetByGatewayIdRequest) returns (PaymentGatewayResponse);
@@ -9,7 +11,7 @@ service PaymentGatewayService {
9
11
  rpc getGatewaysByMethodSupport(GetGatewaysByMethodSupportRequest) returns (PaymentGatewayListResponse);
10
12
  rpc createGateway(CreateGatewayRequest) returns (PaymentGatewayResponse);
11
13
  rpc updateGateway(UpdateGatewayRequest) returns (PaymentGatewayResponse);
12
- rpc deactivateGateway(DeactivateGatewayRequest) returns (Void);
14
+ rpc deactivateGateway(DeactivateGatewayRequest) returns (common.Void);
13
15
 
14
16
  }
15
17
 
@@ -77,18 +79,6 @@ message DeactivateGatewayRequest {
77
79
  string id = 1;
78
80
  }
79
81
 
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
82
  message GetAllGatewaysRequest {
93
- TableFilterParams filter = 1;
83
+ common.TableFilterParams filter = 1;
94
84
  }
@@ -2,114 +2,24 @@ syntax = "proto3";
2
2
 
3
3
  package paymentPix;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service PaymentPix {
6
8
  rpc CreatePayment (CreatePaymentRequest) returns (CreatePaymentResponse);
7
9
  }
8
10
 
9
11
  message CreatePaymentRequest {
10
12
  string customerId = 1;
11
- repeated TaxPayload taxes = 2;
12
- PaymentDetails payment = 3;
13
+ repeated common.TaxPayload taxes = 2;
14
+ common.PaymentDetails payment = 3;
13
15
  optional bool closed = 4;
14
16
  optional string ip = 5;
15
17
  optional string sessionId = 6;
16
18
  string pushToken = 7;
17
19
  }
18
20
 
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
21
  message CreatePaymentResponse {
112
- Order order = 1;
22
+ common.Order order = 1;
113
23
  string orderType = 2;
114
24
  string chargeId = 3;
115
25
  }
@@ -2,6 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package receipt;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service ReceiptService {
6
8
  rpc createReceipt (CreateReceiptRequest) returns (ReceiptResponse);
7
9
  rpc getReceipt (GetReceiptRequest) returns (ReceiptDetailResponse);
@@ -26,8 +28,8 @@ message GetReceiptRequest {
26
28
 
27
29
  message GetAllReceiptsRequest {
28
30
  string customerId = 1;
29
- DateFilter dateFilter = 2;
30
- PaginationFilter pagination = 3;
31
+ common.DateFilter dateFilter = 2;
32
+ common.PaginationFilter pagination = 3;
31
33
  }
32
34
 
33
35
  message UpdateTxidRequest {
@@ -109,43 +111,15 @@ message CreateReceiptDto {
109
111
  string txid = 5;
110
112
  }
111
113
 
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
114
  message TaxDetail {
123
115
  reducedTax tax = 1;
124
116
  Payer payer = 2;
125
- LocationInfo location = 3;
117
+ common.Location location = 3;
126
118
  string metaType = 4;
127
- Meta meta = 5;
119
+ common.Meta meta = 5;
128
120
  repeated TaxItem items = 6;
129
121
  }
130
122
 
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
123
  message reducedTax {
150
124
  string id = 1;
151
125
  string type = 2;
@@ -154,12 +128,6 @@ message reducedTax {
154
128
  string documentId = 5;
155
129
  }
156
130
 
157
- message LocationInfo {
158
- int32 state = 1;
159
- int32 city = 2;
160
- string recipientId = 3;
161
- }
162
-
163
131
  message TaxItem {
164
132
  string id = 1;
165
133
  string code = 2;
@@ -193,16 +161,11 @@ message IndividualPayment {
193
161
  string propertyDetail = 5;
194
162
  int32 installmentNumber = 6;
195
163
  double installmentValue = 7;
196
- optional ChargeScheduleDetail schedule = 8;
164
+ optional common.ChargeScheduleDetail schedule = 8;
197
165
  string taxType = 9;
198
166
  string status = 10;
199
167
  }
200
168
 
201
- message ChargeScheduleDetail {
202
- string executionDate = 2;
203
- bool isExecuted = 3;
204
- }
205
-
206
169
  message deleteReceiptByChargeIdRequest {
207
170
  string chargeId = 1;
208
171
  }
@@ -2,12 +2,14 @@ syntax = "proto3";
2
2
 
3
3
  package recipientPaymentGateway;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service RecipientPaymentGatewayService {
6
8
  rpc CreateRecipientPaymentGateway(CreateRecipientPaymentGatewayRequest) returns (RecipientPaymentGatewayResponse);
7
- rpc DeleteRecipientPaymentGateway(DeleteRecipientPaymentGatewayRequest) returns (Void);
9
+ rpc DeleteRecipientPaymentGateway(DeleteRecipientPaymentGatewayRequest) returns (common.Void);
8
10
  rpc GetGatewayByRecipientAndType(GetGatewayByRecipientAndTypeRequest) returns (RecipientPaymentGatewayResponse);
9
11
  rpc GetAvailableGateways(GetAvailableGatewaysRequest) returns (PaymentGatewayListResponse);
10
- rpc ListGatewayIdentifications(Void) returns (GatewayIdentificationListResponse);
12
+ rpc ListGatewayIdentifications(common.Void) returns (GatewayIdentificationListResponse);
11
13
 
12
14
  rpc GetRecipientPaymentGatewaysByRecipientId(GetRecipientPaymentGatewaysByRecipientIdRequest) returns (RecipientPaymentGatewayListResponse);
13
15
  }
@@ -83,19 +85,7 @@ message GetAvailableGatewaysRequest {
83
85
  string method = 1;
84
86
  }
85
87
 
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
88
  message GetRecipientPaymentGatewaysByRecipientIdRequest {
99
89
  string recipientId = 1;
100
- TableFilterParams filter = 2;
90
+ common.TableFilterParams filter = 2;
101
91
  }
@@ -2,13 +2,15 @@ syntax = "proto3";
2
2
 
3
3
  package recipient;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service RecipientService {
6
8
  rpc CreateRecipient (CreateRecipientRequest) returns (RecipientResponse);
7
9
  rpc UpdateRecipient (UpdateRecipientRequest) returns (RecipientResponse);
8
10
  rpc GetRecipientById (GetRecipientByIdRequest) returns (RecipientResponse);
9
11
  rpc GetRecipientByCode (GetRecipientByCodeRequest) returns (RecipientResponse);
10
12
  rpc GetRecipientNameById (GetRecipientNameByIdRequest) returns (RecipientNameResponse);
11
- rpc GetAllRecipients (Void) returns (GetAllRecipientsResponse);
13
+ rpc GetAllRecipients (common.Void) returns (GetAllRecipientsResponse);
12
14
  rpc GetRecipientFees (GetRecipientFeesRequest) returns (RecipientFeesResponse);
13
15
  rpc GetRecipientGateways (GetRecipientGatewaysRequest) returns (RecipientGatewaysResponse);
14
16
  rpc UpdateRecipientAvatar (UpdateRecipientAvatarRequest) returns (RecipientResponse);
@@ -59,8 +61,6 @@ message RecipientNameResponse {
59
61
  string name = 1;
60
62
  }
61
63
 
62
- message Void {}
63
-
64
64
  message GetAllRecipientsResponse {
65
65
  repeated Recipient recipients = 1;
66
66
  }
@@ -107,14 +107,9 @@ message RecipientGatewaysResponse {
107
107
  repeated RecipientGateway gateways = 1;
108
108
  }
109
109
 
110
- message ImageData {
111
- string mimetype = 1;
112
- bytes buffer = 2;
113
- }
114
-
115
110
  message UpdateRecipientAvatarRequest {
116
111
  string id = 1;
117
- ImageData avatar = 2;
112
+ common.ImageData avatar = 2;
118
113
  }
119
114
 
120
115
  message GetRecipientDetailsByIdRequest {
@@ -2,12 +2,14 @@ syntax = "proto3";
2
2
 
3
3
  package role;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service RoleService {
6
- rpc CreateRole (CreateRoleRequest) returns (Role);
8
+ rpc CreateRole (CreateRoleRequest) returns (common.Role);
7
9
  rpc DeleteRole (DeleteRoleRequest) returns (DeleteRoleResponse);
8
- rpc GetRoleById (GetRoleByIdRequest) returns (Role);
10
+ rpc GetRoleById (GetRoleByIdRequest) returns (common.Role);
9
11
  rpc GetAllRoles (GetAllRolesRequest) returns (GetAllRolesResponse);
10
- rpc UpdateRole (Role) returns (Role);
12
+ rpc UpdateRole (common.Role) returns (common.Role);
11
13
  rpc GetPermissionGroups (GetPermissionGroupsRequest) returns (GetPermissionGroupsResponse);
12
14
 
13
15
  }
@@ -30,17 +32,10 @@ message GetRoleByIdRequest {
30
32
  string id = 1;
31
33
  }
32
34
 
33
- message Role {
34
- string id = 1;
35
- string code = 2;
36
- string description = 3;
37
- repeated string permissions = 4;
38
- }
39
-
40
35
  message GetAllRolesRequest {}
41
36
 
42
37
  message GetAllRolesResponse {
43
- repeated Role roles = 1;
38
+ repeated common.Role roles = 1;
44
39
  }
45
40
 
46
41
  message GetPermissionGroupsRequest {}
@@ -2,6 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package tax;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service TaxService {
6
8
  rpc CreateTax (TaxPayloadRequest) returns (TaxEntity);
7
9
  rpc GetTaxesGroupedByPayerLocation (LocationDetailsDto) returns (GroupedPropertyDetails);
@@ -18,13 +20,6 @@ service TaxService {
18
20
  rpc GetCompleteTaxDetailsById (TaxByIdRequest) returns (CompleteTaxDetailsResponse);
19
21
  }
20
22
 
21
- message Payer {
22
- optional string id = 1;
23
- string name = 2;
24
- string document = 3;
25
- optional string phone = 4;
26
- }
27
-
28
23
  message LocationDetailsDto {
29
24
  string document = 1;
30
25
  int32 city = 2;
@@ -51,10 +46,10 @@ message completeTax {
51
46
 
52
47
  message TaxPayload {
53
48
  completeTax tax = 1;
54
- Payer payer = 2;
55
- Location location = 3;
49
+ common.Payer payer = 2;
50
+ common.Location location = 3;
56
51
  string metaType = 4;
57
- Meta meta = 5;
52
+ common.Meta meta = 5;
58
53
  }
59
54
 
60
55
  message Tax {
@@ -65,41 +60,17 @@ message Tax {
65
60
  string documentId = 8;
66
61
  }
67
62
 
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
63
  message Property {
93
64
  optional string documentId = 1;
94
- optional Address address = 2;
65
+ optional common.Address address = 2;
95
66
  }
96
67
 
97
68
  message TaxDetail {
98
69
  Tax tax = 1;
99
- Payer payer = 2;
100
- Location location = 3;
70
+ common.Payer payer = 2;
71
+ common.Location location = 3;
101
72
  string metaType = 4;
102
- Meta meta = 5;
73
+ common.Meta meta = 5;
103
74
  repeated TaxItem items = 6;
104
75
  }
105
76
 
@@ -119,7 +90,7 @@ message TaxItem {
119
90
 
120
91
  message PropertyDetail {
121
92
  Property property = 1;
122
- Payer payer = 2;
93
+ common.Payer payer = 2;
123
94
  repeated string taxTypes = 3;
124
95
  optional double pendingTaxesAmount = 4;
125
96
  optional double paidTaxesAmount = 5;
@@ -138,7 +109,7 @@ message TaxDueDate {
138
109
 
139
110
  message TaxPayloadRequest {
140
111
  TaxPayload data = 1;
141
- Payer payer = 2;
112
+ common.Payer payer = 2;
142
113
  }
143
114
 
144
115
  message TaxByDocumentIdRequest {
@@ -182,7 +153,7 @@ message TaxEntity {
182
153
  int32 city = 17;
183
154
  string recipientId = 18;
184
155
  string metaType = 19;
185
- optional Meta meta = 20;
156
+ optional common.Meta meta = 20;
186
157
 
187
158
  optional PayerEntity payer = 21;
188
159
  OrderItemEntity orderItem = 22;
@@ -2,6 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package user;
4
4
 
5
+ import "common.proto";
6
+
5
7
  service UserService {
6
8
  // Change Password Methods
7
9
  rpc CreateChangePassword(CreateChangePasswordRequest) returns (CreateChangePasswordResponse);
@@ -128,7 +130,7 @@ message User {
128
130
  string id = 1;
129
131
  string password = 2;
130
132
  string status = 3;
131
- repeated Role roles = 4;
133
+ repeated common.Role roles = 4;
132
134
  string accountId = 5;
133
135
  string accountType = 6;
134
136
  repeated Device devices = 7;
@@ -142,13 +144,6 @@ message User {
142
144
  string twoFactorEnabledAt = 15;
143
145
  }
144
146
 
145
- message Role {
146
- string id = 1;
147
- string code = 2;
148
- string description = 3;
149
- repeated string permissions = 4;
150
- }
151
-
152
147
  message UserWithDevices {
153
148
  User user = 1;
154
149
  repeated Device devices = 2;
@@ -176,7 +171,7 @@ message GetUserRolesRequest {
176
171
  }
177
172
 
178
173
  message GetUserRolesResponse {
179
- repeated Role roles = 1;
174
+ repeated common.Role roles = 1;
180
175
  }
181
176
 
182
177
  message UpdateUserRolesRequest {