@royalinvest/dto 0.49.9 → 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 +6 -16
- 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,16 +19,5 @@ export type ICheckoutItem = {
|
|
|
18
19
|
cover_url: string;
|
|
19
20
|
price: number;
|
|
20
21
|
quantity: number;
|
|
21
|
-
subTotal: number;
|
|
22
|
-
feature_id: string;
|
|
23
22
|
unit_measurement: UnitMeasurementEnum;
|
|
24
23
|
};
|
|
25
|
-
export interface IBulkPurchase {
|
|
26
|
-
source_type: BulkPurchaseSourceTypeEnum;
|
|
27
|
-
source_id?: string | null;
|
|
28
|
-
expires_at?: Date | null;
|
|
29
|
-
}
|
|
30
|
-
export interface ISubscribe {
|
|
31
|
-
plan_id: string;
|
|
32
|
-
interval: PaymentIntervalType;
|
|
33
|
-
}
|
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