Again see https://github.com/tjwebb/xtuple/blob/21664-cash-receipt/enyo-client/extensions/source/billing/client/models/static.js#L40 for what I propose as a cleaner solution to all these enum-like constructs we write.