-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from krzysztof-gzocha/devel
Improved compser.json
- Loading branch information
Showing
17 changed files
with
105 additions
and
28 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
12 changes: 12 additions & 0 deletions
12
src/Team3/Communication/Notification/NotificationInterface.php
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,12 @@ | ||
<?php | ||
/** | ||
* @author Krzysztof Gzocha <[email protected]> | ||
*/ | ||
|
||
namespace Team3\Communication\Notification; | ||
|
||
use Team3\Serializer\SerializableInterface; | ||
|
||
interface NotificationInterface extends SerializableInterface | ||
{ | ||
} |
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
54 changes: 54 additions & 0 deletions
54
src/Team3/Communication/Notification/RefundNotification.php
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,54 @@ | ||
<?php | ||
/** | ||
* @author Krzysztof Gzocha <[email protected]> | ||
*/ | ||
|
||
namespace Team3\Communication\Notification; | ||
|
||
use Team3\Communication\Response\Model\RefundModelInterface; | ||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class RefundNotification implements NotificationInterface | ||
{ | ||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $orderId; | ||
|
||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $extOrderId; | ||
|
||
/** | ||
* @var RefundModelInterface | ||
* @JMS\Type("Team3\Communication\Response\Model\RefundModelInterface") | ||
*/ | ||
private $refund; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getOrderId() | ||
{ | ||
return $this->orderId; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getExtOrderId() | ||
{ | ||
return $this->extOrderId; | ||
} | ||
|
||
/** | ||
* @return RefundModelInterface | ||
*/ | ||
public function getRefund() | ||
{ | ||
return $this->refund; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,7 3,7 @@ | |
* @author Krzysztof Gzocha <[email protected]> | ||
*/ | ||
|
||
namespace Team3\Communication\Request; | ||
namespace Team3\Communication\Request\Model; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
...mmunication/Request/RequestStatusTest.php → ...ation/Request/Model/RequestStatusTest.php
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
2 changes: 1 addition & 1 deletion
2
tests/unit/Team3/Communication/Response/OrderStatusResponseTest.php
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