@royalinvest/dto 0.49.4 → 0.49.6
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/checkout.d.ts +18 -1
- package/dist/checkout.js +8 -0
- package/dist/enum/index.d.ts +0 -2
- package/dist/enum/index.js +0 -2
- package/dist/invoiceFormData.d.ts +51 -0
- package/dist/invoiceFormData.js +2 -0
- package/package.json +1 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export interface ICheckout {
|
|
|
7
7
|
currency: string;
|
|
8
8
|
items: ICheckoutItem[];
|
|
9
9
|
is_subscription: boolean;
|
|
10
|
-
|
|
10
|
+
bulk_purchase?: IBulkPurchase;
|
|
11
|
+
subscribe?: ISubscribe;
|
|
11
12
|
}
|
|
12
13
|
export type ICheckoutItem = {
|
|
13
14
|
id: string;
|
|
@@ -18,3 +19,19 @@ export type ICheckoutItem = {
|
|
|
18
19
|
quantity: number;
|
|
19
20
|
subTotal: number;
|
|
20
21
|
};
|
|
22
|
+
export interface IBulkPurchase {
|
|
23
|
+
feature_id: string;
|
|
24
|
+
source_type: BulkPurchaseSourceTypeEnum;
|
|
25
|
+
source_id?: string | null;
|
|
26
|
+
expires_at?: Date | null;
|
|
27
|
+
}
|
|
28
|
+
export interface ISubscribe {
|
|
29
|
+
plan_id: string;
|
|
30
|
+
interval: PaymentIntervalType;
|
|
31
|
+
}
|
|
32
|
+
export declare enum BulkPurchaseSourceTypeEnum {
|
|
33
|
+
SYSTEM = "system",
|
|
34
|
+
USER = "user",
|
|
35
|
+
PROMOTION = "promotion",
|
|
36
|
+
REFERRAL = "referral"
|
|
37
|
+
}
|
package/dist/checkout.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BulkPurchaseSourceTypeEnum = void 0;
|
|
4
|
+
var BulkPurchaseSourceTypeEnum;
|
|
5
|
+
(function (BulkPurchaseSourceTypeEnum) {
|
|
6
|
+
BulkPurchaseSourceTypeEnum["SYSTEM"] = "system";
|
|
7
|
+
BulkPurchaseSourceTypeEnum["USER"] = "user";
|
|
8
|
+
BulkPurchaseSourceTypeEnum["PROMOTION"] = "promotion";
|
|
9
|
+
BulkPurchaseSourceTypeEnum["REFERRAL"] = "referral";
|
|
10
|
+
})(BulkPurchaseSourceTypeEnum || (exports.BulkPurchaseSourceTypeEnum = BulkPurchaseSourceTypeEnum = {}));
|
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -76,8 +76,6 @@ var LeaseCategoryEnum;
|
|
|
76
76
|
(function (LeaseCategoryEnum) {
|
|
77
77
|
LeaseCategoryEnum["Draft"] = "draft";
|
|
78
78
|
LeaseCategoryEnum["Active"] = "active";
|
|
79
|
-
LeaseCategoryEnum["Deleted"] = "deleted";
|
|
80
|
-
LeaseCategoryEnum["Archived"] = "archived";
|
|
81
79
|
LeaseCategoryEnum["Other"] = "other";
|
|
82
80
|
LeaseCategoryEnum["Default"] = "default";
|
|
83
81
|
})(LeaseCategoryEnum || (exports.LeaseCategoryEnum = LeaseCategoryEnum = {}));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface IInvoiceContact {
|
|
2
|
+
name: string;
|
|
3
|
+
address: string;
|
|
4
|
+
city: string;
|
|
5
|
+
postal: string;
|
|
6
|
+
country: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
email: string;
|
|
9
|
+
website?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IInvoiceField {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string | number | IInvoiceContact | null;
|
|
14
|
+
}
|
|
15
|
+
export interface IInvoiceTable<T> {
|
|
16
|
+
headers: string[];
|
|
17
|
+
items: T[];
|
|
18
|
+
}
|
|
19
|
+
export interface IInvoiceItem {
|
|
20
|
+
description: string;
|
|
21
|
+
quantity: number;
|
|
22
|
+
unit_price: string;
|
|
23
|
+
total_price: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ITax {
|
|
26
|
+
description: string;
|
|
27
|
+
rate: string;
|
|
28
|
+
amount: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IPaymentInfo {
|
|
31
|
+
message: IInvoiceField;
|
|
32
|
+
support: IInvoiceField;
|
|
33
|
+
}
|
|
34
|
+
export interface IInvoiceFormData {
|
|
35
|
+
invoice_number: IInvoiceField;
|
|
36
|
+
currency: string;
|
|
37
|
+
date: IInvoiceField;
|
|
38
|
+
status: IInvoiceField;
|
|
39
|
+
company_info: IInvoiceField;
|
|
40
|
+
customer_info: IInvoiceField;
|
|
41
|
+
tax_registration_numbers: IInvoiceField[];
|
|
42
|
+
items_table: IInvoiceTable<IInvoiceItem>;
|
|
43
|
+
taxes_table: IInvoiceTable<ITax>;
|
|
44
|
+
subtotal: IInvoiceField;
|
|
45
|
+
total: IInvoiceField;
|
|
46
|
+
payment_info: IPaymentInfo;
|
|
47
|
+
payment_method: IInvoiceField;
|
|
48
|
+
last4_digits: IInvoiceField;
|
|
49
|
+
stripe_transaction_id: string;
|
|
50
|
+
stripe_session_id: string;
|
|
51
|
+
}
|
package/package.json
CHANGED