getAllowedMobileMoneyNetworksByCurrency static method

List<String> getAllowedMobileMoneyNetworksByCurrency(
  1. String currency
)

Returns a list of Mobile Money Networks available in a country

Implementation

static List<String> getAllowedMobileMoneyNetworksByCurrency(
    final String currency) {
  switch (currency) {
    case GHS:
      return ["MTN", "VODAFONE", "TIGO", "AIRTEL"];
    case UGX:
      return [];
    case RWF:
      return [];
    case ZMW:
      return ["MTN", "ZAMTEL", "AIRTEL"];
  }
  return [];
}