UNPKG

@spreeloop/mtn_momo

Version:
100 lines 3.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TargetEnvironment = exports.ConstantRequestField = exports.XTargetEnvironmentCurrency = exports.Currency = exports.XTargetEnvironmentType = void 0; var XTargetEnvironmentType; (function (XTargetEnvironmentType) { XTargetEnvironmentType["mtnSandBox"] = "sandbox"; XTargetEnvironmentType["mtnUganda"] = "mtnuganda"; XTargetEnvironmentType["mtnGhana"] = "mtnghana"; XTargetEnvironmentType["mtnIvoryCoast"] = "mtnivorycoast"; XTargetEnvironmentType["mtnZambia"] = "mtnzambia"; XTargetEnvironmentType["mtnCameroon"] = "mtncameroon"; XTargetEnvironmentType["mtnBenin"] = "mtnbenin"; XTargetEnvironmentType["mtnCongo"] = "mtncongo"; XTargetEnvironmentType["mtnSwaziland"] = "mtnswaziland"; XTargetEnvironmentType["mtnGuineaConakry"] = "mtnguineaconakry"; XTargetEnvironmentType["mtnSouthAfrica"] = "mtnsouthafrica"; XTargetEnvironmentType["mtnLiberia"] = "mtnliberia"; })(XTargetEnvironmentType = exports.XTargetEnvironmentType || (exports.XTargetEnvironmentType = {})); var Currency; (function (Currency) { /** * The EUR currency. */ Currency["eur"] = "EUR"; /** * The XAF currency. */ Currency["xaf"] = "XAF"; /** * The XOF currency. */ Currency["xof"] = "XOF"; /** * The Ghanaian cedi */ Currency["ghs"] = "GHS"; /** * The Guinean franc */ Currency["gnf"] = "GNF"; /** * The Liberian dollar */ Currency["lrd"] = "LRD"; /** * The South African rand */ Currency["zar"] = "ZAR"; /** * The Ugandan shilling */ Currency["ugx"] = "UGX"; /** * The Swazi lilangeni */ Currency["szl"] = "SZL"; /** * The Zambian kwacha */ Currency["zmw"] = "ZMW"; })(Currency = exports.Currency || (exports.Currency = {})); /** * A mapping between x-target-environment and their currency. * As said by the doc: we should "Use Currency Code specific to the Country". */ exports.XTargetEnvironmentCurrency = { [XTargetEnvironmentType.mtnCameroon]: Currency.xaf, [XTargetEnvironmentType.mtnCongo]: Currency.xaf, [XTargetEnvironmentType.mtnBenin]: Currency.xof, [XTargetEnvironmentType.mtnGhana]: Currency.ghs, [XTargetEnvironmentType.mtnGuineaConakry]: Currency.gnf, [XTargetEnvironmentType.mtnIvoryCoast]: Currency.xof, [XTargetEnvironmentType.mtnLiberia]: Currency.lrd, [XTargetEnvironmentType.mtnSouthAfrica]: Currency.zar, [XTargetEnvironmentType.mtnSwaziland]: Currency.szl, [XTargetEnvironmentType.mtnUganda]: Currency.ugx, [XTargetEnvironmentType.mtnZambia]: Currency.zmw, [XTargetEnvironmentType.mtnSandBox]: Currency.eur, }; /** * Contains request fields. */ class ConstantRequestField { } exports.ConstantRequestField = ConstantRequestField; // The content type field. ConstantRequestField.typeJson = "application/json"; // The basic authorization field. ConstantRequestField.basic = "Basic"; // The bearer field. ConstantRequestField.bearer = "Bearer"; // The grant type field. ConstantRequestField.grantType = "grant_type"; var TargetEnvironment; (function (TargetEnvironment) { TargetEnvironment["sandbox"] = "dev"; TargetEnvironment["prod"] = "prod"; TargetEnvironment["fake"] = "fake"; })(TargetEnvironment = exports.TargetEnvironment || (exports.TargetEnvironment = {})); //# sourceMappingURL=constants.js.map