@postpaybr/protos 1.1.10 → 1.1.14
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 +4 -15
- package/dist/typescript/account-entry.js +11 -11
- package/dist/typescript/address.d.ts +1 -1
- package/dist/typescript/address.js +8 -13
- package/dist/typescript/admin-card-verification.d.ts +16 -19
- package/dist/typescript/admin-card-verification.js +12 -11
- package/dist/typescript/administrator.d.ts +10 -17
- package/dist/typescript/administrator.js +21 -20
- package/dist/typescript/anticipation.d.ts +7 -7
- package/dist/typescript/anticipation.js +14 -13
- package/dist/typescript/asset.d.ts +3 -3
- package/dist/typescript/asset.js +8 -13
- package/dist/typescript/auth.d.ts +2 -2
- package/dist/typescript/auth.js +8 -8
- package/dist/typescript/bank-account.d.ts +5 -8
- package/dist/typescript/bank-account.js +12 -12
- package/dist/typescript/card-vault.d.ts +1 -1
- package/dist/typescript/card-vault.js +8 -8
- package/dist/typescript/card-verification.d.ts +1 -1
- package/dist/typescript/card-verification.js +8 -11
- package/dist/typescript/card.d.ts +5 -20
- package/dist/typescript/card.js +17 -16
- package/dist/typescript/charge-schedule.d.ts +4 -16
- package/dist/typescript/charge-schedule.js +8 -8
- package/dist/typescript/charge.d.ts +112 -100
- package/dist/typescript/charge.js +38 -38
- package/dist/typescript/common.d.ts +122 -0
- package/dist/typescript/common.js +11 -0
- package/dist/typescript/context.d.ts +16 -46
- package/dist/typescript/context.js +16 -15
- package/dist/typescript/customer.d.ts +6 -15
- package/dist/typescript/customer.js +21 -21
- package/dist/typescript/daily-balance.d.ts +5 -8
- package/dist/typescript/daily-balance.js +8 -8
- package/dist/typescript/document-verification.d.ts +18 -20
- package/dist/typescript/document-verification.js +14 -13
- package/dist/typescript/email.d.ts +2 -2
- package/dist/typescript/email.js +13 -13
- package/dist/typescript/expo-push.d.ts +2 -3
- package/dist/typescript/expo-push.js +8 -8
- package/dist/typescript/fee.d.ts +6 -7
- package/dist/typescript/fee.js +11 -11
- package/dist/typescript/location.d.ts +1 -1
- package/dist/typescript/location.js +8 -8
- package/dist/typescript/notification.d.ts +39 -48
- package/dist/typescript/notification.js +19 -18
- package/dist/typescript/order.d.ts +38 -36
- package/dist/typescript/order.js +18 -17
- package/dist/typescript/payable.d.ts +39 -40
- package/dist/typescript/payable.js +21 -20
- package/dist/typescript/payer.d.ts +1 -1
- package/dist/typescript/payer.js +8 -8
- package/dist/typescript/payment-calculator.d.ts +7 -60
- package/dist/typescript/payment-calculator.js +13 -12
- package/dist/typescript/payment-card.d.ts +25 -81
- package/dist/typescript/payment-card.js +9 -12
- package/dist/typescript/payment-gateway.d.ts +9 -19
- package/dist/typescript/payment-gateway.js +15 -14
- package/dist/typescript/payment-pix.d.ts +3 -78
- package/dist/typescript/payment-pix.js +10 -10
- package/dist/typescript/receipt.d.ts +20 -43
- package/dist/typescript/receipt.js +17 -16
- package/dist/typescript/recipient-payment-gateway.d.ts +14 -23
- package/dist/typescript/recipient-payment-gateway.js +14 -13
- package/dist/typescript/recipient.d.ts +18 -25
- package/dist/typescript/recipient.js +20 -19
- package/dist/typescript/role.d.ts +3 -9
- package/dist/typescript/role.js +14 -13
- package/dist/typescript/sms.d.ts +1 -1
- package/dist/typescript/sms.js +8 -8
- package/dist/typescript/tax.d.ts +38 -60
- package/dist/typescript/tax.js +20 -19
- package/dist/typescript/transfer.d.ts +38 -19
- package/dist/typescript/transfer.js +9 -8
- package/dist/typescript/two-factor.d.ts +7 -8
- package/dist/typescript/two-factor.js +14 -13
- package/dist/typescript/user.d.ts +16 -19
- package/dist/typescript/user.js +24 -24
- package/dist/typescript/wallet.d.ts +1 -1
- package/dist/typescript/wallet.js +8 -8
- package/package.json +4 -3
- package/src/protos/account-entry.proto +3 -15
- package/src/protos/admin-card-verification.proto +0 -2
- package/src/protos/administrator.proto +4 -11
- package/src/protos/bank-account.proto +4 -5
- package/src/protos/charge.proto +12 -47
- package/src/protos/common.proto +140 -0
- package/src/protos/context.proto +8 -49
- package/src/protos/customer.proto +5 -15
- package/src/protos/daily-balance.proto +3 -6
- package/src/protos/document-verification.proto +5 -6
- package/src/protos/expo-push.proto +3 -3
- package/src/protos/fee.proto +3 -3
- package/src/protos/notification.proto +4 -12
- package/src/protos/order.proto +6 -16
- package/src/protos/payment-calculator.proto +11 -87
- package/src/protos/payment-card.proto +7 -90
- package/src/protos/payment-gateway.proto +4 -14
- package/src/protos/payment-pix.proto +5 -95
- package/src/protos/receipt.proto +7 -44
- package/src/protos/recipient-payment-gateway.proto +5 -15
- package/src/protos/recipient.proto +4 -9
- package/src/protos/role.proto +6 -11
- package/src/protos/tax.proto +12 -41
- package/src/protos/user.proto +4 -9
|
@@ -1,40 +1,41 @@
|
|
|
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.
|
|
5
|
-
// protoc v6.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: recipient.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.RECIPIENT_SERVICE_NAME = exports.RECIPIENT_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.RecipientServiceControllerMethods = RecipientServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.RECIPIENT_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "recipient";
|
|
13
|
+
exports.RECIPIENT_PACKAGE_NAME = "recipient";
|
|
13
14
|
function RecipientServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
"createRecipient",
|
|
18
|
+
"updateRecipient",
|
|
19
|
+
"getRecipientById",
|
|
20
|
+
"getRecipientByCode",
|
|
21
|
+
"getRecipientNameById",
|
|
22
|
+
"getAllRecipients",
|
|
23
|
+
"getRecipientFees",
|
|
24
|
+
"getRecipientGateways",
|
|
25
|
+
"updateRecipientAvatar",
|
|
26
|
+
"getRecipientDetailsById",
|
|
27
|
+
"isAutomaticAnticipationEnabled",
|
|
28
|
+
"getExternalRecipientId",
|
|
28
29
|
];
|
|
29
30
|
for (const method of grpcMethods) {
|
|
30
31
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
31
|
-
(0, microservices_1.GrpcMethod)(
|
|
32
|
+
(0, microservices_1.GrpcMethod)("RecipientService", method)(constructor.prototype[method], method, descriptor);
|
|
32
33
|
}
|
|
33
34
|
const grpcStreamMethods = [];
|
|
34
35
|
for (const method of grpcStreamMethods) {
|
|
35
36
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
36
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
37
|
+
(0, microservices_1.GrpcStreamMethod)("RecipientService", method)(constructor.prototype[method], method, descriptor);
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
exports.RECIPIENT_SERVICE_NAME =
|
|
41
|
+
exports.RECIPIENT_SERVICE_NAME = "RecipientService";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Role } from "./common";
|
|
3
3
|
export declare const protobufPackage = "role";
|
|
4
4
|
export interface CreateRoleRequest {
|
|
5
5
|
code: string;
|
|
6
6
|
description: string;
|
|
7
|
-
permissions:
|
|
7
|
+
permissions: string[];
|
|
8
8
|
}
|
|
9
9
|
export interface DeleteRoleRequest {
|
|
10
10
|
id: string;
|
|
@@ -15,12 +15,6 @@ export interface DeleteRoleResponse {
|
|
|
15
15
|
export interface GetRoleByIdRequest {
|
|
16
16
|
id: string;
|
|
17
17
|
}
|
|
18
|
-
export interface Role {
|
|
19
|
-
id: string;
|
|
20
|
-
code: string;
|
|
21
|
-
description: string;
|
|
22
|
-
permissions: Permission[];
|
|
23
|
-
}
|
|
24
18
|
export interface GetAllRolesRequest {
|
|
25
19
|
}
|
|
26
20
|
export interface GetAllRolesResponse {
|
package/dist/typescript/role.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
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.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: role.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ROLE_SERVICE_NAME = exports.ROLE_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.RoleServiceControllerMethods = RoleServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.ROLE_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "role";
|
|
13
|
+
exports.ROLE_PACKAGE_NAME = "role";
|
|
13
14
|
function RoleServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
"createRole",
|
|
18
|
+
"deleteRole",
|
|
19
|
+
"getRoleById",
|
|
20
|
+
"getAllRoles",
|
|
21
|
+
"updateRole",
|
|
22
|
+
"getPermissionGroups",
|
|
22
23
|
];
|
|
23
24
|
for (const method of grpcMethods) {
|
|
24
25
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
25
|
-
(0, microservices_1.GrpcMethod)(
|
|
26
|
+
(0, microservices_1.GrpcMethod)("RoleService", method)(constructor.prototype[method], method, descriptor);
|
|
26
27
|
}
|
|
27
28
|
const grpcStreamMethods = [];
|
|
28
29
|
for (const method of grpcStreamMethods) {
|
|
29
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
30
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
31
|
+
(0, microservices_1.GrpcStreamMethod)("RoleService", method)(constructor.prototype[method], method, descriptor);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
exports.ROLE_SERVICE_NAME =
|
|
35
|
+
exports.ROLE_SERVICE_NAME = "RoleService";
|
package/dist/typescript/sms.d.ts
CHANGED
package/dist/typescript/sms.js
CHANGED
|
@@ -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.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: sms.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.SMS_SERVICE_NAME = exports.SMS_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.SmsServiceControllerMethods = SmsServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.SMS_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "sms";
|
|
13
|
+
exports.SMS_PACKAGE_NAME = "sms";
|
|
14
14
|
function SmsServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["sendSmsToVerify", "verifySmsCode"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("SmsService", 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)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("SmsService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.SMS_SERVICE_NAME =
|
|
28
|
+
exports.SMS_SERVICE_NAME = "SmsService";
|
package/dist/typescript/tax.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Address, Location, Meta, Payer } from "./common";
|
|
3
3
|
export declare const protobufPackage = "tax";
|
|
4
|
-
export interface Payer {
|
|
5
|
-
id?: string | undefined;
|
|
6
|
-
name: string;
|
|
7
|
-
document: string;
|
|
8
|
-
phone?: string | undefined;
|
|
9
|
-
}
|
|
10
4
|
export interface LocationDetailsDto {
|
|
11
5
|
document: string;
|
|
12
6
|
city: number;
|
|
@@ -15,8 +9,8 @@ export interface LocationDetailsDto {
|
|
|
15
9
|
}
|
|
16
10
|
export interface completeTax {
|
|
17
11
|
id: string;
|
|
18
|
-
type:
|
|
19
|
-
status:
|
|
12
|
+
type: string;
|
|
13
|
+
status: string;
|
|
20
14
|
description: string;
|
|
21
15
|
amount: number;
|
|
22
16
|
year: number;
|
|
@@ -25,48 +19,34 @@ export interface completeTax {
|
|
|
25
19
|
code: string;
|
|
26
20
|
isSingleQuota: boolean;
|
|
27
21
|
quota?: number | undefined;
|
|
22
|
+
discountAmount: number;
|
|
28
23
|
fee: number;
|
|
29
24
|
fine: number;
|
|
30
|
-
discountAmount: number;
|
|
31
25
|
}
|
|
32
26
|
export interface TaxPayload {
|
|
33
27
|
tax: completeTax | undefined;
|
|
34
28
|
payer: Payer | undefined;
|
|
35
29
|
location: Location | undefined;
|
|
36
|
-
metaType:
|
|
37
|
-
meta:
|
|
30
|
+
metaType: string;
|
|
31
|
+
meta: Meta | undefined;
|
|
38
32
|
}
|
|
39
33
|
export interface Tax {
|
|
40
34
|
id: string;
|
|
41
|
-
type:
|
|
35
|
+
type: string;
|
|
42
36
|
description: string;
|
|
43
37
|
year: number;
|
|
44
38
|
documentId: string;
|
|
45
39
|
}
|
|
46
|
-
export interface Location {
|
|
47
|
-
state: number;
|
|
48
|
-
city: number;
|
|
49
|
-
recipientId: string;
|
|
50
|
-
}
|
|
51
|
-
export interface Address {
|
|
52
|
-
street: string;
|
|
53
|
-
number: string;
|
|
54
|
-
complement: string;
|
|
55
|
-
neighborhood: string;
|
|
56
|
-
city: string;
|
|
57
|
-
state: string;
|
|
58
|
-
zipCode: string;
|
|
59
|
-
}
|
|
60
40
|
export interface Property {
|
|
61
41
|
documentId?: string | undefined;
|
|
62
42
|
address?: Address | undefined;
|
|
63
43
|
}
|
|
64
44
|
export interface TaxDetail {
|
|
65
|
-
tax:
|
|
66
|
-
payer:
|
|
45
|
+
tax: Tax | undefined;
|
|
46
|
+
payer: Payer | undefined;
|
|
67
47
|
location: Location | undefined;
|
|
68
|
-
metaType:
|
|
69
|
-
meta:
|
|
48
|
+
metaType: string;
|
|
49
|
+
meta: Meta | undefined;
|
|
70
50
|
items: TaxItem[];
|
|
71
51
|
}
|
|
72
52
|
export interface TaxItem {
|
|
@@ -76,7 +56,7 @@ export interface TaxItem {
|
|
|
76
56
|
dueAt: string;
|
|
77
57
|
amount: number;
|
|
78
58
|
isSingleQuota: boolean;
|
|
79
|
-
status:
|
|
59
|
+
status: string;
|
|
80
60
|
discountPercentage: number;
|
|
81
61
|
discountAmount: number;
|
|
82
62
|
fee: number;
|
|
@@ -85,14 +65,14 @@ export interface TaxItem {
|
|
|
85
65
|
export interface PropertyDetail {
|
|
86
66
|
property: Property | undefined;
|
|
87
67
|
payer: Payer | undefined;
|
|
88
|
-
taxTypes:
|
|
68
|
+
taxTypes: string[];
|
|
89
69
|
pendingTaxesAmount?: number | undefined;
|
|
90
70
|
paidTaxesAmount?: number | undefined;
|
|
91
71
|
overdueTaxesAmount?: number | undefined;
|
|
92
72
|
lastPaidTaxDate?: string | undefined;
|
|
93
73
|
nextDueDate?: string | undefined;
|
|
94
|
-
nearDueTaxesDates
|
|
95
|
-
overdueTaxesDates
|
|
74
|
+
nearDueTaxesDates: TaxDueDate[];
|
|
75
|
+
overdueTaxesDates: TaxDueDate[];
|
|
96
76
|
receiptId?: string | undefined;
|
|
97
77
|
}
|
|
98
78
|
export interface TaxDueDate {
|
|
@@ -108,7 +88,7 @@ export interface TaxByDocumentIdRequest {
|
|
|
108
88
|
}
|
|
109
89
|
export interface TaxByDocumentIdAndTypeRequest {
|
|
110
90
|
documentId: string;
|
|
111
|
-
type:
|
|
91
|
+
type: string;
|
|
112
92
|
}
|
|
113
93
|
export interface TaxByIdRequest {
|
|
114
94
|
id: string;
|
|
@@ -121,8 +101,8 @@ export interface TaxDetails {
|
|
|
121
101
|
}
|
|
122
102
|
export interface TaxEntity {
|
|
123
103
|
id: string;
|
|
124
|
-
type:
|
|
125
|
-
status:
|
|
104
|
+
type: string;
|
|
105
|
+
status: string;
|
|
126
106
|
description: string;
|
|
127
107
|
amount: number;
|
|
128
108
|
year: number;
|
|
@@ -138,39 +118,37 @@ export interface TaxEntity {
|
|
|
138
118
|
state: number;
|
|
139
119
|
city: number;
|
|
140
120
|
recipientId: string;
|
|
141
|
-
metaType:
|
|
142
|
-
meta?:
|
|
143
|
-
payer
|
|
144
|
-
orderItem
|
|
121
|
+
metaType: string;
|
|
122
|
+
meta?: Meta | undefined;
|
|
123
|
+
payer?: PayerEntity | undefined;
|
|
124
|
+
orderItem: OrderItemEntity | undefined;
|
|
145
125
|
receipt?: Receipt | undefined;
|
|
146
|
-
createdAt: Date;
|
|
147
|
-
updatedAt: Date;
|
|
148
126
|
}
|
|
149
127
|
export interface Charge {
|
|
150
128
|
id: string;
|
|
151
129
|
amount: number;
|
|
152
130
|
paymentMethod: string;
|
|
153
|
-
status:
|
|
131
|
+
status: string;
|
|
154
132
|
dueAt?: string | undefined;
|
|
155
133
|
txid?: string | undefined;
|
|
156
134
|
brcode?: string | undefined;
|
|
157
135
|
installmentNumber?: number | undefined;
|
|
158
136
|
installmentValue?: number | undefined;
|
|
159
|
-
createdAt:
|
|
137
|
+
createdAt: string;
|
|
160
138
|
}
|
|
161
139
|
export interface PayerEntity {
|
|
162
140
|
id: string;
|
|
163
141
|
name: string;
|
|
164
142
|
document: string;
|
|
165
143
|
phone: string;
|
|
166
|
-
taxes:
|
|
144
|
+
taxes: Tax[];
|
|
167
145
|
}
|
|
168
146
|
export interface Receipt {
|
|
169
147
|
id: string;
|
|
170
148
|
amount: number;
|
|
171
149
|
protocol: string;
|
|
172
150
|
txid?: string | undefined;
|
|
173
|
-
createdAt:
|
|
151
|
+
createdAt: string;
|
|
174
152
|
}
|
|
175
153
|
export interface OrderItemEntity {
|
|
176
154
|
id: string;
|
|
@@ -181,8 +159,8 @@ export interface OrderItemEntity {
|
|
|
181
159
|
export interface Order {
|
|
182
160
|
id: string;
|
|
183
161
|
totalAmount: number;
|
|
184
|
-
status:
|
|
185
|
-
createdAt:
|
|
162
|
+
status: string;
|
|
163
|
+
createdAt: string;
|
|
186
164
|
items: OrderItemEntity[];
|
|
187
165
|
charges: Charge[];
|
|
188
166
|
customer: Customer | undefined;
|
|
@@ -212,7 +190,7 @@ export interface UpdateTaxReceiptIdRequest {
|
|
|
212
190
|
}
|
|
213
191
|
export interface UpdateTaxStatusRequest {
|
|
214
192
|
id: string;
|
|
215
|
-
status:
|
|
193
|
+
status: string;
|
|
216
194
|
}
|
|
217
195
|
export interface GetAllTaxesRequest {
|
|
218
196
|
data?: GetAllTaxesDto | undefined;
|
|
@@ -221,30 +199,30 @@ export interface GetAllTaxesRequest {
|
|
|
221
199
|
}
|
|
222
200
|
export interface GetAllTaxesDto {
|
|
223
201
|
recipientId?: string | undefined;
|
|
224
|
-
types
|
|
225
|
-
statuses
|
|
202
|
+
types: string[];
|
|
203
|
+
statuses: string[];
|
|
226
204
|
}
|
|
227
205
|
export interface PaginationFilterDto {
|
|
228
206
|
limit?: number | undefined;
|
|
229
207
|
offset?: number | undefined;
|
|
230
208
|
}
|
|
231
209
|
export interface DateFilterDto {
|
|
232
|
-
startDate?:
|
|
233
|
-
endDate?:
|
|
210
|
+
startDate?: string | undefined;
|
|
211
|
+
endDate?: string | undefined;
|
|
234
212
|
}
|
|
235
213
|
export interface GetAllTaxesResponse {
|
|
236
214
|
taxes: TaxEntity[];
|
|
237
215
|
count: number;
|
|
238
216
|
}
|
|
239
217
|
export interface CompleteTaxDetailsResponse {
|
|
240
|
-
tax
|
|
218
|
+
tax: TaxEntity | undefined;
|
|
241
219
|
charge?: ChargeDetails | undefined;
|
|
242
220
|
}
|
|
243
221
|
export interface ChargeDetails {
|
|
244
222
|
id: string;
|
|
245
223
|
amount: number;
|
|
246
|
-
paymentMethod:
|
|
247
|
-
status:
|
|
224
|
+
paymentMethod: string;
|
|
225
|
+
status: string;
|
|
248
226
|
dueAt: string;
|
|
249
227
|
txid?: string | undefined;
|
|
250
228
|
brcode?: string | undefined;
|
|
@@ -255,7 +233,7 @@ export interface ChargeDetails {
|
|
|
255
233
|
feePercentage: number;
|
|
256
234
|
discountPercentage: number;
|
|
257
235
|
discountAmount: number;
|
|
258
|
-
createdAt:
|
|
236
|
+
createdAt: string;
|
|
259
237
|
gatewayId: string;
|
|
260
238
|
failureReason?: string | undefined;
|
|
261
239
|
failureDetails?: string | undefined;
|
package/dist/typescript/tax.js
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
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.
|
|
5
|
-
// protoc v6.33.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: tax.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.TAX_SERVICE_NAME = exports.TAX_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.TaxServiceControllerMethods = TaxServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.TAX_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "tax";
|
|
13
|
+
exports.TAX_PACKAGE_NAME = "tax";
|
|
13
14
|
function TaxServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
"createTax",
|
|
18
|
+
"getTaxesGroupedByPayerLocation",
|
|
19
|
+
"getTaxesGroupedByDocumentId",
|
|
20
|
+
"getTaxesByDocumentId",
|
|
21
|
+
"getTaxesByDocumentIdAndType",
|
|
22
|
+
"groupTaxesByDocumentId",
|
|
23
|
+
"getTaxDetailsById",
|
|
24
|
+
"getTaxDescription",
|
|
25
|
+
"updateTaxReceiptId",
|
|
26
|
+
"updateTaxStatus",
|
|
27
|
+
"getAllTaxes",
|
|
28
|
+
"getCompleteTaxDetailsById",
|
|
28
29
|
];
|
|
29
30
|
for (const method of grpcMethods) {
|
|
30
31
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
31
|
-
(0, microservices_1.GrpcMethod)(
|
|
32
|
+
(0, microservices_1.GrpcMethod)("TaxService", method)(constructor.prototype[method], method, descriptor);
|
|
32
33
|
}
|
|
33
34
|
const grpcStreamMethods = [];
|
|
34
35
|
for (const method of grpcStreamMethods) {
|
|
35
36
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
36
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
37
|
+
(0, microservices_1.GrpcStreamMethod)("TaxService", method)(constructor.prototype[method], method, descriptor);
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
exports.TAX_SERVICE_NAME =
|
|
41
|
+
exports.TAX_SERVICE_NAME = "TaxService";
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { Observable } from "rxjs";
|
|
3
2
|
export declare const protobufPackage = "transfer";
|
|
4
3
|
export interface UpdateTransferStatusRequest {
|
|
5
4
|
transferId: string;
|
|
6
|
-
status:
|
|
7
|
-
responsePayload
|
|
5
|
+
status: string;
|
|
6
|
+
responsePayload: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateTransferStatusRequest_ResponsePayloadEntry {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
8
13
|
}
|
|
9
14
|
export interface UpdateTransferStatusResponse {
|
|
10
15
|
success: boolean;
|
|
@@ -12,17 +17,30 @@ export interface UpdateTransferStatusResponse {
|
|
|
12
17
|
export interface Transfer {
|
|
13
18
|
id: string;
|
|
14
19
|
amount: number;
|
|
20
|
+
type: string;
|
|
15
21
|
recipientId: string;
|
|
16
22
|
chargeId: string;
|
|
17
23
|
description: string;
|
|
18
|
-
status:
|
|
24
|
+
status: string;
|
|
19
25
|
processedAt: string;
|
|
20
|
-
gatewayId:
|
|
26
|
+
gatewayId: string;
|
|
21
27
|
bankAccountId: string;
|
|
22
|
-
requestPayload:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
requestPayload: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
responsePayload: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
}
|
|
37
|
+
export interface Transfer_RequestPayloadEntry {
|
|
38
|
+
key: string;
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
41
|
+
export interface Transfer_ResponsePayloadEntry {
|
|
42
|
+
key: string;
|
|
43
|
+
value: string;
|
|
26
44
|
}
|
|
27
45
|
export interface BankAccount {
|
|
28
46
|
id: string;
|
|
@@ -36,8 +54,8 @@ export interface BankAccount {
|
|
|
36
54
|
balance: number;
|
|
37
55
|
transfers: string[];
|
|
38
56
|
isMain: boolean;
|
|
39
|
-
createdAt:
|
|
40
|
-
updatedAt:
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
41
59
|
}
|
|
42
60
|
export interface Recipient {
|
|
43
61
|
id: string;
|
|
@@ -56,10 +74,11 @@ export interface Recipient {
|
|
|
56
74
|
avatarUrl: string;
|
|
57
75
|
isActive: boolean;
|
|
58
76
|
providerStatus: string;
|
|
77
|
+
administrators: string[];
|
|
59
78
|
payableIds: string[];
|
|
60
79
|
addressId: string;
|
|
61
|
-
createdAt:
|
|
62
|
-
updatedAt:
|
|
80
|
+
createdAt: string;
|
|
81
|
+
updatedAt: string;
|
|
63
82
|
}
|
|
64
83
|
export interface Charge {
|
|
65
84
|
id: string;
|
|
@@ -80,8 +99,8 @@ export interface Charge {
|
|
|
80
99
|
isScheduled: boolean;
|
|
81
100
|
discountPercentage: number;
|
|
82
101
|
discountAmount: number;
|
|
83
|
-
createdAt:
|
|
84
|
-
gatewayId:
|
|
102
|
+
createdAt: string;
|
|
103
|
+
gatewayId: string;
|
|
85
104
|
cardId: string;
|
|
86
105
|
orderId: string;
|
|
87
106
|
orderScheduleId: string;
|
|
@@ -97,7 +116,7 @@ export interface Payable {
|
|
|
97
116
|
dueAt: string;
|
|
98
117
|
isAnticipated: boolean;
|
|
99
118
|
processedAt: string;
|
|
100
|
-
createdAt:
|
|
119
|
+
createdAt: string;
|
|
101
120
|
chargeId: string;
|
|
102
121
|
recipientId: string;
|
|
103
122
|
}
|
|
@@ -107,7 +126,7 @@ export interface BankTransferData {
|
|
|
107
126
|
chargeId: string;
|
|
108
127
|
recipient: Recipient | undefined;
|
|
109
128
|
routingKey: string;
|
|
110
|
-
gatewayId:
|
|
129
|
+
gatewayId: string;
|
|
111
130
|
payables: Payable[];
|
|
112
131
|
bankAccountId: string;
|
|
113
132
|
}
|
|
@@ -162,7 +181,7 @@ export interface RoutingInfoRequest {
|
|
|
162
181
|
operationType: string;
|
|
163
182
|
}
|
|
164
183
|
export interface RoutingInfoResponse {
|
|
165
|
-
gatewayId:
|
|
184
|
+
gatewayId: string;
|
|
166
185
|
pixKey: string;
|
|
167
186
|
routingKey: string;
|
|
168
187
|
}
|
|
@@ -1,27 +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.
|
|
5
|
-
// protoc v6.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: transfer.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.TRANSFER_SERVICE_NAME = exports.TRANSFER_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.TransferServiceControllerMethods = TransferServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.TRANSFER_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "transfer";
|
|
13
|
+
exports.TRANSFER_PACKAGE_NAME = "transfer";
|
|
13
14
|
function TransferServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["updateTransferStatus"];
|
|
16
17
|
for (const method of grpcMethods) {
|
|
17
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
18
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("TransferService", method)(constructor.prototype[method], method, descriptor);
|
|
19
20
|
}
|
|
20
21
|
const grpcStreamMethods = [];
|
|
21
22
|
for (const method of grpcStreamMethods) {
|
|
22
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
23
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("TransferService", method)(constructor.prototype[method], method, descriptor);
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
|
-
exports.TRANSFER_SERVICE_NAME =
|
|
28
|
+
exports.TRANSFER_SERVICE_NAME = "TransferService";
|