From b4bbee8f60560c34bc74b154b283f7ce83a31dae Mon Sep 17 00:00:00 2001 From: CodeAnimal Date: Tue, 17 May 2016 07:56:40 +0100 Subject: [PATCH] Stripe node 4.6.0 (#9350) * 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> when in fact it should be Promise (it is a resource object, not a list) * Add created attribute to ISubscription interface --- stripe/stripe-node.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stripe/stripe-node.d.ts b/stripe/stripe-node.d.ts index 202cd5790d..1e3d2caca7 100644 --- a/stripe/stripe-node.d.ts +++ b/stripe/stripe-node.d.ts @@ -4031,6 +4031,8 @@ declare namespace StripeNode { */ canceled_at: number; + created: number; + /** * End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created. */ @@ -5086,8 +5088,8 @@ declare namespace StripeNode { * * @param id The identifier of the customer to be retrieved. */ - update(id: string, data: customers.ICustomerUpdateOptions, options: HeaderOptions, response?: IResponseFn): Promise>; - update(id: string, data: customers.ICustomerUpdateOptions, response?: IResponseFn): Promise>; + update(id: string, data: customers.ICustomerUpdateOptions, options: HeaderOptions, response?: IResponseFn): Promise; + update(id: string, data: customers.ICustomerUpdateOptions, response?: IResponseFn): Promise; /** * Retrieves the details of an existing customer. You need only supply the unique customer identifier that was returned upon customer @@ -5098,6 +5100,8 @@ declare namespace StripeNode { * * @param id The identifier of the customer to be retrieved. */ + retrieve(id: string, data: IDataOptions, options: HeaderOptions, response?: IResponseFn): Promise; + retrieve(id: string, data: IDataOptions, response?: IResponseFn): Promise; retrieve(id: string, options: HeaderOptions, response?: IResponseFn): Promise; retrieve(id: string, response?: IResponseFn): Promise;