feat(core): Add support for CI workflows and update gitignore
This commit is contained in:
1
ts/spendesk/interfaces/index.ts
Normal file
1
ts/spendesk/interfaces/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './interface.spendesktransaction';
|
55
ts/spendesk/interfaces/interface.spendesktransaction.ts
Normal file
55
ts/spendesk/interfaces/interface.spendesktransaction.ts
Normal file
@ -0,0 +1,55 @@
|
||||
import * as plugins from '../csv-spendesk.plugins';
|
||||
|
||||
export type TAvailableCurrencies = 'EUR';
|
||||
export type TPaymentState = 'Settled';
|
||||
export type TPaymentType = 'Load' | 'Credit' | 'Payment' | 'FXfee';
|
||||
|
||||
export interface ISpendeskOriginalTransaction {
|
||||
simpleTransaction: plugins.tsclass.ITransaction;
|
||||
original: any;
|
||||
'Payment date': string;
|
||||
'Settlement date': string;
|
||||
Month: string;
|
||||
Payer: string;
|
||||
Team: string;
|
||||
Description: string;
|
||||
Supplier: string;
|
||||
'Expense account': string;
|
||||
'Payment method': string;
|
||||
Type: string;
|
||||
// 'Local amount': number;
|
||||
// 'Local currency': 'EUR';
|
||||
Debit: string;
|
||||
Credit: string;
|
||||
Currency: string;
|
||||
VAT: string;
|
||||
vatPercentage?: string;
|
||||
State: string;
|
||||
'Receipt?': string;
|
||||
'Receipt name(s)': '';
|
||||
}
|
||||
|
||||
export interface ISpendeskTransaction {
|
||||
simpleTransaction?: plugins.tsclass.ITransaction;
|
||||
original: ISpendeskOriginalTransaction;
|
||||
transactionHash: string;
|
||||
paymentDate: Date;
|
||||
settlementDate: Date;
|
||||
month: string;
|
||||
payer: string;
|
||||
team: string;
|
||||
description: string;
|
||||
supplier: string;
|
||||
expenseAccount: string;
|
||||
paymentMethod: string;
|
||||
paymentType: TPaymentType;
|
||||
// 'Local amount': number;
|
||||
// 'Local currency': 'EUR';
|
||||
amount: number;
|
||||
currency: TAvailableCurrencies;
|
||||
vatAmount: number;
|
||||
vatPercentage?: number;
|
||||
paymentState: TPaymentState;
|
||||
receiptAvailable: boolean;
|
||||
receiptNames: string[];
|
||||
}
|
Reference in New Issue
Block a user