decide the withdrawal window for an early one-time renewal #150

Öppen
öppnade 2026-10-12 13:15:08 +00:00 av supernaut · 4 kommentarer
Ägare

purchaseOf chains 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.

`purchaseOf` chains 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.
supernaut lade till detta till projektet Bitborg Payment 2026-10-12 13:16:18 +00:00
Upphovsperson
Ägare

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 withdraw judges 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, and withdrawalDeadline in the status. The same applies to one-time card payments once they exist.

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 `withdraw` judges 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`, and `withdrawalDeadline` in the status. The same applies to one-time card payments once they exist.
supernaut lade till
blocked
och tog bort
needs-info
etiketter 2026-10-13 20:34:57 +00:00
Upphovsperson
Ägare

Question as sent to counsel (2026-10-13):

Kunder kan betala för ett år i taget utan automatisk förnyelse. Innan året tar slut kan kunden betala för nästa årsperiod, som då börjar när den pågående perioden slutar.

Uppstår ett nytt distansavtal med egen ångerrätt på 14 dagar enligt distansavtalslagen (2005:59) när kunden betalar för nästa år? Om ja: räknas ångerfristen från betalningen, och måste vi återbetala hela beloppet om kunden ångrar sig innan det nya året har börjat?

Question as sent to counsel (2026-10-13): > Kunder kan betala för ett år i taget utan automatisk förnyelse. Innan året tar slut kan kunden betala för nästa årsperiod, som då börjar när den pågående perioden slutar. > > Uppstår ett nytt distansavtal med egen ångerrätt på 14 dagar enligt distansavtalslagen (2005:59) när kunden betalar för nästa år? Om ja: räknas ångerfristen från betalningen, och måste vi återbetala hela beloppet om kunden ångrar sig innan det nya året har börjat?
Upphovsperson
Ägare

Status 2026-10-15: no answer from counsel yet.

Status 2026-10-15: no answer from counsel yet.
Upphovsperson
Ägare

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?

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?
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment#150
Ingen beskrivning angiven.