Required role: | REGISUserRole |
POST | /Sections/Available/{uuid}/Term/{reporting_term}/Section/{secUUID} |
---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class InstructorResponse implements JsonSerializable
{
public function __construct(
/** @var ResponseStatus|null */
public ?ResponseStatus $responseStatus=null,
/** @var int */
public int $regent_id=0,
/** @var string|null */
public ?string $regent_login=null,
/** @var string|null */
public ?string $preferred_name=null,
/** @var string|null */
public ?string $first_name=null,
/** @var string|null */
public ?string $last_name=null,
/** @var string|null */
public ?string $full_name=null,
/** @var string|null */
public ?string $email=null,
/** @var string|null */
public ?string $image_base64=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
if (isset($o['regent_id'])) $this->regent_id = $o['regent_id'];
if (isset($o['regent_login'])) $this->regent_login = $o['regent_login'];
if (isset($o['preferred_name'])) $this->preferred_name = $o['preferred_name'];
if (isset($o['first_name'])) $this->first_name = $o['first_name'];
if (isset($o['last_name'])) $this->last_name = $o['last_name'];
if (isset($o['full_name'])) $this->full_name = $o['full_name'];
if (isset($o['email'])) $this->email = $o['email'];
if (isset($o['image_base64'])) $this->image_base64 = $o['image_base64'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
if (isset($this->regent_id)) $o['regent_id'] = $this->regent_id;
if (isset($this->regent_login)) $o['regent_login'] = $this->regent_login;
if (isset($this->preferred_name)) $o['preferred_name'] = $this->preferred_name;
if (isset($this->first_name)) $o['first_name'] = $this->first_name;
if (isset($this->last_name)) $o['last_name'] = $this->last_name;
if (isset($this->full_name)) $o['full_name'] = $this->full_name;
if (isset($this->email)) $o['email'] = $this->email;
if (isset($this->image_base64)) $o['image_base64'] = $this->image_base64;
return empty($o) ? new class(){} : $o;
}
}
class DocumentResponse implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $code=null,
/** @var string|null */
public ?string $document_name=null,
/** @var string|null */
public ?string $document_description=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['code'])) $this->code = $o['code'];
if (isset($o['document_name'])) $this->document_name = $o['document_name'];
if (isset($o['document_description'])) $this->document_description = $o['document_description'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->code)) $o['code'] = $this->code;
if (isset($this->document_name)) $o['document_name'] = $this->document_name;
if (isset($this->document_description)) $o['document_description'] = $this->document_description;
return empty($o) ? new class(){} : $o;
}
}
class SectionResponse implements JsonSerializable
{
public function __construct(
/** @var ResponseStatus|null */
public ?ResponseStatus $responseStatus=null,
/** @var string|null */
public ?string $secUUID=null,
/** @var string|null */
public ?string $course_name=null,
/** @var string|null */
public ?string $section_code=null,
/** @var string|null */
public ?string $course_title=null,
/** @var string|null */
public ?string $course_short_title=null,
/** @var string|null */
public ?string $course_description=null,
/** @var string|null */
public ?string $crosslist_description=null,
/** @var string|null */
public ?string $crosslist_course_name=null,
/** @var string|null */
public ?string $location_long_name=null,
/** @var string|null */
public ?string $room=null,
/** @var array<InstructorResponse>|null */
public ?array $instructors=null,
/** @var array<DocumentResponse>|null */
public ?array $required_documents=null,
/** @var DateTime|null */
public ?DateTime $start_date=null,
/** @var DateTime|null */
public ?DateTime $end_date=null,
/** @var DateTime|null */
public ?DateTime $first_meeting_date=null,
/** @var DateTime|null */
public ?DateTime $last_meeting_date=null,
/** @var string|null */
public ?string $meeting_days=null,
/** @var array<string>|null */
public ?array $start_times=null,
/** @var array<string>|null */
public ?array $end_times=null,
/** @var bool|null */
public ?bool $is_online_only=null,
/** @var bool|null */
public ?bool $is_weekend=null,
/** @var bool|null */
public ?bool $is_weekday=null,
/** @var bool|null */
public ?bool $is_evening=null,
/** @var bool|null */
public ?bool $is_waitlist=null,
/** @var bool|null */
public ?bool $has_special_requirements=null,
/** @var string|null */
public ?string $special_requirements=null,
/** @var bool|null */
public ?bool $is_unlisted=null,
/** @var array<float>|null */
public ?array $credit_amounts=null,
/** @var array<float>|null */
public ?array $audit_amounts=null,
/** @var string|null */
public ?string $audits_short_name=null,
/** @var string|null */
public ?string $audits_long_name=null,
/** @var string|null */
public ?string $credits_short_name=null,
/** @var string|null */
public ?string $credits_long_name=null,
/** @var string|null */
public ?string $distance_ed_materials=null,
/** @var string|null */
public ?string $prerequisites=null,
/** @var string|null */
public ?string $corequisites=null,
/** @var int|null */
public ?int $capacity=null,
/** @var float|null */
public ?float $flat_fee_amount=null,
/** @var float|null */
public ?float $additional_fee_amount=null,
/** @var int */
public int $registered_students=0,
/** @var int */
public int $three_credit_plus=0,
/** @var int */
public int $two_credit=0,
/** @var int */
public int $one_credit=0,
/** @var int */
public int $three_audit_plus=0,
/** @var int */
public int $two_audit=0,
/** @var int */
public int $one_audit=0,
/** @var int */
public int $crosslist_registered_students=0,
/** @var int */
public int $grades_received=0,
/** @var int */
public int $crosslist_grades_received=0,
/** @var DateTime|null */
public ?DateTime $registration_start_date=null,
/** @var DateTime|null */
public ?DateTime $registration_end_date=null,
/** @var DateTime|null */
public ?DateTime $add_start_date=null,
/** @var DateTime|null */
public ?DateTime $add_end_date=null,
/** @var DateTime|null */
public ?DateTime $drop_start_date=null,
/** @var DateTime|null */
public ?DateTime $drop_end_date=null,
/** @var DateTime|null */
public ?DateTime $grading_end_date=null,
/** @var string|null */
public ?string $term=null,
/** @var string|null */
public ?string $reporting_term=null,
/** @var int */
public int $reporting_year=0,
/** @var string|null */
public ?string $current_status=null,
/** @var string|null */
public ?string $added_by=null,
/** @var DateTime|null */
public ?DateTime $added_date=null,
/** @var string|null */
public ?string $changed_by=null,
/** @var DateTime|null */
public ?DateTime $changed_date=null,
/** @var DateTime */
public DateTime $timestamp=new DateTime()
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
if (isset($o['secUUID'])) $this->secUUID = $o['secUUID'];
if (isset($o['course_name'])) $this->course_name = $o['course_name'];
if (isset($o['section_code'])) $this->section_code = $o['section_code'];
if (isset($o['course_title'])) $this->course_title = $o['course_title'];
if (isset($o['course_short_title'])) $this->course_short_title = $o['course_short_title'];
if (isset($o['course_description'])) $this->course_description = $o['course_description'];
if (isset($o['crosslist_description'])) $this->crosslist_description = $o['crosslist_description'];
if (isset($o['crosslist_course_name'])) $this->crosslist_course_name = $o['crosslist_course_name'];
if (isset($o['location_long_name'])) $this->location_long_name = $o['location_long_name'];
if (isset($o['room'])) $this->room = $o['room'];
if (isset($o['instructors'])) $this->instructors = JsonConverters::fromArray('InstructorResponse', $o['instructors']);
if (isset($o['required_documents'])) $this->required_documents = JsonConverters::fromArray('DocumentResponse', $o['required_documents']);
if (isset($o['start_date'])) $this->start_date = JsonConverters::from('DateTime', $o['start_date']);
if (isset($o['end_date'])) $this->end_date = JsonConverters::from('DateTime', $o['end_date']);
if (isset($o['first_meeting_date'])) $this->first_meeting_date = JsonConverters::from('DateTime', $o['first_meeting_date']);
if (isset($o['last_meeting_date'])) $this->last_meeting_date = JsonConverters::from('DateTime', $o['last_meeting_date']);
if (isset($o['meeting_days'])) $this->meeting_days = $o['meeting_days'];
if (isset($o['start_times'])) $this->start_times = JsonConverters::fromArray('string', $o['start_times']);
if (isset($o['end_times'])) $this->end_times = JsonConverters::fromArray('string', $o['end_times']);
if (isset($o['is_online_only'])) $this->is_online_only = $o['is_online_only'];
if (isset($o['is_weekend'])) $this->is_weekend = $o['is_weekend'];
if (isset($o['is_weekday'])) $this->is_weekday = $o['is_weekday'];
if (isset($o['is_evening'])) $this->is_evening = $o['is_evening'];
if (isset($o['is_waitlist'])) $this->is_waitlist = $o['is_waitlist'];
if (isset($o['has_special_requirements'])) $this->has_special_requirements = $o['has_special_requirements'];
if (isset($o['special_requirements'])) $this->special_requirements = $o['special_requirements'];
if (isset($o['is_unlisted'])) $this->is_unlisted = $o['is_unlisted'];
if (isset($o['credit_amounts'])) $this->credit_amounts = JsonConverters::fromArray('float', $o['credit_amounts']);
if (isset($o['audit_amounts'])) $this->audit_amounts = JsonConverters::fromArray('float', $o['audit_amounts']);
if (isset($o['audits_short_name'])) $this->audits_short_name = $o['audits_short_name'];
if (isset($o['audits_long_name'])) $this->audits_long_name = $o['audits_long_name'];
if (isset($o['credits_short_name'])) $this->credits_short_name = $o['credits_short_name'];
if (isset($o['credits_long_name'])) $this->credits_long_name = $o['credits_long_name'];
if (isset($o['distance_ed_materials'])) $this->distance_ed_materials = $o['distance_ed_materials'];
if (isset($o['prerequisites'])) $this->prerequisites = $o['prerequisites'];
if (isset($o['corequisites'])) $this->corequisites = $o['corequisites'];
if (isset($o['capacity'])) $this->capacity = $o['capacity'];
if (isset($o['flat_fee_amount'])) $this->flat_fee_amount = $o['flat_fee_amount'];
if (isset($o['additional_fee_amount'])) $this->additional_fee_amount = $o['additional_fee_amount'];
if (isset($o['registered_students'])) $this->registered_students = $o['registered_students'];
if (isset($o['three_credit_plus'])) $this->three_credit_plus = $o['three_credit_plus'];
if (isset($o['two_credit'])) $this->two_credit = $o['two_credit'];
if (isset($o['one_credit'])) $this->one_credit = $o['one_credit'];
if (isset($o['three_audit_plus'])) $this->three_audit_plus = $o['three_audit_plus'];
if (isset($o['two_audit'])) $this->two_audit = $o['two_audit'];
if (isset($o['one_audit'])) $this->one_audit = $o['one_audit'];
if (isset($o['crosslist_registered_students'])) $this->crosslist_registered_students = $o['crosslist_registered_students'];
if (isset($o['grades_received'])) $this->grades_received = $o['grades_received'];
if (isset($o['crosslist_grades_received'])) $this->crosslist_grades_received = $o['crosslist_grades_received'];
if (isset($o['registration_start_date'])) $this->registration_start_date = JsonConverters::from('DateTime', $o['registration_start_date']);
if (isset($o['registration_end_date'])) $this->registration_end_date = JsonConverters::from('DateTime', $o['registration_end_date']);
if (isset($o['add_start_date'])) $this->add_start_date = JsonConverters::from('DateTime', $o['add_start_date']);
if (isset($o['add_end_date'])) $this->add_end_date = JsonConverters::from('DateTime', $o['add_end_date']);
if (isset($o['drop_start_date'])) $this->drop_start_date = JsonConverters::from('DateTime', $o['drop_start_date']);
if (isset($o['drop_end_date'])) $this->drop_end_date = JsonConverters::from('DateTime', $o['drop_end_date']);
if (isset($o['grading_end_date'])) $this->grading_end_date = JsonConverters::from('DateTime', $o['grading_end_date']);
if (isset($o['term'])) $this->term = $o['term'];
if (isset($o['reporting_term'])) $this->reporting_term = $o['reporting_term'];
if (isset($o['reporting_year'])) $this->reporting_year = $o['reporting_year'];
if (isset($o['current_status'])) $this->current_status = $o['current_status'];
if (isset($o['added_by'])) $this->added_by = $o['added_by'];
if (isset($o['added_date'])) $this->added_date = JsonConverters::from('DateTime', $o['added_date']);
if (isset($o['changed_by'])) $this->changed_by = $o['changed_by'];
if (isset($o['changed_date'])) $this->changed_date = JsonConverters::from('DateTime', $o['changed_date']);
if (isset($o['timestamp'])) $this->timestamp = JsonConverters::from('DateTime', $o['timestamp']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
if (isset($this->secUUID)) $o['secUUID'] = $this->secUUID;
if (isset($this->course_name)) $o['course_name'] = $this->course_name;
if (isset($this->section_code)) $o['section_code'] = $this->section_code;
if (isset($this->course_title)) $o['course_title'] = $this->course_title;
if (isset($this->course_short_title)) $o['course_short_title'] = $this->course_short_title;
if (isset($this->course_description)) $o['course_description'] = $this->course_description;
if (isset($this->crosslist_description)) $o['crosslist_description'] = $this->crosslist_description;
if (isset($this->crosslist_course_name)) $o['crosslist_course_name'] = $this->crosslist_course_name;
if (isset($this->location_long_name)) $o['location_long_name'] = $this->location_long_name;
if (isset($this->room)) $o['room'] = $this->room;
if (isset($this->instructors)) $o['instructors'] = JsonConverters::toArray('InstructorResponse', $this->instructors);
if (isset($this->required_documents)) $o['required_documents'] = JsonConverters::toArray('DocumentResponse', $this->required_documents);
if (isset($this->start_date)) $o['start_date'] = JsonConverters::to('DateTime', $this->start_date);
if (isset($this->end_date)) $o['end_date'] = JsonConverters::to('DateTime', $this->end_date);
if (isset($this->first_meeting_date)) $o['first_meeting_date'] = JsonConverters::to('DateTime', $this->first_meeting_date);
if (isset($this->last_meeting_date)) $o['last_meeting_date'] = JsonConverters::to('DateTime', $this->last_meeting_date);
if (isset($this->meeting_days)) $o['meeting_days'] = $this->meeting_days;
if (isset($this->start_times)) $o['start_times'] = JsonConverters::toArray('string', $this->start_times);
if (isset($this->end_times)) $o['end_times'] = JsonConverters::toArray('string', $this->end_times);
if (isset($this->is_online_only)) $o['is_online_only'] = $this->is_online_only;
if (isset($this->is_weekend)) $o['is_weekend'] = $this->is_weekend;
if (isset($this->is_weekday)) $o['is_weekday'] = $this->is_weekday;
if (isset($this->is_evening)) $o['is_evening'] = $this->is_evening;
if (isset($this->is_waitlist)) $o['is_waitlist'] = $this->is_waitlist;
if (isset($this->has_special_requirements)) $o['has_special_requirements'] = $this->has_special_requirements;
if (isset($this->special_requirements)) $o['special_requirements'] = $this->special_requirements;
if (isset($this->is_unlisted)) $o['is_unlisted'] = $this->is_unlisted;
if (isset($this->credit_amounts)) $o['credit_amounts'] = JsonConverters::toArray('float', $this->credit_amounts);
if (isset($this->audit_amounts)) $o['audit_amounts'] = JsonConverters::toArray('float', $this->audit_amounts);
if (isset($this->audits_short_name)) $o['audits_short_name'] = $this->audits_short_name;
if (isset($this->audits_long_name)) $o['audits_long_name'] = $this->audits_long_name;
if (isset($this->credits_short_name)) $o['credits_short_name'] = $this->credits_short_name;
if (isset($this->credits_long_name)) $o['credits_long_name'] = $this->credits_long_name;
if (isset($this->distance_ed_materials)) $o['distance_ed_materials'] = $this->distance_ed_materials;
if (isset($this->prerequisites)) $o['prerequisites'] = $this->prerequisites;
if (isset($this->corequisites)) $o['corequisites'] = $this->corequisites;
if (isset($this->capacity)) $o['capacity'] = $this->capacity;
if (isset($this->flat_fee_amount)) $o['flat_fee_amount'] = $this->flat_fee_amount;
if (isset($this->additional_fee_amount)) $o['additional_fee_amount'] = $this->additional_fee_amount;
if (isset($this->registered_students)) $o['registered_students'] = $this->registered_students;
if (isset($this->three_credit_plus)) $o['three_credit_plus'] = $this->three_credit_plus;
if (isset($this->two_credit)) $o['two_credit'] = $this->two_credit;
if (isset($this->one_credit)) $o['one_credit'] = $this->one_credit;
if (isset($this->three_audit_plus)) $o['three_audit_plus'] = $this->three_audit_plus;
if (isset($this->two_audit)) $o['two_audit'] = $this->two_audit;
if (isset($this->one_audit)) $o['one_audit'] = $this->one_audit;
if (isset($this->crosslist_registered_students)) $o['crosslist_registered_students'] = $this->crosslist_registered_students;
if (isset($this->grades_received)) $o['grades_received'] = $this->grades_received;
if (isset($this->crosslist_grades_received)) $o['crosslist_grades_received'] = $this->crosslist_grades_received;
if (isset($this->registration_start_date)) $o['registration_start_date'] = JsonConverters::to('DateTime', $this->registration_start_date);
if (isset($this->registration_end_date)) $o['registration_end_date'] = JsonConverters::to('DateTime', $this->registration_end_date);
if (isset($this->add_start_date)) $o['add_start_date'] = JsonConverters::to('DateTime', $this->add_start_date);
if (isset($this->add_end_date)) $o['add_end_date'] = JsonConverters::to('DateTime', $this->add_end_date);
if (isset($this->drop_start_date)) $o['drop_start_date'] = JsonConverters::to('DateTime', $this->drop_start_date);
if (isset($this->drop_end_date)) $o['drop_end_date'] = JsonConverters::to('DateTime', $this->drop_end_date);
if (isset($this->grading_end_date)) $o['grading_end_date'] = JsonConverters::to('DateTime', $this->grading_end_date);
if (isset($this->term)) $o['term'] = $this->term;
if (isset($this->reporting_term)) $o['reporting_term'] = $this->reporting_term;
if (isset($this->reporting_year)) $o['reporting_year'] = $this->reporting_year;
if (isset($this->current_status)) $o['current_status'] = $this->current_status;
if (isset($this->added_by)) $o['added_by'] = $this->added_by;
if (isset($this->added_date)) $o['added_date'] = JsonConverters::to('DateTime', $this->added_date);
if (isset($this->changed_by)) $o['changed_by'] = $this->changed_by;
if (isset($this->changed_date)) $o['changed_date'] = JsonConverters::to('DateTime', $this->changed_date);
if (isset($this->timestamp)) $o['timestamp'] = JsonConverters::to('DateTime', $this->timestamp);
return empty($o) ? new class(){} : $o;
}
}
class SectionAvailableForStudentResponse extends SectionResponse implements JsonSerializable
{
/**
* @param ResponseStatus|null $responseStatus
* @param string|null $secUUID
* @param string|null $course_name
* @param string|null $section_code
* @param string|null $course_title
* @param string|null $course_short_title
* @param string|null $course_description
* @param string|null $crosslist_description
* @param string|null $crosslist_course_name
* @param string|null $location_long_name
* @param string|null $room
* @param array<InstructorResponse>|null $instructors
* @param array<DocumentResponse>|null $required_documents
* @param DateTime|null $start_date
* @param DateTime|null $end_date
* @param DateTime|null $first_meeting_date
* @param DateTime|null $last_meeting_date
* @param string|null $meeting_days
* @param array<string>|null $start_times
* @param array<string>|null $end_times
* @param bool|null $is_online_only
* @param bool|null $is_weekend
* @param bool|null $is_weekday
* @param bool|null $is_evening
* @param bool|null $is_waitlist
* @param bool|null $has_special_requirements
* @param string|null $special_requirements
* @param bool|null $is_unlisted
* @param array<float>|null $credit_amounts
* @param array<float>|null $audit_amounts
* @param string|null $audits_short_name
* @param string|null $audits_long_name
* @param string|null $credits_short_name
* @param string|null $credits_long_name
* @param string|null $distance_ed_materials
* @param string|null $prerequisites
* @param string|null $corequisites
* @param int|null $capacity
* @param float|null $flat_fee_amount
* @param float|null $additional_fee_amount
* @param int $registered_students
* @param int $three_credit_plus
* @param int $two_credit
* @param int $one_credit
* @param int $three_audit_plus
* @param int $two_audit
* @param int $one_audit
* @param int $crosslist_registered_students
* @param int $grades_received
* @param int $crosslist_grades_received
* @param DateTime|null $registration_start_date
* @param DateTime|null $registration_end_date
* @param DateTime|null $add_start_date
* @param DateTime|null $add_end_date
* @param DateTime|null $drop_start_date
* @param DateTime|null $drop_end_date
* @param DateTime|null $grading_end_date
* @param string|null $term
* @param string|null $reporting_term
* @param int $reporting_year
* @param string|null $current_status
* @param string|null $added_by
* @param DateTime|null $added_date
* @param string|null $changed_by
* @param DateTime|null $changed_date
* @param DateTime $timestamp
*/
public function __construct(
?ResponseStatus $responseStatus=null,
?string $secUUID=null,
?string $course_name=null,
?string $section_code=null,
?string $course_title=null,
?string $course_short_title=null,
?string $course_description=null,
?string $crosslist_description=null,
?string $crosslist_course_name=null,
?string $location_long_name=null,
?string $room=null,
?array $instructors=null,
?array $required_documents=null,
?DateTime $start_date=null,
?DateTime $end_date=null,
?DateTime $first_meeting_date=null,
?DateTime $last_meeting_date=null,
?string $meeting_days=null,
?array $start_times=null,
?array $end_times=null,
?bool $is_online_only=null,
?bool $is_weekend=null,
?bool $is_weekday=null,
?bool $is_evening=null,
?bool $is_waitlist=null,
?bool $has_special_requirements=null,
?string $special_requirements=null,
?bool $is_unlisted=null,
?array $credit_amounts=null,
?array $audit_amounts=null,
?string $audits_short_name=null,
?string $audits_long_name=null,
?string $credits_short_name=null,
?string $credits_long_name=null,
?string $distance_ed_materials=null,
?string $prerequisites=null,
?string $corequisites=null,
?int $capacity=null,
?float $flat_fee_amount=null,
?float $additional_fee_amount=null,
int $registered_students=0,
int $three_credit_plus=0,
int $two_credit=0,
int $one_credit=0,
int $three_audit_plus=0,
int $two_audit=0,
int $one_audit=0,
int $crosslist_registered_students=0,
int $grades_received=0,
int $crosslist_grades_received=0,
?DateTime $registration_start_date=null,
?DateTime $registration_end_date=null,
?DateTime $add_start_date=null,
?DateTime $add_end_date=null,
?DateTime $drop_start_date=null,
?DateTime $drop_end_date=null,
?DateTime $grading_end_date=null,
?string $term=null,
?string $reporting_term=null,
int $reporting_year=0,
?string $current_status=null,
?string $added_by=null,
?DateTime $added_date=null,
?string $changed_by=null,
?DateTime $changed_date=null,
DateTime $timestamp=new DateTime(),
/** @var string|null */
public ?string $uuid=null,
/** @var string|null */
public ?string $studentSectionUUID=null,
/** @var float|null */
public ?float $registered_amount=null,
/** @var bool|null */
public ?bool $is_full=null,
/** @var bool|null */
public ?bool $is_too_late=null,
/** @var bool|null */
public ?bool $is_too_early=null,
/** @var bool|null */
public ?bool $is_audit=null,
/** @var bool|null */
public ?bool $is_selected=null,
/** @var bool|null */
public ?bool $is_registered=null,
/** @var bool|null */
public ?bool $is_provisional=null,
/** @var bool|null */
public ?bool $is_missing_requisites=null,
/** @var bool|null */
public ?bool $is_completed=null,
/** @var float|null */
public ?float $maximum_credit_hours=null,
/** @var float|null */
public ?float $maximum_audit_hours=null,
/** @var bool|null */
public ?bool $can_retake=null,
/** @var bool|null */
public ?bool $is_credit_restricted=null,
/** @var bool|null */
public ?bool $is_audit_restricted=null,
/** @var bool|null */
public ?bool $is_oncampus_restricted_for_change=null,
/** @var bool|null */
public ?bool $is_online_restricted_for_change=null,
/** @var bool|null */
public ?bool $can_be_provisional=null,
/** @var bool|null */
public ?bool $can_be_dropped=null,
/** @var array<string>|null */
public ?array $ruleMessages=null
) {
parent::__construct($responseStatus,$secUUID,$course_name,$section_code,$course_title,$course_short_title,$course_description,$crosslist_description,$crosslist_course_name,$location_long_name,$room,$instructors,$required_documents,$start_date,$end_date,$first_meeting_date,$last_meeting_date,$meeting_days,$start_times,$end_times,$is_online_only,$is_weekend,$is_weekday,$is_evening,$is_waitlist,$has_special_requirements,$special_requirements,$is_unlisted,$credit_amounts,$audit_amounts,$audits_short_name,$audits_long_name,$credits_short_name,$credits_long_name,$distance_ed_materials,$prerequisites,$corequisites,$capacity,$flat_fee_amount,$additional_fee_amount,$registered_students,$three_credit_plus,$two_credit,$one_credit,$three_audit_plus,$two_audit,$one_audit,$crosslist_registered_students,$grades_received,$crosslist_grades_received,$registration_start_date,$registration_end_date,$add_start_date,$add_end_date,$drop_start_date,$drop_end_date,$grading_end_date,$term,$reporting_term,$reporting_year,$current_status,$added_by,$added_date,$changed_by,$changed_date,$timestamp);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['uuid'])) $this->uuid = $o['uuid'];
if (isset($o['studentSectionUUID'])) $this->studentSectionUUID = $o['studentSectionUUID'];
if (isset($o['registered_amount'])) $this->registered_amount = $o['registered_amount'];
if (isset($o['is_full'])) $this->is_full = $o['is_full'];
if (isset($o['is_too_late'])) $this->is_too_late = $o['is_too_late'];
if (isset($o['is_too_early'])) $this->is_too_early = $o['is_too_early'];
if (isset($o['is_audit'])) $this->is_audit = $o['is_audit'];
if (isset($o['is_selected'])) $this->is_selected = $o['is_selected'];
if (isset($o['is_registered'])) $this->is_registered = $o['is_registered'];
if (isset($o['is_provisional'])) $this->is_provisional = $o['is_provisional'];
if (isset($o['is_missing_requisites'])) $this->is_missing_requisites = $o['is_missing_requisites'];
if (isset($o['is_completed'])) $this->is_completed = $o['is_completed'];
if (isset($o['maximum_credit_hours'])) $this->maximum_credit_hours = $o['maximum_credit_hours'];
if (isset($o['maximum_audit_hours'])) $this->maximum_audit_hours = $o['maximum_audit_hours'];
if (isset($o['can_retake'])) $this->can_retake = $o['can_retake'];
if (isset($o['is_credit_restricted'])) $this->is_credit_restricted = $o['is_credit_restricted'];
if (isset($o['is_audit_restricted'])) $this->is_audit_restricted = $o['is_audit_restricted'];
if (isset($o['is_oncampus_restricted_for_change'])) $this->is_oncampus_restricted_for_change = $o['is_oncampus_restricted_for_change'];
if (isset($o['is_online_restricted_for_change'])) $this->is_online_restricted_for_change = $o['is_online_restricted_for_change'];
if (isset($o['can_be_provisional'])) $this->can_be_provisional = $o['can_be_provisional'];
if (isset($o['can_be_dropped'])) $this->can_be_dropped = $o['can_be_dropped'];
if (isset($o['ruleMessages'])) $this->ruleMessages = JsonConverters::fromArray('string', $o['ruleMessages']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->uuid)) $o['uuid'] = $this->uuid;
if (isset($this->studentSectionUUID)) $o['studentSectionUUID'] = $this->studentSectionUUID;
if (isset($this->registered_amount)) $o['registered_amount'] = $this->registered_amount;
if (isset($this->is_full)) $o['is_full'] = $this->is_full;
if (isset($this->is_too_late)) $o['is_too_late'] = $this->is_too_late;
if (isset($this->is_too_early)) $o['is_too_early'] = $this->is_too_early;
if (isset($this->is_audit)) $o['is_audit'] = $this->is_audit;
if (isset($this->is_selected)) $o['is_selected'] = $this->is_selected;
if (isset($this->is_registered)) $o['is_registered'] = $this->is_registered;
if (isset($this->is_provisional)) $o['is_provisional'] = $this->is_provisional;
if (isset($this->is_missing_requisites)) $o['is_missing_requisites'] = $this->is_missing_requisites;
if (isset($this->is_completed)) $o['is_completed'] = $this->is_completed;
if (isset($this->maximum_credit_hours)) $o['maximum_credit_hours'] = $this->maximum_credit_hours;
if (isset($this->maximum_audit_hours)) $o['maximum_audit_hours'] = $this->maximum_audit_hours;
if (isset($this->can_retake)) $o['can_retake'] = $this->can_retake;
if (isset($this->is_credit_restricted)) $o['is_credit_restricted'] = $this->is_credit_restricted;
if (isset($this->is_audit_restricted)) $o['is_audit_restricted'] = $this->is_audit_restricted;
if (isset($this->is_oncampus_restricted_for_change)) $o['is_oncampus_restricted_for_change'] = $this->is_oncampus_restricted_for_change;
if (isset($this->is_online_restricted_for_change)) $o['is_online_restricted_for_change'] = $this->is_online_restricted_for_change;
if (isset($this->can_be_provisional)) $o['can_be_provisional'] = $this->can_be_provisional;
if (isset($this->can_be_dropped)) $o['can_be_dropped'] = $this->can_be_dropped;
if (isset($this->ruleMessages)) $o['ruleMessages'] = JsonConverters::toArray('string', $this->ruleMessages);
return empty($o) ? new class(){} : $o;
}
}
class SectionAvailableForStudentRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $transaction_uuid=null,
/** @var string|null */
public ?string $uuid=null,
/** @var string|null */
public ?string $secUUID=null,
/** @var string|null */
public ?string $reporting_term=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['transaction_uuid'])) $this->transaction_uuid = $o['transaction_uuid'];
if (isset($o['uuid'])) $this->uuid = $o['uuid'];
if (isset($o['secUUID'])) $this->secUUID = $o['secUUID'];
if (isset($o['reporting_term'])) $this->reporting_term = $o['reporting_term'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->transaction_uuid)) $o['transaction_uuid'] = $this->transaction_uuid;
if (isset($this->uuid)) $o['uuid'] = $this->uuid;
if (isset($this->secUUID)) $o['secUUID'] = $this->secUUID;
if (isset($this->reporting_term)) $o['reporting_term'] = $this->reporting_term;
return empty($o) ? new class(){} : $o;
}
}
PHP SectionAvailableForStudentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Sections/Available/{uuid}/Term/{reporting_term}/Section/{secUUID} HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SectionAvailableForStudentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<reporting_term>String</reporting_term>
<secUUID>String</secUUID>
<transaction_uuid>String</transaction_uuid>
<uuid>String</uuid>
</SectionAvailableForStudentRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SectionAvailableForStudentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses"> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> <add_end_date>0001-01-01T00:00:00</add_end_date> <add_start_date>0001-01-01T00:00:00</add_start_date> <added_by>String</added_by> <added_date>0001-01-01T00:00:00</added_date> <additional_fee_amount>0</additional_fee_amount> <audit_amounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:decimal>0</d2p1:decimal> </audit_amounts> <audits_long_name>String</audits_long_name> <audits_short_name>String</audits_short_name> <capacity>0</capacity> <changed_by>String</changed_by> <changed_date>0001-01-01T00:00:00</changed_date> <corequisites>String</corequisites> <course_description>String</course_description> <course_name>String</course_name> <course_short_title>String</course_short_title> <course_title>String</course_title> <credit_amounts xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:decimal>0</d2p1:decimal> </credit_amounts> <credits_long_name>String</credits_long_name> <credits_short_name>String</credits_short_name> <crosslist_course_name>String</crosslist_course_name> <crosslist_description>String</crosslist_description> <crosslist_grades_received>0</crosslist_grades_received> <crosslist_registered_students>0</crosslist_registered_students> <current_status>String</current_status> <distance_ed_materials>String</distance_ed_materials> <drop_end_date>0001-01-01T00:00:00</drop_end_date> <drop_start_date>0001-01-01T00:00:00</drop_start_date> <end_date>0001-01-01T00:00:00</end_date> <end_times xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </end_times> <first_meeting_date>0001-01-01T00:00:00</first_meeting_date> <flat_fee_amount>0</flat_fee_amount> <grades_received>0</grades_received> <grading_end_date>0001-01-01T00:00:00</grading_end_date> <has_special_requirements>false</has_special_requirements> <instructors> <InstructorResponse> <ResponseStatus xmlns:d4p1="http://schemas.servicestack.net/types"> <d4p1:ErrorCode>String</d4p1:ErrorCode> <d4p1:Message>String</d4p1:Message> <d4p1:StackTrace>String</d4p1:StackTrace> <d4p1:Errors> <d4p1:ResponseError> <d4p1:ErrorCode>String</d4p1:ErrorCode> <d4p1:FieldName>String</d4p1:FieldName> <d4p1:Message>String</d4p1:Message> <d4p1:Meta xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>String</d7p1:Key> <d7p1:Value>String</d7p1:Value> </d7p1:KeyValueOfstringstring> </d4p1:Meta> </d4p1:ResponseError> </d4p1:Errors> <d4p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d4p1:Meta> </ResponseStatus> <email>String</email> <first_name>String</first_name> <full_name>String</full_name> <image_base64>String</image_base64> <last_name>String</last_name> <preferred_name>String</preferred_name> <regent_id>0</regent_id> <regent_login>String</regent_login> </InstructorResponse> </instructors> <is_evening>false</is_evening> <is_online_only>false</is_online_only> <is_unlisted>false</is_unlisted> <is_waitlist>false</is_waitlist> <is_weekday>false</is_weekday> <is_weekend>false</is_weekend> <last_meeting_date>0001-01-01T00:00:00</last_meeting_date> <location_long_name>String</location_long_name> <meeting_days>String</meeting_days> <one_audit>0</one_audit> <one_credit>0</one_credit> <prerequisites>String</prerequisites> <registered_students>0</registered_students> <registration_end_date>0001-01-01T00:00:00</registration_end_date> <registration_start_date>0001-01-01T00:00:00</registration_start_date> <reporting_term>String</reporting_term> <reporting_year>0</reporting_year> <required_documents> <DocumentResponse> <code>String</code> <document_description>String</document_description> <document_name>String</document_name> </DocumentResponse> </required_documents> <room>String</room> <secUUID>String</secUUID> <section_code>String</section_code> <special_requirements>String</special_requirements> <start_date>0001-01-01T00:00:00</start_date> <start_times xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </start_times> <term>String</term> <three_audit_plus>0</three_audit_plus> <three_credit_plus>0</three_credit_plus> <timestamp>0001-01-01T00:00:00</timestamp> <two_audit>0</two_audit> <two_credit>0</two_credit> <can_be_dropped>false</can_be_dropped> <can_be_provisional>false</can_be_provisional> <can_retake>false</can_retake> <is_audit>false</is_audit> <is_audit_restricted>false</is_audit_restricted> <is_completed>false</is_completed> <is_credit_restricted>false</is_credit_restricted> <is_full>false</is_full> <is_missing_requisites>false</is_missing_requisites> <is_oncampus_restricted_for_change>false</is_oncampus_restricted_for_change> <is_online_restricted_for_change>false</is_online_restricted_for_change> <is_provisional>false</is_provisional> <is_registered>false</is_registered> <is_selected>false</is_selected> <is_too_early>false</is_too_early> <is_too_late>false</is_too_late> <maximum_audit_hours>0</maximum_audit_hours> <maximum_credit_hours>0</maximum_credit_hours> <registered_amount>0</registered_amount> <ruleMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </ruleMessages> <studentSectionUUID>String</studentSectionUUID> <uuid>String</uuid> </SectionAvailableForStudentResponse>