@postpaybr/protos 1.1.2 → 1.1.7

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 (157) hide show
  1. package/dist/typescript/account-entry.d.ts +80 -0
  2. package/dist/typescript/account-entry.js +28 -0
  3. package/dist/typescript/address.d.ts +65 -0
  4. package/dist/typescript/address.js +29 -0
  5. package/dist/typescript/admin-card-verification.d.ts +86 -0
  6. package/dist/typescript/admin-card-verification.js +28 -0
  7. package/dist/typescript/administrator.d.ts +176 -0
  8. package/dist/typescript/administrator.js +37 -0
  9. package/dist/typescript/anticipation.d.ts +84 -0
  10. package/dist/typescript/anticipation.js +30 -0
  11. package/dist/typescript/asset.d.ts +43 -0
  12. package/dist/typescript/asset.js +29 -0
  13. package/dist/typescript/auth.d.ts +28 -0
  14. package/dist/typescript/auth.js +24 -0
  15. package/dist/typescript/bank-account.d.ts +63 -0
  16. package/dist/typescript/bank-account.js +29 -0
  17. package/dist/typescript/card-vault.d.ts +35 -0
  18. package/dist/typescript/card-vault.js +24 -0
  19. package/dist/typescript/card-verification.d.ts +29 -0
  20. package/dist/typescript/card-verification.js +27 -0
  21. package/dist/typescript/card.d.ts +147 -0
  22. package/dist/typescript/card.js +33 -0
  23. package/dist/typescript/charge-schedule.d.ts +35 -0
  24. package/dist/typescript/charge-schedule.js +24 -0
  25. package/dist/typescript/charge.d.ts +538 -0
  26. package/dist/typescript/charge.js +55 -0
  27. package/dist/typescript/context.d.ts +154 -0
  28. package/dist/typescript/context.js +32 -0
  29. package/dist/typescript/customer.d.ts +213 -0
  30. package/dist/typescript/customer.js +39 -0
  31. package/dist/typescript/daily-balance.d.ts +32 -0
  32. package/dist/typescript/daily-balance.js +24 -0
  33. package/dist/typescript/document-verification.d.ts +106 -0
  34. package/dist/typescript/document-verification.js +30 -0
  35. package/dist/typescript/email.d.ts +71 -0
  36. package/dist/typescript/email.js +31 -0
  37. package/dist/typescript/expo-push.d.ts +31 -0
  38. package/dist/typescript/expo-push.js +24 -0
  39. package/dist/typescript/fee.d.ts +66 -0
  40. package/dist/typescript/fee.js +28 -0
  41. package/dist/typescript/location.d.ts +38 -0
  42. package/dist/typescript/location.js +24 -0
  43. package/dist/typescript/notification.d.ts +198 -0
  44. package/dist/typescript/notification.js +35 -0
  45. package/dist/typescript/order.d.ts +173 -0
  46. package/dist/typescript/order.js +34 -0
  47. package/dist/typescript/payable.d.ts +226 -0
  48. package/dist/typescript/payable.js +37 -0
  49. package/dist/typescript/payer.d.ts +23 -0
  50. package/dist/typescript/payer.js +24 -0
  51. package/dist/typescript/payment-calculator.d.ts +135 -0
  52. package/dist/typescript/payment-calculator.js +29 -0
  53. package/dist/typescript/payment-card.d.ts +189 -0
  54. package/dist/typescript/payment-card.js +27 -0
  55. package/dist/typescript/payment-gateway.d.ts +92 -0
  56. package/dist/typescript/payment-gateway.js +31 -0
  57. package/dist/typescript/payment-pix.d.ts +101 -0
  58. package/dist/typescript/payment-pix.js +24 -0
  59. package/dist/typescript/receipt.d.ts +193 -0
  60. package/dist/typescript/receipt.js +33 -0
  61. package/dist/typescript/recipient-payment-gateway.d.ts +95 -0
  62. package/dist/typescript/recipient-payment-gateway.js +30 -0
  63. package/dist/typescript/recipient.d.ts +222 -0
  64. package/dist/typescript/recipient.js +36 -0
  65. package/dist/typescript/role.d.ts +57 -0
  66. package/dist/typescript/role.js +30 -0
  67. package/dist/typescript/sms.d.ts +34 -0
  68. package/dist/typescript/sms.js +24 -0
  69. package/dist/typescript/tax.d.ts +293 -0
  70. package/dist/typescript/tax.js +36 -0
  71. package/dist/typescript/transfer.d.ts +185 -0
  72. package/dist/typescript/transfer.js +23 -0
  73. package/dist/typescript/two-factor.d.ts +66 -0
  74. package/dist/typescript/two-factor.js +30 -0
  75. package/dist/typescript/user.d.ts +196 -0
  76. package/dist/typescript/user.js +41 -0
  77. package/dist/typescript/wallet.d.ts +18 -0
  78. package/dist/typescript/wallet.js +24 -0
  79. package/package.json +11 -9
  80. package/typescript/account-entry.ts +0 -177
  81. package/typescript/address.ts +0 -133
  82. package/typescript/admin-card-verification.ts +0 -181
  83. package/typescript/administrator.ts +0 -375
  84. package/typescript/anticipation.ts +0 -187
  85. package/typescript/asset.ts +0 -123
  86. package/typescript/auth.ts +0 -84
  87. package/typescript/bank-account.ts +0 -157
  88. package/typescript/card-vault.ts +0 -92
  89. package/typescript/card-verification.ts +0 -93
  90. package/typescript/card.ts +0 -283
  91. package/typescript/charge-schedule.ts +0 -86
  92. package/typescript/charge.ts +0 -930
  93. package/typescript/context.ts +0 -296
  94. package/typescript/customer.ts +0 -425
  95. package/typescript/daily-balance.ts +0 -94
  96. package/typescript/document-verification.ts +0 -219
  97. package/typescript/email.ts +0 -183
  98. package/typescript/expo-push.ts +0 -75
  99. package/typescript/fee.ts +0 -131
  100. package/typescript/location.ts +0 -96
  101. package/typescript/notification.ts +0 -372
  102. package/typescript/order.ts +0 -311
  103. package/typescript/payable.ts +0 -414
  104. package/typescript/payer.ts +0 -68
  105. package/typescript/payment-calculator.ts +0 -252
  106. package/typescript/payment-card.ts +0 -289
  107. package/typescript/payment-gateway.ts +0 -209
  108. package/typescript/payment-pix.ts +0 -170
  109. package/typescript/receipt.ts +0 -344
  110. package/typescript/recipient-payment-gateway.ts +0 -209
  111. package/typescript/recipient.ts +0 -413
  112. package/typescript/role.ts +0 -144
  113. package/typescript/sms.ts +0 -96
  114. package/typescript/tax.ts +0 -463
  115. package/typescript/transfer.ts +0 -260
  116. package/typescript/two-factor.ts +0 -177
  117. package/typescript/user.ts +0 -413
  118. package/typescript/wallet.ts +0 -63
  119. /package/{account-entry.proto → src/protos/account-entry.proto} +0 -0
  120. /package/{address.proto → src/protos/address.proto} +0 -0
  121. /package/{admin-card-verification.proto → src/protos/admin-card-verification.proto} +0 -0
  122. /package/{administrator.proto → src/protos/administrator.proto} +0 -0
  123. /package/{anticipation.proto → src/protos/anticipation.proto} +0 -0
  124. /package/{asset.proto → src/protos/asset.proto} +0 -0
  125. /package/{auth.proto → src/protos/auth.proto} +0 -0
  126. /package/{bank-account.proto → src/protos/bank-account.proto} +0 -0
  127. /package/{card-vault.proto → src/protos/card-vault.proto} +0 -0
  128. /package/{card-verification.proto → src/protos/card-verification.proto} +0 -0
  129. /package/{card.proto → src/protos/card.proto} +0 -0
  130. /package/{charge-schedule.proto → src/protos/charge-schedule.proto} +0 -0
  131. /package/{charge.proto → src/protos/charge.proto} +0 -0
  132. /package/{context.proto → src/protos/context.proto} +0 -0
  133. /package/{customer.proto → src/protos/customer.proto} +0 -0
  134. /package/{daily-balance.proto → src/protos/daily-balance.proto} +0 -0
  135. /package/{document-verification.proto → src/protos/document-verification.proto} +0 -0
  136. /package/{email.proto → src/protos/email.proto} +0 -0
  137. /package/{expo-push.proto → src/protos/expo-push.proto} +0 -0
  138. /package/{fee.proto → src/protos/fee.proto} +0 -0
  139. /package/{location.proto → src/protos/location.proto} +0 -0
  140. /package/{notification.proto → src/protos/notification.proto} +0 -0
  141. /package/{order.proto → src/protos/order.proto} +0 -0
  142. /package/{payable.proto → src/protos/payable.proto} +0 -0
  143. /package/{payer.proto → src/protos/payer.proto} +0 -0
  144. /package/{payment-calculator.proto → src/protos/payment-calculator.proto} +0 -0
  145. /package/{payment-card.proto → src/protos/payment-card.proto} +0 -0
  146. /package/{payment-gateway.proto → src/protos/payment-gateway.proto} +0 -0
  147. /package/{payment-pix.proto → src/protos/payment-pix.proto} +0 -0
  148. /package/{receipt.proto → src/protos/receipt.proto} +0 -0
  149. /package/{recipient-payment-gateway.proto → src/protos/recipient-payment-gateway.proto} +0 -0
  150. /package/{recipient.proto → src/protos/recipient.proto} +0 -0
  151. /package/{role.proto → src/protos/role.proto} +0 -0
  152. /package/{sms.proto → src/protos/sms.proto} +0 -0
  153. /package/{tax.proto → src/protos/tax.proto} +0 -0
  154. /package/{transfer.proto → src/protos/transfer.proto} +0 -0
  155. /package/{two-factor.proto → src/protos/two-factor.proto} +0 -0
  156. /package/{user.proto → src/protos/user.proto} +0 -0
  157. /package/{wallet.proto → src/protos/wallet.proto} +0 -0
