Documentation
¶
Index ¶
- type API
- func (c *API) BookAppointment(request BookAppointmentData) (data AppointmentResponse, err error)
- func (c *API) FetchAvailability(serviceID zoho.Parameter, staffID zoho.Parameter, resourceID zoho.Parameter, ...) (data AvailabilityResponse, err error)
- func (c *API) FetchResources(resourceID zoho.Parameter, serviceID zoho.Parameter) (data ResourceResponse, err error)
- func (c *API) FetchServices(workspacesID zoho.Parameter, serviceID zoho.Parameter, staffID zoho.Parameter) (data ServiceResponse, err error)
- func (c *API) FetchStaff(serviceID zoho.Parameter, staffID zoho.Parameter) (data StaffResponse, err error)
- func (c *API) FetchWorkspaces(workspacesID zoho.Parameter) (data WorkspaceResponse, err error)
- func (c *API) GetAppointment(bookingID zoho.Parameter) (data AppointmentResponse, err error)
- func (c *API) RescheduleAppointment(request RescheduleAppointmentData) (data AppointmentResponse, err error)
- func (c *API) UpdateAppointment(request UpdateAppointmentData) (data AppointmentResponse, err error)
- type AppointmentResponse
- type AvailabilityResponse
- type BookAppointmentData
- type BookingsModule
- type CustomerDetails
- type RescheduleAppointmentData
- type ResourceResponse
- type ServiceResponse
- type StaffResponse
- type UpdateAppointmentData
- type WorkspaceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is used for interacting with the Zoho expense API the exposed methods are primarily access to expense modules which provide access to expense Methods
func (*API) BookAppointment ¶
func (c *API) BookAppointment(request BookAppointmentData) (data AppointmentResponse, err error)
func (*API) FetchAvailability ¶
func (*API) FetchResources ¶
func (*API) FetchServices ¶
func (*API) FetchStaff ¶
func (*API) FetchWorkspaces ¶
func (c *API) FetchWorkspaces(workspacesID zoho.Parameter) (data WorkspaceResponse, err error)
func (*API) GetAppointment ¶
func (c *API) GetAppointment(bookingID zoho.Parameter) (data AppointmentResponse, err error)
func (*API) RescheduleAppointment ¶
func (c *API) RescheduleAppointment(request RescheduleAppointmentData) (data AppointmentResponse, err error)
func (*API) UpdateAppointment ¶
func (c *API) UpdateAppointment(request UpdateAppointmentData) (data AppointmentResponse, err error)
type AppointmentResponse ¶
type AppointmentResponse struct { Response struct { ErrorMessage string `json:"errormessage,omitempty"` Status string `json:"status"` LogMessage []string `json:"logMessage"` ReturnValue struct { StaffName string `json:"staff_name"` CustomerMoreInfo struct{} `json:"customer_more_info"` CustomerBookingStartTime string `json:"customer_booking_start_time"` CustomerContactNo string `json:"customer_contact_no"` BookedOn string `json:"booked_on"` BookingID string `json:"booking_id"` WorkspaceId string `json:"workspace_id"` Duration string `json:"duration"` ServiceId string `json:"service_id"` StaffId string `json:"staff_id"` CostPaid string `json:"cost_paid"` Currency string `json:"currency"` WorkspaceName string `json:"workspace_name"` Cost string `json:"cost"` ServiceName string `json:"service_name"` TimeZone string `json:"time_zone"` StartTime string `json:"start_time"` Due string `json:"due"` CustomerEmail string `json:"customer_email"` BookingType string `json:"booking_type"` CustomerName string `json:"customer_name"` SummaryUrl string `json:"summary_url"` CustomerBookingTimeZone string `json:"customer_booking_time_zone"` Status string `json:status"` } `json:"returnvalue"` } `json:"response"` }
AppointmentResponse is the data returned by GetAppointment
type AvailabilityResponse ¶
type BookAppointmentData ¶
type BookAppointmentData struct { ServiceId string `url:"service_id"` StaffId string `url:"staff_id,omitempty"` ResourceId string `url:"resource_id,omitempty"` FromTime string `url:"from_time"` TimeZone string `url:"time_zone,omitempty"` Customer_Details CustomerDetails `url:"customer_details,json,omitempty"` // Note the option `json` before `omitempty`, the order shouldn't matter }
type BookingsModule ¶
type BookingsModule = string
const ( GetAppointmentModule BookingsModule = "getappointment" GetAvailabilityModule BookingsModule = "availableslots" FetchWorkspacesModule BookingsModule = "workspaces" FetchServicesModule BookingsModule = "services" FetchStaffModule BookingsModule = "staffs" FetchResourceModule BookingsModule = "resources" BookAppointmentModule BookingsModule = "appointment" RescheduleAppointmentModule BookingsModule = "rescheduleappointment" UpdateAppointmentModule BookingsModule = "updateappointment" )
type CustomerDetails ¶
type ResourceResponse ¶
type ServiceResponse ¶
type ServiceResponse struct { Response struct { ReturnValue struct { Data []struct { Duration string `json:"duration"` Buffertime string `json:"buffertime"` Price int `json:"price"` Name string `json:"name"` Currency string `json:"currency"` Id string `json:"id"` } `json:"data"` } `json:"returnvalue"` Status string `json:"status"` } `json:"response"` }
type StaffResponse ¶
type UpdateAppointmentData ¶
type WorkspaceResponse ¶
Click to show internal directories.
Click to hide internal directories.