2026-04-06 06:19:10 +02:00
|
|
|
[package]
|
|
|
|
|
name = "payments"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition.workspace = true
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
axum.workspace = true
|
|
|
|
|
serde.workspace = true
|
|
|
|
|
serde_json.workspace = true
|
|
|
|
|
tokio.workspace = true
|
|
|
|
|
tracing.workspace = true
|
|
|
|
|
tracing-subscriber.workspace = true
|
|
|
|
|
reqwest = { version = "0.12", features = ["json", "stream"] }
|
|
|
|
|
anyhow.workspace = true
|
2026-04-06 08:24:08 +02:00
|
|
|
contracts = { path = "../../crates/contracts" }
|
feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10)
- Task 1: Admin endpoints for wallet management
- Task 2: AI Credits admin UI (pricing.tsx, credit.tsx)
- Task 3: Ollama security (NetworkPolicy, prompt validation, audit)
- Task 4: LiteLLM integration (litellm.rs, migrated AI feature handlers)
- Task 5: Refund architecture (ai_refunds table, endpoints)
- Task 6: Coupons, promotions, referrals (order creation with coupon)
- Task 7: Subscription lifecycle (plan upgrades/downgrades, cron jobs)
- Task 8: Credit expiration enforcement (daily cron task)
- Task 9: Token cost engine (ai_model_cost_config, margin view)
- Task 10: Observability (metrics tables, aggregation function)
Cherry-picked from main branch commit 3c0f45f
2026-07-06 01:49:16 +05:30
|
|
|
db = { path = "../../crates/db" }
|
2026-04-06 08:24:08 +02:00
|
|
|
sqlx.workspace = true
|
|
|
|
|
uuid.workspace = true
|
|
|
|
|
chrono.workspace = true
|
2026-06-26 20:47:31 +02:00
|
|
|
sha2 = "0.10"
|
|
|
|
|
hex = "0.4"
|
feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10)
- Task 1: Admin endpoints for wallet management
- Task 2: AI Credits admin UI (pricing.tsx, credit.tsx)
- Task 3: Ollama security (NetworkPolicy, prompt validation, audit)
- Task 4: LiteLLM integration (litellm.rs, migrated AI feature handlers)
- Task 5: Refund architecture (ai_refunds table, endpoints)
- Task 6: Coupons, promotions, referrals (order creation with coupon)
- Task 7: Subscription lifecycle (plan upgrades/downgrades, cron jobs)
- Task 8: Credit expiration enforcement (daily cron task)
- Task 9: Token cost engine (ai_model_cost_config, margin view)
- Task 10: Observability (metrics tables, aggregation function)
Cherry-picked from main branch commit 3c0f45f
2026-07-06 01:49:16 +05:30
|
|
|
rand = "0.8"
|
2026-07-06 02:23:29 +05:30
|
|
|
rust_decimal = { version = "1.35", features = ["db-tokio-postgres"] }
|