class Seatsio::EventsClient

def event_creation_params_to_request(params)

def event_creation_params_to_request(params)
  result = []
  params.each do |param|
    r = {}
    r["eventKey"] = param[:event_key] if param[:event_key] != nil
    r["name"] = param[:name] if param[:name]
    r["date"] = param[:date].iso8601 if param[:date]
    r["tableBookingConfig"] = table_booking_config_to_request(param[:table_booking_config]) if param[:table_booking_config] != nil
    r["objectCategories"] = param[:object_categories] if param[:object_categories] != nil
    r["categories"] = categories_to_request(param[:categories]) if param[:categories] != nil
    r["channels"] = ChannelsClient::channels_to_request(param[:channels]) if param[:channels] != nil
    r["forSaleConfig"] = for_sale_config_to_request(param[:for_sale_config]) if param[:for_sale_config] != nil
    result.push(r)
  end
  result
end