paddle-sdk
Advanced tools
Comparing version 4.4.0 to 4.5.0
@@ -169,2 +169,3 @@ import { CreateSubscriptionModifierResponse, CreateOneOffChargeResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, UpdateSubscriptionUserResponse, PaddleResponseError } from './types'; | ||
keepModifiers?: boolean; | ||
passthrough?: string; | ||
pause?: boolean; | ||
@@ -171,0 +172,0 @@ planID?: number; |
@@ -224,6 +224,7 @@ "use strict"; | ||
updateSubscription(subscriptionID, postData) { | ||
const { quantity, price, planID, currency, prorate, keepModifiers, billImmediately, pause, } = postData; | ||
const { quantity, price, planID, currency, prorate, keepModifiers, billImmediately, passthrough, pause, } = postData; | ||
const body = { | ||
subscription_id: subscriptionID, | ||
...(currency && { currency }), | ||
...(passthrough && { passthrough }), | ||
...(typeof keepModifiers === 'boolean' && { | ||
@@ -230,0 +231,0 @@ keep_modifiers: keepModifiers, |
@@ -149,2 +149,3 @@ export interface Product { | ||
keep_modifiers?: boolean; | ||
passthrough?: string; | ||
plan_id?: number; | ||
@@ -151,0 +152,0 @@ prorate?: boolean; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.4.0"; | ||
export declare const VERSION = "4.5.0"; |
@@ -5,2 +5,2 @@ "use strict"; | ||
// Generated by yarn build | ||
exports.VERSION = '4.4.0'; | ||
exports.VERSION = '4.5.0'; |
@@ -169,2 +169,3 @@ import { CreateSubscriptionModifierResponse, CreateOneOffChargeResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, UpdateSubscriptionUserResponse, PaddleResponseError } from './types'; | ||
keepModifiers?: boolean; | ||
passthrough?: string; | ||
pause?: boolean; | ||
@@ -171,0 +172,0 @@ planID?: number; |
@@ -225,6 +225,7 @@ import crypto from 'crypto'; | ||
updateSubscription(subscriptionID, postData) { | ||
const { quantity, price, planID, currency, prorate, keepModifiers, billImmediately, pause, } = postData; | ||
const { quantity, price, planID, currency, prorate, keepModifiers, billImmediately, passthrough, pause, } = postData; | ||
const body = { | ||
subscription_id: subscriptionID, | ||
...(currency && { currency }), | ||
...(passthrough && { passthrough }), | ||
...(typeof keepModifiers === 'boolean' && { | ||
@@ -231,0 +232,0 @@ keep_modifiers: keepModifiers, |
@@ -149,2 +149,3 @@ export interface Product { | ||
keep_modifiers?: boolean; | ||
passthrough?: string; | ||
plan_id?: number; | ||
@@ -151,0 +152,0 @@ prorate?: boolean; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.4.0"; | ||
export declare const VERSION = "4.5.0"; |
// Generated by yarn build | ||
export const VERSION = '4.4.0'; | ||
export const VERSION = '4.5.0'; |
{ | ||
"name": "paddle-sdk", | ||
"description": "The Paddle.com Node.js SDK", | ||
"version": "4.4.0", | ||
"version": "4.5.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "./cjs/index.js", |
84259
2234