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.6.0 to 4.6.1

4

cjs/sdk.d.ts

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

import { CreateOneOffChargeResponse, CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionModifiersResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, PaddleResponseError, UpdateSubscriptionUserResponse } from './types';
import { CreateOneOffChargeResponse, CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetPricesResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionModifiersResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, PaddleResponseError, UpdateSubscriptionUserResponse } from './types';
type CheckoutAPIVersion = 'v1' | 'v2';

@@ -254,3 +254,3 @@ export interface Options {

customerIp?: string;
}): Promise<unknown>;
}): Promise<GetPricesResponse>;
/**

@@ -257,0 +257,0 @@ * Get subscription modifiers.

@@ -165,3 +165,3 @@ export interface Product {

}
export interface GetSubscriptionModifiersResponse {
export interface SubscriptionModifier {
modifier_id: number;

@@ -174,2 +174,3 @@ subscription_id: number;

}
export type GetSubscriptionModifiersResponse = Array<SubscriptionModifier>;
export interface CreateSubscriptionModifierBody {

@@ -218,3 +219,3 @@ modifier_amount: number;

quantity?: number;
recurring_prices?: string;
recurring_prices?: Array<string>;
return_url?: string;

@@ -230,1 +231,24 @@ title?: string;

}
export interface GetPricesResponse {
customer_country: string;
products: {
product_id: number;
product_title: string;
currency: string;
vendor_set_prices_included_tax: boolean;
price: {
gross: number;
net: number;
tax: number;
};
list_price: {
gross: number;
net: number;
tax: number;
};
applied_coupon: {
code: string;
discount: number;
};
}[];
}

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

export declare const VERSION = "4.6.0";
export declare const VERSION = "4.6.1";

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

// Generated by yarn build
exports.VERSION = '4.6.0';
exports.VERSION = '4.6.1';

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

import { CreateOneOffChargeResponse, CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionModifiersResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, PaddleResponseError, UpdateSubscriptionUserResponse } from './types';
import { CreateOneOffChargeResponse, CreateSubscriptionModifierResponse, GeneratePaylinkBody, GeneratePaylinkResponse, GetPricesResponse, GetProductCouponsResponse, GetProductsResponse, GetSubscriptionModifiersResponse, GetSubscriptionPaymentsResponse, GetSubscriptionPlansResponse, GetSubscriptionUsersBody, GetSubscriptionUsersResponse, GetTransactionsResponse, GetWebhookHistoryResponse, PaddleResponseError, UpdateSubscriptionUserResponse } from './types';
type CheckoutAPIVersion = 'v1' | 'v2';

@@ -254,3 +254,3 @@ export interface Options {

customerIp?: string;
}): Promise<unknown>;
}): Promise<GetPricesResponse>;
/**

@@ -257,0 +257,0 @@ * Get subscription modifiers.

@@ -165,3 +165,3 @@ export interface Product {

}
export interface GetSubscriptionModifiersResponse {
export interface SubscriptionModifier {
modifier_id: number;

@@ -174,2 +174,3 @@ subscription_id: number;

}
export type GetSubscriptionModifiersResponse = Array<SubscriptionModifier>;
export interface CreateSubscriptionModifierBody {

@@ -218,3 +219,3 @@ modifier_amount: number;

quantity?: number;
recurring_prices?: string;
recurring_prices?: Array<string>;
return_url?: string;

@@ -230,1 +231,24 @@ title?: string;

}
export interface GetPricesResponse {
customer_country: string;
products: {
product_id: number;
product_title: string;
currency: string;
vendor_set_prices_included_tax: boolean;
price: {
gross: number;
net: number;
tax: number;
};
list_price: {
gross: number;
net: number;
tax: number;
};
applied_coupon: {
code: string;
discount: number;
};
}[];
}

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

export declare const VERSION = "4.6.0";
export declare const VERSION = "4.6.1";
// Generated by yarn build
export const VERSION = '4.6.0';
export const VERSION = '4.6.1';
{
"name": "paddle-sdk",
"description": "The Paddle.com Node.js SDK",
"version": "4.6.0",
"version": "4.6.1",
"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