import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Payment extends APIResource { /** * Add a new sandbox payment * * @example * ```ts * const payment = await client.sandbox.payment.create(); * ``` */ create(body?: PaymentCreateParams | null | undefined, options?: RequestOptions): APIPromise; } export interface PaymentCreateResponse { /** * The date of the payment. */ pay_date: string; /** * The ID of the payment. */ payment_id: string; } export interface PaymentCreateParams { end_date?: string; /** * Array of pay statements to include in the payment. */ pay_statements?: Array; start_date?: string; } export declare namespace PaymentCreateParams { interface PayStatement { individual_id: string; earnings?: Array; employee_deductions?: Array; employer_contributions?: Array; gross_pay?: number; net_pay?: number; payment_method?: 'check' | 'direct_deposit' | 'other' | null; taxes?: Array; total_hours?: number; type?: 'off_cycle_payroll' | 'one_time_payment' | 'regular_payroll' | null; } namespace PayStatement { interface Earning { amount?: number; hours?: number; name?: string; type?: 'bonus' | 'commission' | 'double_overtime' | 'other' | 'overtime' | 'pto' | 'reimbursement' | 'salary' | 'severance' | 'sick' | 'tips' | 'wage' | '1099'; } interface EmployeeDeduction { amount?: number; /** * The deduction name. Required when type is specified. */ name?: string; pre_tax?: boolean; type?: '457' | '401k' | '401k_roth' | '401k_loan' | '403b' | '403b_roth' | '457_roth' | 'commuter' | 'custom_post_tax' | 'custom_pre_tax' | 'fsa_dependent_care' | 'fsa_medical' | 'hsa_post' | 'hsa_pre' | 's125_dental' | 's125_medical' | 's125_vision' | 'simple' | 'simple_ira'; } interface EmployerContribution { amount?: number; /** * The contribution name. Required when type is specified. */ name?: string; type?: '457' | '401k' | '401k_roth' | '401k_loan' | '403b' | '403b_roth' | '457_roth' | 'commuter' | 'custom_post_tax' | 'custom_pre_tax' | 'fsa_dependent_care' | 'fsa_medical' | 'hsa_post' | 'hsa_pre' | 's125_dental' | 's125_medical' | 's125_vision' | 'simple' | 'simple_ira'; } interface Tax { amount?: number; employer?: boolean; name?: string; type?: 'federal' | 'fica' | 'local' | 'state'; } } } export declare namespace Payment { export { type PaymentCreateResponse as PaymentCreateResponse, type PaymentCreateParams as PaymentCreateParams, }; } //# sourceMappingURL=payment.d.ts.map