-
-
Notifications
You must be signed in to change notification settings - Fork 149
Added Event Listener system #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 41 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
8119832
fixed issue when using custom table for authentication instead of use…
nahid f73467d
Merge branch 'osiset:master' into master
nahid e00b49e
fixed charges model saving when using custom shop table
nahid 7ab1e9a
refactor code for reusing shops table name and its foreign id
nahid 94bf062
Merge branch 'osiset:master' into master
nahid 54907b6
refactor getShopsTable() and added new method for getting shops table…
nahid 2aa9a2e
Merge branch 'master' of github.com:nahid/laravel-shopify
nahid c099191
Remove unwanted new line feom Charge model contractor
nahid 41c8734
auto fixes code style from php-cs-fixer
nahid 624e0ca
Merge branch 'master' into master
nahid 40db940
Merge branch 'osiset:master' into master
nahid 5ddf28b
added name, email and password in create shops table migration if its…
nahid 6ffa402
Merge branch 'master' of github.com:nahid/laravel-shopify
nahid b05089b
Merge branch 'osiset:master' into master
nahid 79ff4bb
fixed get data from request issue in StoreUsageCharge
nahid 4e510ad
Merge branch 'master' of github.com:nahid/laravel-shopify
nahid 47d23d3
Merge branch 'osiset:master' into master
nahid 663fe85
feat(event, listener): added various events, update Util
nahid fb007eb
fixed by php-cs-fixer
nahid 94cc3f4
fixed: support for php 7.2
nahid 7b8048a
fixed(ServiceProvider): added laravel version compatibility in servic…
nahid d72ea66
fixed(Request Validation): update StoreUsageChare request
nahid 6b61682
Update README.md
Kyon147 de8a415
fix: cs-fix changes
nahid 1f9a9d0
fixed iframe ancestors issue
nahid c38c3ad
fixed iframe ancestors issue
nahid 13a2446
Merge branch 'gnikyt:master' into master
nahid ead87de
update verify shop middleware
nahid 118cec9
Merge branch 'master' of github.com:nahid/laravel-shopify
nahid 3686198
feat(shopdomain): validate correct shop domain when authenticate
nahid b21ae45
change after authenticate job fire logic
nahid ceffdd3
Update composer.json
nahid f5090af
update laravel shopify package for laravel 10
nahid ffad585
resolve conflict with master
nahid f736064
php-cs-fix and update readme
nahid 6410733
code fix with php-cs-fix
nahid 64d097c
added tests
nahid 8a665ea
rollback gitigonre
nahid 3b2507b
fixed by php-cs-fixer
nahid c71e073
update phpunit.xml.dist for excluding Events
nahid 37ef397
added tests for coverage
nahid 3d90f3e
Refactor code with PSR-12 standard
nahid 7e1e5c8
Fix linting issue
nahid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 $shop_id) | ||
nahid marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
$this->shopId = $shop_id; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.