@postpaybr/contracts 1.0.2 → 1.0.3
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/enums/account-entry.enum.d.ts +5 -0
- package/dist/enums/account-entry.enum.d.ts.map +1 -0
- package/dist/enums/account-entry.enum.js +5 -0
- package/dist/enums/anticipation.enum.d.ts +8 -0
- package/dist/enums/anticipation.enum.d.ts.map +1 -0
- package/dist/enums/anticipation.enum.js +8 -0
- package/dist/enums/bank-account.enum.d.ts +10 -0
- package/dist/enums/bank-account.enum.d.ts.map +1 -0
- package/dist/enums/bank-account.enum.js +9 -0
- package/dist/enums/charge-status.enum.d.ts +24 -0
- package/dist/enums/charge-status.enum.d.ts.map +1 -0
- package/dist/enums/charge-status.enum.js +25 -0
- package/dist/enums/customer.enum.d.ts +37 -0
- package/dist/enums/customer.enum.d.ts.map +1 -0
- package/dist/enums/customer.enum.js +41 -0
- package/dist/enums/email.enum.d.ts +12 -0
- package/dist/enums/email.enum.d.ts.map +1 -0
- package/dist/enums/email.enum.js +12 -0
- package/dist/enums/failure-reason.enum.d.ts +8 -0
- package/dist/enums/failure-reason.enum.d.ts.map +1 -0
- package/dist/enums/failure-reason.enum.js +8 -0
- package/dist/enums/gateway-identification.enum.d.ts +8 -0
- package/dist/enums/gateway-identification.enum.d.ts.map +1 -0
- package/dist/enums/gateway-identification.enum.js +8 -0
- package/dist/enums/index.d.ts +17 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/enums/notification.enum.d.ts +14 -0
- package/dist/enums/notification.enum.d.ts.map +1 -0
- package/dist/enums/notification.enum.js +15 -0
- package/dist/enums/orders-status.enum.d.ts +10 -0
- package/dist/enums/orders-status.enum.d.ts.map +1 -0
- package/dist/enums/orders-status.enum.js +11 -0
- package/dist/enums/payable-status.enum.d.ts +8 -0
- package/dist/enums/payable-status.enum.d.ts.map +1 -0
- package/dist/enums/payable-status.enum.js +8 -0
- package/dist/enums/payment.enum.d.ts +11 -0
- package/dist/enums/payment.enum.d.ts.map +1 -0
- package/dist/enums/payment.enum.js +12 -0
- package/dist/enums/recipient.enum.d.ts +27 -0
- package/dist/enums/recipient.enum.d.ts.map +1 -0
- package/dist/enums/recipient.enum.js +27 -0
- package/dist/enums/role.enum.d.ts +37 -0
- package/dist/enums/role.enum.d.ts.map +1 -0
- package/dist/enums/role.enum.js +38 -0
- package/dist/enums/tax.enum.d.ts +21 -0
- package/dist/enums/tax.enum.d.ts.map +1 -0
- package/dist/enums/tax.enum.js +23 -0
- package/dist/enums/user-status.enum.d.ts +8 -0
- package/dist/enums/user-status.enum.d.ts.map +1 -0
- package/dist/enums/user-status.enum.js +7 -0
- package/{types/account-entry.type.ts → dist/types/account-entry.type.d.ts} +1 -1
- package/dist/types/account-entry.type.d.ts.map +1 -0
- package/dist/types/account-entry.type.js +1 -0
- package/dist/types/address.type.d.ts +11 -0
- package/dist/types/address.type.d.ts.map +1 -0
- package/dist/types/address.type.js +1 -0
- package/{types/anticipation.type.ts → dist/types/anticipation.type.d.ts} +1 -1
- package/dist/types/anticipation.type.d.ts.map +1 -0
- package/dist/types/anticipation.type.js +1 -0
- package/dist/types/card.type.d.ts +14 -0
- package/dist/types/card.type.d.ts.map +1 -0
- package/dist/types/card.type.js +13 -0
- package/dist/types/charge-metadata.type.d.ts +121 -0
- package/dist/types/charge-metadata.type.d.ts.map +1 -0
- package/dist/types/charge-metadata.type.js +1 -0
- package/dist/types/charge-schedule.type.d.ts +11 -0
- package/dist/types/charge-schedule.type.d.ts.map +1 -0
- package/dist/types/charge-schedule.type.js +1 -0
- package/{types/charge.type.ts → dist/types/charge.type.d.ts} +2 -8
- package/dist/types/charge.type.d.ts.map +1 -0
- package/dist/types/charge.type.js +1 -0
- package/dist/types/core.type.d.ts +7 -0
- package/dist/types/core.type.d.ts.map +1 -0
- package/dist/types/core.type.js +1 -0
- package/{types/customer.type.ts → dist/types/customer.type.d.ts} +2 -9
- package/dist/types/customer.type.d.ts.map +1 -0
- package/dist/types/customer.type.js +1 -0
- package/dist/types/environment.type.d.ts +2 -0
- package/dist/types/environment.type.d.ts.map +1 -0
- package/dist/types/environment.type.js +1 -0
- package/{types/failure-reason.type.ts → dist/types/failure-reason.type.d.ts} +1 -1
- package/dist/types/failure-reason.type.d.ts.map +1 -0
- package/dist/types/failure-reason.type.js +1 -0
- package/{types/fee.type.ts → dist/types/fee.type.d.ts} +1 -0
- package/dist/types/fee.type.d.ts.map +1 -0
- package/dist/types/fee.type.js +1 -0
- package/{types/gateway-identification.type.ts → dist/types/gateway-identification.type.d.ts} +1 -1
- package/dist/types/gateway-identification.type.d.ts.map +1 -0
- package/dist/types/gateway-identification.type.js +1 -0
- package/dist/types/health-check-plugin.type.d.ts +11 -0
- package/dist/types/health-check-plugin.type.d.ts.map +1 -0
- package/dist/types/health-check-plugin.type.js +1 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/notification.type.d.ts +37 -0
- package/dist/types/notification.type.d.ts.map +1 -0
- package/dist/types/notification.type.js +1 -0
- package/{types/order.type.ts → dist/types/order.type.d.ts} +1 -1
- package/dist/types/order.type.d.ts.map +1 -0
- package/dist/types/order.type.js +1 -0
- package/{types/payable.type.ts → dist/types/payable.type.d.ts} +1 -1
- package/dist/types/payable.type.d.ts.map +1 -0
- package/dist/types/payable.type.js +1 -0
- package/dist/types/payment-provider.type.d.ts +18 -0
- package/dist/types/payment-provider.type.d.ts.map +1 -0
- package/dist/types/payment-provider.type.js +10 -0
- package/dist/types/payment-service.type.d.ts +143 -0
- package/dist/types/payment-service.type.d.ts.map +1 -0
- package/dist/types/payment-service.type.js +1 -0
- package/{types/payment.type.ts → dist/types/payment.type.d.ts} +4 -8
- package/dist/types/payment.type.d.ts.map +1 -0
- package/dist/types/payment.type.js +5 -0
- package/dist/types/receipt-metadata.type.d.ts +67 -0
- package/dist/types/receipt-metadata.type.d.ts.map +1 -0
- package/dist/types/receipt-metadata.type.js +1 -0
- package/dist/types/receipt.type.d.ts +31 -0
- package/dist/types/receipt.type.d.ts.map +1 -0
- package/dist/types/receipt.type.js +1 -0
- package/dist/types/role.type.d.ts +8 -0
- package/dist/types/role.type.d.ts.map +1 -0
- package/dist/types/role.type.js +1 -0
- package/dist/types/service-card-vault.type.d.ts +24 -0
- package/dist/types/service-card-vault.type.d.ts.map +1 -0
- package/dist/types/service-card-vault.type.js +1 -0
- package/dist/types/tax.type.d.ts +90 -0
- package/dist/types/tax.type.d.ts.map +1 -0
- package/dist/types/tax.type.js +1 -0
- package/dist/types/user.type.d.ts +6 -0
- package/dist/types/user.type.d.ts.map +1 -0
- package/dist/types/user.type.js +5 -0
- package/package.json +10 -8
- package/enums/account-entry.enum.ts +0 -4
- package/enums/anticipation.enum.ts +0 -7
- package/enums/bank-account.enum.ts +0 -12
- package/enums/charge-status.enum.ts +0 -28
- package/enums/customer.enum.ts +0 -40
- package/enums/email.enum.ts +0 -11
- package/enums/failure-reason.enum.ts +0 -7
- package/enums/gateway-identification.enum.ts +0 -7
- package/enums/notification.enum.ts +0 -14
- package/enums/orders-status.enum.ts +0 -10
- package/enums/payable-status.enum.ts +0 -7
- package/enums/payment.enum.ts +0 -11
- package/enums/recipient.enum.ts +0 -32
- package/enums/role.enum.ts +0 -44
- package/enums/tax.enum.ts +0 -23
- package/enums/user-status.enum.ts +0 -9
- package/types/address.type.ts +0 -11
- package/types/card.type.ts +0 -14
- package/types/charge-metadata.type.ts +0 -43
- package/types/charge-schedule.type.ts +0 -11
- package/types/core.type.ts +0 -7
- package/types/environment.type.ts +0 -8
- package/types/health-check-plugin.type.ts +0 -11
- package/types/notification.type.ts +0 -48
- package/types/payment-provider.type.ts +0 -22
- package/types/payment-service.type.ts +0 -18
- package/types/receipt-metadata.type.ts +0 -16
- package/types/receipt.type.ts +0 -34
- package/types/role.type.ts +0 -9
- package/types/service-card-vault.type.ts +0 -26
- package/types/tax.type.ts +0 -97
- package/types/user.type.ts +0 -6
- /package/{enums/index.ts → dist/enums/index.js} +0 -0
- /package/{types/index.ts → dist/types/index.js} +0 -0
package/enums/payment.enum.ts
DELETED
package/enums/recipient.enum.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export enum RecipientTypeEnum {
|
|
2
|
-
CUSTOMER = 'CUSTOMER',
|
|
3
|
-
ADMINISTRATOR = 'ADMINISTRATOR',
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type RecipientType = `${RecipientTypeEnum}`;
|
|
7
|
-
|
|
8
|
-
export enum RecipientLegalTypeEnum {
|
|
9
|
-
SA = 'SA',
|
|
10
|
-
LTDA = 'LTDA',
|
|
11
|
-
MEI = 'MEI',
|
|
12
|
-
ME = 'ME',
|
|
13
|
-
EPP = 'EPP',
|
|
14
|
-
EIRELI = 'EIRELI',
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type RecipientLegalType = `${RecipientLegalTypeEnum}`;
|
|
18
|
-
|
|
19
|
-
export enum ProviderStatusEnum {
|
|
20
|
-
ACTIVE = 'ACTIVE',
|
|
21
|
-
DELETED = 'DELETED',
|
|
22
|
-
INACTIVE = 'INACTIVE',
|
|
23
|
-
WAITING = 'WAITING',
|
|
24
|
-
REJECTED = 'REJECTED',
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type ProviderStatus = `${ProviderStatusEnum}`;
|
|
28
|
-
|
|
29
|
-
export enum ProviderAction {
|
|
30
|
-
UPDATE_PROVIDER = 'UPDATE_PROVIDER',
|
|
31
|
-
NO_ACTION = 'NO_ACTION',
|
|
32
|
-
}
|
package/enums/role.enum.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export enum Action {
|
|
2
|
-
Manage = 'manage',
|
|
3
|
-
Create = 'create',
|
|
4
|
-
Read = 'read',
|
|
5
|
-
Update = 'update',
|
|
6
|
-
Delete = 'delete',
|
|
7
|
-
Enable = 'enable',
|
|
8
|
-
Disable = 'disable',
|
|
9
|
-
Resolve = 'resolve',
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum Permission {
|
|
13
|
-
readDashboard = 'READ_DASHBOARD',
|
|
14
|
-
|
|
15
|
-
manageSupportTickets = 'MANAGE_SUPPORT_TICKETS',
|
|
16
|
-
readCustomerData = 'READ_CUSTOMER_DATA',
|
|
17
|
-
resolveIssues = 'RESOLVE_ISSUES',
|
|
18
|
-
|
|
19
|
-
updateInvoices = 'UPDATE_INVOICES',
|
|
20
|
-
managePayments = 'MANAGE_PAYMENTS',
|
|
21
|
-
readFinancialReports = 'READ_FINANCIAL_REPORTS',
|
|
22
|
-
|
|
23
|
-
manageCreditApplications = 'MANAGE_CREDIT_APPLICATIONS',
|
|
24
|
-
readCreditHistory = 'READ_CREDIT_HISTORY',
|
|
25
|
-
updateCreditLimits = 'UPDATE_CREDIT_LIMITS',
|
|
26
|
-
|
|
27
|
-
manageSystemSettings = 'MANAGE_SYSTEM_SETTINGS',
|
|
28
|
-
readAuditLogs = 'READ_AUDIT_LOGS',
|
|
29
|
-
manageUserAccounts = 'MANAGE_USER_ACCOUNTS',
|
|
30
|
-
|
|
31
|
-
manageReceivedPayments = 'MANAGE_RECEIVED_PAYMENTS',
|
|
32
|
-
updateAccounts = 'UPDATE_ACCOUNTS',
|
|
33
|
-
createFinancialStatements = 'CREATE_FINANCIAL_STATEMENTS',
|
|
34
|
-
|
|
35
|
-
manageTaxDocuments = 'MANAGE_TAX_DOCUMENTS',
|
|
36
|
-
createTaxReturns = 'CREATE_TAX_RETURNS',
|
|
37
|
-
createTaxReports = 'CREATE_TAX_REPORTS',
|
|
38
|
-
|
|
39
|
-
createRecipientFee = 'CREATE_RECIPIENT_FEE',
|
|
40
|
-
updateRecipientFee = 'UPDATE_RECIPIENT_FEE',
|
|
41
|
-
readRecipientFee = 'READ_RECIPIENT_FEE',
|
|
42
|
-
deleteRecipientFee = 'DELETE_RECIPIENT_FEE',
|
|
43
|
-
manageRecipientFee = 'MANAGE_RECIPIENT_FEE',
|
|
44
|
-
}
|
package/enums/tax.enum.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
enum TaxTypesEnum {
|
|
2
|
-
IPTU = 'IPTU',
|
|
3
|
-
TCRS = 'TCRS',
|
|
4
|
-
ITBI = 'ITBI',
|
|
5
|
-
IPVA = 'IPVA',
|
|
6
|
-
LICENSING = 'LICENSING',
|
|
7
|
-
WASTE_COLLECTION = 'WASTE_COLLECTION',
|
|
8
|
-
SANITATION = 'SANITATION',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
enum TaxStatusEnum {
|
|
12
|
-
PAID = 'PAID',
|
|
13
|
-
PROCESSING = 'PROCESSING',
|
|
14
|
-
PENDING = 'PENDING',
|
|
15
|
-
OVERDUE = 'OVERDUE',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
enum MetaEnum {
|
|
19
|
-
PROPERTY = 'PROPERTY',
|
|
20
|
-
VEHICLE = 'VEHICLE',
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { TaxTypesEnum, TaxStatusEnum, MetaEnum };
|
package/types/address.type.ts
DELETED
package/types/card.type.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export enum brandEnum {
|
|
2
|
-
VISA = 'VISA',
|
|
3
|
-
MASTERCARD = 'MASTERCARD',
|
|
4
|
-
ELO = 'ELO',
|
|
5
|
-
DISCOVER = 'DISCOVER',
|
|
6
|
-
AMERICAN_EXPRESS = 'AMERICAN_EXPRESS',
|
|
7
|
-
HIPERCARD = 'HIPERCARD',
|
|
8
|
-
MASTERCARD_MAESTRO = 'MASTERCARD_MAESTRO',
|
|
9
|
-
VISA_ELECTRON = 'VISA_ELECTRON',
|
|
10
|
-
PIX = 'PIX',
|
|
11
|
-
BOLETO = 'BOLETO',
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type brandType = `${brandEnum}`;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { GatewayIdentificationEnum } from '@common/enums';
|
|
2
|
-
import { ExtractAnalyticsItemDto } from '@payment/modules/charge/consumers/dtos';
|
|
3
|
-
import { ReceivingCreatePayloadDto } from '@payment-processing/modules';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
PaymentSplitCreatePayloadDto,
|
|
7
|
-
PaymentCreatePayloadDto,
|
|
8
|
-
} from '@common/dtos/service-payment-processing/card';
|
|
9
|
-
|
|
10
|
-
import { FailureReason } from './failure-reason.type';
|
|
11
|
-
import { PaymentMethods } from './payment.type';
|
|
12
|
-
|
|
13
|
-
export type GatewayRequestPayload =
|
|
14
|
-
| PaymentSplitCreatePayloadDto
|
|
15
|
-
| PaymentCreatePayloadDto
|
|
16
|
-
| ReceivingCreatePayloadDto;
|
|
17
|
-
|
|
18
|
-
export interface GatewaySpecificMeta {
|
|
19
|
-
responsePayload?: {
|
|
20
|
-
authorization?: string | null;
|
|
21
|
-
nsu?: string | null;
|
|
22
|
-
fees?: number | null;
|
|
23
|
-
liquid?: number | null;
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
};
|
|
26
|
-
liquidationPayload?: ExtractAnalyticsItemDto;
|
|
27
|
-
failureDetails?: string | null;
|
|
28
|
-
failureReason?: FailureReason | null;
|
|
29
|
-
isRetry?: boolean;
|
|
30
|
-
[key: string]: unknown;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface PreviousPaymentData {
|
|
34
|
-
amount: number;
|
|
35
|
-
paymentMethod: PaymentMethods;
|
|
36
|
-
installments?: number | null;
|
|
37
|
-
installmentValue?: number | null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type ChargeMetadata = {
|
|
41
|
-
requestPayload: GatewayRequestPayload;
|
|
42
|
-
previousPaymentData?: PreviousPaymentData;
|
|
43
|
-
} & Partial<Record<Lowercase<GatewayIdentificationEnum>, GatewaySpecificMeta>>;
|
package/types/core.type.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NotificationCategoryEnum,
|
|
3
|
-
NotificationImageTypeEnum,
|
|
4
|
-
} from '@common/enums';
|
|
5
|
-
|
|
6
|
-
export type NotificationImageType = `${NotificationImageTypeEnum}`;
|
|
7
|
-
export type NotificationCategory = `${NotificationCategoryEnum}`;
|
|
8
|
-
|
|
9
|
-
export type ChangesFieldType = 'FIRST_NAME' | 'LAST_NAME' | 'EMAIL' | 'PHONE';
|
|
10
|
-
|
|
11
|
-
export interface NotificationMetadata {
|
|
12
|
-
callToAction?: string;
|
|
13
|
-
actionButtonVariant?: 'default' | 'ghost';
|
|
14
|
-
actionLabel?: string;
|
|
15
|
-
url?: string;
|
|
16
|
-
|
|
17
|
-
deviceInfo?: string;
|
|
18
|
-
location?: string;
|
|
19
|
-
eventDate?: Date;
|
|
20
|
-
securityAction?: string;
|
|
21
|
-
|
|
22
|
-
changes?: {
|
|
23
|
-
field: ChangesFieldType;
|
|
24
|
-
oldValue: string;
|
|
25
|
-
newValue: string;
|
|
26
|
-
}[];
|
|
27
|
-
|
|
28
|
-
startDate?: Date;
|
|
29
|
-
endDate?: Date;
|
|
30
|
-
impactDescription?: string;
|
|
31
|
-
|
|
32
|
-
updateReason?: string;
|
|
33
|
-
changePoints?: {
|
|
34
|
-
title: string;
|
|
35
|
-
description: string;
|
|
36
|
-
}[];
|
|
37
|
-
|
|
38
|
-
receiptId?: string;
|
|
39
|
-
chargeId?: string;
|
|
40
|
-
taxId?: string;
|
|
41
|
-
|
|
42
|
-
userId?: string;
|
|
43
|
-
scheduledPaymentDate?: Date;
|
|
44
|
-
paymentAmount?: number;
|
|
45
|
-
paymentStatus?: string;
|
|
46
|
-
paymentMethod?: string;
|
|
47
|
-
params?: Record<string, any>;
|
|
48
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PaymentMethods } from './payment.type';
|
|
2
|
-
|
|
3
|
-
export enum PaymentGatewayTypeEnum {
|
|
4
|
-
PRIMARY = 'PRIMARY',
|
|
5
|
-
SECONDARY = 'SECONDARY',
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type PaymentGatewayType = `${PaymentGatewayTypeEnum}`;
|
|
9
|
-
|
|
10
|
-
export type PaymentProviderInfo = {
|
|
11
|
-
id: string;
|
|
12
|
-
code: string;
|
|
13
|
-
name: string;
|
|
14
|
-
method: PaymentMethods;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export enum OperationTypeEnum {
|
|
18
|
-
PAYMENT = 'PAYMENT',
|
|
19
|
-
RECEIVING = 'RECEIVING',
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type OperationType = `${OperationTypeEnum}`;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OrderEntity } from '@order/database/entities/order.entity';
|
|
2
|
-
import { TaxEntity } from '@tax/database';
|
|
3
|
-
|
|
4
|
-
import { PaymentDetailsDto } from '@common/dtos/service-context';
|
|
5
|
-
|
|
6
|
-
import { RoutingInfo } from './core.type';
|
|
7
|
-
import { OrderType } from './order.type';
|
|
8
|
-
|
|
9
|
-
export interface PaymentContext {
|
|
10
|
-
customerId: string;
|
|
11
|
-
payment: PaymentDetailsDto;
|
|
12
|
-
taxes: TaxEntity[];
|
|
13
|
-
order: OrderEntity;
|
|
14
|
-
orderType?: OrderType;
|
|
15
|
-
pushToken: string;
|
|
16
|
-
routingInfo: RoutingInfo;
|
|
17
|
-
firstRecipientId?: string;
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NfseCancelSuccessDto,
|
|
3
|
-
NfseCreatedSuccessDto,
|
|
4
|
-
} from '@payment/modules/receipt/consumers/dtos';
|
|
5
|
-
|
|
6
|
-
import { CreateNfseDto } from '@common/dtos/service-payment';
|
|
7
|
-
|
|
8
|
-
export type ReceiptMetadata = {
|
|
9
|
-
requestPayload?: CreateNfseDto;
|
|
10
|
-
responsePayload?: NfseCreatedSuccessDto;
|
|
11
|
-
cancelResponsePayload?: NfseCancelSuccessDto;
|
|
12
|
-
errorDetails?: string;
|
|
13
|
-
createAttempts?: number;
|
|
14
|
-
cancelAttempts?: number;
|
|
15
|
-
lastErrorAt?: string;
|
|
16
|
-
};
|
package/types/receipt.type.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ChargeStatus } from './charge.type';
|
|
2
|
-
import { PaymentMethods } from './payment.type';
|
|
3
|
-
import { TaxTypes } from './tax.type';
|
|
4
|
-
|
|
5
|
-
type PaymentSummary = {
|
|
6
|
-
totalPaymentsMade?: number;
|
|
7
|
-
totalScheduledPayments?: number;
|
|
8
|
-
timestamp: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type IndividualPayment = {
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
status: ChargeStatus;
|
|
15
|
-
paymentMethod: PaymentMethods;
|
|
16
|
-
propertyDocument: string;
|
|
17
|
-
propertyDetail: string;
|
|
18
|
-
amount?: number;
|
|
19
|
-
installmentNumber: number;
|
|
20
|
-
installmentValue: number;
|
|
21
|
-
schedule?: {
|
|
22
|
-
executionDate: Date;
|
|
23
|
-
isExecuted: boolean;
|
|
24
|
-
};
|
|
25
|
-
taxType: TaxTypes;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
type PaymentSummaryPreview = {
|
|
29
|
-
summary: PaymentSummary;
|
|
30
|
-
paymentsMade?: IndividualPayment[];
|
|
31
|
-
scheduledPayments?: IndividualPayment[];
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export type { PaymentSummaryPreview, PaymentSummary, IndividualPayment };
|
package/types/role.type.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
type GetTokenizedCardEnigma = {
|
|
2
|
-
firstSix: string;
|
|
3
|
-
lastFour: string;
|
|
4
|
-
ccn?: string;
|
|
5
|
-
expMonth: number;
|
|
6
|
-
expYear: number;
|
|
7
|
-
fullName: string;
|
|
8
|
-
cardType: string;
|
|
9
|
-
token: string;
|
|
10
|
-
cvvTtl: number;
|
|
11
|
-
ttl: number;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
type CardDetailsPayload = {
|
|
15
|
-
token: string;
|
|
16
|
-
tokenCvv: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
type EnigmaToken = {
|
|
20
|
-
access_token: string;
|
|
21
|
-
token_type: string;
|
|
22
|
-
expires_in: number;
|
|
23
|
-
scope: string;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type { CardDetailsPayload, GetTokenizedCardEnigma, EnigmaToken };
|
package/types/tax.type.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { TaxPayload as TaxPayloadDto } from '@common/dtos/service-tax';
|
|
2
|
-
import { TaxStatusEnum, TaxTypesEnum } from '@common/enums';
|
|
3
|
-
|
|
4
|
-
import { Address } from './address.type';
|
|
5
|
-
|
|
6
|
-
type TaxTypes = `${TaxTypesEnum}`;
|
|
7
|
-
type TaxStatus = `${TaxStatusEnum}`;
|
|
8
|
-
type MetaType = 'PROPERTY' | 'VEHICLE';
|
|
9
|
-
|
|
10
|
-
type Tax = {
|
|
11
|
-
id: string;
|
|
12
|
-
type: TaxTypes;
|
|
13
|
-
description: string;
|
|
14
|
-
year: number;
|
|
15
|
-
documentId: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
type Payer = {
|
|
19
|
-
name: string;
|
|
20
|
-
document: string;
|
|
21
|
-
phone?: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type locationInfo = {
|
|
25
|
-
state: number;
|
|
26
|
-
city: number;
|
|
27
|
-
recipientId: string;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
type TaxItem = {
|
|
31
|
-
id: string;
|
|
32
|
-
code: string;
|
|
33
|
-
quota: number;
|
|
34
|
-
dueAt: string;
|
|
35
|
-
amount: number;
|
|
36
|
-
isSingleQuota: boolean;
|
|
37
|
-
status: TaxStatus;
|
|
38
|
-
discountPercentage: number;
|
|
39
|
-
discountAmount: number;
|
|
40
|
-
fee: number;
|
|
41
|
-
fine: number;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
type Property = {
|
|
45
|
-
address?: Address;
|
|
46
|
-
documentId?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
type Vehicle = {
|
|
50
|
-
licensePlate?: string;
|
|
51
|
-
model?: string;
|
|
52
|
-
yearManufacture?: number;
|
|
53
|
-
renavam?: string;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export type Meta = Property | Vehicle;
|
|
57
|
-
|
|
58
|
-
type TaxDetail = {
|
|
59
|
-
tax: Tax;
|
|
60
|
-
payer: Payer;
|
|
61
|
-
location: locationInfo;
|
|
62
|
-
metaType: MetaType;
|
|
63
|
-
meta: Meta | undefined;
|
|
64
|
-
items: TaxItem[];
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
type TaxDueDate = {
|
|
68
|
-
id: string;
|
|
69
|
-
dueDate: string;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
type PropertyDetail = {
|
|
73
|
-
property: Property;
|
|
74
|
-
payer: Payer;
|
|
75
|
-
taxTypes: Set<TaxTypes> | TaxTypes[];
|
|
76
|
-
pendingTaxesAmount?: number;
|
|
77
|
-
paidTaxesAmount?: number;
|
|
78
|
-
overdueTaxesAmount?: number;
|
|
79
|
-
lastPaidTaxDate?: string | null;
|
|
80
|
-
nextDueDate?: string | null;
|
|
81
|
-
nearDueTaxesDates?: TaxDueDate[];
|
|
82
|
-
overdueTaxesDates?: TaxDueDate[];
|
|
83
|
-
receiptId: string | null;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
type TaxPayload = TaxPayloadDto;
|
|
87
|
-
|
|
88
|
-
export type {
|
|
89
|
-
TaxDetail,
|
|
90
|
-
PropertyDetail,
|
|
91
|
-
TaxTypes,
|
|
92
|
-
TaxStatus,
|
|
93
|
-
Property,
|
|
94
|
-
Vehicle,
|
|
95
|
-
MetaType,
|
|
96
|
-
TaxPayload,
|
|
97
|
-
};
|
package/types/user.type.ts
DELETED
|
File without changes
|
|
File without changes
|