Taxes/Methods

Taxes/Methods

Source:

Methods for Taxes. Run these methods using Meteor.call().

Methods

(static) taxes/addRate(doc, docIdopt) → {String}

Source:
Parameters:
Name Type Attributes Description
doc Object

A Taxes document to be inserted

docId String <optional>

DEPRECATED. Existing ID to trigger an update. Use taxes/editRate method instead.

Returns:

Insert result

Type
String

(static) taxes/deleteRate(taxId) → {String}

Source:
Parameters:
Name Type Description
taxId String

tax taxId to delete

Returns:

returns update/insert result

Type
String

(static) taxes/editRate(details) → {String}

Source:
Parameters:
Name Type Description
details Object

An object with _id and modifier props

Returns:

Update result

Type
String

(static) taxes/setRate(cartId, taxRate, taxes) → {Number}

Update the cart without hooks

Source:
Parameters:
Name Type Description
cartId String

cartId

taxRate Number

taxRate

taxes Object

taxes

Returns:

returns update result

Type
Number