paddle-sdk
Advanced tools
Comparing version 3.2.0 to 3.3.0
{ | ||
"name": "paddle-sdk", | ||
"description": "The Paddle.com Node.js SDK", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"main": "sdk.js", | ||
@@ -45,5 +45,5 @@ "types": "sdk.d.ts", | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint": "^8.0.0", | ||
"husky": "^3.1.0", | ||
"jest": "^24.9.0", | ||
"jest": "^29.0.0", | ||
"jsdoc-to-markdown": "^5.0.3", | ||
@@ -53,3 +53,3 @@ "lint-staged": "^9.5.0", | ||
"prettier": "^1.19.1", | ||
"standard-version": "^7.0.1", | ||
"standard-version": "^8.0.0", | ||
"typescript": "^3.8.3", | ||
@@ -56,0 +56,0 @@ "validate-commit-msg": "^2.14.0" |
13
sdk.d.ts
@@ -291,2 +291,15 @@ export = PaddleSDK; | ||
/** | ||
* Change the due date of an upcoming subscription payment | ||
* | ||
* @method | ||
* @param {number} paymentID | ||
* @param {Date} date - Only the date portion of the date value is used | ||
* @returns {Promise} | ||
* @fulfill {object} - The result of the operation | ||
* | ||
* @example | ||
* const result = await client.reschedulePayment(123, new Date('2022-12-04')); | ||
*/ | ||
reschedulePayment(paymentID: number, date: Date): Promise<any>; | ||
/** | ||
* Generate a custom pay link | ||
@@ -293,0 +306,0 @@ * |
21
sdk.js
@@ -532,2 +532,23 @@ const crypto = require('crypto'); | ||
/** | ||
* Change the due date of an upcoming subscription payment | ||
* | ||
* @method | ||
* @param {number} paymentID | ||
* @param {Date} date - Only the date portion of the date value is used | ||
* @returns {Promise} | ||
* @fulfill {object} - The result of the operation | ||
* | ||
* @example | ||
* const result = await client.reschedulePayment(123, new Date('2022-12-04')); | ||
*/ | ||
reschedulePayment(paymentID, date) { | ||
return this._request('/subscription/payments_reschedule', { | ||
body: { | ||
payment_id: paymentID, | ||
date: date.toISOString().substring(0, 10), | ||
}, | ||
}); | ||
} | ||
/** | ||
* Generate a custom pay link | ||
@@ -534,0 +555,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
34479
1063