Skip to content

Commit

Permalink
Merge pull request #785 from recurly/v3-v2021-02-25-7117510228
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25 (External Payment Phases)
  • Loading branch information
ELepolt authored Dec 6, 2023
2 parents f9b46aa + 2ff7aeb commit 57b6513
Show file tree
Hide file tree
Showing 6 changed files with 590 additions and 4 deletions.
39 changes: 39 additions & 0 deletions lib/recurly/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -3324,6 +3324,45 @@ public function showExternalInvoice(string $external_invoice_id, array $options
return $this->makeRequest('GET', $path, [], $options);
}

/**
* List the external payment phases on an external subscription
*
* @param string $external_subscription_id External subscription id
* @param array $options Associative array of optional parameters
*
* Supported optional query string parameters:
*
* - $options['params']['sort'] (string): Sort field. You *really* only want to sort by `updated_at` in ascending
* order. In descending order updated records will move behind the cursor and could
* prevent some records from being returned.
* - $options['params']['limit'] (int): Limit number of records 1-200.
* - $options['params']['order'] (string): Sort order.
*
* @return \Recurly\Pager A list of the the external_payment_phases on a site.
* @link https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscription_external_payment_phases
*/
public function listExternalSubscriptionExternalPaymentPhases(string $external_subscription_id, array $options = []): \Recurly\Pager
{
$path = $this->interpolatePath("/external_subscriptions/{external_subscription_id}/external_payment_phases", ['external_subscription_id' => $external_subscription_id]);
return new \Recurly\Pager($this, $path, $options);
}

/**
* Fetch an external payment_phase
*
* @param string $external_subscription_id External subscription id
* @param string $external_payment_phase_id External payment phase ID, e.g. `a34ypb2ef9w1`.
* @param array $options Associative array of optional parameters
*
* @return \Recurly\Resources\ExternalPaymentPhase Details for an external payment_phase.
* @link https://developers.recurly.com/api/v2021-02-25#operation/get_external_subscription_external_payment_phase
*/
public function getExternalSubscriptionExternalPaymentPhase(string $external_subscription_id, string $external_payment_phase_id, array $options = []): \Recurly\Resources\ExternalPaymentPhase
{
$path = $this->interpolatePath("/external_subscriptions/{external_subscription_id}/external_payment_phases/{external_payment_phase_id}", ['external_subscription_id' => $external_subscription_id, 'external_payment_phase_id' => $external_payment_phase_id]);
return $this->makeRequest('GET', $path, [], $options);
}

/**
* List entitlements granted to an account
*
Expand Down
Loading

0 comments on commit 57b6513

Please sign in to comment.