Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
XaosSintez committed Nov 19, 2019
1 parent 27bc319 commit 70cf04e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Security - in case of vulnerabilities.
- [x] Added field `additionalCriteria` into `GatewayAccount` object
- [x] Added field `dueTimeShift` into `BillingAnchor` object
- [x] Renamed field `billingAnchor` into `invoiceTimeShift` in `Subscription` object
- [x] Added `searchUpcomingInvoices` and `issueUpcomingInvoice` methods to **SubscriptionService**
- [x] Added `getUpcomingInvoices` and `issueUpcomingInvoice` methods to **SubscriptionService**

### Deprecated
- [x] Deprecated `Transaction` entity method: `getPaymentCardId`
Expand Down
2 changes: 1 addition & 1 deletion src/Services/SubscriptionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function issueInterimInvoice($subscriptionId, $data)
*
* @return Invoice[]|Collection
*/
public function searchUpcomingInvoices($subscriptionId)
public function getUpcomingInvoices($subscriptionId)
{
return $this->client()->get(
'subscriptions/{subscriptionId}/upcoming-invoices',
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public function searchUpcomingInvoices()
]);
$service = $client->subscriptions();

$result = $service->searchUpcomingInvoices('subscription-1');
$result = $service->getUpcomingInvoices('subscription-1');
$this->assertInstanceOf(Rest\Collection::class, $result);
}

Expand Down

0 comments on commit 70cf04e

Please sign in to comment.