Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/Hyperwallet/Model/BankCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -233,4 +234,24 @@ public function setDateOfExpiry(\DateTime $dateOfExpiry = null) {
return $this;
}

}
/**
* 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;
}

}
41 changes: 41 additions & 0 deletions src/Hyperwallet/Model/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down