multi payment final

This commit is contained in:
edmondlang
2023-03-28 15:38:16 +08:00
parent a0ca37ec16
commit 842614700a
13 changed files with 71 additions and 90 deletions
@@ -42,6 +42,9 @@ class GroupObject implements DataTransferObject
/** @var string */
private $reference;
/** @var int */
private $paymentMethod;
/**
* GroupObject constructor.
* @param int $issuer
@@ -55,6 +58,7 @@ class GroupObject implements DataTransferObject
* @param float $serviceCharge
* @param string $reference
* @param int|null $status
* @param int $paymentMethod
*/
public function __construct(
int $issuer,
@@ -66,6 +70,7 @@ class GroupObject implements DataTransferObject
float $currencyRate,
float $tax,
float $serviceCharge,
int $paymentMethod,
?string $reference,
?int $status = ApprovalStatus::PENDING_SUBMISSION,
)
@@ -79,6 +84,7 @@ class GroupObject implements DataTransferObject
$this->currencyRate = $currencyRate;
$this->tax = $tax;
$this->serviceCharge = $serviceCharge;
$this->paymentMethod = $paymentMethod;
$this->reference = $reference;
$this->status = $status;
}
@@ -170,4 +176,12 @@ class GroupObject implements DataTransferObject
{
return $this->reference;
}
/**
* @return int
*/
public function getPaymentMethod(): int
{
return $this->paymentMethod;
}
}