mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
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<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
This commit is contained in:
committed by
Masahiro Wakame
parent
74c1ffbba4
commit
b4bbee8f60
8
stripe/stripe-node.d.ts
vendored
8
stripe/stripe-node.d.ts
vendored
@@ -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<customers.ICustomer>): Promise<IList<customers.ICustomer>>;
|
||||
update(id: string, data: customers.ICustomerUpdateOptions, response?: IResponseFn<customers.ICustomer>): Promise<IList<customers.ICustomer>>;
|
||||
update(id: string, data: customers.ICustomerUpdateOptions, options: HeaderOptions, response?: IResponseFn<customers.ICustomer>): Promise<customers.ICustomer>;
|
||||
update(id: string, data: customers.ICustomerUpdateOptions, response?: IResponseFn<customers.ICustomer>): Promise<customers.ICustomer>;
|
||||
|
||||
/**
|
||||
* 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<customers.ICustomer>): Promise<customers.ICustomer>;
|
||||
retrieve(id: string, data: IDataOptions, response?: IResponseFn<customers.ICustomer>): Promise<customers.ICustomer>;
|
||||
retrieve(id: string, options: HeaderOptions, response?: IResponseFn<customers.ICustomer>): Promise<customers.ICustomer>;
|
||||
retrieve(id: string, response?: IResponseFn<customers.ICustomer>): Promise<customers.ICustomer>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user