ecom-documents 1.0.7 → 1.0.8
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/index.d.mts +43 -29
- package/dist/index.d.ts +43 -29
- package/dist/index.js +150 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -118
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,6 +41,8 @@ declare const DocumentType: {
|
|
|
41
41
|
readonly REFUNDS_POS: "REFUNDS_POS";
|
|
42
42
|
readonly REFUNDS_INTERNAL_POS: "REFUNDS_INTERNAL_POS";
|
|
43
43
|
readonly POS_TRANSACTIONS: "POS_TRANSACTIONS";
|
|
44
|
+
readonly INVOICES: "INVOICES";
|
|
45
|
+
readonly INVOICE_USERS: "INVOICE_USERS";
|
|
44
46
|
};
|
|
45
47
|
type DocumentType = ValueOf<typeof DocumentType>;
|
|
46
48
|
|
|
@@ -104,6 +106,44 @@ declare class DocumentValidationError extends DocumentError {
|
|
|
104
106
|
getMessages(): string[];
|
|
105
107
|
}
|
|
106
108
|
|
|
109
|
+
declare class InvoiceDocument {
|
|
110
|
+
createdAt: string | Date;
|
|
111
|
+
paidAt: string | Date;
|
|
112
|
+
customerName: string;
|
|
113
|
+
customerPhone: string;
|
|
114
|
+
id: string;
|
|
115
|
+
merchantReference: string;
|
|
116
|
+
createdBy: string;
|
|
117
|
+
transactionId: string;
|
|
118
|
+
status: string;
|
|
119
|
+
amount: number | string;
|
|
120
|
+
paymentMethod: string;
|
|
121
|
+
}
|
|
122
|
+
declare class InvoiceHistoryDocument {
|
|
123
|
+
createdAt: string | Date;
|
|
124
|
+
action: string;
|
|
125
|
+
createdBy: string;
|
|
126
|
+
invoiceId: string;
|
|
127
|
+
paymentMethod: string;
|
|
128
|
+
paymentMethodBrand: string;
|
|
129
|
+
}
|
|
130
|
+
declare class InvoiceExportDto {
|
|
131
|
+
data: InvoiceDocument[];
|
|
132
|
+
}
|
|
133
|
+
declare class InvoiceHistoryExportDto {
|
|
134
|
+
data: InvoiceHistoryDocument[];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class InvoiceUserDocument {
|
|
138
|
+
name: string;
|
|
139
|
+
role: string;
|
|
140
|
+
amount: number | string;
|
|
141
|
+
numberOfInvoices: number | string;
|
|
142
|
+
}
|
|
143
|
+
declare class InvoiceUserExportDto {
|
|
144
|
+
data: InvoiceUserDocument[];
|
|
145
|
+
}
|
|
146
|
+
|
|
107
147
|
declare class ExceptionDocument {
|
|
108
148
|
createdAt: string | Date;
|
|
109
149
|
merchantName: string;
|
|
@@ -314,36 +354,10 @@ declare const DocumentPayloadMap: {
|
|
|
314
354
|
readonly REFUNDS_INTERNAL_POS: typeof RefundsPOSExportDto;
|
|
315
355
|
readonly POS_TRANSACTIONS: typeof TransactionsPOSExportDto;
|
|
316
356
|
readonly TERMINALS: typeof TerminalsExportDto;
|
|
357
|
+
readonly INVOICES: typeof InvoiceExportDto;
|
|
358
|
+
readonly INVOICE_USERS: typeof InvoiceUserExportDto;
|
|
317
359
|
};
|
|
318
360
|
|
|
319
|
-
declare class InvoiceDocument {
|
|
320
|
-
createdAt: string | Date;
|
|
321
|
-
paidAt: string | Date;
|
|
322
|
-
customerName: string;
|
|
323
|
-
customerPhone: string;
|
|
324
|
-
id: string;
|
|
325
|
-
merchantReference: string;
|
|
326
|
-
createdBy: string;
|
|
327
|
-
transactionId: string;
|
|
328
|
-
status: string;
|
|
329
|
-
amount: number | string;
|
|
330
|
-
paymentMethod: string;
|
|
331
|
-
}
|
|
332
|
-
declare class InvoiceHistoryDocument {
|
|
333
|
-
createdAt: string | Date;
|
|
334
|
-
action: string;
|
|
335
|
-
createdBy: string;
|
|
336
|
-
invoiceId: string;
|
|
337
|
-
paymentMethod: string;
|
|
338
|
-
paymentMethodBrand: string;
|
|
339
|
-
}
|
|
340
|
-
declare class InvoiceExportDto {
|
|
341
|
-
data: InvoiceDocument[];
|
|
342
|
-
}
|
|
343
|
-
declare class InvoiceHistoryExportDto {
|
|
344
|
-
data: InvoiceHistoryDocument[];
|
|
345
|
-
}
|
|
346
|
-
|
|
347
361
|
interface ValidationResult<T = any> {
|
|
348
362
|
isValid: boolean;
|
|
349
363
|
errors?: ValidationError[];
|
|
@@ -355,4 +369,4 @@ declare class DocumentValidator {
|
|
|
355
369
|
static formatErrors(errors: ValidationError[]): string[];
|
|
356
370
|
}
|
|
357
371
|
|
|
358
|
-
export { type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InvoiceExportDto, InvoiceHistoryExportDto, MerchantDetailsHeaderExportDto, type PageOptionsDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, TerminalsExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|
|
372
|
+
export { type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InvoiceExportDto, InvoiceHistoryExportDto, InvoiceUserExportDto, MerchantDetailsHeaderExportDto, type PageOptionsDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, TerminalsExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ declare const DocumentType: {
|
|
|
41
41
|
readonly REFUNDS_POS: "REFUNDS_POS";
|
|
42
42
|
readonly REFUNDS_INTERNAL_POS: "REFUNDS_INTERNAL_POS";
|
|
43
43
|
readonly POS_TRANSACTIONS: "POS_TRANSACTIONS";
|
|
44
|
+
readonly INVOICES: "INVOICES";
|
|
45
|
+
readonly INVOICE_USERS: "INVOICE_USERS";
|
|
44
46
|
};
|
|
45
47
|
type DocumentType = ValueOf<typeof DocumentType>;
|
|
46
48
|
|
|
@@ -104,6 +106,44 @@ declare class DocumentValidationError extends DocumentError {
|
|
|
104
106
|
getMessages(): string[];
|
|
105
107
|
}
|
|
106
108
|
|
|
109
|
+
declare class InvoiceDocument {
|
|
110
|
+
createdAt: string | Date;
|
|
111
|
+
paidAt: string | Date;
|
|
112
|
+
customerName: string;
|
|
113
|
+
customerPhone: string;
|
|
114
|
+
id: string;
|
|
115
|
+
merchantReference: string;
|
|
116
|
+
createdBy: string;
|
|
117
|
+
transactionId: string;
|
|
118
|
+
status: string;
|
|
119
|
+
amount: number | string;
|
|
120
|
+
paymentMethod: string;
|
|
121
|
+
}
|
|
122
|
+
declare class InvoiceHistoryDocument {
|
|
123
|
+
createdAt: string | Date;
|
|
124
|
+
action: string;
|
|
125
|
+
createdBy: string;
|
|
126
|
+
invoiceId: string;
|
|
127
|
+
paymentMethod: string;
|
|
128
|
+
paymentMethodBrand: string;
|
|
129
|
+
}
|
|
130
|
+
declare class InvoiceExportDto {
|
|
131
|
+
data: InvoiceDocument[];
|
|
132
|
+
}
|
|
133
|
+
declare class InvoiceHistoryExportDto {
|
|
134
|
+
data: InvoiceHistoryDocument[];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare class InvoiceUserDocument {
|
|
138
|
+
name: string;
|
|
139
|
+
role: string;
|
|
140
|
+
amount: number | string;
|
|
141
|
+
numberOfInvoices: number | string;
|
|
142
|
+
}
|
|
143
|
+
declare class InvoiceUserExportDto {
|
|
144
|
+
data: InvoiceUserDocument[];
|
|
145
|
+
}
|
|
146
|
+
|
|
107
147
|
declare class ExceptionDocument {
|
|
108
148
|
createdAt: string | Date;
|
|
109
149
|
merchantName: string;
|
|
@@ -314,36 +354,10 @@ declare const DocumentPayloadMap: {
|
|
|
314
354
|
readonly REFUNDS_INTERNAL_POS: typeof RefundsPOSExportDto;
|
|
315
355
|
readonly POS_TRANSACTIONS: typeof TransactionsPOSExportDto;
|
|
316
356
|
readonly TERMINALS: typeof TerminalsExportDto;
|
|
357
|
+
readonly INVOICES: typeof InvoiceExportDto;
|
|
358
|
+
readonly INVOICE_USERS: typeof InvoiceUserExportDto;
|
|
317
359
|
};
|
|
318
360
|
|
|
319
|
-
declare class InvoiceDocument {
|
|
320
|
-
createdAt: string | Date;
|
|
321
|
-
paidAt: string | Date;
|
|
322
|
-
customerName: string;
|
|
323
|
-
customerPhone: string;
|
|
324
|
-
id: string;
|
|
325
|
-
merchantReference: string;
|
|
326
|
-
createdBy: string;
|
|
327
|
-
transactionId: string;
|
|
328
|
-
status: string;
|
|
329
|
-
amount: number | string;
|
|
330
|
-
paymentMethod: string;
|
|
331
|
-
}
|
|
332
|
-
declare class InvoiceHistoryDocument {
|
|
333
|
-
createdAt: string | Date;
|
|
334
|
-
action: string;
|
|
335
|
-
createdBy: string;
|
|
336
|
-
invoiceId: string;
|
|
337
|
-
paymentMethod: string;
|
|
338
|
-
paymentMethodBrand: string;
|
|
339
|
-
}
|
|
340
|
-
declare class InvoiceExportDto {
|
|
341
|
-
data: InvoiceDocument[];
|
|
342
|
-
}
|
|
343
|
-
declare class InvoiceHistoryExportDto {
|
|
344
|
-
data: InvoiceHistoryDocument[];
|
|
345
|
-
}
|
|
346
|
-
|
|
347
361
|
interface ValidationResult<T = any> {
|
|
348
362
|
isValid: boolean;
|
|
349
363
|
errors?: ValidationError[];
|
|
@@ -355,4 +369,4 @@ declare class DocumentValidator {
|
|
|
355
369
|
static formatErrors(errors: ValidationError[]): string[];
|
|
356
370
|
}
|
|
357
371
|
|
|
358
|
-
export { type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InvoiceExportDto, InvoiceHistoryExportDto, MerchantDetailsHeaderExportDto, type PageOptionsDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, TerminalsExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|
|
372
|
+
export { type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InvoiceExportDto, InvoiceHistoryExportDto, InvoiceUserExportDto, MerchantDetailsHeaderExportDto, type PageOptionsDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, TerminalsExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|
package/dist/index.js
CHANGED
|
@@ -32,22 +32,19 @@ var DocumentType = {
|
|
|
32
32
|
VENDOR_LIST: "VENDOR_LIST",
|
|
33
33
|
VENDOR_SALES: "VENDOR_SALES",
|
|
34
34
|
EXCEPTIONS: "EXCEPTIONS",
|
|
35
|
+
// epos
|
|
35
36
|
TERMINALS: "TERMINALS",
|
|
36
37
|
REFUNDS_POS: "REFUNDS_POS",
|
|
37
38
|
REFUNDS_INTERNAL_POS: "REFUNDS_INTERNAL_POS",
|
|
38
|
-
POS_TRANSACTIONS: "POS_TRANSACTIONS"
|
|
39
|
+
POS_TRANSACTIONS: "POS_TRANSACTIONS",
|
|
39
40
|
// POS_TRANSACTIONS_INVALID: 'POS_TRANSACTIONS_INVALID',
|
|
41
|
+
// elinks
|
|
42
|
+
INVOICES: "INVOICES",
|
|
43
|
+
INVOICE_USERS: "INVOICE_USERS"
|
|
40
44
|
// MERCHANT_USERS: 'MERCHANT_USERS',
|
|
41
45
|
// INTERNAL_USERS: 'INTERNAL_USERS',
|
|
42
|
-
// BULK_INVOICE_CUSTOMERS: 'BULK_INVOICE_CUSTOMERS',
|
|
43
46
|
// USERS_AND_AGENTS: 'USERS_AND_AGENTS',
|
|
44
|
-
// CUSTOMERS: 'CUSTOMERS',
|
|
45
|
-
// TERMINAL: 'TERMINAL',
|
|
46
|
-
// INVOICES: 'INVOICES',
|
|
47
|
-
// INVOICE_HISTORY: 'INVOICE_HISTORY',
|
|
48
47
|
// USERS: 'USERS',
|
|
49
|
-
// UNPAID_INVOICES: 'UNPAID_INVOICES',
|
|
50
|
-
// BULK_INVOICES_INVALID: 'BULK_INVOICES_INVALID',
|
|
51
48
|
// BLACKLIST_INVALID: 'BLACKLIST_INVALID',
|
|
52
49
|
// BLACKLIST: 'BLACKLIST',
|
|
53
50
|
// PARTNERS: 'PARTNERS',
|
|
@@ -59,6 +56,147 @@ var FileFormat = {
|
|
|
59
56
|
CSV: "csv",
|
|
60
57
|
XLSX: "xlsx"
|
|
61
58
|
};
|
|
59
|
+
var InvoiceDocument = class {
|
|
60
|
+
createdAt;
|
|
61
|
+
paidAt;
|
|
62
|
+
customerName;
|
|
63
|
+
customerPhone;
|
|
64
|
+
id;
|
|
65
|
+
merchantReference;
|
|
66
|
+
createdBy;
|
|
67
|
+
transactionId = "";
|
|
68
|
+
status;
|
|
69
|
+
amount;
|
|
70
|
+
paymentMethod;
|
|
71
|
+
};
|
|
72
|
+
__decorateClass([
|
|
73
|
+
classValidator.IsNotEmpty()
|
|
74
|
+
], InvoiceDocument.prototype, "createdAt");
|
|
75
|
+
__decorateClass([
|
|
76
|
+
classValidator.IsNotEmpty()
|
|
77
|
+
], InvoiceDocument.prototype, "paidAt");
|
|
78
|
+
__decorateClass([
|
|
79
|
+
classValidator.IsString(),
|
|
80
|
+
classValidator.IsNotEmpty()
|
|
81
|
+
], InvoiceDocument.prototype, "customerName");
|
|
82
|
+
__decorateClass([
|
|
83
|
+
classValidator.IsString(),
|
|
84
|
+
classValidator.IsNotEmpty()
|
|
85
|
+
], InvoiceDocument.prototype, "customerPhone");
|
|
86
|
+
__decorateClass([
|
|
87
|
+
classValidator.IsString(),
|
|
88
|
+
classValidator.IsNotEmpty()
|
|
89
|
+
], InvoiceDocument.prototype, "id");
|
|
90
|
+
__decorateClass([
|
|
91
|
+
classValidator.IsString(),
|
|
92
|
+
classValidator.IsNotEmpty()
|
|
93
|
+
], InvoiceDocument.prototype, "merchantReference");
|
|
94
|
+
__decorateClass([
|
|
95
|
+
classValidator.IsString(),
|
|
96
|
+
classValidator.IsNotEmpty()
|
|
97
|
+
], InvoiceDocument.prototype, "createdBy");
|
|
98
|
+
__decorateClass([
|
|
99
|
+
classValidator.IsString(),
|
|
100
|
+
classValidator.IsOptional()
|
|
101
|
+
], InvoiceDocument.prototype, "transactionId");
|
|
102
|
+
__decorateClass([
|
|
103
|
+
classValidator.IsString(),
|
|
104
|
+
classValidator.IsNotEmpty()
|
|
105
|
+
], InvoiceDocument.prototype, "status");
|
|
106
|
+
__decorateClass([
|
|
107
|
+
classTransformer.Transform(({ value }) => Number(value).toFixed(3)),
|
|
108
|
+
classValidator.IsNumberString(),
|
|
109
|
+
classValidator.IsNotEmpty()
|
|
110
|
+
], InvoiceDocument.prototype, "amount");
|
|
111
|
+
__decorateClass([
|
|
112
|
+
classValidator.IsString(),
|
|
113
|
+
classValidator.IsNotEmpty()
|
|
114
|
+
], InvoiceDocument.prototype, "paymentMethod");
|
|
115
|
+
var InvoiceHistoryDocument = class {
|
|
116
|
+
createdAt;
|
|
117
|
+
action;
|
|
118
|
+
createdBy;
|
|
119
|
+
invoiceId;
|
|
120
|
+
paymentMethod;
|
|
121
|
+
paymentMethodBrand;
|
|
122
|
+
};
|
|
123
|
+
__decorateClass([
|
|
124
|
+
classValidator.IsNotEmpty()
|
|
125
|
+
], InvoiceHistoryDocument.prototype, "createdAt");
|
|
126
|
+
__decorateClass([
|
|
127
|
+
classValidator.IsString(),
|
|
128
|
+
classValidator.IsNotEmpty()
|
|
129
|
+
], InvoiceHistoryDocument.prototype, "action");
|
|
130
|
+
__decorateClass([
|
|
131
|
+
classValidator.IsString(),
|
|
132
|
+
classValidator.IsNotEmpty()
|
|
133
|
+
], InvoiceHistoryDocument.prototype, "createdBy");
|
|
134
|
+
__decorateClass([
|
|
135
|
+
classValidator.IsString(),
|
|
136
|
+
classValidator.IsNotEmpty()
|
|
137
|
+
], InvoiceHistoryDocument.prototype, "invoiceId");
|
|
138
|
+
__decorateClass([
|
|
139
|
+
classValidator.IsString(),
|
|
140
|
+
classValidator.IsNotEmpty()
|
|
141
|
+
], InvoiceHistoryDocument.prototype, "paymentMethod");
|
|
142
|
+
__decorateClass([
|
|
143
|
+
classValidator.IsString(),
|
|
144
|
+
classValidator.IsOptional()
|
|
145
|
+
], InvoiceHistoryDocument.prototype, "paymentMethodBrand");
|
|
146
|
+
var InvoiceExportDto = class {
|
|
147
|
+
data;
|
|
148
|
+
};
|
|
149
|
+
__decorateClass([
|
|
150
|
+
classValidator.IsArray(),
|
|
151
|
+
classValidator.ValidateNested({ each: true }),
|
|
152
|
+
classTransformer.Type(() => InvoiceDocument),
|
|
153
|
+
classValidator.IsNotEmpty(),
|
|
154
|
+
classValidator.IsDefined()
|
|
155
|
+
], InvoiceExportDto.prototype, "data");
|
|
156
|
+
var InvoiceHistoryExportDto = class {
|
|
157
|
+
data;
|
|
158
|
+
};
|
|
159
|
+
__decorateClass([
|
|
160
|
+
classValidator.IsArray(),
|
|
161
|
+
classValidator.ValidateNested({ each: true }),
|
|
162
|
+
classTransformer.Type(() => InvoiceHistoryDocument),
|
|
163
|
+
classValidator.IsNotEmpty(),
|
|
164
|
+
classValidator.IsDefined()
|
|
165
|
+
], InvoiceHistoryExportDto.prototype, "data");
|
|
166
|
+
var InvoiceUserDocument = class {
|
|
167
|
+
name;
|
|
168
|
+
role;
|
|
169
|
+
amount;
|
|
170
|
+
numberOfInvoices;
|
|
171
|
+
};
|
|
172
|
+
__decorateClass([
|
|
173
|
+
classValidator.IsString(),
|
|
174
|
+
classValidator.IsNotEmpty()
|
|
175
|
+
], InvoiceUserDocument.prototype, "name");
|
|
176
|
+
__decorateClass([
|
|
177
|
+
classValidator.IsString(),
|
|
178
|
+
classValidator.IsNotEmpty()
|
|
179
|
+
], InvoiceUserDocument.prototype, "role");
|
|
180
|
+
__decorateClass([
|
|
181
|
+
classTransformer.Transform(({ value }) => Number(value).toFixed(3)),
|
|
182
|
+
classValidator.IsNumberString(),
|
|
183
|
+
classValidator.IsNotEmpty()
|
|
184
|
+
], InvoiceUserDocument.prototype, "amount");
|
|
185
|
+
__decorateClass([
|
|
186
|
+
classTransformer.Transform(({ value }) => Number(value)),
|
|
187
|
+
classValidator.IsNumberString(),
|
|
188
|
+
classValidator.IsNotEmpty()
|
|
189
|
+
], InvoiceUserDocument.prototype, "numberOfInvoices");
|
|
190
|
+
var InvoiceUserExportDto = class {
|
|
191
|
+
data;
|
|
192
|
+
};
|
|
193
|
+
__decorateClass([
|
|
194
|
+
classValidator.IsArray(),
|
|
195
|
+
classValidator.ValidateNested({ each: true }),
|
|
196
|
+
classTransformer.Type(() => InvoiceUserDocument),
|
|
197
|
+
classValidator.IsNotEmpty(),
|
|
198
|
+
classValidator.IsDefined()
|
|
199
|
+
], InvoiceUserExportDto.prototype, "data");
|
|
62
200
|
var ExceptionDocument = class {
|
|
63
201
|
createdAt;
|
|
64
202
|
merchantName;
|
|
@@ -802,8 +940,10 @@ var DocumentPayloadMap = {
|
|
|
802
940
|
[DocumentType.REFUNDS_POS]: RefundsPOSExportDto,
|
|
803
941
|
[DocumentType.REFUNDS_INTERNAL_POS]: RefundsPOSExportDto,
|
|
804
942
|
[DocumentType.POS_TRANSACTIONS]: TransactionsPOSExportDto,
|
|
805
|
-
[DocumentType.TERMINALS]: TerminalsExportDto
|
|
943
|
+
[DocumentType.TERMINALS]: TerminalsExportDto,
|
|
806
944
|
// elinks microservice dtos
|
|
945
|
+
[DocumentType.INVOICES]: InvoiceExportDto,
|
|
946
|
+
[DocumentType.INVOICE_USERS]: InvoiceUserExportDto
|
|
807
947
|
};
|
|
808
948
|
|
|
809
949
|
// src/validators/document-validator.ts
|
|
@@ -1120,113 +1260,6 @@ var DocumentPathResponseDto = class {
|
|
|
1120
1260
|
this.s3Result = commandResult;
|
|
1121
1261
|
}
|
|
1122
1262
|
};
|
|
1123
|
-
var InvoiceDocument = class {
|
|
1124
|
-
createdAt;
|
|
1125
|
-
paidAt;
|
|
1126
|
-
customerName;
|
|
1127
|
-
customerPhone;
|
|
1128
|
-
id;
|
|
1129
|
-
merchantReference;
|
|
1130
|
-
createdBy;
|
|
1131
|
-
transactionId = "";
|
|
1132
|
-
status;
|
|
1133
|
-
amount;
|
|
1134
|
-
paymentMethod;
|
|
1135
|
-
};
|
|
1136
|
-
__decorateClass([
|
|
1137
|
-
classValidator.IsNotEmpty()
|
|
1138
|
-
], InvoiceDocument.prototype, "createdAt");
|
|
1139
|
-
__decorateClass([
|
|
1140
|
-
classValidator.IsNotEmpty()
|
|
1141
|
-
], InvoiceDocument.prototype, "paidAt");
|
|
1142
|
-
__decorateClass([
|
|
1143
|
-
classValidator.IsString(),
|
|
1144
|
-
classValidator.IsNotEmpty()
|
|
1145
|
-
], InvoiceDocument.prototype, "customerName");
|
|
1146
|
-
__decorateClass([
|
|
1147
|
-
classValidator.IsString(),
|
|
1148
|
-
classValidator.IsNotEmpty()
|
|
1149
|
-
], InvoiceDocument.prototype, "customerPhone");
|
|
1150
|
-
__decorateClass([
|
|
1151
|
-
classValidator.IsString(),
|
|
1152
|
-
classValidator.IsNotEmpty()
|
|
1153
|
-
], InvoiceDocument.prototype, "id");
|
|
1154
|
-
__decorateClass([
|
|
1155
|
-
classValidator.IsString(),
|
|
1156
|
-
classValidator.IsNotEmpty()
|
|
1157
|
-
], InvoiceDocument.prototype, "merchantReference");
|
|
1158
|
-
__decorateClass([
|
|
1159
|
-
classValidator.IsString(),
|
|
1160
|
-
classValidator.IsNotEmpty()
|
|
1161
|
-
], InvoiceDocument.prototype, "createdBy");
|
|
1162
|
-
__decorateClass([
|
|
1163
|
-
classValidator.IsString(),
|
|
1164
|
-
classValidator.IsOptional()
|
|
1165
|
-
], InvoiceDocument.prototype, "transactionId");
|
|
1166
|
-
__decorateClass([
|
|
1167
|
-
classValidator.IsString(),
|
|
1168
|
-
classValidator.IsNotEmpty()
|
|
1169
|
-
], InvoiceDocument.prototype, "status");
|
|
1170
|
-
__decorateClass([
|
|
1171
|
-
classTransformer.Transform(({ value }) => Number(value).toFixed(3)),
|
|
1172
|
-
classValidator.IsNumberString(),
|
|
1173
|
-
classValidator.IsNotEmpty()
|
|
1174
|
-
], InvoiceDocument.prototype, "amount");
|
|
1175
|
-
__decorateClass([
|
|
1176
|
-
classValidator.IsString(),
|
|
1177
|
-
classValidator.IsNotEmpty()
|
|
1178
|
-
], InvoiceDocument.prototype, "paymentMethod");
|
|
1179
|
-
var InvoiceHistoryDocument = class {
|
|
1180
|
-
createdAt;
|
|
1181
|
-
action;
|
|
1182
|
-
createdBy;
|
|
1183
|
-
invoiceId;
|
|
1184
|
-
paymentMethod;
|
|
1185
|
-
paymentMethodBrand;
|
|
1186
|
-
};
|
|
1187
|
-
__decorateClass([
|
|
1188
|
-
classValidator.IsNotEmpty()
|
|
1189
|
-
], InvoiceHistoryDocument.prototype, "createdAt");
|
|
1190
|
-
__decorateClass([
|
|
1191
|
-
classValidator.IsString(),
|
|
1192
|
-
classValidator.IsNotEmpty()
|
|
1193
|
-
], InvoiceHistoryDocument.prototype, "action");
|
|
1194
|
-
__decorateClass([
|
|
1195
|
-
classValidator.IsString(),
|
|
1196
|
-
classValidator.IsNotEmpty()
|
|
1197
|
-
], InvoiceHistoryDocument.prototype, "createdBy");
|
|
1198
|
-
__decorateClass([
|
|
1199
|
-
classValidator.IsString(),
|
|
1200
|
-
classValidator.IsNotEmpty()
|
|
1201
|
-
], InvoiceHistoryDocument.prototype, "invoiceId");
|
|
1202
|
-
__decorateClass([
|
|
1203
|
-
classValidator.IsString(),
|
|
1204
|
-
classValidator.IsNotEmpty()
|
|
1205
|
-
], InvoiceHistoryDocument.prototype, "paymentMethod");
|
|
1206
|
-
__decorateClass([
|
|
1207
|
-
classValidator.IsString(),
|
|
1208
|
-
classValidator.IsOptional()
|
|
1209
|
-
], InvoiceHistoryDocument.prototype, "paymentMethodBrand");
|
|
1210
|
-
var InvoiceExportDto = class {
|
|
1211
|
-
data;
|
|
1212
|
-
};
|
|
1213
|
-
__decorateClass([
|
|
1214
|
-
classValidator.IsArray(),
|
|
1215
|
-
classValidator.ValidateNested({ each: true }),
|
|
1216
|
-
classTransformer.Type(() => InvoiceDocument),
|
|
1217
|
-
classValidator.IsNotEmpty(),
|
|
1218
|
-
classValidator.IsDefined()
|
|
1219
|
-
], InvoiceExportDto.prototype, "data");
|
|
1220
|
-
var InvoiceHistoryExportDto = class {
|
|
1221
|
-
data;
|
|
1222
|
-
};
|
|
1223
|
-
__decorateClass([
|
|
1224
|
-
classValidator.IsArray(),
|
|
1225
|
-
classValidator.ValidateNested({ each: true }),
|
|
1226
|
-
classTransformer.Type(() => InvoiceHistoryDocument),
|
|
1227
|
-
classValidator.IsNotEmpty(),
|
|
1228
|
-
classValidator.IsDefined()
|
|
1229
|
-
], InvoiceHistoryExportDto.prototype, "data");
|
|
1230
1263
|
|
|
1231
1264
|
exports.DateRangeExportDto = DateRangeExportDto;
|
|
1232
1265
|
exports.DocumentError = DocumentError;
|
|
@@ -1243,6 +1276,7 @@ exports.ExceptionExportDto = ExceptionExportDto;
|
|
|
1243
1276
|
exports.FileFormat = FileFormat;
|
|
1244
1277
|
exports.InvoiceExportDto = InvoiceExportDto;
|
|
1245
1278
|
exports.InvoiceHistoryExportDto = InvoiceHistoryExportDto;
|
|
1279
|
+
exports.InvoiceUserExportDto = InvoiceUserExportDto;
|
|
1246
1280
|
exports.MerchantDetailsHeaderExportDto = MerchantDetailsHeaderExportDto;
|
|
1247
1281
|
exports.PaymentMethodsExportDto = PaymentMethodsExportDto;
|
|
1248
1282
|
exports.PayoutsExportDto = PayoutsExportDto;
|