MCCParser extension

A singleton helper class to work with MCC (Merchant Category Code) data.

This class provides methods to retrieve MCC data by MCC code and to convert the retrieved data into a strongly-typed MCC object. The data is statically stored in a list _mccData, which represents the MCC data extracted from MCC Code GitHub Repository.

Usage:

final mccHelper = MCCParser();
Map<String, dynamic> mccInfo = mccHelper._getMCCByCode("0742");
MCC mccDataObject = mccHelper.mccCodeToObject("0742");

The MCC data format includes fields like mcc, edited_description, combined_description, and others, as defined in the MCC data source.

For more information on MCC codes and their descriptions, visit the repository: MCC Codes GitHub Repository

Example JSON format from the repository:

{
  "mcc": "0742",
  "edited_description": "Veterinary Services",
  "combined_description": "Veterinary Services",
  "usda_description": "Veterinary Services",
  "irs_description": "Veterinary Services",
  "irs_reportable": "Yes",
  "id": 0
}
on

Properties

mcc MCC

Available on QRISMPM, provided by the MCCParser extension

Retrieves the MCC data by the provided MCC code.
no setter