-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Order Created / State Changed Web Hooks
- Loading branch information
Showing
4 changed files
with
34 additions
and
0 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,8 @@ | ||
<?php | ||
namespace Fortifi\Webhooks\Events; | ||
|
||
final class OrderWHE | ||
{ | ||
const CREATED = 'order.created'; | ||
const STATE_CHANGE = 'order.state.change'; | ||
} |
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,8 @@ | ||
<?php | ||
namespace Fortifi\Webhooks\Payloads\Order; | ||
|
||
class OrderCreatedWHP extends OrderWHP | ||
{ | ||
public $currency; | ||
public $country; | ||
} |
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,8 @@ | ||
<?php | ||
namespace Fortifi\Webhooks\Payloads\Order; | ||
|
||
class OrderStateChangedWHP extends OrderWHP | ||
{ | ||
public $oldState; | ||
public $newState; | ||
} |
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,10 @@ | ||
<?php | ||
namespace Fortifi\Webhooks\Payloads\Order; | ||
|
||
use Fortifi\Webhooks\Payloads\Foundation\DataNodeWHP; | ||
|
||
class OrderWHP extends DataNodeWHP | ||
{ | ||
public $customerFid; | ||
public $orderHash; | ||
} |