diff --git a/index.js b/index.js index ca816c1..1c2c16f 100644 --- a/index.js +++ b/index.js @@ -22,8 +22,6 @@ class Pass { this.passTypes = ["boardingPass", "eventTicket", "coupon", "generic", "storeCard"]; this.overrides = options.overrides || {}; this.Certificates = {}; - this.handlers = {}; - this.model = null; this._parseSettings(options) .then(() => { @@ -479,11 +477,8 @@ class Pass { }); }, - handlersAssignCallback => { - this.handlers = options.handlers || {}; - return handlersAssignCallback(); - } - ], success); + return success(); + }); }); } diff --git a/schema.js b/schema.js index 19bc7b8..6a05a09 100644 --- a/schema.js +++ b/schema.js @@ -10,10 +10,6 @@ let instance = Joi.object().keys({ passphrase: Joi.string().required(), }).required() }).required(), - handlers: Joi.object().keys({ - barcode: Joi.func(), - serialNumber: Joi.func() - }), overrides: Joi.object() });