Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hyperwallet/php-sdk into …
Browse files Browse the repository at this point in the history
…feature/DTPAYETWO-759-HWParity_PayPalAccountPhpDev

# Conflicts:
#	CHANGELOG.md
  • Loading branch information
akswaminathan-pp-dev committed Aug 3, 2023
2 parents b1f6f63 + d9d5891 commit 7ed283a
Show file tree
Hide file tree
Showing 11 changed files with 98 additions and 34 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ on:
- support/SDK-V3
- feature/**
- bugfix/**
pull_request:
branches:
- master
- support/SDK-V3
- feature/**
- bugfix/**
- dependabot/**

jobs:
static-analysis:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ docs/
build/

#unit test cache
.phpunit.result.cache
.phpunit.result.cache

tools/*
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
ChangeLog
=========
2.2.4
2.2.5
-------------------
- Added field 'accountId' to PayPal.
- PayPal account creation allowed using field 'accountId' which accepts Email, Phone Number, PayPal PayerID.
- Venmo account creation allowed using field 'accountId' which accepts Email, Phone Number, Venmo Handle, Venmo External ID.

2.2.4
-------------------
- Added attribute 'isDefaultTransferMethod' to identify default accounts.

2.2.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 @@ -1020,4 +1021,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
* @property string $accountId The PayPal account identifier
Expand Down Expand Up @@ -143,7 +143,7 @@ public function setTransferMethodCurrency($transferMethodCurrency) {
/**
* Get the is default transfer method
*
* @return string
* @return bool
*/
public function getIsDefaultTransferMethod() {
return $this->isDefaultTransferMethod;
Expand All @@ -152,7 +152,7 @@ public function getIsDefaultTransferMethod() {
/**
* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @param bool $isDefaultTransferMethod
* @return PayPalAccount
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
Expand Down
20 changes: 20 additions & 0 deletions src/Hyperwallet/Model/PrepaidCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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 @@ -245,4 +246,23 @@ public function setReplacementReason($replacementReason) {
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 PrepaidCard
*/
public function setIsDefaultTransferMethod($isDefaultTransferMethod) {
$this->isDefaultTransferMethod = $isDefaultTransferMethod;
return $this;
}
}
20 changes: 20 additions & 0 deletions src/Hyperwallet/Model/TransferMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,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 @@ -1096,4 +1097,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 7ed283a

Please sign in to comment.