Skip to content

Commit 7d4bdb2

Browse files
committed
docs: add default value to state param
1 parent c09c1e3 commit 7d4bdb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/paddle/api.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const VERSION_2 = '2.0'
1515
const PATH_CANCEL_SUBSCRIPTION = `${VERSION_2}/subscription/users_cancel`
1616
const PATH_LIST_USERS = `${VERSION_2}/subscription/users`
1717
const PATH_LIST_PLANS = `${VERSION_2}/subscription/plans`
18+
const PATH_LIST_PAYMENTS = `${VERSION_2}/subscription/payments`
1819
const PATH_UPDATE_USERS = `${VERSION_2}/subscription/users/update`
1920
const PATH_LIST_PRODUCTS = `${VERSION_2}/product/get_products`
2021
const PATH_GET_ORDER = `${VERSION_1}/order`
@@ -89,7 +90,7 @@ module.exports = class {
8990
* Note: Returns all active, past_due, trialing and paused subscription
9091
* plans if not specified.
9192
*
92-
* @param {String} state list only subscriptions with given state. Lists only active subs by default.
93+
* @param {String} [state='active'] list only subscriptions with given state. Lists only active subs by default.
9394
* @param {Number} perPage limit the response to a certain number of results
9495
* @returns
9596
*/

0 commit comments

Comments
 (0)