BuddyClients Docs

BookedService
in package

Booked service.

Handles individual services for a succeeded BookingIntent.

Tags
since
0.1.0

Table of Contents

Properties

$adjustment_label  : string
Adjustment label.
$booking_intent_id  : int
The ID of the BookingIntent.
$client_fee  : int
Client fee.
$client_id  : int
The ID of the client.
$complete_date  : string
The timestamp when the service was completed.
$created_at  : string
Datetime created.
$file_ids  : int
File IDs.
$ID  : int
The ID.
$name  : string
Service name.
$project_id  : int
The ID of the project.
$service_id  : int
Service ID.
$status  : string
The status.
$team_fee  : int
Team member fee.
$team_id  : int
Team member ID.

Methods

__construct()  : mixed
Constructor method.
check_booking_status()  : mixed
Checks whether all BookedServices associated with a BookingIntent are complete.
create()  : mixed
Builds BookedService from line item.
delete_booked_service()  : mixed
Deletes a Booked Service object.
delete_intent_booked_services()  : mixed
Deletes all BookedService objects associated with a BookingIntent.
get_all_services()  : mixed
Retrieves all BookedServices.
get_booked_service()  : mixed
Retrieves BookedService object.
get_created_at()  : mixed
Retrieves the time created.
get_services_by()  : mixed
Retrieves all BookedServices for a specific property.
get_services_by_booking_intent()  : mixed
Retrieves Booked Services by booking intent ID.
get_status()  : mixed
Retrieves the status
team_payment_object()  : mixed
Retrieves the associated team Payment object.
team_payment_status()  : mixed
Retrieves the status of the associated team payment.
update_cancellation_reason()  : mixed
Updates cancellation reason.
update_status()  : mixed
Updates status.
update_team_id()  : mixed
Updates team member.

Properties

$adjustment_label

Adjustment label.

public string $adjustment_label

$booking_intent_id

The ID of the BookingIntent.

public int $booking_intent_id

$complete_date

The timestamp when the service was completed.

public string $complete_date

$status

The status.

public string $status

Accepts 'pending', 'in_progress', 'complete', 'cancellation_requested', 'canceled'.

Methods

__construct()

Constructor method.

public __construct([int|null $ID = null ]) : mixed
Parameters
$ID : int|null = null

The ID of the BookedService.

Tags
since
0.1.0

check_booking_status()

Checks whether all BookedServices associated with a BookingIntent are complete.

public static check_booking_status(int $booking_intent_id) : mixed
Parameters
$booking_intent_id : int

The ID of the BookingIntent.

Tags
since
1.0.27

create()

Builds BookedService from line item.

public create(int $booking_intent_id, LineItem $line_item, int $project_id) : mixed
Parameters
$booking_intent_id : int

The ID of the BookingIntent.

$line_item : LineItem

Single LineItem object.

$project_id : int

The ID of the project group.

Tags
since
0.1.0

delete_booked_service()

Deletes a Booked Service object.

public static delete_booked_service(mixed $booked_service_id) : mixed
Parameters
$booked_service_id : mixed
Tags
since
0.2.5

delete_intent_booked_services()

Deletes all BookedService objects associated with a BookingIntent.

public static delete_intent_booked_services(int $booking_intent_id) : mixed
Parameters
$booking_intent_id : int

The ID of the BookingIntent.

Tags
since
1.0.21

get_all_services()

Retrieves all BookedServices.

public static get_all_services([int $booking_intent_id = null ]) : mixed

If a BookingIntent ID is passed, retrieves all BookedService objects for that BookingIntent.

Parameters
$booking_intent_id : int = null

Optional. The ID of the BookingIntent.

Tags
since
0.1.0

get_booked_service()

Retrieves BookedService object.

public static get_booked_service(int $ID) : mixed
Parameters
$ID : int

The ID of the BookedService object.

Tags
since
0.1.0

get_created_at()

Retrieves the time created.

public static get_created_at(int $ID) : mixed
Parameters
$ID : int

The BookedService ID.

Tags
since
0.1.0

get_services_by()

Retrieves all BookedServices for a specific property.

public static get_services_by(string $property, mixed $value) : mixed
Parameters
$property : string

The property to search by.

$value : mixed

The value to filter by.

Tags
since
0.1.0

get_services_by_booking_intent()

Retrieves Booked Services by booking intent ID.

public static get_services_by_booking_intent(mixed $booking_intent_id) : mixed
Parameters
$booking_intent_id : mixed
Tags
since
0.2.5

get_status()

Retrieves the status

public static get_status(int $ID) : mixed
Parameters
$ID : int

The BookedService ID.

Tags
since
0.1.0

team_payment_object()

Retrieves the associated team Payment object.

public static team_payment_object(int $ID) : mixed
Parameters
$ID : int

The ID of the BookedService.

Tags
since
1.0.21

team_payment_status()

Retrieves the status of the associated team payment.

public static team_payment_status(int $ID) : mixed
Parameters
$ID : int

The ID of the BookedService.

Tags
since
1.0.21

update_cancellation_reason()

Updates cancellation reason.

public static update_cancellation_reason(int $ID, string $cancellation_reason) : mixed
Parameters
$ID : int

The BookedService ID.

$cancellation_reason : string

The submitted cancellation reason.

Tags
since
0.1.0

update_status()

Updates status.

public static update_status(int $ID, string $new_status) : mixed
Parameters
$ID : int

The BookedService ID.

$new_status : string

The status to update to.

Tags
since
0.1.0

update_team_id()

Updates team member.

public static update_team_id(int $ID, string $team_id) : mixed
Parameters
$ID : int

The BookedService ID.

$team_id : string

The ID of the new team member.

Tags
since
0.1.0

        
On this page

Search results