Job flow 2 · task:billing-cycle (plan change paid with a just-saved Stripe card)

Job flow 2 · task:billing-cycle (plan change paid with a just-saved Stripe card) A workflow diagram generated by Archify. 01 / Queued by EX / Skips / declines 03 / billingCycleWorker 04 / Writes, emails, next jobs Stripe card saved · trial, upgrade, reactivate · Queued by Stripe card saved trial, upgrade, reactivate Skip · status or cycle moved · Skips / declines Skip status or cycle moved Skip: no card · nothing charged · Skips / declines Skip: no card nothing charged Declined · email, nothing changes · Skips / declines Declined email, nothing changes Job fires now · …-<cycle>-<reason> · billingCycleWorker Job fires now …-<cycle>-<reason> Change still valid? · status + same cycle · billingCycleWorker Change still valid? status + same cycle Stripe card saved? · externalTokenId · billingCycleWorker Stripe card saved? externalTokenId Amount ≤ 0? · discount or tiny proration · billingCycleWorker Amount ≤ 0? discount or tiny proration Charge · lock unless upgrade · billingCycleWorker Charge lock unless upgrade Stripe result · webhook decides · billingCycleWorker Stripe result webhook decides Settled internally · change applied, $0 · Writes, emails, next jobs Settled internally change applied, $0 Change applied · by success webhook · Writes, emails, next jobs Change applied by success webhook delay 0 declined no yes no yes yes no paid Legend User UI Agent logic Policy Tool action Context / trace External system