decide the withdrawal window for an early one-time renewal #150
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment#150
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
purchaseOfchains a contiguous one-time extension to the original purchase (src/billing.ts:294-324,:1688). The withdrawal window is judged from the original purchase.Case: a customer pays the next one-time year on day 330 and withdraws on day 335. The request is refused as
withdrawal_window_closed, although the paid year has not started and the payment is 5 days old.This needs a legal answer before code: does each extension payment carry its own withdrawal right? If yes, judge the window from the extension charge's own payment date.
Status 2026-10-13: the question is with counsel. Behaviour on main (0.16.0) is unchanged by #176: an early one-time extension reuses the subscription, and
withdrawjudges the window from the first purchase (purchaseOf,contractAt), so day 330 pay then day 335 withdraw is refused. Test 'keeps the withdrawal window of the first purchase on an early renewal' pins it.If each extension needs its own window, the change is a partial withdrawal: refund only the unstarted extension in full and keep the current year. That touches the window check, the sub-wide
withdrawnAt, andwithdrawalDeadlinein the status. The same applies to one-time card payments once they exist.Question as sent to counsel (2026-10-13):
Status 2026-10-15: no answer from counsel yet.
A second consumer-law question, from #52 (2026-10-24). The accountant confirmed it is fine for bookkeeping, but cannot judge it legally:
The first period and the withdrawal window run from Mollie's
paidAt. If a payment is registered late, the customer has fewer of their 14 days left, and those days count as used in a pro-rata withdrawal refund. Is that lawful, or must the window run from the order instead?