From ebd6263232617121c687cc4b9b1208f405b663d1 Mon Sep 17 00:00:00 2001 From: amylavarapu Date: Tue, 13 Oct 2020 13:13:34 -0700 Subject: [PATCH] Adding fields to Bank card and Payment V3 --- src/Hyperwallet/Model/BankCard.php | 23 ++++++++++++++++- src/Hyperwallet/Model/Payment.php | 41 ++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/src/Hyperwallet/Model/BankCard.php b/src/Hyperwallet/Model/BankCard.php index 143023be..34c2074d 100644 --- a/src/Hyperwallet/Model/BankCard.php +++ b/src/Hyperwallet/Model/BankCard.php @@ -19,6 +19,7 @@ * @property string $cardBrand The bank card brand * @property string $cvv The bank card cvv * @property \DateTime $dateOfExpiry The bank card expiry date + * @property string $processingTime The processing time * * @package Hyperwallet\Model */ @@ -233,4 +234,24 @@ public function setDateOfExpiry(\DateTime $dateOfExpiry = null) { return $this; } -} \ No newline at end of file + /** + * Get the bank card processing time + * + * @return string + */ + public function getProcessingTime() { + return $this->processingTime; + } + + /** + * Set the bank card processing time + * + * @param string $processingTime + * @return BankCard + */ + public function setProcessingTime($processingTime) { + $this->processingTime = $processingTime; + return $this; + } + +} diff --git a/src/Hyperwallet/Model/Payment.php b/src/Hyperwallet/Model/Payment.php index 7662de4a..65432452 100644 --- a/src/Hyperwallet/Model/Payment.php +++ b/src/Hyperwallet/Model/Payment.php @@ -5,6 +5,7 @@ * Represents a V3 Payment * * @property string $token The payment token + * @property string $status The status * @property \DateTime $createdOn The payment creation date * * @property string $clientPaymentId The client payment id @@ -15,6 +16,7 @@ * @property string $memo The payment memo * @property string $purpose The payment purpose * @property \DateTime $releaseOn The payment release date + * @property \DateTime $expiresOn The payment expiry date * * @property string $destinationToken The payment destination token * @property string $programToken The payment program token @@ -61,6 +63,26 @@ public function setToken($token) { return $this; } + /** + * Get the status + * + * @return string + */ + public function getStatus() { + return $this->status; + } + + /** + * Set the status + * + * @param string $status + * @return Payment + */ + public function setStatus($status) { + $this->status = $status; + return $this; + } + /** * Get the payment creation date * @@ -209,6 +231,25 @@ public function setReleaseOn(\DateTime $releaseOn = null) { return $this; } + /** + * Get the payment expiry date + * @return \DateTime + */ + public function getExpiresOn() { + return $this->expiresOn ? new \DateTime($this->expiresOn) : null; + } + + /** + * Set the payment expiry date + * + * @param \DateTime $expiresOn + * @return Payment + */ + public function setExpiresOn(\DateTime $expiresOn = null) { + $this->expiresOn = $expiresOn == null ? null : $expiresOn->format('Y-m-d\TH:i:s'); + return $this; + } + /** * Get the payment destination token *