Constructor
new PolicyManager(args)
Create an policy manager.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
args |
Object | An object consists of several properties.
Properties
|
- Source:
Members
callAPI :function
callAPI Function (which should be granted by AcrosureClient#callAPI )
Type:
- function
- Source:
Methods
(async) get(id) → {Object}
Get policy with the specify id.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Policy id. |
- Source:
Returns:
Policy
- Type
- Object
(async) list(args) → {Array}
Get policies list with or without query.
Parameters:
Name | Type | Description |
---|---|---|
args |
Object | Query object (See Acrosure API document for more detail). |
- Source:
Returns:
Policies
- Type
- Array