Class: ProductManager

ProductManager(args)

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

Constructor

new ProductManager(args)

Create an product 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 product with current id or the specify id.
Parameters:
Name Type Description
id string Product id.
Source:
Returns:
Product
Type
Object

(async) list(args) → {Array}

Get products list with or without query.
Parameters:
Name Type Description
args Object Query object (See Acrosure API document for more detail).
Source:
Returns:
Products
Type
Array