forked from RhysSullivan/executor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautumn.config.ts
More file actions
109 lines (102 loc) · 1.88 KB
/
Copy pathautumn.config.ts
File metadata and controls
109 lines (102 loc) · 1.88 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import { feature, item, plan } from "atmn";
// Features
export const seats = feature({
id: "seats",
name: "Seats",
type: "metered",
consumable: false,
});
export const executions = feature({
id: "executions",
name: "Executions",
type: "metered",
consumable: true,
});
export const domainVerification = feature({
id: "domain-verification",
name: "Domain Verification",
type: "boolean",
});
// Plans
export const free = plan({
id: "free",
name: "Free",
autoEnable: true,
items: [
item({
featureId: executions.id,
included: 5000,
reset: { interval: "month" },
}),
],
});
export const hobby = plan({
id: "hobby",
name: "Hobby",
price: {
amount: 10,
interval: "month",
},
items: [
item({
featureId: seats.id,
included: 1,
price: {
amount: 10,
billingUnits: 1,
billingMethod: "usage_based",
interval: "month",
},
}),
item({
featureId: executions.id,
included: 50000,
reset: { interval: "month" },
}),
],
});
export const professional = plan({
id: "professional",
name: "Professional",
price: {
amount: 40,
interval: "month",
},
items: [
item({
featureId: seats.id,
included: 1,
price: {
amount: 40,
billingUnits: 1,
billingMethod: "usage_based",
interval: "month",
},
}),
item({
featureId: executions.id,
included: 100000,
reset: { interval: "month" },
}),
item({
featureId: domainVerification.id,
}),
],
});
// Overage add-on
export const executionTopUp = plan({
id: "execution-top-up",
name: "Execution Top-Up",
addOn: true,
items: [
item({
featureId: executions.id,
price: {
amount: 1,
billingUnits: 10000,
billingMethod: "prepaid",
interval: "month",
},
}),
],
});