Permalink
Browse files

bump to 2.4.2 with new Transfers#listTransactions method

  • Loading branch information...
1 parent c9a6fbb commit 74d47cb07c868f36f142fce6cac201157fb973d1 @padolsey padolsey committed Feb 20, 2014
Showing with 22 additions and 4 deletions.
  1. +3 −0 CHANGELOG
  2. +1 −1 README.md
  3. +1 −1 VERSION
  4. +1 −1 lib/resources/Transfers.js
  5. +1 −1 package.json
  6. +15 −0 test/resources/Transfers.spec.js
View
@@ -1,3 +1,6 @@
+2.4.2 Feb 20th, 2014
+ - Add binding for `transfers/{tr_id}/transactions` endpoint
+
2.4.1 Feb 7th, 2014
- Ensure raw error object is accessible on the generated StripeError
View
@@ -137,7 +137,7 @@ stripe.customers.create({
* [`retrieve(transferId)`](https://stripe.com/docs/api/node#retrieve_transfer)
* [`update(transferId[, params])`](https://stripe.com/docs/api/node#update_transfer)
* [`cancel(transferId)`](https://stripe.com/docs/api/node#cancel_transfer)
- * [`transactions(transferId[, params])`](https://stripe.com/docs/api/curl#list_transfers)
+ * [`listTransactions(transferId[, params])`](https://stripe.com/docs/api/curl#list_transfers)
* `setMetadata(transferId, metadataObject)` ([metadata info](https://stripe.com/docs/api/node#metadata))
* `setMetadata(transferId, key, value)`
* `getMetadata(transferId)`
View
@@ -1 +1 @@
-2.4.1
+2.4.2
@@ -17,7 +17,7 @@ module.exports = StripeResource.extend({
urlParams: ['transferId']
}),
- transactions: stripeMethod({
+ listTransactions: stripeMethod({
method: 'GET',
path: '{transferId}/transactions',
urlParams: ['transferId']
View
@@ -1,6 +1,6 @@
{
"name": "stripe",
- "version": "2.4.1",
+ "version": "2.4.2",
"description": "Stripe API wrapper",
"homepage": "https://github.com/stripe/stripe-node",
"author": "Stripe <james@stripe.com> (https://stripe.com/)",
@@ -84,4 +84,19 @@ describe('Transfers Resource', function() {
});
+ describe.only('listTransactions', function() {
+
+ it('Sends the correct request', function() {
+
+ stripe.transfers.listTransactions('tr_14222');
+ expect(stripe.LAST_REQUEST).to.deep.equal({
+ method: 'GET',
+ url: '/v1/transfers/tr_14222/transactions',
+ data: {}
+ });
+
+ });
+
+ });
+
});

0 comments on commit 74d47cb

Please sign in to comment.