| @@ -5,8 +5,10 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Core\DummyData; |
| 8 | 8 | |
| 9 | +defined( 'ABSPATH' ) || exit; | |
| 10 | + | |
| 9 | 11 | use Timetics\Base\Api; |
| 10 | 12 | use Timetics\Core\Appointments\Appointment; |
| 11 | 13 | use Timetics\Core\Bookings\Booking; |
| 12 | 14 | use Timetics\Core\Customers\Customer; |
| @@ -93,14 +95,14 @@ | ||
| 93 | 95 | |
| 94 | 96 | $appointment_data = [ |
| 95 | 97 | 'name' => $factory->sentence, |
| 96 | 98 | 'description' => $factory->paragraph( 7 ), |
| 97 | - 'type' => 'one-to-one', | |
| 99 | + 'type' => 'One-to-One', | |
| 98 | 100 | 'locations' => $this->get_locations( $factory->address ), |
| 99 | 101 | 'staff' => [$staff], |
| 100 | 102 | 'duration' => $this->get_duration(), |
| 101 | 103 | 'price' => $this->get_price(), |
| 102 | - 'capacity' => 1, | |
| 104 | + 'capacity' => "1", | |
| 103 | 105 | 'visibility' => $visibility[array_rand( $visibility )], |
| 104 | 106 | 'schedule' => $this->get_schedule( $staff ), |
| 105 | 107 | 'timezone' => 'Asia/Dhaka', |
| 106 | 108 | 'availability' => $this->get_availability(), |
| @@ -356,9 +358,9 @@ | ||
| 356 | 358 | private function get_locations( $address ) { |
| 357 | 359 | return [ |
| 358 | 360 | [ |
| 359 | 361 | 'location' => $address, |
| 360 | - 'location_type' => 'inperson', | |
| 362 | + 'location_type' => 'in-person-meeting', | |
| 361 | 363 | ], |
| 362 | 364 | ]; |
| 363 | 365 | } |
| 364 | 366 | |
| @@ -383,9 +385,9 @@ | ||
| 383 | 385 | return [ |
| 384 | 386 | [ |
| 385 | 387 | 'ticket_name' => 'default', |
| 386 | 388 | 'ticket_price' => random_int( 30, 100 ), |
| 387 | - 'ticket_quantity' => 1, | |
| 389 | + 'ticket_quantity' => '1', | |
| 388 | 390 | ], |
| 389 | 391 | ]; |
| 390 | 392 | } |
| 391 | 393 | |