@apicart/store-sdk
Version:
Apicart SDK for integrating store into any web application
33 lines (21 loc) • 549 B
text/typescript
export default class OrderState
{
public static readonly CODE_NEW: string = 'new';
public static readonly CODE_WAITING_FOR_PAYMENT: string = 'waitingForPayment';
public static readonly CODE_PAID: string = 'paid';
public static readonly CODE_DISTRIBUTED: string = 'distributed';
public static readonly CODE_CANCELED: string = 'canceled';
private _code: string;
constructor(code: string)
{
this._code = code;
}
public getCode(): string
{
return this._code;
}
public setCode(code: string): void
{
this._code = code;
}
}