Skip to content

Commit

Permalink
Order Created / State Changed Web Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jun 14, 2016
1 parent f506f8a commit cd411b1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Events/OrderWHE.php
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';
}
8 changes: 8 additions & 0 deletions src/Payloads/Order/OrderCreatedWHP.php
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;
}
8 changes: 8 additions & 0 deletions src/Payloads/Order/OrderStateChangedWHP.php
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;
}
10 changes: 10 additions & 0 deletions src/Payloads/Order/OrderWHP.php
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;
}

0 comments on commit cd411b1

Please sign in to comment.