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

export class CatalogPurchaseFailureEvent extends NitroEvent {
  public static PURCHASE_FAILED: string = "CPFE_PURCHASE_FAILED";

  private _code: number;

  constructor(code: number) {
    super(CatalogPurchaseFailureEvent.PURCHASE_FAILED);

    this._code = code;
  }

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