-
Notifications
You must be signed in to change notification settings - Fork 41
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 #241 from mwarzybok-sumoheavy/feature/SP-553-master
SP-553 Payout Groups - PHP
- Loading branch information
Showing
10 changed files
with
414 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
/** | ||
* @author BitPay Integrations <[email protected]> | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace BitPaySDK\Model\Payout; | ||
|
||
class PayoutGroup | ||
{ | ||
/** | ||
* @var Payout[] | ||
*/ | ||
private array $payouts = []; | ||
|
||
private array $failed = []; | ||
|
||
/** | ||
* @return Payout[] | ||
*/ | ||
public function getPayouts(): array | ||
{ | ||
return $this->payouts; | ||
} | ||
|
||
/** | ||
* @param Payout[] $payouts | ||
*/ | ||
public function setPayouts(array $payouts): void | ||
{ | ||
$this->payouts = $payouts; | ||
} | ||
|
||
/** | ||
* @return PayoutGroupFailed[] | ||
*/ | ||
public function getFailed(): array | ||
{ | ||
return $this->failed; | ||
} | ||
|
||
/** | ||
* @param PayoutGroupFailed[] $failed | ||
*/ | ||
public function setFailed(array $failed): void | ||
{ | ||
$this->failed = $failed; | ||
} | ||
} |
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,65 @@ | ||
<?php | ||
|
||
/** | ||
* @author BitPay Integrations <[email protected]> | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace BitPaySDK\Model\Payout; | ||
|
||
class PayoutGroupFailed | ||
{ | ||
private string $errMessage = ''; | ||
private ?string $payoutId; | ||
private ?string $payee; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getErrorMessage(): string | ||
{ | ||
return $this->errMessage; | ||
} | ||
|
||
/** | ||
* @param string $errMessage | ||
*/ | ||
public function setErrorMessage(string $errMessage): void | ||
{ | ||
$this->errMessage = $errMessage; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getPayoutId(): ?string | ||
{ | ||
return $this->payoutId; | ||
} | ||
|
||
/** | ||
* @param string|null $payoutId | ||
*/ | ||
public function setPayoutId(?string $payoutId): void | ||
{ | ||
$this->payoutId = $payoutId; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getPayee(): ?string | ||
{ | ||
return $this->payee; | ||
} | ||
|
||
/** | ||
* @param string|null $payee | ||
*/ | ||
public function setPayee(?string $payee): void | ||
{ | ||
$this->payee = $payee; | ||
} | ||
} |
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.