* Add stripe subscription methods
Add root subscription methods, in addition to subscription methods that
are defined on customer objects.
https://stripe.com/docs/api/node#subscriptions
* Bump version to stripe-node 4.6.0
* Update customers.retrieve signature
* Fix wrong signature for stripe.customers.update
The return type was Promise<IList<customers.ICustomer>> when in fact it
should be Promise<customers.ICustomer> (it is a resource object, not a
list)
* Add created attribute to ISubscription interface
* Add stripe subscription methods
Add root subscription methods, in addition to subscription methods that
are defined on customer objects.
https://stripe.com/docs/api/node#subscriptions
* Bump version to stripe-node 4.6.0
* Update Stripe library definitions to version 4.5.0.
And update to API version 2016-03-07.
Ideally more tests need to be added, but I've ran out of time to
implement all that is needed. The tests cover just enough for now,
although they are by no means thorough.
* Fix CI test errors
* Add correct header options
Add correct header options to method definitions.
As I understand it, all methods have the ability to have header options,
and they should always appear after any data options, see:
https://github.com/stripe/stripe-node/blob/master/lib/StripeMethod.js#L61https://stripe.com/docs/connect/authentication
Tests still need to be added.
* Rename account to accounts
And fix other small bugs:
- L4626: Fix duplicate arg name
- L4999: Add missing method definition
* Rename CustomerSubscription Methods
Rename some CustomerSubscription methods that were named incorrectly.
* Define chargeObj.refunds methods
Add ChargeRefunds methods to ICharge interface and add resource class.
https://github.com/stripe/stripe-node/blob/master/lib/resources/ChargeRefunds.js
* Add verifySource placeholder methods
Add verifySource placeholder method to the Customer resource class. This
needs to be properly implemented later.
Also update InvoiceLineItem.type property to be a string literal type.
* Test clean up
Clean up the tests and add a few missing tests. All current tests now
also test for Promise method returns.
Still a lot of missing tests, but it's better than before.