UNPKG

atix-internetmarke

Version:

A node wrapper for the Internetmarke web service of the Deutsche Post.

25 lines (19 loc) 443 B
/** * internetmarke * Copyright (c) 2018 Manuel Schächinger * MIT Licensed */ 'use strict'; const { LAYOUT_ZONES } = require('../constants'); class LayoutZones { validate(voucherLayout) { let valid = false; for (const key in LAYOUT_ZONES) { if (LAYOUT_ZONES.hasOwnProperty(key) && voucherLayout === LAYOUT_ZONES[key]) { valid = true; } } return valid; } }; module.exports = new LayoutZones();