@postpaybr/protos 1.1.11 → 1.1.16

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 +3 -14
  2. package/dist/typescript/account-entry.js +2 -2
  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 +5 -7
  6. package/dist/typescript/admin-card-verification.js +3 -2
  7. package/dist/typescript/administrator.d.ts +10 -15
  8. package/dist/typescript/administrator.js +3 -2
  9. package/dist/typescript/anticipation.d.ts +2 -1
  10. package/dist/typescript/anticipation.js +3 -2
  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 +3 -6
  16. package/dist/typescript/bank-account.js +2 -2
  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 +1 -15
  22. package/dist/typescript/card.js +3 -2
  23. package/dist/typescript/charge-schedule.d.ts +3 -15
  24. package/dist/typescript/charge-schedule.js +8 -8
  25. package/dist/typescript/charge.d.ts +87 -97
  26. package/dist/typescript/charge.js +2 -2
  27. package/dist/typescript/common.d.ts +139 -0
  28. package/dist/typescript/common.js +11 -0
  29. package/dist/typescript/context.d.ts +13 -41
  30. package/dist/typescript/context.js +2 -2
  31. package/dist/typescript/customer.d.ts +5 -14
  32. package/dist/typescript/customer.js +2 -2
  33. package/dist/typescript/daily-balance.d.ts +1 -4
  34. package/dist/typescript/daily-balance.js +2 -2
  35. package/dist/typescript/document-verification.d.ts +8 -9
  36. package/dist/typescript/document-verification.js +3 -2
  37. package/dist/typescript/email.js +2 -2
  38. package/dist/typescript/expo-push.d.ts +2 -3
  39. package/dist/typescript/expo-push.js +8 -8
  40. package/dist/typescript/fee.d.ts +1 -2
  41. package/dist/typescript/fee.js +2 -2
  42. package/dist/typescript/location.d.ts +1 -1
  43. package/dist/typescript/location.js +8 -8
  44. package/dist/typescript/notification.d.ts +6 -13
  45. package/dist/typescript/notification.js +3 -2
  46. package/dist/typescript/order.d.ts +20 -17
  47. package/dist/typescript/order.js +3 -2
  48. package/dist/typescript/payable.d.ts +20 -23
  49. package/dist/typescript/payable.js +3 -2
  50. package/dist/typescript/payer.d.ts +1 -1
  51. package/dist/typescript/payer.js +8 -8
  52. package/dist/typescript/payment-calculator.d.ts +4 -56
  53. package/dist/typescript/payment-calculator.js +3 -2
  54. package/dist/typescript/payment-card.d.ts +12 -70
  55. package/dist/typescript/payment-card.js +3 -2
  56. package/dist/typescript/payment-gateway.d.ts +3 -11
  57. package/dist/typescript/payment-gateway.js +3 -2
  58. package/dist/typescript/payment-pix.d.ts +4 -78
  59. package/dist/typescript/payment-pix.js +5 -5
  60. package/dist/typescript/receipt.d.ts +16 -53
  61. package/dist/typescript/receipt.js +3 -2
  62. package/dist/typescript/recipient-payment-gateway.d.ts +8 -15
  63. package/dist/typescript/recipient-payment-gateway.js +3 -2
  64. package/dist/typescript/recipient.d.ts +6 -11
  65. package/dist/typescript/recipient.js +3 -2
  66. package/dist/typescript/role.d.ts +3 -7
  67. package/dist/typescript/role.js +3 -2
  68. package/dist/typescript/sms.d.ts +1 -1
  69. package/dist/typescript/sms.js +8 -8
  70. package/dist/typescript/tax.d.ts +16 -66
  71. package/dist/typescript/tax.js +3 -2
  72. package/dist/typescript/transfer.d.ts +31 -10
  73. package/dist/typescript/transfer.js +2 -2
  74. package/dist/typescript/two-factor.d.ts +7 -7
  75. package/dist/typescript/two-factor.js +3 -2
  76. package/dist/typescript/user.d.ts +13 -17
  77. package/dist/typescript/user.js +2 -2
  78. package/dist/typescript/wallet.d.ts +1 -1
  79. package/dist/typescript/wallet.js +8 -8
  80. package/package.json +3 -2
  81. package/src/protos/account-entry.proto +3 -15
  82. package/src/protos/admin-card-verification.proto +0 -2
  83. package/src/protos/administrator.proto +4 -11
  84. package/src/protos/bank-account.proto +4 -5
  85. package/src/protos/charge.proto +14 -78
  86. package/src/protos/common.proto +152 -0
  87. package/src/protos/context.proto +9 -50
  88. package/src/protos/customer.proto +6 -16
  89. package/src/protos/daily-balance.proto +3 -6
  90. package/src/protos/document-verification.proto +5 -6
  91. package/src/protos/expo-push.proto +3 -3
  92. package/src/protos/fee.proto +3 -3
  93. package/src/protos/notification.proto +4 -12
  94. package/src/protos/order.proto +6 -16
  95. package/src/protos/payable.proto +5 -6
  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 +14 -65
  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 +18 -81
  105. package/src/protos/user.proto +7 -13