@@ -1,260 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.0
4
- // protoc v6.32.0
5
- // source: transfer.proto
6
-
7
- /* eslint-disable */
8
- import {
9
- ChargeStatus,
10
- GatewayIdentification,
11
- } from '@postpaybr/contracts/types';
12
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
13
- import { Observable } from 'rxjs';
14
-
15
- export const protobufPackage = 'transfer';
16
-
17
- export interface UpdateTransferStatusRequest {
18
- transferId: string;
19
- status: ChargeStatus;
20
- responsePayload?: Record<string, any>;
21
- }
22
-
23
- export interface UpdateTransferStatusResponse {
24
- success: boolean;
25
- }
26
-
27
- export interface Transfer {
28
- id: string;
29
- amount: number;
30
- recipientId: string;
31
- chargeId: string;
32
- description: string;
33
- status: ChargeStatus;
34
- processedAt: string;
35
- gatewayId: GatewayIdentification;
36
- bankAccountId: string;
37
- requestPayload: Record<string, any>;
38
- responsePayload?: Record<string, any>;
39
- createdAt: Date;
40
- updatedAt: Date;
41
- }
42
-
43
- export interface BankAccount {
44
- id: string;
45
- recipientId: string;
46
- bankCode: string;
47
- branch: string;
48
- account: string;
49
- accountType: string;
50
- pixKey: string;
51
- pixKeyType: string;
52
- balance: number;
53
- transfers: string[];
54
- isMain: boolean;
55
- createdAt: Date;
56
- updatedAt: Date;
57
- }
58
-
59
- export interface Recipient {
60
- id: string;
61
- code: string;
62
- commercialName: string;
63
- socialReason: string;
64
- holderType: string;
65
- document: string;
66
- cnaeId: string;
67
- legalType: string;
68
- foundation: string;
69
- contactName: string;
70
- contactEmail: string;
71
- contactPhone: string;
72
- isAutomaticAnticipationEnabled: boolean;
73
- avatarUrl: string;
74
- isActive: boolean;
75
- providerStatus: string;
76
- payableIds: string[];
77
- addressId: string;
78
- createdAt: Date;
79
- updatedAt: Date;
80
- }
81
-
82
- export interface Charge {
83
- id: string;
84
- amount: number;
85
- paymentMethod: string;
86
- status: string;
87
- type: string;
88
- dueAt: string;
89
- txid: string;
90
- endToEndId: string;
91
- brcode: string;
92
- pushToken: string;
93
- installmentNumber: number;
94
- installmentValue: number;
95
- fee: number;
96
- baseFee: number;
97
- feePercentage: number;
98
- isScheduled: boolean;
99
- discountPercentage: number;
100
- discountAmount: number;
101
- createdAt: Date;
102
- gatewayId: GatewayIdentification;
103
- cardId: string;
104
- orderId: string;
105
- orderScheduleId: string;
106
- payableIds: string[];
107
- taxId: string;
108
- metadata: string;
109
- }
110
-
111
- export interface Payable {
112
- id: string;
113
- amount: number;
114
- installment: number;
115
- status: string;
116
- dueAt: string;
117
- isAnticipated: boolean;
118
- processedAt: string;
119
- createdAt: Date;
120
- chargeId: string;
121
- recipientId: string;
122
- }
123
-
124
- export interface BankTransferData {
125
- pixKey: string;
126
- amount: number;
127
- chargeId: string;
128
- recipient: Recipient | undefined;
129
- routingKey: string;
130
- gatewayId: GatewayIdentification;
131
- payables: Payable[];
132
- bankAccountId: string;
133
- }
134
-
135
- export interface UpdateBankAccountBalanceRequest {
136
- bankAccountId: string;
137
- amount: number;
138
- operation: string;
139
- }
140
-
141
- export interface UpdateBankAccountBalanceResponse {
142
- success: boolean;
143
- newBalance: number;
144
- }
145
-
146
- export interface GetMainAccountRequest {}
147
-
148
- export interface GetMainAccountResponse {
149
- bankAccount: BankAccount | undefined;
150
- }
151
-
152
- export interface GetBankAccountByRecipientIdRequest {
153
- recipientId: string;
154
- }
155
-
156
- export interface GetBankAccountByRecipientIdResponse {
157
- bankAccount: BankAccount[];
158
- }
159
-
160
- export interface GetRecipientByIdRequest {
161
- id: string;
162
- }
163
-
164
- export interface GetRecipientByIdResponse {
165
- recipient: Recipient | undefined;
166
- }
167
-
168
- export interface GetLiquidatedChargesForTransferRequest {}
169
-
170
- export interface GetLiquidatedChargesForTransferResponse {
171
- charges: Charge[];
172
- }
173
-
174
- export interface UpdatePayablesStatusRequest {
175
- payableIds: string[];
176
- status: string;
177
- }
178
-
179
- export interface UpdatePayablesStatusResponse {
180
- success: boolean;
181
- affected: number;
182
- }
183
-
184
- export interface GetPayableByIdRequest {
185
- payableId: string;
186
- }
187
-
188
- export interface GetPayableByIdResponse {
189
- payable: Payable | undefined;
190
- }
191
-
192
- export interface RoutingInfoRequest {
193
- method: string;
194
- recipientId: string;
195
- operationType: string;
196
- }
197
-
198
- export interface RoutingInfoResponse {
199
- gatewayId: GatewayIdentification;
200
- pixKey: string;
201
- routingKey: string;
202
- }
203
-
204
- export interface CreatePaymentPixRequest {
205
- data: BankTransferData | undefined;
206
- routingKey: string;
207
- }
208
-
209
- export interface CreatePaymentPixResponse {
210
- success: boolean;
211
- paymentId: string;
212
- }
213
-
214
- export const TRANSFER_PACKAGE_NAME = 'transfer';
215
-
216
- export interface TransferServiceClient {
217
- updateTransferStatus(
218
- request: UpdateTransferStatusRequest,
219
- ): Observable<UpdateTransferStatusResponse>;
220
- }
221
-
222
- export interface TransferServiceController {
223
- updateTransferStatus(
224
- request: UpdateTransferStatusRequest,
225
- ):
226
- | Promise<UpdateTransferStatusResponse>
227
- | Observable<UpdateTransferStatusResponse>
228
- | UpdateTransferStatusResponse;
229
- }
230
-
231
- export function TransferServiceControllerMethods() {
232
- return function (constructor: Function) {
233
- const grpcMethods: string[] = ['updateTransferStatus'];
234
- for (const method of grpcMethods) {
235
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
236
- constructor.prototype,
237
- method,
238
- );
239
- GrpcMethod('TransferService', method)(
240
- constructor.prototype[method],
241
- method,
242
- descriptor,
243
- );
244
- }
245
- const grpcStreamMethods: string[] = [];
246
- for (const method of grpcStreamMethods) {
247
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
248
- constructor.prototype,
249
- method,
250
- );
251
- GrpcStreamMethod('TransferService', method)(
252
- constructor.prototype[method],
253
- method,
254
- descriptor,
255
- );
256
- }
257
- };
258
- }
259
-
260
- export const TRANSFER_SERVICE_NAME = 'TransferService';
@@ -1,177 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.0
4
- // protoc v6.32.1
5
- // source: two-factor.proto
6
-
7
- /* eslint-disable */
8
- import { AccountTypeEnum } from '@postpaybr/contracts/types';
9
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
10
- import { Observable } from 'rxjs';
11
-
12
- export const protobufPackage = 'twoFactor';
13
-
14
- export interface EnableTwoFactorRequest {
15
- accountId: string;
16
- accountType: AccountTypeEnum;
17
- }
18
-
19
- export interface TwoFactorResponse {
20
- qrCodeUrl: string;
21
- backupCodes: string[];
22
- }
23
-
24
- export interface VerifyTwoFactorRequest {
25
- accountId: string;
26
- accountType: AccountTypeEnum;
27
- token: string;
28
- }
29
-
30
- export interface VerifyTwoFactorResponse {
31
- success: boolean;
32
- }
33
-
34
- export interface DisableTwoFactorRequest {
35
- accountId: string;
36
- accountType: AccountTypeEnum;
37
- backupCode: string;
38
- }
39
-
40
- export interface DisableTwoFactorResponse {
41
- success: boolean;
42
- }
43
-
44
- export interface VerifyTwoFactorTokenRequest {
45
- accountId: string;
46
- accountType: AccountTypeEnum;
47
- token: string;
48
- }
49
-
50
- export interface GenerateBackupCodesRequest {
51
- accountId: string;
52
- accountType: AccountTypeEnum;
53
- }
54
-
55
- export interface GenerateBackupCodesResponse {
56
- backupCodes: string[];
57
- }
58
-
59
- export interface GetTwoFactorStatusRequest {
60
- accountId: string;
61
- accountType: AccountTypeEnum;
62
- }
63
-
64
- export interface TwoFactorStatusResponse {
65
- isEnabled: boolean;
66
- hasBackupCodes: boolean;
67
- }
68
-
69
- export const TWO_FACTOR_PACKAGE_NAME = 'twoFactor';
70
-
71
- export interface TwoFactorServiceClient {
72
- enableTwoFactor(
73
- request: EnableTwoFactorRequest,
74
- ): Observable<TwoFactorResponse>;
75
-
76
- verifyAndEnableTwoFactor(
77
- request: VerifyTwoFactorRequest,
78
- ): Observable<VerifyTwoFactorResponse>;
79
-
80
- disableTwoFactor(
81
- request: DisableTwoFactorRequest,
82
- ): Observable<DisableTwoFactorResponse>;
83
-
84
- verifyTwoFactorToken(
85
- request: VerifyTwoFactorTokenRequest,
86
- ): Observable<VerifyTwoFactorResponse>;
87
-
88
- generateNewBackupCodes(
89
- request: GenerateBackupCodesRequest,
90
- ): Observable<GenerateBackupCodesResponse>;
91
-
92
- getTwoFactorStatus(
93
- request: GetTwoFactorStatusRequest,
94
- ): Observable<TwoFactorStatusResponse>;
95
- }
96
-
97
- export interface TwoFactorServiceController {
98
- enableTwoFactor(
99
- request: EnableTwoFactorRequest,
100
- ):
101
- | Promise<TwoFactorResponse>
102
- | Observable<TwoFactorResponse>
103
- | TwoFactorResponse;
104
-
105
- verifyAndEnableTwoFactor(
106
- request: VerifyTwoFactorRequest,
107
- ):
108
- | Promise<VerifyTwoFactorResponse>
109
- | Observable<VerifyTwoFactorResponse>
110
- | VerifyTwoFactorResponse;
111
-
112
- disableTwoFactor(
113
- request: DisableTwoFactorRequest,
114
- ):
115
- | Promise<DisableTwoFactorResponse>
116
- | Observable<DisableTwoFactorResponse>
117
- | DisableTwoFactorResponse;
118
-
119
- verifyTwoFactorToken(
120
- request: VerifyTwoFactorTokenRequest,
121
- ):
122
- | Promise<VerifyTwoFactorResponse>
123
- | Observable<VerifyTwoFactorResponse>
124
- | VerifyTwoFactorResponse;
125
-
126
- generateNewBackupCodes(
127
- request: GenerateBackupCodesRequest,
128
- ):
129
- | Promise<GenerateBackupCodesResponse>
130
- | Observable<GenerateBackupCodesResponse>
131
- | GenerateBackupCodesResponse;
132
-
133
- getTwoFactorStatus(
134
- request: GetTwoFactorStatusRequest,
135
- ):
136
- | Promise<TwoFactorStatusResponse>
137
- | Observable<TwoFactorStatusResponse>
138
- | TwoFactorStatusResponse;
139
- }
140
-
141
- export function TwoFactorServiceControllerMethods() {
142
- return function (constructor: Function) {
143
- const grpcMethods: string[] = [
144
- 'enableTwoFactor',
145
- 'verifyAndEnableTwoFactor',
146
- 'disableTwoFactor',
147
- 'verifyTwoFactorToken',
148
- 'generateNewBackupCodes',
149
- 'getTwoFactorStatus',
150
- ];
151
- for (const method of grpcMethods) {
152
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
153
- constructor.prototype,
154
- method,
155
- );
156
- GrpcMethod('TwoFactorService', method)(
157
- constructor.prototype[method],
158
- method,
159
- descriptor,
160
- );
161
- }
162
- const grpcStreamMethods: string[] = [];
163
- for (const method of grpcStreamMethods) {
164
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
165
- constructor.prototype,
166
- method,
167
- );
168
- GrpcStreamMethod('TwoFactorService', method)(
169
- constructor.prototype[method],
170
- method,
171
- descriptor,
172
- );
173
- }
174
- };
175
- }
176
-
177
- export const TWO_FACTOR_SERVICE_NAME = 'TwoFactorService';