ecom-documents 1.0.6 → 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 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;
@@ -282,6 +322,7 @@ declare class TerminalsExportDto {
282
322
 
283
323
  declare class TransactionPOSDocument {
284
324
  createdAt: string | Date;
325
+ paidAt: string | Date;
285
326
  id: string;
286
327
  ecomReference: string;
287
328
  merchantName?: string;
@@ -313,36 +354,10 @@ declare const DocumentPayloadMap: {
313
354
  readonly REFUNDS_INTERNAL_POS: typeof RefundsPOSExportDto;
314
355
  readonly POS_TRANSACTIONS: typeof TransactionsPOSExportDto;
315
356
  readonly TERMINALS: typeof TerminalsExportDto;
357
+ readonly INVOICES: typeof InvoiceExportDto;
358
+ readonly INVOICE_USERS: typeof InvoiceUserExportDto;
316
359
  };
317
360
 
318
- declare class InvoiceDocument {
319
- createdAt: string | Date;
320
- paidAt: string | Date;
321
- customerName: string;
322
- customerPhone: string;
323
- id: string;
324
- merchantReference: string;
325
- createdBy: string;
326
- transactionId: string;
327
- status: string;
328
- amount: number | string;
329
- paymentMethod: string;
330
- }
331
- declare class InvoiceHistoryDocument {
332
- createdAt: string | Date;
333
- action: string;
334
- createdBy: string;
335
- invoiceId: string;
336
- paymentMethod: string;
337
- paymentMethodBrand: string;
338
- }
339
- declare class InvoiceExportDto {
340
- data: InvoiceDocument[];
341
- }
342
- declare class InvoiceHistoryExportDto {
343
- data: InvoiceHistoryDocument[];
344
- }
345
-
346
361
  interface ValidationResult<T = any> {
347
362
  isValid: boolean;
348
363
  errors?: ValidationError[];
@@ -354,4 +369,4 @@ declare class DocumentValidator {
354
369
  static formatErrors(errors: ValidationError[]): string[];
355
370
  }
356
371
 
357
- 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;
@@ -282,6 +322,7 @@ declare class TerminalsExportDto {
282
322
 
283
323
  declare class TransactionPOSDocument {
284
324
  createdAt: string | Date;
325
+ paidAt: string | Date;
285
326
  id: string;
286
327
  ecomReference: string;
287
328
  merchantName?: string;
@@ -313,36 +354,10 @@ declare const DocumentPayloadMap: {
313
354
  readonly REFUNDS_INTERNAL_POS: typeof RefundsPOSExportDto;
314
355
  readonly POS_TRANSACTIONS: typeof TransactionsPOSExportDto;
315
356
  readonly TERMINALS: typeof TerminalsExportDto;
357
+ readonly INVOICES: typeof InvoiceExportDto;
358
+ readonly INVOICE_USERS: typeof InvoiceUserExportDto;
316
359
  };
317
360
 
318
- declare class InvoiceDocument {
319
- createdAt: string | Date;
320
- paidAt: string | Date;
321
- customerName: string;
322
- customerPhone: string;
323
- id: string;
324
- merchantReference: string;
325
- createdBy: string;
326
- transactionId: string;
327
- status: string;
328
- amount: number | string;
329
- paymentMethod: string;
330
- }
331
- declare class InvoiceHistoryDocument {
332
- createdAt: string | Date;
333
- action: string;
334
- createdBy: string;
335
- invoiceId: string;
336
- paymentMethod: string;
337
- paymentMethodBrand: string;
338
- }
339
- declare class InvoiceExportDto {
340
- data: InvoiceDocument[];
341
- }
342
- declare class InvoiceHistoryExportDto {
343
- data: InvoiceHistoryDocument[];
344
- }
345
-
346
361
  interface ValidationResult<T = any> {
347
362
  isValid: boolean;
348
363
  errors?: ValidationError[];
@@ -354,4 +369,4 @@ declare class DocumentValidator {
354
369
  static formatErrors(errors: ValidationError[]): string[];
355
370
  }
356
371
 
357
- 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;
@@ -721,6 +859,7 @@ __decorateClass([
721
859
  ], TerminalsExportDto.prototype, "data");
722
860
  var TransactionPOSDocument = class {
723
861
  createdAt;
862
+ paidAt;
724
863
  id;
725
864
  ecomReference;
726
865
  merchantName;
@@ -734,6 +873,9 @@ var TransactionPOSDocument = class {
734
873
  __decorateClass([
735
874
  classValidator.IsNotEmpty()
736
875
  ], TransactionPOSDocument.prototype, "createdAt");
876
+ __decorateClass([
877
+ classValidator.IsNotEmpty()
878
+ ], TransactionPOSDocument.prototype, "paidAt");
737
879
  __decorateClass([
738
880
  classValidator.IsNotEmpty()
739
881
  ], TransactionPOSDocument.prototype, "id");
@@ -798,8 +940,10 @@ var DocumentPayloadMap = {
798
940
  [DocumentType.REFUNDS_POS]: RefundsPOSExportDto,
799
941
  [DocumentType.REFUNDS_INTERNAL_POS]: RefundsPOSExportDto,
800
942
  [DocumentType.POS_TRANSACTIONS]: TransactionsPOSExportDto,
801
- [DocumentType.TERMINALS]: TerminalsExportDto
943
+ [DocumentType.TERMINALS]: TerminalsExportDto,
802
944
  // elinks microservice dtos
945
+ [DocumentType.INVOICES]: InvoiceExportDto,
946
+ [DocumentType.INVOICE_USERS]: InvoiceUserExportDto
803
947
  };
804
948
 
805
949
  // src/validators/document-validator.ts
@@ -1116,113 +1260,6 @@ var DocumentPathResponseDto = class {
1116
1260
  this.s3Result = commandResult;
1117
1261
  }
1118
1262
  };
1119
- var InvoiceDocument = class {
1120
- createdAt;
1121
- paidAt;
1122
- customerName;
1123
- customerPhone;
1124
- id;
1125
- merchantReference;
1126
- createdBy;
1127
- transactionId = "";
1128
- status;
1129
- amount;
1130
- paymentMethod;
1131
- };
1132
- __decorateClass([
1133
- classValidator.IsNotEmpty()
1134
- ], InvoiceDocument.prototype, "createdAt");
1135
- __decorateClass([
1136
- classValidator.IsNotEmpty()
1137
- ], InvoiceDocument.prototype, "paidAt");
1138
- __decorateClass([
1139
- classValidator.IsString(),
1140
- classValidator.IsNotEmpty()
1141
- ], InvoiceDocument.prototype, "customerName");
1142
- __decorateClass([
1143
- classValidator.IsString(),
1144
- classValidator.IsNotEmpty()
1145
- ], InvoiceDocument.prototype, "customerPhone");
1146
- __decorateClass([
1147
- classValidator.IsString(),
1148
- classValidator.IsNotEmpty()
1149
- ], InvoiceDocument.prototype, "id");
1150
- __decorateClass([
1151
- classValidator.IsString(),
1152
- classValidator.IsNotEmpty()
1153
- ], InvoiceDocument.prototype, "merchantReference");
1154
- __decorateClass([
1155
- classValidator.IsString(),
1156
- classValidator.IsNotEmpty()
1157
- ], InvoiceDocument.prototype, "createdBy");
1158
- __decorateClass([
1159
- classValidator.IsString(),
1160
- classValidator.IsOptional()
1161
- ], InvoiceDocument.prototype, "transactionId");
1162
- __decorateClass([
1163
- classValidator.IsString(),
1164
- classValidator.IsNotEmpty()
1165
- ], InvoiceDocument.prototype, "status");
1166
- __decorateClass([
1167
- classTransformer.Transform(({ value }) => Number(value).toFixed(3)),
1168
- classValidator.IsNumberString(),
1169
- classValidator.IsNotEmpty()
1170
- ], InvoiceDocument.prototype, "amount");
1171
- __decorateClass([
1172
- classValidator.IsString(),
1173
- classValidator.IsNotEmpty()
1174
- ], InvoiceDocument.prototype, "paymentMethod");
1175
- var InvoiceHistoryDocument = class {
1176
- createdAt;
1177
- action;
1178
- createdBy;
1179
- invoiceId;
1180
- paymentMethod;
1181
- paymentMethodBrand;
1182
- };
1183
- __decorateClass([
1184
- classValidator.IsNotEmpty()
1185
- ], InvoiceHistoryDocument.prototype, "createdAt");
1186
- __decorateClass([
1187
- classValidator.IsString(),
1188
- classValidator.IsNotEmpty()
1189
- ], InvoiceHistoryDocument.prototype, "action");
1190
- __decorateClass([
1191
- classValidator.IsString(),
1192
- classValidator.IsNotEmpty()
1193
- ], InvoiceHistoryDocument.prototype, "createdBy");
1194
- __decorateClass([
1195
- classValidator.IsString(),
1196
- classValidator.IsNotEmpty()
1197
- ], InvoiceHistoryDocument.prototype, "invoiceId");
1198
- __decorateClass([
1199
- classValidator.IsString(),
1200
- classValidator.IsNotEmpty()
1201
- ], InvoiceHistoryDocument.prototype, "paymentMethod");
1202
- __decorateClass([
1203
- classValidator.IsString(),
1204
- classValidator.IsOptional()
1205
- ], InvoiceHistoryDocument.prototype, "paymentMethodBrand");
1206
- var InvoiceExportDto = class {
1207
- data;
1208
- };
1209
- __decorateClass([
1210
- classValidator.IsArray(),
1211
- classValidator.ValidateNested({ each: true }),
1212
- classTransformer.Type(() => InvoiceDocument),
1213
- classValidator.IsNotEmpty(),
1214
- classValidator.IsDefined()
1215
- ], InvoiceExportDto.prototype, "data");
1216
- var InvoiceHistoryExportDto = class {
1217
- data;
1218
- };
1219
- __decorateClass([
1220
- classValidator.IsArray(),
1221
- classValidator.ValidateNested({ each: true }),
1222
- classTransformer.Type(() => InvoiceHistoryDocument),
1223
- classValidator.IsNotEmpty(),
1224
- classValidator.IsDefined()
1225
- ], InvoiceHistoryExportDto.prototype, "data");
1226
1263
 
1227
1264
  exports.DateRangeExportDto = DateRangeExportDto;
1228
1265
  exports.DocumentError = DocumentError;
@@ -1239,6 +1276,7 @@ exports.ExceptionExportDto = ExceptionExportDto;
1239
1276
  exports.FileFormat = FileFormat;
1240
1277
  exports.InvoiceExportDto = InvoiceExportDto;
1241
1278
  exports.InvoiceHistoryExportDto = InvoiceHistoryExportDto;
1279
+ exports.InvoiceUserExportDto = InvoiceUserExportDto;
1242
1280
  exports.MerchantDetailsHeaderExportDto = MerchantDetailsHeaderExportDto;
1243
1281
  exports.PaymentMethodsExportDto = PaymentMethodsExportDto;
1244
1282
  exports.PayoutsExportDto = PayoutsExportDto;