@apicart/store-sdk
Version:
Apicart SDK for integrating store into any web application
28 lines (18 loc) • 410 B
text/typescript
export default class CartState {
public static readonly CODE_ACTIVE: string = 'active';
public static readonly CODE_MERGED: string = 'merged';
public static readonly CODE_FINISHED: string = 'finished';
private _code: string;
constructor(code: string)
{
this._code = code;
}
public getCode(): string
{
return this._code;
}
public setCode(code: string): void
{
this._code = code;
}
}