@paddle/paddle-node-sdk 3.4.0 → 3.6.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/price/price.js +1 -1
- package/dist/cjs/entities/shared/index.js +1 -0
- package/dist/cjs/entities/shared/transaction-payout-totals.js +2 -0
- package/dist/cjs/entities/shared/transaction-totals-adjusted.js +2 -0
- package/dist/cjs/entities/shared/transaction-totals.js +2 -0
- package/dist/cjs/entities/shared/trial-period.js +14 -0
- package/dist/cjs/enums/api-key-exposure/action-taken.js +2 -0
- package/dist/cjs/enums/api-key-exposure/index.js +19 -0
- package/dist/cjs/enums/api-key-exposure/risk-level.js +2 -0
- package/dist/cjs/enums/api-key-exposure/source.js +2 -0
- package/dist/cjs/enums/index.js +1 -0
- package/dist/cjs/notifications/entities/api-key-exposure/api-key-exposure-notification.js +24 -0
- package/dist/cjs/notifications/entities/api-key-exposure/index.js +17 -0
- package/dist/cjs/notifications/entities/index.js +1 -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 +1 -0
- package/dist/cjs/notifications/entities/shared/transaction-payout-totals-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/transaction-totals-adjusted-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/transaction-totals-notification.js +2 -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/events/api-key-exposure/api-key-exposure-created-event.js +15 -0
- package/dist/cjs/notifications/events/api-key-exposure/index.js +17 -0
- package/dist/cjs/notifications/events/index.js +1 -0
- package/dist/cjs/notifications/helpers/types.js +1 -0
- package/dist/cjs/notifications/helpers/webhooks.js +2 -0
- package/dist/cjs/notifications/types/api-key-exposure/api-key-exposure-notification-response.js +2 -0
- package/dist/cjs/notifications/types/api-key-exposure/index.js +17 -0
- package/dist/cjs/notifications/types/index.js +1 -0
- package/dist/cjs/notifications/types/shared/index.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 +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/price/price.js +2 -2
- package/dist/esm/entities/shared/index.js +1 -0
- package/dist/esm/entities/shared/transaction-payout-totals.js +2 -0
- package/dist/esm/entities/shared/transaction-totals-adjusted.js +2 -0
- package/dist/esm/entities/shared/transaction-totals.js +2 -0
- package/dist/esm/entities/shared/trial-period.js +10 -0
- package/dist/esm/enums/api-key-exposure/action-taken.js +1 -0
- package/dist/esm/enums/api-key-exposure/index.js +3 -0
- package/dist/esm/enums/api-key-exposure/risk-level.js +1 -0
- package/dist/esm/enums/api-key-exposure/source.js +1 -0
- package/dist/esm/enums/index.js +1 -0
- package/dist/esm/notifications/entities/api-key-exposure/api-key-exposure-notification.js +20 -0
- package/dist/esm/notifications/entities/api-key-exposure/index.js +1 -0
- package/dist/esm/notifications/entities/index.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 +1 -0
- package/dist/esm/notifications/entities/shared/transaction-payout-totals-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/transaction-totals-adjusted-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/transaction-totals-notification.js +2 -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/events/api-key-exposure/api-key-exposure-created-event.js +11 -0
- package/dist/esm/notifications/events/api-key-exposure/index.js +1 -0
- package/dist/esm/notifications/events/index.js +1 -0
- package/dist/esm/notifications/helpers/types.js +1 -0
- package/dist/esm/notifications/helpers/webhooks.js +3 -1
- package/dist/esm/notifications/types/api-key-exposure/api-key-exposure-notification-response.js +1 -0
- package/dist/esm/notifications/types/api-key-exposure/index.js +1 -0
- package/dist/esm/notifications/types/index.js +1 -0
- package/dist/esm/notifications/types/shared/index.js +2 -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 +2 -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/price/price.d.ts +2 -2
- package/dist/types/entities/shared/index.d.ts +1 -0
- package/dist/types/entities/shared/transaction-payout-totals.d.ts +1 -0
- package/dist/types/entities/shared/transaction-totals-adjusted.d.ts +1 -0
- package/dist/types/entities/shared/transaction-totals.d.ts +1 -0
- package/dist/types/entities/shared/trial-period.d.ts +8 -0
- package/dist/types/enums/api-key-exposure/action-taken.d.ts +1 -0
- package/dist/types/enums/api-key-exposure/index.d.ts +3 -0
- package/dist/types/enums/api-key-exposure/risk-level.d.ts +1 -0
- package/dist/types/enums/api-key-exposure/source.d.ts +1 -0
- package/dist/types/enums/index.d.ts +1 -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/payment-type.d.ts +1 -1
- package/dist/types/enums/shared/tax-mode.d.ts +1 -1
- package/dist/types/notifications/entities/api-key-exposure/api-key-exposure-notification.d.ts +13 -0
- package/dist/types/notifications/entities/api-key-exposure/index.d.ts +1 -0
- package/dist/types/notifications/entities/index.d.ts +1 -0
- 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 +1 -0
- package/dist/types/notifications/entities/shared/transaction-payout-totals-notification.d.ts +1 -0
- package/dist/types/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +1 -0
- package/dist/types/notifications/entities/shared/transaction-totals-notification.d.ts +1 -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/events/api-key-exposure/api-key-exposure-created-event.d.ts +10 -0
- package/dist/types/notifications/events/api-key-exposure/index.d.ts +1 -0
- package/dist/types/notifications/events/index.d.ts +1 -0
- package/dist/types/notifications/helpers/types.d.ts +4 -3
- package/dist/types/notifications/types/api-key-exposure/api-key-exposure-notification-response.d.ts +11 -0
- package/dist/types/notifications/types/api-key-exposure/index.d.ts +1 -0
- package/dist/types/notifications/types/index.d.ts +1 -0
- 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 +2 -0
- package/dist/types/notifications/types/shared/shared-price-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/shared/transaction-totals-notification-response.d.ts +1 -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/events/events-response.d.ts +5 -2
- 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 +2 -0
- package/dist/types/types/shared/transaction-payout-totals-response.d.ts +1 -0
- package/dist/types/types/shared/transaction-totals-adjusted-response.d.ts +1 -0
- package/dist/types/types/shared/transaction-totals-response.d.ts +1 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AddressCreatedEvent, type AddressImportedEvent, type AddressUpdatedEvent, type AdjustmentCreatedEvent, type AdjustmentUpdatedEvent, type ApiKeyCreatedEvent, type ApiKeyExpiredEvent, type ApiKeyExpiringEvent, type ApiKeyRevokedEvent, type ApiKeyUpdatedEvent, type BusinessCreatedEvent, type BusinessImportedEvent, type BusinessUpdatedEvent, type ClientTokenCreatedEvent, type ClientTokenRevokedEvent, type ClientTokenUpdatedEvent, type CustomerCreatedEvent, type CustomerImportedEvent, type CustomerUpdatedEvent, type DiscountCreatedEvent, type DiscountGroupCreatedEvent, type DiscountGroupUpdatedEvent, type DiscountImportedEvent, type DiscountUpdatedEvent, type PaymentMethodDeletedEvent, type PaymentMethodSavedEvent, type PayoutCreatedEvent, type PayoutPaidEvent, type PriceCreatedEvent, type PriceImportedEvent, type PriceUpdatedEvent, type ProductCreatedEvent, type ProductImportedEvent, type ProductUpdatedEvent, type ReportCreatedEvent, type ReportUpdatedEvent, type SubscriptionActivatedEvent, type SubscriptionCanceledEvent, type SubscriptionCreatedEvent, type SubscriptionImportedEvent, type SubscriptionPastDueEvent, type SubscriptionPausedEvent, type SubscriptionResumedEvent, type SubscriptionTrialingEvent, type SubscriptionUpdatedEvent, type TransactionBilledEvent, type TransactionCanceledEvent, type TransactionCompletedEvent, type TransactionCreatedEvent, type TransactionPaidEvent, type TransactionPastDueEvent, type TransactionPaymentFailedEvent, type TransactionReadyEvent, type TransactionRevisedEvent, type TransactionUpdatedEvent } from '../events/index.js';
|
|
2
|
-
export type EventEntity = AddressCreatedEvent | AddressUpdatedEvent | AddressImportedEvent | AdjustmentUpdatedEvent | AdjustmentCreatedEvent | ApiKeyCreatedEvent | ApiKeyUpdatedEvent | ApiKeyExpiringEvent | ApiKeyExpiredEvent | ApiKeyRevokedEvent | BusinessCreatedEvent | BusinessUpdatedEvent | BusinessImportedEvent | ClientTokenCreatedEvent | ClientTokenUpdatedEvent | ClientTokenRevokedEvent | CustomerCreatedEvent | CustomerUpdatedEvent | CustomerImportedEvent | DiscountCreatedEvent | DiscountUpdatedEvent | DiscountImportedEvent | DiscountGroupCreatedEvent | DiscountGroupUpdatedEvent | PaymentMethodDeletedEvent | PaymentMethodSavedEvent | PayoutCreatedEvent | PayoutPaidEvent | PriceCreatedEvent | PriceUpdatedEvent | PriceImportedEvent | ProductCreatedEvent | ProductUpdatedEvent | ProductImportedEvent | SubscriptionActivatedEvent | SubscriptionCanceledEvent | SubscriptionCreatedEvent | SubscriptionImportedEvent | SubscriptionPastDueEvent | SubscriptionPausedEvent | SubscriptionResumedEvent | SubscriptionTrialingEvent | SubscriptionUpdatedEvent | TransactionBilledEvent | TransactionCanceledEvent | TransactionCompletedEvent | TransactionCreatedEvent | TransactionPaidEvent | TransactionPastDueEvent | TransactionPaymentFailedEvent | TransactionReadyEvent | TransactionUpdatedEvent | TransactionRevisedEvent | ReportUpdatedEvent | ReportCreatedEvent;
|
|
1
|
+
import { type AddressCreatedEvent, type AddressImportedEvent, type AddressUpdatedEvent, type AdjustmentCreatedEvent, type AdjustmentUpdatedEvent, type ApiKeyCreatedEvent, type ApiKeyExpiredEvent, type ApiKeyExpiringEvent, type ApiKeyRevokedEvent, type ApiKeyUpdatedEvent, type ApiKeyExposureCreatedEvent, type BusinessCreatedEvent, type BusinessImportedEvent, type BusinessUpdatedEvent, type ClientTokenCreatedEvent, type ClientTokenRevokedEvent, type ClientTokenUpdatedEvent, type CustomerCreatedEvent, type CustomerImportedEvent, type CustomerUpdatedEvent, type DiscountCreatedEvent, type DiscountGroupCreatedEvent, type DiscountGroupUpdatedEvent, type DiscountImportedEvent, type DiscountUpdatedEvent, type PaymentMethodDeletedEvent, type PaymentMethodSavedEvent, type PayoutCreatedEvent, type PayoutPaidEvent, type PriceCreatedEvent, type PriceImportedEvent, type PriceUpdatedEvent, type ProductCreatedEvent, type ProductImportedEvent, type ProductUpdatedEvent, type ReportCreatedEvent, type ReportUpdatedEvent, type SubscriptionActivatedEvent, type SubscriptionCanceledEvent, type SubscriptionCreatedEvent, type SubscriptionImportedEvent, type SubscriptionPastDueEvent, type SubscriptionPausedEvent, type SubscriptionResumedEvent, type SubscriptionTrialingEvent, type SubscriptionUpdatedEvent, type TransactionBilledEvent, type TransactionCanceledEvent, type TransactionCompletedEvent, type TransactionCreatedEvent, type TransactionPaidEvent, type TransactionPastDueEvent, type TransactionPaymentFailedEvent, type TransactionReadyEvent, type TransactionRevisedEvent, type TransactionUpdatedEvent } from '../events/index.js';
|
|
2
|
+
export type EventEntity = AddressCreatedEvent | AddressUpdatedEvent | AddressImportedEvent | AdjustmentUpdatedEvent | AdjustmentCreatedEvent | ApiKeyCreatedEvent | ApiKeyUpdatedEvent | ApiKeyExpiringEvent | ApiKeyExpiredEvent | ApiKeyRevokedEvent | ApiKeyExposureCreatedEvent | BusinessCreatedEvent | BusinessUpdatedEvent | BusinessImportedEvent | ClientTokenCreatedEvent | ClientTokenUpdatedEvent | ClientTokenRevokedEvent | CustomerCreatedEvent | CustomerUpdatedEvent | CustomerImportedEvent | DiscountCreatedEvent | DiscountUpdatedEvent | DiscountImportedEvent | DiscountGroupCreatedEvent | DiscountGroupUpdatedEvent | PaymentMethodDeletedEvent | PaymentMethodSavedEvent | PayoutCreatedEvent | PayoutPaidEvent | PriceCreatedEvent | PriceUpdatedEvent | PriceImportedEvent | ProductCreatedEvent | ProductUpdatedEvent | ProductImportedEvent | SubscriptionActivatedEvent | SubscriptionCanceledEvent | SubscriptionCreatedEvent | SubscriptionImportedEvent | SubscriptionPastDueEvent | SubscriptionPausedEvent | SubscriptionResumedEvent | SubscriptionTrialingEvent | SubscriptionUpdatedEvent | TransactionBilledEvent | TransactionCanceledEvent | TransactionCompletedEvent | TransactionCreatedEvent | TransactionPaidEvent | TransactionPastDueEvent | TransactionPaymentFailedEvent | TransactionReadyEvent | TransactionUpdatedEvent | TransactionRevisedEvent | ReportUpdatedEvent | ReportCreatedEvent;
|
|
3
3
|
export declare enum EventName {
|
|
4
4
|
AddressCreated = "address.created",
|
|
5
5
|
AddressUpdated = "address.updated",
|
|
@@ -11,6 +11,7 @@ export declare enum EventName {
|
|
|
11
11
|
ApiKeyExpiring = "api_key.expiring",
|
|
12
12
|
ApiKeyExpired = "api_key.expired",
|
|
13
13
|
ApiKeyRevoked = "api_key.revoked",
|
|
14
|
+
ApiKeyExposureCreated = "api_key_exposure.created",
|
|
14
15
|
BusinessCreated = "business.created",
|
|
15
16
|
BusinessImported = "business.imported",
|
|
16
17
|
BusinessUpdated = "business.updated",
|
|
@@ -57,4 +58,4 @@ export declare enum EventName {
|
|
|
57
58
|
ReportCreated = "report.created",
|
|
58
59
|
ReportUpdated = "report.updated"
|
|
59
60
|
}
|
|
60
|
-
export type IEventName = 'address.created' | 'address.updated' | 'address.imported' | 'adjustment.created' | 'adjustment.updated' | 'api_key.created' | 'api_key.updated' | 'api_key.expiring' | 'api_key.expired' | 'api_key.revoked' | 'business.created' | 'business.updated' | 'business.imported' | 'client_token.created' | 'client_token.updated' | 'client_token.revoked' | 'customer.created' | 'customer.imported' | 'customer.updated' | 'discount.created' | 'discount.updated' | 'discount.imported' | 'discount_group.created' | 'discount_group.updated' | 'payment_method.saved' | 'payment_method.deleted' | 'payout.created' | 'payout.paid' | 'price.updated' | 'price.created' | 'price.imported' | 'product.updated' | 'product.created' | 'product.imported' | 'subscription.activated' | 'subscription.canceled' | 'subscription.imported' | 'subscription.created' | 'subscription.past_due' | 'subscription.paused' | 'subscription.resumed' | 'subscription.trialing' | 'subscription.updated' | 'transaction.billed' | 'transaction.canceled' | 'transaction.completed' | 'transaction.paid' | 'transaction.created' | 'transaction.past_due' | 'transaction.payment_failed' | 'transaction.ready' | 'transaction.updated' | 'transaction.revised' | 'report.created' | 'report.updated';
|
|
61
|
+
export type IEventName = 'address.created' | 'address.updated' | 'address.imported' | 'adjustment.created' | 'adjustment.updated' | 'api_key.created' | 'api_key.updated' | 'api_key.expiring' | 'api_key.expired' | 'api_key.revoked' | 'api_key_exposure.created' | 'business.created' | 'business.updated' | 'business.imported' | 'client_token.created' | 'client_token.updated' | 'client_token.revoked' | 'customer.created' | 'customer.imported' | 'customer.updated' | 'discount.created' | 'discount.updated' | 'discount.imported' | 'discount_group.created' | 'discount_group.updated' | 'payment_method.saved' | 'payment_method.deleted' | 'payout.created' | 'payout.paid' | 'price.updated' | 'price.created' | 'price.imported' | 'product.updated' | 'product.created' | 'product.imported' | 'subscription.activated' | 'subscription.canceled' | 'subscription.imported' | 'subscription.created' | 'subscription.past_due' | 'subscription.paused' | 'subscription.resumed' | 'subscription.trialing' | 'subscription.updated' | 'transaction.billed' | 'transaction.canceled' | 'transaction.completed' | 'transaction.paid' | 'transaction.created' | 'transaction.past_due' | 'transaction.payment_failed' | 'transaction.ready' | 'transaction.updated' | 'transaction.revised' | 'report.created' | 'report.updated';
|
package/dist/types/notifications/types/api-key-exposure/api-key-exposure-notification-response.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiKeyExposureRiskLevel, ApiKeyExposureActionTaken, ApiKeyExposureSource } from '../../../enums/index.js';
|
|
2
|
+
export interface IApiKeyExposureNotificationResponse {
|
|
3
|
+
id: string;
|
|
4
|
+
api_key_id: string;
|
|
5
|
+
risk_level: ApiKeyExposureRiskLevel;
|
|
6
|
+
action_taken: ApiKeyExposureActionTaken;
|
|
7
|
+
source: ApiKeyExposureSource;
|
|
8
|
+
reference: string;
|
|
9
|
+
description: string | null;
|
|
10
|
+
created_at: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api-key-exposure-notification-response.js';
|
|
@@ -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-quantity-notification.js';
|
|
4
4
|
import { type ICustomData } from '../../../types/index.js';
|
|
5
5
|
export interface IPriceNotificationResponse {
|
|
@@ -9,7 +9,7 @@ export interface IPriceNotificationResponse {
|
|
|
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;
|
|
15
15
|
unit_price_overrides: IUnitPriceOverrideNotificationResponse[] | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './time-period-notification.js';
|
|
2
|
+
export * from './trial-period-notification.js';
|
|
3
|
+
export * from './trial-period-notification-response.js';
|
|
2
4
|
export * from './money-notification-response.js';
|
|
3
5
|
export * from './unit-price-override-notification-response.js';
|
|
4
6
|
export * from './shared-price-notification-response.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CatalogType, type Status, type TaxMode } from '../../../enums/index.js';
|
|
2
2
|
import { type ITimePeriodNotification } from './time-period-notification.js';
|
|
3
|
+
import { type ITrialPeriodNotificationResponse } from './trial-period-notification-response.js';
|
|
3
4
|
import { type IMoneyNotificationResponse } from './money-notification-response.js';
|
|
4
5
|
import { type IUnitPriceOverrideNotificationResponse } from './unit-price-override-notification-response.js';
|
|
5
6
|
import { type IPriceQuantityNotification } from '../price/index.js';
|
|
@@ -12,7 +13,7 @@ export interface ISharedPriceNotificationResponse {
|
|
|
12
13
|
type: CatalogType;
|
|
13
14
|
name?: string | null;
|
|
14
15
|
billing_cycle?: ITimePeriodNotification | null;
|
|
15
|
-
trial_period?:
|
|
16
|
+
trial_period?: ITrialPeriodNotificationResponse | null;
|
|
16
17
|
tax_mode: TaxMode;
|
|
17
18
|
unit_price?: IMoneyNotificationResponse | null;
|
|
18
19
|
unit_price_overrides?: IUnitPriceOverrideNotificationResponse[] | null;
|
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,4 +1,4 @@
|
|
|
1
|
-
import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IApiKeyNotificationResponse, type IBusinessNotificationResponse, type IClientTokenNotificationResponse, type ICustomerNotificationResponse, type IDiscountGroupNotificationResponse, type IDiscountNotificationResponse, type IPaymentMethodDeletedNotificationResponse, type IPaymentMethodNotificationResponse, type IPayoutNotificationResponse, type IPriceNotificationResponse, type IProductNotificationResponse, type IReportNotificationResponse, type ISubscriptionCreatedNotificationResponse, type ISubscriptionNotificationResponse, type ITransactionNotificationResponse } from '../../notifications/index.js';
|
|
1
|
+
import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IApiKeyNotificationResponse, type IApiKeyExposureNotificationResponse, type IBusinessNotificationResponse, type IClientTokenNotificationResponse, type ICustomerNotificationResponse, type IDiscountGroupNotificationResponse, type IDiscountNotificationResponse, type IPaymentMethodDeletedNotificationResponse, type IPaymentMethodNotificationResponse, type IPayoutNotificationResponse, type IPriceNotificationResponse, type IProductNotificationResponse, type IReportNotificationResponse, type ISubscriptionCreatedNotificationResponse, type ISubscriptionNotificationResponse, type ITransactionNotificationResponse } from '../../notifications/index.js';
|
|
2
2
|
export interface IEventsResponse<T = object> {
|
|
3
3
|
event_id: string;
|
|
4
4
|
notification_id: string | null;
|
|
@@ -36,6 +36,9 @@ interface IApiKeyRevoked extends IEventsResponse<IApiKeyNotificationResponse> {
|
|
|
36
36
|
interface IApiKeyUpdated extends IEventsResponse<IApiKeyNotificationResponse> {
|
|
37
37
|
event_type: EventName.ApiKeyUpdated;
|
|
38
38
|
}
|
|
39
|
+
interface IApiKeyExposureCreated extends IEventsResponse<IApiKeyExposureNotificationResponse> {
|
|
40
|
+
event_type: EventName.ApiKeyExposureCreated;
|
|
41
|
+
}
|
|
39
42
|
interface IBusinessCreated extends IEventsResponse<IBusinessNotificationResponse> {
|
|
40
43
|
event_type: EventName.BusinessCreated;
|
|
41
44
|
}
|
|
@@ -171,5 +174,5 @@ interface IReportCreated extends IEventsResponse<IReportNotificationResponse> {
|
|
|
171
174
|
interface IReportUpdated extends IEventsResponse<IReportNotificationResponse> {
|
|
172
175
|
event_type: EventName.ReportUpdated;
|
|
173
176
|
}
|
|
174
|
-
export type IEvents = IAddressCreated | IAddressUpdated | IAddressImported | IAdjustmentCreated | IAdjustmentUpdated | IApiKeyCreated | IApiKeyExpired | IApiKeyExpiring | IApiKeyRevoked | IApiKeyUpdated | IBusinessCreated | IBusinessUpdated | IBusinessImported | ICustomerCreated | ICustomerUpdated | ICustomerImported | IClientTokenCreated | IClientTokenUpdated | IClientTokenRevoked | IDiscountCreated | IDiscountUpdated | IDiscountImported | IDiscountGroupCreated | IDiscountGroupUpdated | IPaymentMethodDeleted | IPaymentMethodSaved | IPayoutCreated | IPayoutPaid | IPriceCreated | IPriceUpdated | IPriceImported | IProductCreated | IProductUpdated | IProductImported | ISubscriptionActivated | ISubscriptionCanceled | ISubscriptionCreated | ISubscriptionImported | ISubscriptionPastDue | ISubscriptionPaused | ISubscriptionResumed | ISubscriptionTrialing | ISubscriptionUpdated | ITransactionBilled | ITransactionCanceled | ITransactionCompleted | ITransactionCreated | ITransactionPaid | ITransactionPastDue | ITransactionPaymentFailed | ITransactionReady | ITransactionUpdated | ITransactionRevised | IReportCreated | IReportUpdated;
|
|
177
|
+
export type IEvents = IAddressCreated | IAddressUpdated | IAddressImported | IAdjustmentCreated | IAdjustmentUpdated | IApiKeyCreated | IApiKeyExpired | IApiKeyExpiring | IApiKeyRevoked | IApiKeyUpdated | IApiKeyExposureCreated | IBusinessCreated | IBusinessUpdated | IBusinessImported | ICustomerCreated | ICustomerUpdated | ICustomerImported | IClientTokenCreated | IClientTokenUpdated | IClientTokenRevoked | IDiscountCreated | IDiscountUpdated | IDiscountImported | IDiscountGroupCreated | IDiscountGroupUpdated | IPaymentMethodDeleted | IPaymentMethodSaved | IPayoutCreated | IPayoutPaid | IPriceCreated | IPriceUpdated | IPriceImported | IProductCreated | IProductUpdated | IProductImported | ISubscriptionActivated | ISubscriptionCanceled | ISubscriptionCreated | ISubscriptionImported | ISubscriptionPastDue | ISubscriptionPaused | ISubscriptionResumed | ISubscriptionTrialing | ISubscriptionUpdated | ITransactionBilled | ITransactionCanceled | ITransactionCompleted | ITransactionCreated | ITransactionPaid | ITransactionPastDue | ITransactionPaymentFailed | ITransactionReady | ITransactionUpdated | ITransactionRevised | IReportCreated | IReportUpdated;
|
|
175
178
|
export {};
|
|
@@ -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;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.6.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.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",
|