privacy.com
Version:
Wrapper for the Privacy.com API using Axios and TypeScript
25 lines (24 loc) • 798 B
TypeScript
import { TokenData } from "..";
import { PostEndpoint } from "../";
import { Response } from "../..";
/**
* Returns (aka refunds) an amount back to a card. Returns are cleared immediately and do not spend time in a "pending" state.
* @remarks Refund — value is pushed onto card
*/
export declare class SimulateReturnRequest extends PostEndpoint {
path: string;
params: SimulateReturnParams;
constructor(params: SimulateReturnParams);
}
/**
* Parameters for {@link SimulateReturnRequest}
*/
export declare type SimulateReturnParams = {
/** Merchant descriptor */
descriptor: string;
/** 16 digit card number */
pan: string;
/** Amount (in cents) to return to the card */
amount: number;
};
export declare type SimulateReturnResponse = Response<TokenData>;