Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix subscription statement ids method.

  • Loading branch information...
commit fe16feff49449a94a16f2f5e8d2a619ae078264c 1 parent e21c43a
@chjj authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/charged.js
View
5 lib/charged.js
@@ -211,7 +211,8 @@ Charged.prototype.getStatement = function(name, callback) {
return this.get(path, callback, 'statement');
};
-Charged.prototype.getSubscriptionIds = function(name, options, callback) {
+Charged.prototype.getSubscriptionIds =
+Charged.prototype.getSubscriptionStatementIds = function(name, options, callback) {
if (!callback) {
callback = options;
options = null;
@@ -225,7 +226,7 @@ Charged.prototype.getStatementIds = function(name, options, callback) {
callback = options;
options = null;
}
- var path = '/statements/' + escape(name) + '/ids';
+ var path = '/statements/ids';
return this.get(path, options, callback, 'statement_ids');
};
Please sign in to comment.
Something went wrong with that request. Please try again.