@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
@@ -1,40 +1,41 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.0
5
- // protoc v6.32.1
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: recipient.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.RECIPIENT_SERVICE_NAME = exports.RECIPIENT_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.RecipientServiceControllerMethods = RecipientServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'recipient';
12
- exports.RECIPIENT_PACKAGE_NAME = 'recipient';
12
+ exports.protobufPackage = "recipient";
13
+ exports.RECIPIENT_PACKAGE_NAME = "recipient";
13
14
  function RecipientServiceControllerMethods() {
14
15
  return function (constructor) {
15
16
  const grpcMethods = [
16
- 'createRecipient',
17
- 'updateRecipient',
18
- 'getRecipientById',
19
- 'getRecipientByCode',
20
- 'getRecipientNameById',
21
- 'getAllRecipients',
22
- 'getRecipientFees',
23
- 'getRecipientGateways',
24
- 'updateRecipientAvatar',
25
- 'getRecipientDetailsById',
26
- 'isAutomaticAnticipationEnabled',
27
- 'getExternalRecipientId',
17
+ "createRecipient",
18
+ "updateRecipient",
19
+ "getRecipientById",
20
+ "getRecipientByCode",
21
+ "getRecipientNameById",
22
+ "getAllRecipients",
23
+ "getRecipientFees",
24
+ "getRecipientGateways",
25
+ "updateRecipientAvatar",
26
+ "getRecipientDetailsById",
27
+ "isAutomaticAnticipationEnabled",
28
+ "getExternalRecipientId",
28
29
  ];
29
30
  for (const method of grpcMethods) {
30
31
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
31
- (0, microservices_1.GrpcMethod)('RecipientService', method)(constructor.prototype[method], method, descriptor);
32
+ (0, microservices_1.GrpcMethod)("RecipientService", method)(constructor.prototype[method], method, descriptor);
32
33
  }
33
34
  const grpcStreamMethods = [];
34
35
  for (const method of grpcStreamMethods) {
35
36
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
36
- (0, microservices_1.GrpcStreamMethod)('RecipientService', method)(constructor.prototype[method], method, descriptor);
37
+ (0, microservices_1.GrpcStreamMethod)("RecipientService", method)(constructor.prototype[method], method, descriptor);
37
38
  }
38
39
  };
39
40
  }
40
- exports.RECIPIENT_SERVICE_NAME = 'RecipientService';
41
+ exports.RECIPIENT_SERVICE_NAME = "RecipientService";
@@ -1,10 +1,10 @@
1
- import { Permission } from '@postpaybr/contracts/dist/enums';
2
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { Role } from "./common";
3
3
  export declare const protobufPackage = "role";
4
4
  export interface CreateRoleRequest {
5
5
  code: string;
6
6
  description: string;
7
- permissions: Permission[];
7
+ permissions: string[];
8
8
  }
