openstackid-resources/app/Services/Model/IAttendeeService.php
Sebastian Marcet a7a8877ace Added CRON task to process eventbrite redeem promo codes
added task that marks promo codes as redeemed for a latest
summit.

Change-Id: I4e865fd025ebb30829b53d77db730503f3b946dd
2018-04-12 20:16:45 -03:00

77 lines
2.3 KiB
PHP

<?php namespace App\Services\Model;
/**
* Copyright 2018 OpenStack Foundation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**/
use models\exceptions\EntityNotFoundException;
use models\exceptions\ValidationException;
use models\summit\Summit;
use models\summit\SummitAttendee;
use models\summit\SummitAttendeeTicket;
/**
* Interface IAttendeeService
* @package App\Services\Model
*/
interface IAttendeeService
{
/**
* @param Summit $summit
* @param array $data
* @return SummitAttendee
* @throws ValidationException
* @throws EntityNotFoundException
*/
public function addAttendee(Summit $summit, array $data);
/**
* @param Summit $summit
* @param int $attendee_id
* @return void
* @throws ValidationException
* @throws EntityNotFoundException
*/
public function deleteAttendee(Summit $summit, $attendee_id);
/**
* @param Summit $summit
* @param int $attendee_id
* @param array $data
* @return SummitAttendee
* @throws ValidationException
* @throws EntityNotFoundException
*/
public function updateAttendee(Summit $summit, $attendee_id, array $data);
/**
* @param SummitAttendee $attendee
* @param array $data
* @throws ValidationException
* @throws EntityNotFoundException
* @return SummitAttendeeTicket
*/
public function addAttendeeTicket(SummitAttendee $attendee, array $data);
/**
* @param SummitAttendee $attendee
* @param int $ticket_id
* @throws ValidationException
* @throws EntityNotFoundException
* @return SummitAttendeeTicket
*/
public function deleteAttendeeTicket(SummitAttendee $attendee, $ticket_id);
/**
* @param Summit $summit
* @param int $page_nbr
* @return mixed
*/
public function updateRedeemedPromoCodes(Summit $summit, $page_nbr = 1);
}