Skip to content

Commit a294457

Browse files
authored
Merge pull request #66 from arbor-education/feature/MIG-13714
MIG-13714 Generating new version of SDK
2 parents 7356e03 + 4d7d381 commit a294457

File tree

92 files changed

+10378
-814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+10378
-814
lines changed

src/Arbor/Model/AdditionalPaymentReason.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class AdditionalPaymentReason extends ModelBase
1515

1616
public const DESCRIPTION = 'description';
1717

18+
public const EXPORT_CODE = 'exportCode';
19+
1820
protected $_resourceType = ResourceType::ADDITIONAL_PAYMENT_REASON;
1921

2022
/**
@@ -116,4 +118,20 @@ public function setDescription(string $description = null)
116118
{
117119
$this->setProperty('description', $description);
118120
}
121+
122+
/**
123+
* @return string
124+
*/
125+
public function getExportCode()
126+
{
127+
return $this->getProperty('exportCode');
128+
}
129+
130+
/**
131+
* @param string $exportCode
132+
*/
133+
public function setExportCode(string $exportCode = null)
134+
{
135+
$this->setProperty('exportCode', $exportCode);
136+
}
119137
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?php
2+
namespace Arbor\Model;
3+
4+
use Arbor\Resource\ResourceType;
5+
use Arbor\Query\Query;
6+
use Arbor\Model\ModelBase;
7+
8+
class AiAbsenceImport extends ModelBase
9+
{
10+
public const SOURCE = 'source';
11+
12+
public const STATUS = 'status';
13+
14+
public const AI_AGENT_RESPONSE_IDENTIFIER = 'aiAgentResponseIdentifier';
15+
16+
protected $_resourceType = ResourceType::AI_ABSENCE_IMPORT;
17+
18+
/**
19+
* @param Query $query
20+
* @return AiAbsenceImport[] | Collection
21+
* @throws Exception
22+
*/
23+
public static function query(\Arbor\Query\Query $query = null)
24+
{
25+
$gateway = self::getDefaultGateway();
26+
if ($gateway === null) {
27+
throw new Exception('You must call ModelBase::setDefaultGateway() prior to calling ModelBase::query()');
28+
}
29+
30+
if ($query === null) {
31+
$query = new Query();
32+
}
33+
34+
$query->setResourceType(ResourceType::AI_ABSENCE_IMPORT);
35+
36+
return $gateway->query($query);
37+
}
38+
39+
/**
40+
* @param int $id
41+
* @return AiAbsenceImport
42+
* @throws Exception
43+
*/
44+
public static function retrieve($id)
45+
{
46+
$gateway = self::getDefaultGateway();
47+
if ($gateway === null) {
48+
throw new Exception('You must call ModelBase::setDefaultGateway() prior to calling ModelBase::retrieve()');
49+
}
50+
51+
return $gateway->retrieve(ResourceType::AI_ABSENCE_IMPORT, $id);
52+
}
53+
54+
/**
55+
* @return ModelBase
56+
*/
57+
public function getSource()
58+
{
59+
return $this->getProperty('source');
60+
}
61+
62+
/**
63+
* @param ModelBase $source
64+
*/
65+
public function setSource(\ModelBase $source = null)
66+
{
67+
$this->setProperty('source', $source);
68+
}
69+
70+
/**
71+
* @return string
72+
*/
73+
public function getStatus()
74+
{
75+
return $this->getProperty('status');
76+
}
77+
78+
/**
79+
* @param string $status
80+
*/
81+
public function setStatus(string $status = null)
82+
{
83+
$this->setProperty('status', $status);
84+
}
85+
86+
/**
87+
* @return string
88+
*/
89+
public function getAiAgentResponseIdentifier()
90+
{
91+
return $this->getProperty('aiAgentResponseIdentifier');
92+
}
93+
94+
/**
95+
* @param string $aiAgentResponseIdentifier
96+
*/
97+
public function setAiAgentResponseIdentifier(string $aiAgentResponseIdentifier = null)
98+
{
99+
$this->setProperty('aiAgentResponseIdentifier', $aiAgentResponseIdentifier);
100+
}
101+
}

