1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// GENERATED CODE

use crate::api_default_imports::*;
use crate::solutions::*;
use crate::users::*;

api_client!(
    BookingBusinessesApiClient,
    BookingBusinessesIdApiClient,
    ResourceIdentity::BookingBusinesses
);

impl BookingBusinessesApiClient {
    post!(
        doc: "Create bookingBusiness",
        name: create_booking_businesses,
        path: "/bookingBusinesses",
        body: true
    );
    get!(
        doc: "List bookingBusinesses",
        name: list_booking_businesses,
        path: "/bookingBusinesses"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_booking_businesses_count,
        path: "/bookingBusinesses/$count"
    );
}

impl BookingBusinessesIdApiClient {
    api_client_link!(services, ServicesApiClient);
    api_client_link!(customers, CustomersApiClient);
    api_client_link_id!(appointment, AppointmentsIdApiClient);
    api_client_link_id!(custom_question, CustomQuestionsIdApiClient);
    api_client_link!(staff_members, StaffMembersApiClient);
    api_client_link!(calendar_views, CalendarViewApiClient);
    api_client_link_id!(calendar_view, CalendarViewIdApiClient);
    api_client_link_id!(staff_member, StaffMembersIdApiClient);
    api_client_link!(appointments, AppointmentsApiClient);
    api_client_link_id!(service, ServicesIdApiClient);
    api_client_link!(custom_questions, CustomQuestionsApiClient);
    api_client_link_id!(customer, CustomersIdApiClient);

    delete!(
        doc: "Delete bookingBusiness",
        name: delete_booking_businesses,
        path: "/bookingBusinesses/{{RID}}"
    );
    get!(
        doc: "Get bookingBusiness",
        name: get_booking_businesses,
        path: "/bookingBusinesses/{{RID}}"
    );
    patch!(
        doc: "Update bookingbusiness",
        name: update_booking_businesses,
        path: "/bookingBusinesses/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action getStaffAvailability",
        name: get_staff_availability,
        path: "/bookingBusinesses/{{RID}}/getStaffAvailability",
        body: true
    );
    post!(
        doc: "Invoke action publish",
        name: publish,
        path: "/bookingBusinesses/{{RID}}/publish"
    );
    post!(
        doc: "Invoke action unpublish",
        name: unpublish,
        path: "/bookingBusinesses/{{RID}}/unpublish"
    );
}