-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca7c3d8
commit 6f99d68
Showing
7 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,19 @@ | |
namespace spicyweb\reorder\enums; | ||
|
||
/** | ||
* Class LineItemStatus | ||
* Line item status enum | ||
* | ||
* @package spicyweb\reorder\enums | ||
* @author Spicy Web <[email protected]> | ||
* @since 1.0.0 | ||
* @since 3.0.0 | ||
*/ | ||
abstract class LineItemStatus | ||
enum LineItemStatus | ||
{ | ||
public const Available = 'Available'; | ||
public const Deleted = 'Deleted'; | ||
public const Disabled = 'Disabled'; | ||
public const BelowMinQty = 'BelowMinQty'; | ||
public const AboveMaxQty = 'AboveMaxQty'; | ||
public const InsufficientStock = 'InsufficientStock'; | ||
public const OutOfStock = 'OutOfStock'; | ||
case Available; | ||
case Deleted; | ||
case Disabled; | ||
case BelowMinQty; | ||
case AboveMaxQty; | ||
case InsufficientStock; | ||
case OutOfStock; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,15 @@ | |
namespace spicyweb\reorder\enums; | ||
|
||
/** | ||
* Class OrderStatus | ||
* Order status enum | ||
* | ||
* @package spicyweb\reorder\enums | ||
* @author Spicy Web <[email protected]> | ||
* @since 1.0.0 | ||
* @since 3.0.0 | ||
*/ | ||
abstract class OrderStatus | ||
enum OrderStatus: string | ||
{ | ||
public const DoesNotExist = 'The order does not exist'; | ||
public const Partial = 'Some items are not available'; | ||
public const NoItemsAvailable = 'No items available'; | ||
case DoesNotExist = 'The order does not exist'; | ||
case Partial = 'Some items are not available'; | ||
case NoItemsAvailable = 'No items available'; | ||
} |