import { APIResource } from "../../core/resource.js"; import * as TransactionsAPI from "../transactions.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class CardSettlements extends APIResource { /** * Simulates the settlement of an authorization by a card acquirer. After a card * authorization is created, the merchant will eventually send a settlement. This * simulates that event, which may occur many days after the purchase in * production. The amount settled can be different from the amount originally * authorized, for example, when adding a tip to a restaurant bill. * * @example * ```ts * const transaction = * await client.simulations.cardSettlements.create({ * card_id: 'card_oubs0hwk5rn6knuecxg2', * pending_transaction_id: * 'pending_transaction_k1sfetcau2qbvjbzgju4', * }); * ``` */ create(body: CardSettlementCreateParams, options?: RequestOptions): APIPromise; } export interface CardSettlementCreateParams { /** * The identifier of the Card to create a settlement on. */ card_id: string; /** * The identifier of the Pending Transaction for the Card Authorization you wish to * settle. */ pending_transaction_id: string; /** * The amount to be settled. This defaults to the amount of the Pending Transaction * being settled. */ amount?: number; } export declare namespace CardSettlements { export { type CardSettlementCreateParams as CardSettlementCreateParams }; } //# sourceMappingURL=card-settlements.d.ts.map