@postpaybr/protos 1.1.11 → 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 +3 -2
- 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,14 +1,7 @@
|
|
|
1
|
-
import { brandType, ChargeMetadata, ChargeStatus, ChargeSummaryStatus, ChargeType, FailureReason, GatewayIdentification,
|
|
2
|
-
import { Observable } from
|
|
1
|
+
import { brandType, ChargeMetadata, ChargeStatus, ChargeSummaryStatus, ChargeType, FailureReason, GatewayIdentification, OrderType, PayableStatus, PaymentMethods, TaxTypes } from "@postpaybr/contracts/types";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { ChargeScheduleDetail, DateFilter, Location, Meta, PaginationFilter } from "./common";
|
|
3
4
|
export declare const protobufPackage = "charge";
|
|
4
|
-
export interface DateFilter {
|
|
5
|
-
startDate?: Date | undefined;
|
|
6
|
-
endDate?: Date | undefined;
|
|
7
|
-
}
|
|
8
|
-
export interface PaginationFilter {
|
|
9
|
-
limit?: number | undefined;
|
|
10
|
-
offset?: number | undefined;
|
|
11
|
-
}
|
|
12
5
|
export interface Charge {
|
|
13
6
|
id: string;
|
|
14
7
|
amount: number;
|
|
@@ -26,25 +19,28 @@ export interface Charge {
|
|
|
26
19
|
isScheduled: boolean;
|
|
27
20
|
discountPercentage: number;
|
|
28
21
|
discountAmount: number;
|
|
29
|
-
createdAt:
|
|
22
|
+
createdAt: string;
|
|
30
23
|
gatewayId: GatewayIdentification;
|
|
31
24
|
cardId: string;
|
|
32
25
|
orderId: string;
|
|
33
26
|
orderScheduleId: string;
|
|
34
27
|
payableIds: string[];
|
|
35
|
-
taxId?: string;
|
|
36
|
-
|
|
37
|
-
chargeSchedule?: ChargeSchedule | undefined;
|
|
28
|
+
taxId?: string | undefined;
|
|
29
|
+
chargeSchedule: ChargeSchedule | undefined;
|
|
38
30
|
endToEndId: string;
|
|
39
31
|
type: ChargeType;
|
|
40
32
|
metadata: ChargeMetadata | undefined;
|
|
41
33
|
}
|
|
34
|
+
export interface Charge_MetadataEntry {
|
|
35
|
+
key: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}
|
|
42
38
|
export interface ChargeSchedule {
|
|
43
39
|
id: string;
|
|
44
|
-
executionDate:
|
|
40
|
+
executionDate: string;
|
|
45
41
|
isExecuted: boolean;
|
|
46
|
-
createdAt:
|
|
47
|
-
updatedAt:
|
|
42
|
+
createdAt: string;
|
|
43
|
+
updatedAt: string;
|
|
48
44
|
charge: Charge | undefined;
|
|
49
45
|
}
|
|
50
46
|
export interface CreateChargeRequest {
|
|
@@ -57,7 +53,7 @@ export interface CreateChargeRequest {
|
|
|
57
53
|
baseFee: number;
|
|
58
54
|
feePercentage: number;
|
|
59
55
|
fee: number;
|
|
60
|
-
taxId?: string;
|
|
56
|
+
taxId?: string | undefined;
|
|
61
57
|
discountPercentage: number;
|
|
62
58
|
discountAmount: number;
|
|
63
59
|
cardId: string;
|
|
@@ -69,28 +65,32 @@ export interface CreateChargeRequest {
|
|
|
69
65
|
}
|
|
70
66
|
export interface UpdateChargeRequest {
|
|
71
67
|
id: string;
|
|
72
|
-
amount?: number;
|
|
73
|
-
paymentMethod?: PaymentMethods;
|
|
74
|
-
status?: ChargeStatus;
|
|
75
|
-
pushToken?: string;
|
|
76
|
-
txid?: string;
|
|
77
|
-
brcode?: string;
|
|
78
|
-
endToEndId?: string;
|
|
79
|
-
metadata
|
|
80
|
-
orderId?: string;
|
|
81
|
-
gatewayId?:
|
|
82
|
-
installmentNumber?: number;
|
|
83
|
-
installmentValue?: number;
|
|
84
|
-
cardId?: string;
|
|
85
|
-
fee?: number;
|
|
86
|
-
baseFee?: number;
|
|
87
|
-
feePercentage?: number;
|
|
88
|
-
discountPercentage?: number;
|
|
89
|
-
discountAmount?: number;
|
|
90
|
-
taxId?: string;
|
|
91
|
-
dueAt?: string;
|
|
92
|
-
orderType?:
|
|
93
|
-
isRetry?: boolean;
|
|
68
|
+
amount?: number | undefined;
|
|
69
|
+
paymentMethod?: PaymentMethods | undefined;
|
|
70
|
+
status?: ChargeStatus | undefined;
|
|
71
|
+
pushToken?: string | undefined;
|
|
72
|
+
txid?: string | undefined;
|
|
73
|
+
brcode?: string | undefined;
|
|
74
|
+
endToEndId?: string | undefined;
|
|
75
|
+
metadata: ChargeMetadata | undefined;
|
|
76
|
+
orderId?: string | undefined;
|
|
77
|
+
gatewayId?: GatewayIdentification | undefined;
|
|
78
|
+
installmentNumber?: number | undefined;
|
|
79
|
+
installmentValue?: number | undefined;
|
|
80
|
+
cardId?: string | undefined;
|
|
81
|
+
fee?: number | undefined;
|
|
82
|
+
baseFee?: number | undefined;
|
|
83
|
+
feePercentage?: number | undefined;
|
|
84
|
+
discountPercentage?: number | undefined;
|
|
85
|
+
discountAmount?: number | undefined;
|
|
86
|
+
taxId?: string | undefined;
|
|
87
|
+
dueAt?: string | undefined;
|
|
88
|
+
orderType?: OrderType | undefined;
|
|
89
|
+
isRetry?: boolean | undefined;
|
|
90
|
+
}
|
|
91
|
+
export interface UpdateChargeRequest_MetadataEntry {
|
|
92
|
+
key: string;
|
|
93
|
+
value: string;
|
|
94
94
|
}
|
|
95
95
|
export interface GetChargeByIdRequest {
|
|
96
96
|
id: string;
|
|
@@ -98,12 +98,12 @@ export interface GetChargeByIdRequest {
|
|
|
98
98
|
export interface GetAllChargesRequest {
|
|
99
99
|
pageIndex?: number | undefined;
|
|
100
100
|
pageSize?: number | undefined;
|
|
101
|
-
statuses
|
|
101
|
+
statuses: string[];
|
|
102
102
|
globalFilter?: string | undefined;
|
|
103
|
-
startDate?:
|
|
104
|
-
endDate?:
|
|
103
|
+
startDate?: string | undefined;
|
|
104
|
+
endDate?: string | undefined;
|
|
105
105
|
recipientId?: string | undefined;
|
|
106
|
-
gatewayIds
|
|
106
|
+
gatewayIds: string[];
|
|
107
107
|
isScheduled?: boolean | undefined;
|
|
108
108
|
}
|
|
109
109
|
export interface GetAllChargesResponse {
|
|
@@ -130,12 +130,13 @@ export interface ScheduledChargeDetailResponse {
|
|
|
130
130
|
export interface ScheduledChargeDetail {
|
|
131
131
|
id: string;
|
|
132
132
|
amount: number;
|
|
133
|
-
method:
|
|
133
|
+
method: PaymentMethods;
|
|
134
134
|
status: ChargeStatus;
|
|
135
135
|
dueAt: string;
|
|
136
|
-
createdAt:
|
|
136
|
+
createdAt: string;
|
|
137
137
|
executionDate: string;
|
|
138
138
|
fee: number;
|
|
139
|
+
tax?: Tax | undefined;
|
|
139
140
|
card?: CardDetails | undefined;
|
|
140
141
|
}
|
|
141
142
|
export interface CardDetails {
|
|
@@ -149,33 +150,51 @@ export interface getLiquidatedChargesForTransferRequest {
|
|
|
149
150
|
export interface getLiquidatedChargesForTransferResponse {
|
|
150
151
|
charges: Charge[];
|
|
151
152
|
}
|
|
152
|
-
export interface
|
|
153
|
+
export interface getChargeAdministratorDetailsResponse {
|
|
153
154
|
id: string;
|
|
154
155
|
customer: string;
|
|
155
156
|
status: ChargeStatus;
|
|
156
|
-
createdAt:
|
|
157
|
+
createdAt: string;
|
|
157
158
|
amount: number;
|
|
158
159
|
dueAt: string;
|
|
159
160
|
paymentMethod: PaymentMethods;
|
|
161
|
+
fee: number;
|
|
162
|
+
baseFee: number;
|
|
163
|
+
feePercentage: number;
|
|
164
|
+
installmentNumber: number;
|
|
165
|
+
installmentValue: number;
|
|
166
|
+
discountPercentage: number;
|
|
167
|
+
discountAmount: number;
|
|
168
|
+
txid: string;
|
|
169
|
+
gatewayId: GatewayIdentification;
|
|
170
|
+
cardId?: string | undefined;
|
|
171
|
+
orderId?: string | undefined;
|
|
172
|
+
orderScheduleId?: string | undefined;
|
|
173
|
+
metadata: ChargeMetadata | undefined;
|
|
174
|
+
failureReason?: FailureReason | undefined;
|
|
175
|
+
failureDetails?: string | undefined;
|
|
176
|
+
splits: ChargeSplit[];
|
|
177
|
+
tax?: TaxPayload | undefined;
|
|
178
|
+
schedule?: ChargeScheduleDetail | undefined;
|
|
160
179
|
}
|
|
161
|
-
export interface
|
|
162
|
-
|
|
163
|
-
|
|
180
|
+
export interface getChargeAdministratorDetailsResponse_MetadataEntry {
|
|
181
|
+
key: string;
|
|
182
|
+
value: string;
|
|
164
183
|
}
|
|
165
184
|
export interface ChargeSplit {
|
|
166
|
-
id: string;
|
|
167
185
|
recipientAccount: string;
|
|
168
186
|
amount: number;
|
|
169
187
|
status: PayableStatus;
|
|
170
188
|
installment: number;
|
|
171
189
|
dueAt: string;
|
|
172
190
|
isAnticipated: boolean;
|
|
173
|
-
processedAt:
|
|
191
|
+
processedAt: string;
|
|
192
|
+
id: string;
|
|
174
193
|
}
|
|
175
194
|
export interface Tax {
|
|
176
195
|
id: string;
|
|
177
196
|
type: string;
|
|
178
|
-
status:
|
|
197
|
+
status: string;
|
|
179
198
|
description: string;
|
|
180
199
|
amount: number;
|
|
181
200
|
year: number;
|
|
@@ -192,11 +211,31 @@ export interface Tax {
|
|
|
192
211
|
city: number;
|
|
193
212
|
recipientId: string;
|
|
194
213
|
metaType: string;
|
|
195
|
-
meta:
|
|
214
|
+
meta: Meta | undefined;
|
|
196
215
|
payer: Payer | undefined;
|
|
197
216
|
orderItem: OrderItemEntity | undefined;
|
|
198
217
|
receipt?: Receipt | undefined;
|
|
199
218
|
}
|
|
219
|
+
export interface completeTax {
|
|
220
|
+
id: string;
|
|
221
|
+
type: string;
|
|
222
|
+
status: string;
|
|
223
|
+
description: string;
|
|
224
|
+
amount: number;
|
|
225
|
+
year: number;
|
|
226
|
+
dueAt: string;
|
|
227
|
+
documentId: string;
|
|
228
|
+
code: string;
|
|
229
|
+
isSingleQuota: boolean;
|
|
230
|
+
quota?: number | undefined;
|
|
231
|
+
}
|
|
232
|
+
export interface TaxPayload {
|
|
233
|
+
tax: completeTax | undefined;
|
|
234
|
+
payer: Payer | undefined;
|
|
235
|
+
location: Location | undefined;
|
|
236
|
+
metaType: string;
|
|
237
|
+
meta: Meta | undefined;
|
|
238
|
+
}
|
|
200
239
|
export interface Payer {
|
|
201
240
|
id: string;
|
|
202
241
|
name: string;
|
|
@@ -207,8 +246,8 @@ export interface Payer {
|
|
|
207
246
|
export interface Order {
|
|
208
247
|
id: string;
|
|
209
248
|
totalAmount: number;
|
|
210
|
-
status:
|
|
211
|
-
createdAt:
|
|
249
|
+
status: string;
|
|
250
|
+
createdAt: string;
|
|
212
251
|
items: OrderItemEntity[];
|
|
213
252
|
charges: Charge[];
|
|
214
253
|
customer: Customer | undefined;
|
|
@@ -224,7 +263,7 @@ export interface Receipt {
|
|
|
224
263
|
amount: number;
|
|
225
264
|
protocol: string;
|
|
226
265
|
transactionId?: string | undefined;
|
|
227
|
-
createdAt:
|
|
266
|
+
createdAt: string;
|
|
228
267
|
}
|
|
229
268
|
export interface Customer {
|
|
230
269
|
id: string;
|
|
@@ -297,7 +336,7 @@ export interface AddPayableToChargeRequest {
|
|
|
297
336
|
export interface ChargeClientDetailsResponse {
|
|
298
337
|
id: string;
|
|
299
338
|
status: ChargeStatus;
|
|
300
|
-
createdAt:
|
|
339
|
+
createdAt: string;
|
|
301
340
|
amount: number;
|
|
302
341
|
dueAt: string;
|
|
303
342
|
paymentMethod: PaymentMethods;
|
|
@@ -324,7 +363,7 @@ export interface GetChargesHistoryRequest {
|
|
|
324
363
|
}
|
|
325
364
|
export interface ChargeHistoryFilter {
|
|
326
365
|
customerId: string;
|
|
327
|
-
status:
|
|
366
|
+
status: string;
|
|
328
367
|
}
|
|
329
368
|
export interface GetChargesHistoryResponse {
|
|
330
369
|
charges: ChargeCardItem[];
|
|
@@ -332,7 +371,7 @@ export interface GetChargesHistoryResponse {
|
|
|
332
371
|
}
|
|
333
372
|
export interface ChargeCardItem {
|
|
334
373
|
id: string;
|
|
335
|
-
createdAt:
|
|
374
|
+
createdAt: string;
|
|
336
375
|
paymentMethod: PaymentMethods;
|
|
337
376
|
propertyDocument: string;
|
|
338
377
|
propertyDetail: string;
|
|
@@ -340,34 +379,7 @@ export interface ChargeCardItem {
|
|
|
340
379
|
installmentValue: number;
|
|
341
380
|
schedule?: ChargeScheduleDetail | undefined;
|
|
342
381
|
taxType: TaxTypes;
|
|
343
|
-
status:
|
|
344
|
-
}
|
|
345
|
-
export interface getChargeAdministratorDetailsResponse {
|
|
346
|
-
id: string;
|
|
347
|
-
customer: string;
|
|
348
|
-
status: ChargeStatus;
|
|
349
|
-
createdAt: Date;
|
|
350
|
-
amount: number;
|
|
351
|
-
dueAt: string;
|
|
352
|
-
paymentMethod: PaymentMethods;
|
|
353
|
-
fee: number;
|
|
354
|
-
baseFee: number;
|
|
355
|
-
feePercentage: number;
|
|
356
|
-
installmentNumber: number;
|
|
357
|
-
installmentValue: number;
|
|
358
|
-
discountPercentage: number;
|
|
359
|
-
discountAmount: number;
|
|
360
|
-
txid: string;
|
|
361
|
-
gatewayId: GatewayIdentification;
|
|
362
|
-
cardId?: string | undefined;
|
|
363
|
-
orderId?: string | undefined;
|
|
364
|
-
orderScheduleId?: string | undefined;
|
|
365
|
-
metadata: ChargeMetadata;
|
|
366
|
-
failureReason?: FailureReason | undefined;
|
|
367
|
-
failureDetails?: string | undefined;
|
|
368
|
-
splits: ChargeSplit[];
|
|
369
|
-
tax?: TaxPayload | undefined;
|
|
370
|
-
schedule?: ChargeScheduleDetail | undefined;
|
|
382
|
+
status: ChargeSummaryStatus;
|
|
371
383
|
}
|
|
372
384
|
export interface GetLastChargesRequest {
|
|
373
385
|
customerId: string;
|
|
@@ -383,8 +395,8 @@ export interface GetChargeRecipientIdResponse {
|
|
|
383
395
|
}
|
|
384
396
|
export interface GetChargesTimelineRequest {
|
|
385
397
|
recipientId?: string | undefined;
|
|
386
|
-
startDate?:
|
|
387
|
-
endDate?:
|
|
398
|
+
startDate?: string | undefined;
|
|
399
|
+
endDate?: string | undefined;
|
|
388
400
|
}
|
|
389
401
|
export interface TimelineDataPoint {
|
|
390
402
|
date: string;
|
|
@@ -403,10 +415,10 @@ export interface GetChargesTimelineResponse {
|
|
|
403
415
|
}
|
|
404
416
|
export interface GetChargesComparisonTimelineRequest {
|
|
405
417
|
recipientId?: string | undefined;
|
|
406
|
-
primaryPeriodStart?:
|
|
407
|
-
primaryPeriodEnd?:
|
|
408
|
-
secondaryPeriodStart?:
|
|
409
|
-
secondaryPeriodEnd?:
|
|
418
|
+
primaryPeriodStart?: string | undefined;
|
|
419
|
+
primaryPeriodEnd?: string | undefined;
|
|
420
|
+
secondaryPeriodStart?: string | undefined;
|
|
421
|
+
secondaryPeriodEnd?: string | undefined;
|
|
410
422
|
}
|
|
411
423
|
export interface ChargeComparisonTimeline {
|
|
412
424
|
primary: ComparisonDataPoint[];
|
|
@@ -417,8 +429,8 @@ export interface GetChargesComparisonTimelineResponse {
|
|
|
417
429
|
}
|
|
418
430
|
export interface getLiquidTotalAmountRequest {
|
|
419
431
|
recipientId: string;
|
|
420
|
-
startDate?:
|
|
421
|
-
endDate?:
|
|
432
|
+
startDate?: string | undefined;
|
|
433
|
+
endDate?: string | undefined;
|
|
422
434
|
}
|
|
423
435
|
export interface getLiquidTotalAmountResponse {
|
|
424
436
|
total: number;
|
|
@@ -441,7 +453,7 @@ export interface ChargesBatchResponse {
|
|
|
441
453
|
}
|
|
442
454
|
export interface GetOrderPaymentSummaryRequest {
|
|
443
455
|
orderId: string;
|
|
444
|
-
orderType:
|
|
456
|
+
orderType: string;
|
|
445
457
|
customerId: string;
|
|
446
458
|
}
|
|
447
459
|
export interface GetOrderPaymentSummaryResponse {
|
|
@@ -453,7 +465,7 @@ export interface GetOrderPaymentSummaryResponse {
|
|
|
453
465
|
}
|
|
454
466
|
export interface IndividualPayment {
|
|
455
467
|
id: string;
|
|
456
|
-
createdAt:
|
|
468
|
+
createdAt: string;
|
|
457
469
|
paymentMethod: string;
|
|
458
470
|
propertyDocument: string;
|
|
459
471
|
propertyDetail: string;
|
|
@@ -464,7 +476,7 @@ export interface IndividualPayment {
|
|
|
464
476
|
taxType: string;
|
|
465
477
|
}
|
|
466
478
|
export interface PaymentSchedule {
|
|
467
|
-
executionDate:
|
|
479
|
+
executionDate: string;
|
|
468
480
|
isExecuted: boolean;
|
|
469
481
|
}
|
|
470
482
|
export declare const CHARGE_PACKAGE_NAME = "charge";
|
|
@@ -1,59 +1,59 @@
|
|
|
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: charge.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.CHARGE_SERVICE_NAME = exports.CHARGE_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.ChargeServiceControllerMethods = ChargeServiceControllerMethods;
|
|
10
10
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.CHARGE_PACKAGE_NAME =
|
|
11
|
+
exports.protobufPackage = "charge";
|
|
12
|
+
exports.CHARGE_PACKAGE_NAME = "charge";
|
|
13
13
|
function ChargeServiceControllerMethods() {
|
|
14
14
|
return function (constructor) {
|
|
15
15
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
16
|
+
"createCharge",
|
|
17
|
+
"updateCharge",
|
|
18
|
+
"getChargeById",
|
|
19
|
+
"getChargeAdministratorDetails",
|
|
20
|
+
"getAllCharges",
|
|
21
|
+
"getChargesByOrderId",
|
|
22
|
+
"getChargeByTxid",
|
|
23
|
+
"getScheduledChargeDetail",
|
|
24
|
+
"getLiquidatedChargesForTransfer",
|
|
25
|
+
"forceConfirm",
|
|
26
|
+
"forceDueDate",
|
|
27
|
+
"getChargeCustomerName",
|
|
28
|
+
"getConfirmedChargesByIds",
|
|
29
|
+
"cancelScheduledCharge",
|
|
30
|
+
"createVerificationCardCharge",
|
|
31
|
+
"cancelChargeByTxid",
|
|
32
|
+
"forceLiquidation",
|
|
33
|
+
"addPayableToCharge",
|
|
34
|
+
"getChargeClientDetails",
|
|
35
|
+
"getChargesHistory",
|
|
36
|
+
"getLastChargesByCustomerId",
|
|
37
|
+
"cancelChargeById",
|
|
38
|
+
"getChargeRecipientId",
|
|
39
|
+
"getChargesTimeline",
|
|
40
|
+
"getChargesComparisonTimeline",
|
|
41
|
+
"getLiquidTotalAmount",
|
|
42
|
+
"confirmCharges",
|
|
43
|
+
"forceChargesDueDate",
|
|
44
|
+
"forceChargesLiquidation",
|
|
45
|
+
"cancelCharges",
|
|
46
|
+
"getOrderPaymentSummary",
|
|
47
47
|
];
|
|
48
48
|
for (const method of grpcMethods) {
|
|
49
49
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
50
|
-
(0, microservices_1.GrpcMethod)(
|
|
50
|
+
(0, microservices_1.GrpcMethod)("ChargeService", method)(constructor.prototype[method], method, descriptor);
|
|
51
51
|
}
|
|
52
52
|
const grpcStreamMethods = [];
|
|
53
53
|
for (const method of grpcStreamMethods) {
|
|
54
54
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
55
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
55
|
+
(0, microservices_1.GrpcStreamMethod)("ChargeService", method)(constructor.prototype[method], method, descriptor);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
exports.CHARGE_SERVICE_NAME =
|
|
59
|
+
exports.CHARGE_SERVICE_NAME = "ChargeService";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export declare const protobufPackage = "common";
|
|
2
|
+
export interface Void {
|
|
3
|
+
}
|
|
4
|
+
export interface Empty {
|
|
5
|
+
}
|
|
6
|
+
export interface TableFilterParams {
|
|
7
|
+
pageIndex?: number | undefined;
|
|
8
|
+
pageSize?: number | undefined;
|
|
9
|
+
statuses: string[];
|
|
10
|
+
globalFilter?: string | undefined;
|
|
11
|
+
startDate?: string | undefined;
|
|
12
|
+
endDate?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface DailyBalance {
|
|
15
|
+
date: string;
|
|
16
|
+
balance: number;
|
|
17
|
+
}
|
|
18
|
+
export interface DateFilter {
|
|
19
|
+
startDate?: string | undefined;
|
|
20
|
+
endDate?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface PaginationFilter {
|
|
23
|
+
limit?: number | undefined;
|
|
24
|
+
offset?: number | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface Role {
|
|
27
|
+
id: string;
|
|
28
|
+
code: string;
|
|
29
|
+
description: string;
|
|
30
|
+
permissions: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface Address {
|
|
33
|
+
street: string;
|
|
34
|
+
number: string;
|
|
35
|
+
complement: string;
|
|
36
|
+
neighborhood: string;
|
|
37
|
+
city: string;
|
|
38
|
+
state: string;
|
|
39
|
+
zipCode: string;
|
|
40
|
+
}
|
|
41
|
+
export interface Location {
|
|
42
|
+
state: number;
|
|
43
|
+
city: number;
|
|
44
|
+
recipientId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface Payer {
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
name: string;
|
|
49
|
+
document: string;
|
|
50
|
+
phone?: string | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface Tax {
|
|
53
|
+
id: string;
|
|
54
|
+
type: string;
|
|
55
|
+
status: string;
|
|
56
|
+
description: string;
|
|
57
|
+
amount: number;
|
|
58
|
+
year: number;
|
|
59
|
+
dueAt: string;
|
|
60
|
+
documentId: string;
|
|
61
|
+
code: string;
|
|
62
|
+
isSingleQuota: boolean;
|
|
63
|
+
quota?: number | undefined;
|
|
64
|
+
discountAmount: number;
|
|
65
|
+
fee: number;
|
|
66
|
+
fine: number;
|
|
67
|
+
}
|
|
68
|
+
export interface Meta {
|
|
69
|
+
address?: Address | undefined;
|
|
70
|
+
licensePlate?: string | undefined;
|
|
71
|
+
model?: string | undefined;
|
|
72
|
+
yearManufacture?: number | undefined;
|
|
73
|
+
renavam?: string | undefined;
|
|
74
|
+
}
|
|
75
|
+
export interface PaymentSchedule {
|
|
76
|
+
type: string;
|
|
77
|
+
date?: string | undefined;
|
|
78
|
+
}
|
|
79
|
+
export interface Card {
|
|
80
|
+
id: string;
|
|
81
|
+
shadowNumber: string;
|
|
82
|
+
brand: string;
|
|
83
|
+
installments?: number | undefined;
|
|
84
|
+
installmentValue?: number | undefined;
|
|
85
|
+
}
|
|
86
|
+
export interface PaymentDetails {
|
|
87
|
+
method: string;
|
|
88
|
+
amount: number;
|
|
89
|
+
discountPercentage?: number | undefined;
|
|
90
|
+
fee: number;
|
|
91
|
+
discountAmount?: number | undefined;
|
|
92
|
+
gatewayId?: string | undefined;
|
|
93
|
+
card?: Card | undefined;
|
|
94
|
+
paymentSchedule: PaymentSchedule | undefined;
|
|
95
|
+
baseFee: number;
|
|
96
|
+
feePercentage: number;
|
|
97
|
+
chargeId?: string | undefined;
|
|
98
|
+
isRetry?: boolean | undefined;
|
|
99
|
+
orderId?: string | undefined;
|
|
100
|
+
}
|
|
101
|
+
export interface TaxPayload {
|
|
102
|
+
tax: Tax | undefined;
|
|
103
|
+
payer: Payer | undefined;
|
|
104
|
+
location: Location | undefined;
|
|
105
|
+
metaType: string;
|
|
106
|
+
meta: Meta | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface ChargeScheduleDetail {
|
|
109
|
+
executionDate: string;
|
|
110
|
+
isExecuted: boolean;
|
|
111
|
+
}
|
|
112
|
+
export interface Order {
|
|
113
|
+
id: string;
|
|
114
|
+
totalAmount: number;
|
|
115
|
+
status: string;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
}
|
|
118
|
+
export interface ImageData {
|
|
119
|
+
mimetype: string;
|
|
120
|
+
buffer: Uint8Array;
|
|
121
|
+
}
|
|
122
|
+
export declare const COMMON_PACKAGE_NAME = "common";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
|
+
// source: common.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.COMMON_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
exports.protobufPackage = "common";
|
|
11
|
+
exports.COMMON_PACKAGE_NAME = "common";
|