Skip to content

Commit

Permalink
Subscription: add option to update at end of term
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubinix committed Apr 25, 2024
1 parent 93d247c commit 6f3287b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/recurly/subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ public function updateAtNextBillDate() {
$this->_save(Recurly_Client::PUT, $this->uri());
}

/**
* Make an update that applies at the term end date of the subscription.
*
* @throws Recurly_Error
*/
public function updateAtTermEnd() {
$this->timeframe = 'term_end';
$this->_save(Recurly_Client::PUT, $this->uri());
}

/**
* Terminate the subscription immediately and issue a full refund of the last renewal
*
Expand Down

0 comments on commit 6f3287b

Please sign in to comment.