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 CardRefunds extends APIResource { /** * Simulates refunding a card transaction. The full value of the original sandbox * transaction is refunded. * * @example * ```ts * const transaction = * await client.simulations.cardRefunds.create(); * ``` */ create(body: CardRefundCreateParams, options?: RequestOptions): APIPromise; } export interface CardRefundCreateParams { /** * The refund amount in cents. Pulled off the `pending_transaction` or the * `transaction` if not provided. */ amount?: number; /** * The identifier of the Pending Transaction for the refund authorization. If this * is provided, `transaction` must not be provided as a refund with a refund * authorized can not be linked to a regular transaction. */ pending_transaction_id?: string; /** * The identifier for the Transaction to refund. The Transaction's source must have * a category of card_settlement. */ transaction_id?: string; } export declare namespace CardRefunds { export { type CardRefundCreateParams as CardRefundCreateParams }; } //# sourceMappingURL=card-refunds.d.mts.map