@@ -1,5 +1,6 @@
1
- import { AccountEntryType, ChargeMetadata, GatewayIdentification, PaymentMethods } from '@postpaybr/contracts/types';
1
+ import { AccountEntryType, GatewayIdentification, PaymentMethods } from '@postpaybr/contracts/types';
2
2
  import { Observable } from 'rxjs';
3
+ import { TableFilterParams } from './common';
3
4
  export declare const protobufPackage = "accountEntry";
4
5
  export interface CreateAccountEntryRequest {
5
6
  amount: number;
@@ -25,14 +26,6 @@ export interface GetEntriesByTransferRequest {
25
26
  export interface GetEntriesByTransferResponse {
26
27
  accountEntries: AccountEntry[];
27
28
  }
28
- export interface TableFilterParams {
29
- pageIndex?: number;
30
- pageSize?: number;
31
- status?: string[];
32
- globalFilter?: string;
33
- startDate?: Date;
34
- endDate?: Date;
35
- }
36
29
  export interface GetEntriesByPeriodRequest {
37
30
  recipientId: string;
38
31
  filter: TableFilterParams | undefined;
@@ -57,11 +50,7 @@ export interface Charge {
57
50
  paymentMethod: PaymentMethods;
58
51
  txid: string;
59
52
  gatewayId: GatewayIdentification;
60
- metadata: ChargeMetadata;
61
- }
62
- export interface DailyBalance {
63
- date: Date;
64
- balance: number;
53
+ metadata: string;
65
54
  }
66
55
  export declare const ACCOUNT_ENTRY_PACKAGE_NAME = "accountEntry";
67
56
  export interface AccountEntryServiceClient {
@@ -1,8 +1,8 @@
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: account-entry.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ACCOUNT_ENTRY_SERVICE_NAME = exports.ACCOUNT_ENTRY_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "address";
3
3
  export interface Address {
4
4
  id: string;
@@ -1,33 +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: address.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ADDRESS_SERVICE_NAME = exports.ADDRESS_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.AddressServiceControllerMethods = AddressServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'address';
13
- exports.ADDRESS_PACKAGE_NAME = 'address';
12
+ exports.protobufPackage = "address";
13
+ exports.ADDRESS_PACKAGE_NAME = "address";
14
14
  function AddressServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = [
17
- 'createAddress',
18
- 'getAddressesByAccountId',
19
- 'getAddressById',
20
- 'updateAddress',
21
- ];
16
+ const grpcMethods = ["createAddress", "getAddressesByAccountId", "getAddressById", "updateAddress"];
22
17
  for (const method of grpcMethods) {
23
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
- (0, microservices_1.GrpcMethod)('AddressService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("AddressService", method)(constructor.prototype[method], method, descriptor);
25
20
  }
26
21
  const grpcStreamMethods = [];
27
22
  for (const method of grpcStreamMethods) {
28
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
29
- (0, microservices_1.GrpcStreamMethod)('AddressService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("AddressService", method)(constructor.prototype[method], method, descriptor);
30
25
  }
31
26
  };
32
27
  }
33
- exports.ADDRESS_SERVICE_NAME = 'AddressService';
28
+ exports.ADDRESS_SERVICE_NAME = "AddressService";
@@ -10,7 +10,7 @@ export interface CreateCardVerificationRequest {
10
10
  export interface UpdateVerificationStatusRequest {
11
11
  id: string;
12
12
  status: VerificationStatus;
13
- rejectionReasons?: CardRejectionReason[];
13
+ rejectionReasons?: CardRejectionReason[] | undefined;
14
14
  customRejectionReason?: string | undefined;
15
15
  reviewerId?: string | undefined;
16
16
  }
@@ -20,8 +20,8 @@ export interface CardVerificationResponse {
20
20
  selfieWithCardUrl: string;
21
21
  rejectionReasons: CardRejectionReason[];
22
22
  customRejectionReason: string;
23
- histories?: VerificationHistory[];
24
- challenge: CardChallenge;
23
+ histories: VerificationHistory[];
24
+ challenge: string;
25
25
  }
26
26
  export interface GetVerificationsWithCardDetailsRequest {
27
27
  status: VerificationStatus;
@@ -37,7 +37,7 @@ export interface VerificationWithDetails {
37
37
  cardNumber: string;
38
38
  createdAt: Date;
39
39
  reviewedBy: string;
40
- status: string;
40
+ status: VerificationStatus;
41
41
  }
42
42
  export interface VerificationHistory {
43
43
  id: string;
@@ -54,7 +54,7 @@ export interface VerificationDetailsResponse {
54
54
  cardName: string;
55
55
  selfieWithCardUrl: string;
56
56
  selfieWithDocumentUrl: string;
57
- challenge: CardChallenge;
57
+ challenge: string;
58
58
  status: VerificationStatus;
59
59
  histories: VerificationHistoryWithAdmin[];
60
60
  rejectionReasons: CardRejectionReason[];
@@ -67,8 +67,6 @@ export interface VerificationHistoryWithAdmin {
67
67
  createdAt: Date;
68
68
  reviewedBy: string;
69
69
  }
70
- export interface Empty {
71
- }
72
70
  export declare const ADMIN_CARD_VERIFICATION_PACKAGE_NAME = "adminCardVerification";
73
71
  export interface AdminCardVerificationServiceClient {
74
72
  initiateCardVerification(request: CreateCardVerificationRequest): Observable<CardVerificationResponse>;
@@ -1,12 +1,13 @@
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 v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: admin-card-verification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME = exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.AdminCardVerificationServiceControllerMethods = AdminCardVerificationServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
12
  exports.protobufPackage = 'adminCardVerification';
12
13
  exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME = 'adminCardVerification';
@@ -1,5 +1,7 @@
1
- import { HolderType, RecipientLegalType, UserStatus } from '@postpaybr/contracts/enums';
2
1
  import { Observable } from 'rxjs';
2
+ import { Role, Void } from './common';
3
+ import { UserStatus } from '@postpaybr/contracts/enums';
4
+ export { Void } from './common';
3
5
  export declare const protobufPackage = "administrator";
4
6
  export interface CreateAdministratorRequest {
5
7
  firstName: string;
@@ -18,28 +20,22 @@ export interface AdministratorResponse {
18
20
  document: string;
19
21
  email: string;
20
22
  isAccessRestricted: boolean;
21
- roles?: Role[];
23
+ roles?: Role[] | undefined;
22
24
  status?: UserStatus | undefined;
23
25
  isSuperAdmin: boolean;
24
26
  recipientId: string;
25
27
  userId: string;
26
- twoFactorEnabled?: boolean;
28
+ twoFactorEnabled?: boolean | undefined;
27
29
  }
28
30
  export interface UpdateAdministratorRequest {
29
31
  id: string;
30
32
  firstName?: string | undefined;
31
33
  lastName?: string | undefined;
32
34
  email?: string | undefined;
33
- roleIds?: string[];
35
+ roleIds?: string[] | undefined;
34
36
  document?: string | undefined;
35
37
  status?: UserStatus | undefined;
36
38
  }
37
- export interface Role {
38
- id: string;
39
- code: string;
40
- description: string;
41
- permissions: string[];
42
- }
43
39
  export interface GetAllAdministratorsRequest {
44
40
  }
45
41
  export interface GetAllAdministratorsResponse {
@@ -85,13 +81,14 @@ export interface Recipient {
85
81
  code: string;
86
82
  commercialName: string;
87
83
  socialReason: string;
88
- holderType: HolderType;
84
+ holderType: string;
89
85
  document: string;
90
86
  cnaeId: string;
91
- legalType: RecipientLegalType;
87
+ legalType: string;
92
88
  contactName: string;
93
89
  contactEmail: string;
94
90
  contactPhone: string;
91
+ isAutomaticAnticipationEnabled?: boolean | undefined;
95
92
  foundation: string;
96
93
  avatarUrl?: string | undefined;
97
94
  isActive: boolean;
@@ -114,11 +111,9 @@ export interface handleAdministratorChangePasswordResponse {
114
111
  export interface ResendVerificationEmailRequest {
115
112
  administratorId: string;
116
113
  }
117
- export interface Void {
118
- }
119
114
  export interface ChangeAdministratorStatusRequest {
120
115
  administratorId: string;
121
- status: string;
116
+ status: UserStatus;
122
117
  }
123
118
  export interface ChangeAdministratorStatusResponse {
124
119
  success: boolean;
@@ -1,12 +1,13 @@
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: administrator.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ADMINISTRATOR_SERVICE_NAME = exports.ADMINISTRATOR_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.AdministratorServiceControllerMethods = AdministratorServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
12
  exports.protobufPackage = 'administrator';
12
13
  exports.ADMINISTRATOR_PACKAGE_NAME = 'administrator';
@@ -34,7 +34,7 @@ export interface Anticipation {
34
34
  fee: number;
35
35
  baseFee: number;
36
36
  feePercentage: number;
37
- status: string;
37
+ status: AnticipationStatus;
38
38
  externalId?: string | undefined;
39
39
  anticipatedDays?: number | undefined;
40
40
  createdAt: Date;
@@ -58,6 +58,7 @@ export interface UpdateAnticipationRequest {
58
58
  externalId?: string | undefined;
59
59
  status?: AnticipationStatus | undefined;
60
60
  amount?: number | undefined;
61
+ netAmount?: number | undefined;
61
62
  fee?: number | undefined;
62
63
  baseFee?: number | undefined;
63
64
  feePercentage?: number | undefined;
@@ -1,12 +1,13 @@
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 v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: anticipation.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ANTICIPATION_SERVICE_NAME = exports.ANTICIPATION_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.AnticipationServiceControllerMethods = AnticipationServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
12
  exports.protobufPackage = 'anticipation';
12
13
  exports.ANTICIPATION_PACKAGE_NAME = 'anticipation';
@@ -1,9 +1,9 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "asset";
3
3
  export interface WriteFileRequest {
4
- buffer: Uint8Array;
5
4
  mimetype: string;
6
- folder?: string;
5
+ buffer: Uint8Array;
6
+ folder?: string | undefined;
7
7
  }
8
8
  export interface WriteFileResponse {
9
9
  filename: string;
@@ -1,33 +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 v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: asset.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ASSET_SERVICE_NAME = exports.ASSET_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.AssetServiceControllerMethods = AssetServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'asset';
13
- exports.ASSET_PACKAGE_NAME = 'asset';
12
+ exports.protobufPackage = "asset";
13
+ exports.ASSET_PACKAGE_NAME = "asset";
14
14
  function AssetServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = [
17
- 'writeFile',
18
- 'readFile',
19
- 'deleteFile',
20
- 'fileExists',
21
- ];
16
+ const grpcMethods = ["writeFile", "readFile", "deleteFile", "fileExists"];
22
17
  for (const method of grpcMethods) {
23
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
- (0, microservices_1.GrpcMethod)('AssetService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("AssetService", method)(constructor.prototype[method], method, descriptor);
25
20
  }
26
21
  const grpcStreamMethods = [];
27
22
  for (const method of grpcStreamMethods) {
28
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
29
- (0, microservices_1.GrpcStreamMethod)('AssetService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("AssetService", method)(constructor.prototype[method], method, descriptor);
30
25
  }
31
26
  };
32
27
  }
33
- exports.ASSET_SERVICE_NAME = 'AssetService';
28
+ exports.ASSET_SERVICE_NAME = "AssetService";
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "auth";
3
3
  export interface SignInRequest {
4
4
  id: string;
@@ -13,7 +13,7 @@ export interface RefreshAccessTokenRequest {
13
13
  export interface RefreshAccessTokenResponse {
14
14
  accessToken: string;
15
15
  refreshToken: string;
16
- accountId?: string;
16
+ accountId?: string | undefined;
17
17
  }
18
18
  export declare const AUTH_PACKAGE_NAME = "auth";
19
19
  export interface AuthServiceClient {
@@ -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: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.AUTH_SERVICE_NAME = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'auth';
13
- exports.AUTH_PACKAGE_NAME = 'auth';
12
+ exports.protobufPackage = "auth";
13
+ exports.AUTH_PACKAGE_NAME = "auth";
14
14
  function AuthServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = ['signIn', 'refreshAccessToken'];
16
+ const grpcMethods = ["signIn", "refreshAccessToken"];
17
17
  for (const method of grpcMethods) {
18
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
- (0, microservices_1.GrpcMethod)('AuthService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("AuthService", 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)('AuthService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
25
25
  }
26
26
  };
27
27
  }
28
- exports.AUTH_SERVICE_NAME = 'AuthService';
28
+ exports.AUTH_SERVICE_NAME = "AuthService";
@@ -1,16 +1,15 @@
1
1
  import { BankAccountType, HolderType } from '@postpaybr/contracts/enums';
2
2
  import { Observable } from 'rxjs';
3
+ import { Void } from './common';
3
4
  export declare const protobufPackage = "bankAccount";
4
5
  export interface CreateBankAccountRequest {
5
6
  bankCompeCode: number;
6
7
  agency: string;
7
8
  account: string;
8
9
  digitAccount: string;
9
- balance: number;
10
- pixKey?: string;
10
+ pixKey?: string | undefined;
11
11
  holderType: HolderType;
12
12
  accountType: BankAccountType;
13
- recipientId: string;
14
13
  }
15
14
  export interface GetBankAccountByRecipientIdRequest {
16
15
  recipientId: string;
@@ -28,7 +27,7 @@ export interface BankAccount {
28
27
  account: string;
29
28
  digitAccount: string;
30
29
  balance: number;
31
- pixKey?: string;
30
+ pixKey?: string | undefined;
32
31
  holderType: HolderType;
33
32
  accountType: BankAccountType;
34
33
  recipientId: string;
@@ -36,8 +35,6 @@ export interface BankAccount {
36
35
  export interface BankAccountResponse {
37
36
  bankAccount: BankAccount | undefined;
38
37
  }
39
- export interface Void {
40
- }
41
38
  export interface GetBankAccountRequest {
42
39
  id: string;
43
40
  }
@@ -1,8 +1,8 @@
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: bank-account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.BANK_ACCOUNT_SERVICE_NAME = exports.BANK_ACCOUNT_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "cardVault";
3
3
  export interface CardDetailsPayload {
4
4
  token: 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.7.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: card-vault.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CARD_VAULT_SERVICE_NAME = exports.CARD_VAULT_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.CardVaultServiceControllerMethods = CardVaultServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'cardVault';
13
- exports.CARD_VAULT_PACKAGE_NAME = 'cardVault';
12
+ exports.protobufPackage = "cardVault";
13
+ exports.CARD_VAULT_PACKAGE_NAME = "cardVault";
14
14
  function CardVaultServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = ['getCardDetails', 'deleteCard'];
16
+ const grpcMethods = ["getCardDetails", "deleteCard"];
17
17
  for (const method of grpcMethods) {
18
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
- (0, microservices_1.GrpcMethod)('CardVaultService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("CardVaultService", 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)('CardVaultService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("CardVaultService", method)(constructor.prototype[method], method, descriptor);
25
25
  }
26
26
  };
27
27
  }
28
- exports.CARD_VAULT_SERVICE_NAME = 'CardVaultService';
28
+ exports.CARD_VAULT_SERVICE_NAME = "CardVaultService";
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "cardVerification";
3
3
  export interface CreateCardVerificationRequest {
4
4
  customerId: string;
@@ -1,31 +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 v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: card-verification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CARD_VERIFICATION_SERVICE_NAME = exports.CARD_VERIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.CardVerificationServiceControllerMethods = CardVerificationServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'cardVerification';
13
- exports.CARD_VERIFICATION_PACKAGE_NAME = 'cardVerification';
12
+ exports.protobufPackage = "cardVerification";
13
+ exports.CARD_VERIFICATION_PACKAGE_NAME = "cardVerification";
14
14
  function CardVerificationServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = [
17
- 'createCardVerification',
18
- 'checkVerifyCardCode',
19
- ];
16
+ const grpcMethods = ["createCardVerification", "checkVerifyCardCode"];
20
17
  for (const method of grpcMethods) {
21
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
22
- (0, microservices_1.GrpcMethod)('CardVerificationService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("CardVerificationService", method)(constructor.prototype[method], method, descriptor);
23
20
  }
24
21
  const grpcStreamMethods = [];
25
22
  for (const method of grpcStreamMethods) {
26
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
27
- (0, microservices_1.GrpcStreamMethod)('CardVerificationService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("CardVerificationService", method)(constructor.prototype[method], method, descriptor);
28
25
  }
29
26
  };
30
27
  }
31
- exports.CARD_VERIFICATION_SERVICE_NAME = 'CardVerificationService';
28
+ exports.CARD_VERIFICATION_SERVICE_NAME = "CardVerificationService";
@@ -79,20 +79,6 @@ export interface GetVaultCardDetailsResponse {
79
79
  token: string;
80
80
  cvv: string;
81
81
  }
82
- export interface TokenizeCardRequest {
83
- ccn: string;
84
- cvv: string;
85
- expMonth: number;
86
- expYear: number;
87
- cardType: string;
88
- fullName: string;
89
- referenceId: string;
90
- cvvTtl: number;
91
- }
92
- export interface TokenizeCardResponse {
93
- vaultToken: string;
94
- vaultTokenCvv: string;
95
- }
96
82
  export interface GetAllCardsByCustomerIdRequest {
97
83
  customerId: string;
98
84
  }
@@ -118,7 +104,7 @@ export interface ValidateCVVResponse {
118
104
  isValid: boolean;
119
105
  remainingAttempts: number;
120
106
  isBlocked: boolean;
121
- blockedUntil?: Date;
107
+ blockedUntil?: Date | undefined;
122
108
  }
123
109
  export declare const CARD_PACKAGE_NAME = "card";
124
110
  export interface CardServiceClient {
@@ -1,12 +1,13 @@
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.4
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: card.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CARD_SERVICE_NAME = exports.CARD_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.CardServiceControllerMethods = CardServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
12
  exports.protobufPackage = 'card';
12
13
  exports.CARD_PACKAGE_NAME = 'card';
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "chargeSchedule";
3
3
  export interface CreateChargeScheduleRequest {
4
4
  chargeId: string;
@@ -12,24 +12,12 @@ export interface ChargeSchedule {
12
12
  executionDate: Date;
13
13
  isExecuted: boolean;
14
14
  }
15
- export interface HealthCheckRequest {
16
- }
17
- export interface HealthCheckResponse {
18
- status: string;
19
- details: {
20
- [key: string]: string;
21
- };
22
- }
23
- export interface HealthCheckResponse_DetailsEntry {
24
- key: string;
25
- value: string;
26
- }
27
15
  export declare const CHARGE_SCHEDULE_PACKAGE_NAME = "chargeSchedule";
28
16
  export interface ChargeScheduleServiceClient {
29
- CreateChargeSchedule(request: CreateChargeScheduleRequest): Observable<CreateChargeScheduleResponse>;
17
+ createChargeSchedule(request: CreateChargeScheduleRequest): Observable<CreateChargeScheduleResponse>;
30
18
  }
31
19
  export interface ChargeScheduleServiceController {
32
- CreateChargeSchedule(request: CreateChargeScheduleRequest): Promise<CreateChargeScheduleResponse> | Observable<CreateChargeScheduleResponse> | CreateChargeScheduleResponse;
20
+ createChargeSchedule(request: CreateChargeScheduleRequest): Promise<CreateChargeScheduleResponse> | Observable<CreateChargeScheduleResponse> | CreateChargeScheduleResponse;
33
21
  }
34
22
  export declare function ChargeScheduleServiceControllerMethods(): (constructor: Function) => void;
35
23
  export declare const CHARGE_SCHEDULE_SERVICE_NAME = "ChargeScheduleService";