Class: PolicyManager

PolicyManager(args)

Represents an PolicyManager. (You most likely shouldn't be accessing this directly, use AcrosureClient#policy instead.)

Constructor

new PolicyManager(args)

Create an policy manager.
Parameters:
Name Type Description
args Object An object consists of several properties.
Properties
Name Type Description
callAPI function A function which call Acrosure API.
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