chore(members): TODO comment for cadence-switch sub-replacement flow
This commit is contained in:
parent
e756170884
commit
e19b16a5cc
1 changed files with 4 additions and 0 deletions
|
|
@ -203,6 +203,10 @@ export default defineEventHandler(async (event) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const memberCadence = member.billingCadence || 'monthly';
|
const memberCadence = member.billingCadence || 'monthly';
|
||||||
|
// TODO: Cadence-switch UI on /member/account. Plain Helcim subscription
|
||||||
|
// updates can't change billing period — would need a sub-replacement flow
|
||||||
|
// (cancel current, create new at desired cadence). See
|
||||||
|
// docs/LAUNCH_READINESS.md "Known gotchas" → "Cadence switch rejected".
|
||||||
if (body.cadence && body.cadence !== memberCadence) {
|
if (body.cadence && body.cadence !== memberCadence) {
|
||||||
throw createError({
|
throw createError({
|
||||||
statusCode: 400,
|
statusCode: 400,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue