-
Notifications
You must be signed in to change notification settings - Fork 3
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 #31 from mercadolibre/feature/PPCO-2084
feat(PPCO-2084): updating entities
- Loading branch information
Showing
24 changed files
with
567 additions
and
198 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
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,32 @@ | ||
<?php | ||
|
||
namespace MercadoPago\PP\Sdk\Entity\Notification; | ||
|
||
use MercadoPago\PP\Sdk\Common\AbstractEntity; | ||
|
||
/** | ||
* Class RefundNotifying | ||
* | ||
* @property int $id | ||
* @property bool $notifying | ||
* @property float $amount | ||
* @package MercadoPago\PP\Sdk\Entity\Notification | ||
*/ | ||
class RefundNotifying extends AbstractEntity | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
protected $notifying; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
protected $amount; | ||
} |
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,26 @@ | ||
<?php | ||
|
||
namespace MercadoPago\PP\Sdk\Entity\Notification; | ||
|
||
use MercadoPago\PP\Sdk\Common\AbstractCollection; | ||
|
||
/** | ||
* Class RefundNotifyingList | ||
* | ||
* @package MercadoPago\PP\Sdk\Entity\Notification | ||
*/ | ||
class RefundNotifyingList extends AbstractCollection | ||
{ | ||
/** | ||
* Add entity to collection | ||
* | ||
* @param array $entity | ||
* @param string|null $key | ||
*/ | ||
public function add(array $entity, string $key = null) | ||
{ | ||
$item = new RefundNotifying($this->manager); | ||
$item->setEntity($entity); | ||
parent::addEntity($item, $key); | ||
} | ||
} |
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
Oops, something went wrong.