function bat_api_services_update_pricing in Booking and Availability Management API 7
Update the pricing data for a given unit.
Parameters
$unit_id:
$pricing_info:
1 string reference to 'bat_api_services_update_pricing'
- bat_api_services_resources in ./
bat_api.module - Implements hook_services_resources().
File
- ./
bat_api.module, line 610
Code
function bat_api_services_update_pricing($unit_id, $pricing_info) {
$return = new stdClass();
$return->sessid = session_id();
$amount = $pricing_info['amount'];
$start_date = $pricing_info['start_date'];
$end_date = $pricing_info['end_date'];
$operation = $pricing_info['operation'];
$days = $pricing_info['days'];
update_calendar_event($unit_id, $amount, $start_date, $end_date, $operation, $days);
$return->status = 1;
return $return;
}