src/Models/Instance.php
<?php
namespace Resova\Models;
/**
* Class Instance
*
* @codeCoverageIgnore
* @package Resova\Models
*/
class Instance
{
/*
* TODO: make this
{
"instance_id": "YTo1OntpOjA7cM6MToidCI7aTo0O2k6Mzg7fQ==",
"type": "available",
"date": "2019-05-09",
"time_type": "time",
"start_time": "16:00:00",
"end_time": "17:00:00",
"duration": 60,
"in_past": true,
"availability": {
"resources": 0,
"spaces": {
"blocked": 0,
"booked": 0,
"basket": 0,
"min_available": 2,
"min_required": 2,
"max_available": 12,
"available": 8,
"total_available": 9,
"taken": 0,
"occupied": 0,
"total": 9,
"available_assets_limit": true
},
"totals": {
"transactions": 0,
"bookings": 0,
"unpaid": 0
}
},
"bookable": true,
"label": null,
"bookings": [],
"baskets": [],
"block": null,
"notes": [],
"settings": {
"item_id": 30,
"slot_date": "2019-05-09",
"slot_time": "16:00:00",
"duration_amount": 60,
"duration_type": "minutes",
"min_quantity": 2,
"max_quantity": 8,
"total_quantity": 12,
"is_private": false,
"total_price": "50.00",
"tax_exempt": false,
"fee_exempt": false,
"resource_exempt": false,
"pricing_categories": [
{
"pricing_id": 104,
"min_quantity": 1,
"max_quantity": 12,
"single_price": "20.00",
"pricing_category": {
"id": 104,
"name": "Adults"
}
},
{
"pricing_id": 105,
"min_quantity": 0,
"max_quantity": 11,
"single_price": "18.00",
"pricing_category": {
"id": 105,
"name": "Children"
}
},
{
"pricing_id": 142,
"min_quantity": 0,
"max_quantity": 1,
"single_price": "12.00",
"pricing_category": {
"id": 142,
"name": "Student"
}
}
],
"label": null,
"bg_colour": null,
"text_colour": null,
"is_visible": true,
"password": null,
"call_to_book": null,
"resources": [],
"active_bookings": false
},
"staff_assigned": null
}
*/
}