Skip to content

Product Manager

Jetrin Chokchai edited this page Oct 11, 2018 · 1 revision

Class: ProductManager(call_api)

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


Constructor

ProductManager(call_api)

Create an product 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(product_id) → {dict}

Get product with the specify id.

Parameters:

Name Type Description
id string Product id.

Returns:

  • Product

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:

  • Products

Type

  • list

Clone this wiki locally