import {NitroEvent} from "@nitro/renderer";

export class CatalogPurchaseNotAllowedEvent extends NitroEvent {
  public static NOT_ALLOWED: string = "CPNAE_NOT_ALLOWED";

  private _code: number;

  constructor(code: number) {
    super(CatalogPurchaseNotAllowedEvent.NOT_ALLOWED);

    this._code = code;
  }

  public get code(): number {
    return this._code;
  }
}
