"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PostalCode = void 0;

var _validator = _interopRequireDefault(require("validator"));

var _validators = require("./validators");

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
const PostalCode = (0, _validators.makeValidator)(x => _validator.default.isPostalCode(x, 'any'), 'Not a valid Postal Code.');
/**
 * @memberOf module:@mobify/commerce-integrations/dist/types
 * @typedef {String} PostalCode
 */

exports.PostalCode = PostalCode;