@paddle/paddle-node-sdk 0.2.1 → 0.2.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 +11 -0
- package/README.md +43 -4
- package/dist/entities/discount/discount.d.ts +1 -1
- package/dist/entities/discount/discount.js +2 -1
- package/dist/entities/events/event-collection.d.ts +6 -0
- package/dist/entities/events/event-collection.js +11 -0
- package/dist/entities/events/event.d.ts +9 -0
- package/dist/entities/events/event.js +14 -0
- package/dist/entities/events/index.d.ts +1 -0
- package/dist/entities/events/index.js +17 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/index.js +2 -0
- package/dist/entities/payout/index.d.ts +1 -0
- package/dist/entities/payout/index.js +17 -0
- package/dist/entities/payout/payout.d.ts +9 -0
- package/dist/entities/payout/payout.js +12 -0
- package/dist/entities/subscription/index.d.ts +1 -0
- package/dist/entities/subscription/index.js +1 -0
- package/dist/entities/subscription/subscription-notification.d.ts +28 -0
- package/dist/entities/subscription/subscription-notification.js +35 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.js +1 -0
- package/dist/enums/payout/index.d.ts +1 -0
- package/dist/enums/payout/index.js +17 -0
- package/dist/enums/payout/payout-status.d.ts +1 -0
- package/dist/enums/payout/payout-status.js +2 -0
- package/dist/notifications/events/address/address-created-event.d.ts +9 -0
- package/dist/notifications/events/address/address-created-event.js +14 -0
- package/dist/notifications/events/address/address-updated-event.d.ts +9 -0
- package/dist/notifications/events/address/address-updated-event.js +14 -0
- package/dist/notifications/events/address/index.d.ts +2 -0
- package/dist/notifications/events/address/index.js +18 -0
- package/dist/notifications/events/adjustment/adjustment-created-event.d.ts +9 -0
- package/dist/notifications/events/adjustment/adjustment-created-event.js +14 -0
- package/dist/notifications/events/adjustment/adjustment-updated-event.d.ts +9 -0
- package/dist/notifications/events/adjustment/adjustment-updated-event.js +14 -0
- package/dist/notifications/events/adjustment/index.d.ts +2 -0
- package/dist/notifications/events/adjustment/index.js +18 -0
- package/dist/notifications/events/business/business-created-event.d.ts +9 -0
- package/dist/notifications/events/business/business-created-event.js +14 -0
- package/dist/notifications/events/business/business-updated-event.d.ts +9 -0
- package/dist/notifications/events/business/business-updated-event.js +14 -0
- package/dist/notifications/events/business/index.d.ts +2 -0
- package/dist/notifications/events/business/index.js +18 -0
- package/dist/notifications/events/customer/customer-created-event.d.ts +9 -0
- package/dist/notifications/events/customer/customer-created-event.js +14 -0
- package/dist/notifications/events/customer/customer-updated-event.d.ts +9 -0
- package/dist/notifications/events/customer/customer-updated-event.js +14 -0
- package/dist/notifications/events/customer/index.d.ts +2 -0
- package/dist/notifications/events/customer/index.js +18 -0
- package/dist/notifications/events/discount/discount-created-event.d.ts +9 -0
- package/dist/notifications/events/discount/discount-created-event.js +14 -0
- package/dist/notifications/events/discount/discount-imported-event.d.ts +9 -0
- package/dist/notifications/events/discount/discount-imported-event.js +14 -0
- package/dist/notifications/events/discount/discount-updated-event.d.ts +9 -0
- package/dist/notifications/events/discount/discount-updated-event.js +14 -0
- package/dist/notifications/events/discount/index.d.ts +3 -0
- package/dist/notifications/events/discount/index.js +19 -0
- package/dist/notifications/events/index.d.ts +10 -0
- package/dist/notifications/events/index.js +26 -0
- package/dist/notifications/events/payout/index.d.ts +2 -0
- package/dist/notifications/events/payout/index.js +18 -0
- package/dist/notifications/events/payout/payout-created-event.d.ts +9 -0
- package/dist/notifications/events/payout/payout-created-event.js +14 -0
- package/dist/notifications/events/payout/payout-paid-event.d.ts +9 -0
- package/dist/notifications/events/payout/payout-paid-event.js +14 -0
- package/dist/notifications/events/price/index.d.ts +2 -0
- package/dist/notifications/events/price/index.js +18 -0
- package/dist/notifications/events/price/price-created-event.d.ts +9 -0
- package/dist/notifications/events/price/price-created-event.js +14 -0
- package/dist/notifications/events/price/price-updated-event.d.ts +9 -0
- package/dist/notifications/events/price/price-updated-event.js +14 -0
- package/dist/notifications/events/product/index.d.ts +2 -0
- package/dist/notifications/events/product/index.js +18 -0
- package/dist/notifications/events/product/product-created-event.d.ts +9 -0
- package/dist/notifications/events/product/product-created-event.js +14 -0
- package/dist/notifications/events/product/product-updated-event.d.ts +9 -0
- package/dist/notifications/events/product/product-updated-event.js +14 -0
- package/dist/notifications/events/subscription/index.d.ts +9 -0
- package/dist/notifications/events/subscription/index.js +25 -0
- package/dist/notifications/events/subscription/subscription-activated-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-activated-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-canceled-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-canceled-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-created-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-created-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-imported-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-imported-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-past-due-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-past-due-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-paused-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-paused-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-resumed-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-resumed-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-trialing-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-trialing-event.js +14 -0
- package/dist/notifications/events/subscription/subscription-updated-event.d.ts +9 -0
- package/dist/notifications/events/subscription/subscription-updated-event.js +14 -0
- package/dist/notifications/events/transaction/index.d.ts +9 -0
- package/dist/notifications/events/transaction/index.js +25 -0
- package/dist/notifications/events/transaction/transaction-billed-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-billed-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-canceled-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-canceled-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-completed-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-completed-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-created-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-created-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-paid-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-paid-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-past-due-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-past-due-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-payment-failed-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-payment-failed-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-ready-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-ready-event.js +14 -0
- package/dist/notifications/events/transaction/transaction-updated-event.d.ts +9 -0
- package/dist/notifications/events/transaction/transaction-updated-event.js +14 -0
- package/dist/notifications/helpers/index.d.ts +3 -0
- package/dist/notifications/helpers/index.js +19 -0
- package/dist/notifications/helpers/types.d.ts +40 -0
- package/dist/notifications/helpers/types.js +41 -0
- package/dist/notifications/{validator/notifications-validator.d.ts → helpers/webhooks-validator.d.ts} +1 -1
- package/dist/notifications/{validator/notifications-validator.js → helpers/webhooks-validator.js} +6 -6
- package/dist/notifications/helpers/webhooks.d.ts +7 -0
- package/dist/notifications/helpers/webhooks.js +98 -0
- package/dist/notifications/index.d.ts +2 -1
- package/dist/notifications/index.js +2 -1
- package/dist/paddle.d.ts +5 -1
- package/dist/paddle.js +5 -1
- package/dist/resources/events/index.d.ts +7 -0
- package/dist/resources/events/index.js +30 -0
- package/dist/resources/events/operations/index.d.ts +1 -0
- package/dist/resources/events/operations/index.js +17 -0
- package/dist/resources/events/operations/list-events-query-parameters.d.ts +5 -0
- package/dist/resources/events/operations/list-events-query-parameters.js +2 -0
- package/dist/types/events/events-response.d.ts +125 -0
- package/dist/types/events/events-response.js +2 -0
- package/dist/types/events/index.d.ts +1 -0
- package/dist/types/events/index.js +17 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/payout/index.d.ts +1 -0
- package/dist/types/payout/index.js +17 -0
- package/dist/types/payout/payout-response.d.ts +7 -0
- package/dist/types/payout/payout-response.js +2 -0
- package/dist/types/subscription/index.d.ts +1 -0
- package/dist/types/subscription/index.js +1 -0
- package/dist/types/subscription/subscription-notification-response.d.ts +28 -0
- package/dist/types/subscription/subscription-notification-response.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Customer } from '../../../entities';
|
|
3
|
+
import { type ICustomerResponse, type IEventsResponse } from '../../../types';
|
|
4
|
+
import { EventName } from '../../helpers';
|
|
5
|
+
export declare class CustomerUpdatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.CustomerUpdated;
|
|
7
|
+
readonly data: Customer;
|
|
8
|
+
constructor(response: IEventsResponse<ICustomerResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerUpdatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class CustomerUpdatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.CustomerUpdated;
|
|
11
|
+
this.data = new entities_1.Customer(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.CustomerUpdatedEvent = CustomerUpdatedEvent;
|
|
@@ -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("./customer-created-event"), exports);
|
|
18
|
+
__exportStar(require("./customer-updated-event"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Discount } from '../../../entities';
|
|
3
|
+
import { type IDiscountResponse, type IEventsResponse } from '../../../types';
|
|
4
|
+
import { EventName } from '../../helpers';
|
|
5
|
+
export declare class DiscountCreatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.DiscountCreated;
|
|
7
|
+
readonly data: Discount;
|
|
8
|
+
constructor(response: IEventsResponse<IDiscountResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscountCreatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class DiscountCreatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.DiscountCreated;
|
|
11
|
+
this.data = new entities_1.Discount(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.DiscountCreatedEvent = DiscountCreatedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Discount } from '../../../entities';
|
|
3
|
+
import { type IDiscountResponse, type IEventsResponse } from '../../../types';
|
|
4
|
+
import { EventName } from '../../helpers';
|
|
5
|
+
export declare class DiscountImportedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.DiscountImported;
|
|
7
|
+
readonly data: Discount;
|
|
8
|
+
constructor(response: IEventsResponse<IDiscountResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscountImportedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class DiscountImportedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.DiscountImported;
|
|
11
|
+
this.data = new entities_1.Discount(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.DiscountImportedEvent = DiscountImportedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Discount } from '../../../entities';
|
|
3
|
+
import { type IDiscountResponse, type IEventsResponse } from '../../../types';
|
|
4
|
+
import { EventName } from '../../helpers';
|
|
5
|
+
export declare class DiscountUpdatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.DiscountUpdated;
|
|
7
|
+
readonly data: Discount;
|
|
8
|
+
constructor(response: IEventsResponse<IDiscountResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscountUpdatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class DiscountUpdatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.DiscountUpdated;
|
|
11
|
+
this.data = new entities_1.Discount(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.DiscountUpdatedEvent = DiscountUpdatedEvent;
|
|
@@ -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("./discount-created-event"), exports);
|
|
18
|
+
__exportStar(require("./discount-updated-event"), exports);
|
|
19
|
+
__exportStar(require("./discount-imported-event"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './address';
|
|
2
|
+
export * from './adjustment';
|
|
3
|
+
export * from './business';
|
|
4
|
+
export * from './customer';
|
|
5
|
+
export * from './discount';
|
|
6
|
+
export * from './payout';
|
|
7
|
+
export * from './price';
|
|
8
|
+
export * from './product';
|
|
9
|
+
export * from './subscription';
|
|
10
|
+
export * from './transaction';
|
|
@@ -0,0 +1,26 @@
|
|
|
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("./address"), exports);
|
|
18
|
+
__exportStar(require("./adjustment"), exports);
|
|
19
|
+
__exportStar(require("./business"), exports);
|
|
20
|
+
__exportStar(require("./customer"), exports);
|
|
21
|
+
__exportStar(require("./discount"), exports);
|
|
22
|
+
__exportStar(require("./payout"), exports);
|
|
23
|
+
__exportStar(require("./price"), exports);
|
|
24
|
+
__exportStar(require("./product"), exports);
|
|
25
|
+
__exportStar(require("./subscription"), exports);
|
|
26
|
+
__exportStar(require("./transaction"), 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("./payout-created-event"), exports);
|
|
18
|
+
__exportStar(require("./payout-paid-event"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Payout } from '../../../entities';
|
|
3
|
+
import { type IEventsResponse, type IPayoutResponse } from '../../../types';
|
|
4
|
+
import { EventName } from '../../helpers';
|
|
5
|
+
export declare class PayoutCreatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.PayoutCreated;
|
|
7
|
+
readonly data: Payout;
|
|
8
|
+
constructor(response: IEventsResponse<IPayoutResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutCreatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class PayoutCreatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.PayoutCreated;
|
|
11
|
+
this.data = new entities_1.Payout(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PayoutCreatedEvent = PayoutCreatedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Payout } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type IPayoutResponse } from '../../../types';
|
|
5
|
+
export declare class PayoutPaidEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.PayoutPaid;
|
|
7
|
+
readonly data: Payout;
|
|
8
|
+
constructor(response: IEventsResponse<IPayoutResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutPaidEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class PayoutPaidEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.PayoutPaid;
|
|
11
|
+
this.data = new entities_1.Payout(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PayoutPaidEvent = PayoutPaidEvent;
|
|
@@ -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("./price-created-event"), exports);
|
|
18
|
+
__exportStar(require("./price-updated-event"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Price } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type IPriceResponse } from '../../../types';
|
|
5
|
+
export declare class PriceCreatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.PriceCreated;
|
|
7
|
+
readonly data: Price;
|
|
8
|
+
constructor(response: IEventsResponse<IPriceResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceCreatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class PriceCreatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.PriceCreated;
|
|
11
|
+
this.data = new entities_1.Price(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PriceCreatedEvent = PriceCreatedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Price } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type IPriceResponse } from '../../../types';
|
|
5
|
+
export declare class PriceUpdatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.PriceUpdated;
|
|
7
|
+
readonly data: Price;
|
|
8
|
+
constructor(response: IEventsResponse<IPriceResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceUpdatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class PriceUpdatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.PriceUpdated;
|
|
11
|
+
this.data = new entities_1.Price(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PriceUpdatedEvent = PriceUpdatedEvent;
|
|
@@ -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("./product-created-event"), exports);
|
|
18
|
+
__exportStar(require("./product-updated-event"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Product } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type IProductResponse } from '../../../types';
|
|
5
|
+
export declare class ProductCreatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.ProductCreated;
|
|
7
|
+
readonly data: Product;
|
|
8
|
+
constructor(response: IEventsResponse<IProductResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCreatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class ProductCreatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.ProductCreated;
|
|
11
|
+
this.data = new entities_1.Product(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ProductCreatedEvent = ProductCreatedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { Product } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type IProductResponse } from '../../../types';
|
|
5
|
+
export declare class ProductUpdatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.ProductUpdated;
|
|
7
|
+
readonly data: Product;
|
|
8
|
+
constructor(response: IEventsResponse<IProductResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductUpdatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class ProductUpdatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.ProductUpdated;
|
|
11
|
+
this.data = new entities_1.Product(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ProductUpdatedEvent = ProductUpdatedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './subscription-activated-event';
|
|
2
|
+
export * from './subscription-canceled-event';
|
|
3
|
+
export * from './subscription-created-event';
|
|
4
|
+
export * from './subscription-imported-event';
|
|
5
|
+
export * from './subscription-past-due-event';
|
|
6
|
+
export * from './subscription-paused-event';
|
|
7
|
+
export * from './subscription-resumed-event';
|
|
8
|
+
export * from './subscription-trialing-event';
|
|
9
|
+
export * from './subscription-updated-event';
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./subscription-activated-event"), exports);
|
|
18
|
+
__exportStar(require("./subscription-canceled-event"), exports);
|
|
19
|
+
__exportStar(require("./subscription-created-event"), exports);
|
|
20
|
+
__exportStar(require("./subscription-imported-event"), exports);
|
|
21
|
+
__exportStar(require("./subscription-past-due-event"), exports);
|
|
22
|
+
__exportStar(require("./subscription-paused-event"), exports);
|
|
23
|
+
__exportStar(require("./subscription-resumed-event"), exports);
|
|
24
|
+
__exportStar(require("./subscription-trialing-event"), exports);
|
|
25
|
+
__exportStar(require("./subscription-updated-event"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type ISubscriptionNotificationResponse } from '../../../types';
|
|
5
|
+
export declare class SubscriptionActivatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.SubscriptionActivated;
|
|
7
|
+
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
8
|
+
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionActivatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class SubscriptionActivatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.SubscriptionActivated;
|
|
11
|
+
this.data = new entities_1.SubscriptionNotification(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SubscriptionActivatedEvent = SubscriptionActivatedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type ISubscriptionNotificationResponse } from '../../../types';
|
|
5
|
+
export declare class SubscriptionCanceledEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.SubscriptionCanceled;
|
|
7
|
+
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
8
|
+
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionCanceledEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class SubscriptionCanceledEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.SubscriptionCanceled;
|
|
11
|
+
this.data = new entities_1.SubscriptionNotification(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SubscriptionCanceledEvent = SubscriptionCanceledEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type ISubscriptionNotificationResponse } from '../../../types';
|
|
5
|
+
export declare class SubscriptionCreatedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.SubscriptionCreated;
|
|
7
|
+
readonly data: SubscriptionNotification;
|
|
8
|
+
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionCreatedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class SubscriptionCreatedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.SubscriptionCreated;
|
|
11
|
+
this.data = new entities_1.SubscriptionNotification(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SubscriptionCreatedEvent = SubscriptionCreatedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type ISubscriptionNotificationResponse } from '../../../types';
|
|
5
|
+
export declare class SubscriptionImportedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.SubscriptionImported;
|
|
7
|
+
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
8
|
+
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionImportedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class SubscriptionImportedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.SubscriptionImported;
|
|
11
|
+
this.data = new entities_1.SubscriptionNotification(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SubscriptionImportedEvent = SubscriptionImportedEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type ISubscriptionNotificationResponse } from '../../../types';
|
|
5
|
+
export declare class SubscriptionPastDueEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.SubscriptionPastDue;
|
|
7
|
+
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
8
|
+
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionPastDueEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class SubscriptionPastDueEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.SubscriptionPastDue;
|
|
11
|
+
this.data = new entities_1.SubscriptionNotification(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SubscriptionPastDueEvent = SubscriptionPastDueEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
|
+
import { type IEventsResponse, type ISubscriptionNotificationResponse } from '../../../types';
|
|
5
|
+
export declare class SubscriptionPausedEvent extends Event {
|
|
6
|
+
readonly eventType = EventName.SubscriptionPaused;
|
|
7
|
+
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
8
|
+
constructor(response: IEventsResponse<ISubscriptionNotificationResponse>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionPausedEvent = void 0;
|
|
4
|
+
const event_1 = require("../../../entities/events/event");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
const helpers_1 = require("../../helpers");
|
|
7
|
+
class SubscriptionPausedEvent extends event_1.Event {
|
|
8
|
+
constructor(response) {
|
|
9
|
+
super(response);
|
|
10
|
+
this.eventType = helpers_1.EventName.SubscriptionPaused;
|
|
11
|
+
this.data = new entities_1.SubscriptionNotification(response.data);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SubscriptionPausedEvent = SubscriptionPausedEvent;
|