@paddle/paddle-node-sdk 0.2.1 → 0.2.3
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/CHANGELOG.md +33 -0
- package/README.md +57 -18
- package/dist/entities/discount/discount.d.ts +1 -1
- package/dist/entities/discount/discount.js +2 -1
- package/dist/entities/event-types/event-type.d.ts +9 -0
- package/dist/entities/event-types/event-type.js +12 -0
- package/dist/entities/event-types/index.d.ts +1 -0
- package/dist/entities/event-types/index.js +17 -0
- package/dist/entities/events/event-collection.d.ts +6 -0
- package/dist/entities/events/event-collection.js +11 -0
- package/dist/entities/events/event.d.ts +9 -0
- package/dist/entities/events/event.js +14 -0
- package/dist/entities/events/index.d.ts +1 -0
- package/dist/entities/events/index.js +17 -0
- package/dist/entities/index.d.ts +5 -0
- package/dist/entities/index.js +5 -0
- package/dist/entities/notification-settings/index.d.ts +1 -0
- package/dist/entities/notification-settings/index.js +17 -0
- package/dist/entities/notification-settings/notification-settings.d.ts +15 -0
- package/dist/entities/notification-settings/notification-settings.js +18 -0
- package/dist/entities/notifications/index.d.ts +5 -0
- package/dist/entities/notifications/index.js +21 -0
- package/dist/entities/notifications/notification-collection.d.ts +6 -0
- package/dist/entities/notifications/notification-collection.js +11 -0
- package/dist/entities/notifications/notification-log-collection.d.ts +6 -0
- package/dist/entities/notifications/notification-log-collection.js +11 -0
- package/dist/entities/notifications/notification-log.d.ts +8 -0
- package/dist/entities/notifications/notification-log.js +14 -0
- package/dist/entities/notifications/notification.d.ts +18 -0
- package/dist/entities/notifications/notification.js +22 -0
- package/dist/entities/notifications/replay-notification.d.ts +5 -0
- package/dist/entities/notifications/replay-notification.js +9 -0
- package/dist/entities/payout/index.d.ts +1 -0
- package/dist/entities/payout/index.js +17 -0
- package/dist/entities/payout/payout.d.ts +9 -0
- package/dist/entities/payout/payout.js +12 -0
- package/dist/entities/subscription/index.d.ts +1 -0
- package/dist/entities/subscription/index.js +1 -0
- package/dist/entities/subscription/subscription-notification.d.ts +28 -0
- package/dist/entities/subscription/subscription-notification.js +35 -0
- package/dist/entities/subscription/subscription-scheduled-change.d.ts +2 -2
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/index.js +3 -0
- package/dist/enums/notification/index.d.ts +2 -0
- package/dist/enums/notification/index.js +18 -0
- package/dist/enums/notification/notification-status.d.ts +1 -0
- package/dist/enums/notification/notification-status.js +2 -0
- package/dist/enums/notification/origin.d.ts +1 -0
- package/dist/enums/notification/origin.js +2 -0
- package/dist/enums/notification-settings/index.d.ts +1 -0
- package/dist/enums/notification-settings/index.js +17 -0
- package/dist/enums/notification-settings/notification-settings-type.d.ts +1 -0
- package/dist/enums/notification-settings/notification-settings-type.js +2 -0
- package/dist/enums/payout/index.d.ts +1 -0
- package/dist/enums/payout/index.js +17 -0
- package/dist/enums/payout/payout-status.d.ts +1 -0
- package/dist/enums/payout/payout-status.js +2 -0
- package/dist/internal/api/client.d.ts +2 -0
- package/dist/internal/api/client.js +14 -0
- package/dist/notifications/events/address/address-created-event.d.ts +9 -0
- package/dist/notifications/events/address/address-created-event.js +14 -0
- package/dist/notifications/events/address/address-updated-event.d.ts +9 -0
- package/dist/notifications/events/address/address-updated-event.js +14 -0
- package/dist/notifications/events/address/index.d.ts +2 -0
- package/dist/notifications/events/address/index.js +18 -0
- package/dist/notifications/events/adjustment/adjustment-created-event.d.ts +9 -0
- package/dist/notifications/events/adjustment/adjustment-created-event.js +14 -0
- package/dist/notifications/events/adjustment/adjustment-updated-event.d.ts +9 -0
- package/dist/notifications/events/adjustment/adjustment-updated-event.js +14 -0
- package/dist/notifications/events/adjustment/index.d.ts +2 -0
- package/dist/notifications/events/adjustment/index.js +18 -0
- package/dist/notifications/events/business/business-created-event.d.ts +9 -0
- package/dist/notifications/events/business/business-created-event.js +14 -0
- package/dist/notifications/events/business/business-updated-event.d.ts +9 -0
- package/dist/notifications/events/business/business-updated-event.js +14 -0
- package/dist/notifications/events/business/index.d.ts +2 -0
- package/dist/notifications/events/business/index.js +18 -0
- package/dist/notifications/events/customer/customer-created-event.d.ts +9 -0
- package/dist/notifications/events/customer/customer-created-event.js +14 -0
- package/dist/notifications/events/customer/customer-updated-event.d.ts +9 -0
- package/dist/notifications/events/customer/customer-updated-event.js +14 -0
- package/dist/notifications/events/customer/index.d.ts +2 -0
- package/dist/notifications/events/customer/index.js +18 -0
- package/dist/notifications/events/discount/discount-created-event.d.ts +9 -0
- package/dist/notifications/events/discount/discount-created-event.js +14 -0
- package/dist/notifications/events/discount/discount-imported-event.d.ts +9 -0
- package/dist/notifications/events/discount/discount-imported-event.js +14 -0
- package/dist/notifications/events/discount/discount-updated-event.d.ts +9 -0
- package/dist/notifications/events/discount/discount-updated-event.js +14 -0
- package/dist/notifications/events/discount/index.d.ts +3 -0
- package/dist/notifications/events/discount/index.js +19 -0
- package/dist/notifications/events/index.d.ts +10 -0
- package/dist/notifications/events/index.js +26 -0
- package/dist/notifications/events/payout/index.d.ts +2 -0
- package/dist/notifications/events/payout/index.js +18 -0
- package/dist/notifications/events/payout/payout-created-event.d.ts +9 -0
- package/dist/notifications/events/payout/payout-created-event.js +14 -0
- package/dist/notifications/events/payout/payout-paid-event.d.ts +9 -0
- package/dist/notifications/events/payout/payout-paid-event.js +14 -0
- package/dist/notifications/events/price/index.d.ts +2 -0
- package/dist/notifications/events/price/index.js +18 -0
- package/dist/notifications/events/price/price-created-event.d.ts +9 -0
- package/dist/notifications/events/price/price-created-event.js +14 -0
- package/dist/notifications/events/price/price-updated-event.d.ts +9 -0
- package/dist/notifications/events/price/price-updated-event.js +14 -0
- package/dist/notifications/events/product/index.d.ts +2 -0
- package/dist/notifications/events/product/index.js +18 -0
- package/dist/notifications/events/product/product-created-event.d.ts +9 -0
- package/dist/notifications/events/product/product-created-event.js +14 -0
- package/dist/notifications/events/product/product-updated-event.d.ts +9 -0
- package/dist/notifications/events/product/product-updated-event.js +14 -0
- package/dist/notifications/events/subscription/index.d.ts +9 -0
- package/dist/notifications/events/subscription/index.js +25 -0
- package/dist/notifications/events/subscription/subscription-activated-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-activated-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-canceled-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-canceled-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-created-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-created-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-imported-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-imported-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-past-due-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-past-due-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-paused-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-paused-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-resumed-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-resumed-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-trialing-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-trialing-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-updated-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-updated-event.js +14 -0
- package/dist/notifications/events/transaction/index.d.ts +9 -0
- package/dist/notifications/events/transaction/index.js +25 -0
- package/dist/notifications/events/transaction/transaction-billed-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-billed-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-canceled-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-canceled-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-completed-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-completed-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-created-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-created-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-paid-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-paid-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-past-due-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-past-due-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-payment-failed-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-payment-failed-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-ready-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-ready-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-updated-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-updated-event.js +14 -0
- package/dist/notifications/helpers/index.d.ts +3 -0
- package/dist/notifications/helpers/index.js +19 -0
- package/dist/notifications/helpers/types.d.ts +40 -0
- package/dist/notifications/helpers/types.js +41 -0
- package/dist/notifications/{validator/notifications-validator.d.ts → helpers/webhooks-validator.d.ts} +1 -1
- package/dist/notifications/{validator/notifications-validator.js → helpers/webhooks-validator.js} +6 -6
- package/dist/notifications/helpers/webhooks.d.ts +7 -0
- package/dist/notifications/helpers/webhooks.js +100 -0
- package/dist/notifications/index.d.ts +2 -1
- package/dist/notifications/index.js +2 -1
- package/dist/paddle.d.ts +9 -2
- package/dist/paddle.js +8 -1
- package/dist/resources/event-types/index.d.ts +5 -0
- package/dist/resources/event-types/index.js +27 -0
- package/dist/resources/events/index.d.ts +7 -0
- package/dist/resources/events/index.js +30 -0
- package/dist/resources/events/operations/index.d.ts +1 -0
- package/dist/resources/events/operations/index.js +17 -0
- package/dist/resources/events/operations/list-events-query-parameters.d.ts +5 -0
- package/dist/resources/events/operations/list-events-query-parameters.js +2 -0
- package/dist/resources/index.d.ts +3 -0
- package/dist/resources/index.js +3 -0
- package/dist/resources/notification-settings/index.d.ts +11 -0
- package/dist/resources/notification-settings/index.js +84 -0
- package/dist/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +10 -0
- package/dist/resources/notification-settings/operations/create-notification-settings-request-body.js +2 -0
- package/dist/resources/notification-settings/operations/index.d.ts +2 -0
- package/dist/resources/notification-settings/operations/index.js +18 -0
- package/dist/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +9 -0
- package/dist/resources/notification-settings/operations/update-notification-settings-request-body.js +2 -0
- package/dist/resources/notifications/index.d.ts +10 -0
- package/dist/resources/notifications/index.js +69 -0
- package/dist/resources/notifications/operations/index.d.ts +2 -0
- package/dist/resources/notifications/operations/index.js +18 -0
- package/dist/resources/notifications/operations/list-notification-log-query-parameters.d.ts +4 -0
- package/dist/resources/notifications/operations/list-notification-log-query-parameters.js +2 -0
- package/dist/resources/notifications/operations/list-notification-query-parameters.d.ts +12 -0
- package/dist/resources/notifications/operations/list-notification-query-parameters.js +2 -0
- package/dist/types/event-types/event-type-response.d.ts +7 -0
- package/dist/types/event-types/event-type-response.js +2 -0
- package/dist/types/event-types/index.d.ts +1 -0
- package/dist/types/event-types/index.js +17 -0
- package/dist/types/events/events-response.d.ts +125 -0
- package/dist/types/events/events-response.js +2 -0
- package/dist/types/events/index.d.ts +1 -0
- package/dist/types/events/index.js +17 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +5 -0
- package/dist/types/notification-settings/index.d.ts +1 -0
- package/dist/types/notification-settings/index.js +17 -0
- package/dist/types/notification-settings/notification-settings-response.d.ts +13 -0
- package/dist/types/notification-settings/notification-settings-response.js +2 -0
- package/dist/types/notifications/index.d.ts +3 -0
- package/dist/types/notifications/index.js +19 -0
- package/dist/types/notifications/notification-log.d.ts +7 -0
- package/dist/types/notifications/notification-log.js +2 -0
- package/dist/types/notifications/notification.d.ts +17 -0
- package/dist/types/notifications/notification.js +2 -0
- package/dist/types/notifications/replay-notification.d.ts +3 -0
- package/dist/types/notifications/replay-notification.js +2 -0
- package/dist/types/payout/index.d.ts +1 -0
- package/dist/types/payout/index.js +17 -0
- package/dist/types/payout/payout-response.d.ts +7 -0
- package/dist/types/payout/payout-response.js +2 -0
- package/dist/types/subscription/index.d.ts +1 -0
- package/dist/types/subscription/index.js +1 -0
- package/dist/types/subscription/subscription-notification-response.d.ts +28 -0
- package/dist/types/subscription/subscription-notification-response.js +2 -0
- package/dist/types/subscription/subscription-scheduled-change-response.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -27,3 +27,4 @@ __exportStar(require("./subscription-response"), exports);
|
|
|
27
27
|
__exportStar(require("./subscription-preview-response"), exports);
|
|
28
28
|
__exportStar(require("./subscription-preview-update-summary"), exports);
|
|
29
29
|
__exportStar(require("./subscription-result-response"), exports);
|
|
30
|
+
__exportStar(require("./subscription-notification-response"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type IBillingDetailsResponse, type ICustomData, type INextTransactionResponse, type ISubscriptionDiscountResponse, type ISubscriptionItemResponse, type ISubscriptionScheduledChangeResponse, type ISubscriptionTimePeriodResponse, type ITimePeriod, type ITransactionDetailsPreviewResponse } from '../index';
|
|
2
|
+
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../enums';
|
|
3
|
+
export interface ISubscriptionNotificationResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
status: SubscriptionStatus;
|
|
6
|
+
transaction_id: string;
|
|
7
|
+
customer_id: string;
|
|
8
|
+
address_id: string;
|
|
9
|
+
business_id?: string | null;
|
|
10
|
+
currency_code: CurrencyCode;
|
|
11
|
+
created_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
started_at?: string | null;
|
|
14
|
+
first_billed_at?: string | null;
|
|
15
|
+
next_billed_at?: string | null;
|
|
16
|
+
paused_at?: string | null;
|
|
17
|
+
canceled_at?: string | null;
|
|
18
|
+
discount?: ISubscriptionDiscountResponse | null;
|
|
19
|
+
collection_mode: CollectionMode;
|
|
20
|
+
billing_details?: IBillingDetailsResponse | null;
|
|
21
|
+
current_billing_period?: ISubscriptionTimePeriodResponse | null;
|
|
22
|
+
billing_cycle: ITimePeriod;
|
|
23
|
+
scheduled_change?: ISubscriptionScheduledChangeResponse | null;
|
|
24
|
+
items: ISubscriptionItemResponse[];
|
|
25
|
+
custom_data?: ICustomData | null;
|
|
26
|
+
next_transaction?: INextTransactionResponse | null;
|
|
27
|
+
recurring_transaction_details?: ITransactionDetailsPreviewResponse | null;
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ScheduledChangeAction } from '../../enums';
|
|
2
2
|
export interface ISubscriptionScheduledChangeResponse {
|
|
3
|
-
action:
|
|
3
|
+
action: ScheduledChangeAction;
|
|
4
4
|
effective_at: string;
|
|
5
5
|
resume_at?: string | null;
|
|
6
6
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.2.
|
|
1
|
+
export declare const SDK_VERSION = "0.2.3";
|
package/dist/version.js
CHANGED