Socket
Socket
Sign inDemoInstall

paddle-sdk

Package Overview
Dependencies
9
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.2.0

2

cjs/sdk.d.ts

@@ -184,2 +184,3 @@ import { CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, UpdateSubscriptionUserResponse } from './types';

* const users = await client.getUsers({ state: 'active' });
* const users = await client.getUsers({ subscriptionID: 456 });
*

@@ -194,2 +195,3 @@ * @note

state?: GetSubscriptionUsersBody['state'];
subscriptionID?: number;
}): Promise<GetSubscriptionUsersResponse>;

@@ -196,0 +198,0 @@ /**

4

cjs/sdk.js

@@ -250,2 +250,3 @@ "use strict";

* const users = await client.getUsers({ state: 'active' });
* const users = await client.getUsers({ subscriptionID: 456 });
*

@@ -256,3 +257,3 @@ * @note

getUsers(options) {
const { page = 1, resultsPerPage = 200, state = null, planID = null, } = options || {};
const { page = 1, resultsPerPage = 200, state = null, planID = null, subscriptionID = null, } = options || {};
const body = {

@@ -263,2 +264,3 @@ page,

...(state && { state }),
...(subscriptionID && { subscription_id: subscriptionID }),
};

@@ -265,0 +267,0 @@ return this._request('/subscription/users', { body });

@@ -53,2 +53,3 @@ export interface Product {

}
export type SubscriptionUserState = 'active' | 'past_due' | 'trialing' | 'paused' | 'deleted';
export interface GetSubscriptionUsersBody {

@@ -58,3 +59,4 @@ page?: number;

results_per_page?: number;
state?: 'active' | 'past_due' | 'trialing' | 'paused' | 'deleted';
state?: SubscriptionUserState;
subscription_id?: number;
}

@@ -69,3 +71,3 @@ export interface SubscriptionUser {

cancel_url: string;
state: string;
state: SubscriptionUserState;
signup_date: string;

@@ -72,0 +74,0 @@ last_payment: Payment;

@@ -1,1 +0,1 @@

export declare const VERSION = "4.1.0";
export declare const VERSION = "4.2.0";

@@ -5,2 +5,2 @@ "use strict";

// Generated by yarn build
exports.VERSION = '4.1.0';
exports.VERSION = '4.2.0';

@@ -184,2 +184,3 @@ import { CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, UpdateSubscriptionUserResponse } from './types';

* const users = await client.getUsers({ state: 'active' });
* const users = await client.getUsers({ subscriptionID: 456 });
*

@@ -194,2 +195,3 @@ * @note

state?: GetSubscriptionUsersBody['state'];
subscriptionID?: number;
}): Promise<GetSubscriptionUsersResponse>;

@@ -196,0 +198,0 @@ /**

@@ -251,2 +251,3 @@ import crypto from 'crypto';

* const users = await client.getUsers({ state: 'active' });
* const users = await client.getUsers({ subscriptionID: 456 });
*

@@ -257,3 +258,3 @@ * @note

getUsers(options) {
const { page = 1, resultsPerPage = 200, state = null, planID = null, } = options || {};
const { page = 1, resultsPerPage = 200, state = null, planID = null, subscriptionID = null, } = options || {};
const body = {

@@ -264,2 +265,3 @@ page,

...(state && { state }),
...(subscriptionID && { subscription_id: subscriptionID }),
};

@@ -266,0 +268,0 @@ return this._request('/subscription/users', { body });

@@ -53,2 +53,3 @@ export interface Product {

}
export type SubscriptionUserState = 'active' | 'past_due' | 'trialing' | 'paused' | 'deleted';
export interface GetSubscriptionUsersBody {

@@ -58,3 +59,4 @@ page?: number;

results_per_page?: number;
state?: 'active' | 'past_due' | 'trialing' | 'paused' | 'deleted';
state?: SubscriptionUserState;
subscription_id?: number;
}

@@ -69,3 +71,3 @@ export interface SubscriptionUser {

cancel_url: string;
state: string;
state: SubscriptionUserState;
signup_date: string;

@@ -72,0 +74,0 @@ last_payment: Payment;

@@ -1,1 +0,1 @@

export declare const VERSION = "4.1.0";
export declare const VERSION = "4.2.0";
// Generated by yarn build
export const VERSION = '4.1.0';
export const VERSION = '4.2.0';
{
"name": "paddle-sdk",
"description": "The Paddle.com Node.js SDK",
"version": "4.1.0",
"version": "4.2.0",
"type": "module",

@@ -6,0 +6,0 @@ "main": "./cjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc