Any methods return promise object.
client.lineItems.find(orderId[, params][, callback(err, items)]);
orderId
is unique identifier (number) of the orderparams
is object with a list of filters, not requiredcallback
is a function, not required
client.lineItems.create(orderId, data[, callback(err, item)]);
orderId
is unique identifier (number) of the orderdata
is a line item objectdata.product
is a model of the productcallback
is a function, not required
client.lineItems.find(orderId, id[, callback(err, item)]);
orderId
is unique identifier (number) of the orderid
is unique identifier (number) of the line itemcallback
is a function, not required
client.lineItems.remove(orderId, id[, callback(err, state)]);
orderId
is unique identifier (number) of the orderid
is unique identifier (number) of the line itemcallback
is a function, not required
item.remove(orderId, [callback(err, state)]);
orderId
is unique identifier (number) of the ordercallback
is a function, not required
Detailed documentation in the official API
MIT
Report here.