@paddle/paddle-node-sdk 3.3.0 → 3.5.0
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.
- package/dist/cjs/entities/payment-method/payment-method.js +4 -0
- package/dist/cjs/entities/price/price.js +1 -1
- package/dist/cjs/entities/shared/index.js +2 -0
- package/dist/cjs/entities/shared/payment-method-details.js +5 -0
- package/dist/cjs/entities/shared/south-korea-local-card.js +12 -0
- package/dist/cjs/entities/shared/trial-period.js +14 -0
- package/dist/cjs/enums/shared/index.js +1 -0
- package/dist/cjs/enums/shared/south-korea-local-card-type.js +2 -0
- package/dist/cjs/notifications/entities/payout/payout-notification.js +2 -0
- package/dist/cjs/notifications/entities/price/price-notification.js +1 -1
- package/dist/cjs/notifications/entities/shared/index.js +2 -0
- package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +5 -0
- package/dist/cjs/notifications/entities/shared/south-korea-local-card-notification.js +12 -0
- package/dist/cjs/notifications/entities/shared/trial-period-notification.js +14 -0
- package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +1 -1
- package/dist/cjs/notifications/types/shared/index.js +3 -0
- package/dist/cjs/notifications/types/shared/south-korea-local-card-notification-response.js +2 -0
- package/dist/cjs/notifications/types/shared/trial-period-notification-response.js +2 -0
- package/dist/cjs/notifications/types/shared/trial-period-notification.js +2 -0
- package/dist/cjs/types/shared/index.js +3 -0
- package/dist/cjs/types/shared/south-korea-local-card-response.js +2 -0
- package/dist/cjs/types/shared/trial-period-response.js +2 -0
- package/dist/cjs/types/shared/trial-period.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/payment-method/payment-method.js +5 -1
- package/dist/esm/entities/price/price.js +2 -2
- package/dist/esm/entities/shared/index.js +2 -0
- package/dist/esm/entities/shared/payment-method-details.js +5 -0
- package/dist/esm/entities/shared/south-korea-local-card.js +8 -0
- package/dist/esm/entities/shared/trial-period.js +10 -0
- package/dist/esm/enums/shared/index.js +1 -0
- package/dist/esm/enums/shared/south-korea-local-card-type.js +1 -0
- package/dist/esm/notifications/entities/payout/payout-notification.js +2 -0
- package/dist/esm/notifications/entities/price/price-notification.js +2 -2
- package/dist/esm/notifications/entities/shared/index.js +2 -0
- package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +5 -0
- package/dist/esm/notifications/entities/shared/south-korea-local-card-notification.js +8 -0
- package/dist/esm/notifications/entities/shared/trial-period-notification.js +10 -0
- package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +2 -2
- package/dist/esm/notifications/types/shared/index.js +3 -0
- package/dist/esm/notifications/types/shared/south-korea-local-card-notification-response.js +1 -0
- package/dist/esm/notifications/types/shared/trial-period-notification-response.js +1 -0
- package/dist/esm/notifications/types/shared/trial-period-notification.js +1 -0
- package/dist/esm/types/shared/index.js +3 -0
- package/dist/esm/types/shared/south-korea-local-card-response.js +1 -0
- package/dist/esm/types/shared/trial-period-response.js +1 -0
- package/dist/esm/types/shared/trial-period.js +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/entities/payment-method/payment-method.d.ts +2 -1
- package/dist/types/entities/price/price.d.ts +2 -2
- package/dist/types/entities/shared/index.d.ts +2 -0
- package/dist/types/entities/shared/payment-method-details.d.ts +2 -0
- package/dist/types/entities/shared/south-korea-local-card.d.ts +7 -0
- package/dist/types/entities/shared/trial-period.d.ts +8 -0
- package/dist/types/enums/payment-method/type.d.ts +1 -1
- package/dist/types/enums/report/report-filter-name.d.ts +1 -1
- package/dist/types/enums/report/report-type.d.ts +1 -1
- package/dist/types/enums/shared/available-payment-methods.d.ts +1 -1
- package/dist/types/enums/shared/index.d.ts +1 -0
- package/dist/types/enums/shared/payment-type.d.ts +1 -1
- package/dist/types/enums/shared/south-korea-local-card-type.d.ts +1 -0
- package/dist/types/enums/shared/tax-mode.d.ts +1 -1
- package/dist/types/notifications/entities/payout/payout-notification.d.ts +1 -0
- package/dist/types/notifications/entities/price/price-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/index.d.ts +2 -0
- package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +2 -0
- package/dist/types/notifications/entities/shared/south-korea-local-card-notification.d.ts +7 -0
- package/dist/types/notifications/entities/shared/trial-period-notification.d.ts +8 -0
- package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +2 -2
- package/dist/types/notifications/types/payout/payout-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/price/price-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/shared/index.d.ts +3 -0
- package/dist/types/notifications/types/shared/payment-method-details.d.ts +2 -0
- package/dist/types/notifications/types/shared/shared-price-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/shared/south-korea-local-card-notification-response.d.ts +5 -0
- package/dist/types/notifications/types/shared/trial-period-notification-response.d.ts +4 -0
- package/dist/types/notifications/types/shared/trial-period-notification.d.ts +4 -0
- package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +2 -2
- package/dist/types/resources/prices/operations/create-price-request-body.d.ts +2 -2
- package/dist/types/resources/prices/operations/update-price-request-body.d.ts +2 -2
- package/dist/types/types/payment-method/payment-method.d.ts +2 -1
- package/dist/types/types/price/non-catalog-price-request.d.ts +2 -2
- package/dist/types/types/price/price-response.d.ts +2 -2
- package/dist/types/types/shared/index.d.ts +3 -0
- package/dist/types/types/shared/payment-method-details.d.ts +2 -0
- package/dist/types/types/shared/south-korea-local-card-response.d.ts +5 -0
- package/dist/types/types/shared/trial-period-response.d.ts +4 -0
- package/dist/types/types/shared/trial-period.d.ts +4 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CatalogType, type Status, type TaxMode } from '../../../enums/index.js';
|
|
2
|
-
import { type IImportMetaNotificationResponse, type IMoneyNotificationResponse, type ISharedProductNotificationResponse, type ITimePeriodNotification, type IUnitPriceOverrideNotificationResponse } from '../shared/index.js';
|
|
2
|
+
import { type IImportMetaNotificationResponse, type IMoneyNotificationResponse, type ISharedProductNotificationResponse, type ITimePeriodNotification, type ITrialPeriodNotificationResponse, type IUnitPriceOverrideNotificationResponse } from '../shared/index.js';
|
|
3
3
|
import { type IPriceQuantityNotification } from '../price/index.js';
|
|
4
4
|
import { type ICustomData } from '../../../types/index.js';
|
|
5
5
|
export interface ISubscriptionPriceNotificationResponse {
|
|
@@ -9,7 +9,7 @@ export interface ISubscriptionPriceNotificationResponse {
|
|
|
9
9
|
type?: CatalogType | null;
|
|
10
10
|
name?: string | null;
|
|
11
11
|
billing_cycle?: ITimePeriodNotification | null;
|
|
12
|
-
trial_period?:
|
|
12
|
+
trial_period?: ITrialPeriodNotificationResponse | null;
|
|
13
13
|
tax_mode: TaxMode;
|
|
14
14
|
unit_price?: IMoneyNotificationResponse | null;
|
|
15
15
|
unit_price_overrides?: IUnitPriceOverrideNotificationResponse[] | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CatalogType, type TaxMode } from '../../../enums/index.js';
|
|
2
|
-
import { type ICustomData, type IMoney, type IPriceQuantity, type ITimePeriod, type IUnitPriceOverride } from '../../../types/index.js';
|
|
2
|
+
import { type ICustomData, type IMoney, type IPriceQuantity, type ITimePeriod, type ITrialPeriod, type IUnitPriceOverride } from '../../../types/index.js';
|
|
3
3
|
export interface CreatePriceRequestBody {
|
|
4
4
|
name?: string | null;
|
|
5
5
|
description: string;
|
|
@@ -7,7 +7,7 @@ export interface CreatePriceRequestBody {
|
|
|
7
7
|
productId: string;
|
|
8
8
|
unitPrice: IMoney;
|
|
9
9
|
billingCycle?: ITimePeriod | null;
|
|
10
|
-
trialPeriod?:
|
|
10
|
+
trialPeriod?: ITrialPeriod | null;
|
|
11
11
|
taxMode?: TaxMode;
|
|
12
12
|
unitPriceOverrides?: IUnitPriceOverride[];
|
|
13
13
|
quantity?: IPriceQuantity;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type CatalogType, type Status, type TaxMode } from '../../../enums/index.js';
|
|
2
|
-
import { type ICustomData, type IMoney, type IPriceQuantity, type ITimePeriod, type IUnitPriceOverride } from '../../../types/index.js';
|
|
2
|
+
import { type ICustomData, type IMoney, type IPriceQuantity, type ITimePeriod, type ITrialPeriod, type IUnitPriceOverride } from '../../../types/index.js';
|
|
3
3
|
export interface UpdatePriceRequestBody {
|
|
4
4
|
description?: string;
|
|
5
5
|
name?: string | null;
|
|
6
6
|
type?: CatalogType | null;
|
|
7
7
|
billingCycle?: ITimePeriod | null;
|
|
8
|
-
trialPeriod?:
|
|
8
|
+
trialPeriod?: ITrialPeriod | null;
|
|
9
9
|
taxMode?: TaxMode;
|
|
10
10
|
unitPrice?: IMoney;
|
|
11
11
|
unitPriceOverrides?: IUnitPriceOverride[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IPaymentCardResponse, type IPayPalResponse } from '../index.js';
|
|
2
2
|
import { type SavedPaymentMethodType, type SavedPaymentOrigin } from '../../enums/index.js';
|
|
3
|
-
import { IPaymentMethodUnderlyingDetails } from '../shared/index.js';
|
|
3
|
+
import { IPaymentMethodUnderlyingDetails, type ISouthKoreaLocalCardResponse } from '../shared/index.js';
|
|
4
4
|
export interface IPaymentMethodResponse {
|
|
5
5
|
id: string;
|
|
6
6
|
customer_id: string;
|
|
@@ -8,6 +8,7 @@ export interface IPaymentMethodResponse {
|
|
|
8
8
|
type: SavedPaymentMethodType;
|
|
9
9
|
card: IPaymentCardResponse | null;
|
|
10
10
|
paypal: IPayPalResponse | null;
|
|
11
|
+
south_korea_local_card: ISouthKoreaLocalCardResponse | null;
|
|
11
12
|
underlying_details: IPaymentMethodUnderlyingDetails | null;
|
|
12
13
|
origin: SavedPaymentOrigin;
|
|
13
14
|
saved_at: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICustomData, IMoney, IPriceQuantity, ITimePeriod, IUnitPriceOverride } from '../shared/index.js';
|
|
1
|
+
import type { ICustomData, IMoney, IPriceQuantity, ITimePeriod, ITrialPeriod, IUnitPriceOverride } from '../shared/index.js';
|
|
2
2
|
import type { TaxMode } from '../../enums/index.js';
|
|
3
3
|
import type { CreateProductRequestBody } from '../../resources/index.js';
|
|
4
4
|
interface INonCatalogBasePriceRequestBody {
|
|
@@ -6,7 +6,7 @@ interface INonCatalogBasePriceRequestBody {
|
|
|
6
6
|
description: string;
|
|
7
7
|
unitPrice: IMoney;
|
|
8
8
|
billingCycle?: ITimePeriod | null;
|
|
9
|
-
trialPeriod?:
|
|
9
|
+
trialPeriod?: ITrialPeriod | null;
|
|
10
10
|
taxMode?: TaxMode;
|
|
11
11
|
unitPriceOverrides?: IUnitPriceOverride[];
|
|
12
12
|
quantity?: IPriceQuantity;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ICustomData, type IImportMetaResponse, type IMoneyResponse, type IPriceQuantity, type IProductResponse, type ITimePeriod, type IUnitPriceOverrideResponse } from '../index.js';
|
|
1
|
+
import { type ICustomData, type IImportMetaResponse, type IMoneyResponse, type IPriceQuantity, type IProductResponse, type ITimePeriod, type ITrialPeriodResponse, type IUnitPriceOverrideResponse } from '../index.js';
|
|
2
2
|
import { type CatalogType, type Status, type TaxMode } from '../../enums/index.js';
|
|
3
3
|
export interface IPriceResponse {
|
|
4
4
|
id: string;
|
|
@@ -7,7 +7,7 @@ export interface IPriceResponse {
|
|
|
7
7
|
type: CatalogType;
|
|
8
8
|
name?: string | null;
|
|
9
9
|
billing_cycle?: ITimePeriod | null;
|
|
10
|
-
trial_period?:
|
|
10
|
+
trial_period?: ITrialPeriodResponse | null;
|
|
11
11
|
tax_mode: TaxMode;
|
|
12
12
|
unit_price: IMoneyResponse;
|
|
13
13
|
unit_price_overrides: IUnitPriceOverrideResponse[] | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './time-period.js';
|
|
2
|
+
export * from './trial-period.js';
|
|
3
|
+
export * from './trial-period-response.js';
|
|
2
4
|
export * from './money.js';
|
|
3
5
|
export * from './money-response.js';
|
|
4
6
|
export * from './unit-price-override.js';
|
|
@@ -33,3 +35,4 @@ export * from './simulation-event-response.js';
|
|
|
33
35
|
export * from './simulation-payload.js';
|
|
34
36
|
export * from './payment-method-underlying-details.js';
|
|
35
37
|
export * from './korean-market-underlying-details.js';
|
|
38
|
+
export * from './south-korea-local-card-response.js';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type PaymentType } from '../../enums/index.js';
|
|
2
2
|
import { type IPaymentCardResponse } from './payment-card-response.js';
|
|
3
3
|
import { IPaymentMethodUnderlyingDetails } from './payment-method-underlying-details.js';
|
|
4
|
+
import { type ISouthKoreaLocalCardResponse } from './south-korea-local-card-response.js';
|
|
4
5
|
export interface IPaymentMethodDetails {
|
|
5
6
|
type: PaymentType;
|
|
6
7
|
card: IPaymentCardResponse | null;
|
|
8
|
+
south_korea_local_card: ISouthKoreaLocalCardResponse | null;
|
|
7
9
|
underlying_details: IPaymentMethodUnderlyingDetails | null;
|
|
8
10
|
}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.5.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
|
|
5
5
|
"main": "dist/cjs/index.cjs.node.js",
|
|
6
6
|
"module": "dist/esm/index.esm.node.js",
|