UNPKG

privacy.com

Version:

Wrapper for the Privacy.com API using Axios and TypeScript

20 lines (19 loc) 811 B
import { PostEndpoint } from "../"; import { Response } from "../.."; /** * Clears an existing authorization. After this event, the transaction is no longer pending. * @remarks Clearing for an existing, pending authorization */ export declare class SimulateClearingRequest extends PostEndpoint { path: string; params: SimulateClearingParams; constructor(params: SimulateClearingParams); } /** Parameters for {@link SimulateClearingRequest} */ export declare type SimulateClearingParams = { /** The transaction token returned from the /v1/simulate/authorize response */ token: string; /** Amount (in cents) to complete. Typically this will match the original authorization, but may be more or less */ amount: number; }; export declare type SimulateClearingResponse = Response<{}>;