@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.
- package/dist/typescript/account-entry.d.ts +80 -0
- package/dist/typescript/account-entry.js +28 -0
- package/dist/typescript/address.d.ts +65 -0
- package/dist/typescript/address.js +29 -0
- package/dist/typescript/admin-card-verification.d.ts +86 -0
- package/dist/typescript/admin-card-verification.js +28 -0
- package/dist/typescript/administrator.d.ts +176 -0
- package/dist/typescript/administrator.js +37 -0
- package/dist/typescript/anticipation.d.ts +84 -0
- package/dist/typescript/anticipation.js +30 -0
- package/dist/typescript/asset.d.ts +43 -0
- package/dist/typescript/asset.js +29 -0
- package/dist/typescript/auth.d.ts +28 -0
- package/dist/typescript/auth.js +24 -0
- package/dist/typescript/bank-account.d.ts +63 -0
- package/dist/typescript/bank-account.js +29 -0
- package/dist/typescript/card-vault.d.ts +35 -0
- package/dist/typescript/card-vault.js +24 -0
- package/dist/typescript/card-verification.d.ts +29 -0
- package/dist/typescript/card-verification.js +27 -0
- package/dist/typescript/card.d.ts +147 -0
- package/dist/typescript/card.js +33 -0
- package/dist/typescript/charge-schedule.d.ts +35 -0
- package/dist/typescript/charge-schedule.js +24 -0
- package/dist/typescript/charge.d.ts +538 -0
- package/dist/typescript/charge.js +55 -0
- package/dist/typescript/context.d.ts +154 -0
- package/dist/typescript/context.js +32 -0
- package/dist/typescript/customer.d.ts +213 -0
- package/dist/typescript/customer.js +39 -0
- package/dist/typescript/daily-balance.d.ts +32 -0
- package/dist/typescript/daily-balance.js +24 -0
- package/dist/typescript/document-verification.d.ts +106 -0
- package/dist/typescript/document-verification.js +30 -0
- package/dist/typescript/email.d.ts +71 -0
- package/dist/typescript/email.js +31 -0
- package/dist/typescript/expo-push.d.ts +31 -0
- package/dist/typescript/expo-push.js +24 -0
- package/dist/typescript/fee.d.ts +66 -0
- package/dist/typescript/fee.js +28 -0
- package/dist/typescript/location.d.ts +38 -0
- package/dist/typescript/location.js +24 -0
- package/dist/typescript/notification.d.ts +198 -0
- package/dist/typescript/notification.js +35 -0
- package/dist/typescript/order.d.ts +173 -0
- package/dist/typescript/order.js +34 -0
- package/dist/typescript/payable.d.ts +226 -0
- package/dist/typescript/payable.js +37 -0
- package/dist/typescript/payer.d.ts +23 -0
- package/dist/typescript/payer.js +24 -0
- package/dist/typescript/payment-calculator.d.ts +135 -0
- package/dist/typescript/payment-calculator.js +29 -0
- package/dist/typescript/payment-card.d.ts +189 -0
- package/dist/typescript/payment-card.js +27 -0
- package/dist/typescript/payment-gateway.d.ts +92 -0
- package/dist/typescript/payment-gateway.js +31 -0
- package/dist/typescript/payment-pix.d.ts +101 -0
- package/dist/typescript/payment-pix.js +24 -0
- package/dist/typescript/receipt.d.ts +193 -0
- package/dist/typescript/receipt.js +33 -0
- package/dist/typescript/recipient-payment-gateway.d.ts +95 -0
- package/dist/typescript/recipient-payment-gateway.js +30 -0
- package/dist/typescript/recipient.d.ts +222 -0
- package/dist/typescript/recipient.js +36 -0
- package/dist/typescript/role.d.ts +57 -0
- package/dist/typescript/role.js +30 -0
- package/dist/typescript/sms.d.ts +34 -0
- package/dist/typescript/sms.js +24 -0
- package/dist/typescript/tax.d.ts +293 -0
- package/dist/typescript/tax.js +36 -0
- package/dist/typescript/transfer.d.ts +185 -0
- package/dist/typescript/transfer.js +23 -0
- package/dist/typescript/two-factor.d.ts +66 -0
- package/dist/typescript/two-factor.js +30 -0
- package/dist/typescript/user.d.ts +196 -0
- package/dist/typescript/user.js +41 -0
- package/dist/typescript/wallet.d.ts +18 -0
- package/dist/typescript/wallet.js +24 -0
- package/package.json +11 -9
- package/typescript/account-entry.ts +0 -177
- package/typescript/address.ts +0 -133
- package/typescript/admin-card-verification.ts +0 -181
- package/typescript/administrator.ts +0 -375
- package/typescript/anticipation.ts +0 -187
- package/typescript/asset.ts +0 -123
- package/typescript/auth.ts +0 -84
- package/typescript/bank-account.ts +0 -157
- package/typescript/card-vault.ts +0 -92
- package/typescript/card-verification.ts +0 -93
- package/typescript/card.ts +0 -283
- package/typescript/charge-schedule.ts +0 -86
- package/typescript/charge.ts +0 -930
- package/typescript/context.ts +0 -296
- package/typescript/customer.ts +0 -425
- package/typescript/daily-balance.ts +0 -94
- package/typescript/document-verification.ts +0 -219
- package/typescript/email.ts +0 -183
- package/typescript/expo-push.ts +0 -75
- package/typescript/fee.ts +0 -131
- package/typescript/location.ts +0 -96
- package/typescript/notification.ts +0 -372
- package/typescript/order.ts +0 -311
- package/typescript/payable.ts +0 -414
- package/typescript/payer.ts +0 -68
- package/typescript/payment-calculator.ts +0 -252
- package/typescript/payment-card.ts +0 -289
- package/typescript/payment-gateway.ts +0 -209
- package/typescript/payment-pix.ts +0 -170
- package/typescript/receipt.ts +0 -344
- package/typescript/recipient-payment-gateway.ts +0 -209
- package/typescript/recipient.ts +0 -413
- package/typescript/role.ts +0 -144
- package/typescript/sms.ts +0 -96
- package/typescript/tax.ts +0 -463
- package/typescript/transfer.ts +0 -260
- package/typescript/two-factor.ts +0 -177
- package/typescript/user.ts +0 -413
- package/typescript/wallet.ts +0 -63
- /package/{account-entry.proto → src/protos/account-entry.proto} +0 -0
- /package/{address.proto → src/protos/address.proto} +0 -0
- /package/{admin-card-verification.proto → src/protos/admin-card-verification.proto} +0 -0
- /package/{administrator.proto → src/protos/administrator.proto} +0 -0
- /package/{anticipation.proto → src/protos/anticipation.proto} +0 -0
- /package/{asset.proto → src/protos/asset.proto} +0 -0
- /package/{auth.proto → src/protos/auth.proto} +0 -0
- /package/{bank-account.proto → src/protos/bank-account.proto} +0 -0
- /package/{card-vault.proto → src/protos/card-vault.proto} +0 -0
- /package/{card-verification.proto → src/protos/card-verification.proto} +0 -0
- /package/{card.proto → src/protos/card.proto} +0 -0
- /package/{charge-schedule.proto → src/protos/charge-schedule.proto} +0 -0
- /package/{charge.proto → src/protos/charge.proto} +0 -0
- /package/{context.proto → src/protos/context.proto} +0 -0
- /package/{customer.proto → src/protos/customer.proto} +0 -0
- /package/{daily-balance.proto → src/protos/daily-balance.proto} +0 -0
- /package/{document-verification.proto → src/protos/document-verification.proto} +0 -0
- /package/{email.proto → src/protos/email.proto} +0 -0
- /package/{expo-push.proto → src/protos/expo-push.proto} +0 -0
- /package/{fee.proto → src/protos/fee.proto} +0 -0
- /package/{location.proto → src/protos/location.proto} +0 -0
- /package/{notification.proto → src/protos/notification.proto} +0 -0
- /package/{order.proto → src/protos/order.proto} +0 -0
- /package/{payable.proto → src/protos/payable.proto} +0 -0
- /package/{payer.proto → src/protos/payer.proto} +0 -0
- /package/{payment-calculator.proto → src/protos/payment-calculator.proto} +0 -0
- /package/{payment-card.proto → src/protos/payment-card.proto} +0 -0
- /package/{payment-gateway.proto → src/protos/payment-gateway.proto} +0 -0
- /package/{payment-pix.proto → src/protos/payment-pix.proto} +0 -0
- /package/{receipt.proto → src/protos/receipt.proto} +0 -0
- /package/{recipient-payment-gateway.proto → src/protos/recipient-payment-gateway.proto} +0 -0
- /package/{recipient.proto → src/protos/recipient.proto} +0 -0
- /package/{role.proto → src/protos/role.proto} +0 -0
- /package/{sms.proto → src/protos/sms.proto} +0 -0
- /package/{tax.proto → src/protos/tax.proto} +0 -0
- /package/{transfer.proto → src/protos/transfer.proto} +0 -0
- /package/{two-factor.proto → src/protos/two-factor.proto} +0 -0
- /package/{user.proto → src/protos/user.proto} +0 -0
- /package/{wallet.proto → src/protos/wallet.proto} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const protobufPackage = "asset";
|
|
3
|
+
export interface WriteFileRequest {
|
|
4
|
+
buffer: Uint8Array;
|
|
5
|
+
mimetype: string;
|
|
6
|
+
folder?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WriteFileResponse {
|
|
9
|
+
filename: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ReadFileRequest {
|
|
12
|
+
identifier: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ReadFileResponse {
|
|
15
|
+
buffer: Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteFileRequest {
|
|
18
|
+
identifier: string;
|
|
19
|
+
}
|
|
20
|
+
export interface DeleteFileResponse {
|
|
21
|
+
success: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface FileExistsRequest {
|
|
24
|
+
identifier: string;
|
|
25
|
+
}
|
|
26
|
+
export interface FileExistsResponse {
|
|
27
|
+
exists: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const ASSET_PACKAGE_NAME = "asset";
|
|
30
|
+
export interface AssetServiceClient {
|
|
31
|
+
writeFile(request: WriteFileRequest): Observable<WriteFileResponse>;
|
|
32
|
+
readFile(request: ReadFileRequest): Observable<ReadFileResponse>;
|
|
33
|
+
deleteFile(request: DeleteFileRequest): Observable<DeleteFileResponse>;
|
|
34
|
+
fileExists(request: FileExistsRequest): Observable<FileExistsResponse>;
|
|
35
|
+
}
|
|
36
|
+
export interface AssetServiceController {
|
|
37
|
+
writeFile(request: WriteFileRequest): Promise<WriteFileResponse> | Observable<WriteFileResponse> | WriteFileResponse;
|
|
38
|
+
readFile(request: ReadFileRequest): Promise<ReadFileResponse> | Observable<ReadFileResponse> | ReadFileResponse;
|
|
39
|
+
deleteFile(request: DeleteFileRequest): Promise<DeleteFileResponse> | Observable<DeleteFileResponse> | DeleteFileResponse;
|
|
40
|
+
fileExists(request: FileExistsRequest): Promise<FileExistsResponse> | Observable<FileExistsResponse> | FileExistsResponse;
|
|
41
|
+
}
|
|
42
|
+
export declare function AssetServiceControllerMethods(): (constructor: Function) => void;
|
|
43
|
+
export declare const ASSET_SERVICE_NAME = "AssetService";
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
/* eslint-disable */
|
|
7
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
8
|
+
export const protobufPackage = 'asset';
|
|
9
|
+
export const ASSET_PACKAGE_NAME = 'asset';
|
|
10
|
+
export function AssetServiceControllerMethods() {
|
|
11
|
+
return function (constructor) {
|
|
12
|
+
const grpcMethods = [
|
|
13
|
+
'writeFile',
|
|
14
|
+
'readFile',
|
|
15
|
+
'deleteFile',
|
|
16
|
+
'fileExists',
|
|
17
|
+
];
|
|
18
|
+
for (const method of grpcMethods) {
|
|
19
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
20
|
+
GrpcMethod('AssetService', method)(constructor.prototype[method], method, descriptor);
|
|
21
|
+
}
|
|
22
|
+
const grpcStreamMethods = [];
|
|
23
|
+
for (const method of grpcStreamMethods) {
|
|
24
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
25
|
+
GrpcStreamMethod('AssetService', method)(constructor.prototype[method], method, descriptor);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export const ASSET_SERVICE_NAME = 'AssetService';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const protobufPackage = "auth";
|
|
3
|
+
export interface SignInRequest {
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SignInResponse {
|
|
7
|
+
accessToken: string;
|
|
8
|
+
refreshToken: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RefreshAccessTokenRequest {
|
|
11
|
+
refreshToken: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RefreshAccessTokenResponse {
|
|
14
|
+
accessToken: string;
|
|
15
|
+
refreshToken: string;
|
|
16
|
+
accountId?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const AUTH_PACKAGE_NAME = "auth";
|
|
19
|
+
export interface AuthServiceClient {
|
|
20
|
+
signIn(request: SignInRequest): Observable<SignInResponse>;
|
|
21
|
+
refreshAccessToken(request: RefreshAccessTokenRequest): Observable<RefreshAccessTokenResponse>;
|
|
22
|
+
}
|
|
23
|
+
export interface AuthServiceController {
|
|
24
|
+
signIn(request: SignInRequest): Promise<SignInResponse> | Observable<SignInResponse> | SignInResponse;
|
|
25
|
+
refreshAccessToken(request: RefreshAccessTokenRequest): Promise<RefreshAccessTokenResponse> | Observable<RefreshAccessTokenResponse> | RefreshAccessTokenResponse;
|
|
26
|
+
}
|
|
27
|
+
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
28
|
+
export declare const AUTH_SERVICE_NAME = "AuthService";
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/* eslint-disable */
|
|
7
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
8
|
+
export const protobufPackage = 'auth';
|
|
9
|
+
export const AUTH_PACKAGE_NAME = 'auth';
|
|
10
|
+
export function AuthServiceControllerMethods() {
|
|
11
|
+
return function (constructor) {
|
|
12
|
+
const grpcMethods = ['signIn', 'refreshAccessToken'];
|
|
13
|
+
for (const method of grpcMethods) {
|
|
14
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
15
|
+
GrpcMethod('AuthService', method)(constructor.prototype[method], method, descriptor);
|
|
16
|
+
}
|
|
17
|
+
const grpcStreamMethods = [];
|
|
18
|
+
for (const method of grpcStreamMethods) {
|
|
19
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
20
|
+
GrpcStreamMethod('AuthService', method)(constructor.prototype[method], method, descriptor);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export const AUTH_SERVICE_NAME = 'AuthService';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BankAccountType, HolderType } from '@postpaybr/contracts/enums';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare const protobufPackage = "bankAccount";
|
|
4
|
+
export interface CreateBankAccountRequest {
|
|
5
|
+
bankCompeCode: number;
|
|
6
|
+
agency: string;
|
|
7
|
+
account: string;
|
|
8
|
+
digitAccount: string;
|
|
9
|
+
balance: number;
|
|
10
|
+
pixKey?: string;
|
|
11
|
+
holderType: HolderType;
|
|
12
|
+
accountType: BankAccountType;
|
|
13
|
+
recipientId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetBankAccountByRecipientIdRequest {
|
|
16
|
+
recipientId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetBankAccountByRecipientIdResponse {
|
|
19
|
+
bankAccount: BankAccount | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface GetAllBankAccountsResponse {
|
|
22
|
+
bankAccount: BankAccount[];
|
|
23
|
+
}
|
|
24
|
+
export interface BankAccount {
|
|
25
|
+
id: string;
|
|
26
|
+
bankCompeCode: number;
|
|
27
|
+
agency: string;
|
|
28
|
+
account: string;
|
|
29
|
+
digitAccount: string;
|
|
30
|
+
balance: number;
|
|
31
|
+
pixKey?: string;
|
|
32
|
+
holderType: HolderType;
|
|
33
|
+
accountType: BankAccountType;
|
|
34
|
+
recipientId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface BankAccountResponse {
|
|
37
|
+
bankAccount: BankAccount | undefined;
|
|
38
|
+
}
|
|
39
|
+
export interface Void {
|
|
40
|
+
}
|
|
41
|
+
export interface GetBankAccountRequest {
|
|
42
|
+
id: string;
|
|
43
|
+
}
|
|
44
|
+
export interface MainBankAccountResponse {
|
|
45
|
+
mainBankAccount: BankAccount | undefined;
|
|
46
|
+
}
|
|
47
|
+
export declare const BANK_ACCOUNT_PACKAGE_NAME = "bankAccount";
|
|
48
|
+
export interface BankAccountServiceClient {
|
|
49
|
+
createBankAccount(request: CreateBankAccountRequest): Observable<BankAccountResponse>;
|
|
50
|
+
getBankAccountByRecipientId(request: GetBankAccountByRecipientIdRequest): Observable<GetBankAccountByRecipientIdResponse>;
|
|
51
|
+
getMainAccount(request: Void): Observable<MainBankAccountResponse>;
|
|
52
|
+
getAllBankAccounts(request: Void): Observable<GetAllBankAccountsResponse>;
|
|
53
|
+
getBankAccount(request: GetBankAccountRequest): Observable<BankAccountResponse>;
|
|
54
|
+
}
|
|
55
|
+
export interface BankAccountServiceController {
|
|
56
|
+
createBankAccount(request: CreateBankAccountRequest): Promise<BankAccountResponse> | Observable<BankAccountResponse> | BankAccountResponse;
|
|
57
|
+
getBankAccountByRecipientId(request: GetBankAccountByRecipientIdRequest): Promise<GetBankAccountByRecipientIdResponse> | Observable<GetBankAccountByRecipientIdResponse> | GetBankAccountByRecipientIdResponse;
|
|
58
|
+
getMainAccount(request: Void): Promise<MainBankAccountResponse> | Observable<MainBankAccountResponse> | MainBankAccountResponse;
|
|
59
|
+
getAllBankAccounts(request: Void): Promise<GetAllBankAccountsResponse> | Observable<GetAllBankAccountsResponse> | GetAllBankAccountsResponse;
|
|
60
|
+
getBankAccount(request: GetBankAccountRequest): Promise<BankAccountResponse> | Observable<BankAccountResponse> | BankAccountResponse;
|
|
61
|
+
}
|
|
62
|
+
export declare function BankAccountServiceControllerMethods(): (constructor: Function) => void;
|
|
63
|
+
export declare const BANK_ACCOUNT_SERVICE_NAME = "BankAccountService";
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
7
|
+
export const protobufPackage = 'bankAccount';
|
|
8
|
+
export const BANK_ACCOUNT_PACKAGE_NAME = 'bankAccount';
|
|
9
|
+
export function BankAccountServiceControllerMethods() {
|
|
10
|
+
return function (constructor) {
|
|
11
|
+
const grpcMethods = [
|
|
12
|
+
'createBankAccount',
|
|
13
|
+
'getBankAccountByRecipientId',
|
|
14
|
+
'getMainAccount',
|
|
15
|
+
'getAllBankAccounts',
|
|
16
|
+
'getBankAccount',
|
|
17
|
+
];
|
|
18
|
+
for (const method of grpcMethods) {
|
|
19
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
20
|
+
GrpcMethod('BankAccountService', method)(constructor.prototype[method], method, descriptor);
|
|
21
|
+
}
|
|
22
|
+
const grpcStreamMethods = [];
|
|
23
|
+
for (const method of grpcStreamMethods) {
|
|
24
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
25
|
+
GrpcStreamMethod('BankAccountService', method)(constructor.prototype[method], method, descriptor);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export const BANK_ACCOUNT_SERVICE_NAME = 'BankAccountService';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const protobufPackage = "cardVault";
|
|
3
|
+
export interface CardDetailsPayload {
|
|
4
|
+
token: string;
|
|
5
|
+
tokenCvv: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CardDetailsResponse {
|
|
8
|
+
cvv: string;
|
|
9
|
+
firstSix: string;
|
|
10
|
+
lastFour: string;
|
|
11
|
+
ccn?: string | undefined;
|
|
12
|
+
expMonth: number;
|
|
13
|
+
expYear: number;
|
|
14
|
+
fullName: string;
|
|
15
|
+
cardType: string;
|
|
16
|
+
token: string;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteCardPayload {
|
|
19
|
+
cardToken: string;
|
|
20
|
+
cvvToken: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DeleteCardResponse {
|
|
23
|
+
success: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const CARD_VAULT_PACKAGE_NAME = "cardVault";
|
|
26
|
+
export interface CardVaultServiceClient {
|
|
27
|
+
getCardDetails(request: CardDetailsPayload): Observable<CardDetailsResponse>;
|
|
28
|
+
deleteCard(request: DeleteCardPayload): Observable<DeleteCardResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface CardVaultServiceController {
|
|
31
|
+
getCardDetails(request: CardDetailsPayload): Promise<CardDetailsResponse> | Observable<CardDetailsResponse> | CardDetailsResponse;
|
|
32
|
+
deleteCard(request: DeleteCardPayload): Promise<DeleteCardResponse> | Observable<DeleteCardResponse> | DeleteCardResponse;
|
|
33
|
+
}
|
|
34
|
+
export declare function CardVaultServiceControllerMethods(): (constructor: Function) => void;
|
|
35
|
+
export declare const CARD_VAULT_SERVICE_NAME = "CardVaultService";
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/* eslint-disable */
|
|
7
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
8
|
+
export const protobufPackage = 'cardVault';
|
|
9
|
+
export const CARD_VAULT_PACKAGE_NAME = 'cardVault';
|
|
10
|
+
export function CardVaultServiceControllerMethods() {
|
|
11
|
+
return function (constructor) {
|
|
12
|
+
const grpcMethods = ['getCardDetails', 'deleteCard'];
|
|
13
|
+
for (const method of grpcMethods) {
|
|
14
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
15
|
+
GrpcMethod('CardVaultService', method)(constructor.prototype[method], method, descriptor);
|
|
16
|
+
}
|
|
17
|
+
const grpcStreamMethods = [];
|
|
18
|
+
for (const method of grpcStreamMethods) {
|
|
19
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
20
|
+
GrpcStreamMethod('CardVaultService', method)(constructor.prototype[method], method, descriptor);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export const CARD_VAULT_SERVICE_NAME = 'CardVaultService';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const protobufPackage = "cardVerification";
|
|
3
|
+
export interface CreateCardVerificationRequest {
|
|
4
|
+
customerId: string;
|
|
5
|
+
cardId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CreateCardVerificationResponse {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CheckVerifyCardCodeRequest {
|
|
11
|
+
verificationId: string;
|
|
12
|
+
value: number;
|
|
13
|
+
}
|
|
14
|
+
export interface CheckVerifyCardCodeResponse {
|
|
15
|
+
remainingAttempts: number;
|
|
16
|
+
isSuccessfullyVerified: boolean;
|
|
17
|
+
cardId: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const CARD_VERIFICATION_PACKAGE_NAME = "cardVerification";
|
|
20
|
+
export interface CardVerificationServiceClient {
|
|
21
|
+
createCardVerification(request: CreateCardVerificationRequest): Observable<CreateCardVerificationResponse>;
|
|
22
|
+
checkVerifyCardCode(request: CheckVerifyCardCodeRequest): Observable<CheckVerifyCardCodeResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface CardVerificationServiceController {
|
|
25
|
+
createCardVerification(request: CreateCardVerificationRequest): Promise<CreateCardVerificationResponse> | Observable<CreateCardVerificationResponse> | CreateCardVerificationResponse;
|
|
26
|
+
checkVerifyCardCode(request: CheckVerifyCardCodeRequest): Promise<CheckVerifyCardCodeResponse> | Observable<CheckVerifyCardCodeResponse> | CheckVerifyCardCodeResponse;
|
|
27
|
+
}
|
|
28
|
+
export declare function CardVerificationServiceControllerMethods(): (constructor: Function) => void;
|
|
29
|
+
export declare const CARD_VERIFICATION_SERVICE_NAME = "CardVerificationService";
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/* eslint-disable */
|
|
7
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
8
|
+
export const protobufPackage = 'cardVerification';
|
|
9
|
+
export const CARD_VERIFICATION_PACKAGE_NAME = 'cardVerification';
|
|
10
|
+
export function CardVerificationServiceControllerMethods() {
|
|
11
|
+
return function (constructor) {
|
|
12
|
+
const grpcMethods = [
|
|
13
|
+
'createCardVerification',
|
|
14
|
+
'checkVerifyCardCode',
|
|
15
|
+
];
|
|
16
|
+
for (const method of grpcMethods) {
|
|
17
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
18
|
+
GrpcMethod('CardVerificationService', method)(constructor.prototype[method], method, descriptor);
|
|
19
|
+
}
|
|
20
|
+
const grpcStreamMethods = [];
|
|
21
|
+
for (const method of grpcStreamMethods) {
|
|
22
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
23
|
+
GrpcStreamMethod('CardVerificationService', method)(constructor.prototype[method], method, descriptor);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const CARD_VERIFICATION_SERVICE_NAME = 'CardVerificationService';
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { brandType } from '@postpaybr/contracts/types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare const protobufPackage = "card";
|
|
4
|
+
export interface CreateCardRequest {
|
|
5
|
+
customerId: string;
|
|
6
|
+
cardData: CardData | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface CreateCardResponse {
|
|
9
|
+
id: string;
|
|
10
|
+
shadowNumber: string;
|
|
11
|
+
brand: brandType;
|
|
12
|
+
expiration: string;
|
|
13
|
+
isCredit: boolean;
|
|
14
|
+
isDebit: boolean;
|
|
15
|
+
issuer?: string | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface CardData {
|
|
18
|
+
holderName: string;
|
|
19
|
+
nickname?: string | undefined;
|
|
20
|
+
number: string;
|
|
21
|
+
expiration: string;
|
|
22
|
+
cvv: string;
|
|
23
|
+
isCreditCard: boolean;
|
|
24
|
+
isDebitCard: boolean;
|
|
25
|
+
associatedAddressId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface UpdateCardNicknameRequest {
|
|
28
|
+
customerId: string;
|
|
29
|
+
cardId: string;
|
|
30
|
+
nickname: string;
|
|
31
|
+
}
|
|
32
|
+
export interface UpdateCardNicknameResponse {
|
|
33
|
+
id: string;
|
|
34
|
+
nickname?: string | undefined;
|
|
35
|
+
brand: brandType;
|
|
36
|
+
shadowNumber: string;
|
|
37
|
+
vaultToken: string;
|
|
38
|
+
vaultTokenCvv: string;
|
|
39
|
+
expiration: string;
|
|
40
|
+
isCredit: boolean;
|
|
41
|
+
isDebit: boolean;
|
|
42
|
+
isDisabled: boolean;
|
|
43
|
+
isVerified: boolean;
|
|
44
|
+
customerId: string;
|
|
45
|
+
addressId: string;
|
|
46
|
+
issuer?: string | undefined;
|
|
47
|
+
}
|
|
48
|
+
export interface DeleteCardRequest {
|
|
49
|
+
cardId: string;
|
|
50
|
+
}
|
|
51
|
+
export interface GetCardsByTypeRequest {
|
|
52
|
+
customerId: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}
|
|
55
|
+
export interface GetCardsByTypeResponse {
|
|
56
|
+
cards: CardDetails[];
|
|
57
|
+
}
|
|
58
|
+
export interface CardDetails {
|
|
59
|
+
id: string;
|
|
60
|
+
nickname?: string | undefined;
|
|
61
|
+
brand: brandType;
|
|
62
|
+
shadowNumber: string;
|
|
63
|
+
vaultToken: string;
|
|
64
|
+
vaultTokenCvv: string;
|
|
65
|
+
expiration: string;
|
|
66
|
+
isCredit: boolean;
|
|
67
|
+
isDebit: boolean;
|
|
68
|
+
isDisabled: boolean;
|
|
69
|
+
isVerified: boolean;
|
|
70
|
+
customerId: string;
|
|
71
|
+
addressId: string;
|
|
72
|
+
issuer?: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface GetVaultCardDetailsRequest {
|
|
75
|
+
customerId: string;
|
|
76
|
+
cardId: string;
|
|
77
|
+
}
|
|
78
|
+
export interface GetVaultCardDetailsResponse {
|
|
79
|
+
token: string;
|
|
80
|
+
cvv: string;
|
|
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
|
+
export interface GetAllCardsByCustomerIdRequest {
|
|
97
|
+
customerId: string;
|
|
98
|
+
}
|
|
99
|
+
export interface GetAllCardsByCustomerIdResponse {
|
|
100
|
+
cards: CardDetails[];
|
|
101
|
+
}
|
|
102
|
+
export interface GetCardByIdRequest {
|
|
103
|
+
id: string;
|
|
104
|
+
includeVaultTokens?: boolean | undefined;
|
|
105
|
+
}
|
|
106
|
+
export interface ValidateCardNumberRequest {
|
|
107
|
+
cardNumber: string;
|
|
108
|
+
}
|
|
109
|
+
export interface ValidateCardNumberResponse {
|
|
110
|
+
isValid: boolean;
|
|
111
|
+
}
|
|
112
|
+
export interface ValidateCVVRequest {
|
|
113
|
+
cardId: string;
|
|
114
|
+
cvv: string;
|
|
115
|
+
customerId: string;
|
|
116
|
+
}
|
|
117
|
+
export interface ValidateCVVResponse {
|
|
118
|
+
isValid: boolean;
|
|
119
|
+
remainingAttempts: number;
|
|
120
|
+
isBlocked: boolean;
|
|
121
|
+
blockedUntil?: Date;
|
|
122
|
+
}
|
|
123
|
+
export declare const CARD_PACKAGE_NAME = "card";
|
|
124
|
+
export interface CardServiceClient {
|
|
125
|
+
createCard(request: CreateCardRequest): Observable<CreateCardResponse>;
|
|
126
|
+
updateCardNickname(request: UpdateCardNicknameRequest): Observable<UpdateCardNicknameResponse>;
|
|
127
|
+
deleteCard(request: DeleteCardRequest): Observable<CardDetails>;
|
|
128
|
+
getCardsByType(request: GetCardsByTypeRequest): Observable<GetCardsByTypeResponse>;
|
|
129
|
+
getVaultCardDetails(request: GetVaultCardDetailsRequest): Observable<GetVaultCardDetailsResponse>;
|
|
130
|
+
getAllCardsByCustomerId(request: GetAllCardsByCustomerIdRequest): Observable<GetAllCardsByCustomerIdResponse>;
|
|
131
|
+
getCardById(request: GetCardByIdRequest): Observable<CardDetails>;
|
|
132
|
+
validateCardNumber(request: ValidateCardNumberRequest): Observable<ValidateCardNumberResponse>;
|
|
133
|
+
validateCvv(request: ValidateCVVRequest): Observable<ValidateCVVResponse>;
|
|
134
|
+
}
|
|
135
|
+
export interface CardServiceController {
|
|
136
|
+
createCard(request: CreateCardRequest): Promise<CreateCardResponse> | Observable<CreateCardResponse> | CreateCardResponse;
|
|
137
|
+
updateCardNickname(request: UpdateCardNicknameRequest): Promise<UpdateCardNicknameResponse> | Observable<UpdateCardNicknameResponse> | UpdateCardNicknameResponse;
|
|
138
|
+
deleteCard(request: DeleteCardRequest): Promise<CardDetails> | Observable<CardDetails> | CardDetails;
|
|
139
|
+
getCardsByType(request: GetCardsByTypeRequest): Promise<GetCardsByTypeResponse> | Observable<GetCardsByTypeResponse> | GetCardsByTypeResponse;
|
|
140
|
+
getVaultCardDetails(request: GetVaultCardDetailsRequest): Promise<GetVaultCardDetailsResponse> | Observable<GetVaultCardDetailsResponse> | GetVaultCardDetailsResponse;
|
|
141
|
+
getAllCardsByCustomerId(request: GetAllCardsByCustomerIdRequest): Promise<GetAllCardsByCustomerIdResponse> | Observable<GetAllCardsByCustomerIdResponse> | GetAllCardsByCustomerIdResponse;
|
|
142
|
+
getCardById(request: GetCardByIdRequest): Promise<CardDetails> | Observable<CardDetails> | CardDetails;
|
|
143
|
+
validateCardNumber(request: ValidateCardNumberRequest): Promise<ValidateCardNumberResponse> | Observable<ValidateCardNumberResponse> | ValidateCardNumberResponse;
|
|
144
|
+
validateCvv(request: ValidateCVVRequest): Promise<ValidateCVVResponse> | Observable<ValidateCVVResponse> | ValidateCVVResponse;
|
|
145
|
+
}
|
|
146
|
+
export declare function CardServiceControllerMethods(): (constructor: Function) => void;
|
|
147
|
+
export declare const CARD_SERVICE_NAME = "CardService";
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
7
|
+
export const protobufPackage = 'card';
|
|
8
|
+
export const CARD_PACKAGE_NAME = 'card';
|
|
9
|
+
export function CardServiceControllerMethods() {
|
|
10
|
+
return function (constructor) {
|
|
11
|
+
const grpcMethods = [
|
|
12
|
+
'createCard',
|
|
13
|
+
'updateCardNickname',
|
|
14
|
+
'deleteCard',
|
|
15
|
+
'getCardsByType',
|
|
16
|
+
'getVaultCardDetails',
|
|
17
|
+
'getAllCardsByCustomerId',
|
|
18
|
+
'getCardById',
|
|
19
|
+
'validateCardNumber',
|
|
20
|
+
'validateCvv',
|
|
21
|
+
];
|
|
22
|
+
for (const method of grpcMethods) {
|
|
23
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
+
GrpcMethod('CardService', method)(constructor.prototype[method], method, descriptor);
|
|
25
|
+
}
|
|
26
|
+
const grpcStreamMethods = [];
|
|
27
|
+
for (const method of grpcStreamMethods) {
|
|
28
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
+
GrpcStreamMethod('CardService', method)(constructor.prototype[method], method, descriptor);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export const CARD_SERVICE_NAME = 'CardService';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const protobufPackage = "chargeSchedule";
|
|
3
|
+
export interface CreateChargeScheduleRequest {
|
|
4
|
+
chargeId: string;
|
|
5
|
+
executionDate: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CreateChargeScheduleResponse {
|
|
8
|
+
chargeSchedule: ChargeSchedule | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface ChargeSchedule {
|
|
11
|
+
id: string;
|
|
12
|
+
executionDate: Date;
|
|
13
|
+
isExecuted: boolean;
|
|
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
|
+
export declare const CHARGE_SCHEDULE_PACKAGE_NAME = "chargeSchedule";
|
|
28
|
+
export interface ChargeScheduleServiceClient {
|
|
29
|
+
CreateChargeSchedule(request: CreateChargeScheduleRequest): Observable<CreateChargeScheduleResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface ChargeScheduleServiceController {
|
|
32
|
+
CreateChargeSchedule(request: CreateChargeScheduleRequest): Promise<CreateChargeScheduleResponse> | Observable<CreateChargeScheduleResponse> | CreateChargeScheduleResponse;
|
|
33
|
+
}
|
|
34
|
+
export declare function ChargeScheduleServiceControllerMethods(): (constructor: Function) => void;
|
|
35
|
+
export declare const CHARGE_SCHEDULE_SERVICE_NAME = "ChargeScheduleService";
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/* eslint-disable */
|
|
7
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
8
|
+
export const protobufPackage = 'chargeSchedule';
|
|
9
|
+
export const CHARGE_SCHEDULE_PACKAGE_NAME = 'chargeSchedule';
|
|
10
|
+
export function ChargeScheduleServiceControllerMethods() {
|
|
11
|
+
return function (constructor) {
|
|
12
|
+
const grpcMethods = ['CreateChargeSchedule'];
|
|
13
|
+
for (const method of grpcMethods) {
|
|
14
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
15
|
+
GrpcMethod('ChargeScheduleService', method)(constructor.prototype[method], method, descriptor);
|
|
16
|
+
}
|
|
17
|
+
const grpcStreamMethods = [];
|
|
18
|
+
for (const method of grpcStreamMethods) {
|
|
19
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
20
|
+
GrpcStreamMethod('ChargeScheduleService', method)(constructor.prototype[method], method, descriptor);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export const CHARGE_SCHEDULE_SERVICE_NAME = 'ChargeScheduleService';
|