Job flow 1b ยท task:billing-cycle โ€” charge and outcome

Job flow 1b ยท task:billing-cycle โ€” charge and outcome A workflow diagram generated by Archify. 01 / Comes from EX / Stops without charging 03 / billingCycleWorker 04 / After the charge Checks passed ยท flow 1a ยท Comes from Checks passed flow 1a Settled internally ยท no gateway call ยท Stops without charging Settled internally no gateway call PAST_DUE + grace ยท no-payment-method email ยท Stops without charging PAST_DUE + grace no-payment-method email PENDING_REAUTH ยท grace + email, no charge ยท Stops without charging PENDING_REAUTH grace + email, no charge Skip: lock held ยท other charge settles it ยท Stops without charging Skip: lock held other charge settles it Unknown (Stripe) ยท stripe-charge-reconcile ยท Stops without charging Unknown (Stripe) stripe-charge-reconcile Locked price set? ยท lockedPriceAmount ยท billingCycleWorker Locked price set? lockedPriceAmount Amount โ‰ค 0? ยท price โˆ’ running discount ยท billingCycleWorker Amount โ‰ค 0? price โˆ’ running discount Card on file? ยท provider + externalTokenId ยท billingCycleWorker Card on file? provider + externalTokenId Razorpay ceiling ok? ยท only when price pushed ยท billingCycleWorker Razorpay ceiling ok? only when price pushed Lock + charge ยท charge-in-flight, 24 h ยท billingCycleWorker Lock + charge charge-in-flight, 24 h Gateway result ยท Stripe or Razorpay ยท billingCycleWorker Gateway result Stripe or Razorpay PAST_DUE + grace ยท missing price ยท After the charge PAST_DUE + grace missing price Declined now ยท failure handled at once ยท After the charge Declined now failure handled at once Webhook settles ยท success or pending ยท After the charge Webhook settles success or pending no declined ok / pending unknown yes yes no no yes exceeds ok held Legend User UI Agent logic Policy Tool action Context / trace External system