first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Pasien extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'm_pasien';
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentBank extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 't_payment_bank';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentJatimLogs extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'payment_jatim_logs';
|
||||
protected $fillable = [
|
||||
'type',
|
||||
'request',
|
||||
'response',
|
||||
'response',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
];
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentVirtualAccount extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 't_payment_virtualaccount';
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PaymentVirtualAccountDetail extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 't_payment_virtualaccount_detail';
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Poct;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Driver extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'sqlsrv';
|
||||
protected $table = 'Driver';
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Poct;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Operators extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'sqlsrv';
|
||||
protected $table = 'Operator';
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Poct;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Patients extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'sqlsrv';
|
||||
protected $table = 'Patient';
|
||||
|
||||
public function results(){
|
||||
return $this->hasMany(Results::class,'_PID', 'ID');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Poct\Request;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ListPemeriksaanRequest extends \stdClass
|
||||
{
|
||||
private $tgl_order = "";
|
||||
private $tgl_awal = "";
|
||||
private $tgl_akhir = "";
|
||||
|
||||
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 gettgl_order()
|
||||
{
|
||||
return $this->tgl_order;
|
||||
}
|
||||
|
||||
public function settgl_order($tgl_order): void
|
||||
{
|
||||
$this->tgl_order = $tgl_order;
|
||||
}
|
||||
|
||||
public function gettgl_awal()
|
||||
{
|
||||
return $this->tgl_awal;
|
||||
}
|
||||
|
||||
public function settgl_akhir($tgl_akhir): void
|
||||
{
|
||||
$this->tgl_akhir = $tgl_akhir;
|
||||
}
|
||||
|
||||
public function gettgl_akhir()
|
||||
{
|
||||
return $this->tgl_akhir;
|
||||
}
|
||||
|
||||
public function settgl_awal($tgl_awal): void
|
||||
{
|
||||
$this->tgl_awal = $tgl_awal;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Poct\Request;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ListPemeriksaanResponse extends \stdClass
|
||||
{
|
||||
private $responseCode = "00";
|
||||
private $responseMessage = "Success";
|
||||
private $countData = "0";
|
||||
private $responseData = array(
|
||||
"pasien_id" => "",
|
||||
"pasien_norm" => "",
|
||||
"pasien_ruangan" => "",
|
||||
"pasien_last_up_date" => "",
|
||||
"result_id" => "",
|
||||
"result_test_name" => "",
|
||||
"result_value" => "",
|
||||
"result_unit" => "",
|
||||
"result_normal_flag" => "",
|
||||
"result_speciment_date" => "",
|
||||
"operator_first_name" => "",
|
||||
"operator_last_name" => "",
|
||||
);
|
||||
|
||||
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 getresponseCode()
|
||||
{
|
||||
return $this->responseCode;
|
||||
}
|
||||
|
||||
public function setresponseCode($responseCode): void
|
||||
{
|
||||
$this->responseCode = $responseCode;
|
||||
}
|
||||
|
||||
public function getresponseMessage()
|
||||
{
|
||||
return $this->responseMessage;
|
||||
}
|
||||
|
||||
public function setresponseMessage($responseMessage): void
|
||||
{
|
||||
$this->responseMessage = $responseMessage;
|
||||
}
|
||||
|
||||
public function getcountData()
|
||||
{
|
||||
return $this->countData;
|
||||
}
|
||||
|
||||
public function setcountData($countData): void
|
||||
{
|
||||
$this->countData = $countData;
|
||||
}
|
||||
|
||||
public function getresponseData(): Collection
|
||||
{
|
||||
return collect($this->responseData);
|
||||
}
|
||||
|
||||
public function setresponseData($responseData): void
|
||||
{
|
||||
$this->responseData = $responseData;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Poct;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Results extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'sqlsrv';
|
||||
protected $table = 'Result';
|
||||
|
||||
public function operators(){
|
||||
return $this->hasMany(Operators::class,'OperatorID', 'OperatorID');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: USER
|
||||
* Date: 11/05/2024
|
||||
* Time: 13:07
|
||||
*/
|
||||
|
||||
namespace App\Models\Qris\v1;
|
||||
|
||||
class QrisJatimCheckStatusQrisRequest extends \stdClass
|
||||
{
|
||||
private $username = "";
|
||||
private $password = "";
|
||||
private $invoice_number = "";
|
||||
|
||||
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 getusername()
|
||||
{
|
||||
return $this->username;
|
||||
}
|
||||
|
||||
public function setusername($username): void
|
||||
{
|
||||
$this->username = $username;
|
||||
}
|
||||
|
||||
public function getpassword()
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
public function setpassword($password): void
|
||||
{
|
||||
$this->password = $password;
|
||||
}
|
||||
|
||||
public function getinvoice_number()
|
||||
{
|
||||
return $this->invoice_number;
|
||||
}
|
||||
|
||||
public function setinvoice_number($invoice_number): void
|
||||
{
|
||||
$this->invoice_number = $invoice_number;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: ITKOM-EFFENDY
|
||||
* Date: 01/04/2024
|
||||
* Time: 14:48
|
||||
*/
|
||||
|
||||
namespace App\Models\Qris\v1;
|
||||
|
||||
class QrisJatimGenerateRequest extends \stdClass
|
||||
{
|
||||
private $merchantPan = "";
|
||||
private $hashcodeKey = "";
|
||||
private $billNumber = "";
|
||||
private $purposetrx = "";
|
||||
private $storelabel = "";
|
||||
private $customerlabel = "";
|
||||
private $terminalUser = "";
|
||||
private $amount = "";
|
||||
private $expiredDate = "";
|
||||
|
||||
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 getmerchantPan()
|
||||
{
|
||||
return $this->merchantPan;
|
||||
}
|
||||
|
||||
public function setmerchantPan($merchantPan): void
|
||||
{
|
||||
$this->merchantPan = $merchantPan;
|
||||
}
|
||||
|
||||
public function gethashcodeKey()
|
||||
{
|
||||
return $this->hashcodeKey;
|
||||
}
|
||||
|
||||
public function sethashcodeKey($hashcodeKey): void
|
||||
{
|
||||
$this->hashcodeKey = $hashcodeKey;
|
||||
}
|
||||
|
||||
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 getexpiredDate()
|
||||
{
|
||||
return $this->expiredDate;
|
||||
}
|
||||
|
||||
public function setexpiredDate($expiredDate): void
|
||||
{
|
||||
$this->expiredDate = $expiredDate;
|
||||
}
|
||||
|
||||
public function getamount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
public function setamount($amount): void
|
||||
{
|
||||
$this->amount = $amount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: ITKOM-EFFENDY
|
||||
* Date: 01/04/2024
|
||||
* Time: 14:48
|
||||
*/
|
||||
|
||||
namespace App\Models\Qris\v1;
|
||||
|
||||
class QrisJatimGenerateResponse extends \stdClass
|
||||
{
|
||||
private $responseCode = '00';
|
||||
private $totalAmount = '';
|
||||
private $qrValue = '';
|
||||
private $amount = '';
|
||||
private $expiredDate = '';
|
||||
private $nmid = '';
|
||||
private $billNumber = '';
|
||||
private $merchantPan = '';
|
||||
private $invoiceNumber = '';
|
||||
private $status = '';
|
||||
private $merchantName = '';
|
||||
|
||||
public function __construct($response = null)
|
||||
{
|
||||
if ($response !== null) {
|
||||
$has = get_object_vars($this);
|
||||
foreach ($has as $name => $oldValue) {
|
||||
!array_key_exists($name, $response) ?: $this->{'set' . $name}($response[$name]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
$has = get_object_vars($this);
|
||||
$response = array();
|
||||
foreach ($has as $name => $value) {
|
||||
$response[$name] = $value;
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function getresponseCode()
|
||||
{
|
||||
return $this->responseCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $responseCode
|
||||
*/
|
||||
public function setresponseCode($responseCode): void
|
||||
{
|
||||
$this->responseCode = $responseCode;
|
||||
}
|
||||
|
||||
public function gettotalAmount()
|
||||
{
|
||||
return $this->totalAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $totalAmount
|
||||
*/
|
||||
public function settotalAmount($totalAmount): void
|
||||
{
|
||||
$this->totalAmount = $totalAmount;
|
||||
}
|
||||
|
||||
public function getqrValue()
|
||||
{
|
||||
return $this->qrValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $qrValue
|
||||
*/
|
||||
public function setqrValue($qrValue): void
|
||||
{
|
||||
$this->qrValue = $qrValue;
|
||||
}
|
||||
|
||||
|
||||
public function getamount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $amount
|
||||
*/
|
||||
public function setamount($amount): void
|
||||
{
|
||||
$this->amount = $amount;
|
||||
}
|
||||
|
||||
public function getexpiredDate()
|
||||
{
|
||||
return $this->expiredDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $expiredDate
|
||||
*/
|
||||
public function setexpiredDate($expiredDate): void
|
||||
{
|
||||
$this->expiredDate = $expiredDate;
|
||||
}
|
||||
|
||||
public function getnmid()
|
||||
{
|
||||
return $this->nmid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $nmid
|
||||
*/
|
||||
public function setnmid($nmid): void
|
||||
{
|
||||
$this->nmid = $nmid;
|
||||
}
|
||||
|
||||
public function getbillNumber()
|
||||
{
|
||||
return $this->billNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $billNumber
|
||||
*/
|
||||
public function setbillNumber($billNumber): void
|
||||
{
|
||||
$this->billNumber = $billNumber;
|
||||
}
|
||||
|
||||
public function getmerchantPan()
|
||||
{
|
||||
return $this->merchantPan;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $merchantPan
|
||||
*/
|
||||
public function setmerchantPan($merchantPan): void
|
||||
{
|
||||
$this->merchantPan = $merchantPan;
|
||||
}
|
||||
|
||||
public function getinvoiceNumber()
|
||||
{
|
||||
return $this->invoiceNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $invoiceNumber
|
||||
*/
|
||||
public function setinvoiceNumber($invoiceNumber): void
|
||||
{
|
||||
$this->invoiceNumber = $invoiceNumber;
|
||||
}
|
||||
|
||||
public function getstatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $status
|
||||
*/
|
||||
public function setstatus($status): void
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
public function getmerchantName()
|
||||
{
|
||||
return $this->merchantName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $merchantName
|
||||
*/
|
||||
public function setmerchantName($merchantName): void
|
||||
{
|
||||
$this->merchantName = $merchantName;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: USER
|
||||
* Date: 13/05/2024
|
||||
* Time: 10:56
|
||||
*/
|
||||
|
||||
namespace App\Models\Qris\v1;
|
||||
|
||||
class QrisJatimPaymentResponse extends \stdClass
|
||||
{
|
||||
private $responsCode = "00";
|
||||
private $responsDesc = "Success";
|
||||
private $billNumber = "";
|
||||
private $purposetrx = "";
|
||||
private $storelabel = "";
|
||||
private $customerlabel = "";
|
||||
private $terminalUser = "";
|
||||
private $amount = "";
|
||||
private $core_reference = "";
|
||||
private $customerPan = "";
|
||||
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 getresponsCode()
|
||||
{
|
||||
return $this->responsCode;
|
||||
}
|
||||
|
||||
public function setresponsCode($responsCode): void
|
||||
{
|
||||
$this->responsCode = $responsCode;
|
||||
}
|
||||
|
||||
public function getresponsDesc()
|
||||
{
|
||||
return $this->responsDesc;
|
||||
}
|
||||
|
||||
public function setresponsDesc($responsDesc): void
|
||||
{
|
||||
$this->responsDesc = $responsDesc;
|
||||
}
|
||||
|
||||
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 getamount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
public function setamount($amount): void
|
||||
{
|
||||
$this->amount= $amount;
|
||||
}
|
||||
|
||||
public function gettransactionDate()
|
||||
{
|
||||
return $this->transactionDate;
|
||||
}
|
||||
|
||||
public function settransactionDate($transactionDate): void
|
||||
{
|
||||
$this->transactionDate = $transactionDate;
|
||||
}
|
||||
|
||||
public function getcore_reference ()
|
||||
{
|
||||
return $this->core_reference ;
|
||||
}
|
||||
|
||||
public function setcore_reference ($core_reference ): void
|
||||
{
|
||||
$this->core_reference = $core_reference ;
|
||||
}
|
||||
|
||||
public function getccustomerPan ()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
use HasFactory, Notifiable;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name', 'email', 'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be hidden for arrays.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [
|
||||
'password', 'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'email_verified_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: USER
|
||||
* Date: 14/05/2024
|
||||
* Time: 10:00
|
||||
*/
|
||||
|
||||
namespace App\Models\Va\v1;
|
||||
|
||||
class VirtualAccountJatimRequest extends \stdClass
|
||||
{
|
||||
private $VirtualAccount = "";
|
||||
private $Nama = "";
|
||||
private $Amount = "";
|
||||
private $References = "";
|
||||
private $Tanggal = "";
|
||||
|
||||
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 getVirtualAccount()
|
||||
{
|
||||
return $this->VirtualAccount;
|
||||
}
|
||||
|
||||
public function setVirtualAccount($VirtualAccount): void
|
||||
{
|
||||
$this->VirtualAccount = $VirtualAccount;
|
||||
}
|
||||
|
||||
public function getNama()
|
||||
{
|
||||
return $this->Nama;
|
||||
}
|
||||
|
||||
public function setNama($Nama): void
|
||||
{
|
||||
$this->Nama = $Nama;
|
||||
}
|
||||
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->Amount;
|
||||
}
|
||||
|
||||
public function setAmount($Amount): void
|
||||
{
|
||||
$this->Amount = $Amount;
|
||||
}
|
||||
|
||||
public function getReferences()
|
||||
{
|
||||
return $this->References;
|
||||
}
|
||||
|
||||
public function setReferences($References): void
|
||||
{
|
||||
$this->References = $References;
|
||||
}
|
||||
|
||||
public function getTanggal()
|
||||
{
|
||||
return $this->Tanggal;
|
||||
}
|
||||
|
||||
public function setTanggal($Tanggal): void
|
||||
{
|
||||
$this->Tanggal = $Tanggal;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: USER
|
||||
* Date: 14/05/2024
|
||||
* Time: 10:07
|
||||
*/
|
||||
|
||||
namespace App\Models\Va\v1;
|
||||
|
||||
class VirtualAccountJatimResponse extends \stdClass
|
||||
{
|
||||
private $VirtualAccount = "";
|
||||
private $Amount = "";
|
||||
private $Tanggal = "";
|
||||
private $Status = array(
|
||||
"IsError" => "False",
|
||||
"ResponseCode" => "00",
|
||||
"ErrorDesc" => "Success",
|
||||
);
|
||||
|
||||
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 getVirtualAccount()
|
||||
{
|
||||
return $this->VirtualAccount;
|
||||
}
|
||||
|
||||
public function setVirtualAccount($VirtualAccount): void
|
||||
{
|
||||
$this->VirtualAccount = $VirtualAccount;
|
||||
}
|
||||
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->Amount;
|
||||
}
|
||||
|
||||
public function setAmount($Amount): void
|
||||
{
|
||||
$this->Amount = $Amount;
|
||||
}
|
||||
|
||||
public function getTanggal()
|
||||
{
|
||||
return $this->Tanggal;
|
||||
}
|
||||
|
||||
public function setTanggal($Tanggal): void
|
||||
{
|
||||
$this->Tanggal = $Tanggal;
|
||||
}
|
||||
|
||||
public function getStatus(): Collection
|
||||
{
|
||||
return collect($this->Status);
|
||||
}
|
||||
|
||||
public function setStatus($Staus): void
|
||||
{
|
||||
$this->Status = $Staus;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user