Skip to content

Commit 7ed283a

Browse files
Merge branch 'master' of https://github.com/hyperwallet/php-sdk into feature/DTPAYETWO-759-HWParity_PayPalAccountPhpDev
# Conflicts: # CHANGELOG.md
2 parents b1f6f63 + d9d5891 commit 7ed283a

11 files changed

+98
-34
lines changed

.github/workflows/ci.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ on:
88
- support/SDK-V3
99
- feature/**
1010
- bugfix/**
11-
pull_request:
12-
branches:
13-
- master
14-
- support/SDK-V3
15-
- feature/**
16-
- bugfix/**
11+
- dependabot/**
1712

1813
jobs:
1914
static-analysis:

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ docs/
2525
build/
2626

2727
#unit test cache
28-
.phpunit.result.cache
28+
.phpunit.result.cache
29+
30+
tools/*

.travis.yml

-17
This file was deleted.

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
ChangeLog
22
=========
3-
2.2.4
3+
2.2.5
44
-------------------
55
- Added field 'accountId' to PayPal.
66
- PayPal account creation allowed using field 'accountId' which accepts Email, Phone Number, PayPal PayerID.
77
- Venmo account creation allowed using field 'accountId' which accepts Email, Phone Number, Venmo Handle, Venmo External ID.
88

9+
2.2.4
10+
-------------------
11+
- Added attribute 'isDefaultTransferMethod' to identify default accounts.
12+
913
2.2.3
1014
-------------------
1115
- Enhanced the code base to support PHP build from version 5.6 to 8.x

src/Hyperwallet/Model/BankAccount.php

+20
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

+20
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

+3-3
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

+3-3
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
* @property string $accountId The PayPal account identifier
1616
@@ -143,7 +143,7 @@ public function setTransferMethodCurrency($transferMethodCurrency) {
143143
/**
144144
* Get the is default transfer method
145145
*
146-
* @return string
146+
* @return bool
147147
*/
148148
public function getIsDefaultTransferMethod() {
149149
return $this->isDefaultTransferMethod;
@@ -152,7 +152,7 @@ public function getIsDefaultTransferMethod() {
152152
/**
153153
* Set the is default transfer method
154154
*
155-
* @param string $isDefaultTransferMethod
155+
* @param bool $isDefaultTransferMethod
156156
* @return PayPalAccount
157157
*/
158158
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {

src/Hyperwallet/Model/PrepaidCard.php

+20
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

+20
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

+3-3
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)