@paddle/paddle-node-sdk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,16 @@
1
- import { type ISubscriptionDiscount, type IBillingDetailsUpdate, type ISubscriptionUpdateItem, type ICustomData } from '../../../types';
2
- import { type CurrencyCode, type CollectionMode, type ProrationBillingMode } from '../../../enums';
1
+ import { type IBillingDetailsUpdate, type ICustomData, type ISubscriptionUpdateItem } from '../../../types';
2
+ import { type CollectionMode, type CurrencyCode, type ProrationBillingMode, type SubscriptionEffectiveFrom } from '../../../enums';
3
+ export interface UpdateSubscriptionDiscount {
4
+ id: string;
5
+ effective_from: SubscriptionEffectiveFrom;
6
+ }
3
7
  export interface UpdateSubscriptionRequestBody {
4
8
  customer_id?: string;
5
9
  address_id?: string;
6
10
  business_id?: string | undefined | null;
7
11
  currency_code?: CurrencyCode;
8
12
  next_billed_at?: string;
9
- discount?: ISubscriptionDiscount | undefined | null;
13
+ discount?: UpdateSubscriptionDiscount | undefined | null;
10
14
  collection_mode?: CollectionMode;
11
15
  billing_details?: IBillingDetailsUpdate | undefined | null;
12
16
  scheduled_change?: undefined | null;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.1";
1
+ export declare const SDK_VERSION = "0.1.2";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '0.1.1';
4
+ exports.SDK_VERSION = '0.1.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paddle/paddle-node-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A NodeJS SDK for Paddle Billing API",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",