-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/splitTx' into v3
- Loading branch information
Showing
12 changed files
with
384 additions
and
7 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,172 @@ | ||
<?php | ||
|
||
|
||
namespace Ixopay\Client\Data; | ||
|
||
|
||
class TransactionSplit | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $transactionInternalId; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $amount; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $currency; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $sellerMerchantGuid; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $sellerMerchantExternalId; | ||
|
||
/** @var string */ | ||
private $commissionFeeAmount; | ||
|
||
/** @var string */ | ||
private $commissionFeeCurrency; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param int $id | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getTransactionInternalId() | ||
{ | ||
return $this->transactionInternalId; | ||
} | ||
|
||
/** | ||
* @param string $transactionInternalId | ||
*/ | ||
public function setTransactionInternalId($transactionInternalId) | ||
{ | ||
$this->transactionInternalId = $transactionInternalId; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getAmount() | ||
{ | ||
return $this->amount; | ||
} | ||
|
||
/** | ||
* @param string $amount | ||
*/ | ||
public function setAmount($amount) | ||
{ | ||
$this->amount = $amount; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCurrency() | ||
{ | ||
return $this->currency; | ||
} | ||
|
||
/** | ||
* @param string $currency | ||
*/ | ||
public function setCurrency($currency) | ||
{ | ||
$this->currency = $currency; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSellerMerchantGuid() | ||
{ | ||
return $this->sellerMerchantGuid; | ||
} | ||
|
||
/** | ||
* @param string $sellerMerchantGuid | ||
*/ | ||
public function setSellerMerchantGuid($sellerMerchantGuid) | ||
{ | ||
$this->sellerMerchantGuid = $sellerMerchantGuid; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSellerMerchantExternalId() | ||
{ | ||
return $this->sellerMerchantExternalId; | ||
} | ||
|
||
/** | ||
* @param string $sellerMerchantExternalId | ||
*/ | ||
public function setSellerMerchantExternalId($sellerMerchantExternalId) | ||
{ | ||
$this->sellerMerchantExternalId = $sellerMerchantExternalId; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCommissionFeeAmount() | ||
{ | ||
return $this->commissionFeeAmount; | ||
} | ||
|
||
/** | ||
* @param string $commissionFeeAmount | ||
*/ | ||
public function setCommissionFeeAmount($commissionFeeAmount) | ||
{ | ||
$this->commissionFeeAmount = $commissionFeeAmount; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCommissionFeeCurrency() | ||
{ | ||
return $this->commissionFeeCurrency; | ||
} | ||
|
||
/** | ||
* @param string $commissionFeeCurrency | ||
*/ | ||
public function setCommissionFeeCurrency($commissionFeeCurrency) | ||
{ | ||
$this->commissionFeeCurrency = $commissionFeeCurrency; | ||
} | ||
} |
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,30 @@ | ||
<?php | ||
|
||
namespace Ixopay\Client\Transaction\Base; | ||
use Ixopay\Client\Data\TransactionSplit; | ||
|
||
/** | ||
* Interface SplitsInterface | ||
* | ||
* @package Ixopay\Client\Transaction\Base | ||
*/ | ||
interface TransactionSplitsInterface { | ||
|
||
/** | ||
* @param TransactionSplit[] $transactionSplits | ||
* @return void | ||
*/ | ||
public function setTransactionSplits($transactionSplits); | ||
|
||
/** | ||
* @return TransactionSplit[] | ||
*/ | ||
public function getTransactionSplits(); | ||
|
||
/** | ||
* @param TransactionSplit $transactionSplit | ||
* @return void | ||
*/ | ||
public function addTransactionSplit(TransactionSplit $transactionSplit); | ||
|
||
} |
Oops, something went wrong.