Skip to content

Commit 5e53bad

Browse files
DTPAYETWO-761- Added 'isDefaultTransferMethod' attribute for default accounts (#124)
* DTPAYETWO-761- Added 'isDefaultTransferMethod' attribute to identify default accounts
1 parent 88055f9 commit 5e53bad

8 files changed

+93
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
ChangeLog
22
=========
3+
2.4.4
4+
-------------------
5+
- Added attribute 'isDefaultTransferMethod' to identify default accounts.
6+
37
2.2.3
48
-------------------
59
- Enhanced the code base to support PHP build from version 5.6 to 8.x

src/Hyperwallet/Model/BankAccount.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
* @property string $stateProvince The state or province
6464
* @property string $country The country
6565
* @property string $postalCode The postal code
66+
* @property bool $isDefaultTransferMethod The flag to denote default account
6667
*
6768
* @package Hyperwallet\Model
6869
*/
@@ -1020,4 +1021,23 @@ public function setPostalCode($postalCode) {
10201021
return $this;
10211022
}
10221023

1024+
/**
1025+
* Get the is default transfer method
1026+
*
1027+
* @return bool
1028+
*/
1029+
public function getIsDefaultTransferMethod() {
1030+
return $this->isDefaultTransferMethod;
1031+
}
1032+
1033+
/**
1034+
* Set the is default transfer method
1035+
*
1036+
* @param bool $isDefaultTransferMethod
1037+
* @return BankAccount
1038+
*/
1039+
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
1040+
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
1041+
return $this;
1042+
}
10231043
}

src/Hyperwallet/Model/BankCard.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @property string $cvv The bank card cvv
2121
* @property \DateTime $dateOfExpiry The bank card expiry date
2222
* @property string $processingTime The processing time
23+
* @property bool $isDefaultTransferMethod The flag to denote default account
2324
*
2425
* @package Hyperwallet\Model
2526
*/
@@ -258,4 +259,23 @@ public function setProcessingTime($processingTime) {
258259
return $this;
259260
}
260261

262+
/**
263+
* Get the is default transfer method
264+
*
265+
* @return bool
266+
*/
267+
public function getIsDefaultTransferMethod() {
268+
return $this->isDefaultTransferMethod;
269+
}
270+
271+
/**
272+
* Set the is default transfer method
273+
*
274+
* @param bool $isDefaultTransferMethod
275+
* @return BankCard
276+
*/
277+
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
278+
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
279+
return $this;
280+
}
261281
}

src/Hyperwallet/Model/PaperCheck.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @property string $gender The gender
3131
* @property string $governmentId The government id
3232
* @property string $governmentIdType The government id type
33-
* @property string $isDefaultTransferMethod The is default transfer method
33+
* @property bool $isDefaultTransferMethod The flag to denote default account
3434
* @property string $lastName The last name
3535
* @property string $middleName The middle name
3636
* @property string $mobileNumber The mobile number
@@ -420,7 +420,7 @@ public function getGovernmentIdType() {
420420
/**
421421
* Get the is default transfer method
422422
*
423-
* @return string
423+
* @return bool
424424
*/
425425
public function getIsDefaultTransferMethod() {
426426
return $this->isDefaultTransferMethod;
@@ -429,7 +429,7 @@ public function getIsDefaultTransferMethod() {
429429
/**
430430
* Set the is default transfer method
431431
*
432-
* @param string $isDefaultTransferMethod
432+
* @param bool $isDefaultTransferMethod
433433
* @return PaperCheck
434434
*/
435435
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {

src/Hyperwallet/Model/PayPalAccount.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @property string $type The transfer method type
1111
* @property string $transferMethodCountry The transfer method country
1212
* @property string $transferMethodCurrency The transfer method currency
13-
* @property string $isDefaultTransferMethod The is default transfer method
13+
* @property bool $isDefaultTransferMethod The flag to denote default account
1414
* @property string $email The PayPal account email
1515
1616
*
@@ -142,7 +142,7 @@ public function setTransferMethodCurrency($transferMethodCurrency) {
142142
/**
143143
* Get the is default transfer method
144144
*
145-
* @return string
145+
* @return bool
146146
*/
147147
public function getIsDefaultTransferMethod() {
148148
return $this->isDefaultTransferMethod;
@@ -151,7 +151,7 @@ public function getIsDefaultTransferMethod() {
151151
/**
152152
* Set the is default transfer method
153153
*
154-
* @param string $isDefaultTransferMethod
154+
* @param bool $isDefaultTransferMethod
155155
* @return PayPalAccount
156156
*/
157157
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {

src/Hyperwallet/Model/PrepaidCard.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @property string $cardNumber The prepaid card number
2222
* @property string $cardBrand The prepaid card brand
2323
* @property \DateTime $dateOfExpiry The prepaid card expiry date
24+
* @property bool $isDefaultTransferMethod The flag to denote default account
2425
*
2526
* @package Hyperwallet\Model
2627
*/
@@ -245,4 +246,23 @@ public function setReplacementReason($replacementReason) {
245246
return $this;
246247
}
247248

249+
/**
250+
* Get the is default transfer method
251+
*
252+
* @return bool
253+
*/
254+
public function getIsDefaultTransferMethod() {
255+
return $this->isDefaultTransferMethod;
256+
}
257+
258+
/**
259+
* Set the is default transfer method
260+
*
261+
* @param bool $isDefaultTransferMethod
262+
* @return PrepaidCard
263+
*/
264+
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
265+
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
266+
return $this;
267+
}
248268
}

src/Hyperwallet/Model/TransferMethod.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
* @property string $stateProvince The state or province
7171
* @property string $country The country
7272
* @property string $postalCode The postal code
73+
* @property bool $isDefaultTransferMethod The flag to denote default account
7374
*
7475
* @package Hyperwallet\Model
7576
*/
@@ -1096,4 +1097,23 @@ public function setPostalCode($postalCode) {
10961097
return $this;
10971098
}
10981099

1100+
/**
1101+
* Get the is default transfer method
1102+
*
1103+
* @return bool
1104+
*/
1105+
public function getIsDefaultTransferMethod() {
1106+
return $this->isDefaultTransferMethod;
1107+
}
1108+
1109+
/**
1110+
* Set the is default transfer method
1111+
*
1112+
* @param bool $isDefaultTransferMethod
1113+
* @return TransferMethod
1114+
*/
1115+
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
1116+
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
1117+
return $this;
1118+
}
10991119
}

src/Hyperwallet/Model/VenmoAccount.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @property string $type The transfer method type
1212
* @property string $transferMethodCountry The transfer method country
1313
* @property string $transferMethodCurrency The transfer method currency
14-
* @property string $isDefaultTransferMethod The is default transfer method
14+
* @property bool $isDefaultTransferMethod The flag to denote default account
1515
* @property string $accountId The Venmo account
1616
*
1717
* @package Hyperwallet\Model
@@ -140,7 +140,7 @@ public function setTransferMethodCurrency($transferMethodCurrency) {
140140
/**
141141
* Get the is default transfer method
142142
*
143-
* @return string
143+
* @return bool
144144
*/
145145
public function getIsDefaultTransferMethod() {
146146
return $this->isDefaultTransferMethod;
@@ -149,7 +149,7 @@ public function getIsDefaultTransferMethod() {
149149
/**
150150
* Set the is default transfer method
151151
*
152-
* @param string $isDefaultTransferMethod
152+
* @param bool $isDefaultTransferMethod
153153
* @return VenmoAccount
154154
*/
155155
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {

0 commit comments

Comments
 (0)