Constructors
constructor
-
Parameters
-
-
Optional trackingId: string
Methods
createCustomer
-
Parameters
-
-
Optional enableDoubleOptIn: boolean
setIdentity
- setIdentity(identity?: string): void
-
Parameters
-
Optional identity: string
Returns void
track
-
Parameters
-
event_name: string
-
-
Optional metadata: Record<string, any>
-
-
updateConsents
- updateConsents(idOrSourceId: string, consents: Record<string, boolean>): Promise<undefined>
-
Parameters
-
idOrSourceId: string
-
consents: Record<string, boolean>
Returns Promise<undefined>
https://docs.voucherify.io/reference/create-customer