@spreeloop/mtn_momo
Version:
A mtn momo api integration package
100 lines • 3.47 kB
JavaScript
"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 = {
[]: Currency.xaf,
[]: Currency.xaf,
[]: Currency.xof,
[]: Currency.ghs,
[]: Currency.gnf,
[]: Currency.xof,
[]: Currency.lrd,
[]: Currency.zar,
[]: Currency.szl,
[]: Currency.ugx,
[]: Currency.zmw,
[]: 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