@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,93 +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 v3.20.3
5
- // source: card-verification.proto
6
-
7
- /* eslint-disable */
8
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
9
- import { Observable } from 'rxjs';
10
-
11
- export const protobufPackage = 'cardVerification';
12
-
13
- export interface CreateCardVerificationRequest {
14
- customerId: string;
15
- cardId: string;
16
- }
17
-
18
- export interface CreateCardVerificationResponse {
19
- id: string;
20
- }
21
-
22
- export interface CheckVerifyCardCodeRequest {
23
- verificationId: string;
24
- value: number;
25
- }
26
-
27
- export interface CheckVerifyCardCodeResponse {
28
- remainingAttempts: number;
29
- isSuccessfullyVerified: boolean;
30
- cardId: string;
31
- }
32
-
33
- export const CARD_VERIFICATION_PACKAGE_NAME = 'cardVerification';
34
-
35
- export interface CardVerificationServiceClient {
36
- createCardVerification(
37
- request: CreateCardVerificationRequest,
38
- ): Observable<CreateCardVerificationResponse>;
39
-
40
- checkVerifyCardCode(
41
- request: CheckVerifyCardCodeRequest,
42
- ): Observable<CheckVerifyCardCodeResponse>;
43
- }
44
-
45
- export interface CardVerificationServiceController {
46
- createCardVerification(
47
- request: CreateCardVerificationRequest,
48
- ):
49
- | Promise<CreateCardVerificationResponse>
50
- | Observable<CreateCardVerificationResponse>
51
- | CreateCardVerificationResponse;
52
-
53
- checkVerifyCardCode(
54
- request: CheckVerifyCardCodeRequest,
55
- ):
56
- | Promise<CheckVerifyCardCodeResponse>
57
- | Observable<CheckVerifyCardCodeResponse>
58
- | CheckVerifyCardCodeResponse;
59
- }
60
-
61
- export function CardVerificationServiceControllerMethods() {
62
- return function (constructor: Function) {
63
- const grpcMethods: string[] = [
64
- 'createCardVerification',
65
- 'checkVerifyCardCode',
66
- ];
67
- for (const method of grpcMethods) {
68
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
69
- constructor.prototype,
70
- method,
71
- );
72
- GrpcMethod('CardVerificationService', method)(
73
- constructor.prototype[method],
74
- method,
75
- descriptor,
76
- );
77
- }
78
- const grpcStreamMethods: string[] = [];
79
- for (const method of grpcStreamMethods) {
80
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
81
- constructor.prototype,
82
- method,
83
- );
84
- GrpcStreamMethod('CardVerificationService', method)(
85
- constructor.prototype[method],
86
- method,
87
- descriptor,
88
- );
89
- }
90
- };
91
- }
92
-
93
- export const CARD_VERIFICATION_SERVICE_NAME = 'CardVerificationService';
@@ -1,283 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.7.7
4
- // protoc v6.33.4
5
- // source: card.proto
6
-
7
- /* eslint-disable */
8
- import { brandType } from '@postpaybr/contracts/types';
9
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
10
- import { Observable } from 'rxjs';
11
-
12
- export const protobufPackage = 'card';
13
-
14
- export interface CreateCardRequest {
15
- customerId: string;
16
- cardData: CardData | undefined;
17
- }
18
-
19
- export interface CreateCardResponse {
20
- id: string;
21
- shadowNumber: string;
22
- brand: brandType;
23
- expiration: string;
24
- isCredit: boolean;
25
- isDebit: boolean;
26
- issuer?: string | undefined;
27
- }
28
-
29
- export interface CardData {
30
- holderName: string;
31
- nickname?: string | undefined;
32
- number: string;
33
- expiration: string;
34
- cvv: string;
35
- isCreditCard: boolean;
36
- isDebitCard: boolean;
37
- associatedAddressId: string;
38
- }
39
-
40
- export interface UpdateCardNicknameRequest {
41
- customerId: string;
42
- cardId: string;
43
- nickname: string;
44
- }
45
-
46
- export interface UpdateCardNicknameResponse {
47
- id: string;
48
- nickname?: string | undefined;
49
- brand: brandType;
50
- shadowNumber: string;
51
- vaultToken: string;
52
- vaultTokenCvv: string;
53
- expiration: string;
54
- isCredit: boolean;
55
- isDebit: boolean;
56
- isDisabled: boolean;
57
- isVerified: boolean;
58
- customerId: string;
59
- addressId: string;
60
- issuer?: string | undefined;
61
- }
62
-
63
- export interface DeleteCardRequest {
64
- cardId: string;
65
- }
66
-
67
- export interface GetCardsByTypeRequest {
68
- customerId: string;
69
- type: string;
70
- }
71
-
72
- export interface GetCardsByTypeResponse {
73
- cards: CardDetails[];
74
- }
75
-
76
- export interface CardDetails {
77
- id: string;
78
- nickname?: string | undefined;
79
- brand: brandType;
80
- shadowNumber: string;
81
- vaultToken: string;
82
- vaultTokenCvv: string;
83
- expiration: string;
84
- isCredit: boolean;
85
- isDebit: boolean;
86
- isDisabled: boolean;
87
- isVerified: boolean;
88
- customerId: string;
89
- addressId: string;
90
- issuer?: string | undefined;
91
- }
92
-
93
- export interface GetVaultCardDetailsRequest {
94
- customerId: string;
95
- cardId: string;
96
- }
97
-
98
- export interface GetVaultCardDetailsResponse {
99
- token: string;
100
- cvv: string;
101
- }
102
-
103
- export interface TokenizeCardRequest {
104
- ccn: string;
105
- cvv: string;
106
- expMonth: number;
107
- expYear: number;
108
- cardType: string;
109
- fullName: string;
110
- referenceId: string;
111
- cvvTtl: number;
112
- }
113
-
114
- export interface TokenizeCardResponse {
115
- vaultToken: string;
116
- vaultTokenCvv: string;
117
- }
118
-
119
- export interface GetAllCardsByCustomerIdRequest {
120
- customerId: string;
121
- }
122
-
123
- export interface GetAllCardsByCustomerIdResponse {
124
- cards: CardDetails[];
125
- }
126
-
127
- export interface GetCardByIdRequest {
128
- id: string;
129
- includeVaultTokens?: boolean | undefined;
130
- }
131
-
132
- export interface ValidateCardNumberRequest {
133
- cardNumber: string;
134
- }
135
-
136
- export interface ValidateCardNumberResponse {
137
- isValid: boolean;
138
- }
139
-
140
- export interface ValidateCVVRequest {
141
- cardId: string;
142
- cvv: string;
143
- customerId: string;
144
- }
145
-
146
- export interface ValidateCVVResponse {
147
- isValid: boolean;
148
- remainingAttempts: number;
149
- isBlocked: boolean;
150
- blockedUntil?: Date;
151
- }
152
-
153
- export const CARD_PACKAGE_NAME = 'card';
154
-
155
- export interface CardServiceClient {
156
- createCard(request: CreateCardRequest): Observable<CreateCardResponse>;
157
-
158
- updateCardNickname(
159
- request: UpdateCardNicknameRequest,
160
- ): Observable<UpdateCardNicknameResponse>;
161
-
162
- deleteCard(request: DeleteCardRequest): Observable<CardDetails>;
163
-
164
- getCardsByType(
165
- request: GetCardsByTypeRequest,
166
- ): Observable<GetCardsByTypeResponse>;
167
-
168
- getVaultCardDetails(
169
- request: GetVaultCardDetailsRequest,
170
- ): Observable<GetVaultCardDetailsResponse>;
171
-
172
- getAllCardsByCustomerId(
173
- request: GetAllCardsByCustomerIdRequest,
174
- ): Observable<GetAllCardsByCustomerIdResponse>;
175
-
176
- getCardById(request: GetCardByIdRequest): Observable<CardDetails>;
177
-
178
- validateCardNumber(
179
- request: ValidateCardNumberRequest,
180
- ): Observable<ValidateCardNumberResponse>;
181
-
182
- validateCvv(request: ValidateCVVRequest): Observable<ValidateCVVResponse>;
183
- }
184
-
185
- export interface CardServiceController {
186
- createCard(
187
- request: CreateCardRequest,
188
- ):
189
- | Promise<CreateCardResponse>
190
- | Observable<CreateCardResponse>
191
- | CreateCardResponse;
192
-
193
- updateCardNickname(
194
- request: UpdateCardNicknameRequest,
195
- ):
196
- | Promise<UpdateCardNicknameResponse>
197
- | Observable<UpdateCardNicknameResponse>
198
- | UpdateCardNicknameResponse;
199
-
200
- deleteCard(
201
- request: DeleteCardRequest,
202
- ): Promise<CardDetails> | Observable<CardDetails> | CardDetails;
203
-
204
- getCardsByType(
205
- request: GetCardsByTypeRequest,
206
- ):
207
- | Promise<GetCardsByTypeResponse>
208
- | Observable<GetCardsByTypeResponse>
209
- | GetCardsByTypeResponse;
210
-
211
- getVaultCardDetails(
212
- request: GetVaultCardDetailsRequest,
213
- ):
214
- | Promise<GetVaultCardDetailsResponse>
215
- | Observable<GetVaultCardDetailsResponse>
216
- | GetVaultCardDetailsResponse;
217
-
218
- getAllCardsByCustomerId(
219
- request: GetAllCardsByCustomerIdRequest,
220
- ):
221
- | Promise<GetAllCardsByCustomerIdResponse>
222
- | Observable<GetAllCardsByCustomerIdResponse>
223
- | GetAllCardsByCustomerIdResponse;
224
-
225
- getCardById(
226
- request: GetCardByIdRequest,
227
- ): Promise<CardDetails> | Observable<CardDetails> | CardDetails;
228
-
229
- validateCardNumber(
230
- request: ValidateCardNumberRequest,
231
- ):
232
- | Promise<ValidateCardNumberResponse>
233
- | Observable<ValidateCardNumberResponse>
234
- | ValidateCardNumberResponse;
235
-
236
- validateCvv(
237
- request: ValidateCVVRequest,
238
- ):
239
- | Promise<ValidateCVVResponse>
240
- | Observable<ValidateCVVResponse>
241
- | ValidateCVVResponse;
242
- }
243
-
244
- export function CardServiceControllerMethods() {
245
- return function (constructor: Function) {
246
- const grpcMethods: string[] = [
247
- 'createCard',
248
- 'updateCardNickname',
249
- 'deleteCard',
250
- 'getCardsByType',
251
- 'getVaultCardDetails',
252
- 'getAllCardsByCustomerId',
253
- 'getCardById',
254
- 'validateCardNumber',
255
- 'validateCvv',
256
- ];
257
- for (const method of grpcMethods) {
258
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
259
- constructor.prototype,
260
- method,
261
- );
262
- GrpcMethod('CardService', method)(
263
- constructor.prototype[method],
264
- method,
265
- descriptor,
266
- );
267
- }
268
- const grpcStreamMethods: string[] = [];
269
- for (const method of grpcStreamMethods) {
270
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
271
- constructor.prototype,
272
- method,
273
- );
274
- GrpcStreamMethod('CardService', method)(
275
- constructor.prototype[method],
276
- method,
277
- descriptor,
278
- );
279
- }
280
- };
281
- }
282
-
283
- export const CARD_SERVICE_NAME = 'CardService';
@@ -1,86 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.6.0
4
- // protoc v3.20.3
5
- // source: charge-schedule.proto
6
-
7
- /* eslint-disable */
8
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
9
- import { Observable } from 'rxjs';
10
-
11
- export const protobufPackage = 'chargeSchedule';
12
-
13
- export interface CreateChargeScheduleRequest {
14
- chargeId: string;
15
- executionDate: string;
16
- }
17
-
18
- export interface CreateChargeScheduleResponse {
19
- chargeSchedule: ChargeSchedule | undefined;
20
- }
21
-
22
- export interface ChargeSchedule {
23
- id: string;
24
- executionDate: Date;
25
- isExecuted: boolean;
26
- }
27
-
28
- export interface HealthCheckRequest {}
29
-
30
- export interface HealthCheckResponse {
31
- status: string;
32
- details: { [key: string]: string };
33
- }
34
-
35
- export interface HealthCheckResponse_DetailsEntry {
36
- key: string;
37
- value: string;
38
- }
39
-
40
- export const CHARGE_SCHEDULE_PACKAGE_NAME = 'chargeSchedule';
41
-
42
- export interface ChargeScheduleServiceClient {
43
- CreateChargeSchedule(
44
- request: CreateChargeScheduleRequest,
45
- ): Observable<CreateChargeScheduleResponse>;
46
- }
47
-
48
- export interface ChargeScheduleServiceController {
49
- CreateChargeSchedule(
50
- request: CreateChargeScheduleRequest,
51
- ):
52
- | Promise<CreateChargeScheduleResponse>
53
- | Observable<CreateChargeScheduleResponse>
54
- | CreateChargeScheduleResponse;
55
- }
56
-
57
- export function ChargeScheduleServiceControllerMethods() {
58
- return function (constructor: Function) {
59
- const grpcMethods: string[] = ['CreateChargeSchedule'];
60
- for (const method of grpcMethods) {
61
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
62
- constructor.prototype,
63
- method,
64
- );
65
- GrpcMethod('ChargeScheduleService', method)(
66
- constructor.prototype[method],
67
- method,
68
- descriptor,
69
- );
70
- }
71
- const grpcStreamMethods: string[] = [];
72
- for (const method of grpcStreamMethods) {
73
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
74
- constructor.prototype,
75
- method,
76
- );
77
- GrpcStreamMethod('ChargeScheduleService', method)(
78
- constructor.prototype[method],
79
- method,
80
- descriptor,
81
- );
82
- }
83
- };
84
- }
85
-
86
- export const CHARGE_SCHEDULE_SERVICE_NAME = 'ChargeScheduleService';