paddle-sdk
Advanced tools
Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "paddle-sdk", | ||
"description": "The Paddle.com Node.js SDK", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"main": "sdk.js", | ||
@@ -6,0 +6,0 @@ "types": "sdk.d.ts", |
21
sdk.d.ts
@@ -72,6 +72,6 @@ export = PaddleSDK; | ||
/** | ||
* Get the current list of plans for a subscription | ||
* Get the current list of all plans or plans for a subscription | ||
* | ||
* @method | ||
* @param {number} productID | ||
* @param {number} [productID] | ||
* @returns {Promise} | ||
@@ -81,10 +81,11 @@ * @fulfil {object} - The plans list | ||
* @example | ||
* const plans = await client.getProductPlans(); | ||
* const plans = await client.getProductPlans(123); | ||
*/ | ||
getProductPlans(productID: number): Promise<any>; | ||
getProductPlans(productID?: number): Promise<any>; | ||
/** | ||
* Get the current list of users for a subscription plan | ||
* Get the current list of all users or users for a subscription plan | ||
* | ||
* @method | ||
* @param {number} planID | ||
* @param {number} [planID] | ||
* @returns {Promise} | ||
@@ -94,10 +95,11 @@ * @fulfil {object} - The users list | ||
* @example | ||
* const users = await client.getPlanUsers(); | ||
* const users = await client.getPlanUsers(123); | ||
*/ | ||
getPlanUsers(planID: number): Promise<any>; | ||
getPlanUsers(planID?: number): Promise<any>; | ||
/** | ||
* Get the list of payments for a subscription plan | ||
* Get the list of all payments or payments for a subscription plan | ||
* | ||
* @method | ||
* @param {number} planID | ||
* @param {number} [planID] | ||
* @returns {Promise} | ||
@@ -107,5 +109,6 @@ * @fulfil {object} - The payments list | ||
* @example | ||
* const payments = await client.getPlanPayments(); | ||
* const payments = await client.getPlanPayments(123); | ||
*/ | ||
getPlanPayments(planID: number): Promise<any>; | ||
getPlanPayments(planID?: number): Promise<any>; | ||
/** | ||
@@ -112,0 +115,0 @@ * Get the list of webhooks history |
15
sdk.js
@@ -132,6 +132,6 @@ const crypto = require('crypto'); | ||
/** | ||
* Get the current list of plans for a subscription | ||
* Get the current list of all plans or plans for a subscription | ||
* | ||
* @method | ||
* @param {number} productID | ||
* @param {number} [productID] | ||
* @returns {Promise} | ||
@@ -141,2 +141,3 @@ * @fulfil {object} - The plans list | ||
* @example | ||
* const plans = await client.getProductPlans(); | ||
* const plans = await client.getProductPlans(123); | ||
@@ -151,6 +152,6 @@ */ | ||
/** | ||
* Get the current list of users for a subscription plan | ||
* Get the current list of all users or users for a subscription plan | ||
* | ||
* @method | ||
* @param {number} planID | ||
* @param {number} [planID] | ||
* @returns {Promise} | ||
@@ -160,2 +161,3 @@ * @fulfil {object} - The users list | ||
* @example | ||
* const users = await client.getPlanUsers(); | ||
* const users = await client.getPlanUsers(123); | ||
@@ -170,6 +172,6 @@ */ | ||
/** | ||
* Get the list of payments for a subscription plan | ||
* Get the list of all payments or payments for a subscription plan | ||
* | ||
* @method | ||
* @param {number} planID | ||
* @param {number} [planID] | ||
* @returns {Promise} | ||
@@ -179,2 +181,3 @@ * @fulfil {object} - The payments list | ||
* @example | ||
* const payments = await client.getPlanPayments(); | ||
* const payments = await client.getPlanPayments(123); | ||
@@ -181,0 +184,0 @@ */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26814
782