@paddle/paddle-node-sdk 2.0.0-rc.0 → 2.0.0-rc.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.
- package/CHANGELOG.md +27 -7
- package/dist/cjs/entities/customer/auth-token.js +10 -0
- package/dist/cjs/entities/customer/index.js +1 -0
- package/dist/cjs/entities/index.js +5 -0
- package/dist/cjs/entities/notification-settings/notification-settings.js +1 -0
- package/dist/cjs/entities/payment-method/index.js +18 -0
- package/dist/cjs/entities/payment-method/payment-method-collection.js +11 -0
- package/dist/cjs/entities/payment-method/payment-method.js +18 -0
- package/dist/cjs/entities/shared/index.js +3 -0
- package/dist/cjs/entities/shared/paypal.js +10 -0
- package/dist/cjs/entities/shared/simulation-event-request.js +9 -0
- package/dist/cjs/entities/shared/simulation-event-response.js +10 -0
- package/dist/cjs/entities/simulation/index.js +18 -0
- package/dist/cjs/entities/simulation/simulation-collection.js +11 -0
- package/dist/cjs/entities/simulation/simulation.js +18 -0
- package/dist/cjs/entities/simulation-run/index.js +18 -0
- package/dist/cjs/entities/simulation-run/simulation-run-collection.js +11 -0
- package/dist/cjs/entities/simulation-run/simulation-run.js +16 -0
- package/dist/cjs/entities/simulation-run-event/index.js +18 -0
- package/dist/cjs/entities/simulation-run-event/simulation-run-event-collection.js +11 -0
- package/dist/cjs/entities/simulation-run-event/simulation-run-event.js +21 -0
- package/dist/cjs/entities/simulation-types/index.js +17 -0
- package/dist/cjs/entities/simulation-types/simulation-type.js +14 -0
- package/dist/cjs/enums/index.js +5 -0
- package/dist/cjs/enums/notification-settings/index.js +1 -0
- package/dist/cjs/enums/notification-settings/traffic-source.js +2 -0
- package/dist/cjs/enums/payment-method/deletion-reason.js +2 -0
- package/dist/cjs/enums/payment-method/index.js +19 -0
- package/dist/cjs/enums/payment-method/origin.js +2 -0
- package/dist/cjs/enums/payment-method/type.js +2 -0
- package/dist/cjs/enums/simulation/index.js +17 -0
- package/dist/cjs/enums/simulation/simulation-scenario-type.js +2 -0
- package/dist/cjs/enums/simulation-run/index.js +17 -0
- package/dist/cjs/enums/simulation-run/simulation-run-status.js +2 -0
- package/dist/cjs/enums/simulation-run-event/index.js +17 -0
- package/dist/cjs/enums/simulation-run-event/simulation-run-event-status.js +2 -0
- package/dist/cjs/enums/simulation-type/index.js +17 -0
- package/dist/cjs/enums/simulation-type/simulation-kind.js +2 -0
- package/dist/cjs/notifications/entities/index.js +1 -0
- package/dist/cjs/notifications/entities/payment-method/index.js +18 -0
- package/dist/cjs/notifications/entities/payment-method/payment-method-deleted-notification.js +16 -0
- package/dist/cjs/notifications/entities/payment-method/payment-method-notification.js +15 -0
- package/dist/cjs/notifications/entities/subscription/index.js +1 -0
- package/dist/cjs/notifications/entities/subscription/subscription-created-notification.js +42 -0
- package/dist/cjs/notifications/entities/subscription/subscription-notification.js +0 -1
- package/dist/cjs/notifications/events/index.js +1 -0
- package/dist/cjs/notifications/events/payment-method/index.js +18 -0
- package/dist/cjs/notifications/events/payment-method/payment-method-deleted-event.js +14 -0
- package/dist/cjs/notifications/events/payment-method/payment-method-saved-event.js +14 -0
- package/dist/cjs/notifications/events/subscription/subscription-created-event.js +1 -1
- package/dist/cjs/notifications/helpers/types.js +2 -0
- package/dist/cjs/notifications/helpers/webhooks.js +4 -0
- package/dist/cjs/notifications/types/index.js +1 -0
- package/dist/cjs/notifications/types/payment-method/index.js +18 -0
- package/dist/cjs/notifications/types/payment-method/payment-method-deleted-notification-response.js +2 -0
- package/dist/cjs/notifications/types/payment-method/payment-method-notification-response.js +2 -0
- package/dist/cjs/notifications/types/subscription/index.js +1 -0
- package/dist/cjs/notifications/types/subscription/subscription-created-notification-response.js +2 -0
- package/dist/cjs/paddle.js +5 -0
- package/dist/cjs/resources/customers/index.js +11 -0
- package/dist/cjs/resources/index.js +5 -0
- package/dist/cjs/resources/payment-methods/index.js +67 -0
- package/dist/cjs/resources/payment-methods/operations/index.js +17 -0
- package/dist/cjs/resources/payment-methods/operations/list-customer-payment-method-query-parameters.js +2 -0
- package/dist/cjs/resources/simulation-run-events/index.js +69 -0
- package/dist/cjs/resources/simulation-run-events/operations/index.js +17 -0
- package/dist/cjs/resources/simulation-run-events/operations/list-simulation-run-events-query-parameters.js +2 -0
- package/dist/cjs/resources/simulation-runs/index.js +66 -0
- package/dist/cjs/resources/simulation-runs/operations/get-simulation-run-query-parameters.js +2 -0
- package/dist/cjs/resources/simulation-runs/operations/index.js +18 -0
- package/dist/cjs/resources/simulation-runs/operations/list-simulation-run-query-parameters.js +2 -0
- package/dist/cjs/resources/simulation-types/index.js +27 -0
- package/dist/cjs/resources/simulations/index.js +69 -0
- package/dist/cjs/resources/simulations/operations/create-simulation-request-body.js +2 -0
- package/dist/cjs/resources/simulations/operations/index.js +19 -0
- package/dist/cjs/resources/simulations/operations/list-simulation-query-parameters.js +2 -0
- package/dist/cjs/resources/simulations/operations/update-simulation-request-body.js +2 -0
- package/dist/cjs/types/customer/auth-token-response.js +2 -0
- package/dist/cjs/types/customer/index.js +1 -0
- package/dist/cjs/types/index.js +5 -0
- package/dist/cjs/types/payment-method/index.js +17 -0
- package/dist/cjs/types/payment-method/payment-method.js +2 -0
- package/dist/cjs/types/shared/index.js +4 -0
- package/dist/cjs/types/shared/paypal.js +2 -0
- package/dist/cjs/types/shared/simulation-event-request.js +2 -0
- package/dist/cjs/types/shared/simulation-event-response.js +2 -0
- package/dist/cjs/types/shared/simulation-payload.js +2 -0
- package/dist/cjs/types/simulation/index.js +17 -0
- package/dist/cjs/types/simulation/simulation-response.js +2 -0
- package/dist/cjs/types/simulation-run/index.js +17 -0
- package/dist/cjs/types/simulation-run/simulation-run-event.js +2 -0
- package/dist/cjs/types/simulation-run/simulation-run-response.js +2 -0
- package/dist/cjs/types/simulation-run-event/index.js +17 -0
- package/dist/cjs/types/simulation-run-event/simulation-run-event-response.js +2 -0
- package/dist/cjs/types/simulation-type/index.js +17 -0
- package/dist/cjs/types/simulation-type/simulation-type.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/customer/auth-token.js +6 -0
- package/dist/esm/entities/customer/index.js +1 -0
- package/dist/esm/entities/index.js +5 -0
- package/dist/esm/entities/notification-settings/notification-settings.js +1 -0
- package/dist/esm/entities/payment-method/index.js +2 -0
- package/dist/esm/entities/payment-method/payment-method-collection.js +7 -0
- package/dist/esm/entities/payment-method/payment-method.js +14 -0
- package/dist/esm/entities/shared/index.js +3 -0
- package/dist/esm/entities/shared/paypal.js +6 -0
- package/dist/esm/entities/shared/simulation-event-request.js +5 -0
- package/dist/esm/entities/shared/simulation-event-response.js +6 -0
- package/dist/esm/entities/simulation/index.js +2 -0
- package/dist/esm/entities/simulation/simulation-collection.js +7 -0
- package/dist/esm/entities/simulation/simulation.js +14 -0
- package/dist/esm/entities/simulation-run/index.js +2 -0
- package/dist/esm/entities/simulation-run/simulation-run-collection.js +7 -0
- package/dist/esm/entities/simulation-run/simulation-run.js +12 -0
- package/dist/esm/entities/simulation-run-event/index.js +2 -0
- package/dist/esm/entities/simulation-run-event/simulation-run-event-collection.js +7 -0
- package/dist/esm/entities/simulation-run-event/simulation-run-event.js +17 -0
- package/dist/esm/entities/simulation-types/index.js +1 -0
- package/dist/esm/entities/simulation-types/simulation-type.js +10 -0
- package/dist/esm/enums/index.js +5 -0
- package/dist/esm/enums/notification-settings/index.js +1 -0
- package/dist/esm/enums/notification-settings/traffic-source.js +1 -0
- package/dist/esm/enums/payment-method/deletion-reason.js +1 -0
- package/dist/esm/enums/payment-method/index.js +3 -0
- package/dist/esm/enums/payment-method/origin.js +1 -0
- package/dist/esm/enums/payment-method/type.js +1 -0
- package/dist/esm/enums/simulation/index.js +1 -0
- package/dist/esm/enums/simulation/simulation-scenario-type.js +1 -0
- package/dist/esm/enums/simulation-run/index.js +1 -0
- package/dist/esm/enums/simulation-run/simulation-run-status.js +1 -0
- package/dist/esm/enums/simulation-run-event/index.js +1 -0
- package/dist/esm/enums/simulation-run-event/simulation-run-event-status.js +1 -0
- package/dist/esm/enums/simulation-type/index.js +1 -0
- package/dist/esm/enums/simulation-type/simulation-kind.js +1 -0
- package/dist/esm/notifications/entities/index.js +1 -0
- package/dist/esm/notifications/entities/payment-method/index.js +2 -0
- package/dist/esm/notifications/entities/payment-method/payment-method-deleted-notification.js +12 -0
- package/dist/esm/notifications/entities/payment-method/payment-method-notification.js +11 -0
- package/dist/esm/notifications/entities/subscription/index.js +1 -0
- package/dist/esm/notifications/entities/subscription/subscription-created-notification.js +38 -0
- package/dist/esm/notifications/entities/subscription/subscription-notification.js +0 -1
- package/dist/esm/notifications/events/index.js +1 -0
- package/dist/esm/notifications/events/payment-method/index.js +2 -0
- package/dist/esm/notifications/events/payment-method/payment-method-deleted-event.js +10 -0
- package/dist/esm/notifications/events/payment-method/payment-method-saved-event.js +10 -0
- package/dist/esm/notifications/events/subscription/subscription-created-event.js +2 -2
- package/dist/esm/notifications/helpers/types.js +2 -0
- package/dist/esm/notifications/helpers/webhooks.js +5 -1
- package/dist/esm/notifications/types/index.js +1 -0
- package/dist/esm/notifications/types/payment-method/index.js +2 -0
- package/dist/esm/notifications/types/payment-method/payment-method-deleted-notification-response.js +1 -0
- package/dist/esm/notifications/types/payment-method/payment-method-notification-response.js +1 -0
- package/dist/esm/notifications/types/subscription/index.js +1 -0
- package/dist/esm/notifications/types/subscription/subscription-created-notification-response.js +1 -0
- package/dist/esm/paddle.js +6 -1
- package/dist/esm/resources/customers/index.js +12 -1
- package/dist/esm/resources/index.js +5 -0
- package/dist/esm/resources/payment-methods/index.js +49 -0
- package/dist/esm/resources/payment-methods/operations/index.js +1 -0
- package/dist/esm/resources/payment-methods/operations/list-customer-payment-method-query-parameters.js +1 -0
- package/dist/esm/resources/simulation-run-events/index.js +51 -0
- package/dist/esm/resources/simulation-run-events/operations/index.js +1 -0
- package/dist/esm/resources/simulation-run-events/operations/list-simulation-run-events-query-parameters.js +1 -0
- package/dist/esm/resources/simulation-runs/index.js +48 -0
- package/dist/esm/resources/simulation-runs/operations/get-simulation-run-query-parameters.js +1 -0
- package/dist/esm/resources/simulation-runs/operations/index.js +2 -0
- package/dist/esm/resources/simulation-runs/operations/list-simulation-run-query-parameters.js +1 -0
- package/dist/esm/resources/simulation-types/index.js +23 -0
- package/dist/esm/resources/simulations/index.js +51 -0
- package/dist/esm/resources/simulations/operations/create-simulation-request-body.js +1 -0
- package/dist/esm/resources/simulations/operations/index.js +3 -0
- package/dist/esm/resources/simulations/operations/list-simulation-query-parameters.js +1 -0
- package/dist/esm/resources/simulations/operations/update-simulation-request-body.js +1 -0
- package/dist/esm/types/customer/auth-token-response.js +1 -0
- package/dist/esm/types/customer/index.js +1 -0
- package/dist/esm/types/index.js +5 -0
- package/dist/esm/types/payment-method/index.js +1 -0
- package/dist/esm/types/payment-method/payment-method.js +1 -0
- package/dist/esm/types/shared/index.js +4 -0
- package/dist/esm/types/shared/paypal.js +1 -0
- package/dist/esm/types/shared/simulation-event-request.js +1 -0
- package/dist/esm/types/shared/simulation-event-response.js +1 -0
- package/dist/esm/types/shared/simulation-payload.js +1 -0
- package/dist/esm/types/simulation/index.js +1 -0
- package/dist/esm/types/simulation/simulation-response.js +1 -0
- package/dist/esm/types/simulation-run/index.js +1 -0
- package/dist/esm/types/simulation-run/simulation-run-event.js +1 -0
- package/dist/esm/types/simulation-run/simulation-run-response.js +1 -0
- package/dist/esm/types/simulation-run-event/index.js +1 -0
- package/dist/esm/types/simulation-run-event/simulation-run-event-response.js +1 -0
- package/dist/esm/types/simulation-type/index.js +1 -0
- package/dist/esm/types/simulation-type/simulation-type.js +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/entities/customer/auth-token.d.ts +6 -0
- package/dist/types/entities/customer/index.d.ts +1 -0
- package/dist/types/entities/index.d.ts +5 -0
- package/dist/types/entities/notification-settings/notification-settings.d.ts +2 -1
- package/dist/types/entities/payment-method/index.d.ts +2 -0
- package/dist/types/entities/payment-method/payment-method-collection.d.ts +6 -0
- package/dist/types/entities/payment-method/payment-method.d.ts +15 -0
- package/dist/types/entities/shared/index.d.ts +3 -0
- package/dist/types/entities/shared/paypal.d.ts +6 -0
- package/dist/types/entities/shared/simulation-event-request.d.ts +5 -0
- package/dist/types/entities/shared/simulation-event-response.d.ts +6 -0
- package/dist/types/entities/simulation/index.d.ts +2 -0
- package/dist/types/entities/simulation/simulation-collection.d.ts +6 -0
- package/dist/types/entities/simulation/simulation.d.ts +15 -0
- package/dist/types/entities/simulation-run/index.d.ts +2 -0
- package/dist/types/entities/simulation-run/simulation-run-collection.d.ts +6 -0
- package/dist/types/entities/simulation-run/simulation-run.d.ts +13 -0
- package/dist/types/entities/simulation-run-event/index.d.ts +2 -0
- package/dist/types/entities/simulation-run-event/simulation-run-event-collection.d.ts +6 -0
- package/dist/types/entities/simulation-run-event/simulation-run-event.d.ts +15 -0
- package/dist/types/entities/simulation-types/index.d.ts +1 -0
- package/dist/types/entities/simulation-types/simulation-type.d.ts +12 -0
- package/dist/types/enums/index.d.ts +5 -0
- package/dist/types/enums/notification-settings/index.d.ts +1 -0
- package/dist/types/enums/notification-settings/traffic-source.d.ts +1 -0
- package/dist/types/enums/payment-method/deletion-reason.d.ts +1 -0
- package/dist/types/enums/payment-method/index.d.ts +3 -0
- package/dist/types/enums/payment-method/origin.d.ts +1 -0
- package/dist/types/enums/payment-method/type.d.ts +1 -0
- package/dist/types/enums/simulation/index.d.ts +1 -0
- package/dist/types/enums/simulation/simulation-scenario-type.d.ts +1 -0
- package/dist/types/enums/simulation-run/index.d.ts +1 -0
- package/dist/types/enums/simulation-run/simulation-run-status.d.ts +1 -0
- package/dist/types/enums/simulation-run-event/index.d.ts +1 -0
- package/dist/types/enums/simulation-run-event/simulation-run-event-status.d.ts +1 -0
- package/dist/types/enums/simulation-type/index.d.ts +1 -0
- package/dist/types/enums/simulation-type/simulation-kind.d.ts +1 -0
- package/dist/types/notifications/entities/index.d.ts +1 -0
- package/dist/types/notifications/entities/payment-method/index.d.ts +2 -0
- package/dist/types/notifications/entities/payment-method/payment-method-deleted-notification.d.ts +13 -0
- package/dist/types/notifications/entities/payment-method/payment-method-notification.d.ts +12 -0
- package/dist/types/notifications/entities/subscription/index.d.ts +1 -0
- package/dist/types/notifications/entities/subscription/subscription-created-notification.d.ts +34 -0
- package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +0 -1
- package/dist/types/notifications/events/index.d.ts +1 -0
- package/dist/types/notifications/events/payment-method/index.d.ts +2 -0
- package/dist/types/notifications/events/payment-method/payment-method-deleted-event.d.ts +10 -0
- package/dist/types/notifications/events/payment-method/payment-method-saved-event.d.ts +10 -0
- package/dist/types/notifications/events/subscription/subscription-activated-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-canceled-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-created-event.d.ts +4 -4
- package/dist/types/notifications/events/subscription/subscription-imported-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-past-due-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-paused-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-resumed-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-trialing-event.d.ts +1 -1
- package/dist/types/notifications/events/subscription/subscription-updated-event.d.ts +1 -1
- package/dist/types/notifications/helpers/types.d.ts +5 -3
- package/dist/types/notifications/types/index.d.ts +1 -0
- package/dist/types/notifications/types/payment-method/index.d.ts +2 -0
- package/dist/types/notifications/types/payment-method/payment-method-deleted-notification-response.d.ts +11 -0
- package/dist/types/notifications/types/payment-method/payment-method-notification-response.d.ts +10 -0
- package/dist/types/notifications/types/subscription/index.d.ts +1 -0
- package/dist/types/notifications/types/subscription/subscription-created-notification-response.d.ts +28 -0
- package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +0 -1
- package/dist/types/paddle.d.ts +6 -1
- package/dist/types/resources/customers/index.d.ts +2 -1
- package/dist/types/resources/index.d.ts +5 -0
- package/dist/types/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +2 -1
- package/dist/types/resources/notification-settings/operations/list-notification-settings-query-parameters.d.ts +2 -0
- package/dist/types/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +2 -0
- package/dist/types/resources/payment-methods/index.d.ts +9 -0
- package/dist/types/resources/payment-methods/operations/index.d.ts +1 -0
- package/dist/types/resources/payment-methods/operations/list-customer-payment-method-query-parameters.d.ts +7 -0
- package/dist/types/resources/simulation-run-events/index.d.ts +9 -0
- package/dist/types/resources/simulation-run-events/operations/index.d.ts +1 -0
- package/dist/types/resources/simulation-run-events/operations/list-simulation-run-events-query-parameters.d.ts +6 -0
- package/dist/types/resources/simulation-runs/index.d.ts +9 -0
- package/dist/types/resources/simulation-runs/operations/get-simulation-run-query-parameters.d.ts +3 -0
- package/dist/types/resources/simulation-runs/operations/index.d.ts +2 -0
- package/dist/types/resources/simulation-runs/operations/list-simulation-run-query-parameters.d.ts +7 -0
- package/dist/types/resources/simulation-types/index.d.ts +5 -0
- package/dist/types/resources/simulations/index.d.ts +10 -0
- package/dist/types/resources/simulations/operations/create-simulation-request-body.d.ts +10 -0
- package/dist/types/resources/simulations/operations/index.d.ts +3 -0
- package/dist/types/resources/simulations/operations/list-simulation-query-parameters.d.ts +9 -0
- package/dist/types/resources/simulations/operations/update-simulation-request-body.d.ts +12 -0
- package/dist/types/types/customer/auth-token-response.d.ts +4 -0
- package/dist/types/types/customer/index.d.ts +1 -0
- package/dist/types/types/events/events-response.d.ts +9 -3
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/types/notification-settings/notification-settings-response.d.ts +2 -1
- package/dist/types/types/payment-method/index.d.ts +1 -0
- package/dist/types/types/payment-method/payment-method.d.ts +13 -0
- package/dist/types/types/shared/index.d.ts +4 -0
- package/dist/types/types/shared/paypal.d.ts +4 -0
- package/dist/types/types/shared/simulation-event-request.d.ts +3 -0
- package/dist/types/types/shared/simulation-event-response.d.ts +4 -0
- package/dist/types/types/shared/simulation-payload.d.ts +58 -0
- package/dist/types/types/simulation/index.d.ts +1 -0
- package/dist/types/types/simulation/simulation-response.d.ts +13 -0
- package/dist/types/types/simulation-run/index.d.ts +1 -0
- package/dist/types/types/simulation-run/simulation-run-event.d.ts +17 -0
- package/dist/types/types/simulation-run/simulation-run-response.d.ts +11 -0
- package/dist/types/types/simulation-run-event/index.d.ts +1 -0
- package/dist/types/types/simulation-run-event/simulation-run-event-response.d.ts +13 -0
- package/dist/types/types/simulation-type/index.d.ts +1 -0
- package/dist/types/types/simulation-type/simulation-type.d.ts +10 -0
- package/dist/types/types/subscription/subscription-update-item.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/paddle.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PaddleOptions } from './internal/index.js';
|
|
2
|
-
import { AddressesResource, AdjustmentsResource, BusinessesResource, CustomersResource, DiscountsResource, EventTypesResource, NotificationSettingsResource, NotificationsResource, PricesResource, PricingPreviewResource, ProductsResource, ReportsResource, SubscriptionsResource, TransactionsResource } from './resources/index.js';
|
|
2
|
+
import { AddressesResource, AdjustmentsResource, BusinessesResource, CustomersResource, DiscountsResource, EventTypesResource, NotificationSettingsResource, NotificationsResource, PaymentMethodsResource, PricesResource, PricingPreviewResource, ProductsResource, ReportsResource, SimulationTypesResource, SimulationsResource, SimulationRunsResource, SimulationRunEventsResource, SubscriptionsResource, TransactionsResource } from './resources/index.js';
|
|
3
3
|
import { EventsResource } from './resources/events/index.js';
|
|
4
4
|
import { Webhooks } from './notifications/index.js';
|
|
5
5
|
export declare class Paddle {
|
|
@@ -14,6 +14,7 @@ export declare class Paddle {
|
|
|
14
14
|
businesses: BusinessesResource;
|
|
15
15
|
discounts: DiscountsResource;
|
|
16
16
|
subscriptions: SubscriptionsResource;
|
|
17
|
+
paymentMethods: PaymentMethodsResource;
|
|
17
18
|
pricingPreview: PricingPreviewResource;
|
|
18
19
|
events: EventsResource;
|
|
19
20
|
webhooks: Webhooks;
|
|
@@ -21,5 +22,9 @@ export declare class Paddle {
|
|
|
21
22
|
notificationSettings: NotificationSettingsResource;
|
|
22
23
|
notifications: NotificationsResource;
|
|
23
24
|
reports: ReportsResource;
|
|
25
|
+
simulationTypes: SimulationTypesResource;
|
|
26
|
+
simulations: SimulationsResource;
|
|
27
|
+
simulationRuns: SimulationRunsResource;
|
|
28
|
+
simulationRunEvents: SimulationRunEventsResource;
|
|
24
29
|
constructor(apiKey: string, options?: PaddleOptions);
|
|
25
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseResource } from '../../internal/base/index.js';
|
|
2
2
|
import { type CreateCustomerRequestBody, type GetCreditBalanceQueryParameters, type ListCustomerQueryParameters, type UpdateCustomerRequestBody } from './operations/index.js';
|
|
3
|
-
import { CreditBalance, Customer, CustomerCollection } from '../../entities/index.js';
|
|
3
|
+
import { CreditBalance, Customer, CustomerCollection, AuthToken } from '../../entities/index.js';
|
|
4
4
|
export * from './operations/index.js';
|
|
5
5
|
export declare class CustomersResource extends BaseResource {
|
|
6
6
|
list(queryParams?: ListCustomerQueryParameters): CustomerCollection;
|
|
@@ -9,4 +9,5 @@ export declare class CustomersResource extends BaseResource {
|
|
|
9
9
|
update(customerId: string, updateCustomer: UpdateCustomerRequestBody): Promise<Customer>;
|
|
10
10
|
getCreditBalance(customerId: string, queryParams?: GetCreditBalanceQueryParameters): Promise<CreditBalance[]>;
|
|
11
11
|
archive(customerId: string): Promise<Customer>;
|
|
12
|
+
generateAuthToken(customerId: string): Promise<AuthToken>;
|
|
12
13
|
}
|
|
@@ -7,8 +7,13 @@ export * from './prices/index.js';
|
|
|
7
7
|
export * from './products/index.js';
|
|
8
8
|
export * from './subscriptions/index.js';
|
|
9
9
|
export * from './transactions/index.js';
|
|
10
|
+
export * from './payment-methods/index.js';
|
|
10
11
|
export * from './pricing-preview/index.js';
|
|
11
12
|
export * from './event-types/index.js';
|
|
12
13
|
export * from './notification-settings/index.js';
|
|
13
14
|
export * from './notifications/index.js';
|
|
14
15
|
export * from './reports/index.js';
|
|
16
|
+
export * from './simulation-types/index.js';
|
|
17
|
+
export * from './simulations/index.js';
|
|
18
|
+
export * from './simulation-runs/index.js';
|
|
19
|
+
export * from './simulation-run-events/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IEventName } from '../../../notifications/index.js';
|
|
2
|
-
import { type NotificationSettingsType } from '../../../enums/index.js';
|
|
2
|
+
import { type TrafficSource, type NotificationSettingsType } from '../../../enums/index.js';
|
|
3
3
|
export interface CreateNotificationSettingsRequestBody {
|
|
4
4
|
description: string;
|
|
5
5
|
destination: string;
|
|
@@ -7,4 +7,5 @@ export interface CreateNotificationSettingsRequestBody {
|
|
|
7
7
|
type: NotificationSettingsType;
|
|
8
8
|
apiVersion?: number | null;
|
|
9
9
|
includeSensitiveFields?: boolean | null;
|
|
10
|
+
trafficSource?: TrafficSource | null;
|
|
10
11
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TrafficSource } from '../../../enums/index.js';
|
|
1
2
|
import { type IEventName } from '../../../notifications/index.js';
|
|
2
3
|
export interface UpdateNotificationSettingsRequestBody {
|
|
3
4
|
description?: string;
|
|
@@ -6,4 +7,5 @@ export interface UpdateNotificationSettingsRequestBody {
|
|
|
6
7
|
apiVersion?: number;
|
|
7
8
|
includeSensitiveFields?: boolean;
|
|
8
9
|
subscribedEvents?: IEventName[];
|
|
10
|
+
trafficSource?: TrafficSource;
|
|
9
11
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PaymentMethod, PaymentMethodCollection } from '../../entities/index.js';
|
|
2
|
+
import { BaseResource } from '../../internal/base/index.js';
|
|
3
|
+
import { type ListCustomerPaymentMethodQueryParameters } from './operations/index.js';
|
|
4
|
+
export * from './operations';
|
|
5
|
+
export declare class PaymentMethodsResource extends BaseResource {
|
|
6
|
+
list(customerId: string, queryParams?: ListCustomerPaymentMethodQueryParameters): PaymentMethodCollection;
|
|
7
|
+
get(customerId: string, paymentMethodId: string): Promise<PaymentMethod>;
|
|
8
|
+
delete(customerId: string, paymentMethodId: string): Promise<undefined>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-customer-payment-method-query-parameters.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SimulationRunEvent, SimulationRunEventCollection } from '../../entities/index.js';
|
|
2
|
+
import { BaseResource } from '../../internal/base/index.js';
|
|
3
|
+
import type { ListSimulationRunEventsQueryParameters } from './operations/index.js';
|
|
4
|
+
export * from './operations/index.js';
|
|
5
|
+
export declare class SimulationRunEventsResource extends BaseResource {
|
|
6
|
+
list(simulationId: string, simulationRunId: string, queryParams?: ListSimulationRunEventsQueryParameters): SimulationRunEventCollection;
|
|
7
|
+
get(simulationId: string, simulationRunId: string, simulationEventId: string): Promise<SimulationRunEvent>;
|
|
8
|
+
replay(simulationId: string, simulationRunId: string, simulationEventId: string): Promise<SimulationRunEvent>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-simulation-run-events-query-parameters.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SimulationRun, SimulationRunCollection } from '../../entities/index.js';
|
|
2
|
+
import { BaseResource } from '../../internal/base/index.js';
|
|
3
|
+
import { type GetSimulationRunQueryParameters, type ListSimulationRunQueryParameters } from './operations/index.js';
|
|
4
|
+
export * from './operations/index.js';
|
|
5
|
+
export declare class SimulationRunsResource extends BaseResource {
|
|
6
|
+
list(simulationId: string, queryParams?: ListSimulationRunQueryParameters): SimulationRunCollection;
|
|
7
|
+
create(simulationId: string): Promise<SimulationRun>;
|
|
8
|
+
get(simulationId: string, simulationRunId: string, queryParams?: GetSimulationRunQueryParameters): Promise<SimulationRun>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Simulation, SimulationCollection } from '../../entities/index.js';
|
|
2
|
+
import { BaseResource } from '../../internal/base/index.js';
|
|
3
|
+
import { type CreateSimulationRequestBody, type ListSimulationQueryParameters, type UpdateSimulationRequestBody } from './operations/index.js';
|
|
4
|
+
export * from './operations/index.js';
|
|
5
|
+
export declare class SimulationsResource extends BaseResource {
|
|
6
|
+
list(queryParams?: ListSimulationQueryParameters): SimulationCollection;
|
|
7
|
+
create(createSimulationParameters: CreateSimulationRequestBody): Promise<Simulation>;
|
|
8
|
+
get(simulationId: string): Promise<Simulation>;
|
|
9
|
+
update(simulationId: string, updateSimulation: UpdateSimulationRequestBody): Promise<Simulation>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SimulationScenarioType } from '../../../enums/index.js';
|
|
2
|
+
import type { IEventName } from '../../../notifications/index.js';
|
|
3
|
+
import type { DiscriminatedSimulationEventResponse } from '../../../types/index.js';
|
|
4
|
+
interface BaseCreateSimulationRequestBody {
|
|
5
|
+
notificationSettingId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: IEventName | SimulationScenarioType;
|
|
8
|
+
}
|
|
9
|
+
export type CreateSimulationRequestBody = DiscriminatedSimulationEventResponse<BaseCreateSimulationRequestBody>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DiscriminatedSimulationEventResponse } from '../../../types/index.js';
|
|
2
|
+
import type { Status } from '../../../enums/index.js';
|
|
3
|
+
interface BaseUpdateSimulationRequestBody {
|
|
4
|
+
notificationSettingId?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
status?: Status;
|
|
7
|
+
}
|
|
8
|
+
type RawUpdateSimulationRequestBody = DiscriminatedSimulationEventResponse<BaseUpdateSimulationRequestBody>;
|
|
9
|
+
export type UpdateSimulationRequestBody = {
|
|
10
|
+
[Key in keyof RawUpdateSimulationRequestBody]?: RawUpdateSimulationRequestBody[Key];
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IBusinessNotificationResponse, type ICustomerNotificationResponse, type IDiscountNotificationResponse, type IPayoutNotificationResponse, type IPriceNotificationResponse, type IProductNotificationResponse, type IReportNotificationResponse, type ISubscriptionNotificationResponse, type ITransactionNotificationResponse } from '../../notifications/index.js';
|
|
1
|
+
import { type EventName, type IAddressNotificationResponse, type IAdjustmentNotificationResponse, type IBusinessNotificationResponse, type ICustomerNotificationResponse, type IDiscountNotificationResponse, type IPaymentMethodNotificationResponse, type IPaymentMethodDeletedNotificationResponse, 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;
|
|
@@ -48,6 +48,12 @@ interface IDiscountUpdated extends IEventsResponse<IDiscountNotificationResponse
|
|
|
48
48
|
interface IDiscountImported extends IEventsResponse<IDiscountNotificationResponse> {
|
|
49
49
|
event_type: EventName.DiscountImported;
|
|
50
50
|
}
|
|
51
|
+
interface IPaymentMethodDeleted extends IEventsResponse<IPaymentMethodDeletedNotificationResponse> {
|
|
52
|
+
event_type: EventName.PaymentMethodDeleted;
|
|
53
|
+
}
|
|
54
|
+
interface IPaymentMethodSaved extends IEventsResponse<IPaymentMethodNotificationResponse> {
|
|
55
|
+
event_type: EventName.PaymentMethodSaved;
|
|
56
|
+
}
|
|
51
57
|
interface IPayoutCreated extends IEventsResponse<IPayoutNotificationResponse> {
|
|
52
58
|
event_type: EventName.PayoutCreated;
|
|
53
59
|
}
|
|
@@ -78,7 +84,7 @@ interface ISubscriptionActivated extends IEventsResponse<ISubscriptionNotificati
|
|
|
78
84
|
interface ISubscriptionCanceled extends IEventsResponse<ISubscriptionNotificationResponse> {
|
|
79
85
|
event_type: EventName.SubscriptionCanceled;
|
|
80
86
|
}
|
|
81
|
-
interface ISubscriptionCreated extends IEventsResponse<
|
|
87
|
+
interface ISubscriptionCreated extends IEventsResponse<ISubscriptionCreatedNotificationResponse> {
|
|
82
88
|
event_type: EventName.SubscriptionCreated;
|
|
83
89
|
}
|
|
84
90
|
interface ISubscriptionImported extends IEventsResponse<ISubscriptionNotificationResponse> {
|
|
@@ -132,5 +138,5 @@ interface IReportCreated extends IEventsResponse<IReportNotificationResponse> {
|
|
|
132
138
|
interface IReportUpdated extends IEventsResponse<IReportNotificationResponse> {
|
|
133
139
|
event_type: EventName.ReportUpdated;
|
|
134
140
|
}
|
|
135
|
-
export type IEvents = IAddressCreated | IAddressUpdated | IAddressImported | IAdjustmentCreated | IAdjustmentUpdated | IBusinessCreated | IBusinessUpdated | IBusinessImported | ICustomerCreated | ICustomerUpdated | ICustomerImported | IDiscountCreated | IDiscountUpdated | IDiscountImported | 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 | IReportCreated | IReportUpdated;
|
|
141
|
+
export type IEvents = IAddressCreated | IAddressUpdated | IAddressImported | IAdjustmentCreated | IAdjustmentUpdated | IBusinessCreated | IBusinessUpdated | IBusinessImported | ICustomerCreated | ICustomerUpdated | ICustomerImported | IDiscountCreated | IDiscountUpdated | IDiscountImported | 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 | IReportCreated | IReportUpdated;
|
|
136
142
|
export {};
|
|
@@ -8,6 +8,7 @@ export * from './business/index.js';
|
|
|
8
8
|
export * from './subscription/index.js';
|
|
9
9
|
export * from './address/index.js';
|
|
10
10
|
export * from './discount/index.js';
|
|
11
|
+
export * from './payment-method/index.js';
|
|
11
12
|
export * from './pricing-preview/index.js';
|
|
12
13
|
export * from './events/index.js';
|
|
13
14
|
export * from './payout/index.js';
|
|
@@ -15,3 +16,7 @@ export * from './event-types/index.js';
|
|
|
15
16
|
export * from './notification-settings/index.js';
|
|
16
17
|
export * from './notifications/index.js';
|
|
17
18
|
export * from './report/index.js';
|
|
19
|
+
export * from './simulation-type/index.js';
|
|
20
|
+
export * from './simulation/index.js';
|
|
21
|
+
export * from './simulation-run/index.js';
|
|
22
|
+
export * from './simulation-run-event/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type NotificationSettingsType } from '../../enums/index.js';
|
|
1
|
+
import { type TrafficSource, type NotificationSettingsType } from '../../enums/index.js';
|
|
2
2
|
import { type IEventTypeResponse } from '../event-types/index.js';
|
|
3
3
|
export interface INotificationSettingsResponse {
|
|
4
4
|
id: string;
|
|
@@ -8,6 +8,7 @@ export interface INotificationSettingsResponse {
|
|
|
8
8
|
active: boolean;
|
|
9
9
|
api_version: number;
|
|
10
10
|
include_sensitive_fields: boolean;
|
|
11
|
+
traffic_source: TrafficSource;
|
|
11
12
|
subscribed_events: IEventTypeResponse[];
|
|
12
13
|
endpoint_secret_key: string;
|
|
13
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './payment-method.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IPaymentCardResponse, type IPayPalResponse } from '../index.js';
|
|
2
|
+
import { type SavedPaymentMethodType, type SavedPaymentOrigin } from '../../enums/index.js';
|
|
3
|
+
export interface IPaymentMethodResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
customer_id: string;
|
|
6
|
+
address_id: string;
|
|
7
|
+
type: SavedPaymentMethodType;
|
|
8
|
+
card?: IPaymentCardResponse | null;
|
|
9
|
+
paypal?: IPayPalResponse | null;
|
|
10
|
+
origin: SavedPaymentOrigin;
|
|
11
|
+
saved_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from './adjustment-original-amount-response.js';
|
|
|
14
14
|
export * from './chargeback-fee.js';
|
|
15
15
|
export * from './transaction-payout-totals-adjusted-response.js';
|
|
16
16
|
export * from './unit-totals.js';
|
|
17
|
+
export * from './paypal.js';
|
|
17
18
|
export * from './payment-card-response.js';
|
|
18
19
|
export * from './payment-method-details.js';
|
|
19
20
|
export * from './transaction-payment-attempt-response.js';
|
|
@@ -27,3 +28,6 @@ export * from './billing-details-create.js';
|
|
|
27
28
|
export * from './billing-details-update.js';
|
|
28
29
|
export * from './custom-data.js';
|
|
29
30
|
export * from './import-meta-response.js';
|
|
31
|
+
export * from './simulation-event-request.js';
|
|
32
|
+
export * from './simulation-event-response.js';
|
|
33
|
+
export * from './simulation-payload.js';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
2
|
+
import { type AddressCreatedEvent, type AddressImportedEvent, type AddressUpdatedEvent, type AdjustmentCreatedEvent, type AdjustmentUpdatedEvent, type BusinessCreatedEvent, type BusinessImportedEvent, type BusinessUpdatedEvent, type CustomerCreatedEvent, type CustomerImportedEvent, type CustomerUpdatedEvent, type DiscountCreatedEvent, type DiscountImportedEvent, type DiscountUpdatedEvent, 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 TransactionUpdatedEvent } from '../../notifications/events/index.js';
|
|
3
|
+
interface SimulationEventPayloadMap {
|
|
4
|
+
'address.created': AddressCreatedEvent;
|
|
5
|
+
'address.updated': AddressUpdatedEvent;
|
|
6
|
+
'address.imported': AddressImportedEvent;
|
|
7
|
+
'adjustment.created': AdjustmentCreatedEvent;
|
|
8
|
+
'adjustment.updated': AdjustmentUpdatedEvent;
|
|
9
|
+
'business.created': BusinessCreatedEvent;
|
|
10
|
+
'business.updated': BusinessUpdatedEvent;
|
|
11
|
+
'business.imported': BusinessImportedEvent;
|
|
12
|
+
'customer.created': CustomerCreatedEvent;
|
|
13
|
+
'customer.updated': CustomerUpdatedEvent;
|
|
14
|
+
'customer.imported': CustomerImportedEvent;
|
|
15
|
+
'discount.created': DiscountCreatedEvent;
|
|
16
|
+
'discount.updated': DiscountUpdatedEvent;
|
|
17
|
+
'discount.imported': DiscountImportedEvent;
|
|
18
|
+
'payout.created': PayoutCreatedEvent;
|
|
19
|
+
'payout.paid': PayoutPaidEvent;
|
|
20
|
+
'price.created': PriceCreatedEvent;
|
|
21
|
+
'price.updated': PriceUpdatedEvent;
|
|
22
|
+
'price.imported': PriceImportedEvent;
|
|
23
|
+
'product.created': ProductCreatedEvent;
|
|
24
|
+
'product.updated': ProductUpdatedEvent;
|
|
25
|
+
'product.imported': ProductImportedEvent;
|
|
26
|
+
'subscription.created': SubscriptionCreatedEvent;
|
|
27
|
+
'subscription.past_due': SubscriptionPastDueEvent;
|
|
28
|
+
'subscription.activated': SubscriptionActivatedEvent;
|
|
29
|
+
'subscription.canceled': SubscriptionCanceledEvent;
|
|
30
|
+
'subscription.imported': SubscriptionImportedEvent;
|
|
31
|
+
'subscription.paused': SubscriptionPausedEvent;
|
|
32
|
+
'subscription.resumed': SubscriptionResumedEvent;
|
|
33
|
+
'subscription.trialing': SubscriptionTrialingEvent;
|
|
34
|
+
'subscription.updated': SubscriptionUpdatedEvent;
|
|
35
|
+
'transaction.billed': TransactionBilledEvent;
|
|
36
|
+
'transaction.canceled': TransactionCanceledEvent;
|
|
37
|
+
'transaction.completed': TransactionCompletedEvent;
|
|
38
|
+
'transaction.created': TransactionCreatedEvent;
|
|
39
|
+
'transaction.paid': TransactionPaidEvent;
|
|
40
|
+
'transaction.past_due': TransactionPastDueEvent;
|
|
41
|
+
'transaction.payment_failed': TransactionPaymentFailedEvent;
|
|
42
|
+
'transaction.ready': TransactionReadyEvent;
|
|
43
|
+
'transaction.updated': TransactionUpdatedEvent;
|
|
44
|
+
'report.created': ReportCreatedEvent;
|
|
45
|
+
'report.updated': ReportUpdatedEvent;
|
|
46
|
+
subscription_creation: never;
|
|
47
|
+
subscription_renewal: never;
|
|
48
|
+
subscription_pause: never;
|
|
49
|
+
subscription_resume: never;
|
|
50
|
+
subscription_cancellation: never;
|
|
51
|
+
}
|
|
52
|
+
export type DiscriminatedSimulationEventResponse<Base> = {
|
|
53
|
+
[K in keyof SimulationEventPayloadMap]: Base & {
|
|
54
|
+
type: K;
|
|
55
|
+
payload?: K extends IEventName ? Partial<SimulationEventPayloadMap[K]['data']> | null : null;
|
|
56
|
+
};
|
|
57
|
+
}[keyof SimulationEventPayloadMap];
|
|
58
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './simulation-response.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Status } from '../../enums/index.js';
|
|
2
|
+
import type { DiscriminatedSimulationEventResponse } from '../shared/simulation-payload.js';
|
|
3
|
+
export type ISimulationResponse = DiscriminatedSimulationEventResponse<BaseSimulationResponse>;
|
|
4
|
+
interface BaseSimulationResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
status: Status;
|
|
7
|
+
notification_setting_id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
last_run_at?: string | null;
|
|
10
|
+
created_at: string;
|
|
11
|
+
updated_at: string;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './simulation-run-response.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Status, SimulationScenarioType } from '../../enums/index.js';
|
|
2
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
3
|
+
export interface ISimulationRunEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
status: Status;
|
|
6
|
+
event_type: IEventName | SimulationScenarioType;
|
|
7
|
+
payload: any;
|
|
8
|
+
request?: {
|
|
9
|
+
body: string;
|
|
10
|
+
} | null;
|
|
11
|
+
response?: {
|
|
12
|
+
body: string;
|
|
13
|
+
status_code: number;
|
|
14
|
+
} | null;
|
|
15
|
+
created_at: string;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SimulationRunStatus, SimulationScenarioType } from '../../enums/index.js';
|
|
2
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
3
|
+
import type { ISimulationRunEventResponse } from '../index.js';
|
|
4
|
+
export interface ISimulationRunResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
status: SimulationRunStatus;
|
|
7
|
+
created_at: string;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
type: IEventName | SimulationScenarioType;
|
|
10
|
+
events?: ISimulationRunEventResponse[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './simulation-run-event-response.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ISimulationEventRequest, ISimulationEventResponse } from '../shared/index.js';
|
|
2
|
+
import type { SimulationRunEventStatus, SimulationScenarioType } from '../../enums/index.js';
|
|
3
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
4
|
+
export interface ISimulationRunEventResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
status: SimulationRunEventStatus;
|
|
7
|
+
event_type: IEventName | SimulationScenarioType;
|
|
8
|
+
payload: any;
|
|
9
|
+
request?: ISimulationEventRequest | null;
|
|
10
|
+
response?: ISimulationEventResponse | null;
|
|
11
|
+
created_at: string;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './simulation-type.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SimulationKind } from '../../enums/index.js';
|
|
2
|
+
import { type IEventName } from '../../notifications/index.js';
|
|
3
|
+
export interface ISimulationTypeResponse {
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description: string;
|
|
7
|
+
group: string;
|
|
8
|
+
type: SimulationKind;
|
|
9
|
+
events: IEventName[];
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ISubscriptionUpdateItemCreateWithPriceRequest } from './subscription-update-non-catalog-price-request';
|
|
1
|
+
import { type ISubscriptionUpdateItemCreateWithPriceRequest } from './subscription-update-non-catalog-price-request.js';
|
|
2
2
|
interface ISubscriptionUpdateBaseItem {
|
|
3
3
|
quantity: number;
|
|
4
4
|
}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.0-rc.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0-rc.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.2",
|
|
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",
|