ecom-documents 1.0.16 → 1.0.18
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 +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +3925 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3925 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,6 +41,7 @@ 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 POS_STATEMENTS: "POS_STATEMENTS";
|
|
44
45
|
readonly INVOICES: "INVOICES";
|
|
45
46
|
readonly INVOICE_USERS: "INVOICE_USERS";
|
|
46
47
|
readonly INVOICE_BULK_INVALID: "INVOICE_BULK_INVALID";
|
|
@@ -87,6 +88,7 @@ declare class DocumentPathResponseDto {
|
|
|
87
88
|
|
|
88
89
|
declare class DocumentExportClient {
|
|
89
90
|
client: ReturnType<typeof axios.create>;
|
|
91
|
+
documentMSCommunicationKey: string;
|
|
90
92
|
constructor(documentMsBaseUrl: string, documentMSCommunicationKey: string);
|
|
91
93
|
generateDocument(documentFormat: FileFormat, documentType: DocumentType, dateRange: DateRangeExportDto, payload: {
|
|
92
94
|
data: object[];
|
|
@@ -337,6 +339,23 @@ declare class RefundsPOSExportDto {
|
|
|
337
339
|
data: RefundPOSDocument[];
|
|
338
340
|
}
|
|
339
341
|
|
|
342
|
+
declare class StatementPOSDocument {
|
|
343
|
+
createdAt: Date | string;
|
|
344
|
+
transactionId: string;
|
|
345
|
+
ecomId: string;
|
|
346
|
+
terminalId: string;
|
|
347
|
+
terminalName?: string;
|
|
348
|
+
authId: string;
|
|
349
|
+
cardNumber?: string;
|
|
350
|
+
paymentMethod: string;
|
|
351
|
+
creditAmount: number | string;
|
|
352
|
+
debitAmount: number | string;
|
|
353
|
+
settlementAmount: number | string;
|
|
354
|
+
}
|
|
355
|
+
declare class StatementsPOSExportDto {
|
|
356
|
+
data: StatementPOSDocument[];
|
|
357
|
+
}
|
|
358
|
+
|
|
340
359
|
declare class TerminalDocument {
|
|
341
360
|
id: string;
|
|
342
361
|
mid: string;
|
|
@@ -440,6 +459,7 @@ declare const DocumentPayloadMap: {
|
|
|
440
459
|
readonly REFUNDS_INTERNAL_POS: typeof RefundsPOSExportDto;
|
|
441
460
|
readonly POS_TRANSACTIONS: typeof TransactionsPOSExportDto;
|
|
442
461
|
readonly TERMINALS: typeof TerminalsExportDto;
|
|
462
|
+
readonly POS_STATEMENTS: typeof StatementsPOSExportDto;
|
|
443
463
|
readonly INVOICES: typeof InvoiceExportDto;
|
|
444
464
|
readonly INVOICE_USERS: typeof InvoiceUserExportDto;
|
|
445
465
|
readonly INVOICE_BULK_INVALID: typeof InvoiceBulkInvalidExportDto;
|
|
@@ -461,4 +481,4 @@ declare class DocumentValidator {
|
|
|
461
481
|
static formatErrors(errors: ValidationError[]): string[];
|
|
462
482
|
}
|
|
463
483
|
|
|
464
|
-
export { BlackListExportDto, BlackListInvalidExportDto, type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InternalUsersExportDto, InvoiceBulkInvalidExportDto, InvoiceExportDto, InvoiceHistoryExportDto, InvoiceUserExportDto, MerchantDetailsHeaderExportDto, MerchantUsersExportDto, type PageOptionsDto, PartnerExportDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, TerminalsExportDto, TransactionPOSInvalidExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|
|
484
|
+
export { BlackListExportDto, BlackListInvalidExportDto, type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InternalUsersExportDto, InvoiceBulkInvalidExportDto, InvoiceExportDto, InvoiceHistoryExportDto, InvoiceUserExportDto, MerchantDetailsHeaderExportDto, MerchantUsersExportDto, type PageOptionsDto, PartnerExportDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, StatementsPOSExportDto, TerminalsExportDto, TransactionPOSInvalidExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ 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 POS_STATEMENTS: "POS_STATEMENTS";
|
|
44
45
|
readonly INVOICES: "INVOICES";
|
|
45
46
|
readonly INVOICE_USERS: "INVOICE_USERS";
|
|
46
47
|
readonly INVOICE_BULK_INVALID: "INVOICE_BULK_INVALID";
|
|
@@ -87,6 +88,7 @@ declare class DocumentPathResponseDto {
|
|
|
87
88
|
|
|
88
89
|
declare class DocumentExportClient {
|
|
89
90
|
client: ReturnType<typeof axios.create>;
|
|
91
|
+
documentMSCommunicationKey: string;
|
|
90
92
|
constructor(documentMsBaseUrl: string, documentMSCommunicationKey: string);
|
|
91
93
|
generateDocument(documentFormat: FileFormat, documentType: DocumentType, dateRange: DateRangeExportDto, payload: {
|
|
92
94
|
data: object[];
|
|
@@ -337,6 +339,23 @@ declare class RefundsPOSExportDto {
|
|
|
337
339
|
data: RefundPOSDocument[];
|
|
338
340
|
}
|
|
339
341
|
|
|
342
|
+
declare class StatementPOSDocument {
|
|
343
|
+
createdAt: Date | string;
|
|
344
|
+
transactionId: string;
|
|
345
|
+
ecomId: string;
|
|
346
|
+
terminalId: string;
|
|
347
|
+
terminalName?: string;
|
|
348
|
+
authId: string;
|
|
349
|
+
cardNumber?: string;
|
|
350
|
+
paymentMethod: string;
|
|
351
|
+
creditAmount: number | string;
|
|
352
|
+
debitAmount: number | string;
|
|
353
|
+
settlementAmount: number | string;
|
|
354
|
+
}
|
|
355
|
+
declare class StatementsPOSExportDto {
|
|
356
|
+
data: StatementPOSDocument[];
|
|
357
|
+
}
|
|
358
|
+
|
|
340
359
|
declare class TerminalDocument {
|
|
341
360
|
id: string;
|
|
342
361
|
mid: string;
|
|
@@ -440,6 +459,7 @@ declare const DocumentPayloadMap: {
|
|
|
440
459
|
readonly REFUNDS_INTERNAL_POS: typeof RefundsPOSExportDto;
|
|
441
460
|
readonly POS_TRANSACTIONS: typeof TransactionsPOSExportDto;
|
|
442
461
|
readonly TERMINALS: typeof TerminalsExportDto;
|
|
462
|
+
readonly POS_STATEMENTS: typeof StatementsPOSExportDto;
|
|
443
463
|
readonly INVOICES: typeof InvoiceExportDto;
|
|
444
464
|
readonly INVOICE_USERS: typeof InvoiceUserExportDto;
|
|
445
465
|
readonly INVOICE_BULK_INVALID: typeof InvoiceBulkInvalidExportDto;
|
|
@@ -461,4 +481,4 @@ declare class DocumentValidator {
|
|
|
461
481
|
static formatErrors(errors: ValidationError[]): string[];
|
|
462
482
|
}
|
|
463
483
|
|
|
464
|
-
export { BlackListExportDto, BlackListInvalidExportDto, type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InternalUsersExportDto, InvoiceBulkInvalidExportDto, InvoiceExportDto, InvoiceHistoryExportDto, InvoiceUserExportDto, MerchantDetailsHeaderExportDto, MerchantUsersExportDto, type PageOptionsDto, PartnerExportDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, TerminalsExportDto, TransactionPOSInvalidExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|
|
484
|
+
export { BlackListExportDto, BlackListInvalidExportDto, type ChunkedFetchConfig, DateRangeExportDto, DocumentError, DocumentExportClient, DocumentGenerationError, DocumentGenerationRequestDto, DocumentNetworkError, DocumentPathResponseDto, DocumentPayloadMap, DocumentType, DocumentValidationError, DocumentValidator, ExceptionExportDto, FileFormat, InternalUsersExportDto, InvoiceBulkInvalidExportDto, InvoiceExportDto, InvoiceHistoryExportDto, InvoiceUserExportDto, MerchantDetailsHeaderExportDto, MerchantUsersExportDto, type PageOptionsDto, PartnerExportDto, PaymentMethodsExportDto, PayoutsExportDto, ProfitFeesExportDto, RefundBaseDto, RefundsExportDto, RefundsPOSExportDto, SettlementsExportDto, StatementsExportDto, StatementsPOSExportDto, TerminalsExportDto, TransactionPOSInvalidExportDto, TransactionsExportDto, TransactionsPOSExportDto, type ValidationResult, type ValueOf, VendorListExportDto, VendorSalesExportDto, fetchDBQueryInChunks, maskAccountNumber };
|