chargebee
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,9 @@ | ||
### v2.0.1 (2016-04-16) | ||
* * * | ||
#### Issue Fixed | ||
The "meta_data" attribute in Subscription, Customer, Plan, Addon, Coupon create and update operations now accepts String and Json object. | ||
### v2.0.0 (2016-04-11) | ||
@@ -2,0 +10,0 @@ * * * |
@@ -10,3 +10,3 @@ var ChargeBee = {}; | ||
timeout: 40000, | ||
clientVersion: 'v2.0.0', | ||
clientVersion: 'v2.0.1', | ||
port: 443 | ||
@@ -193,2 +193,8 @@ }; | ||
} | ||
} else if(key === "meta_data") { | ||
var attrVal=""; | ||
if(value !== null) { | ||
attrVal = encodeURIComponent(Object.prototype.toString.call(value) === "[object String]" ? ChargeBee._util.trim(value) : JSON.stringify(value)); | ||
} | ||
serialized.push(encodeURIComponent(key) + "=" + attrVal); | ||
} else if (typeof value === 'object' && !ChargeBee._util.isArray(value)) { | ||
@@ -195,0 +201,0 @@ encodeParams(value, serialized, key); |
{ | ||
"name":"chargebee", | ||
"version":"2.0.0", | ||
"version":"2.0.1", | ||
"description":"A library for integrating with ChargeBee.", | ||
@@ -5,0 +5,0 @@ "keywords":[ |
49928
1036