UNPKG

privacy.com

Version:

Wrapper for the Privacy.com API using Axios and TypeScript

28 lines (27 loc) 989 B
import { Card } from "../../objects"; import { GetEndpoint, GetRequestPaginatedResponse } from "."; /** * List cards associated with the privacy account */ export declare class ListCardsRequest extends GetEndpoint { path: string; params: ListCardsParams; constructor(params?: ListCardsParams); } /** * Parameters for {@link ListCardsRequest} * @defaultValue {} */ export declare type ListCardsParams = { /** For pagination. The default is one */ page?: number; /** For pagination. The default value page size is 50 and the maximum is 1,000 */ page_size?: number; /** Date string in the form YYYY-MM-DD, only cards created after the specified date will be included */ begin?: string; /** Date string in the form YYYY-MM-DD, only cards created before the specified date will be included */ end?: string; /** Returns a specific card */ card_token?: string; }; export declare type ListCardsResponse = GetRequestPaginatedResponse<Card>;