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.
@@ -63,7 +63,7 @@ __decorate([
63
63
  (0, class_validator_1.IsOptional)(),
64
64
  (0, class_validator_1.IsString)({ message: "Please confirm your password" }),
65
65
  (0, custom_validation_1.isSameAs)("password", { message: "Your passwords to not match. Please check" }),
66
- (0, swagger_1.ApiProperty)({ description: "Confirmed password from user" }),
66
+ (0, swagger_1.ApiProperty)({ description: "Confirmed password from user", required: false }),
67
67
  __metadata("design:type", String)
68
68
  ], ActivationRequestDTO.prototype, "passwordConfirm", void 0);
69
69
  class UpdateAuthenticationDTO {
@@ -65,6 +65,6 @@ class RevokeInviteDTO {
65
65
  exports.RevokeInviteDTO = RevokeInviteDTO;
66
66
  __decorate([
67
67
  (0, class_validator_1.IsUUID)(4, { message: "Please select a valid invite to revoke." }),
68
- (0, swagger_1.ApiProperty)({ description: "Id of the invite" }),
68
+ (0, swagger_1.ApiProperty)({ description: "ID of the invite" }),
69
69
  __metadata("design:type", String)
70
70
  ], RevokeInviteDTO.prototype, "id", void 0);
@@ -0,0 +1,160 @@
1
+ export declare class BillerCategoryResponseDTO {
2
+ id: string;
3
+ name: string;
4
+ description?: string;
5
+ billers?: BillerResponseDTO[];
6
+ }
7
+ export declare class ServiceResponseDTO {
8
+ id: string;
9
+ name: string;
10
+ chargeConfigurations?: BillerChargeConfigurationResponseDTO[];
11
+ }
12
+ export declare class BankResponseDTO {
13
+ id: string;
14
+ name: string;
15
+ slug: string;
16
+ code: string;
17
+ longCode: string;
18
+ settlementAccounts?: SettlementAccountResponseDTO[];
19
+ }
20
+ export declare class BillerResponseDTO {
21
+ id: string;
22
+ categoryId: string;
23
+ name: string;
24
+ live: boolean;
25
+ active: boolean;
26
+ slug?: string;
27
+ billerCode?: string;
28
+ createdAt: Date;
29
+ updatedAt: Date;
30
+ category: BillerCategoryResponseDTO;
31
+ settlementAccounts: SettlementAccountResponseDTO[];
32
+ profile?: BillerProfileResponseDTO;
33
+ chargeConfigurations: BillerChargeConfigurationResponseDTO[];
34
+ goLiveRequest?: GoLiveRequestResponseDTO;
35
+ documents: BillerDocumentResponseDTO[];
36
+ contact?: BillerContactResponseDTO;
37
+ customers: CustomerResponseDTO[];
38
+ items: BillerItemResponseDTO[];
39
+ invoices: InvoiceResponseDTO[];
40
+ }
41
+ export declare class BillerProfileResponseDTO {
42
+ id: string;
43
+ name?: string;
44
+ billerId: string;
45
+ hasTransactionLimit: boolean;
46
+ transactionLimit: number;
47
+ delimiter: string;
48
+ createdAt: Date;
49
+ updatedAt: Date;
50
+ biller: BillerResponseDTO;
51
+ }
52
+ export declare class BillerChargeConfigurationResponseDTO {
53
+ id: string;
54
+ serviceId: string;
55
+ active: boolean;
56
+ capped: boolean;
57
+ floored: boolean;
58
+ chargeCap: number;
59
+ chargeFloor: number;
60
+ currency: string;
61
+ chargeType: string;
62
+ fixedAmount: number;
63
+ percentAmount: number;
64
+ createdAt: Date;
65
+ updatedAt: Date;
66
+ biller?: BillerResponseDTO[];
67
+ service: ServiceResponseDTO;
68
+ }
69
+ export declare class SettlementAccountResponseDTO {
70
+ id: string;
71
+ billerId: string;
72
+ bankId: string;
73
+ default: boolean;
74
+ accountName: string;
75
+ accountNumber: string;
76
+ currency: string;
77
+ createdAt: Date;
78
+ updatedAt: Date;
79
+ biller: BillerResponseDTO;
80
+ bank: BankResponseDTO;
81
+ onboardedAccount?: OnboardedAccountResponseDTO;
82
+ }
83
+ export declare class OnboardedAccountResponseDTO {
84
+ id: string;
85
+ settlementAccountId: string;
86
+ vendor: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ settlementAccount: SettlementAccountResponseDTO;
90
+ }
91
+ export declare class BillerDocumentResponseDTO {
92
+ id: string;
93
+ billerId: string;
94
+ url: string;
95
+ type: string;
96
+ biller: BillerResponseDTO;
97
+ }
98
+ export declare class GoLiveRequestResponseDTO {
99
+ id: string;
100
+ billerId: string;
101
+ status: string;
102
+ createdAt: Date;
103
+ updatedAt: Date;
104
+ biller: BillerResponseDTO;
105
+ }
106
+ export declare class BillerContactResponseDTO {
107
+ id: string;
108
+ billerId: string;
109
+ contactName: string;
110
+ emailAddress: string;
111
+ phoneNumber?: string;
112
+ dob: Date;
113
+ address: string;
114
+ country: string;
115
+ city: string;
116
+ state: string;
117
+ createdAt: Date;
118
+ updatedAt: Date;
119
+ biller: BillerResponseDTO;
120
+ }
121
+ export declare class CustomerResponseDTO {
122
+ id: string;
123
+ billerId: string;
124
+ name: string;
125
+ emailAddress?: string;
126
+ phoneNumber?: string;
127
+ createdAt: Date;
128
+ updatedAt: Date;
129
+ biller: BillerResponseDTO;
130
+ invoices: InvoiceResponseDTO[];
131
+ }
132
+ export declare class BillerItemResponseDTO {
133
+ id: string;
134
+ billerId: string;
135
+ amount: number;
136
+ source?: string;
137
+ customerIdentifierName?: string;
138
+ serviceFee: number;
139
+ currency: string;
140
+ description?: string;
141
+ external: boolean;
142
+ createdAt: Date;
143
+ updatedAt: Date;
144
+ biller: BillerResponseDTO;
145
+ invoices: InvoiceResponseDTO[];
146
+ }
147
+ export declare class InvoiceResponseDTO {
148
+ id: string;
149
+ billerId: string;
150
+ customerId: string;
151
+ discountValue: number;
152
+ discountType: string;
153
+ dueDate: Date;
154
+ status: string;
155
+ createdAt: Date;
156
+ updatedAt: Date;
157
+ billerItems: BillerItemResponseDTO[];
158
+ biller: BillerResponseDTO;
159
+ customer: CustomerResponseDTO;
160
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvoiceResponseDTO = exports.BillerItemResponseDTO = exports.CustomerResponseDTO = exports.BillerContactResponseDTO = exports.GoLiveRequestResponseDTO = exports.BillerDocumentResponseDTO = exports.OnboardedAccountResponseDTO = exports.SettlementAccountResponseDTO = exports.BillerChargeConfigurationResponseDTO = exports.BillerProfileResponseDTO = exports.BillerResponseDTO = exports.BankResponseDTO = exports.ServiceResponseDTO = exports.BillerCategoryResponseDTO = void 0;
4
+ class BillerCategoryResponseDTO {
5
+ }
6
+ exports.BillerCategoryResponseDTO = BillerCategoryResponseDTO;
7
+ class ServiceResponseDTO {
8
+ }
9
+ exports.ServiceResponseDTO = ServiceResponseDTO;
10
+ class BankResponseDTO {
11
+ }
12
+ exports.BankResponseDTO = BankResponseDTO;
13
+ class BillerResponseDTO {
14
+ }
15
+ exports.BillerResponseDTO = BillerResponseDTO;
16
+ class BillerProfileResponseDTO {
17
+ }
18
+ exports.BillerProfileResponseDTO = BillerProfileResponseDTO;
19
+ class BillerChargeConfigurationResponseDTO {
20
+ }
21
+ exports.BillerChargeConfigurationResponseDTO = BillerChargeConfigurationResponseDTO;
22
+ class SettlementAccountResponseDTO {
23
+ }
24
+ exports.SettlementAccountResponseDTO = SettlementAccountResponseDTO;
25
+ class OnboardedAccountResponseDTO {
26
+ }
27
+ exports.OnboardedAccountResponseDTO = OnboardedAccountResponseDTO;
28
+ class BillerDocumentResponseDTO {
29
+ }
30
+ exports.BillerDocumentResponseDTO = BillerDocumentResponseDTO;
31
+ class GoLiveRequestResponseDTO {
32
+ }
33
+ exports.GoLiveRequestResponseDTO = GoLiveRequestResponseDTO;
34
+ class BillerContactResponseDTO {
35
+ }
36
+ exports.BillerContactResponseDTO = BillerContactResponseDTO;
37
+ class CustomerResponseDTO {
38
+ }
39
+ exports.CustomerResponseDTO = CustomerResponseDTO;
40
+ class BillerItemResponseDTO {
41
+ }
42
+ exports.BillerItemResponseDTO = BillerItemResponseDTO;
43
+ class InvoiceResponseDTO {
44
+ }
45
+ exports.InvoiceResponseDTO = InvoiceResponseDTO;
@@ -0,0 +1,219 @@
1
+ /**
2
+ * DTO for `BillerCategory`
3
+ */
4
+ export declare class CreateBillerCategoryDto {
5
+ name: string;
6
+ description?: string;
7
+ }
8
+ /**
9
+ * DTO for `BillerCategory`
10
+ */
11
+ export declare class UpdateBillerCategoryDto {
12
+ id: string;
13
+ name: string;
14
+ description?: string;
15
+ }
16
+ /**
17
+ * DTO for `Bank`
18
+ */
19
+ export declare class CreateBankDto {
20
+ name: string;
21
+ slug: string;
22
+ code: string;
23
+ longCode?: string;
24
+ }
25
+ /**
26
+ * DTO for `Charge`
27
+ */
28
+ export declare class CreateChargeDto {
29
+ name: string;
30
+ type: "FIXED" | "PERCENTAGE";
31
+ value: number;
32
+ description?: string;
33
+ }
34
+ /**
35
+ * DTO for `Transaction`
36
+ */
37
+ export declare class CreateTransactionDto {
38
+ amount: number;
39
+ bankId: string;
40
+ type: "CREDIT" | "DEBIT";
41
+ remarks?: string;
42
+ }
43
+ /**
44
+ * DTO for `Biller`
45
+ */
46
+ export declare class CreateBillerDto {
47
+ id?: string;
48
+ categoryId: string;
49
+ billerProfileId?: string;
50
+ name: string;
51
+ live: boolean;
52
+ active: boolean;
53
+ slug?: string;
54
+ billerCode?: string;
55
+ createdAt?: string;
56
+ updatedAt?: string;
57
+ }
58
+ export declare class UpdateBillerDto {
59
+ id?: string;
60
+ categoryId?: string;
61
+ billerProfileId?: string;
62
+ name?: string;
63
+ live?: boolean;
64
+ active: boolean;
65
+ slug?: string;
66
+ billerCode?: string;
67
+ }
68
+ export declare enum TIME_DELIMITER {
69
+ DAY = "DAY",
70
+ WEEK = "WEEK",
71
+ MONTH = "MONTH"
72
+ }
73
+ export declare class BillerProfileDTO {
74
+ id: string;
75
+ name?: string;
76
+ hasTransactionLimit?: boolean;
77
+ transactionLimit?: number;
78
+ delimiter?: TIME_DELIMITER;
79
+ }
80
+ export declare class UpdateBillerProfileDTO {
81
+ id: string;
82
+ name?: string;
83
+ hasTransactionLimit?: boolean;
84
+ transactionLimit?: number;
85
+ delimiter?: TIME_DELIMITER;
86
+ }
87
+ export declare class CreateSettlementAccountDto {
88
+ billerId: string;
89
+ bankId: string;
90
+ default?: boolean;
91
+ accountName: string;
92
+ accountNumber: string;
93
+ currency: string;
94
+ }
95
+ export declare class UpdateSettlementAccountDto {
96
+ id: string;
97
+ billerId?: string;
98
+ bankId?: string;
99
+ default?: boolean;
100
+ accountName?: string;
101
+ accountNumber?: string;
102
+ currency?: string;
103
+ }
104
+ export declare class CreateBillerChargeConfigurationDto {
105
+ serviceId: string;
106
+ active?: boolean;
107
+ capped?: boolean;
108
+ floored?: boolean;
109
+ chargeCap?: number;
110
+ chargeFloor?: number;
111
+ currency: string;
112
+ chargeType: string;
113
+ fixedAmount?: number;
114
+ percentAmount?: number;
115
+ }
116
+ export declare class UpdateBillerChargeConfigurationDto {
117
+ id: string;
118
+ serviceId?: string;
119
+ active?: boolean;
120
+ capped?: boolean;
121
+ floored?: boolean;
122
+ chargeCap?: number;
123
+ chargeFloor?: number;
124
+ currency?: string;
125
+ chargeType?: string;
126
+ fixedAmount?: number;
127
+ percentAmount?: number;
128
+ }
129
+ export declare class CreateBillerDocumentDto {
130
+ billerId: string;
131
+ url: string;
132
+ type: string;
133
+ }
134
+ export declare class UpdateBillerDocumentDto {
135
+ billerId?: string;
136
+ url?: string;
137
+ type?: string;
138
+ }
139
+ export declare class CreateGoLiveRequestDto {
140
+ billerId: string;
141
+ status: string;
142
+ }
143
+ export declare class UpdateGoLiveRequestDto {
144
+ billerId?: string;
145
+ status?: string;
146
+ }
147
+ export declare class CreateBillerContactDto {
148
+ billerId: string;
149
+ contactName: string;
150
+ emailAddress: string;
151
+ phoneNumber?: string;
152
+ dob: string;
153
+ address: string;
154
+ country: string;
155
+ city: string;
156
+ state: string;
157
+ }
158
+ export declare class UpdateBillerContactDto {
159
+ id: string;
160
+ billerId?: string;
161
+ contactName?: string;
162
+ emailAddress?: string;
163
+ phoneNumber?: string;
164
+ dob?: string;
165
+ address?: string;
166
+ country?: string;
167
+ city?: string;
168
+ state?: string;
169
+ }
170
+ export declare class CreateCustomerDto {
171
+ billerId: string;
172
+ name: string;
173
+ emailAddress?: string;
174
+ phoneNumber?: string;
175
+ }
176
+ export declare class UpdateCustomerDto {
177
+ id: string;
178
+ name?: string;
179
+ emailAddress?: string;
180
+ phoneNumber?: string;
181
+ }
182
+ export declare class CreateBillerItemDto {
183
+ billerId: string;
184
+ amount: number;
185
+ source?: string;
186
+ customerIdentifierName?: string;
187
+ serviceFee: number;
188
+ currency: string;
189
+ description?: string;
190
+ external: boolean;
191
+ }
192
+ export declare class UpdateBillerItemDto {
193
+ id: string;
194
+ billerId?: string;
195
+ amount?: number;
196
+ source?: string;
197
+ customerIdentifierName?: string;
198
+ serviceFee?: number;
199
+ currency?: string;
200
+ description?: string;
201
+ external?: boolean;
202
+ }
203
+ export declare class CreateInvoiceDto {
204
+ billerId: string;
205
+ customerId: string;
206
+ discountValue: number;
207
+ discountType: string;
208
+ dueDate: string;
209
+ status: string;
210
+ }
211
+ export declare class UpdateInvoiceDto {
212
+ id: string;
213
+ billerId?: string;
214
+ customerId?: string;
215
+ discountValue?: number;
216
+ discountType?: string;
217
+ dueDate?: string;
218
+ status?: string;
219
+ }