feat(stripe): extract async-stripe StripeService into dunite-stripe (DEV-515 pt 2) #30
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/DEV-515-dunite-stripe-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
DEV-515 part 2: extract bunyip's 1642-line Stripe service into the shared
dunite-stripecrate - the async-stripeStripeService, runtimeStripeConfig, and the webhook-signature verify (delegating todunite-stripe-core). Includes the DTOs slice (the branch is stacked on it, so those commits appear here too until #29 merges).Error model: neutral
StripeServiceErrorMethods return a crate-local
StripeServiceError(internal/validation/not_found/unauthorized, mirroringAppError); each consumer maps it with oneFromimpl. Returningdunite_core::AppErrordirectly was tried but forces a whole-tree dunite rev unification (download/oci/oidc) onto an unmerged rev - avoided by staying neutral. Consumer cost: ~27.map_err, in the wiring PR.Stays per-consumer
from_env/from_db_model(secret encryption + env conventions), encryption helpers, the DB config model, checkout-URL env defaults, tier reconciliation, admin presentation, webhook dispatch.Tests
cargo build+clippy -D warnings+fmt --checkclean. Carries its own async-stripe 0.37 + reqwest 0.12.🤖 Generated with Claude Code
https://claude.ai/code/session_01QLd9c7niucrqx68v4AxVss