9
9
  export interface DeleteRoleRequest {
10
10
  id: string;
@@ -15,12 +15,6 @@ export interface DeleteRoleResponse {
15
15
  export interface GetRoleByIdRequest {
16
16
  id: string;
17
17
  }
18
- export interface Role {
19
- id: string;
20
- code: string;
21
- description: string;
22
- permissions: Permission[];
23
- }
24
18
  export interface GetAllRolesRequest {
25
19
  }
26
20
  export interface GetAllRolesResponse {
@@ -1,34 +1,35 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.6.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: role.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ROLE_SERVICE_NAME = exports.ROLE_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.RoleServiceControllerMethods = RoleServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'role';
12
- exports.ROLE_PACKAGE_NAME = 'role';
12
+ exports.protobufPackage = "role";
13
+ exports.ROLE_PACKAGE_NAME = "role";
13
14
  function RoleServiceControllerMethods() {
14
15
  return function (constructor) {
15
16
  const grpcMethods = [
16
- 'createRole',
17
- 'deleteRole',
18
- 'getRoleById',
19
- 'getAllRoles',
20
- 'updateRole',
21
- 'getPermissionGroups',
17
+ "createRole",
18
+ "deleteRole",
19
+ "getRoleById",
20
+ "getAllRoles",
21
+ "updateRole",
22
+ "getPermissionGroups",
22
23
  ];
23
24
  for (const method of grpcMethods) {
24
25
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
25
- (0, microservices_1.GrpcMethod)('RoleService', method)(constructor.prototype[method], method, descriptor);
26
+ (0, microservices_1.GrpcMethod)("RoleService", method)(constructor.prototype[method], method, descriptor);
26
27
  }
27
28
  const grpcStreamMethods = [];
28
29
  for (const method of grpcStreamMethods) {
29
30
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
30
- (0, microservices_1.GrpcStreamMethod)('RoleService', method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcStreamMethod)("RoleService", method)(constructor.prototype[method], method, descriptor);
31
32
  }
32
33
  };
33
34
  }
34
- exports.ROLE_SERVICE_NAME = 'RoleService';
35
+ exports.ROLE_SERVICE_NAME = "RoleService";
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "sms";
3
3
  export interface SendSmsToVerifyRequest {
4
4
  phoneNumber: string;
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.6.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: sms.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.SMS_SERVICE_NAME = exports.SMS_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.SmsServiceControllerMethods = SmsServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'sms';
13
- exports.SMS_PACKAGE_NAME = 'sms';
12
+ exports.protobufPackage = "sms";
13
+ exports.SMS_PACKAGE_NAME = "sms";
14
14
  function SmsServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = ['sendSmsToVerify', 'verifySmsCode'];
16
+ const grpcMethods = ["sendSmsToVerify", "verifySmsCode"];
17
17
  for (const method of grpcMethods) {
18
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
- (0, microservices_1.GrpcMethod)('SmsService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("SmsService", method)(constructor.prototype[method], method, descriptor);
20
20
  }
21
21
  const grpcStreamMethods = [];
22
22
  for (const method of grpcStreamMethods) {
23
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
- (0, microservices_1.GrpcStreamMethod)('SmsService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("SmsService", method)(constructor.prototype[method], method, descriptor);
25
25
  }
26
26
  };
27
27
  }
28
- exports.SMS_SERVICE_NAME = 'SmsService';
28
+ exports.SMS_SERVICE_NAME = "SmsService";
@@ -1,12 +1,6 @@
1
- import { ChargeStatus, MetaType, OrderStatus, PaymentMethods, taxMeta, TaxStatus, TaxTypes } from '@postpaybr/contracts/dist/types';
2
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { Address, Location, Meta, Payer } from "./common";
3
3
  export declare const protobufPackage = "tax";
4
- export interface Payer {
5
- id?: string | undefined;
6
- name: string;
7
- document: string;
8
- phone?: string | undefined;
9
- }
10
4
  export interface LocationDetailsDto {
11
5
  document: string;
12
6
  city: number;
@@ -15,8 +9,8 @@ export interface LocationDetailsDto {
15
9
  }
16
10
  export interface completeTax {
17
11
  id: string;
18
- type: TaxTypes;
19
- status: TaxStatus;
12
+ type: string;
13
+ status: string;
20
14
  description: string;
21
15
  amount: number;
22
16
  year: number;
@@ -25,48 +19,34 @@ export interface completeTax {
25
19
  code: string;
26
20
  isSingleQuota: boolean;
27
21
  quota?: number | undefined;
22
+ discountAmount: number;
28
23
  fee: number;
29
24
  fine: number;
30
- discountAmount: number;
31
25
  }
32
26
  export interface TaxPayload {
33
27
  tax: completeTax | undefined;
34
28
  payer: Payer | undefined;
35
29
  location: Location | undefined;
36
- metaType: MetaType;
37
- meta: taxMeta | undefined;
30
+ metaType: string;
31
+ meta: Meta | undefined;
38
32
  }
39
33
  export interface Tax {
40
34
  id: string;
41
- type: TaxTypes;
35
+ type: string;
42
36
  description: string;
43
37
  year: number;
44
38
  documentId: string;
45
39
  }
46
- export interface Location {
47
- state: number;
48
- city: number;
49
- recipientId: string;
50
- }
51
- export interface Address {
52
- street: string;
53
- number: string;
54
- complement: string;
55
- neighborhood: string;
56
- city: string;
57
- state: string;
58
- zipCode: string;
59
- }
60
40
  export interface Property {
61
41
  documentId?: string | undefined;
62
42
  address?: Address | undefined;
63
43
  }
64
44
  export interface TaxDetail {
65
- tax: any | undefined;
66
- payer: any | undefined;
45
+ tax: Tax | undefined;
46
+ payer: Payer | undefined;
67
47
  location: Location | undefined;
68
- metaType: MetaType;
69
- meta: taxMeta | undefined;
48
+ metaType: string;
49
+ meta: Meta | undefined;
70
50
  items: TaxItem[];
71
51
  }
72
52
  export interface TaxItem {
@@ -76,7 +56,7 @@ export interface TaxItem {
76
56
  dueAt: string;
77
57
  amount: number;
78
58
  isSingleQuota: boolean;
79
- status: TaxStatus;
59
+ status: string;
80
60
  discountPercentage: number;
81
61
  discountAmount: number;
82
62
  fee: number;
@@ -85,14 +65,14 @@ export interface TaxItem {
85
65
  export interface PropertyDetail {
86
66
  property: Property | undefined;
87
67
  payer: Payer | undefined;
88
- taxTypes: any;
68
+ taxTypes: string[];
89
69
  pendingTaxesAmount?: number | undefined;
90
70
  paidTaxesAmount?: number | undefined;
91
71
  overdueTaxesAmount?: number | undefined;
92
72
  lastPaidTaxDate?: string | undefined;
93
73
  nextDueDate?: string | undefined;
94
- nearDueTaxesDates?: TaxDueDate[];
95
- overdueTaxesDates?: TaxDueDate[];
74
+ nearDueTaxesDates: TaxDueDate[];
75
+ overdueTaxesDates: TaxDueDate[];
96
76
  receiptId?: string | undefined;
97
77
  }
98
78
  export interface TaxDueDate {
@@ -108,7 +88,7 @@ export interface TaxByDocumentIdRequest {
108
88
  }
109
89
  export interface TaxByDocumentIdAndTypeRequest {
110
90
  documentId: string;
111
- type: TaxTypes;
91
+ type: string;
112
92
  }
113
93
  export interface TaxByIdRequest {
114
94
  id: string;
@@ -121,8 +101,8 @@ export interface TaxDetails {
121
101
  }
122
102
  export interface TaxEntity {
123
103
  id: string;
124
- type: TaxTypes;
125
- status: TaxStatus;
104
+ type: string;
105
+ status: string;
126
106
  description: string;
127
107
  amount: number;
128
108
  year: number;
@@ -138,39 +118,37 @@ export interface TaxEntity {
138
118
  state: number;
139
119
  city: number;
140
120
  recipientId: string;
141
- metaType: MetaType;
142
- meta?: taxMeta | undefined;
143
- payer: PayerEntity | undefined;
144
- orderItem?: OrderItemEntity | undefined;
121
+ metaType: string;
122
+ meta?: Meta | undefined;
123
+ payer?: PayerEntity | undefined;
124
+ orderItem: OrderItemEntity | undefined;
145
125
  receipt?: Receipt | undefined;
146
- createdAt: Date;
147
- updatedAt: Date;
148
126
  }
149
127
  export interface Charge {
150
128
  id: string;
151
129
  amount: number;
152
130
  paymentMethod: string;
153
- status: ChargeStatus;
131
+ status: string;
154
132
  dueAt?: string | undefined;
155
133
  txid?: string | undefined;
156
134
  brcode?: string | undefined;
157
135
  installmentNumber?: number | undefined;
158
136
  installmentValue?: number | undefined;
159
- createdAt: Date;
137
+ createdAt: string;
160
138
  }
161
139
  export interface PayerEntity {
162
140
  id: string;
163
141
  name: string;
164
142
  document: string;
165
143
  phone: string;
166
- taxes: TaxEntity[];
144
+ taxes: Tax[];
167
145
  }
168
146
  export interface Receipt {
169
147
  id: string;
170
148
  amount: number;
171
149
  protocol: string;
172
150
  txid?: string | undefined;
173
- createdAt: Date;
151
+ createdAt: string;
174
152
  }
175
153
  export interface OrderItemEntity {
176
154
  id: string;
@@ -181,8 +159,8 @@ export interface OrderItemEntity {
181
159
  export interface Order {
182
160
  id: string;
183
161
  totalAmount: number;
184
- status: OrderStatus;
185
- createdAt: Date;
162
+ status: string;
163
+ createdAt: string;
186
164
  items: OrderItemEntity[];
187
165
  charges: Charge[];
188
166
  customer: Customer | undefined;
@@ -212,7 +190,7 @@ export interface UpdateTaxReceiptIdRequest {
212
190
  }
213
191
  export interface UpdateTaxStatusRequest {
214
192
  id: string;
215
- status: TaxStatus;
193
+ status: string;
216
194
  }
217
195
  export interface GetAllTaxesRequest {
218
196
  data?: GetAllTaxesDto | undefined;
@@ -221,30 +199,30 @@ export interface GetAllTaxesRequest {
221
199
  }
222
200
  export interface GetAllTaxesDto {
223
201
  recipientId?: string | undefined;
224
- types?: TaxTypes[] | undefined;
225
- statuses?: TaxStatus[] | undefined;
202
+ types: string[];
203
+ statuses: string[];
226
204
  }
227
205
  export interface PaginationFilterDto {
228
206
  limit?: number | undefined;
229
207
  offset?: number | undefined;
230
208
  }
231
209
  export interface DateFilterDto {
232
- startDate?: Date | undefined;
233
- endDate?: Date | undefined;
210
+ startDate?: string | undefined;
211
+ endDate?: string | undefined;
234
212
  }
235
213
  export interface GetAllTaxesResponse {
236
214
  taxes: TaxEntity[];
237
215
  count: number;
238
216
  }
239
217
  export interface CompleteTaxDetailsResponse {
240
- tax?: TaxEntity | undefined;
218
+ tax: TaxEntity | undefined;
241
219
  charge?: ChargeDetails | undefined;
242
220
  }
243
221
  export interface ChargeDetails {
244
222
  id: string;
245
223
  amount: number;
246
- paymentMethod: PaymentMethods;
247
- status: ChargeStatus;
224
+ paymentMethod: string;
225
+ status: string;
248
226
  dueAt: string;
249
227
  txid?: string | undefined;
250
228
  brcode?: string | undefined;
@@ -255,7 +233,7 @@ export interface ChargeDetails {
255
233
  feePercentage: number;
256
234
  discountPercentage: number;
257
235
  discountAmount: number;
258
- createdAt: Date;
236
+ createdAt: string;
259
237
  gatewayId: string;
260
238
  failureReason?: string | undefined;
261
239
  failureDetails?: string | undefined;
@@ -1,40 +1,41 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.7
5
- // protoc v6.33.0
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: tax.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.TAX_SERVICE_NAME = exports.TAX_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.TaxServiceControllerMethods = TaxServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'tax';
12
- exports.TAX_PACKAGE_NAME = 'tax';
12
+ exports.protobufPackage = "tax";
13
+ exports.TAX_PACKAGE_NAME = "tax";
13
14
  function TaxServiceControllerMethods() {
14
15
  return function (constructor) {
15
16
  const grpcMethods = [
16
- 'createTax',
17
- 'getTaxesGroupedByPayerLocation',
18
- 'getTaxesGroupedByDocumentId',
19
- 'getTaxesByDocumentId',
20
- 'getTaxesByDocumentIdAndType',
21
- 'groupTaxesByDocumentId',
22
- 'getTaxDetailsById',
23
- 'getTaxDescription',
24
- 'updateTaxReceiptId',
25
- 'updateTaxStatus',
26
- 'getAllTaxes',
27
- 'getCompleteTaxDetailsById',
17
+ "createTax",
18
+ "getTaxesGroupedByPayerLocation",
19
+ "getTaxesGroupedByDocumentId",
20
+ "getTaxesByDocumentId",
21
+ "getTaxesByDocumentIdAndType",
22
+ "groupTaxesByDocumentId",
23
+ "getTaxDetailsById",
24
+ "getTaxDescription",
25
+ "updateTaxReceiptId",
26
+ "updateTaxStatus",
27
+ "getAllTaxes",
28
+ "getCompleteTaxDetailsById",
28
29
  ];
29
30
  for (const method of grpcMethods) {
30
31
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
31
- (0, microservices_1.GrpcMethod)('TaxService', method)(constructor.prototype[method], method, descriptor);
32
+ (0, microservices_1.GrpcMethod)("TaxService", method)(constructor.prototype[method], method, descriptor);
32
33
  }
33
34
  const grpcStreamMethods = [];
34
35
  for (const method of grpcStreamMethods) {
35
36
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
36
- (0, microservices_1.GrpcStreamMethod)('TaxService', method)(constructor.prototype[method], method, descriptor);
37
+ (0, microservices_1.GrpcStreamMethod)("TaxService", method)(constructor.prototype[method], method, descriptor);
37
38
  }
38
39
  };
39
40
  }
40
- exports.TAX_SERVICE_NAME = 'TaxService';
41
+ exports.TAX_SERVICE_NAME = "TaxService";
@@ -1,10 +1,15 @@
1
- import { ChargeStatus, GatewayIdentification } from '@postpaybr/contracts/dist/types';
2
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
3
2
  export declare const protobufPackage = "transfer";
4
3
  export interface UpdateTransferStatusRequest {
5
4
  transferId: string;
6
- status: ChargeStatus;
7
- responsePayload?: Record<string, any>;
5
+ status: string;
6
+ responsePayload: {
7
+ [key: string]: string;
8
+ };
9
+ }
10
+ export interface UpdateTransferStatusRequest_ResponsePayloadEntry {
11
+ key: string;
12
+ value: string;
8
13
  }
9
14
  export interface UpdateTransferStatusResponse {
10
15
  success: boolean;
@@ -12,17 +17,30 @@ export interface UpdateTransferStatusResponse {
12
17
  export interface Transfer {
13
18
  id: string;
14
19
  amount: number;
20
+ type: string;
15
21
  recipientId: string;
16
22
  chargeId: string;
17
23
  description: string;
18
- status: ChargeStatus;
24
+ status: string;
19
25
  processedAt: string;
20
- gatewayId: GatewayIdentification;
26
+ gatewayId: string;
21
27
  bankAccountId: string;
22
- requestPayload: Record<string, any>;
23
- responsePayload?: Record<string, any>;
24
- createdAt: Date;
25
- updatedAt: Date;
28
+ requestPayload: {
29
+ [key: string]: string;
30
+ };
31
+ responsePayload: {
32
+ [key: string]: string;
33
+ };
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ }
37
+ export interface Transfer_RequestPayloadEntry {
38
+ key: string;
39
+ value: string;
40
+ }
41
+ export interface Transfer_ResponsePayloadEntry {
42
+ key: string;
43
+ value: string;
26
44
  }
27
45
  export interface BankAccount {
28
46
  id: string;
@@ -36,8 +54,8 @@ export interface BankAccount {
36
54
  balance: number;
37
55
  transfers: string[];
38
56
  isMain: boolean;
39
- createdAt: Date;
40
- updatedAt: Date;
57
+ createdAt: string;
58
+ updatedAt: string;
41
59
  }
42
60
  export interface Recipient {
43
61
  id: string;
@@ -56,10 +74,11 @@ export interface Recipient {
56
74
  avatarUrl: string;
57
75
  isActive: boolean;
58
76
  providerStatus: string;
77
+ administrators: string[];
59
78
  payableIds: string[];
60
79
  addressId: string;
61
- createdAt: Date;
62
- updatedAt: Date;
80
+ createdAt: string;
81
+ updatedAt: string;
63
82
  }
64
83
  export interface Charge {
65
84
  id: string;
@@ -80,8 +99,8 @@ export interface Charge {
80
99
  isScheduled: boolean;
81
100
  discountPercentage: number;
82
101
  discountAmount: number;
83
- createdAt: Date;
84
- gatewayId: GatewayIdentification;
102
+ createdAt: string;
103
+ gatewayId: string;
85
104
  cardId: string;
86
105
  orderId: string;
87
106
  orderScheduleId: string;
@@ -97,7 +116,7 @@ export interface Payable {
97
116
  dueAt: string;
98
117
  isAnticipated: boolean;
99
118
  processedAt: string;
100
- createdAt: Date;
119
+ createdAt: string;
101
120
  chargeId: string;
102
121
  recipientId: string;
103
122
  }
@@ -107,7 +126,7 @@ export interface BankTransferData {
107
126
  chargeId: string;
108
127
  recipient: Recipient | undefined;
109
128
  routingKey: string;
110
- gatewayId: GatewayIdentification;
129
+ gatewayId: string;
111
130
  payables: Payable[];
112
131
  bankAccountId: string;
113
132
  }
@@ -162,7 +181,7 @@ export interface RoutingInfoRequest {
162
181
  operationType: string;
163
182
  }
164
183
  export interface RoutingInfoResponse {
165
- gatewayId: GatewayIdentification;
184
+ gatewayId: string;
166
185
  pixKey: string;
167
186
  routingKey: string;
168
187
  }
@@ -1,27 +1,28 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.0
5
- // protoc v6.32.0
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: transfer.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.TRANSFER_SERVICE_NAME = exports.TRANSFER_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.TransferServiceControllerMethods = TransferServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'transfer';
12
- exports.TRANSFER_PACKAGE_NAME = 'transfer';
12
+ exports.protobufPackage = "transfer";
13
+ exports.TRANSFER_PACKAGE_NAME = "transfer";
13
14
  function TransferServiceControllerMethods() {
14
15
  return function (constructor) {
15
- const grpcMethods = ['updateTransferStatus'];
16
+ const grpcMethods = ["updateTransferStatus"];
16
17
  for (const method of grpcMethods) {
17
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
18
- (0, microservices_1.GrpcMethod)('TransferService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("TransferService", method)(constructor.prototype[method], method, descriptor);
19
20
  }
20
21
  const grpcStreamMethods = [];
21
22
  for (const method of grpcStreamMethods) {
22
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
23
- (0, microservices_1.GrpcStreamMethod)('TransferService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("TransferService", method)(constructor.prototype[method], method, descriptor);
24
25
  }
25
26
  };
26
27
  }
27
- exports.TRANSFER_SERVICE_NAME = 'TransferService';
28
+ exports.TRANSFER_SERVICE_NAME = "TransferService";