-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify SessionToken to work with from Checkout UI Extension
- Loading branch information
1 parent
8b76c1d
commit 9b59acd
Showing
3 changed files
with
115 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Osiset\ShopifyApp\Objects\Enums; | ||
|
||
use Funeralzone\ValueObjects\Enums\EnumTrait; | ||
use Funeralzone\ValueObjects\ValueObject; | ||
|
||
/** | ||
* API call method types. | ||
* | ||
* @method static ApiMethod GET() | ||
* @method static ApiMethod POST() | ||
* @method static ApiMethod PUT() | ||
* @method static ApiMethod DELETE() | ||
*/ | ||
final class SessionTokenSource implements ValueObject | ||
{ | ||
use EnumTrait; | ||
|
||
/** | ||
* Token form Shopify App | ||
* | ||
* @var int | ||
*/ | ||
public const APP = 0; | ||
|
||
/** | ||
* Token from UI extension | ||
* | ||
* @var int | ||
*/ | ||
public const CHECKOUT_EXTENSION = 1; | ||
} |
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