first commit
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: USER
|
||||
* Date: 13/05/2024
|
||||
* Time: 10:47
|
||||
*/
|
||||
|
||||
namespace App\Models\Qris\v1;
|
||||
|
||||
class QrisJatimPaymentRequest extends \stdClass
|
||||
{
|
||||
private $billNumber = "";
|
||||
private $purposetrx = "";
|
||||
private $storelabel = "";
|
||||
private $customerlabel = "";
|
||||
private $terminalUser = "";
|
||||
private $amount = "";
|
||||
private $core_reference = "";
|
||||
private $merchantPan = "";
|
||||
private $pjsp = "";
|
||||
private $invoice_number = "";
|
||||
private $transactionDate = "";
|
||||
|
||||
public function __construct($response)
|
||||
{
|
||||
$has = get_object_vars($this);
|
||||
foreach ($has as $name => $oldValue) {
|
||||
!array_key_exists($name, $response) ?: $this->$name = $response[$name];
|
||||
}
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
$has = get_object_vars($this);
|
||||
$response = array();
|
||||
foreach ($has as $name => $value) {
|
||||
if (gettype($value) === 'object') {
|
||||
$response[$name] = $value->toArray();
|
||||
} else {
|
||||
$response[$name] = $value;
|
||||
}
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function getbillNumber()
|
||||
{
|
||||
return $this->billNumber;
|
||||
}
|
||||
|
||||
public function setbillNumber($billNumber): void
|
||||
{
|
||||
$this->billNumber = $billNumber;
|
||||
}
|
||||
|
||||
public function getpurposetrx()
|
||||
{
|
||||
return $this->purposetrx;
|
||||
}
|
||||
|
||||
public function setpurposetrx($purposetrx): void
|
||||
{
|
||||
$this->purposetrx = $purposetrx;
|
||||
}
|
||||
|
||||
public function getstorelabel()
|
||||
{
|
||||
return $this->storelabel;
|
||||
}
|
||||
|
||||
public function setstorelabel($storelabel): void
|
||||
{
|
||||
$this->storelabel = $storelabel;
|
||||
}
|
||||
|
||||
public function getcustomerlabel()
|
||||
{
|
||||
return $this->customerlabel;
|
||||
}
|
||||
|
||||
public function setcustomerlabel($customerlabel): void
|
||||
{
|
||||
$this->customerlabel = $customerlabel;
|
||||
}
|
||||
|
||||
public function getterminalUser()
|
||||
{
|
||||
return $this->terminalUser;
|
||||
}
|
||||
|
||||
public function setterminalUser($terminalUser): void
|
||||
{
|
||||
$this->terminalUser = $terminalUser;
|
||||
}
|
||||
|
||||
public function getcore_reference()
|
||||
{
|
||||
return $this->core_reference;
|
||||
}
|
||||
|
||||
public function setcore_reference($core_reference): void
|
||||
{
|
||||
$this->core_reference = $core_reference;
|
||||
}
|
||||
|
||||
public function getcustomerPan()
|
||||
{
|
||||
return $this->customerPan;
|
||||
}
|
||||
|
||||
public function setcustomerPan($customerPan): void
|
||||
{
|
||||
$this->customerPan = $customerPan;
|
||||
}
|
||||
|
||||
public function getpjsp()
|
||||
{
|
||||
return $this->pjsp;
|
||||
}
|
||||
|
||||
public function setpjsp($pjsp): void
|
||||
{
|
||||
$this->pjsp = $pjsp;
|
||||
}
|
||||
|
||||
public function getinvoice_number()
|
||||
{
|
||||
return $this->invoice_number;
|
||||
}
|
||||
|
||||
public function setinvoice_number($invoice_number): void
|
||||
{
|
||||
$this->invoice_number = $invoice_number;
|
||||
}
|
||||
|
||||
public function gettransactionDate()
|
||||
{
|
||||
return $this->transactionDate;
|
||||
}
|
||||
|
||||
public function settransactionDate($transactionDate): void
|
||||
{
|
||||
$this->transactionDate = $transactionDate;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user