@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/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,26 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a
|
|
|
12
12
|
|
|
13
13
|
This means when upgrading minor versions of the SDK, you may notice type errors. You can safely ignore these or fix by adding additional type guards.
|
|
14
14
|
|
|
15
|
+
## 2.0.0-rc.2 - 2024-11-19
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Added the `trafficSource` filter on notification settings
|
|
20
|
+
- Omitted the `transactionId` completely from `SubscriptionNotification` and created a separate `SubscriptionCreatedNotification` with the non-null `transactionId`
|
|
21
|
+
- Added `paymentMethods` resources
|
|
22
|
+
- Added `generateAuthToken` for customer
|
|
23
|
+
|
|
24
|
+
## 2.0.0-rc.1 - 2024-10-08
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Added `simulationTypes` resources
|
|
29
|
+
- Added `simulations` resources
|
|
30
|
+
- Added `simulationRuns` resources
|
|
31
|
+
- Added `simulationRunEvents` resources
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
15
35
|
## 2.0.0-rc.0 - 2024-09-26
|
|
16
36
|
|
|
17
37
|
> **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
|
|
@@ -40,7 +60,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
|
|
|
40
60
|
## 1.6.0 - 2024-09-16
|
|
41
61
|
|
|
42
62
|
### Added
|
|
43
|
-
|
|
63
|
+
|
|
44
64
|
- Added `adjustments.getCreditNotePDF()` to [get a credit note for an adjustment](https://developer.paddle.com/api-reference/adjustments/get-credit-note-pdf?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
45
65
|
- Added `disposition` query parameter to `adjustments.getCreditNotePDF()` and `transactions.getInvoicePDF()` operations, see [related changelog](https://developer.paddle.com/changelog/2024/invoice-pdf-open-in-browser?utm_source=dx&utm_medium=paddle-node-sdk).
|
|
46
66
|
- Added pagination support to `notificationSettings.list()` operation, see [related changelog](https://developer.paddle.com/changelog/2024/notification-settings-pagination?utm_source=dx&utm_medium=paddle-node-sdk).
|
|
@@ -170,7 +190,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
|
|
|
170
190
|
### Removed
|
|
171
191
|
|
|
172
192
|
- **Breaking change:** Removed `*Includes` entity in favour of standard entities.
|
|
173
|
-
|
|
193
|
+
|
|
174
194
|
- Use `Price` instead of `PriceWithIncludes`
|
|
175
195
|
- Use `Product` instead of `ProductWithIncludes`
|
|
176
196
|
- Use `Subscription` instead of `SubscriptionIncludes`
|
|
@@ -230,7 +250,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
|
|
|
230
250
|
|
|
231
251
|
### Fixed
|
|
232
252
|
|
|
233
|
-
- Marked `unitPriceOverrides` as optional in Price entity.
|
|
253
|
+
- Marked `unitPriceOverrides` as optional in Price entity.
|
|
234
254
|
|
|
235
255
|
---
|
|
236
256
|
|
|
@@ -290,7 +310,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
|
|
|
290
310
|
- Added `notificationSettings.get()` to [get a notification settings](https://developer.paddle.com/api-reference/notification-settings/get-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
291
311
|
- Added `notificationSettings.update()` to [update a notification settings](https://developer.paddle.com/api-reference/notification-settings/update-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
292
312
|
- Added `notificationSettings.delete()` to [delete a notification settings](https://developer.paddle.com/api-reference/notification-settings/delete-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
293
|
-
- Added `notifications.list()` to [list all notifications](https://developer.paddle.com/api-reference/notifications/list-notifications?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
313
|
+
- Added `notifications.list()` to [list all notifications](https://developer.paddle.com/api-reference/notifications/list-notifications?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
294
314
|
- Added `notifications.get()` to [get a notification](https://developer.paddle.com/api-reference/notifications/get-notification?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
295
315
|
- Added `notifications.replay()` to [replay a notification](https://developer.paddle.com/api-reference/notifications/replay-notification?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
296
316
|
- Added `notifications.getLogs()` to [get all logs for a notification](https://developer.paddle.com/api-reference/notification-logs/list-notification-logs?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
@@ -315,7 +335,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
|
|
|
315
335
|
### Added
|
|
316
336
|
|
|
317
337
|
- Added helper function to archive supported entities
|
|
318
|
-
- Added `pricingPreview.preview()` to [preview calculations for one or more prices](https://developer.paddle.com/api-reference/pricing-preview/preview-prices?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
338
|
+
- Added `pricingPreview.preview()` to [preview calculations for one or more prices](https://developer.paddle.com/api-reference/pricing-preview/preview-prices?utm_source=dx&utm_medium=paddle-node-sdk)
|
|
319
339
|
|
|
320
340
|
### Changed
|
|
321
341
|
|
|
@@ -363,7 +383,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
|
|
|
363
383
|
|
|
364
384
|
- Added changelog.
|
|
365
385
|
|
|
366
|
-
---
|
|
386
|
+
---
|
|
367
387
|
|
|
368
388
|
## 0.1.6 - 2023-11-22
|
|
369
389
|
|
|
@@ -371,7 +391,7 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
|
|
|
371
391
|
|
|
372
392
|
- Fixed optional management URL object in subscription entities.
|
|
373
393
|
|
|
374
|
-
---
|
|
394
|
+
---
|
|
375
395
|
|
|
376
396
|
## 0.1.5 - 2023-11-14
|
|
377
397
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthToken = void 0;
|
|
4
|
+
class AuthToken {
|
|
5
|
+
constructor(authToken) {
|
|
6
|
+
this.customerAuthToken = authToken.customer_auth_token;
|
|
7
|
+
this.expiresAt = authToken.expires_at;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AuthToken = AuthToken;
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./auth-token.js"), exports);
|
|
17
18
|
__exportStar(require("./customer-collection.js"), exports);
|
|
18
19
|
__exportStar(require("./customer.js"), exports);
|
|
19
20
|
__exportStar(require("./credit-balance.js"), exports);
|
|
@@ -25,8 +25,13 @@ __exportStar(require("./subscription/index.js"), exports);
|
|
|
25
25
|
__exportStar(require("./address/index.js"), exports);
|
|
26
26
|
__exportStar(require("./discount/index.js"), exports);
|
|
27
27
|
__exportStar(require("./events/index.js"), exports);
|
|
28
|
+
__exportStar(require("./payment-method/index.js"), exports);
|
|
28
29
|
__exportStar(require("./payout/index.js"), exports);
|
|
29
30
|
__exportStar(require("./event-types/index.js"), exports);
|
|
30
31
|
__exportStar(require("./notification-settings/index.js"), exports);
|
|
31
32
|
__exportStar(require("./notifications/index.js"), exports);
|
|
32
33
|
__exportStar(require("./report/index.js"), exports);
|
|
34
|
+
__exportStar(require("./simulation-types/index.js"), exports);
|
|
35
|
+
__exportStar(require("./simulation/index.js"), exports);
|
|
36
|
+
__exportStar(require("./simulation-run/index.js"), exports);
|
|
37
|
+
__exportStar(require("./simulation-run-event/index.js"), exports);
|
|
@@ -11,6 +11,7 @@ class NotificationSettings {
|
|
|
11
11
|
this.active = notificationSettings.active;
|
|
12
12
|
this.apiVersion = notificationSettings.api_version;
|
|
13
13
|
this.includeSensitiveFields = notificationSettings.include_sensitive_fields;
|
|
14
|
+
this.trafficSource = notificationSettings.traffic_source;
|
|
14
15
|
this.subscribedEvents = notificationSettings.subscribed_events.map((subscribed_event) => new index_js_1.EventType(subscribed_event));
|
|
15
16
|
this.endpointSecretKey = notificationSettings.endpoint_secret_key;
|
|
16
17
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payment-method.js"), exports);
|
|
18
|
+
__exportStar(require("./payment-method-collection.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodCollection = void 0;
|
|
4
|
+
const index_js_1 = require("../../entities/index.js");
|
|
5
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
6
|
+
class PaymentMethodCollection extends index_js_2.Collection {
|
|
7
|
+
fromJson(data) {
|
|
8
|
+
return new index_js_1.PaymentMethod(data);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PaymentMethodCollection = PaymentMethodCollection;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethod = void 0;
|
|
4
|
+
const index_js_1 = require("../shared/index.js");
|
|
5
|
+
class PaymentMethod {
|
|
6
|
+
constructor(paymentMethodResponse) {
|
|
7
|
+
this.id = paymentMethodResponse.id;
|
|
8
|
+
this.customerId = paymentMethodResponse.customer_id;
|
|
9
|
+
this.addressId = paymentMethodResponse.address_id;
|
|
10
|
+
this.type = paymentMethodResponse.type;
|
|
11
|
+
this.card = paymentMethodResponse.card ? new index_js_1.PaymentCard(paymentMethodResponse.card) : null;
|
|
12
|
+
this.paypal = paymentMethodResponse.paypal ? new index_js_1.PayPal(paymentMethodResponse.paypal) : null;
|
|
13
|
+
this.origin = paymentMethodResponse.origin;
|
|
14
|
+
this.savedAt = paymentMethodResponse.saved_at;
|
|
15
|
+
this.updatedAt = paymentMethodResponse.updated_at;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.PaymentMethod = PaymentMethod;
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./adjustment-original-amount.js"), exports);
|
|
|
27
27
|
__exportStar(require("./chargeback-fee.js"), exports);
|
|
28
28
|
__exportStar(require("./transaction-payout-totals-adjusted.js"), exports);
|
|
29
29
|
__exportStar(require("./unit-totals.js"), exports);
|
|
30
|
+
__exportStar(require("./paypal.js"), exports);
|
|
30
31
|
__exportStar(require("./payment-card.js"), exports);
|
|
31
32
|
__exportStar(require("./payment-method-details.js"), exports);
|
|
32
33
|
__exportStar(require("./transaction-payment-attempt.js"), exports);
|
|
@@ -34,3 +35,5 @@ __exportStar(require("./transaction-checkout.js"), exports);
|
|
|
34
35
|
__exportStar(require("./total-adjustments.js"), exports);
|
|
35
36
|
__exportStar(require("./payout-totals-adjustment.js"), exports);
|
|
36
37
|
__exportStar(require("./import-meta.js"), exports);
|
|
38
|
+
__exportStar(require("./simulation-event-request.js"), exports);
|
|
39
|
+
__exportStar(require("./simulation-event-response.js"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayPal = void 0;
|
|
4
|
+
class PayPal {
|
|
5
|
+
constructor(payPalResponse) {
|
|
6
|
+
this.email = payPalResponse.email;
|
|
7
|
+
this.reference = payPalResponse.reference;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.PayPal = PayPal;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationEventRequest = void 0;
|
|
4
|
+
class SimulationEventRequest {
|
|
5
|
+
constructor(simulationEventRequestResponse) {
|
|
6
|
+
this.body = simulationEventRequestResponse.body;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.SimulationEventRequest = SimulationEventRequest;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationEventResponse = void 0;
|
|
4
|
+
class SimulationEventResponse {
|
|
5
|
+
constructor(simulationEventResponse) {
|
|
6
|
+
this.body = simulationEventResponse.body;
|
|
7
|
+
this.statusCode = simulationEventResponse.status_code;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SimulationEventResponse = SimulationEventResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation.js"), exports);
|
|
18
|
+
__exportStar(require("./simulation-collection.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationCollection = void 0;
|
|
4
|
+
const index_js_1 = require("../../entities/index.js");
|
|
5
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
6
|
+
class SimulationCollection extends index_js_2.Collection {
|
|
7
|
+
fromJson(data) {
|
|
8
|
+
return new index_js_1.Simulation(data);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SimulationCollection = SimulationCollection;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Simulation = void 0;
|
|
4
|
+
class Simulation {
|
|
5
|
+
constructor(simulationResponse) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
this.id = simulationResponse.id;
|
|
8
|
+
this.status = simulationResponse.status;
|
|
9
|
+
this.notificationSettingId = simulationResponse.notification_setting_id;
|
|
10
|
+
this.name = simulationResponse.name;
|
|
11
|
+
this.type = simulationResponse.type;
|
|
12
|
+
this.payload = (_a = simulationResponse.payload) !== null && _a !== void 0 ? _a : null;
|
|
13
|
+
this.lastRunAt = (_b = simulationResponse.last_run_at) !== null && _b !== void 0 ? _b : null;
|
|
14
|
+
this.createdAt = simulationResponse.created_at;
|
|
15
|
+
this.updatedAt = simulationResponse.updated_at;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Simulation = Simulation;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation-run.js"), exports);
|
|
18
|
+
__exportStar(require("./simulation-run-collection.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationRunCollection = void 0;
|
|
4
|
+
const index_js_1 = require("../../entities/index.js");
|
|
5
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
6
|
+
class SimulationRunCollection extends index_js_2.Collection {
|
|
7
|
+
fromJson(data) {
|
|
8
|
+
return new index_js_1.SimulationRun(data);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SimulationRunCollection = SimulationRunCollection;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationRun = void 0;
|
|
4
|
+
const index_js_1 = require("../index.js");
|
|
5
|
+
class SimulationRun {
|
|
6
|
+
constructor(simulationRunResponse) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
this.id = simulationRunResponse.id;
|
|
9
|
+
this.status = simulationRunResponse.status;
|
|
10
|
+
this.createdAt = simulationRunResponse.created_at;
|
|
11
|
+
this.updatedAt = simulationRunResponse.updated_at;
|
|
12
|
+
this.type = simulationRunResponse.type;
|
|
13
|
+
this.events = (_b = (_a = simulationRunResponse.events) === null || _a === void 0 ? void 0 : _a.map((event) => new index_js_1.SimulationRunEvent(event))) !== null && _b !== void 0 ? _b : [];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.SimulationRun = SimulationRun;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation-run-event.js"), exports);
|
|
18
|
+
__exportStar(require("./simulation-run-event-collection.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationRunEventCollection = void 0;
|
|
4
|
+
const index_js_1 = require("../../entities/index.js");
|
|
5
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
6
|
+
class SimulationRunEventCollection extends index_js_2.Collection {
|
|
7
|
+
fromJson(data) {
|
|
8
|
+
return new index_js_1.SimulationRunEvent(data);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SimulationRunEventCollection = SimulationRunEventCollection;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationRunEvent = void 0;
|
|
4
|
+
const index_js_1 = require("../shared/index.js");
|
|
5
|
+
class SimulationRunEvent {
|
|
6
|
+
constructor(simulationRunEventResponse) {
|
|
7
|
+
this.id = simulationRunEventResponse.id;
|
|
8
|
+
this.status = simulationRunEventResponse.status;
|
|
9
|
+
this.eventType = simulationRunEventResponse.event_type;
|
|
10
|
+
this.payload = simulationRunEventResponse.payload;
|
|
11
|
+
this.request = simulationRunEventResponse.request
|
|
12
|
+
? new index_js_1.SimulationEventRequest(simulationRunEventResponse.request)
|
|
13
|
+
: null;
|
|
14
|
+
this.response = simulationRunEventResponse.response
|
|
15
|
+
? new index_js_1.SimulationEventResponse(simulationRunEventResponse.response)
|
|
16
|
+
: null;
|
|
17
|
+
this.createdAt = simulationRunEventResponse.created_at;
|
|
18
|
+
this.updatedAt = simulationRunEventResponse.updated_at;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.SimulationRunEvent = SimulationRunEvent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation-type.js"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimulationType = void 0;
|
|
4
|
+
class SimulationType {
|
|
5
|
+
constructor(simulationTypeResponse) {
|
|
6
|
+
this.name = simulationTypeResponse.name;
|
|
7
|
+
this.label = simulationTypeResponse.label;
|
|
8
|
+
this.description = simulationTypeResponse.description;
|
|
9
|
+
this.group = simulationTypeResponse.group;
|
|
10
|
+
this.type = simulationTypeResponse.type;
|
|
11
|
+
this.events = simulationTypeResponse.events;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SimulationType = SimulationType;
|
package/dist/cjs/enums/index.js
CHANGED
|
@@ -19,7 +19,12 @@ __exportStar(require("./subscription/index.js"), exports);
|
|
|
19
19
|
__exportStar(require("./discount/index.js"), exports);
|
|
20
20
|
__exportStar(require("./adjustment/index.js"), exports);
|
|
21
21
|
__exportStar(require("./transaction/index.js"), exports);
|
|
22
|
+
__exportStar(require("./payment-method/index.js"), exports);
|
|
22
23
|
__exportStar(require("./payout/index.js"), exports);
|
|
23
24
|
__exportStar(require("./notification-settings/index.js"), exports);
|
|
24
25
|
__exportStar(require("./notification/index.js"), exports);
|
|
25
26
|
__exportStar(require("./report/index.js"), exports);
|
|
27
|
+
__exportStar(require("./simulation-type/index.js"), exports);
|
|
28
|
+
__exportStar(require("./simulation/index.js"), exports);
|
|
29
|
+
__exportStar(require("./simulation-run/index.js"), exports);
|
|
30
|
+
__exportStar(require("./simulation-run-event/index.js"), exports);
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./notification-settings-type.js"), exports);
|
|
18
|
+
__exportStar(require("./traffic-source.js"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./deletion-reason.js"), exports);
|
|
18
|
+
__exportStar(require("./type.js"), exports);
|
|
19
|
+
__exportStar(require("./origin.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation-scenario-type.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation-run-status.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation-run-event-status.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./simulation-kind.js"), exports);
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./business/index.js"), exports);
|
|
|
23
23
|
__exportStar(require("./subscription/index.js"), exports);
|
|
24
24
|
__exportStar(require("./address/index.js"), exports);
|
|
25
25
|
__exportStar(require("./discount/index.js"), exports);
|
|
26
|
+
__exportStar(require("./payment-method/index.js"), exports);
|
|
26
27
|
__exportStar(require("./payout/index.js"), exports);
|
|
27
28
|
__exportStar(require("./report/index.js"), exports);
|
|
28
29
|
__exportStar(require("./shared/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payment-method-deleted-notification.js"), exports);
|
|
18
|
+
__exportStar(require("./payment-method-notification.js"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodDeletedNotification = void 0;
|
|
4
|
+
class PaymentMethodDeletedNotification {
|
|
5
|
+
constructor(paymentMethod) {
|
|
6
|
+
this.id = paymentMethod.id;
|
|
7
|
+
this.customerId = paymentMethod.customer_id;
|
|
8
|
+
this.addressId = paymentMethod.address_id;
|
|
9
|
+
this.deletionReason = paymentMethod.deletion_reason;
|
|
10
|
+
this.type = paymentMethod.type;
|
|
11
|
+
this.origin = paymentMethod.origin;
|
|
12
|
+
this.savedAt = paymentMethod.saved_at;
|
|
13
|
+
this.updatedAt = paymentMethod.updated_at;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.PaymentMethodDeletedNotification = PaymentMethodDeletedNotification;
|