UNPKG

@accounter/server

Version:

88 lines (87 loc) 2.81 kB
import type { Environment } from '../../../shared/types/index.js'; export declare class DeelClientProvider { private env; private apiToken; private host; constructor(env: Environment); private timeZoneFix; getPaymentReceipts(): Promise<{ data: { rows: { id: string; created_at: string; label: string; paid_at: string; payment_currency: string; total: string; status: "paid"; payment_method?: Record<string, never> | undefined; workers?: { id: string; picUrl: string | null; contract_id?: string | null | undefined; name?: string | undefined; public_id?: string | undefined; }[] | undefined; }[]; total: number; }; }>; getPaymentBreakdown(paymentId: string): Promise<{ data: { adjustment: "0.00"; approve_date: string; approvers: string; bonus: "0.00"; commissions: "0.00"; contract_country: string; contract_start_date: string; contract_type: string; contractor_email: string; contractor_employee_name: string; contractor_unique_identifier: string; currency: string; date: string; deductions: "0.00"; expenses: string; frequency: "" | "custom" | "hourly" | "daily" | "monthly"; general_ledger_account: ""; group_id: string; others: "0.00"; overtime: "0.00"; payment_currency: string; payment_date: string; pro_rata: string; processing_fee: string; work: string; total: string; total_payment_currency: string; }[]; }>; getSalaryInvoices(): Promise<{ data: { id: string; amount: string; contract_id: string | null; created_at: string; currency: string; deel_fee: "0.00"; due_date: string; is_overdue: boolean; issued_at: string; label: string; paid_at: string; status: "pending" | "paid" | "processing" | "canceled" | "skipped" | "failed" | "refunded"; total: string; vat_id: ""; vat_percentage: ""; vat_total: "0.00"; }[]; page: { total_rows: number; items_per_page: number; offset: number; }; }>; getSalaryInvoiceFile(id: string): Promise<Blob>; }