nl_tokens: Create a new template . style - Pass style ( coupon eventTicket etc ) fields - Pass fields ( passTypeIdentifier teamIdentifier etc )
pl_tokens: function Template ( style , fields ) { if ( ! ~ STYLES . indexOf ( style ) ) throw new Error ( "Unsupported pass style " + style ) ; this . style = style ; this . fields = { } ; for ( var <mask> in fields ) this . fields [ key ] = fields [ key ] ; this . keysPath = "keys" ; this . images = { } ; }