import { APIResource } from "../../core/resource.mjs"; import * as TransactionsAPI from "../transactions.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class InterestPayments extends APIResource { /** * Simulates an interest payment to your account. In production, this happens * automatically on the first of each month. * * @example * ```ts * const transaction = * await client.simulations.interestPayments.create({ * account_id: 'account_in71c4amph0vgo2qllky', * amount: 1000, * }); * ``` */ create(body: InterestPaymentCreateParams, options?: RequestOptions): APIPromise; } export interface InterestPaymentCreateParams { /** * The identifier of the Account the Interest Payment should be paid to is for. */ account_id: string; /** * The interest amount in cents. Must be positive. */ amount: number; /** * The identifier of the Account the Interest accrued on. Defaults to `account_id`. */ accrued_on_account_id?: string; /** * The end of the interest period. If not provided, defaults to the current time. */ period_end?: string; /** * The start of the interest period. If not provided, defaults to the current time. */ period_start?: string; } export declare namespace InterestPayments { export { type InterestPaymentCreateParams as InterestPaymentCreateParams }; } //# sourceMappingURL=interest-payments.d.mts.map