def stripe.when

bend-kit-webhooks@0.11.0.1 · webhooks.bend:393

import bend-kit-webhooks@0.11.0.1/webhooks.bend as Webhooks
import Base
import bend-kit-time@0.3.0.0/time.bend as Time
import bend-kit-int@0.2.0.0/int.bend as Int

393def stripe.when(+tol: U32, now: Time.Instant, p: String & List<&2, String>) -> Result<&1, &1, Err, Unit & String & List<&2, String>>:
394  (+ts, vs) = p
395  do Result<&1, &1, Err, Unit & String & List<&2, String>>:
396    t : Int.I64 <- ts.read(ts)
397    w : Unit <- window(tol, now, t)
398    return (Unit{}, ts ++ ".", vs)

Uses (15)

Used by (1)