@basetime/a2w-api-ts
Version:
Client library that communicates with the addtowallet API.
22 lines (21 loc) • 593 B
TypeScript
import { Requester } from '../http/Requester';
import Endpoint from './Endpoint';
/**
* Communicate with the claims endpoints.
*/
export default class ClaimsEndpoint extends Endpoint {
/**
* Constructor.
*
* @param req The object to use to make requests.
*/
constructor(req: Requester);
/**
* Returns the pkpass file for a campaign and pass.
*
* @param campaignId The ID of the campaign.
* @param passId The ID of the pass.
* @returns The pkpass file.
*/
getPkpass: (campaignId: string, passId: string) => Promise<string>;
}