Skip to content

Commit

Permalink
DTPAYETWO-761- Added 'isDefaultTransferMethod' attribute for default …
Browse files Browse the repository at this point in the history
…accounts(V3) (#125)

* DTPAYETWO-761- Added 'isDefaultTransferMethod' attribute for default accounts(V3)
  • Loading branch information
akswaminathan-pp-dev authored Jan 13, 2023
1 parent cb10d75 commit 90ebb02
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ChangeLog
=========
1.7.4
-------------------
- Added attribute 'isDefaultTransferMethod' to identify default accounts.

1.7.3
-------------------
- Enhanced the code base to support PHP build from version 5.6 to 8.x
Expand Down
20 changes: 20 additions & 0 deletions src/Hyperwallet/Model/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
* @property string $stateProvince The state or province
* @property string $country The country
* @property string $postalCode The postal code
* @property bool $isDefaultTransferMethod The flag to denote default account
*
* @package Hyperwallet\Model
*/
Expand Down Expand Up @@ -1019,4 +1020,23 @@ public function setPostalCode($postalCode) {
return $this;
}

/**
* Get the is default transfer method
*
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
}

/**
* Set the is default transfer method
*
* @param bool $isDefaultTransferMethod
* @return BankAccount
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
return $this;
}
}
20 changes: 20 additions & 0 deletions src/Hyperwallet/Model/BankCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @property string $cvv The bank card cvv
* @property \DateTime $dateOfExpiry The bank card expiry date
* @property string $processingTime The processing time
* @property bool $isDefaultTransferMethod The flag to denote default account
*
* @package Hyperwallet\Model
*/
Expand Down Expand Up @@ -258,4 +259,23 @@ public function setProcessingTime($processingTime) {
return $this;
}

/**
* Get the is default transfer method
*
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
}

/**
* Set the is default transfer method
*
* @param bool $isDefaultTransferMethod
* @return BankCard
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
return $this;
}
}
6 changes: 3 additions & 3 deletions src/Hyperwallet/Model/PaperCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @property string $gender The gender
* @property string $governmentId The government id
* @property string $governmentIdType The government id type
* @property string $isDefaultTransferMethod The is default transfer method
* @property bool $isDefaultTransferMethod The flag to denote default account
* @property string $lastName The last name
* @property string $middleName The middle name
* @property string $mobileNumber The mobile number
Expand Down Expand Up @@ -420,7 +420,7 @@ public function getGovernmentIdType() {
/**
* Get the is default transfer method
*
* @return string
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
Expand All @@ -429,7 +429,7 @@ public function getIsDefaultTransferMethod() {
/**
* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @param bool $isDefaultTransferMethod
* @return PaperCheck
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
Expand Down
6 changes: 3 additions & 3 deletions src/Hyperwallet/Model/PayPalAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @property string $type The transfer method type
* @property string $transferMethodCountry The transfer method country
* @property string $transferMethodCurrency The transfer method currency
* @property string $isDefaultTransferMethod The is default transfer method
* @property bool $isDefaultTransferMethod The flag to denote default account
* @property string $email The PayPal account email
*
Expand Down Expand Up @@ -142,7 +142,7 @@ public function setTransferMethodCurrency($transferMethodCurrency) {
/**
* Get the is default transfer method
*
* @return string
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
Expand All @@ -151,7 +151,7 @@ public function getIsDefaultTransferMethod() {
/**
* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @param bool $isDefaultTransferMethod
* @return PayPalAccount
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
Expand Down
21 changes: 21 additions & 0 deletions src/Hyperwallet/Model/PrepaidCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* @property string $cardNumber The prepaid card number
* @property string $cardBrand The prepaid card brand
* @property \DateTime $dateOfExpiry The prepaid card expiry date
* @property bool $isDefaultTransferMethod The flag to denote default account
*
* @package Hyperwallet\Model
*/
Expand Down Expand Up @@ -197,4 +198,24 @@ public function getDateOfExpiry() {
return $this->dateOfExpiry ? new \DateTime($this->dateOfExpiry) : null;
}

/**
* Get the is default transfer method
*
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
}

/**
* Set the is default transfer method
*
* @param bool $isDefaultTransferMethod
* @return PrepaidCard
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
return $this;
}

}
28 changes: 24 additions & 4 deletions src/Hyperwallet/Model/TransferMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
* @property \DateTime $dateOfExpiry The prepaid card expiry date
*
* @property string $email The email associated with the paypal account
*
*
* @property string $accountId The accountId associated with the venmo account
*
*
* @property string $bankName The bank name
* @property string $bankId The bank id
* @property string $branchName The branch name
Expand Down Expand Up @@ -74,6 +74,7 @@
* @property string $stateProvince The state or province
* @property string $country The country
* @property string $postalCode The postal code
* @property bool $isDefaultTransferMethod The flag to denote default account
*
* @package Hyperwallet\Model
*/
Expand All @@ -87,7 +88,7 @@ class TransferMethod extends BaseModel {
* @var string[]
*/
private static $READ_ONLY_FIELDS = array('token', 'status', 'cardType', 'cardNumber', 'cardBrand', 'dateOfExpiry', 'createdOn', 'email', 'accountId');

public static function FILTERS_ARRAY() {
return array('status', 'type', 'createdBefore', 'createdAfter', 'sortBy', 'offset', 'limit');
}
Expand Down Expand Up @@ -221,7 +222,7 @@ public function getEmail() {
public function getAccountId() {
return $this->accountId;
}

/**
* Get the bank account id
*
Expand Down Expand Up @@ -1121,4 +1122,23 @@ public function setPostalCode($postalCode) {
return $this;
}

/**
* Get the is default transfer method
*
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
}

/**
* Set the is default transfer method
*
* @param bool $isDefaultTransferMethod
* @return TransferMethod
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
return $this;
}
}
6 changes: 3 additions & 3 deletions src/Hyperwallet/Model/VenmoAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @property string $type The transfer method type
* @property string $transferMethodCountry The transfer method country
* @property string $transferMethodCurrency The transfer method currency
* @property string $isDefaultTransferMethod The is default transfer method
* @property bool $isDefaultTransferMethod The flag to denote default account
* @property string $accountId The Venmo account
*
* @package Hyperwallet\Model
Expand Down Expand Up @@ -140,7 +140,7 @@ public function setTransferMethodCurrency($transferMethodCurrency) {
/**
* Get the is default transfer method
*
* @return string
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
Expand All @@ -149,7 +149,7 @@ public function getIsDefaultTransferMethod() {
/**
* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @param bool $isDefaultTransferMethod
* @return VenmoAccount
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
Expand Down

0 comments on commit 90ebb02

Please sign in to comment.