-
-
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.
- Loading branch information
Showing
25 changed files
with
467 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Osiset\ShopifyApp\Messaging\Events; | ||
|
||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
use Osiset\ShopifyApp\Objects\Values\ShopId; | ||
|
||
/** | ||
* Event fired when this | ||
*/ | ||
class AppInstalledEvent | ||
{ | ||
use Dispatchable; | ||
use SerializesModels; | ||
|
||
/** | ||
* Shop's instance. | ||
* | ||
* @var ShopId | ||
*/ | ||
public $shopId; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param ShopId $shop_id | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(ShopId $shop_id) | ||
{ | ||
$this->shopId = $shop_id; | ||
} | ||
} |
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,35 @@ | ||
<?php | ||
|
||
namespace Osiset\ShopifyApp\Messaging\Events; | ||
|
||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
use Osiset\ShopifyApp\Contracts\ShopModel as IShopModel; | ||
|
||
/** | ||
* Event fired when this | ||
*/ | ||
class AppUninstalledEvent | ||
{ | ||
use Dispatchable; | ||
use SerializesModels; | ||
|
||
/** | ||
* Shop's instance. | ||
* | ||
* @var IShopModel | ||
*/ | ||
public $shop; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param IShopModel $shop | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(IShopModel $shop) | ||
{ | ||
$this->shop = $shop; | ||
} | ||
} |
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,53 @@ | ||
<?php | ||
|
||
namespace Osiset\ShopifyApp\Messaging\Events; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
use Osiset\ShopifyApp\Contracts\ShopModel as IShopModel; | ||
use Osiset\ShopifyApp\Objects\Values\ChargeId; | ||
|
||
/** | ||
* Event fired when this | ||
*/ | ||
class PlanActivatedEvent | ||
{ | ||
use Dispatchable; | ||
use SerializesModels; | ||
|
||
/** | ||
* Shop's instance. | ||
* | ||
* @var IShopModel | ||
*/ | ||
public $shop; | ||
|
||
/** | ||
* Plan's instance. | ||
* | ||
* @var Model | ||
*/ | ||
public $plan; | ||
|
||
/** | ||
* Charge ID | ||
* | ||
* @var ChargeId | ||
*/ | ||
public $chargeId; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param IShopModel $shop | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(IShopModel $shop, Model $plan, ChargeId $chargeId) | ||
{ | ||
$this->shop = $shop; | ||
$this->plan = $plan; | ||
$this->chargeId = $chargeId; | ||
} | ||
} |
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,35 @@ | ||
<?php | ||
|
||
namespace Osiset\ShopifyApp\Messaging\Events; | ||
|
||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
use Osiset\ShopifyApp\Objects\Values\ShopId; | ||
|
||
/** | ||
* Event fired when this | ||
*/ | ||
class ShopAuthenticatedEvent | ||
{ | ||
use Dispatchable; | ||
use SerializesModels; | ||
|
||
/** | ||
* Shop's instance. | ||
* | ||
* @var ShopId | ||
*/ | ||
public $shopId; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param ShopId $shop_id | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(ShopId $shopId) | ||
{ | ||
$this->shopId = $shopId; | ||
} | ||
} |
Oops, something went wrong.