d2wd-client
Advanced tools
Comparing version 1.0.58 to 1.0.60
@@ -24,2 +24,7 @@ "use strict"; | ||
}, { | ||
key: "retrieveNative", | ||
value: function retrieveNative(order_id, cookie) { | ||
return this.client.get("/cart/" + order_id, null, cookie); | ||
} | ||
}, { | ||
key: "update", | ||
@@ -35,2 +40,7 @@ value: function update(data) { | ||
}, { | ||
key: "checkoutNative", | ||
value: function checkoutNative(orderId) { | ||
return this.client.put("/cart/checkout/" + orderId); | ||
} | ||
}, { | ||
key: "updateBillingAddress", | ||
@@ -61,2 +71,7 @@ value: function updateBillingAddress(address) { | ||
}, { | ||
key: "updateItemNative", | ||
value: function updateItemNative(id, orderId, data) { | ||
return this.client.put("/cart/" + orderId + "/items/" + id, data); | ||
} | ||
}, { | ||
key: "deleteItem", | ||
@@ -67,2 +82,7 @@ value: function deleteItem(id) { | ||
}, { | ||
key: "deleteItemNative", | ||
value: function deleteItemNative(orderId) { | ||
return this.client.delete("/cart/" + orderId + "/items/" + id); | ||
} | ||
}, { | ||
key: "verifyDiscount", | ||
@@ -73,2 +93,7 @@ value: function verifyDiscount(code) { | ||
}, { | ||
key: "verifyDiscountNative", | ||
value: function verifyDiscountNative(orderId, code) { | ||
return this.client.get("/cart/" + orderId + "/discount/" + code); | ||
} | ||
}, { | ||
key: "removeDiscount", | ||
@@ -78,2 +103,7 @@ value: function removeDiscount() { | ||
} | ||
}, { | ||
key: "removeDiscountNative", | ||
value: function removeDiscountNative(orderId) { | ||
return this.client.delete("/cart/" + orderId + "/discount"); | ||
} | ||
}]); | ||
@@ -80,0 +110,0 @@ |
{ | ||
"name": "d2wd-client", | ||
"version": "1.0.58", | ||
"version": "1.0.60", | ||
"description": "d2wd API client library. Work on browser and server.", | ||
@@ -83,2 +83,2 @@ "keywords": [ | ||
} | ||
} | ||
} |
305663
83
3345