Skip to content

Commit

Permalink
Merge faa43d7 into fd23687
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkarpetin committed Apr 13, 2020
2 parents fd23687 + faa43d7 commit 2c29015
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ Security - in case of vulnerabilities.
- [x] Added new AML API
- [x] Added new properties to `Transaction`: `planIds`, `isDisputed`, `retriedTransactionId`
- [x] Added new property to `PaymentCard`: `fingerprint`
- [x] Added new method to `PayPalAccount`: `getApprovalUrl`

### Deprecated
- [x] Deprecated `PayPalAccount` method: `getApprovalLink`

### Removed
- [x] Removed deprecated `PaymentCard` properties: `panFingerprint`, `billingContactId`
- [x] Removed deprecated `BankAccount` property: `contactId`
- [x] Removed deprecated `PayPalAccount` property: `contactId`
- [x] Removed deprecated `BankAccount` method: `getContact`
- [x] Removed deprecated `PayPalAccount` method: `getContact`
- [x] Removed deprecated `PayPalAccount` methods: `getContact`, `setUserName`
- [x] Removed deprecated `Invoice` properties: `billingContactId`, `deliveryContactId`

## [2.7.0] 2020-02-11
Expand Down
23 changes: 11 additions & 12 deletions src/Entities/PayPalAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@ public function getUserName()
return $this->getAttribute('username');
}

/**
* @deprecated The method is deprecated and will be removed in next version.
* @param string $value
*
* @return $this
*/
public function setUserName($value)
{
return $this->setAttribute('username', $value);
}

/**
* @return array
*/
Expand Down Expand Up @@ -91,11 +80,21 @@ public function getCreatedTime()
}

/**
* @deprecated The method is deprecated and will be removed in next version. Please use getApprovalUrl.
*
* @return string
*/
public function getApprovalLink()
{
return $this->getLink('approval_url');
return $this->getApprovalUrl();
}

/**
* @return null|string
*/
public function getApprovalUrl()
{
return $this->getLink('approvalUrl');
}

/**
Expand Down

0 comments on commit 2c29015

Please sign in to comment.