Comparing version 2.4.1 to 2.4.2
@@ -18,5 +18,10 @@ 'use strict'; | ||
urlParams: ['transferId'] | ||
}), | ||
listTransactions: stripeMethod({ | ||
method: 'GET', | ||
path: '{transferId}/transactions', | ||
urlParams: ['transferId'] | ||
}) | ||
}); | ||
{ | ||
"name": "stripe", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Stripe API wrapper", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/stripe/stripe-node", |
@@ -140,2 +140,3 @@ # Stripe node.js bindings [![Build Status](https://travis-ci.org/stripe/stripe-node.png?branch=master)](https://travis-ci.org/stripe/stripe-node) | ||
* [`cancel(transferId)`](https://stripe.com/docs/api/node#cancel_transfer) | ||
* [`listTransactions(transferId[, params])`](https://stripe.com/docs/api/curl#list_transfers) | ||
* `setMetadata(transferId, metadataObject)` ([metadata info](https://stripe.com/docs/api/node#metadata)) | ||
@@ -142,0 +143,0 @@ * `setMetadata(transferId, key, value)` |
@@ -87,2 +87,17 @@ 'use strict'; | ||
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: {} | ||
}); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103413
2732
174