Company public service methods: Difference between revisions

No edit summary
No edit summary
Line 582: Line 582:
----
----


=== getPluginPromoInfoByCode ===
<!----=== getPluginPromoInfoByCode ===


<code>getPluginPromoInfoByCode($code)</code>
<code>getPluginPromoInfoByCode($code)</code>
Line 597: Line 597:
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 1,109: Line 1,109:
* paid_events
* paid_events
*:Accept payments  
*:Accept payments  
* promo
<!--* promo
*:Rewards and Referrals
*: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.-->
----
----