@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,95 @@
|
|
|
1
|
+
import { GatewayIdentification, PaymentGatewayType, PaymentMethods } from '@postpaybr/contracts/types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare const protobufPackage = "recipientPaymentGateway";
|
|
4
|
+
export interface RecipientPaymentGateway {
|
|
5
|
+
id: string;
|
|
6
|
+
paymentGatewayId: string;
|
|
7
|
+
gatewayId: GatewayIdentification;
|
|
8
|
+
type: PaymentGatewayType;
|
|
9
|
+
isPixEnabled: boolean;
|
|
10
|
+
isCreditCardEnabled: boolean;
|
|
11
|
+
isDebitCardEnabled: boolean;
|
|
12
|
+
isAutomaticAnticipationEnabled: boolean;
|
|
13
|
+
isManualAnticipationEnabled: boolean;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
17
|
+
export interface PaymentGateway {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
gatewayId: string;
|
|
21
|
+
supportsPix: boolean;
|
|
22
|
+
supportsCreditCard: boolean;
|
|
23
|
+
supportsDebitCard: boolean;
|
|
24
|
+
supportsAutomaticAnticipation: boolean;
|
|
25
|
+
supportsManualAnticipation: boolean;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
}
|
|
30
|
+
export interface RecipientPaymentGatewayResponse {
|
|
31
|
+
recipientPaymentGateway: RecipientPaymentGateway | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface RecipientPaymentGatewayListResponse {
|
|
34
|
+
recipientPaymentGateways: RecipientPaymentGateway[] | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface PaymentGatewayListResponse {
|
|
37
|
+
gateways: PaymentGateway[];
|
|
38
|
+
}
|
|
39
|
+
export interface GatewayIdentificationListResponse {
|
|
40
|
+
gateways: string[];
|
|
41
|
+
}
|
|
42
|
+
export interface CreateRecipientPaymentGatewayRequest {
|
|
43
|
+
recipientId: string;
|
|
44
|
+
paymentGatewayId: string;
|
|
45
|
+
type: PaymentGatewayType;
|
|
46
|
+
isPixEnabled: boolean;
|
|
47
|
+
isCreditCardEnabled: boolean;
|
|
48
|
+
isDebitCardEnabled: boolean;
|
|
49
|
+
isAutomaticAnticipationEnabled: boolean;
|
|
50
|
+
isManualAnticipationEnabled: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface DeleteRecipientPaymentGatewayRequest {
|
|
53
|
+
id: string;
|
|
54
|
+
}
|
|
55
|
+
export interface GetGatewayByRecipientAndTypeRequest {
|
|
56
|
+
recipientId: string;
|
|
57
|
+
method: PaymentMethods;
|
|
58
|
+
type: PaymentGatewayType;
|
|
59
|
+
}
|
|
60
|
+
export interface GetAvailableGatewaysRequest {
|
|
61
|
+
method: PaymentMethods;
|
|
62
|
+
}
|
|
63
|
+
export interface Void {
|
|
64
|
+
}
|
|
65
|
+
export interface TableFilterParams {
|
|
66
|
+
pageIndex?: number | undefined;
|
|
67
|
+
pageSize?: number | undefined;
|
|
68
|
+
status?: string[];
|
|
69
|
+
globalFilter?: string | undefined;
|
|
70
|
+
startDate?: Date | undefined;
|
|
71
|
+
endDate?: Date | undefined;
|
|
72
|
+
}
|
|
73
|
+
export interface GetRecipientPaymentGatewaysByRecipientIdRequest {
|
|
74
|
+
recipientId: string;
|
|
75
|
+
filter: TableFilterParams | undefined;
|
|
76
|
+
}
|
|
77
|
+
export declare const RECIPIENT_PAYMENT_GATEWAY_PACKAGE_NAME = "recipientPaymentGateway";
|
|
78
|
+
export interface RecipientPaymentGatewayServiceClient {
|
|
79
|
+
createRecipientPaymentGateway(request: CreateRecipientPaymentGatewayRequest): Observable<RecipientPaymentGatewayResponse>;
|
|
80
|
+
deleteRecipientPaymentGateway(request: DeleteRecipientPaymentGatewayRequest): Observable<Void>;
|
|
81
|
+
getGatewayByRecipientAndType(request: GetGatewayByRecipientAndTypeRequest): Observable<RecipientPaymentGatewayResponse>;
|
|
82
|
+
getAvailableGateways(request: GetAvailableGatewaysRequest): Observable<PaymentGatewayListResponse>;
|
|
83
|
+
listGatewayIdentifications(request: Void): Observable<GatewayIdentificationListResponse>;
|
|
84
|
+
getRecipientPaymentGatewaysByRecipientId(request: GetRecipientPaymentGatewaysByRecipientIdRequest): Observable<RecipientPaymentGatewayListResponse>;
|
|
85
|
+
}
|
|
86
|
+
export interface RecipientPaymentGatewayServiceController {
|
|
87
|
+
createRecipientPaymentGateway(request: CreateRecipientPaymentGatewayRequest): Promise<RecipientPaymentGatewayResponse> | Observable<RecipientPaymentGatewayResponse> | RecipientPaymentGatewayResponse;
|
|
88
|
+
deleteRecipientPaymentGateway(request: DeleteRecipientPaymentGatewayRequest): Promise<Void> | Observable<Void> | Void;
|
|
89
|
+
getGatewayByRecipientAndType(request: GetGatewayByRecipientAndTypeRequest): Promise<RecipientPaymentGatewayResponse> | Observable<RecipientPaymentGatewayResponse> | RecipientPaymentGatewayResponse;
|
|
90
|
+
getAvailableGateways(request: GetAvailableGatewaysRequest): Promise<PaymentGatewayListResponse> | Observable<PaymentGatewayListResponse> | PaymentGatewayListResponse;
|
|
91
|
+
listGatewayIdentifications(request: Void): Promise<GatewayIdentificationListResponse> | Observable<GatewayIdentificationListResponse> | GatewayIdentificationListResponse;
|
|
92
|
+
getRecipientPaymentGatewaysByRecipientId(request: GetRecipientPaymentGatewaysByRecipientIdRequest): Promise<RecipientPaymentGatewayListResponse> | Observable<RecipientPaymentGatewayListResponse> | RecipientPaymentGatewayListResponse;
|
|
93
|
+
}
|
|
94
|
+
export declare function RecipientPaymentGatewayServiceControllerMethods(): (constructor: Function) => void;
|
|
95
|
+
export declare const RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = "RecipientPaymentGatewayService";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v6.32.1
|
|
5
|
+
// source: recipient-payment-gateway.proto
|
|
6
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
7
|
+
export const protobufPackage = 'recipientPaymentGateway';
|
|
8
|
+
export const RECIPIENT_PAYMENT_GATEWAY_PACKAGE_NAME = 'recipientPaymentGateway';
|
|
9
|
+
export function RecipientPaymentGatewayServiceControllerMethods() {
|
|
10
|
+
return function (constructor) {
|
|
11
|
+
const grpcMethods = [
|
|
12
|
+
'createRecipientPaymentGateway',
|
|
13
|
+
'deleteRecipientPaymentGateway',
|
|
14
|
+
'getGatewayByRecipientAndType',
|
|
15
|
+
'getAvailableGateways',
|
|
16
|
+
'listGatewayIdentifications',
|
|
17
|
+
'getRecipientPaymentGatewaysByRecipientId',
|
|
18
|
+
];
|
|
19
|
+
for (const method of grpcMethods) {
|
|
20
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
21
|
+
GrpcMethod('RecipientPaymentGatewayService', method)(constructor.prototype[method], method, descriptor);
|
|
22
|
+
}
|
|
23
|
+
const grpcStreamMethods = [];
|
|
24
|
+
for (const method of grpcStreamMethods) {
|
|
25
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
26
|
+
GrpcStreamMethod('RecipientPaymentGatewayService', method)(constructor.prototype[method], method, descriptor);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export const RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = 'RecipientPaymentGatewayService';
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { BankAccountType, HolderType, RecipientLegalType } from '@postpaybr/contracts/enums';
|
|
2
|
+
import { GatewayIdentification } from '@postpaybr/contracts/types';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare const protobufPackage = "recipient";
|
|
5
|
+
export interface Recipient {
|
|
6
|
+
id: string;
|
|
7
|
+
code: string;
|
|
8
|
+
commercialName: string;
|
|
9
|
+
socialReason: string;
|
|
10
|
+
holderType: HolderType;
|
|
11
|
+
document: string;
|
|
12
|
+
cnaeId: string;
|
|
13
|
+
avatarUrl: string;
|
|
14
|
+
legalType: RecipientLegalType;
|
|
15
|
+
foundation: string;
|
|
16
|
+
contactName: string;
|
|
17
|
+
contactEmail: string;
|
|
18
|
+
contactPhone: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
addressId: string;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
providerStatus: string;
|
|
24
|
+
}
|
|
25
|
+
export interface RecipientResponse {
|
|
26
|
+
recipient: Recipient | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface GetRecipientByIdRequest {
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GetRecipientByCodeRequest {
|
|
32
|
+
code: string;
|
|
33
|
+
}
|
|
34
|
+
export interface GetRecipientNameByIdRequest {
|
|
35
|
+
id: string;
|
|
36
|
+
}
|
|
37
|
+
export interface RecipientNameResponse {
|
|
38
|
+
name: string;
|
|
39
|
+
}
|
|
40
|
+
export interface Void {
|
|
41
|
+
}
|
|
42
|
+
export interface GetAllRecipientsResponse {
|
|
43
|
+
recipients: Recipient[];
|
|
44
|
+
}
|
|
45
|
+
export interface GetRecipientFeesRequest {
|
|
46
|
+
id: string;
|
|
47
|
+
}
|
|
48
|
+
export interface Fee {
|
|
49
|
+
id: string;
|
|
50
|
+
method: string;
|
|
51
|
+
type: string;
|
|
52
|
+
base: number;
|
|
53
|
+
percentage: number;
|
|
54
|
+
promotionalBase: number;
|
|
55
|
+
promotionalPercentage: number;
|
|
56
|
+
description: string;
|
|
57
|
+
installment: number;
|
|
58
|
+
isDefault: boolean;
|
|
59
|
+
brand: string;
|
|
60
|
+
}
|
|
61
|
+
export interface RecipientFeesResponse {
|
|
62
|
+
fees: Fee[];
|
|
63
|
+
}
|
|
64
|
+
export interface GetRecipientGatewaysRequest {
|
|
65
|
+
id: string;
|
|
66
|
+
}
|
|
67
|
+
export interface RecipientGateway {
|
|
68
|
+
id: string;
|
|
69
|
+
type: string;
|
|
70
|
+
isAutomaticAnticipationEnabled: boolean;
|
|
71
|
+
isManualAnticipationEnabled: boolean;
|
|
72
|
+
isPixEnabled: boolean;
|
|
73
|
+
isCreditCardEnabled: boolean;
|
|
74
|
+
isDebitCardEnabled: boolean;
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
updatedAt: Date;
|
|
77
|
+
}
|
|
78
|
+
export interface RecipientGatewaysResponse {
|
|
79
|
+
gateways: RecipientGateway[];
|
|
80
|
+
}
|
|
81
|
+
export interface ImageData {
|
|
82
|
+
mimetype: string;
|
|
83
|
+
buffer: Uint8Array;
|
|
84
|
+
}
|
|
85
|
+
export interface UpdateRecipientAvatarRequest {
|
|
86
|
+
id: string;
|
|
87
|
+
avatar: ImageData | undefined;
|
|
88
|
+
}
|
|
89
|
+
export interface GetRecipientDetailsByIdRequest {
|
|
90
|
+
id: string;
|
|
91
|
+
}
|
|
92
|
+
export interface Address {
|
|
93
|
+
id: string;
|
|
94
|
+
zipCode: string;
|
|
95
|
+
street: string;
|
|
96
|
+
number: string;
|
|
97
|
+
complement: string;
|
|
98
|
+
neighborhood: string;
|
|
99
|
+
city: string;
|
|
100
|
+
state: string;
|
|
101
|
+
nickname: string;
|
|
102
|
+
reference: string;
|
|
103
|
+
}
|
|
104
|
+
export interface BankAccount {
|
|
105
|
+
id: string;
|
|
106
|
+
bankCompeCode: number;
|
|
107
|
+
agency: string;
|
|
108
|
+
account: string;
|
|
109
|
+
digitAccount: string;
|
|
110
|
+
balance: number;
|
|
111
|
+
pixKey?: string;
|
|
112
|
+
holderType: HolderType;
|
|
113
|
+
accountType: BankAccountType;
|
|
114
|
+
}
|
|
115
|
+
export interface Representative {
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
email: string;
|
|
119
|
+
phone: string;
|
|
120
|
+
document: string;
|
|
121
|
+
birthDate: string;
|
|
122
|
+
}
|
|
123
|
+
export interface RecipientDetailsResponse {
|
|
124
|
+
recipient: Recipient | undefined;
|
|
125
|
+
address: Address | undefined;
|
|
126
|
+
bankAccount: BankAccount | undefined;
|
|
127
|
+
representative: Representative | undefined;
|
|
128
|
+
}
|
|
129
|
+
export interface CreateRecipientRequest {
|
|
130
|
+
code: string;
|
|
131
|
+
commercialName: string;
|
|
132
|
+
socialReason: string;
|
|
133
|
+
holderType: HolderType;
|
|
134
|
+
document: string;
|
|
135
|
+
cnaeId: string;
|
|
136
|
+
legalType: RecipientLegalType;
|
|
137
|
+
contactName: string;
|
|
138
|
+
contactEmail: string;
|
|
139
|
+
contactPhone: string;
|
|
140
|
+
foundation: string;
|
|
141
|
+
address: CreateAddressDto | undefined;
|
|
142
|
+
bankAccount: CreateBankAccountDto | undefined;
|
|
143
|
+
representative: CreateRepresentativeDto | undefined;
|
|
144
|
+
}
|
|
145
|
+
export interface CreateAddressDto {
|
|
146
|
+
state: string;
|
|
147
|
+
city: string;
|
|
148
|
+
zipCode: string;
|
|
149
|
+
neighborhood: string;
|
|
150
|
+
street: string;
|
|
151
|
+
number: string;
|
|
152
|
+
nickname?: string | undefined;
|
|
153
|
+
complement?: string | undefined;
|
|
154
|
+
recipientId?: string | undefined;
|
|
155
|
+
reference?: string | undefined;
|
|
156
|
+
}
|
|
157
|
+
export interface CreateBankAccountDto {
|
|
158
|
+
bankCompeCode: number;
|
|
159
|
+
holderType: HolderType;
|
|
160
|
+
agency: string;
|
|
161
|
+
account: string;
|
|
162
|
+
digitAccount: string;
|
|
163
|
+
accountType: BankAccountType;
|
|
164
|
+
pixKey?: string | undefined;
|
|
165
|
+
balance?: number;
|
|
166
|
+
}
|
|
167
|
+
export interface CreateRepresentativeDto {
|
|
168
|
+
name: string;
|
|
169
|
+
email: string;
|
|
170
|
+
phone: string;
|
|
171
|
+
document: string;
|
|
172
|
+
birthDate: string;
|
|
173
|
+
}
|
|
174
|
+
export interface UpdateRecipientRequest {
|
|
175
|
+
id: string;
|
|
176
|
+
data: CreateRecipientRequest | undefined;
|
|
177
|
+
}
|
|
178
|
+
export interface IsAutomaticAnticipationEnabledRequest {
|
|
179
|
+
recipientId: string;
|
|
180
|
+
gatewayId: GatewayIdentification;
|
|
181
|
+
}
|
|
182
|
+
export interface IsAutomaticAnticipationEnabledResponse {
|
|
183
|
+
isEnabled: boolean;
|
|
184
|
+
}
|
|
185
|
+
export interface GetExternalRecipientIdRequest {
|
|
186
|
+
recipientId: string;
|
|
187
|
+
gatewayId: GatewayIdentification;
|
|
188
|
+
}
|
|
189
|
+
export interface GetExternalRecipientIdResponse {
|
|
190
|
+
externalRecipientId: string;
|
|
191
|
+
}
|
|
192
|
+
export declare const RECIPIENT_PACKAGE_NAME = "recipient";
|
|
193
|
+
export interface RecipientServiceClient {
|
|
194
|
+
createRecipient(request: CreateRecipientRequest): Observable<RecipientResponse>;
|
|
195
|
+
updateRecipient(request: UpdateRecipientRequest): Observable<RecipientResponse>;
|
|
196
|
+
getRecipientById(request: GetRecipientByIdRequest): Observable<RecipientResponse>;
|
|
197
|
+
getRecipientByCode(request: GetRecipientByCodeRequest): Observable<RecipientResponse>;
|
|
198
|
+
getRecipientNameById(request: GetRecipientNameByIdRequest): Observable<RecipientNameResponse>;
|
|
199
|
+
getAllRecipients(request: Void): Observable<GetAllRecipientsResponse>;
|
|
200
|
+
getRecipientFees(request: GetRecipientFeesRequest): Observable<RecipientFeesResponse>;
|
|
201
|
+
getRecipientGateways(request: GetRecipientGatewaysRequest): Observable<RecipientGatewaysResponse>;
|
|
202
|
+
updateRecipientAvatar(request: UpdateRecipientAvatarRequest): Observable<RecipientResponse>;
|
|
203
|
+
getRecipientDetailsById(request: GetRecipientDetailsByIdRequest): Observable<RecipientDetailsResponse>;
|
|
204
|
+
isAutomaticAnticipationEnabled(request: IsAutomaticAnticipationEnabledRequest): Observable<IsAutomaticAnticipationEnabledResponse>;
|
|
205
|
+
getExternalRecipientId(request: GetExternalRecipientIdRequest): Observable<GetExternalRecipientIdResponse>;
|
|
206
|
+
}
|
|
207
|
+
export interface RecipientServiceController {
|
|
208
|
+
createRecipient(request: CreateRecipientRequest): Promise<RecipientResponse> | Observable<RecipientResponse> | RecipientResponse;
|
|
209
|
+
updateRecipient(request: UpdateRecipientRequest): Promise<RecipientResponse> | Observable<RecipientResponse> | RecipientResponse;
|
|
210
|
+
getRecipientById(request: GetRecipientByIdRequest): Promise<RecipientResponse> | Observable<RecipientResponse> | RecipientResponse;
|
|
211
|
+
getRecipientByCode(request: GetRecipientByCodeRequest): Promise<RecipientResponse> | Observable<RecipientResponse> | RecipientResponse;
|
|
212
|
+
getRecipientNameById(request: GetRecipientNameByIdRequest): Promise<RecipientNameResponse> | Observable<RecipientNameResponse> | RecipientNameResponse;
|
|
213
|
+
getAllRecipients(request: Void): Promise<GetAllRecipientsResponse> | Observable<GetAllRecipientsResponse> | GetAllRecipientsResponse;
|
|
214
|
+
getRecipientFees(request: GetRecipientFeesRequest): Promise<RecipientFeesResponse> | Observable<RecipientFeesResponse> | RecipientFeesResponse;
|
|
215
|
+
getRecipientGateways(request: GetRecipientGatewaysRequest): Promise<RecipientGatewaysResponse> | Observable<RecipientGatewaysResponse> | RecipientGatewaysResponse;
|
|
216
|
+
updateRecipientAvatar(request: UpdateRecipientAvatarRequest): Promise<RecipientResponse> | Observable<RecipientResponse> | RecipientResponse;
|
|
217
|
+
getRecipientDetailsById(request: GetRecipientDetailsByIdRequest): Promise<RecipientDetailsResponse> | Observable<RecipientDetailsResponse> | RecipientDetailsResponse;
|
|
218
|
+
isAutomaticAnticipationEnabled(request: IsAutomaticAnticipationEnabledRequest): Promise<IsAutomaticAnticipationEnabledResponse> | Observable<IsAutomaticAnticipationEnabledResponse> | IsAutomaticAnticipationEnabledResponse;
|
|
219
|
+
getExternalRecipientId(request: GetExternalRecipientIdRequest): Promise<GetExternalRecipientIdResponse> | Observable<GetExternalRecipientIdResponse> | GetExternalRecipientIdResponse;
|
|
220
|
+
}
|
|
221
|
+
export declare function RecipientServiceControllerMethods(): (constructor: Function) => void;
|
|
222
|
+
export declare const RECIPIENT_SERVICE_NAME = "RecipientService";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v6.32.1
|
|
5
|
+
// source: recipient.proto
|
|
6
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
7
|
+
export const protobufPackage = 'recipient';
|
|
8
|
+
export const RECIPIENT_PACKAGE_NAME = 'recipient';
|
|
9
|
+
export function RecipientServiceControllerMethods() {
|
|
10
|
+
return function (constructor) {
|
|
11
|
+
const grpcMethods = [
|
|
12
|
+
'createRecipient',
|
|
13
|
+
'updateRecipient',
|
|
14
|
+
'getRecipientById',
|
|
15
|
+
'getRecipientByCode',
|
|
16
|
+
'getRecipientNameById',
|
|
17
|
+
'getAllRecipients',
|
|
18
|
+
'getRecipientFees',
|
|
19
|
+
'getRecipientGateways',
|
|
20
|
+
'updateRecipientAvatar',
|
|
21
|
+
'getRecipientDetailsById',
|
|
22
|
+
'isAutomaticAnticipationEnabled',
|
|
23
|
+
'getExternalRecipientId',
|
|
24
|
+
];
|
|
25
|
+
for (const method of grpcMethods) {
|
|
26
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
27
|
+
GrpcMethod('RecipientService', method)(constructor.prototype[method], method, descriptor);
|
|
28
|
+
}
|
|
29
|
+
const grpcStreamMethods = [];
|
|
30
|
+
for (const method of grpcStreamMethods) {
|
|
31
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
32
|
+
GrpcStreamMethod('RecipientService', method)(constructor.prototype[method], method, descriptor);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export const RECIPIENT_SERVICE_NAME = 'RecipientService';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Permission } from '@postpaybr/contracts/enums';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare const protobufPackage = "role";
|
|
4
|
+
export interface CreateRoleRequest {
|
|
5
|
+
code: string;
|
|
6
|
+
description: string;
|
|
7
|
+
permissions: Permission[];
|
|
8
|
+
}
|
|
9
|
+
export interface DeleteRoleRequest {
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DeleteRoleResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface GetRoleByIdRequest {
|
|
16
|
+
id: string;
|
|
17
|
+
}
|
|
18
|
+
export interface Role {
|
|
19
|
+
id: string;
|
|
20
|
+
code: string;
|
|
21
|
+
description: string;
|
|
22
|
+
permissions: Permission[];
|
|
23
|
+
}
|
|
24
|
+
export interface GetAllRolesRequest {
|
|
25
|
+
}
|
|
26
|
+
export interface GetAllRolesResponse {
|
|
27
|
+
roles: Role[];
|
|
28
|
+
}
|
|
29
|
+
export interface GetPermissionGroupsRequest {
|
|
30
|
+
}
|
|
31
|
+
export interface PermissionGroup {
|
|
32
|
+
group: string;
|
|
33
|
+
description: string;
|
|
34
|
+
permissions: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface GetPermissionGroupsResponse {
|
|
37
|
+
permissionGroups: PermissionGroup[];
|
|
38
|
+
}
|
|
39
|
+
export declare const ROLE_PACKAGE_NAME = "role";
|
|
40
|
+
export interface RoleServiceClient {
|
|
41
|
+
createRole(request: CreateRoleRequest): Observable<Role>;
|
|
42
|
+
deleteRole(request: DeleteRoleRequest): Observable<DeleteRoleResponse>;
|
|
43
|
+
getRoleById(request: GetRoleByIdRequest): Observable<Role>;
|
|
44
|
+
getAllRoles(request: GetAllRolesRequest): Observable<GetAllRolesResponse>;
|
|
45
|
+
updateRole(request: Role): Observable<Role>;
|
|
46
|
+
getPermissionGroups(request: GetPermissionGroupsRequest): Observable<GetPermissionGroupsResponse>;
|
|
47
|
+
}
|
|
48
|
+
export interface RoleServiceController {
|
|
49
|
+
createRole(request: CreateRoleRequest): Promise<Role> | Observable<Role> | Role;
|
|
50
|
+
deleteRole(request: DeleteRoleRequest): Promise<DeleteRoleResponse> | Observable<DeleteRoleResponse> | DeleteRoleResponse;
|
|
51
|
+
getRoleById(request: GetRoleByIdRequest): Promise<Role> | Observable<Role> | Role;
|
|
52
|
+
getAllRoles(request: GetAllRolesRequest): Promise<GetAllRolesResponse> | Observable<GetAllRolesResponse> | GetAllRolesResponse;
|
|
53
|
+
updateRole(request: Role): Promise<Role> | Observable<Role> | Role;
|
|
54
|
+
getPermissionGroups(request: GetPermissionGroupsRequest): Promise<GetPermissionGroupsResponse> | Observable<GetPermissionGroupsResponse> | GetPermissionGroupsResponse;
|
|
55
|
+
}
|
|
56
|
+
export declare function RoleServiceControllerMethods(): (constructor: Function) => void;
|
|
57
|
+
export declare const ROLE_SERVICE_NAME = "RoleService";
|
|
@@ -0,0 +1,30 @@
|
|
|
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: role.proto
|
|
6
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
7
|
+
export const protobufPackage = 'role';
|
|
8
|
+
export const ROLE_PACKAGE_NAME = 'role';
|
|
9
|
+
export function RoleServiceControllerMethods() {
|
|
10
|
+
return function (constructor) {
|
|
11
|
+
const grpcMethods = [
|
|
12
|
+
'createRole',
|
|
13
|
+
'deleteRole',
|
|
14
|
+
'getRoleById',
|
|
15
|
+
'getAllRoles',
|
|
16
|
+
'updateRole',
|
|
17
|
+
'getPermissionGroups',
|
|
18
|
+
];
|
|
19
|
+
for (const method of grpcMethods) {
|
|
20
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
21
|
+
GrpcMethod('RoleService', method)(constructor.prototype[method], method, descriptor);
|
|
22
|
+
}
|
|
23
|
+
const grpcStreamMethods = [];
|
|
24
|
+
for (const method of grpcStreamMethods) {
|
|
25
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
26
|
+
GrpcStreamMethod('RoleService', method)(constructor.prototype[method], method, descriptor);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export const ROLE_SERVICE_NAME = 'RoleService';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare const protobufPackage = "sms";
|
|
3
|
+
export interface SendSmsToVerifyRequest {
|
|
4
|
+
phoneNumber: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SendSmsToVerifyResponse {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface VerifySmsCodeRequest {
|
|
10
|
+
id: string;
|
|
11
|
+
code: number;
|
|
12
|
+
}
|
|
13
|
+
export interface VerifySmsCodeResponse {
|
|
14
|
+
success: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface SmsVerifyEntity {
|
|
17
|
+
id: string;
|
|
18
|
+
phoneNumber: string;
|
|
19
|
+
errorCodeMessage: string;
|
|
20
|
+
verificationCode: number;
|
|
21
|
+
attempts: number;
|
|
22
|
+
verified: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const SMS_PACKAGE_NAME = "sms";
|
|
25
|
+
export interface SmsServiceClient {
|
|
26
|
+
sendSmsToVerify(request: SendSmsToVerifyRequest): Observable<SendSmsToVerifyResponse>;
|
|
27
|
+
verifySmsCode(request: VerifySmsCodeRequest): Observable<VerifySmsCodeResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface SmsServiceController {
|
|
30
|
+
sendSmsToVerify(request: SendSmsToVerifyRequest): Promise<SendSmsToVerifyResponse> | Observable<SendSmsToVerifyResponse> | SendSmsToVerifyResponse;
|
|
31
|
+
verifySmsCode(request: VerifySmsCodeRequest): Promise<VerifySmsCodeResponse> | Observable<VerifySmsCodeResponse> | VerifySmsCodeResponse;
|
|
32
|
+
}
|
|
33
|
+
export declare function SmsServiceControllerMethods(): (constructor: Function) => void;
|
|
34
|
+
export declare const SMS_SERVICE_NAME = "SmsService";
|
|
@@ -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: sms.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
8
|
+
export const protobufPackage = 'sms';
|
|
9
|
+
export const SMS_PACKAGE_NAME = 'sms';
|
|
10
|
+
export function SmsServiceControllerMethods() {
|
|
11
|
+
return function (constructor) {
|
|
12
|
+
const grpcMethods = ['sendSmsToVerify', 'verifySmsCode'];
|
|
13
|
+
for (const method of grpcMethods) {
|
|
14
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
15
|
+
GrpcMethod('SmsService', 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('SmsService', method)(constructor.prototype[method], method, descriptor);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export const SMS_SERVICE_NAME = 'SmsService';
|