UNPKG

@basetime/a2w-api-ts

Version:

Client library that communicates with the addtowallet API.

43 lines (42 loc) 756 B
/** * Information about an enrollment. */ export interface Enrollment { /** * The ID of the enrollment. */ id: string; /** * The user agent of the browser. */ ui: string; /** * The IP address of the user. */ ip: string; /** * The ID of the campaign the enrollment is for. */ campaign: string; /** * The primary data. */ primaryKey: string; /** * The submitted data. */ submitted: Record<string, string>; } /** * Response when creating an enrollment. */ export interface EnrollmentResponse { /** * The ID of the bundle that was created. */ pass: string; /** * Any errors that occurred. */ errors: string[]; }