-
Notifications
You must be signed in to change notification settings - Fork 0
Policy Manager
Jetrin Chokchai edited this page Oct 11, 2018
·
2 revisions
Represents an PolicyManager. (You most likely shouldn't be accessing this directly, use AcrosureClient#policy instead.)
PolicyManager(call_api)
Create an policy manager.
Parameters:
| Name | Type | Description |
|---|---|---|
| call_api | function | A function which call Acrosure API. |
call_api Function (which should be granted by AcrosureClient#callAPI )
Type:
- function
Get policy with the specify id.
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string | Policy id. |
Returns:
- Policy
Type
- dict
Get policies list with or without query.
Parameters:
| Name | Type | Description |
|---|---|---|
| query | dict | Query object (See Acrosure API document for more detail). |
Returns:
- Policies
Type
- list