src/Arbor/Model/AttendanceFine.php

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?php
2+
namespace Arbor\Model;
3+
4+
use Arbor\Resource\ResourceType;
5+
use Arbor\Query\Query;
6+
use Arbor\Model\ModelBase;
7+
8+
class AttendanceFine extends ModelBase
9+
{
10+
public const STUDENT = 'student';
11+
12+
public const STATUS = 'status';
13+
14+
public const FINE_DECISION_DATE = 'fineDecisionDate';
15+
16+
public const FINE_CREATED_DATE = 'fineCreatedDate';
17+
18+
public const NOTES = 'notes';
19+
20+
protected $_resourceType = ResourceType::ATTENDANCE_FINE;
21+
22+
/**
23+
* @param Query $query
24+
* @return AttendanceFine[] | Collection
25+
* @throws Exception
26+
*/
27+
public static function query(\Arbor\Query\Query $query = null)
28+
{
29+
$gateway = self::getDefaultGateway();
30+
if ($gateway === null) {
31+
throw new Exception('You must call ModelBase::setDefaultGateway() prior to calling ModelBase::query()');
32+
}
33+
34+
if ($query === null) {
35+
$query = new Query();
36+
}
37+
38+
$query->setResourceType(ResourceType::ATTENDANCE_FINE);
39+
40+
return $gateway->query($query);
41+
}
42+
43+
/**
44+
* @param int $id
45+
* @return AttendanceFine
46+
* @throws Exception
47+
*/
48+
public static function retrieve($id)
49+
{
50+
$gateway = self::getDefaultGateway();
51+
if ($gateway === null) {
52+
throw new Exception('You must call ModelBase::setDefaultGateway() prior to calling ModelBase::retrieve()');
53+
}
54+
55+
return $gateway->retrieve(ResourceType::ATTENDANCE_FINE, $id);
56+
}
57+
58+
/**
59+
* @return \Arbor\Model\Student
60+
*/
61+
public function getStudent()
62+
{
63+
return $this->getProperty('student');
64+
}
65+
66+
/**
67+
* @param \Arbor\Model\Student $student
68+
*/
69+
public function setStudent(\Arbor\Model\Student $student = null)
70+
{
71+
$this->setProperty('student', $student);
72+
}
73+
74+
/**
75+
* @return string
76+
*/
77+
public function getStatus()
78+
{
79+
return $this->getProperty('status');
80+
}
81+
82+
/**
83+
* @param string $status
84+
*/
85+
public function setStatus(string $status = null)
86+
{
87+
$this->setProperty('status', $status);
88+
}
89+
90+
/**
91+
* @return \DateTime
92+
*/
93+
public function getFineDecisionDate()
94+
{
95+
return $this->getProperty('fineDecisionDate');
96+
}
97+
98+
/**
99+
* @param \DateTime $fineDecisionDate
100+
*/
101+
public function setFineDecisionDate(\DateTime $fineDecisionDate = null)
102+
{
103+
$this->setProperty('fineDecisionDate', $fineDecisionDate);
104+
}
105+
106+
/**
107+
* @return \DateTime
108+
*/
109+
public function getFineCreatedDate()
110+
{
111+
return $this->getProperty('fineCreatedDate');
112+
}
113+
114+
/**
115+
* @param \DateTime $fineCreatedDate
116+
*/
117+
public function setFineCreatedDate(\DateTime $fineCreatedDate = null)
118+
{
119+
$this->setProperty('fineCreatedDate', $fineCreatedDate);
120+
}
121+
122+
/**
123+
* @return string
124+
*/
125+
public function getNotes()
126+
{
127+
return $this->getProperty('notes');
128+
}
129+
130+
/**
131+
* @param string $notes
132+
*/
133+
public function setNotes(string $notes = null)
134+
{
135+
$this->setProperty('notes', $notes);
136+
}
137+
}
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?php
2+
namespace Arbor\Model;
3+
4+
use Arbor\Resource\ResourceType;
5+
use Arbor\Query\Query;
6+
use Arbor\Model\ModelBase;
7+
8+
class AttendanceFineRecord extends ModelBase
9+
{
10+
public const STUDENT = 'student';
11+
12+
public const ATTENDANCE_ROLL_CALL_RECORD = 'attendanceRollCallRecord';
13+
14+
public const ATTENDANCE_FINE = 'attendanceFine';
15+
16+
public const MARK_DATE = 'markDate';
17+
18+
protected $_resourceType = ResourceType::ATTENDANCE_FINE_RECORD;
19+
20+
/**
21+
* @param Query $query
22+
* @return AttendanceFineRecord[] | Collection
23+
* @throws Exception
24+
*/
25+
public static function query(\Arbor\Query\Query $query = null)
26+
{
27+
$gateway = self::getDefaultGateway();
28+
if ($gateway === null) {
29+
throw new Exception('You must call ModelBase::setDefaultGateway() prior to calling ModelBase::query()');
30+
}
31+
32+
if ($query === null) {
33+
$query = new Query();
34+
}
35+
36+
$query->setResourceType(ResourceType::ATTENDANCE_FINE_RECORD);
37+
38+
return $gateway->query($query);
39+
}
40+
41+
/**
42+
* @param int $id
43+
* @return AttendanceFineRecord
44+
* @throws Exception
45+
*/
46+
public static function retrieve($id)
47+
{
48+
$gateway = self::getDefaultGateway();
49+
if ($gateway === null) {
50+
throw new Exception('You must call ModelBase::setDefaultGateway() prior to calling ModelBase::retrieve()');
51+
}
52+
53+
return $gateway->retrieve(ResourceType::ATTENDANCE_FINE_RECORD, $id);
54+
}
55+
56+
/**
57+
* @return \Arbor\Model\Student
58+
*/
59+
public function getStudent()
60+
{
61+
return $this->getProperty('student');
62+
}
63+
64+
/**
65+
* @param \Arbor\Model\Student $student
66+
*/
67+
public function setStudent(\Arbor\Model\Student $student = null)
68+
{
69+
$this->setProperty('student', $student);
70+
}
71+
72+
/**
73+
* @return \Arbor\Model\AttendanceRollCallRecord
74+
*/
75+
public function getAttendanceRollCallRecord()
76+
{
77+
return $this->getProperty('attendanceRollCallRecord');
78+
}
79+
80+
/**
81+
* @param \Arbor\Model\AttendanceRollCallRecord $attendanceRollCallRecord
82+
*/
83+
public function setAttendanceRollCallRecord(\Arbor\Model\AttendanceRollCallRecord $attendanceRollCallRecord = null)
84+
{
85+
$this->setProperty('attendanceRollCallRecord', $attendanceRollCallRecord);
86+
}
87+
88+
/**
89+
* @return \Arbor\Model\AttendanceFine
90+
*/
91+
public function getAttendanceFine()
92+
{
93+
return $this->getProperty('attendanceFine');
94+
}
95+
96+
/**
97+
* @param \Arbor\Model\AttendanceFine $attendanceFine
98+
*/
99+
public function setAttendanceFine(\Arbor\Model\AttendanceFine $attendanceFine = null)
100+
{
101+
$this->setProperty('attendanceFine', $attendanceFine);
102+
}
103+
104+
/**
105+
* @return \DateTime
106+
*/
107+
public function getMarkDate()
108+
{
109+
return $this->getProperty('markDate');
110+
}
111+
112+
/**
113+
* @param \DateTime $markDate
114+
*/
115+
public function setMarkDate(\DateTime $markDate = null)
116+
{
117+
$this->setProperty('markDate', $markDate);
118+
}
119+
}

0 commit comments

Comments
 (0)