resurgence-data 1.0.21 → 1.0.23
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/authentication/authentication.dto.js +1 -1
- package/dist/authentication/invite.dto.js +1 -1
- package/dist/biller/biller-response.dto.d.ts +160 -0
- package/dist/biller/biller-response.dto.js +45 -0
- package/dist/biller/biller.dto.d.ts +219 -0
- package/dist/biller/biller.dto.js +1440 -0
- package/dist/biller/index.d.ts +2 -0
- package/dist/biller/index.js +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/user/user.js +2 -2
- package/package.json +1 -1
- package/src/authentication/authentication.dto.ts +1 -1
- package/src/authentication/invite.dto.ts +1 -1
- package/src/biller/biller-response.dto.ts +173 -0
- package/src/biller/biller.dto.ts +1276 -0
- package/src/biller/index.ts +2 -0
- package/src/index.ts +1 -0
- package/src/user/user.ts +2 -2
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./biller.dto"), exports);
|
18
|
+
__exportStar(require("./biller-response.dto"), exports);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/user/user.js
CHANGED
@@ -41,13 +41,13 @@ __decorate([
|
|
41
41
|
(0, class_validator_1.IsOptional)() // Allows the property to be optional
|
42
42
|
,
|
43
43
|
(0, class_validator_1.IsString)({ message: "Please provide a valid link for the avatar (optional)." }),
|
44
|
-
(0, swagger_1.ApiProperty)({ description: "User's profile link" }),
|
44
|
+
(0, swagger_1.ApiProperty)({ description: "User's profile link", required: false }),
|
45
45
|
__metadata("design:type", String)
|
46
46
|
], CreateUserDTO.prototype, "avatarUrl", void 0);
|
47
47
|
__decorate([
|
48
48
|
(0, class_validator_1.IsOptional)(),
|
49
49
|
(0, class_validator_1.IsBoolean)({ message: "Corporate should be true or false (optional)." }),
|
50
|
-
(0, swagger_1.ApiProperty)({ description: "Corporate or private user" }),
|
50
|
+
(0, swagger_1.ApiProperty)({ description: "Corporate or private user", required: false }),
|
51
51
|
__metadata("design:type", Boolean)
|
52
52
|
], CreateUserDTO.prototype, "corporate", void 0);
|
53
53
|
__decorate([
|
package/package.json
CHANGED
@@ -40,7 +40,7 @@ export class ActivationRequestDTO {
|
|
40
40
|
@IsOptional()
|
41
41
|
@IsString({ message: "Please confirm your password" })
|
42
42
|
@isSameAs("password", { message: "Your passwords to not match. Please check" })
|
43
|
-
@ApiProperty({ description: "Confirmed password from user" })
|
43
|
+
@ApiProperty({ description: "Confirmed password from user", required: false })
|
44
44
|
passwordConfirm?: string;
|
45
45
|
}
|
46
46
|
|
@@ -41,6 +41,6 @@ export class AcceptInviteInviteDTO {
|
|
41
41
|
|
42
42
|
export class RevokeInviteDTO {
|
43
43
|
@IsUUID(4, { message: "Please select a valid invite to revoke." })
|
44
|
-
@ApiProperty({ description: "
|
44
|
+
@ApiProperty({ description: "ID of the invite" })
|
45
45
|
id: string;
|
46
46
|
}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
export class BillerCategoryResponseDTO {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
description?: string;
|
5
|
+
billers?: BillerResponseDTO[];
|
6
|
+
}
|
7
|
+
|
8
|
+
export class ServiceResponseDTO {
|
9
|
+
id: string;
|
10
|
+
name: string;
|
11
|
+
chargeConfigurations?: BillerChargeConfigurationResponseDTO[];
|
12
|
+
}
|
13
|
+
|
14
|
+
export class BankResponseDTO {
|
15
|
+
id: string;
|
16
|
+
name: string;
|
17
|
+
slug: string;
|
18
|
+
code: string;
|
19
|
+
longCode: string;
|
20
|
+
settlementAccounts?: SettlementAccountResponseDTO[];
|
21
|
+
}
|
22
|
+
|
23
|
+
export class BillerResponseDTO {
|
24
|
+
id: string;
|
25
|
+
categoryId: string;
|
26
|
+
name: string;
|
27
|
+
live: boolean;
|
28
|
+
active: boolean;
|
29
|
+
slug?: string;
|
30
|
+
billerCode?: string;
|
31
|
+
createdAt: Date;
|
32
|
+
updatedAt: Date;
|
33
|
+
category: BillerCategoryResponseDTO;
|
34
|
+
settlementAccounts: SettlementAccountResponseDTO[];
|
35
|
+
profile?: BillerProfileResponseDTO;
|
36
|
+
chargeConfigurations: BillerChargeConfigurationResponseDTO[];
|
37
|
+
goLiveRequest?: GoLiveRequestResponseDTO;
|
38
|
+
documents: BillerDocumentResponseDTO[];
|
39
|
+
contact?: BillerContactResponseDTO;
|
40
|
+
customers: CustomerResponseDTO[];
|
41
|
+
items: BillerItemResponseDTO[];
|
42
|
+
invoices: InvoiceResponseDTO[];
|
43
|
+
}
|
44
|
+
|
45
|
+
export class BillerProfileResponseDTO {
|
46
|
+
id: string;
|
47
|
+
name?: string;
|
48
|
+
billerId: string;
|
49
|
+
hasTransactionLimit: boolean;
|
50
|
+
transactionLimit: number;
|
51
|
+
delimiter: string; // TIME_DELIMITER
|
52
|
+
createdAt: Date;
|
53
|
+
updatedAt: Date;
|
54
|
+
biller: BillerResponseDTO;
|
55
|
+
}
|
56
|
+
|
57
|
+
export class BillerChargeConfigurationResponseDTO {
|
58
|
+
id: string;
|
59
|
+
serviceId: string;
|
60
|
+
active: boolean;
|
61
|
+
capped: boolean;
|
62
|
+
floored: boolean;
|
63
|
+
chargeCap: number;
|
64
|
+
chargeFloor: number;
|
65
|
+
currency: string;
|
66
|
+
chargeType: string; // CHARGE_TYPE
|
67
|
+
fixedAmount: number;
|
68
|
+
percentAmount: number;
|
69
|
+
createdAt: Date;
|
70
|
+
updatedAt: Date;
|
71
|
+
biller?: BillerResponseDTO[];
|
72
|
+
service: ServiceResponseDTO;
|
73
|
+
}
|
74
|
+
|
75
|
+
export class SettlementAccountResponseDTO {
|
76
|
+
id: string;
|
77
|
+
billerId: string;
|
78
|
+
bankId: string;
|
79
|
+
default: boolean;
|
80
|
+
accountName: string;
|
81
|
+
accountNumber: string;
|
82
|
+
currency: string;
|
83
|
+
createdAt: Date;
|
84
|
+
updatedAt: Date;
|
85
|
+
biller: BillerResponseDTO;
|
86
|
+
bank: BankResponseDTO;
|
87
|
+
onboardedAccount?: OnboardedAccountResponseDTO;
|
88
|
+
}
|
89
|
+
|
90
|
+
export class OnboardedAccountResponseDTO {
|
91
|
+
id: string;
|
92
|
+
settlementAccountId: string;
|
93
|
+
vendor: string;
|
94
|
+
createdAt: Date;
|
95
|
+
updatedAt: Date;
|
96
|
+
settlementAccount: SettlementAccountResponseDTO;
|
97
|
+
}
|
98
|
+
|
99
|
+
export class BillerDocumentResponseDTO {
|
100
|
+
id: string;
|
101
|
+
billerId: string;
|
102
|
+
url: string;
|
103
|
+
type: string; // DOCUMENT_TYPE
|
104
|
+
biller: BillerResponseDTO;
|
105
|
+
}
|
106
|
+
|
107
|
+
export class GoLiveRequestResponseDTO {
|
108
|
+
id: string;
|
109
|
+
billerId: string;
|
110
|
+
status: string; // REQUEST_STATUS
|
111
|
+
createdAt: Date;
|
112
|
+
updatedAt: Date;
|
113
|
+
biller: BillerResponseDTO;
|
114
|
+
}
|
115
|
+
|
116
|
+
export class BillerContactResponseDTO {
|
117
|
+
id: string;
|
118
|
+
billerId: string;
|
119
|
+
contactName: string;
|
120
|
+
emailAddress: string;
|
121
|
+
phoneNumber?: string;
|
122
|
+
dob: Date;
|
123
|
+
address: string;
|
124
|
+
country: string;
|
125
|
+
city: string;
|
126
|
+
state: string;
|
127
|
+
createdAt: Date;
|
128
|
+
updatedAt: Date;
|
129
|
+
biller: BillerResponseDTO;
|
130
|
+
}
|
131
|
+
|
132
|
+
export class CustomerResponseDTO {
|
133
|
+
id: string;
|
134
|
+
billerId: string;
|
135
|
+
name: string;
|
136
|
+
emailAddress?: string;
|
137
|
+
phoneNumber?: string;
|
138
|
+
createdAt: Date;
|
139
|
+
updatedAt: Date;
|
140
|
+
biller: BillerResponseDTO;
|
141
|
+
invoices: InvoiceResponseDTO[];
|
142
|
+
}
|
143
|
+
|
144
|
+
export class BillerItemResponseDTO {
|
145
|
+
id: string;
|
146
|
+
billerId: string;
|
147
|
+
amount: number;
|
148
|
+
source?: string;
|
149
|
+
customerIdentifierName?: string;
|
150
|
+
serviceFee: number;
|
151
|
+
currency: string;
|
152
|
+
description?: string;
|
153
|
+
external: boolean;
|
154
|
+
createdAt: Date;
|
155
|
+
updatedAt: Date;
|
156
|
+
biller: BillerResponseDTO;
|
157
|
+
invoices: InvoiceResponseDTO[];
|
158
|
+
}
|
159
|
+
|
160
|
+
export class InvoiceResponseDTO {
|
161
|
+
id: string;
|
162
|
+
billerId: string;
|
163
|
+
customerId: string;
|
164
|
+
discountValue: number;
|
165
|
+
discountType: string; // DISCOUNT_TYPE
|
166
|
+
dueDate: Date;
|
167
|
+
status: string; // INVOICE_STATUS
|
168
|
+
createdAt: Date;
|
169
|
+
updatedAt: Date;
|
170
|
+
billerItems: BillerItemResponseDTO[];
|
171
|
+
biller: BillerResponseDTO;
|
172
|
+
customer: CustomerResponseDTO;
|
173
|
+
}
|