paddle-sdk
Advanced tools
Comparing version 4.6.2 to 4.7.0
@@ -282,2 +282,11 @@ import { CreateOneOffChargeResponse, CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetPricesResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionModifiersResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, PaddleResponseError, UpdateSubscriptionUserResponse } from './types'; | ||
/** | ||
* Delete an existing subscription modifier. | ||
* | ||
* API documentation: https://developer.paddle.com/classic/api-reference/dcdd0db5b20a1-delete-modifier | ||
* | ||
* @example | ||
* const result = await client.deleteSubscriptionModifier(123); | ||
*/ | ||
deleteSubscriptionModifier(modifierId: number): Promise<true>; | ||
/** | ||
* Make an immediate one-off charge on top of an existing user subscription | ||
@@ -284,0 +293,0 @@ * |
@@ -400,2 +400,18 @@ "use strict"; | ||
/** | ||
* Delete an existing subscription modifier. | ||
* | ||
* API documentation: https://developer.paddle.com/classic/api-reference/dcdd0db5b20a1-delete-modifier | ||
* | ||
* @example | ||
* const result = await client.deleteSubscriptionModifier(123); | ||
*/ | ||
deleteSubscriptionModifier(modifierId) { | ||
const body = { | ||
modifier_id: modifierId, | ||
}; | ||
return this._request('/subscription/modifiers/delete', { | ||
body, | ||
}); | ||
} | ||
/** | ||
* Make an immediate one-off charge on top of an existing user subscription | ||
@@ -402,0 +418,0 @@ * |
@@ -180,2 +180,5 @@ export interface Product { | ||
} | ||
export interface DeleteSubscriptionModifierBody { | ||
modifier_id: number; | ||
} | ||
export interface CreateSubscriptionModifierResponse { | ||
@@ -182,0 +185,0 @@ subscription_id: number; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.6.2"; | ||
export declare const VERSION = "4.7.0"; |
@@ -5,2 +5,2 @@ "use strict"; | ||
// Generated by yarn build | ||
exports.VERSION = '4.6.2'; | ||
exports.VERSION = '4.7.0'; |
@@ -282,2 +282,11 @@ import { CreateOneOffChargeResponse, CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetPricesResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionModifiersResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, PaddleResponseError, UpdateSubscriptionUserResponse } from './types'; | ||
/** | ||
* Delete an existing subscription modifier. | ||
* | ||
* API documentation: https://developer.paddle.com/classic/api-reference/dcdd0db5b20a1-delete-modifier | ||
* | ||
* @example | ||
* const result = await client.deleteSubscriptionModifier(123); | ||
*/ | ||
deleteSubscriptionModifier(modifierId: number): Promise<true>; | ||
/** | ||
* Make an immediate one-off charge on top of an existing user subscription | ||
@@ -284,0 +293,0 @@ * |
@@ -401,2 +401,18 @@ import axios from 'axios'; | ||
/** | ||
* Delete an existing subscription modifier. | ||
* | ||
* API documentation: https://developer.paddle.com/classic/api-reference/dcdd0db5b20a1-delete-modifier | ||
* | ||
* @example | ||
* const result = await client.deleteSubscriptionModifier(123); | ||
*/ | ||
deleteSubscriptionModifier(modifierId) { | ||
const body = { | ||
modifier_id: modifierId, | ||
}; | ||
return this._request('/subscription/modifiers/delete', { | ||
body, | ||
}); | ||
} | ||
/** | ||
* Make an immediate one-off charge on top of an existing user subscription | ||
@@ -403,0 +419,0 @@ * |
@@ -180,2 +180,5 @@ export interface Product { | ||
} | ||
export interface DeleteSubscriptionModifierBody { | ||
modifier_id: number; | ||
} | ||
export interface CreateSubscriptionModifierResponse { | ||
@@ -182,0 +185,0 @@ subscription_id: number; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.6.2"; | ||
export declare const VERSION = "4.7.0"; |
// Generated by yarn build | ||
export const VERSION = '4.6.2'; | ||
export const VERSION = '4.7.0'; |
{ | ||
"name": "paddle-sdk", | ||
"description": "The Paddle.com Node.js SDK", | ||
"version": "4.6.2", | ||
"version": "4.7.0", | ||
"type": "module", | ||
@@ -49,3 +49,3 @@ "main": "./cjs/index.js", | ||
"dependencies": { | ||
"axios": "1.6.0" | ||
"axios": "1.7.4" | ||
}, | ||
@@ -52,0 +52,0 @@ "devDependencies": { |
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
94247
2520
+ Addedaxios@1.7.4(transitive)
- Removedaxios@1.6.0(transitive)
Updatedaxios@1.7.4