File tree Expand file tree Collapse file tree 3 files changed +29
-12
lines changed
Expand file tree Collapse file tree 3 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 77
88
99class ActivationTileResponse (object ):
10+ """ An instance of this class might the returned by the overriden ``process_request`` method
11+ of your :py:class:`connect.resources.FulfillmentAutomation` or
12+ :py:class:`connect.resources.TierConfigAutomation` subclass to approve the request being
13+ processed, showing a tile with the specified contents.
14+
15+ :param str markdown: Contents of the tile to be shown in the Vendor Portal, in Markdown format.
16+ :rtype: None
17+ """
18+
1019 tile = 'Activation succeeded' # type: str
1120
1221 def __init__ (self , markdown = '' ):
13- # type: (str) -> None
1422 try :
1523 self .tile = json .loads (markdown )
1624 except ValueError :
1725 self .tile = markdown or self .__class__ .tile
1826
1927
2028class ActivationTemplateResponse (object ):
29+ """ An instance of this class might the returned by the overriden ``process_request`` method
30+ of your :py:class:`connect.resources.FulfillmentAutomation` or
31+ :py:class:`connect.resources.TierConfigAutomation` subclass to approve the request being
32+ processed, showing a tile with the specified template id.
33+
34+ :param str template_id: Id of the template od the tile to be shown in the Vendor Portal.
35+ The template must have been defined in the Vendor Portal.
36+ :rtype: None
37+ """
38+
2139 template_id = None # type: str
2240
2341 def __init__ (self , template_id ):
24- # type: (str) -> None
2542 self .template_id = template_id
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ class FulfillmentAutomation(AutomationEngine):
1818 """ This is the automation engine for the Fulfillment API. If you want to process fulfillment
1919 requests, subclass this and implement the ``process_request`` method, which receives a
2020 :py:class:`connect.models.Fulfillment` request as argument and must return an
21- :py:class:`ActivationTemplateResponse` or :py:class:`ActivationTileResponse` object in case
22- the request has to be approved.
21+ :py:class:`connect.models. ActivationTemplateResponse` or
22+ :py:class:`connect.models.ActivationTileResponse` object in case the request has to be approved.
2323
2424 In other case, you must raise one of these exceptions:
2525
26- - :py:class:`connect.models .InquireRequest`: Inquire for more information.
27- - :py:class:`connect.models .FailRequest`: Causes the request to fail.
28- - :py:class:`connect.models .SkipRequest`: Skips processing the request.
26+ - :py:class:`connect.exceptions .InquireRequest`: Inquire for more information.
27+ - :py:class:`connect.exceptions .FailRequest`: Causes the request to fail.
28+ - :py:class:`connect.exceptions .SkipRequest`: Skips processing the request.
2929
3030 Create an instance of your subclass and call its ``process`` method to begin processing.
3131
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ class TierConfigAutomation(AutomationEngine):
1616 """ This is the automation engine for the Tier Config Request API. If you want to process
1717 Tier Config requests, subclass this and implement the ``process_request`` method,
1818 which receives a :py:class:`connect.models.TierConfigRequest` request as argument and must
19- return an :py:class:`ActivationTemplateResponse` or :py:class:`ActivationTileResponse` object
20- in case the request has to be approved.
19+ return an :py:class:`connect.models. ActivationTemplateResponse` or
20+ :py:class:`connect.models.ActivationTileResponse` object in case the request has to be approved.
2121
2222 In other case, you must raise one of these exceptions:
2323
24- - :py:class:`connect.models .InquireRequest`: Inquire for more information.
25- - :py:class:`connect.models .FailRequest`: Causes the request to fail.
26- - :py:class:`connect.models .SkipRequest`: Skips processing the request.
24+ - :py:class:`connect.exceptions .InquireRequest`: Inquire for more information.
25+ - :py:class:`connect.exceptions .FailRequest`: Causes the request to fail.
26+ - :py:class:`connect.exceptions .SkipRequest`: Skips processing the request.
2727
2828 Create an instance of your subclass and call its ``process`` method to begin processing.
2929
You can’t perform that action at this time.
0 commit comments