Line 125: |
Line 125: |
| See also: | | See also: |
| | | |
− | * [http://wiki.simplybook.me/index.php/Settings#Timeframe Timeframe information] | + | * [https://help.simplybook.me/index.php/Need_to_change_interval_(timeframe) Timeframe information] |
| | | |
| ---- | | ---- |
Line 582: |
Line 582: |
| ---- | | ---- |
| | | |
− | === getPluginPromoInfoByCode === | + | <!----=== getPluginPromoInfoByCode === |
| | | |
| <code>getPluginPromoInfoByCode($code)</code> | | <code>getPluginPromoInfoByCode($code)</code> |
Line 592: |
Line 592: |
| Returns Array. | | Returns Array. |
| | | |
− | Returns an object with detailed information about promotion by promotion code. You can get promotion code | + | Returns an object with detailed information about Rewards and referrals promotion by promotion code. You can get promotion code |
| using <code>[[Catalogue#getPromotionList|getPromotionList]]</code> API method. If promotion record with specified | | using <code>[[Catalogue#getPromotionList|getPromotionList]]</code> API method. If promotion record with specified |
− | code not found then method returns an empty array (an empty object). If [[Custom_Features#Simply_Smart_Promotions|Simply Smart Promotions Custom Feature]] | + | code not found then method returns an empty array (an empty object). If [[Rewards_and_Referrals_custom_feature|Rewards and Referrals Custom Feature]] |
| not enabled then method returns an error with code -32001 (Custom Feature is not activated). Use | | not enabled then method returns an error with code -32001 (Custom Feature is not activated). Use |
| <code>[[#isPluginActivated|isPluginActivated('promo')]]</code> API method call to check if Custom Feature enabled.See [[#getPromotionList response|example]] of <code>getPromotionList</code> API method response. Please note that | | <code>[[#isPluginActivated|isPluginActivated('promo')]]</code> API method call to check if Custom Feature enabled.See [[#getPromotionList response|example]] of <code>getPromotionList</code> API method response. Please note that |
− | response contains a list of services for wich promotion discount can be applied (<code>service_ids</code> key). | + | response contains a list of services for wich promotion discount can be applied (<code>service_ids</code> key).--> |
| | | |
| | | |
Line 633: |
Line 633: |
| ---- | | ---- |
| | | |
− | === getPromotionRewardInfo === | + | <!---=== getPromotionRewardInfo === |
| | | |
| <code>getPromotionRewardInfo($commonPromotionId, $clientId, $hash)</code> | | <code>getPromotionRewardInfo($commonPromotionId, $clientId, $hash)</code> |
Line 647: |
Line 647: |
| Returns promotion reward by common promotion id, client id and hash. | | Returns promotion reward by common promotion id, client id and hash. |
| | | |
− | | + | --> |
| ---- | | ---- |
| | | |
Line 768: |
Line 768: |
| Returns Integer. | | Returns Integer. |
| | | |
− | Returns company's timeframe configuration (in minutes). Timeframe can be either 5, 10, 15, 20, 30 or 60 minutes.You can find more details about timeframe [[Settings#Timeframe|here]]. | + | Returns company's timeframe configuration (in minutes). Timeframe can be either 5, 10, 15, 20, 30 or 60 minutes.You can find more details about timeframe [[Need_to_change_interval_(timeframe)|here]]. |
| | | |
| | | |
Line 780: |
Line 780: |
| Returns String. | | Returns String. |
| | | |
− | Returns company timeline type | + | Returns company calendar layout type |
| | | |
| | | |
Line 1,020: |
Line 1,020: |
| * time_format | | * time_format |
| * timeframe | | * timeframe |
− | *: Returns company's timeframe configuration (in minutes). Timeframe can be either 5, 10, 15, 20, 30 or 60 minutes. You can find more details about timeframe [[Settings#Timeframe|here]] | + | *: Returns company's timeframe configuration (in minutes). Timeframe can be either 5, 10, 15, 20, 30 or 60 minutes. You can find more details about timeframe [[Need_to_change_interval_(timeframe)|here]] |
| * user_public_timeline_type | | * user_public_timeline_type |
| *: String. Can be one of the following values: | | *: String. Can be one of the following values: |
Line 1,109: |
Line 1,109: |
| * paid_events | | * paid_events |
| *:Accept payments | | *:Accept payments |
− | * promo | + | <!--* promo |
− | *:Simply Smart Promotions | + | *:Rewards and Referrals--> |
| * recap | | * recap |
| *:Daily report | | *:Daily report |
Line 1,236: |
Line 1,236: |
| ---- | | ---- |
| | | |
− | ====getPluginPromoInfoByCode response==== | + | <!----====getPluginPromoInfoByCode response==== |
| | | |
| { | | { |
Line 1,263: |
Line 1,263: |
| } | | } |
| | | |
− | <code>service_ids</code> contains a list of services for wich promotion discount can be applied. | + | <code>service_ids</code> contains a list of services for wich promotion discount can be applied.--> |
| ---- | | ---- |
| | | |