-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yann NGALLE
committed
Jan 24, 2022
1 parent
6911bbd
commit 80f0c7d
Showing
4 changed files
with
149 additions
and
6 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,130 @@ | ||
<?php | ||
|
||
|
||
namespace NYCorp\Finance\Models; | ||
|
||
|
||
class FinanceProviderGatewayResponse | ||
{ | ||
protected $transaction; | ||
protected $wallet; | ||
protected $error; | ||
protected $smsVerificationRequired; | ||
protected $paymentUrl; | ||
|
||
/** | ||
* FinanceProviderGatewayResponse constructor. | ||
* | ||
* @param $transaction | ||
* @param $wallet | ||
* @param $error | ||
* @param $smsVerificationRequired | ||
* @param $paymentUrl | ||
*/ | ||
public function __construct($transaction = null, $wallet = null, $error = null, $smsVerificationRequired = false, $paymentUrl = null) | ||
{ | ||
$this->transaction = $transaction; | ||
$this->wallet = $wallet; | ||
$this->error = $error; | ||
$this->smsVerificationRequired = $smsVerificationRequired; | ||
$this->paymentUrl = $paymentUrl; | ||
} | ||
|
||
public static function fromArray($array) | ||
{ | ||
|
||
} | ||
|
||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getTransaction() | ||
{ | ||
return $this->transaction; | ||
} | ||
|
||
/** | ||
* @param mixed $transaction | ||
*/ | ||
public function setTransaction($transaction): void | ||
{ | ||
$this->transaction = $transaction; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getWallet() | ||
{ | ||
return $this->wallet; | ||
} | ||
|
||
/** | ||
* @param mixed $wallet | ||
*/ | ||
public function setWallet($wallet): void | ||
{ | ||
$this->wallet = $wallet; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getError() | ||
{ | ||
return $this->error; | ||
} | ||
|
||
/** | ||
* @param mixed $error | ||
*/ | ||
public function setError($error): void | ||
{ | ||
$this->error = $error; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getSmsVerificationRequired() | ||
{ | ||
return $this->smsVerificationRequired; | ||
} | ||
|
||
/** | ||
* @param mixed $smsVerificationRequired | ||
*/ | ||
public function setSmsVerificationRequired($smsVerificationRequired): void | ||
{ | ||
$this->smsVerificationRequired = $smsVerificationRequired; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getPaymentUrl() | ||
{ | ||
return $this->paymentUrl; | ||
} | ||
|
||
/** | ||
* @param mixed $paymentUrl | ||
*/ | ||
public function setPaymentUrl($paymentUrl): void | ||
{ | ||
$this->paymentUrl = $paymentUrl; | ||
} | ||
|
||
|
||
public function toArray(): array | ||
{ | ||
return [ | ||
"transaction" => $this->transaction, | ||
"wallet" => $this->wallet, | ||
"error" => $this->error, | ||
"smsVerificationRequired" => $this->smsVerificationRequired, | ||
"paymentUrl" => $this->paymentUrl, | ||
]; | ||
} | ||
} |