# CHANGELOG ## 6.36.0 - 2019-05-14 * [#622](https://github.com/stripe/stripe-node/pull/622) Add support for the `Capability` resource and APIs ## 6.35.0 - 2019-05-14 * [#627](https://github.com/stripe/stripe-node/pull/627) Add `listLineItems` and `listUpcomingLineItems` methods to `Invoice` ## 6.34.0 - 2019-05-08 * [#619](https://github.com/stripe/stripe-node/pull/619) Move `generateTestHeaderString` to stripe.webhooks (fixes a bug in 6.33.0) ## 6.33.0 - 2019-05-08 - UNRELEASED **Important**: This version is non-functional and has been yanked in favor of 6.32.0. * [#609](https://github.com/stripe/stripe-node/pull/609) Add `generateWebhookHeaderString` to make it easier to mock webhook events ## 6.32.0 - 2019-05-07 * [#612](https://github.com/stripe/stripe-node/pull/612) Add `balanceTransactions` resource ## 6.31.2 - 2019-05-03 * [#602](https://github.com/stripe/stripe-node/pull/602) Handle errors from the oauth/token endpoint ## 6.31.1 - 2019-04-26 * [#600](https://github.com/stripe/stripe-node/pull/600) Fix encoding of nested parameters in multipart requests ## 6.31.0 - 2019-04-24 * [#588](https://github.com/stripe/stripe-node/pull/588) Add support for the `TaxRate` resource and APIs ## 6.30.0 - 2019-04-22 * [#589](https://github.com/stripe/stripe-node/pull/589) Add support for the `TaxId` resource and APIs * [#593](https://github.com/stripe/stripe-node/pull/593) `retrieveUpcoming` on `Invoice` can now take one hash as parameter instead of requiring a customer id. ## 6.29.0 - 2019-04-18 * [#585](https://github.com/stripe/stripe-node/pull/585) Add support for the `CreditNote` resource and APIs ## 6.28.0 - 2019-03-18 * [#570](https://github.com/stripe/stripe-node/pull/570) Add support for the `PaymentMethod` resource and APIs * [#578](https://github.com/stripe/stripe-node/pull/578) Add support for retrieving a Checkout `Session` ## 6.27.0 - 2019-03-15 * [#581](https://github.com/stripe/stripe-node/pull/581) Add support for deleting Terminal `Location` and `Reader` ## 6.26.1 - 2019-03-14 * [#580](https://github.com/stripe/stripe-node/pull/580) Fix support for HTTPS proxies ## 6.26.0 - 2019-03-11 * [#574](https://github.com/stripe/stripe-node/pull/574) Encode `Date`s as Unix timestamps ## 6.25.1 - 2019-02-14 * [#565](https://github.com/stripe/stripe-node/pull/565) Always encode arrays as integer-indexed hashes ## 6.25.0 - 2019-02-13 * [#559](https://github.com/stripe/stripe-node/pull/559) Add `stripe.setMaxNetworkRetries(n)` for automatic network retries ## 6.24.0 - 2019-02-12 * [#562](https://github.com/stripe/stripe-node/pull/562) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision` ## 6.23.1 - 2019-02-04 * [#560](https://github.com/stripe/stripe-node/pull/560) Enable persistent connections by default ## 6.23.0 - 2019-01-30 * [#557](https://github.com/stripe/stripe-node/pull/557) Add configurable telemetry to gather information on client-side request latency ## 6.22.0 - 2019-01-25 * [#555](https://github.com/stripe/stripe-node/pull/555) Add support for OAuth methods ## 6.21.0 - 2019-01-23 * [#551](https://github.com/stripe/stripe-node/pull/551) Rename `CheckoutSession` to `Session` and move it under the `checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach. ## 6.20.1 - 2019-01-17 * [#552](https://github.com/stripe/stripe-node/pull/552) Fix `Buffer` deprecation warnings ## 6.20.0 - 2018-12-21 * [#539](https://github.com/stripe/stripe-node/pull/539) Add support for the `CheckoutSession` resource ## 6.19.0 - 2018-12-10 * [#535](https://github.com/stripe/stripe-node/pull/535) Add support for account links ## 6.18.1 - 2018-12-07 * [#534](https://github.com/stripe/stripe-node/pull/534) Fix iterating on `files.list` method ## 6.18.0 - 2018-12-06 * [#530](https://github.com/stripe/stripe-node/pull/530) Export errors on root Stripe object ## 6.17.0 - 2018-11-28 * [#527](https://github.com/stripe/stripe-node/pull/527) Add support for the `Review` APIs ## 6.16.0 - 2018-11-27 * [#515](https://github.com/stripe/stripe-node/pull/515) Add support for `ValueLists` and `ValueListItems` for Radar ## 6.15.2 - 2018-11-26 * [#526](https://github.com/stripe/stripe-node/pull/526) Fixes an accidental mutation of input in rare cases ## 6.15.1 - 2018-11-23 * [#523](https://github.com/stripe/stripe-node/pull/523) Handle `Buffer` instances in `Webhook.constructEvent` ## 6.15.0 - 2018-11-12 * [#474](https://github.com/stripe/stripe-node/pull/474) Add support for `partner_id` in `setAppInfo` ## 6.14.0 - 2018-11-09 * [#509](https://github.com/stripe/stripe-node/pull/509) Add support for new `Invoice` methods ## 6.13.0 - 2018-10-30 * [#507](https://github.com/stripe/stripe-node/pull/507) Add support for persons * [#510](https://github.com/stripe/stripe-node/pull/510) Add support for webhook endpoints ## 6.12.1 - 2018-09-24 * [#502](https://github.com/stripe/stripe-node/pull/502) Fix test suite ## 6.12.0 - 2018-09-24 * [#498](https://github.com/stripe/stripe-node/pull/498) Add support for Stripe Terminal * [#500](https://github.com/stripe/stripe-node/pull/500) Rename `FileUploads` to `Files`. For backwards compatibility, `Files` is aliased to `FileUploads`. `FileUploads` is deprecated and will be removed from the next major version. ## 6.11.0 - 2018-09-18 * [#496](https://github.com/stripe/stripe-node/pull/496) Add auto-pagination ## 6.10.0 - 2018-09-05 * [#491](https://github.com/stripe/stripe-node/pull/491) Add support for usage record summaries ## 6.9.0 - 2018-09-05 * [#493](https://github.com/stripe/stripe-node/pull/493) Add support for reporting resources ## 6.8.0 - 2018-08-27 * [#488](https://github.com/stripe/stripe-node/pull/488) Remove support for `BitcoinReceivers` write-actions ## 6.7.0 - 2018-08-03 * [#485](https://github.com/stripe/stripe-node/pull/485) Add support for `cancel` on topups ## 6.6.0 - 2018-08-02 * [#483](https://github.com/stripe/stripe-node/pull/483) Add support for file links ## 6.5.0 - 2018-07-28 * [#482](https://github.com/stripe/stripe-node/pull/482) Add support for Sigma scheduled query runs ## 6.4.0 - 2018-07-26 * [#481](https://github.com/stripe/stripe-node/pull/481) Add support for Stripe Issuing ## 6.3.0 - 2018-07-18 * [#471](https://github.com/stripe/stripe-node/pull/471) Add support for streams in file uploads ## 6.2.1 - 2018-07-03 * [#475](https://github.com/stripe/stripe-node/pull/475) Fixes array encoding of subscription items for the upcoming invoices endpoint. ## 6.2.0 - 2018-06-28 * [#473](https://github.com/stripe/stripe-node/pull/473) Add support for payment intents ## 6.1.1 - 2018-06-07 * [#469](https://github.com/stripe/stripe-node/pull/469) Add `.npmignore` to create a lighter package (minus examples and tests) ## 6.1.0 - 2018-06-01 * [#465](https://github.com/stripe/stripe-node/pull/465) Warn when unknown options are passed to functions ## 6.0.0 - 2018-05-14 * [#453](https://github.com/stripe/stripe-node/pull/453) Re-implement usage record's `create` so that it correctly passes all arguments (this is a very minor breaking change) ## 5.10.0 - 2018-05-14 * [#459](https://github.com/stripe/stripe-node/pull/459) Export error types on `stripe.errors` so that errors can be matched with `instanceof` instead of comparing the strings generated by `type` ## 5.9.0 - 2018-05-09 * [#456](https://github.com/stripe/stripe-node/pull/456) Add support for issuer fraud records ## 5.8.0 - 2018-04-04 * [#444](https://github.com/stripe/stripe-node/pull/444) Introduce flexible billing primitives for subscriptions ## 5.7.0 - 2018-04-02 * [#441](https://github.com/stripe/stripe-node/pull/441) Write directly to a connection that's known to be still open ## 5.6.1 - 2018-03-25 * [#437](https://github.com/stripe/stripe-node/pull/437) Fix error message when passing invalid parameters to some API methods ## 5.6.0 - 2018-03-24 * [#439](https://github.com/stripe/stripe-node/pull/439) Drop Bluebird dependency and use native ES6 promises ## 5.5.0 - 2018-02-21 * [#425](https://github.com/stripe/stripe-node/pull/425) Add support for topups ## 5.4.0 - 2017-12-05 * [#412](https://github.com/stripe/stripe-node/pull/412) Add `StripeIdempotencyError` type for new kind of stripe error ## 5.3.0 - 2017-10-31 * [#405](https://github.com/stripe/stripe-node/pull/405) Support for exchange rates APIs ## 5.2.0 - 2017-10-26 * [#404](https://github.com/stripe/stripe-node/pull/404) Support for listing source transactions ## 5.1.1 - 2017-10-04 * [#394](https://github.com/stripe/stripe-node/pull/394) Fix improper warning for requests that have options but no parameters ## 5.1.0 - 2017-09-25 * Add check for when options are accidentally included in an arguments object * Use safe-buffer package instead of building our own code * Remove dependency on object-assign package * Bump required versions of bluebird and qs ## 5.0.0 - 2017-09-12 * Drop support for Node 0.x (minimum required version is now >= 4) ## 4.25.0 - 2017-09-05 * Switch to Bearer token authentication on API requests ## 4.24.1 - 2017-08-25 * Specify UTF-8 encoding when verifying HMAC-SHA256 payloads ## 4.24.0 - 2017-08-10 * Support informational events with `Stripe.on` (see README for details) ## 4.23.2 - 2017-08-03 * Handle `Buffer.from` incompatibility for Node versions prior to 4.5.x ## 4.23.1 - 2017-06-24 * Properly encode subscription items when retrieving upcoming invoice ## 4.23.0 - 2017-06-20 * Add support for ephemeral keys ## 4.22.1 - 2017-06-20 * Fix usage of hasOwnProperty in utils ## 4.22.0 - 2017-05-25 * Make response headers accessible on error objects ## 4.21.0 - 2017-05-25 * Add support for account login links ## 4.20.0 - 2017-05-24 * Add `stripe.setAppInfo` for plugin authors to register app information ## 4.19.1 - 2017-05-18 * Tweak class initialization for compatibility with divergent JS engines ## 4.19.0 - 2017-05-11 * Support for checking webhook signatures ## 4.18.0 - 2017-04-12 * Reject ID parameters that don't look like strings ## 4.17.1 - 2017-04-05 * Fix paths in error messages on bad arguments ## 4.17.0 - 2017-03-31 * Add support for payouts ## 4.16.1 - 2017-03-30 * Fix bad reference to `requestId` when initializing errors ## 4.16.0 - 2017-03-22 * Make `requestId` available on resource `lastResponse` objects ## 4.15.1 - 2017-03-08 * Update required version of "qs" dependency to 6.0.4+ ## 4.15.0 - 2017-01-18 * Add support for updating sources ## 4.14.0 - 2016-12-01 * Add support for verifying sources ## 4.13.0 - 2016-11-21 * Add retrieve method for 3-D Secure resources ## 4.12.0 - 2016-10-18 * Support for 403 status codes (permission denied) ## 4.11.0 - 2016-09-16 * Add support for Apple Pay domains ## 4.10.0 - 2016-08-29 * Refactor deprecated uses of Bluebird's `Promise.defer` ## 4.9.1 - 2016-08-22 * URI-encode unames for Stripe user agents so we don't fail on special characters ## 4.9.0 - 2016-07-19 * Add `Source` model for generic payment sources support (experimental) ## 4.8.0 - 2016-07-14 * Add `ThreeDSecure` model for 3-D secure payments ## 4.7.0 - 2016-05-25 * Add support for returning Relay orders ## 4.6.0 - 2016-05-04 * Add `update`, `create`, `retrieve`, `list` and `del` methods to `stripe.subscriptions` ## 4.5.0 - 2016-03-15 * Add `reject` on `Account` to support the new API feature ## 4.4.0 - 2016-02-08 * Add `CountrySpec` model for looking up country payment information ## 4.3.0 - 2016-01-26 * Add support for deleting Relay SKUs and products ## 4.2.0 - 2016-01-13 * Add `lastResponse` property on `StripeResource` objects * Return usage errors of `stripeMethod` through callback instead of raising * Use latest year for expiry years in tests to avoid new year problems ## 4.1.0 - 2015-12-02 * Add a verification routine for external accounts ## 4.0.0 - 2015-09-17 * Remove ability for API keys to be passed as 1st param to acct.retrieve * Rename StripeInvalidRequest to StripeInvalidRequestError ## 3.9.0 - 2015-09-14 * Add Relay resources: Products, SKUs, and Orders ## 3.8.0 - 2015-09-11 * Added rate limiting responses ## 3.7.1 - 2015-08-17 * Added refund object with listing, retrieval, updating, and creation. ## 3.7.0 - 2015-08-03 * Added managed account deletion * Added dispute listing and retrieval ## 3.6.0 - 2015-07-07 * Added request IDs to all Stripe errors ## 3.5.2 - 2015-06-30 * [BUGFIX] Fixed issue with uploading binary files (Gabriel Chagas Marques) ## 3.5.1 - 2015-06-30 * [BUGFIX] Fixed issue with passing arrays of objects ## 3.5.0 - 2015-06-11 * Added support for optional parameters when retrieving an upcoming invoice (Matthew Arkin) ## 3.4.0 - 2015-06-10 * Added support for bank accounts and debit cards in managed accounts ## 3.3.4 - 2015-04-02 * Remove SSL revocation tests and check ## 3.3.3 - 2015-03-31 * [BUGFIX] Fix support for both stripe.account and stripe.accounts ## 3.3.2 - 2015-02-24 * Support transfer reversals. ## 3.3.1 - 2015-02-21 * [BUGFIX] Fix passing in only a callback to the Account resource. (Matthew Arkin) ## 3.3.0 - 2015-02-19 * Support BitcoinReceiver update & delete actions * Add methods for manipulating customer sources as per 2015-02-18 API version * The Account resource will now take an account ID. However, legacy use of the resource (without an account ID) will still work. ## 3.2.0 - 2015-02-05 * [BUGFIX] Fix incorrect failing tests for headers support * Update all dependencies (remove mocha-as-promised) * Switch to bluebird for promises ## 3.1.0 - 2015-01-21 * Support making bitcoin charges through BitcoinReceiver source object ## 3.0.3 - 2014-12-23 * Adding file uploads as a resource. ## 3.0.2 - 2014-11-26 * [BUGFIX] Fix issue where multiple expand params were not getting passed through (#130) ## 3.0.1 - 2014-11-26 * (Version skipped due to npm mishap) ## 3.0.0 - 2014-11-18 * [BUGFIX] Fix `stringifyRequestData` to deal with nested objs correctly * Bump MAJOR as we're no longer supporting Node 0.8 ## 2.9.0 - 2014-11-12 * Allow setting of HTTP agent (proxy) (issue #124) * Add stack traces to all Stripe Errors ## 2.8.0 - 2014-07-26 * Make application fee refunds a list instead of array ## 2.7.4 - 2014-07-17 * [BUGFIX] Fix lack of subscription param in `invoices#retrieveUpcoming` method * Add support for an `optional!` annotation on `urlParams` ## 2.7.3 - 2014-06-17 * Add metadata to disputes and refunds ## 2.6.3 - 2014-05-21 * Support cards for recipients. ## 2.5.3 - 2014-05-16 * Allow the `update` method on coupons for metadata changes ## 2.5.2 - 2014-04-28 * [BUGFIX] Fix when.js version string in package.json to support older npm versions ## 2.5.1 - 2014-04-25 * [BUGFIX] Fix revoked-ssl check * Upgrade when.js to 3.1.0 ## 2.5.0 - 2014-04-09 * Ensure we prevent requests using revoked SSL certs ## 2.4.5 - 2014-04-08 * Add better checks for incorrect arguments (throw exceptions accordingly). * Validate the Connect Auth key, if passed ## 2.4.4 - 2014-03-27 * [BUGFIX] Fix URL encoding issue (not encoding interpolated URL params, see issue #93) ## 2.4.3 - 2014-03-27 * Add more debug information to the case of a failed `JSON.parse()` ## 2.4.2 - 2014-02-20 * Add binding for `transfers/{tr_id}/transactions` endpoint ## 2.4.1 - 2014-02-07 * Ensure raw error object is accessible on the generated StripeError ## 2.4.0 - 2014-01-29 * Support multiple subscriptions per customer ## 2.3.4 - 2014-01-11 * [BUGFIX] Fix #76, pass latest as version to api & fix constructor arg signature ## 2.3.3 - 2014-01-10 * Document cancelSubscription method params and add specs for `at_period_end` ## 2.3.2 - 2013-12-02 * Add application fees API ## 2.2.2 - 2013-11-20 * [BUGFIX] Fix incorrect deleteDiscount method & related spec(s) ### 2.2.1 * [BUGFIX] Fix user-agent header issue (see issue #75) ## 2.2.0 - 2013-11-09 * Add support for setTimeout * Add specs for invoice-item listing/querying via timestamp ## 2.1.0 - 2013-11-07 * Support single key/value setting on setMetadata method * [BUGFIX] Fix Windows url-path issue * Add missing stripe.charges.update method * Support setting auth_token per request (useful in Connect) * Remove global 'resources' variable ## 2.0.0 - 2013-10-18 * API overhaul and refactor, including addition of promises. * Release of version 2.0.0 ## 1.3.0 - 2013-01-30 * Requests return Javascript Errors (Guillaume Flandre) ## 1.2.0 - 2012-08-03 * Added events API (Jonathan Hollinger) * Added plans update API (Pavan Kumar Sunkara) * Various test fixes, node 0.8.x tweaks (Jan Lehnardt) ## 1.1.0 - 2012-02-01 * Add Coupons API (Ryan) * Pass a more robust error object to the callback (Ryan) * Fix duplicate callbacks from some functions when called incorrectly (bug #24, reported by Kishore Nallan) ## 1.0.0 - 2011-12-06 * Add APIs and tests for Plans and "Invoice Items" (both changes by Ryan Ettipio) ## 0.0.5 - 2011-11-26 * Add Subscription API (John Ku, #3) * Add Invoices API (Chris Winn, #6) * [BUGFIX] Fix a bug where callback could be called twice, if the callback() threw an error itself (Peteris Krumins) * [BUGFIX] Fix bug in tokens.retrieve API (Xavi) * Change documentation links (Stripe changed their URL structure) * Make tests pass again (error in callback is null instead of 0 if all is well) * Amount in stripe.charges.refund is optional (Branko Vukelic) * Various documentation fixes (Xavi) * Only require node 0.4.0 ## 0.0.3 - 2011-10-05 * Add Charges API (issue #1, brackishlake) * Add customers.list API ## 0.0.2 - 2011-09-28 * Initial release with customers and tokens APIs