@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,187 +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: anticipation.proto
6
-
7
- /* eslint-disable */
8
- import { AnticipationStatus } from '@postpaybr/contracts/types';
9
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
10
- import { Observable } from 'rxjs';
11
-
12
- export const protobufPackage = 'anticipation';
13
-
14
- export interface SimulateAnticipationsRequest {
15
- payableIds: string[];
16
- }
17
-
18
- export interface CreateAnticipationsRequest {
19
- payableIds: string[];
20
- }
21
-
22
- export interface GetAnticipationsByRecipientRequest {
23
- recipientId: string;
24
- }
25
-
26
- export interface GetAnticipationRequest {
27
- id: string;
28
- }
29
-
30
- export interface UpdateAnticipationStatusRequest {
31
- anticipationId: string;
32
- status: string;
33
- }
34
-
35
- export interface SimulationResponse {
36
- payableCount: number;
37
- totalAmount: number;
38
- recipientId: string;
39
- }
40
-
41
- export interface AnticipationResponse {
42
- success: boolean;
43
- }
44
-
45
- export interface GetAnticipationsResponse {
46
- anticipations: Anticipation[];
47
- }
48
-
49
- export interface Anticipation {
50
- id: string;
51
- amount: number;
52
- fee: number;
53
- baseFee: number;
54
- feePercentage: number;
55
- status: string;
56
- externalId?: string | undefined;
57
- anticipatedDays?: number | undefined;
58
- createdAt: Date;
59
- updatedAt: Date;
60
- payable: Payable | undefined;
61
- }
62
-
63
- export interface Payable {
64
- id: string;
65
- amount: number;
66
- installment: number;
67
- status: string;
68
- dueAt: string;
69
- createdAt: Date;
70
- isAnticipated: boolean;
71
- processedAt: Date;
72
- chargeId: string;
73
- recipientId: string;
74
- }
75
-
76
- export interface UpdateAnticipationRequest {
77
- payableId: string;
78
- externalId?: string | undefined;
79
- status?: AnticipationStatus | undefined;
80
- amount?: number | undefined;
81
- fee?: number | undefined;
82
- baseFee?: number | undefined;
83
- feePercentage?: number | undefined;
84
- anticipatedDays?: number | undefined;
85
- }
86
-
87
- export const ANTICIPATION_PACKAGE_NAME = 'anticipation';
88
-
89
- export interface AnticipationServiceClient {
90
- simulateAnticipations(
91
- request: SimulateAnticipationsRequest,
92
- ): Observable<SimulationResponse>;
93
-
94
- createAnticipations(
95
- request: CreateAnticipationsRequest,
96
- ): Observable<AnticipationResponse>;
97
-
98
- getAnticipationsByRecipient(
99
- request: GetAnticipationsByRecipientRequest,
100
- ): Observable<GetAnticipationsResponse>;
101
-
102
- getAnticipation(request: GetAnticipationRequest): Observable<Anticipation>;
103
-
104
- updateAnticipationStatus(
105
- request: UpdateAnticipationStatusRequest,
106
- ): Observable<AnticipationResponse>;
107
-
108
- updateAnticipation(
109
- request: UpdateAnticipationRequest,
110
- ): Observable<Anticipation>;
111
- }
112
-
113
- export interface AnticipationServiceController {
114
- simulateAnticipations(
115
- request: SimulateAnticipationsRequest,
116
- ):
117
- | Promise<SimulationResponse>
118
- | Observable<SimulationResponse>
119
- | SimulationResponse;
120
-
121
- createAnticipations(
122
- request: CreateAnticipationsRequest,
123
- ):
124
- | Promise<AnticipationResponse>
125
- | Observable<AnticipationResponse>
126
- | AnticipationResponse;
127
-
128
- getAnticipationsByRecipient(
129
- request: GetAnticipationsByRecipientRequest,
130
- ):
131
- | Promise<GetAnticipationsResponse>
132
- | Observable<GetAnticipationsResponse>
133
- | GetAnticipationsResponse;
134
-
135
- getAnticipation(
136
- request: GetAnticipationRequest,
137
- ): Promise<Anticipation> | Observable<Anticipation> | Anticipation;
138
-
139
- updateAnticipationStatus(
140
- request: UpdateAnticipationStatusRequest,
141
- ):
142
- | Promise<AnticipationResponse>
143
- | Observable<AnticipationResponse>
144
- | AnticipationResponse;
145
-
146
- updateAnticipation(
147
- request: UpdateAnticipationRequest,
148
- ): Promise<Anticipation> | Observable<Anticipation> | Anticipation;
149
- }
150
-
151
- export function AnticipationServiceControllerMethods() {
152
- return function (constructor: Function) {
153
- const grpcMethods: string[] = [
154
- 'simulateAnticipations',
155
- 'createAnticipations',
156
- 'getAnticipationsByRecipient',
157
- 'getAnticipation',
158
- 'updateAnticipationStatus',
159
- 'updateAnticipation',
160
- ];
161
- for (const method of grpcMethods) {
162
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
163
- constructor.prototype,
164
- method,
165
- );
166
- GrpcMethod('AnticipationService', method)(
167
- constructor.prototype[method],
168
- method,
169
- descriptor,
170
- );
171
- }
172
- const grpcStreamMethods: string[] = [];
173
- for (const method of grpcStreamMethods) {
174
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
175
- constructor.prototype,
176
- method,
177
- );
178
- GrpcStreamMethod('AnticipationService', method)(
179
- constructor.prototype[method],
180
- method,
181
- descriptor,
182
- );
183
- }
184
- };
185
- }
186
-
187
- export const ANTICIPATION_SERVICE_NAME = 'AnticipationService';
@@ -1,123 +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: asset.proto
6
-
7
- /* eslint-disable */
8
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
9
- import { Observable } from 'rxjs';
10
-
11
- export const protobufPackage = 'asset';
12
-
13
- export interface WriteFileRequest {
14
- buffer: Uint8Array;
15
- mimetype: string;
16
- folder?: string;
17
- }
18
-
19
- export interface WriteFileResponse {
20
- filename: string;
21
- }
22
-
23
- export interface ReadFileRequest {
24
- identifier: string;
25
- }
26
-
27
- export interface ReadFileResponse {
28
- buffer: Uint8Array;
29
- }
30
-
31
- export interface DeleteFileRequest {
32
- identifier: string;
33
- }
34
-
35
- export interface DeleteFileResponse {
36
- success: boolean;
37
- }
38
-
39
- export interface FileExistsRequest {
40
- identifier: string;
41
- }
42
-
43
- export interface FileExistsResponse {
44
- exists: boolean;
45
- }
46
-
47
- export const ASSET_PACKAGE_NAME = 'asset';
48
-
49
- export interface AssetServiceClient {
50
- writeFile(request: WriteFileRequest): Observable<WriteFileResponse>;
51
-
52
- readFile(request: ReadFileRequest): Observable<ReadFileResponse>;
53
-
54
- deleteFile(request: DeleteFileRequest): Observable<DeleteFileResponse>;
55
-
56
- fileExists(request: FileExistsRequest): Observable<FileExistsResponse>;
57
- }
58
-
59
- export interface AssetServiceController {
60
- writeFile(
61
- request: WriteFileRequest,
62
- ):
63
- | Promise<WriteFileResponse>
64
- | Observable<WriteFileResponse>
65
- | WriteFileResponse;
66
-
67
- readFile(
68
- request: ReadFileRequest,
69
- ):
70
- | Promise<ReadFileResponse>
71
- | Observable<ReadFileResponse>
72
- | ReadFileResponse;
73
-
74
- deleteFile(
75
- request: DeleteFileRequest,
76
- ):
77
- | Promise<DeleteFileResponse>
78
- | Observable<DeleteFileResponse>
79
- | DeleteFileResponse;
80
-
81
- fileExists(
82
- request: FileExistsRequest,
83
- ):
84
- | Promise<FileExistsResponse>
85
- | Observable<FileExistsResponse>
86
- | FileExistsResponse;
87
- }
88
-
89
- export function AssetServiceControllerMethods() {
90
- return function (constructor: Function) {
91
- const grpcMethods: string[] = [
92
- 'writeFile',
93
- 'readFile',
94
- 'deleteFile',
95
- 'fileExists',
96
- ];
97
- for (const method of grpcMethods) {
98
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
99
- constructor.prototype,
100
- method,
101
- );
102
- GrpcMethod('AssetService', method)(
103
- constructor.prototype[method],
104
- method,
105
- descriptor,
106
- );
107
- }
108
- const grpcStreamMethods: string[] = [];
109
- for (const method of grpcStreamMethods) {
110
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
111
- constructor.prototype,
112
- method,
113
- );
114
- GrpcStreamMethod('AssetService', method)(
115
- constructor.prototype[method],
116
- method,
117
- descriptor,
118
- );
119
- }
120
- };
121
- }
122
-
123
- export const ASSET_SERVICE_NAME = 'AssetService';
@@ -1,84 +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: auth.proto
6
-
7
- /* eslint-disable */
8
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
9
- import { Observable } from 'rxjs';
10
-
11
- export const protobufPackage = 'auth';
12
-
13
- export interface SignInRequest {
14
- id: string;
15
- }
16
-
17
- export interface SignInResponse {
18
- accessToken: string;
19
- refreshToken: string;
20
- }
21
-
22
- export interface RefreshAccessTokenRequest {
23
- refreshToken: string;
24
- }
25
-
26
- export interface RefreshAccessTokenResponse {
27
- accessToken: string;
28
- refreshToken: string;
29
- accountId?: string;
30
- }
31
-
32
- export const AUTH_PACKAGE_NAME = 'auth';
33
-
34
- export interface AuthServiceClient {
35
- signIn(request: SignInRequest): Observable<SignInResponse>;
36
-
37
- refreshAccessToken(
38
- request: RefreshAccessTokenRequest,
39
- ): Observable<RefreshAccessTokenResponse>;
40
- }
41
-
42
- export interface AuthServiceController {
43
- signIn(
44
- request: SignInRequest,
45
- ): Promise<SignInResponse> | Observable<SignInResponse> | SignInResponse;
46
-
47
- refreshAccessToken(
48
- request: RefreshAccessTokenRequest,
49
- ):
50
- | Promise<RefreshAccessTokenResponse>
51
- | Observable<RefreshAccessTokenResponse>
52
- | RefreshAccessTokenResponse;
53
- }
54
-
55
- export function AuthServiceControllerMethods() {
56
- return function (constructor: Function) {
57
- const grpcMethods: string[] = ['signIn', 'refreshAccessToken'];
58
- for (const method of grpcMethods) {
59
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
60
- constructor.prototype,
61
- method,
62
- );
63
- GrpcMethod('AuthService', method)(
64
- constructor.prototype[method],
65
- method,
66
- descriptor,
67
- );
68
- }
69
- const grpcStreamMethods: string[] = [];
70
- for (const method of grpcStreamMethods) {
71
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
72
- constructor.prototype,
73
- method,
74
- );
75
- GrpcStreamMethod('AuthService', method)(
76
- constructor.prototype[method],
77
- method,
78
- descriptor,
79
- );
80
- }
81
- };
82
- }
83
-
84
- export const AUTH_SERVICE_NAME = 'AuthService';
@@ -1,157 +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: bank-account.proto
6
-
7
- /* eslint-disable */
8
- import { BankAccountType, HolderType } from '@postpaybr/contracts/enums';
9
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
10
- import { Observable } from 'rxjs';
11
-
12
- export const protobufPackage = 'bankAccount';
13
-
14
- export interface CreateBankAccountRequest {
15
- bankCompeCode: number;
16
- agency: string;
17
- account: string;
18
- digitAccount: string;
19
- balance: number;
20
- pixKey?: string;
21
- holderType: HolderType;
22
- accountType: BankAccountType;
23
- recipientId: string;
24
- }
25
-
26
- export interface GetBankAccountByRecipientIdRequest {
27
- recipientId: string;
28
- }
29
-
30
- export interface GetBankAccountByRecipientIdResponse {
31
- bankAccount: BankAccount | undefined;
32
- }
33
-
34
- export interface GetAllBankAccountsResponse {
35
- bankAccount: BankAccount[];
36
- }
37
-
38
- export interface BankAccount {
39
- id: string;
40
- bankCompeCode: number;
41
- agency: string;
42
- account: string;
43
- digitAccount: string;
44
- balance: number;
45
- pixKey?: string;
46
- holderType: HolderType;
47
- accountType: BankAccountType;
48
- recipientId: string;
49
- }
50
-
51
- export interface BankAccountResponse {
52
- bankAccount: BankAccount | undefined;
53
- }
54
-
55
- export interface Void {}
56
-
57
- export interface GetBankAccountRequest {
58
- id: string;
59
- }
60
-
61
- export interface MainBankAccountResponse {
62
- mainBankAccount: BankAccount | undefined;
63
- }
64
-
65
- export const BANK_ACCOUNT_PACKAGE_NAME = 'bankAccount';
66
-
67
- export interface BankAccountServiceClient {
68
- createBankAccount(
69
- request: CreateBankAccountRequest,
70
- ): Observable<BankAccountResponse>;
71
-
72
- getBankAccountByRecipientId(
73
- request: GetBankAccountByRecipientIdRequest,
74
- ): Observable<GetBankAccountByRecipientIdResponse>;
75
-
76
- getMainAccount(request: Void): Observable<MainBankAccountResponse>;
77
-
78
- getAllBankAccounts(request: Void): Observable<GetAllBankAccountsResponse>;
79
-
80
- getBankAccount(
81
- request: GetBankAccountRequest,
82
- ): Observable<BankAccountResponse>;
83
- }
84
-
85
- export interface BankAccountServiceController {
86
- createBankAccount(
87
- request: CreateBankAccountRequest,
88
- ):
89
- | Promise<BankAccountResponse>
90
- | Observable<BankAccountResponse>
91
- | BankAccountResponse;
92
-
93
- getBankAccountByRecipientId(
94
- request: GetBankAccountByRecipientIdRequest,
95
- ):
96
- | Promise<GetBankAccountByRecipientIdResponse>
97
- | Observable<GetBankAccountByRecipientIdResponse>
98
- | GetBankAccountByRecipientIdResponse;
99
-
100
- getMainAccount(
101
- request: Void,
102
- ):
103
- | Promise<MainBankAccountResponse>
104
- | Observable<MainBankAccountResponse>
105
- | MainBankAccountResponse;
106
-
107
- getAllBankAccounts(
108
- request: Void,
109
- ):
110
- | Promise<GetAllBankAccountsResponse>
111
- | Observable<GetAllBankAccountsResponse>
112
- | GetAllBankAccountsResponse;
113
-
114
- getBankAccount(
115
- request: GetBankAccountRequest,
116
- ):
117
- | Promise<BankAccountResponse>
118
- | Observable<BankAccountResponse>
119
- | BankAccountResponse;
120
- }
121
-
122
- export function BankAccountServiceControllerMethods() {
123
- return function (constructor: Function) {
124
- const grpcMethods: string[] = [
125
- 'createBankAccount',
126
- 'getBankAccountByRecipientId',
127
- 'getMainAccount',
128
- 'getAllBankAccounts',
129
- 'getBankAccount',
130
- ];
131
- for (const method of grpcMethods) {
132
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
133
- constructor.prototype,
134
- method,
135
- );
136
- GrpcMethod('BankAccountService', method)(
137
- constructor.prototype[method],
138
- method,
139
- descriptor,
140
- );
141
- }
142
- const grpcStreamMethods: string[] = [];
143
- for (const method of grpcStreamMethods) {
144
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
145
- constructor.prototype,
146
- method,
147
- );
148
- GrpcStreamMethod('BankAccountService', method)(
149
- constructor.prototype[method],
150
- method,
151
- descriptor,
152
- );
153
- }
154
- };
155
- }
156
-
157
- export const BANK_ACCOUNT_SERVICE_NAME = 'BankAccountService';
@@ -1,92 +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-vault.proto
6
-
7
- /* eslint-disable */
8
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
9
- import { Observable } from 'rxjs';
10
-
11
- export const protobufPackage = 'cardVault';
12
-
13
- export interface CardDetailsPayload {
14
- token: string;
15
- tokenCvv: string;
16
- }
17
-
18
- export interface CardDetailsResponse {
19
- cvv: string;
20
- firstSix: string;
21
- lastFour: string;
22
- ccn?: string | undefined;
23
- expMonth: number;
24
- expYear: number;
25
- fullName: string;
26
- cardType: string;
27
- token: string;
28
- }
29
-
30
- export interface DeleteCardPayload {
31
- cardToken: string;
32
- cvvToken: string;
33
- }
34
-
35
- export interface DeleteCardResponse {
36
- success: boolean;
37
- }
38
-
39
- export const CARD_VAULT_PACKAGE_NAME = 'cardVault';
40
-
41
- export interface CardVaultServiceClient {
42
- getCardDetails(request: CardDetailsPayload): Observable<CardDetailsResponse>;
43
-
44
- deleteCard(request: DeleteCardPayload): Observable<DeleteCardResponse>;
45
- }
46
-
47
- export interface CardVaultServiceController {
48
- getCardDetails(
49
- request: CardDetailsPayload,
50
- ):
51
- | Promise<CardDetailsResponse>
52
- | Observable<CardDetailsResponse>
53
- | CardDetailsResponse;
54
-
55
- deleteCard(
56
- request: DeleteCardPayload,
57
- ):
58
- | Promise<DeleteCardResponse>
59
- | Observable<DeleteCardResponse>
60
- | DeleteCardResponse;
61
- }
62
-
63
- export function CardVaultServiceControllerMethods() {
64
- return function (constructor: Function) {
65
- const grpcMethods: string[] = ['getCardDetails', 'deleteCard'];
66
- for (const method of grpcMethods) {
67
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
68
- constructor.prototype,
69
- method,
70
- );
71
- GrpcMethod('CardVaultService', method)(
72
- constructor.prototype[method],
73
- method,
74
- descriptor,
75
- );
76
- }
77
- const grpcStreamMethods: string[] = [];
78
- for (const method of grpcStreamMethods) {
79
- const descriptor: any = Reflect.getOwnPropertyDescriptor(
80
- constructor.prototype,
81
- method,
82
- );
83
- GrpcStreamMethod('CardVaultService', method)(
84
- constructor.prototype[method],
85
- method,
86
- descriptor,
87
- );
88
- }
89
- };
90
- }
91
-
92
- export const CARD_VAULT_SERVICE_NAME = 'CardVaultService';