public function edit(HpsPayPlanSchedule $schedule)
 {
     $data = $schedule->getEditableFieldsWithValues($schedule);
     $result = $this->doRequest($data, array('verb' => 'PUT', 'endpoint' => 'schedules/' . $schedule->scheduleKey));
     return $this->hydrateObject($result, 'HpsPayPlanSchedule');
 }
 public function edit(HpsPayPlanSchedule $schedule)
 {
     $data = $schedule->getEditableFieldsWithValues();
     $result = $this->doRequest('PUT', 'schedules/' . $schedule->scheduleKey, $data);
     return $this->hydrateObject($result, 'HpsPayPlanSchedule');
 }