@royalinvest/dto 0.49.8 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/balance.d.ts +2 -0
- package/dist/billing.d.ts +1 -0
- package/dist/billing.js +2 -0
- package/dist/checkout.d.ts +7 -16
- package/dist/enum/index.d.ts +4 -0
- package/dist/enum/index.js +6 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/balance.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BillingIntervalType = "month" | "year" | "once";
|
package/dist/billing.js
ADDED
package/dist/checkout.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UnitMeasurementEnum } from "./enum";
|
|
2
|
+
import { BillingIntervalType } from "./billing";
|
|
3
3
|
export interface ICheckout {
|
|
4
|
+
plan_id: string;
|
|
4
5
|
contract_id?: string;
|
|
5
|
-
|
|
6
|
+
template_id?: string;
|
|
6
7
|
email: string;
|
|
7
8
|
language: string;
|
|
8
9
|
currency: string;
|
|
9
10
|
items: ICheckoutItem[];
|
|
10
11
|
is_subscription: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
billing_interval: BillingIntervalType;
|
|
13
|
+
expires_at?: Date | null;
|
|
13
14
|
}
|
|
14
15
|
export type ICheckoutItem = {
|
|
15
16
|
id: string;
|
|
@@ -18,15 +19,5 @@ export type ICheckoutItem = {
|
|
|
18
19
|
cover_url: string;
|
|
19
20
|
price: number;
|
|
20
21
|
quantity: number;
|
|
21
|
-
|
|
22
|
-
feature_id: string;
|
|
22
|
+
unit_measurement: UnitMeasurementEnum;
|
|
23
23
|
};
|
|
24
|
-
export interface IBulkPurchase {
|
|
25
|
-
source_type: BulkPurchaseSourceTypeEnum;
|
|
26
|
-
source_id?: string | null;
|
|
27
|
-
expires_at?: Date | null;
|
|
28
|
-
}
|
|
29
|
-
export interface ISubscribe {
|
|
30
|
-
plan_id: string;
|
|
31
|
-
interval: PaymentIntervalType;
|
|
32
|
-
}
|
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BulkPurchaseSourceTypeEnum = exports.TextAlignmentEnum = exports.LeaseDurationEnum = exports.LeaseTermTypeEnum = exports.LeaseCategoryEnum = exports.LeaseTypeEnum = exports.LeaseNoticeTypeEnum = exports.SignatureDateTypeEnum = exports.SignActionEnum = exports.NotificationTypeEnum = exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
|
|
3
|
+
exports.UnitMeasurementEnum = exports.BulkPurchaseSourceTypeEnum = exports.TextAlignmentEnum = exports.LeaseDurationEnum = exports.LeaseTermTypeEnum = exports.LeaseCategoryEnum = exports.LeaseTypeEnum = exports.LeaseNoticeTypeEnum = exports.SignatureDateTypeEnum = exports.SignActionEnum = exports.NotificationTypeEnum = exports.SignStatusEnum = exports.SignatureType = exports.LeaseStatusEnum = exports.RentTypeEnum = exports.PartyTypeEnum = void 0;
|
|
4
4
|
var PartyTypeEnum;
|
|
5
5
|
(function (PartyTypeEnum) {
|
|
6
6
|
PartyTypeEnum["default"] = "";
|
|
@@ -105,3 +105,8 @@ var BulkPurchaseSourceTypeEnum;
|
|
|
105
105
|
BulkPurchaseSourceTypeEnum["PROMOTION"] = "promotion";
|
|
106
106
|
BulkPurchaseSourceTypeEnum["REFERRAL"] = "referral";
|
|
107
107
|
})(BulkPurchaseSourceTypeEnum || (exports.BulkPurchaseSourceTypeEnum = BulkPurchaseSourceTypeEnum = {}));
|
|
108
|
+
var UnitMeasurementEnum;
|
|
109
|
+
(function (UnitMeasurementEnum) {
|
|
110
|
+
UnitMeasurementEnum["UNIT"] = "unit";
|
|
111
|
+
UnitMeasurementEnum["MEGABYTE"] = "megabyte";
|
|
112
|
+
})(UnitMeasurementEnum || (exports.UnitMeasurementEnum = UnitMeasurementEnum = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -81,4 +81,4 @@ __exportStar(require("./user"), exports);
|
|
|
81
81
|
__exportStar(require("./yes-no"), exports);
|
|
82
82
|
__exportStar(require("./contractUsage"), exports);
|
|
83
83
|
__exportStar(require("./signature-confirmation"), exports);
|
|
84
|
-
__exportStar(require("./
|
|
84
|
+
__exportStar(require("./billing"), exports);
|
package/package.json
CHANGED