UNPKG

internetmarke

Version:

A node implementation to use the Internetmarke web service of Deutsche Post.

40 lines (39 loc) 985 B
import { Amount } from '../utils/amount'; interface JournalBaseOptions { offset?: number; rows?: number; } export interface JournalDays extends JournalBaseOptions { days: number; } export interface JournalRange extends JournalBaseOptions { startDate: Date; endDate: Date; } export declare type JournalOptions = JournalRange | JournalDays; export declare enum JournalEntryType { Payment = "PAYMENT", Transfer = "TRANSFER" } export declare enum JournalEntryState { Prepared = "PREPARED", Executed = "EXECUTED" } export interface Journal { journalEntries: JournalEntry[]; newBalance: Amount; oldBalance: Amount; startDate: Date; endDate: Date; } export interface JournalEntry { type: JournalEntryType; state: JournalEntryState; amount: Amount; date: Date; shopOrderId: number; accountText: string; channel: string; } export declare const parseJournalEntry: (data: any) => JournalEntry | null; export {};