Company public service methods: Difference between revisions

Line 992: Line 992:


----
----
====Company params====


Use these values to get configuration params for company with <code>[[#getCompanyParam|getCompanyParam]]</code> API method.
Use these values to get configuration params for company with <code>[[#getCompanyParam|getCompanyParam]]</code> API method.


* allow_delay_payment
* allow_event_breaktime_break
* allow_event_breaktime_break
*: <code>true</code> if service can extend over breaktime
*: <code>true</code> if service can extend over breaktime
Line 1,006: Line 1,003:
* date_format
* date_format
* fixed_country_prefix
* fixed_country_prefix
* hide_sale_tax
* max_group_bookings
* max_group_bookings
*: Integer. [[Plugins#Group bookings|Group booking plugin]] configuration
*: [[Plugins#Group bookings|Group Booking plugin]] configuration. Integer.
* max_time_till_event
* max_time_till_event
* min_time_till_event
* min_time_till_event
* monday_is_first_day
* monday_is_first_day
*: <code>true</code> if monday specified as first day of the week in company's settings
*: <code>true</code> if monday specified as first day of the week in company's settings
* payment_timeout
* require_fields
* require_fields
*: String. Client's data fields required for booking. Possible values:  
*: Client's data fields required for booking. String. Possible values:  
** phone - phone number is required
** phone - phone number is required
** email - email address is required
** email - email address is required
** email_phone - phone number and email address are required
** email_phone - phone number and email address are required
* sale_tax
* send_notifications_in_client_timezone
* send_notifications_in_client_timezone
* show_booking_page_in_client_timezone
* show_booking_page_in_client_timezone
Line 1,034: Line 1,028:
** classic
** classic
*: Please note that <code>classic</code> timeline type is deprecated and not supported anymore.
*: Please note that <code>classic</code> timeline type is deprecated and not supported anymore.
=====Accept payments plugin params=====
Read more about [[Plugins#Accept payments|Accept payments plugin configuration]].
* allow_delay_payment
*: Allow delay payment option. Boolean.
* hide_sale_tax
*: Hide sales tax option. Boolean.
* payment_timeout
*: Payment timeout option. String ("5 minutes", "1 hour", ...)
* sale_tax
*: Sales tax option. Integer. You should divide by 100 to get percent value.
=====Cancellation Policy plugin params=====
Read more about [[Plugins#Cancellation Policy|Cancellation policy plugin configuration]].
* cancelation_policy_text
*: Full policy text. String.
* cancelation_policy_label
*: Short label for confirmation control. String.
* cancelation_policy_period
*: Time period value. String ("5 minutes", "1 hour", ...)


----
----