@seedgrid/fe-billing-user 2026.7.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/README.md +78 -0
- package/dist/billing.d.ts +234 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/messages.d.ts +348 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +148 -0
- package/dist/module.d.ts +3 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.js +13 -0
- package/dist/module.json +15 -0
- package/dist/paths.d.ts +29 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +35 -0
- package/dist/server/create-billing-user-server.d.ts +34 -0
- package/dist/server/create-billing-user-server.d.ts.map +1 -0
- package/dist/server/create-billing-user-server.js +33 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +2 -0
- package/package.json +43 -0
- package/scaffold/README.md +72 -0
- package/scaffold/src/app/api/billing/cancel/route.ts +10 -0
- package/scaffold/src/app/api/billing/cancel-scheduled-change/route.ts +10 -0
- package/scaffold/src/app/api/billing/change-plan/route.ts +14 -0
- package/scaffold/src/app/api/billing/change-preview/route.ts +13 -0
- package/scaffold/src/app/api/billing/checkout/route.ts +14 -0
- package/scaffold/src/app/api/billing/invoices/route.ts +14 -0
- package/scaffold/src/app/api/billing/me/route.ts +15 -0
- package/scaffold/src/app/api/billing/plans/route.ts +10 -0
- package/scaffold/src/app/api/billing/portal/route.ts +10 -0
- package/scaffold/src/app/api/billing/reactivate/route.ts +10 -0
- package/scaffold/src/app/api/billing/upcoming/route.ts +10 -0
- package/scaffold/src/app/billing/invoices/page.tsx +213 -0
- package/scaffold/src/app/billing/page.tsx +273 -0
- package/scaffold/src/app/billing/plans/page.tsx +248 -0
- package/scaffold/src/modules/billing-user/config.ts +7 -0
- package/scaffold/src/modules/billing-user/index.ts +17 -0
- package/scaffold/src/modules/billing-user/server.ts.hbs +34 -0
- package/scaffold/src/modules/billing-user/useBillingUserAppShellSections.tsx +59 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
export declare const billingUserMessages: {
|
|
2
|
+
readonly en: {
|
|
3
|
+
"billing.user.title": string;
|
|
4
|
+
"billing.user.description": string;
|
|
5
|
+
"billing.user.manage_action": string;
|
|
6
|
+
"billing.user.view_plans": string;
|
|
7
|
+
"billing.user.load_error": string;
|
|
8
|
+
"billing.user.portal_error": string;
|
|
9
|
+
"billing.user.nav.group": string;
|
|
10
|
+
"billing.user.nav.overview": string;
|
|
11
|
+
"billing.user.nav.plans": string;
|
|
12
|
+
"billing.user.nav.invoices": string;
|
|
13
|
+
"billing.user.no_subscription.title": string;
|
|
14
|
+
"billing.user.no_subscription.description": string;
|
|
15
|
+
"billing.user.no_subscription.action": string;
|
|
16
|
+
"billing.user.plan.title": string;
|
|
17
|
+
"billing.user.plan.price": string;
|
|
18
|
+
"billing.user.plan.pending_change": string;
|
|
19
|
+
"billing.user.plan.cancel_scheduled": string;
|
|
20
|
+
"billing.user.usage.title": string;
|
|
21
|
+
"billing.user.usage.summary": string;
|
|
22
|
+
"billing.user.usage.overage": string;
|
|
23
|
+
"billing.user.actions.cancel": string;
|
|
24
|
+
"billing.user.actions.cancel_title": string;
|
|
25
|
+
"billing.user.actions.cancel_message": string;
|
|
26
|
+
"billing.user.actions.cancel_success": string;
|
|
27
|
+
"billing.user.actions.cancel_error": string;
|
|
28
|
+
"billing.user.actions.reactivate": string;
|
|
29
|
+
"billing.user.actions.reactivate_success": string;
|
|
30
|
+
"billing.user.actions.reactivate_error": string;
|
|
31
|
+
"billing.user.actions.cancel_scheduled_change": string;
|
|
32
|
+
"billing.user.actions.cancel_scheduled_change_success": string;
|
|
33
|
+
"billing.user.actions.cancel_scheduled_change_error": string;
|
|
34
|
+
"billing.user.plans_catalog.title": string;
|
|
35
|
+
"billing.user.plans_catalog.description": string;
|
|
36
|
+
"billing.user.plans_catalog.load_error": string;
|
|
37
|
+
"billing.user.plans_catalog.per_month": string;
|
|
38
|
+
"billing.user.plans_catalog.requests": string;
|
|
39
|
+
"billing.user.plans_catalog.current": string;
|
|
40
|
+
"billing.user.plans_catalog.current_action": string;
|
|
41
|
+
"billing.user.plans_catalog.subscribe_action": string;
|
|
42
|
+
"billing.user.plans_catalog.change_action": string;
|
|
43
|
+
"billing.user.plans_catalog.unavailable": string;
|
|
44
|
+
"billing.user.plans_catalog.checkout_error": string;
|
|
45
|
+
"billing.user.plans_catalog.preview_error": string;
|
|
46
|
+
"billing.user.plans_catalog.change_success": string;
|
|
47
|
+
"billing.user.plans_catalog.change_error": string;
|
|
48
|
+
"billing.user.plans_catalog.empty_title": string;
|
|
49
|
+
"billing.user.plans_catalog.empty": string;
|
|
50
|
+
"billing.user.plans_catalog.pending.title": string;
|
|
51
|
+
"billing.user.plans_catalog.pending.description": string;
|
|
52
|
+
"billing.user.plans_catalog.confirm.title": string;
|
|
53
|
+
"billing.user.plans_catalog.confirm.immediate": string;
|
|
54
|
+
"billing.user.plans_catalog.confirm.upgrade": string;
|
|
55
|
+
"billing.user.plans_catalog.confirm.downgrade": string;
|
|
56
|
+
"billing.user.invoices.title": string;
|
|
57
|
+
"billing.user.invoices.description": string;
|
|
58
|
+
"billing.user.invoices.load_error": string;
|
|
59
|
+
"billing.user.invoices.refresh": string;
|
|
60
|
+
"billing.user.invoices.upcoming.title": string;
|
|
61
|
+
"billing.user.invoices.upcoming.none": string;
|
|
62
|
+
"billing.user.invoices.upcoming.next_attempt": string;
|
|
63
|
+
"billing.user.invoices.history.title": string;
|
|
64
|
+
"billing.user.invoices.history.empty": string;
|
|
65
|
+
"billing.user.invoices.history.view": string;
|
|
66
|
+
"billing.user.invoices.history.column.number": string;
|
|
67
|
+
"billing.user.invoices.history.column.date": string;
|
|
68
|
+
"billing.user.invoices.history.column.amount": string;
|
|
69
|
+
"billing.user.invoices.history.column.status": string;
|
|
70
|
+
};
|
|
71
|
+
readonly es: {
|
|
72
|
+
readonly "billing.user.title": string;
|
|
73
|
+
readonly "billing.user.description": string;
|
|
74
|
+
readonly "billing.user.manage_action": string;
|
|
75
|
+
readonly "billing.user.view_plans": string;
|
|
76
|
+
readonly "billing.user.load_error": string;
|
|
77
|
+
readonly "billing.user.portal_error": string;
|
|
78
|
+
readonly "billing.user.nav.group": string;
|
|
79
|
+
readonly "billing.user.nav.overview": string;
|
|
80
|
+
readonly "billing.user.nav.plans": string;
|
|
81
|
+
readonly "billing.user.nav.invoices": string;
|
|
82
|
+
readonly "billing.user.no_subscription.title": string;
|
|
83
|
+
readonly "billing.user.no_subscription.description": string;
|
|
84
|
+
readonly "billing.user.no_subscription.action": string;
|
|
85
|
+
readonly "billing.user.plan.title": string;
|
|
86
|
+
readonly "billing.user.plan.price": string;
|
|
87
|
+
readonly "billing.user.plan.pending_change": string;
|
|
88
|
+
readonly "billing.user.plan.cancel_scheduled": string;
|
|
89
|
+
readonly "billing.user.usage.title": string;
|
|
90
|
+
readonly "billing.user.usage.summary": string;
|
|
91
|
+
readonly "billing.user.usage.overage": string;
|
|
92
|
+
readonly "billing.user.actions.cancel": string;
|
|
93
|
+
readonly "billing.user.actions.cancel_title": string;
|
|
94
|
+
readonly "billing.user.actions.cancel_message": string;
|
|
95
|
+
readonly "billing.user.actions.cancel_success": string;
|
|
96
|
+
readonly "billing.user.actions.cancel_error": string;
|
|
97
|
+
readonly "billing.user.actions.reactivate": string;
|
|
98
|
+
readonly "billing.user.actions.reactivate_success": string;
|
|
99
|
+
readonly "billing.user.actions.reactivate_error": string;
|
|
100
|
+
readonly "billing.user.actions.cancel_scheduled_change": string;
|
|
101
|
+
readonly "billing.user.actions.cancel_scheduled_change_success": string;
|
|
102
|
+
readonly "billing.user.actions.cancel_scheduled_change_error": string;
|
|
103
|
+
readonly "billing.user.plans_catalog.title": string;
|
|
104
|
+
readonly "billing.user.plans_catalog.description": string;
|
|
105
|
+
readonly "billing.user.plans_catalog.load_error": string;
|
|
106
|
+
readonly "billing.user.plans_catalog.per_month": string;
|
|
107
|
+
readonly "billing.user.plans_catalog.requests": string;
|
|
108
|
+
readonly "billing.user.plans_catalog.current": string;
|
|
109
|
+
readonly "billing.user.plans_catalog.current_action": string;
|
|
110
|
+
readonly "billing.user.plans_catalog.subscribe_action": string;
|
|
111
|
+
readonly "billing.user.plans_catalog.change_action": string;
|
|
112
|
+
readonly "billing.user.plans_catalog.unavailable": string;
|
|
113
|
+
readonly "billing.user.plans_catalog.checkout_error": string;
|
|
114
|
+
readonly "billing.user.plans_catalog.preview_error": string;
|
|
115
|
+
readonly "billing.user.plans_catalog.change_success": string;
|
|
116
|
+
readonly "billing.user.plans_catalog.change_error": string;
|
|
117
|
+
readonly "billing.user.plans_catalog.empty_title": string;
|
|
118
|
+
readonly "billing.user.plans_catalog.empty": string;
|
|
119
|
+
readonly "billing.user.plans_catalog.pending.title": string;
|
|
120
|
+
readonly "billing.user.plans_catalog.pending.description": string;
|
|
121
|
+
readonly "billing.user.plans_catalog.confirm.title": string;
|
|
122
|
+
readonly "billing.user.plans_catalog.confirm.immediate": string;
|
|
123
|
+
readonly "billing.user.plans_catalog.confirm.upgrade": string;
|
|
124
|
+
readonly "billing.user.plans_catalog.confirm.downgrade": string;
|
|
125
|
+
readonly "billing.user.invoices.title": string;
|
|
126
|
+
readonly "billing.user.invoices.description": string;
|
|
127
|
+
readonly "billing.user.invoices.load_error": string;
|
|
128
|
+
readonly "billing.user.invoices.refresh": string;
|
|
129
|
+
readonly "billing.user.invoices.upcoming.title": string;
|
|
130
|
+
readonly "billing.user.invoices.upcoming.none": string;
|
|
131
|
+
readonly "billing.user.invoices.upcoming.next_attempt": string;
|
|
132
|
+
readonly "billing.user.invoices.history.title": string;
|
|
133
|
+
readonly "billing.user.invoices.history.empty": string;
|
|
134
|
+
readonly "billing.user.invoices.history.view": string;
|
|
135
|
+
readonly "billing.user.invoices.history.column.number": string;
|
|
136
|
+
readonly "billing.user.invoices.history.column.date": string;
|
|
137
|
+
readonly "billing.user.invoices.history.column.amount": string;
|
|
138
|
+
readonly "billing.user.invoices.history.column.status": string;
|
|
139
|
+
};
|
|
140
|
+
readonly fr: {
|
|
141
|
+
readonly "billing.user.title": string;
|
|
142
|
+
readonly "billing.user.description": string;
|
|
143
|
+
readonly "billing.user.manage_action": string;
|
|
144
|
+
readonly "billing.user.view_plans": string;
|
|
145
|
+
readonly "billing.user.load_error": string;
|
|
146
|
+
readonly "billing.user.portal_error": string;
|
|
147
|
+
readonly "billing.user.nav.group": string;
|
|
148
|
+
readonly "billing.user.nav.overview": string;
|
|
149
|
+
readonly "billing.user.nav.plans": string;
|
|
150
|
+
readonly "billing.user.nav.invoices": string;
|
|
151
|
+
readonly "billing.user.no_subscription.title": string;
|
|
152
|
+
readonly "billing.user.no_subscription.description": string;
|
|
153
|
+
readonly "billing.user.no_subscription.action": string;
|
|
154
|
+
readonly "billing.user.plan.title": string;
|
|
155
|
+
readonly "billing.user.plan.price": string;
|
|
156
|
+
readonly "billing.user.plan.pending_change": string;
|
|
157
|
+
readonly "billing.user.plan.cancel_scheduled": string;
|
|
158
|
+
readonly "billing.user.usage.title": string;
|
|
159
|
+
readonly "billing.user.usage.summary": string;
|
|
160
|
+
readonly "billing.user.usage.overage": string;
|
|
161
|
+
readonly "billing.user.actions.cancel": string;
|
|
162
|
+
readonly "billing.user.actions.cancel_title": string;
|
|
163
|
+
readonly "billing.user.actions.cancel_message": string;
|
|
164
|
+
readonly "billing.user.actions.cancel_success": string;
|
|
165
|
+
readonly "billing.user.actions.cancel_error": string;
|
|
166
|
+
readonly "billing.user.actions.reactivate": string;
|
|
167
|
+
readonly "billing.user.actions.reactivate_success": string;
|
|
168
|
+
readonly "billing.user.actions.reactivate_error": string;
|
|
169
|
+
readonly "billing.user.actions.cancel_scheduled_change": string;
|
|
170
|
+
readonly "billing.user.actions.cancel_scheduled_change_success": string;
|
|
171
|
+
readonly "billing.user.actions.cancel_scheduled_change_error": string;
|
|
172
|
+
readonly "billing.user.plans_catalog.title": string;
|
|
173
|
+
readonly "billing.user.plans_catalog.description": string;
|
|
174
|
+
readonly "billing.user.plans_catalog.load_error": string;
|
|
175
|
+
readonly "billing.user.plans_catalog.per_month": string;
|
|
176
|
+
readonly "billing.user.plans_catalog.requests": string;
|
|
177
|
+
readonly "billing.user.plans_catalog.current": string;
|
|
178
|
+
readonly "billing.user.plans_catalog.current_action": string;
|
|
179
|
+
readonly "billing.user.plans_catalog.subscribe_action": string;
|
|
180
|
+
readonly "billing.user.plans_catalog.change_action": string;
|
|
181
|
+
readonly "billing.user.plans_catalog.unavailable": string;
|
|
182
|
+
readonly "billing.user.plans_catalog.checkout_error": string;
|
|
183
|
+
readonly "billing.user.plans_catalog.preview_error": string;
|
|
184
|
+
readonly "billing.user.plans_catalog.change_success": string;
|
|
185
|
+
readonly "billing.user.plans_catalog.change_error": string;
|
|
186
|
+
readonly "billing.user.plans_catalog.empty_title": string;
|
|
187
|
+
readonly "billing.user.plans_catalog.empty": string;
|
|
188
|
+
readonly "billing.user.plans_catalog.pending.title": string;
|
|
189
|
+
readonly "billing.user.plans_catalog.pending.description": string;
|
|
190
|
+
readonly "billing.user.plans_catalog.confirm.title": string;
|
|
191
|
+
readonly "billing.user.plans_catalog.confirm.immediate": string;
|
|
192
|
+
readonly "billing.user.plans_catalog.confirm.upgrade": string;
|
|
193
|
+
readonly "billing.user.plans_catalog.confirm.downgrade": string;
|
|
194
|
+
readonly "billing.user.invoices.title": string;
|
|
195
|
+
readonly "billing.user.invoices.description": string;
|
|
196
|
+
readonly "billing.user.invoices.load_error": string;
|
|
197
|
+
readonly "billing.user.invoices.refresh": string;
|
|
198
|
+
readonly "billing.user.invoices.upcoming.title": string;
|
|
199
|
+
readonly "billing.user.invoices.upcoming.none": string;
|
|
200
|
+
readonly "billing.user.invoices.upcoming.next_attempt": string;
|
|
201
|
+
readonly "billing.user.invoices.history.title": string;
|
|
202
|
+
readonly "billing.user.invoices.history.empty": string;
|
|
203
|
+
readonly "billing.user.invoices.history.view": string;
|
|
204
|
+
readonly "billing.user.invoices.history.column.number": string;
|
|
205
|
+
readonly "billing.user.invoices.history.column.date": string;
|
|
206
|
+
readonly "billing.user.invoices.history.column.amount": string;
|
|
207
|
+
readonly "billing.user.invoices.history.column.status": string;
|
|
208
|
+
};
|
|
209
|
+
readonly "pt-BR": {
|
|
210
|
+
readonly "billing.user.title": string;
|
|
211
|
+
readonly "billing.user.description": string;
|
|
212
|
+
readonly "billing.user.manage_action": string;
|
|
213
|
+
readonly "billing.user.load_error": string;
|
|
214
|
+
readonly "billing.user.portal_error": string;
|
|
215
|
+
readonly "billing.user.no_subscription.title": string;
|
|
216
|
+
readonly "billing.user.no_subscription.description": string;
|
|
217
|
+
readonly "billing.user.plan.title": string;
|
|
218
|
+
readonly "billing.user.plan.price": string;
|
|
219
|
+
readonly "billing.user.plan.pending_change": string;
|
|
220
|
+
readonly "billing.user.plan.cancel_scheduled": string;
|
|
221
|
+
readonly "billing.user.usage.title": string;
|
|
222
|
+
readonly "billing.user.usage.summary": string;
|
|
223
|
+
readonly "billing.user.usage.overage": string;
|
|
224
|
+
readonly "billing.user.view_plans": string;
|
|
225
|
+
readonly "billing.user.nav.group": string;
|
|
226
|
+
readonly "billing.user.nav.overview": string;
|
|
227
|
+
readonly "billing.user.nav.plans": string;
|
|
228
|
+
readonly "billing.user.nav.invoices": string;
|
|
229
|
+
readonly "billing.user.no_subscription.action": string;
|
|
230
|
+
readonly "billing.user.actions.cancel": string;
|
|
231
|
+
readonly "billing.user.actions.cancel_title": string;
|
|
232
|
+
readonly "billing.user.actions.cancel_message": string;
|
|
233
|
+
readonly "billing.user.actions.cancel_success": string;
|
|
234
|
+
readonly "billing.user.actions.cancel_error": string;
|
|
235
|
+
readonly "billing.user.actions.reactivate": string;
|
|
236
|
+
readonly "billing.user.actions.reactivate_success": string;
|
|
237
|
+
readonly "billing.user.actions.reactivate_error": string;
|
|
238
|
+
readonly "billing.user.actions.cancel_scheduled_change": string;
|
|
239
|
+
readonly "billing.user.actions.cancel_scheduled_change_success": string;
|
|
240
|
+
readonly "billing.user.actions.cancel_scheduled_change_error": string;
|
|
241
|
+
readonly "billing.user.plans_catalog.title": string;
|
|
242
|
+
readonly "billing.user.plans_catalog.description": string;
|
|
243
|
+
readonly "billing.user.plans_catalog.load_error": string;
|
|
244
|
+
readonly "billing.user.plans_catalog.per_month": string;
|
|
245
|
+
readonly "billing.user.plans_catalog.requests": string;
|
|
246
|
+
readonly "billing.user.plans_catalog.current": string;
|
|
247
|
+
readonly "billing.user.plans_catalog.current_action": string;
|
|
248
|
+
readonly "billing.user.plans_catalog.subscribe_action": string;
|
|
249
|
+
readonly "billing.user.plans_catalog.change_action": string;
|
|
250
|
+
readonly "billing.user.plans_catalog.unavailable": string;
|
|
251
|
+
readonly "billing.user.plans_catalog.checkout_error": string;
|
|
252
|
+
readonly "billing.user.plans_catalog.preview_error": string;
|
|
253
|
+
readonly "billing.user.plans_catalog.change_success": string;
|
|
254
|
+
readonly "billing.user.plans_catalog.change_error": string;
|
|
255
|
+
readonly "billing.user.plans_catalog.empty_title": string;
|
|
256
|
+
readonly "billing.user.plans_catalog.empty": string;
|
|
257
|
+
readonly "billing.user.plans_catalog.pending.title": string;
|
|
258
|
+
readonly "billing.user.plans_catalog.pending.description": string;
|
|
259
|
+
readonly "billing.user.plans_catalog.confirm.title": string;
|
|
260
|
+
readonly "billing.user.plans_catalog.confirm.immediate": string;
|
|
261
|
+
readonly "billing.user.plans_catalog.confirm.upgrade": string;
|
|
262
|
+
readonly "billing.user.plans_catalog.confirm.downgrade": string;
|
|
263
|
+
readonly "billing.user.invoices.title": string;
|
|
264
|
+
readonly "billing.user.invoices.description": string;
|
|
265
|
+
readonly "billing.user.invoices.load_error": string;
|
|
266
|
+
readonly "billing.user.invoices.refresh": string;
|
|
267
|
+
readonly "billing.user.invoices.upcoming.title": string;
|
|
268
|
+
readonly "billing.user.invoices.upcoming.none": string;
|
|
269
|
+
readonly "billing.user.invoices.upcoming.next_attempt": string;
|
|
270
|
+
readonly "billing.user.invoices.history.title": string;
|
|
271
|
+
readonly "billing.user.invoices.history.empty": string;
|
|
272
|
+
readonly "billing.user.invoices.history.view": string;
|
|
273
|
+
readonly "billing.user.invoices.history.column.number": string;
|
|
274
|
+
readonly "billing.user.invoices.history.column.date": string;
|
|
275
|
+
readonly "billing.user.invoices.history.column.amount": string;
|
|
276
|
+
readonly "billing.user.invoices.history.column.status": string;
|
|
277
|
+
};
|
|
278
|
+
readonly "pt-PT": {
|
|
279
|
+
readonly "billing.user.title": string;
|
|
280
|
+
readonly "billing.user.description": string;
|
|
281
|
+
readonly "billing.user.manage_action": string;
|
|
282
|
+
readonly "billing.user.load_error": string;
|
|
283
|
+
readonly "billing.user.portal_error": string;
|
|
284
|
+
readonly "billing.user.no_subscription.title": string;
|
|
285
|
+
readonly "billing.user.no_subscription.description": string;
|
|
286
|
+
readonly "billing.user.plan.title": string;
|
|
287
|
+
readonly "billing.user.plan.price": string;
|
|
288
|
+
readonly "billing.user.plan.pending_change": string;
|
|
289
|
+
readonly "billing.user.plan.cancel_scheduled": string;
|
|
290
|
+
readonly "billing.user.usage.title": string;
|
|
291
|
+
readonly "billing.user.usage.summary": string;
|
|
292
|
+
readonly "billing.user.usage.overage": string;
|
|
293
|
+
readonly "billing.user.view_plans": string;
|
|
294
|
+
readonly "billing.user.nav.group": string;
|
|
295
|
+
readonly "billing.user.nav.overview": string;
|
|
296
|
+
readonly "billing.user.nav.plans": string;
|
|
297
|
+
readonly "billing.user.nav.invoices": string;
|
|
298
|
+
readonly "billing.user.no_subscription.action": string;
|
|
299
|
+
readonly "billing.user.actions.cancel": string;
|
|
300
|
+
readonly "billing.user.actions.cancel_title": string;
|
|
301
|
+
readonly "billing.user.actions.cancel_message": string;
|
|
302
|
+
readonly "billing.user.actions.cancel_success": string;
|
|
303
|
+
readonly "billing.user.actions.cancel_error": string;
|
|
304
|
+
readonly "billing.user.actions.reactivate": string;
|
|
305
|
+
readonly "billing.user.actions.reactivate_success": string;
|
|
306
|
+
readonly "billing.user.actions.reactivate_error": string;
|
|
307
|
+
readonly "billing.user.actions.cancel_scheduled_change": string;
|
|
308
|
+
readonly "billing.user.actions.cancel_scheduled_change_success": string;
|
|
309
|
+
readonly "billing.user.actions.cancel_scheduled_change_error": string;
|
|
310
|
+
readonly "billing.user.plans_catalog.title": string;
|
|
311
|
+
readonly "billing.user.plans_catalog.description": string;
|
|
312
|
+
readonly "billing.user.plans_catalog.load_error": string;
|
|
313
|
+
readonly "billing.user.plans_catalog.per_month": string;
|
|
314
|
+
readonly "billing.user.plans_catalog.requests": string;
|
|
315
|
+
readonly "billing.user.plans_catalog.current": string;
|
|
316
|
+
readonly "billing.user.plans_catalog.current_action": string;
|
|
317
|
+
readonly "billing.user.plans_catalog.subscribe_action": string;
|
|
318
|
+
readonly "billing.user.plans_catalog.change_action": string;
|
|
319
|
+
readonly "billing.user.plans_catalog.unavailable": string;
|
|
320
|
+
readonly "billing.user.plans_catalog.checkout_error": string;
|
|
321
|
+
readonly "billing.user.plans_catalog.preview_error": string;
|
|
322
|
+
readonly "billing.user.plans_catalog.change_success": string;
|
|
323
|
+
readonly "billing.user.plans_catalog.change_error": string;
|
|
324
|
+
readonly "billing.user.plans_catalog.empty_title": string;
|
|
325
|
+
readonly "billing.user.plans_catalog.empty": string;
|
|
326
|
+
readonly "billing.user.plans_catalog.pending.title": string;
|
|
327
|
+
readonly "billing.user.plans_catalog.pending.description": string;
|
|
328
|
+
readonly "billing.user.plans_catalog.confirm.title": string;
|
|
329
|
+
readonly "billing.user.plans_catalog.confirm.immediate": string;
|
|
330
|
+
readonly "billing.user.plans_catalog.confirm.upgrade": string;
|
|
331
|
+
readonly "billing.user.plans_catalog.confirm.downgrade": string;
|
|
332
|
+
readonly "billing.user.invoices.title": string;
|
|
333
|
+
readonly "billing.user.invoices.description": string;
|
|
334
|
+
readonly "billing.user.invoices.load_error": string;
|
|
335
|
+
readonly "billing.user.invoices.refresh": string;
|
|
336
|
+
readonly "billing.user.invoices.upcoming.title": string;
|
|
337
|
+
readonly "billing.user.invoices.upcoming.none": string;
|
|
338
|
+
readonly "billing.user.invoices.upcoming.next_attempt": string;
|
|
339
|
+
readonly "billing.user.invoices.history.title": string;
|
|
340
|
+
readonly "billing.user.invoices.history.empty": string;
|
|
341
|
+
readonly "billing.user.invoices.history.view": string;
|
|
342
|
+
readonly "billing.user.invoices.history.column.number": string;
|
|
343
|
+
readonly "billing.user.invoices.history.column.date": string;
|
|
344
|
+
readonly "billing.user.invoices.history.column.amount": string;
|
|
345
|
+
readonly "billing.user.invoices.history.column.status": string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAqKA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtB,CAAC"}
|
package/dist/messages.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// Mensagens das telas de billing do usuário (scaffold/src/app/billing/**):
|
|
2
|
+
// visão geral da assinatura, catálogo/checkout, troca/cancelamento, faturas.
|
|
3
|
+
// Pacote novo, sem histórico — ver scaffold/README.md.
|
|
4
|
+
const en = {
|
|
5
|
+
"billing.user.title": "Billing",
|
|
6
|
+
"billing.user.description": "Your subscription, plan, and usage for the current cycle.",
|
|
7
|
+
"billing.user.manage_action": "Manage billing",
|
|
8
|
+
"billing.user.view_plans": "View plans",
|
|
9
|
+
"billing.user.load_error": "Could not load your billing information.",
|
|
10
|
+
"billing.user.portal_error": "Could not open the billing portal.",
|
|
11
|
+
"billing.user.nav.group": "Billing",
|
|
12
|
+
"billing.user.nav.overview": "Overview",
|
|
13
|
+
"billing.user.nav.plans": "Plans",
|
|
14
|
+
"billing.user.nav.invoices": "Invoices",
|
|
15
|
+
"billing.user.no_subscription.title": "No active subscription",
|
|
16
|
+
"billing.user.no_subscription.description": "You don't have an active subscription yet.",
|
|
17
|
+
"billing.user.no_subscription.action": "Choose a plan",
|
|
18
|
+
"billing.user.plan.title": "Current plan",
|
|
19
|
+
"billing.user.plan.price": "{price} / month",
|
|
20
|
+
"billing.user.plan.pending_change": "Scheduled change to {planName} at the end of this cycle.",
|
|
21
|
+
"billing.user.plan.cancel_scheduled": "Your subscription is scheduled to cancel at the end of this cycle.",
|
|
22
|
+
"billing.user.usage.title": "Usage this cycle",
|
|
23
|
+
"billing.user.usage.summary": "{used} of {included} requests used",
|
|
24
|
+
"billing.user.usage.overage": "{overage} requests over your plan's quota",
|
|
25
|
+
"billing.user.actions.cancel": "Cancel subscription",
|
|
26
|
+
"billing.user.actions.cancel_title": "Cancel subscription",
|
|
27
|
+
"billing.user.actions.cancel_message": "Your subscription will be cancelled at the end of the current cycle. You keep access until then.",
|
|
28
|
+
"billing.user.actions.cancel_success": "Cancellation scheduled for the end of the cycle.",
|
|
29
|
+
"billing.user.actions.cancel_error": "Could not cancel the subscription.",
|
|
30
|
+
"billing.user.actions.reactivate": "Reactivate",
|
|
31
|
+
"billing.user.actions.reactivate_success": "Subscription reactivated.",
|
|
32
|
+
"billing.user.actions.reactivate_error": "Could not reactivate the subscription.",
|
|
33
|
+
"billing.user.actions.cancel_scheduled_change": "Cancel scheduled change",
|
|
34
|
+
"billing.user.actions.cancel_scheduled_change_success": "Scheduled change cancelled.",
|
|
35
|
+
"billing.user.actions.cancel_scheduled_change_error": "Could not cancel the scheduled change.",
|
|
36
|
+
"billing.user.plans_catalog.title": "Plans",
|
|
37
|
+
"billing.user.plans_catalog.description": "Choose the plan that best fits your usage.",
|
|
38
|
+
"billing.user.plans_catalog.load_error": "Could not load the plans.",
|
|
39
|
+
"billing.user.plans_catalog.per_month": "/ month",
|
|
40
|
+
"billing.user.plans_catalog.requests": "{requests} requests / month",
|
|
41
|
+
"billing.user.plans_catalog.current": "Current plan",
|
|
42
|
+
"billing.user.plans_catalog.current_action": "Your current plan",
|
|
43
|
+
"billing.user.plans_catalog.subscribe_action": "Subscribe",
|
|
44
|
+
"billing.user.plans_catalog.change_action": "Switch to this plan",
|
|
45
|
+
"billing.user.plans_catalog.unavailable": "Not available",
|
|
46
|
+
"billing.user.plans_catalog.checkout_error": "Could not start the checkout.",
|
|
47
|
+
"billing.user.plans_catalog.preview_error": "Could not preview the plan change.",
|
|
48
|
+
"billing.user.plans_catalog.change_success": "Plan updated.",
|
|
49
|
+
"billing.user.plans_catalog.change_error": "Could not change the plan.",
|
|
50
|
+
"billing.user.plans_catalog.empty_title": "No plans available",
|
|
51
|
+
"billing.user.plans_catalog.empty": "There are no plans to subscribe to right now.",
|
|
52
|
+
"billing.user.plans_catalog.pending.title": "Scheduled change",
|
|
53
|
+
"billing.user.plans_catalog.pending.description": "A change to {planName} is scheduled for the end of this cycle.",
|
|
54
|
+
"billing.user.plans_catalog.confirm.title": "Confirm plan change",
|
|
55
|
+
"billing.user.plans_catalog.confirm.immediate": "This is an upgrade. You will be charged {amount} now (prorated).",
|
|
56
|
+
"billing.user.plans_catalog.confirm.upgrade": "This upgrade will take effect immediately.",
|
|
57
|
+
"billing.user.plans_catalog.confirm.downgrade": "This downgrade will take effect at the end of the current cycle.",
|
|
58
|
+
"billing.user.invoices.title": "Invoices",
|
|
59
|
+
"billing.user.invoices.description": "Your upcoming invoice and payment history.",
|
|
60
|
+
"billing.user.invoices.load_error": "Could not load your invoices.",
|
|
61
|
+
"billing.user.invoices.refresh": "Refresh",
|
|
62
|
+
"billing.user.invoices.upcoming.title": "Upcoming invoice",
|
|
63
|
+
"billing.user.invoices.upcoming.none": "No upcoming invoice.",
|
|
64
|
+
"billing.user.invoices.upcoming.next_attempt": "Next charge on {date}.",
|
|
65
|
+
"billing.user.invoices.history.title": "Invoice history",
|
|
66
|
+
"billing.user.invoices.history.empty": "No invoices yet.",
|
|
67
|
+
"billing.user.invoices.history.view": "View",
|
|
68
|
+
"billing.user.invoices.history.column.number": "Invoice",
|
|
69
|
+
"billing.user.invoices.history.column.date": "Date",
|
|
70
|
+
"billing.user.invoices.history.column.amount": "Amount",
|
|
71
|
+
"billing.user.invoices.history.column.status": "Status",
|
|
72
|
+
};
|
|
73
|
+
const ptBr = {
|
|
74
|
+
"billing.user.title": "Cobrança",
|
|
75
|
+
"billing.user.description": "Sua assinatura, plano e uso do ciclo atual.",
|
|
76
|
+
"billing.user.manage_action": "Gerenciar cobrança",
|
|
77
|
+
"billing.user.load_error": "Não foi possível carregar suas informações de cobrança.",
|
|
78
|
+
"billing.user.portal_error": "Não foi possível abrir o portal de cobrança.",
|
|
79
|
+
"billing.user.no_subscription.title": "Nenhuma assinatura ativa",
|
|
80
|
+
"billing.user.no_subscription.description": "Você ainda não tem uma assinatura ativa.",
|
|
81
|
+
"billing.user.plan.title": "Plano atual",
|
|
82
|
+
"billing.user.plan.price": "{price} / mês",
|
|
83
|
+
"billing.user.plan.pending_change": "Troca agendada para {planName} no fim deste ciclo.",
|
|
84
|
+
"billing.user.plan.cancel_scheduled": "Sua assinatura está agendada pra cancelar no fim deste ciclo.",
|
|
85
|
+
"billing.user.usage.title": "Uso deste ciclo",
|
|
86
|
+
"billing.user.usage.summary": "{used} de {included} solicitações usadas",
|
|
87
|
+
"billing.user.usage.overage": "{overage} solicitações acima da franquia do plano",
|
|
88
|
+
"billing.user.view_plans": "Ver planos",
|
|
89
|
+
"billing.user.nav.group": "Cobrança",
|
|
90
|
+
"billing.user.nav.overview": "Visão geral",
|
|
91
|
+
"billing.user.nav.plans": "Planos",
|
|
92
|
+
"billing.user.nav.invoices": "Faturas",
|
|
93
|
+
"billing.user.no_subscription.action": "Escolher um plano",
|
|
94
|
+
"billing.user.actions.cancel": "Cancelar assinatura",
|
|
95
|
+
"billing.user.actions.cancel_title": "Cancelar assinatura",
|
|
96
|
+
"billing.user.actions.cancel_message": "Sua assinatura será cancelada no fim do ciclo atual. Você mantém o acesso até lá.",
|
|
97
|
+
"billing.user.actions.cancel_success": "Cancelamento agendado para o fim do ciclo.",
|
|
98
|
+
"billing.user.actions.cancel_error": "Não foi possível cancelar a assinatura.",
|
|
99
|
+
"billing.user.actions.reactivate": "Reativar",
|
|
100
|
+
"billing.user.actions.reactivate_success": "Assinatura reativada.",
|
|
101
|
+
"billing.user.actions.reactivate_error": "Não foi possível reativar a assinatura.",
|
|
102
|
+
"billing.user.actions.cancel_scheduled_change": "Cancelar troca agendada",
|
|
103
|
+
"billing.user.actions.cancel_scheduled_change_success": "Troca agendada cancelada.",
|
|
104
|
+
"billing.user.actions.cancel_scheduled_change_error": "Não foi possível cancelar a troca agendada.",
|
|
105
|
+
"billing.user.plans_catalog.title": "Planos",
|
|
106
|
+
"billing.user.plans_catalog.description": "Escolha o plano que melhor se encaixa no seu uso.",
|
|
107
|
+
"billing.user.plans_catalog.load_error": "Não foi possível carregar os planos.",
|
|
108
|
+
"billing.user.plans_catalog.per_month": "/ mês",
|
|
109
|
+
"billing.user.plans_catalog.requests": "{requests} requisições / mês",
|
|
110
|
+
"billing.user.plans_catalog.current": "Plano atual",
|
|
111
|
+
"billing.user.plans_catalog.current_action": "Seu plano atual",
|
|
112
|
+
"billing.user.plans_catalog.subscribe_action": "Assinar",
|
|
113
|
+
"billing.user.plans_catalog.change_action": "Trocar para este plano",
|
|
114
|
+
"billing.user.plans_catalog.unavailable": "Indisponível",
|
|
115
|
+
"billing.user.plans_catalog.checkout_error": "Não foi possível iniciar o checkout.",
|
|
116
|
+
"billing.user.plans_catalog.preview_error": "Não foi possível prever a troca de plano.",
|
|
117
|
+
"billing.user.plans_catalog.change_success": "Plano atualizado.",
|
|
118
|
+
"billing.user.plans_catalog.change_error": "Não foi possível trocar o plano.",
|
|
119
|
+
"billing.user.plans_catalog.empty_title": "Nenhum plano disponível",
|
|
120
|
+
"billing.user.plans_catalog.empty": "Não há planos para assinar no momento.",
|
|
121
|
+
"billing.user.plans_catalog.pending.title": "Troca agendada",
|
|
122
|
+
"billing.user.plans_catalog.pending.description": "Uma troca para {planName} está agendada para o fim deste ciclo.",
|
|
123
|
+
"billing.user.plans_catalog.confirm.title": "Confirmar troca de plano",
|
|
124
|
+
"billing.user.plans_catalog.confirm.immediate": "É um upgrade. Você será cobrado {amount} agora (rateado).",
|
|
125
|
+
"billing.user.plans_catalog.confirm.upgrade": "Este upgrade entra em vigor imediatamente.",
|
|
126
|
+
"billing.user.plans_catalog.confirm.downgrade": "Este downgrade entra em vigor no fim do ciclo atual.",
|
|
127
|
+
"billing.user.invoices.title": "Faturas",
|
|
128
|
+
"billing.user.invoices.description": "Sua próxima fatura e o histórico de pagamentos.",
|
|
129
|
+
"billing.user.invoices.load_error": "Não foi possível carregar suas faturas.",
|
|
130
|
+
"billing.user.invoices.refresh": "Atualizar",
|
|
131
|
+
"billing.user.invoices.upcoming.title": "Próxima fatura",
|
|
132
|
+
"billing.user.invoices.upcoming.none": "Nenhuma fatura futura.",
|
|
133
|
+
"billing.user.invoices.upcoming.next_attempt": "Próxima cobrança em {date}.",
|
|
134
|
+
"billing.user.invoices.history.title": "Histórico de faturas",
|
|
135
|
+
"billing.user.invoices.history.empty": "Nenhuma fatura ainda.",
|
|
136
|
+
"billing.user.invoices.history.view": "Ver",
|
|
137
|
+
"billing.user.invoices.history.column.number": "Fatura",
|
|
138
|
+
"billing.user.invoices.history.column.date": "Data",
|
|
139
|
+
"billing.user.invoices.history.column.amount": "Valor",
|
|
140
|
+
"billing.user.invoices.history.column.status": "Status",
|
|
141
|
+
};
|
|
142
|
+
export const billingUserMessages = {
|
|
143
|
+
en,
|
|
144
|
+
es: { ...en },
|
|
145
|
+
fr: { ...en },
|
|
146
|
+
"pt-BR": { ...en, ...ptBr },
|
|
147
|
+
"pt-PT": { ...en, ...ptBr },
|
|
148
|
+
};
|
package/dist/module.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAQnE,eAAO,MAAM,MAAM,EAAE,yBAMpB,CAAC"}
|
package/dist/module.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Reference-adjacent implementation of the manifest read by the SeedGrid CLI
|
|
2
|
+
// (Rust). See seedgrid-cli/docs/adr/0004-module-manifest-contract.md.
|
|
3
|
+
//
|
|
4
|
+
// `navigation` uses the scaffold-local hook via `@/modules/billing-user`
|
|
5
|
+
// (overview / plans / invoices submenu), gated by BILLING_READ. Same
|
|
6
|
+
// mechanism as fe-security's `navigation`.
|
|
7
|
+
export const module = {
|
|
8
|
+
id: "billing-user",
|
|
9
|
+
requires: ["security"],
|
|
10
|
+
configKey: "billing-user",
|
|
11
|
+
navigation: { import: "useBillingUserAppShellSections", from: "@/modules/billing-user" },
|
|
12
|
+
messages: { import: "billingUserMessages", from: "@seedgrid/fe-billing-user" },
|
|
13
|
+
};
|
package/dist/module.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "billing-user",
|
|
3
|
+
"requires": [
|
|
4
|
+
"security"
|
|
5
|
+
],
|
|
6
|
+
"configKey": "billing-user",
|
|
7
|
+
"navigation": {
|
|
8
|
+
"import": "useBillingUserAppShellSections",
|
|
9
|
+
"from": "@/modules/billing-user"
|
|
10
|
+
},
|
|
11
|
+
"messages": {
|
|
12
|
+
"import": "billingUserMessages",
|
|
13
|
+
"from": "@seedgrid/fe-billing-user"
|
|
14
|
+
}
|
|
15
|
+
}
|
package/dist/paths.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const BillingUserPaths: {
|
|
2
|
+
/** GET — assinatura corrente (pode devolver null). */
|
|
3
|
+
readonly subscription: "/me/subscription";
|
|
4
|
+
/** GET — catálogo de planos assináveis. */
|
|
5
|
+
readonly plans: "/me/plans";
|
|
6
|
+
/** GET — resumo de uso do ciclo. */
|
|
7
|
+
readonly usageSummary: "/me/usage/summary";
|
|
8
|
+
/** GET — extrato detalhado de uso. Requer permissão STATEMENT_READ (403 sem ela). */
|
|
9
|
+
readonly usageStatement: "/me/usage/statement";
|
|
10
|
+
/** POST { planId } — cria sessão de checkout no provedor (1ª assinatura). */
|
|
11
|
+
readonly checkout: "/me/billing/checkout";
|
|
12
|
+
/** POST (sem corpo) — cria sessão do customer portal. */
|
|
13
|
+
readonly portal: "/me/billing/portal";
|
|
14
|
+
/** POST { planId } — troca de plano de assinatura já ATIVA (upgrade/downgrade). */
|
|
15
|
+
readonly changePlan: "/me/billing/change-plan";
|
|
16
|
+
/** POST (sem corpo) — cancela uma troca de plano agendada (downgrade). Idempotente. */
|
|
17
|
+
readonly cancelScheduledChange: "/me/billing/cancel-scheduled-change";
|
|
18
|
+
/** POST (sem corpo) — agenda cancelamento da assinatura ao fim do ciclo vigente. */
|
|
19
|
+
readonly cancel: "/me/billing/cancel";
|
|
20
|
+
/** POST (sem corpo) — reverte um cancelamento agendado. */
|
|
21
|
+
readonly reactivate: "/me/billing/reactivate";
|
|
22
|
+
/** GET ?limit= — extrato de faturas/cobranças do provedor. */
|
|
23
|
+
readonly invoices: "/me/billing/invoices";
|
|
24
|
+
/** GET — prévia da próxima fatura (preço fixo + excedente acumulado). */
|
|
25
|
+
readonly upcoming: "/me/billing/upcoming";
|
|
26
|
+
/** GET ?planId= — prévia do impacto (rateio) de uma troca de plano antes de confirmar. */
|
|
27
|
+
readonly changePreview: "/me/billing/change-preview";
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;IAC3B,sDAAsD;;IAEtD,2CAA2C;;IAE3C,oCAAoC;;IAEpC,qFAAqF;;IAErF,6EAA6E;;IAE7E,yDAAyD;;IAEzD,mFAAmF;;IAEnF,uFAAuF;;IAEvF,oFAAoF;;IAEpF,2DAA2D;;IAE3D,8DAA8D;;IAE9D,yEAAyE;;IAEzE,0FAA0F;;CAElF,CAAC"}
|
package/dist/paths.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Paths de billing do usuário (report-api). Contrato único front/back.
|
|
2
|
+
//
|
|
3
|
+
// Corrigido contra os `@Path` reais (`MeBillingResource`, `BillingCheckoutResource`,
|
|
4
|
+
// `SubscriptionResource`, `UsageResource`, `PlansCatalogResource`): `checkout` e `portal`
|
|
5
|
+
// tinham prefixo errado (`/billing/...` em vez de `/me/billing/...`) — chamada real teria
|
|
6
|
+
// batido em rota inexistente (404). Adicionados os endpoints de troca/cancelamento de
|
|
7
|
+
// assinatura (`MeBillingResource`) que existem no backend mas não tinham contrato no client.
|
|
8
|
+
export const BillingUserPaths = {
|
|
9
|
+
/** GET — assinatura corrente (pode devolver null). */
|
|
10
|
+
subscription: "/me/subscription",
|
|
11
|
+
/** GET — catálogo de planos assináveis. */
|
|
12
|
+
plans: "/me/plans",
|
|
13
|
+
/** GET — resumo de uso do ciclo. */
|
|
14
|
+
usageSummary: "/me/usage/summary",
|
|
15
|
+
/** GET — extrato detalhado de uso. Requer permissão STATEMENT_READ (403 sem ela). */
|
|
16
|
+
usageStatement: "/me/usage/statement",
|
|
17
|
+
/** POST { planId } — cria sessão de checkout no provedor (1ª assinatura). */
|
|
18
|
+
checkout: "/me/billing/checkout",
|
|
19
|
+
/** POST (sem corpo) — cria sessão do customer portal. */
|
|
20
|
+
portal: "/me/billing/portal",
|
|
21
|
+
/** POST { planId } — troca de plano de assinatura já ATIVA (upgrade/downgrade). */
|
|
22
|
+
changePlan: "/me/billing/change-plan",
|
|
23
|
+
/** POST (sem corpo) — cancela uma troca de plano agendada (downgrade). Idempotente. */
|
|
24
|
+
cancelScheduledChange: "/me/billing/cancel-scheduled-change",
|
|
25
|
+
/** POST (sem corpo) — agenda cancelamento da assinatura ao fim do ciclo vigente. */
|
|
26
|
+
cancel: "/me/billing/cancel",
|
|
27
|
+
/** POST (sem corpo) — reverte um cancelamento agendado. */
|
|
28
|
+
reactivate: "/me/billing/reactivate",
|
|
29
|
+
/** GET ?limit= — extrato de faturas/cobranças do provedor. */
|
|
30
|
+
invoices: "/me/billing/invoices",
|
|
31
|
+
/** GET — prévia da próxima fatura (preço fixo + excedente acumulado). */
|
|
32
|
+
upcoming: "/me/billing/upcoming",
|
|
33
|
+
/** GET ?planId= — prévia do impacto (rateio) de uma troca de plano antes de confirmar. */
|
|
34
|
+
changePreview: "/me/billing/change-preview",
|
|
35
|
+
};
|