cheddargetter
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -143,1 +143,17 @@ var https = require("https"); | ||
}; | ||
cheddargetter.prototype.addCustomCharge = function (customerCode, chargeCode, quantity, amount, description, callback) { | ||
var data = { | ||
chargeCode: chargeCode, | ||
quantity: quantity.toString(), | ||
amount: amount.toString(), | ||
description: description | ||
}; | ||
this.callAPI(data, "/customers/add-charge/productCode/" + this.productCode + "/code/" + customerCode, callback); | ||
}; | ||
cheddargetter.prototype.deleteCustomCharge = function (customerCode, chargeId, callback) { | ||
chargeId = {chargeId: chargeId}; | ||
this.callAPI(amount, "/customers/delete-charge/productCode/" + this.productCode + "/code/" + customerCode, callback); | ||
}; |
{ | ||
"name": "cheddargetter", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "Kevin Smith", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -5,3 +5,3 @@ # Goals and Status | ||
As of version 0.1.2 the module implements the fallowing API calls: | ||
As of version 0.1.4 the module implements the fallowing API calls: | ||
@@ -21,2 +21,4 @@ * `getAllPricingPlans(callback)` | ||
* `setItemQuantity(customerCode, itemCode, amount, callback)` | ||
* `addCustomCharge(customerCode, chargeCode, quantity, amount, description, callback)` | ||
* `deleteCustomCharge(customerCode, chargeId, callback)` | ||
@@ -23,0 +25,0 @@ All callbacks are called with `error` and `results` parameters. |
49
12122
7
275