UNPKG

privacy.com

Version:

Wrapper for the Privacy.com API using Axios and TypeScript

26 lines (25 loc) 957 B
import { TokenData } from ".."; import { PostEndpoint } from "../"; import { Response } from "../.."; /** * Simulates an authorization request from the payment network as if it came from a merchant acquirer. * @remarks The API sends an event for all approvals. Decline events are available with API Issuing accounts and cannot be simulated. * @link https://developer.privacy.com/docs#transaction-webhooks */ export declare class SimulateAuthorizationRequest extends PostEndpoint { path: string; params: SimulateAuthorizationParams; constructor(params: SimulateAuthorizationParams); } /** * Parameters for {@link SimulateAuthorizationRequest} */ export declare type SimulateAuthorizationParams = { /** Merchant descriptor */ descriptor: string; /** 16 digit card number */ pan: string; /** Amount (in cents) to authorize */ amount: number; }; export declare type SimulateAuthorizationResponse = Response<TokenData>;