import { APIResource } from "../../core/resource.js"; import * as HRISAPI from "./hris.js"; import { PagePromise, SinglePage } from "../../core/pagination.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Payments extends APIResource { /** * Read payroll and contractor related payments by the company. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const payment of client.hris.payments.list({ * end_date: '2021-01-01', * start_date: '2021-01-01', * })) { * // ... * } * ``` */ list(query: PaymentListParams, options?: RequestOptions): PagePromise; } export type PaymentsSinglePage = SinglePage; export interface Payment { /** * The unique id for the payment. */ id: string; company_debit: HRISAPI.Money | null; debit_date: string | null; employee_taxes: HRISAPI.Money | null; employer_taxes: HRISAPI.Money | null; gross_pay: HRISAPI.Money | null; /** * Array of every individual on this payment. */ individual_ids: Array | null; net_pay: HRISAPI.Money | null; pay_date: string | null; /** * List of pay frequencies associated with this payment. */ pay_frequencies: Array<'annually' | 'bi_weekly' | 'daily' | 'monthly' | 'other' | 'quarterly' | 'semi_annually' | 'semi_monthly' | 'weekly'> | null; /** * Array of the Finch id (uuidv4) of every pay group associated with this payment. */ pay_group_ids: Array | null; /** * The pay period object. */ pay_period: Payment.PayPeriod | null; } export declare namespace Payment { /** * The pay period object. */ interface PayPeriod { end_date: string | null; start_date: string | null; } } export interface PaymentListParams { /** * The end date to retrieve payments by a company (inclusive) in `YYYY-MM-DD` * format. Filters payments by their **pay_date** field. */ end_date: string; /** * The start date to retrieve payments by a company (inclusive) in `YYYY-MM-DD` * format. Filters payments by their **pay_date** field. */ start_date: string; /** * The entity IDs to specify which entities' data to access. */ entity_ids?: Array; } export declare namespace Payments { export { type Payment as Payment, type PaymentsSinglePage as PaymentsSinglePage, type PaymentListParams as PaymentListParams, }; } //# sourceMappingURL=payments.d.ts.map