Skip to content

Policy Manager

Jetrin Chokchai edited this page Oct 11, 2018 · 2 revisions

Class: PolicyManager(call_api)

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


Constructor

PolicyManager(call_api)

Create an policy manager.

Parameters:

Name Type Description
call_api function A function which call Acrosure API.

Members

call_api :function

call_api Function (which should be granted by AcrosureClient#callAPI )

Type:

  • function

Methods

get(policy_id) → {dict}

Get policy with the specify id.

Parameters:

Name Type Description
id string Policy id.

Returns:

  • Policy

Type

  • dict

list(query) → {list}

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

Clone this wiki locally