UNPKG

@1amageek/passkit

Version:
50 lines (49 loc) 1.38 kB
import * as PassKit from './index'; interface AnyPass { boardingPass?: PassKit.Pass; coupon?: PassKit.Pass; eventTicket?: PassKit.Pass; generic?: PassKit.Pass; storeCard?: PassKit.Pass; } export default class Template { description: string; formatVersion: number; organizationName: string; passTypeIdentifier: string; serialNumber: string; teamIdentifier: string; appLaunchURL?: string; associatedStoreIdentifiers?: number[]; userInfo?: { [key: string]: any; }; expirationDate?: Date; voided?: boolean; beacons?: PassKit.Beacon[]; locations?: PassKit.Location[]; maxDistance?: number; relevantDate?: Date; boardingPass?: PassKit.Pass; coupon?: PassKit.Pass; eventTicket?: PassKit.Pass; generic?: PassKit.Pass; storeCard?: PassKit.Pass; barcode?: PassKit.Barcode; barcodes?: PassKit.Barcode[]; backgroundColor?: PassKit.RGB; foregroundColor?: PassKit.RGB; groupingIdentifier?: string; labelColor?: PassKit.RGB; logoText?: string; suppressStripShine?: boolean; authenticationToken?: string; webServiceURL?: string; nfc?: PassKit.NFC; constructor(organizationName: string, description: string, serialNumber: string, pass: AnyPass); validate(): void; toPass(): { [key: string]: any; }; } export {};