-
Notifications
You must be signed in to change notification settings - Fork 10
/
types.d.ts
68 lines (62 loc) · 1.17 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
type TPrice = {
id: string;
object: string;
active: boolean;
billing_scheme: string;
created: number;
currency: string;
custom_unit_amount: null;
livemode: boolean;
lookup_key: null;
metadata: Metadata;
nickname: null;
product: string;
recurring: Recurring;
tax_behavior: string;
tiers_mode: null;
transform_quantity: null;
type: string;
unit_amount: number;
unit_amount_decimal: string;
};
type Metadata = {};
type Recurring = {
aggregate_usage: null;
interval: string;
interval_count: number;
usage_type: string;
};
type TProduct = {
id: string;
object: string;
active: boolean;
created: number;
default_price: null;
description: null;
features: any[];
images: any[];
livemode: boolean;
metadata: Metadata;
name: string;
package_dimensions: null;
shippable: null;
statement_descriptor: null;
tax_code: null;
unit_label: null;
updated: number;
url: null;
};
type Metadata = {
ItemName: string;
ItemId: string;
Duration: string;
Sku: string;
Service_SKU: string;
};
type SubscriptionPlan = {
id: string;
name: string;
descriptionPoints: string[];
stripePriceId: string;
price: number;
};