1 <?php
2 namespace OpenDNS\MES\Recurring;
3
4 /**
5 * Updates a recurring billing profile.
6 */
7 class Update extends RecurringDetailRequest
8 {
9 /** @var string endpoint path for updating recurring billing */
10 protected $apiEndpointPath = 'rbsUpdate';
11
12 /**
13 * Sets Next Date for recurring billing.
14 *
15 * @param DateTime object representing the next payment date
16 *
17 * @return self
18 */
19 public function setNextDate(\DateTime $nextDate)
20 {
21 return $this->setField('nextDate', $nextDate->format('m/d/y'));
22 }
23
24 }
25