UNPKG

hyperwallet-sdk

Version:

A library to manage users, transfer methods and payments through the Hyperwallet API

56 lines (43 loc) 2.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var RejectReason = function () { function RejectReason(name) { _classCallCheck(this, RejectReason); this.name = name; } _createClass(RejectReason, [{ key: "toString", value: function toString() { return "RejectReason." + this.name; } }]); return RejectReason; }(); RejectReason.DOCUMENT_EXPIRED = new RejectReason("DOCUMENT_EXPIRED"); RejectReason.DOCUMENT_NOT_RELATED_TO_PROFILE = new RejectReason("DOCUMENT_NOT_RELATED_TO_PROFILE"); RejectReason.DOCUMENT_NOT_READABLE = new RejectReason("DOCUMENT_NOT_READABLE"); RejectReason.DOCUMENT_NOT_DECISIVE = new RejectReason(" DOCUMENT_NOT_DECISIVE"); RejectReason.DOCUMENT_NOT_COMPLETE = new RejectReason("DOCUMENT_NOT_COMPLETE"); RejectReason.DOCUMENT_CORRECTION_REQUIRED = new RejectReason("DOCUMENT_CORRECTION_REQUIRED"); RejectReason.DOCUMENT_NOT_VALID_WITH_NOTES = new RejectReason("DOCUMENT_NOT_VALID_WITH_NOTES"); RejectReason.DOCUMENT_TYPE_NOT_VALID = new RejectReason("DOCUMENT_TYPE_NOT_VALID"); var HyperwalletVerificationDocumentReason = function HyperwalletVerificationDocumentReason(properties) { _classCallCheck(this, HyperwalletVerificationDocumentReason); this.CONSTRUCTOR_FIELDS = ["name", "description"]; if (Object.keys(RejectReason).includes(properties.name)) { this.name = RejectReason[properties.name]; } this.description = properties.description; } /** * Create a instance of the SDK Client * * @param {RejectReason} name The reason for rejection * @param {string} description The description of the rejection */ ; exports.default = HyperwalletVerificationDocumentReason;