@invertase/node-paddle-sdk
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -1,2 +0,2 @@ | ||
import { CancelUserParameters, CreateCouponsParameters, CreateCouponsResponse, CreateModifiersParameters, CreateModifiersResponse, CreateOneOffChargeParameters, CreateOneOffChargeResponse, CreatePlanParameters, CreatePlanResponse, DeleteCouponsParameters, DeleteModifiersParameters, GenerateLicenseParameters, GenerateLicenseResponse, GeneratePayLinkParameters, GeneratePayLinkResponse, ListCouponsParameters, ListCouponsResponse, ListModifiersParameters, ListModifiersResponse, ListPaymentsParameters, ListPaymentsResponse, ListPlansParameters, ListPlansResponse, ListProductsResponse, ListTransactionsParameters, ListTransactionsResponse, ListUsersParameters, ListUsersResponse, RefundPaymentParameters, RefundPaymentResponse, ReschedulePaymentParameters, UpdateCouponsParameters, UpdateCouponsResponse, UpdateUserParameters, UpdateUserResponse } from './types'; | ||
import { CancelUserParameters, CreateCouponsParameters, CreateCouponsResponse, CreateModifiersParameters, CreateModifiersResponse, CreateOneOffChargeParameters, CreateOneOffChargeResponse, CreatePlanParameters, CreatePlanResponse, DeleteCouponsParameters, DeleteModifiersParameters, GenerateLicenseParameters, GenerateLicenseResponse, GeneratePayLinkParameters, GeneratePayLinkResponse, GetWebhookHistoryParameters, GetWebhookHistoryResponse, ListCouponsParameters, ListCouponsResponse, ListModifiersParameters, ListModifiersResponse, ListPaymentsParameters, ListPaymentsResponse, ListPlansParameters, ListPlansResponse, ListProductsResponse, ListTransactionsParameters, ListTransactionsResponse, ListUsersParameters, ListUsersResponse, RefundPaymentParameters, RefundPaymentResponse, ReschedulePaymentParameters, UpdateCouponsParameters, UpdateCouponsResponse, UpdateUserParameters, UpdateUserResponse } from './types'; | ||
export * from './types'; | ||
@@ -31,4 +31,4 @@ export * from './webhook'; | ||
createOneOffCharge(parameters: CreateOneOffChargeParameters): Promise<CreateOneOffChargeResponse>; | ||
getWebhookHistory(parameters: CreateOneOffChargeParameters): Promise<CreateOneOffChargeResponse>; | ||
getWebhookHistory(parameters: GetWebhookHistoryParameters): Promise<GetWebhookHistoryResponse>; | ||
verifyWebhook(body: any): boolean; | ||
} |
@@ -68,3 +68,3 @@ 'use strict'; | ||
const url = `${this.server}${path}`; | ||
const res = yield got__default['default'](url, { | ||
const res = yield got__default["default"](url, { | ||
method, | ||
@@ -71,0 +71,0 @@ form: Object.assign({ vendor_id: this.vendorId, vendor_auth_code: this.vendorAuthCode }, (body || {})), |
@@ -139,2 +139,3 @@ import { PaddleWebhook } from './webhook'; | ||
currency: 'USD' | 'GBP' | 'EUR'; | ||
custom_data: string; | ||
status: State; | ||
@@ -209,2 +210,3 @@ created_at: string; | ||
marketing_consent: boolean; | ||
custom_data: string; | ||
state: State; | ||
@@ -238,3 +240,3 @@ signup_date: string; | ||
subscription_id: number; | ||
quantity: number; | ||
quantity?: number; | ||
currency?: 'USD' | 'GBP' | 'EUR'; | ||
@@ -241,0 +243,0 @@ recurring_price?: number; |
@@ -35,2 +35,3 @@ import { State } from './types'; | ||
currency: string; | ||
custom_data: string; | ||
email: string; | ||
@@ -63,2 +64,3 @@ marketing_consent: 0 | 1; | ||
currency: string; | ||
custom_data: string; | ||
passthrough: string; | ||
@@ -75,2 +77,3 @@ status: State; | ||
paused_reason?: string; | ||
update_url: string; | ||
} & WebhookBase; | ||
@@ -103,2 +106,3 @@ export declare type SubscriptionCancelledWebhook = { | ||
currency: string; | ||
custom_data: string; | ||
customer_name: string; | ||
@@ -134,2 +138,3 @@ earnings: string; | ||
currency: string; | ||
custom_data: string; | ||
email: string; | ||
@@ -161,2 +166,3 @@ marketing_consent: 0 | 1; | ||
currency: string; | ||
custom_data: string; | ||
earnings_decrease: string; | ||
@@ -193,2 +199,3 @@ email: string; | ||
currency: string; | ||
custom_data: string; | ||
customer_name: string; | ||
@@ -221,2 +228,3 @@ earnings: string; | ||
currency: string; | ||
custom_data: string; | ||
earnings_decrease: string; | ||
@@ -239,2 +247,3 @@ email: string; | ||
coupon: string; | ||
custom_data: string; | ||
download: string; | ||
@@ -285,2 +294,3 @@ email: string; | ||
created_at: string; | ||
custom_data: string; | ||
customer_email_address: string; | ||
@@ -301,2 +311,3 @@ customer_user_id: string; | ||
customer_user_id: string; | ||
custom_data: string; | ||
marketing_consent: 0 | 1; | ||
@@ -303,0 +314,0 @@ order_id: string; |
{ | ||
"name": "@invertase/node-paddle-sdk", | ||
"private": false, | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A fully typed NodeJS library for integration with Paddle.", | ||
@@ -6,0 +6,0 @@ "main": "dist/node-paddle-sdk.cjs.js", |
@@ -188,4 +188,4 @@ # Node Paddle SDK | ||
<p align="center"> | ||
Built and maintained by <a href="https://invertase.io/?utm_source=readme&utm_medium=footer&utm_campaign=docs.page">Invertase</a>. | ||
Built and maintained by <a href="https://invertase.io/?utm_source=readme&utm_medium=footer&utm_campaign=nodejs-paddle-sdk">Invertase</a>. | ||
</p> | ||
</p> |
@@ -20,2 +20,4 @@ import got from 'got'; | ||
GeneratePayLinkResponse, | ||
GetWebhookHistoryParameters, | ||
GetWebhookHistoryResponse, | ||
ListCouponsParameters, | ||
@@ -185,4 +187,4 @@ ListCouponsResponse, | ||
public async getWebhookHistory(parameters: CreateOneOffChargeParameters): Promise<CreateOneOffChargeResponse> { | ||
return this._request<CreateOneOffChargeResponse>('POST', '/alert/webhooks', parameters); | ||
public async getWebhookHistory(parameters: GetWebhookHistoryParameters): Promise<GetWebhookHistoryResponse> { | ||
return this._request<GetWebhookHistoryResponse>('POST', '/alert/webhooks', parameters); | ||
} | ||
@@ -189,0 +191,0 @@ |
@@ -219,2 +219,3 @@ import { PaddleWebhook } from './webhook'; | ||
currency: 'USD' | 'GBP' | 'EUR'; | ||
custom_data: string; | ||
status: State; | ||
@@ -312,2 +313,3 @@ created_at: string; | ||
marketing_consent: boolean; | ||
custom_data: string; | ||
state: State; | ||
@@ -347,3 +349,3 @@ signup_date: string; | ||
// The new quantity to be applied to the subscription. If there are no changes to it, you will still need to set it with the current value when calling this API. For non-quantity subscription plans, always set the value to 1. | ||
quantity: number; | ||
quantity?: number; | ||
// Optional, but required if setting recurring_price. The currency that the recurring price should be charged in. E.g. USD, GBP, EUR, etc. This must be the same as the currency of the existing subscription. | ||
@@ -350,0 +352,0 @@ currency?: 'USD' | 'GBP' | 'EUR'; |
@@ -59,2 +59,3 @@ import { State } from './types'; | ||
currency: string; | ||
custom_data: string; | ||
email: string; | ||
@@ -88,2 +89,3 @@ marketing_consent: 0 | 1; | ||
currency: string; | ||
custom_data: string; | ||
passthrough: string; | ||
@@ -100,2 +102,3 @@ status: State; | ||
paused_reason?: string; | ||
update_url: string; | ||
} & WebhookBase; | ||
@@ -130,2 +133,3 @@ | ||
currency: string; | ||
custom_data: string; | ||
customer_name: string; | ||
@@ -162,2 +166,3 @@ earnings: string; | ||
currency: string; | ||
custom_data: string; | ||
email: string; | ||
@@ -190,2 +195,3 @@ marketing_consent: 0 | 1; | ||
currency: string; | ||
custom_data: string; | ||
earnings_decrease: string; | ||
@@ -223,2 +229,3 @@ email: string; | ||
currency: string; | ||
custom_data: string; | ||
customer_name: string; | ||
@@ -252,2 +259,3 @@ earnings: string; | ||
currency: string; | ||
custom_data: string; | ||
earnings_decrease: string; | ||
@@ -271,2 +279,3 @@ email: string; | ||
coupon: string; | ||
custom_data: string; | ||
download: string; | ||
@@ -320,2 +329,3 @@ email: string; | ||
created_at: string; | ||
custom_data: string; | ||
customer_email_address: string; | ||
@@ -337,2 +347,3 @@ customer_user_id: string; | ||
customer_user_id: string; | ||
custom_data: string; | ||
marketing_consent: 0 | 1; | ||
@@ -339,0 +350,0 @@ order_id: string; |
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
103052
2402