3 namespace Valuation\DataBin;
6 * Manage Valuation Appointments data.
9 class ValuationAppointments extends \Workspace\Service\DataBin
15 protected $meta = array(
16 'Base' => 'ValuationAppointments',
17 'DatasetName' => 'valuationAppointments',
18 'Entity' => '\Valuation\Entity\ValuationAppointments',
19 'References' => array(
20 'timeSlot' => '\Valuation\Entity\ValuationTimeSlots',
21 'valuator' => '\Valuation\Entity\ValuationValuators',
22 'valuation' => '\Valuation\Entity\Valuation',
24 'Dependants' => array()
30 protected $metaList = array(
31 'Contract' => 'Recurring',
32 'RequireAuth' => true,
33 'RequiredInput' => array(),
34 'OptionalInput' => array(
38 'appointmentDate' => 'Date',
42 'appointmentDate' => 'Date',
58 protected $metaCreate = array(
60 'Contract' => 'Recurring',
72 'RelatedEntityFromInput' => array(
74 'Workflow' => '\Valuation\Workflow',
75 'Service' => '\Valuation\Service\ValuationTimeSlots',
79 'Workflow' => '\Valuation\Workflow',
80 'Service' => '\Valuation\Service\ValuationValuators',
84 'Workflow' => '\Valuation\Workflow',
85 'Service' => '\Valuation\Service\Valuation',
86 'Field' => 'valuation'
89 'RequiredInput' => array(
90 'ValuationAppointments' => array(
91 'appointmentDate' => 'DateTime'
94 'OptionalInput' => array(
95 'ValuationAppointments' => array(
96 'appointmentCancelled' => 'Boolean',
97 'appointmentCancelledComments' => 'String500',
98 'appointmentCompleted' => 'Boolean',
101 'Valuation' => array(
102 'email' => 'String250',
103 'firstName' => 'String50',
104 'familyName' => 'String50',
105 'mobile' => 'Mobile',
106 'customerAddressStreet' => 'String150',
107 'customerAddressStreetName' => 'String150',
108 'customerAddressSuburb' => 'String150',
109 'customerAddressCity' => 'String150',
110 'customerAddressPostalCode' => 'String150',
118 protected $metaUpdate = array(
120 'Contract' => 'UseOnce',
121 'RequireAuth' => true,
122 'ExecuteAfter' => array(
123 'updateSendCustomerEmail'
131 'RelatedEntityFromInput' => array(
132 'Valuation' => array(
133 'Workflow' => '\Valuation\Workflow',
134 'Service' => '\Valuation\Service\Valuation',
135 'Field' => 'valuation'
138 'RequiredInput' => array(
139 'ValuationAppointments' => array(
140 'appointmentDate' => 'DateTime'
143 'OptionalInput' => array(
144 'ValuationAppointments' => array(
145 'appointmentCancelled' => 'Boolean',
146 'appointmentCancelledComments' => 'String500',
147 'appointmentCompleted' => 'Boolean',
150 'Valuation' => array(
151 'email' => 'String250',
152 'firstName' => 'String50',
153 'familyName' => 'String50',
154 'mobile' => 'Mobile',
155 'customerAddressStreet' => 'String150',
156 'customerAddressStreetName' => 'String150',
157 'customerAddressSuburb' => 'String150',
158 'customerAddressCity' => 'String150',
159 'customerAddressPostalCode' => 'String150',
168 protected $metaDelete = array(
169 'Contract' => 'UseOnce',
170 'RequireAuth' => true
178 public function __construct()