feat: expose billing summary route - #22
Conversation
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reached
On-demand reviews are free for the next 9 days. After that, they cost $0.25 per reviewed file. Or wait 54 minutes for your next included review. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe SDK adds ChangesPayments summary support
Priority: ⚪ Not assessed Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant TinyHumansClient
participant PaymentsApi
participant PaymentsEndpoint
participant MockServer
TinyHumansClient->>PaymentsApi: get_summary()
PaymentsApi->>MockServer: authenticated GET /payments/summary
MockServer-->>PaymentsApi: billing summary JSON
PaymentsApi-->>TinyHumansClient: DynamicResponse
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The payments summary endpoint is consistently registered and covered by route synchronization and response tests, with no actionable merge risk identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
A rabbit hops through payment lanes Comment |
There was a problem hiding this comment.
tinysweeper found nothing blocking. Approving.
$0.0154 · 135,178 in / 7,715 out · 10,134 cached (7%) · deepseek/deepseek-v4-flash, openrouter/openai/text-embedding-3-small, z-ai/glm-5.2 · 184 embedded
critique: $0.0062 · 60,217 in / 5,517 out · 2,048 cached (3%) · deepseek/deepseek-v4-flash
security: $0.0073 · 56,423 in / 478 out · 8,086 cached (14%) · deepseek/deepseek-v4-flash, z-ai/glm-5.2
tests: $0.0011 · 12,499 in / 104 out · 0 cached (0%) · deepseek/deepseek-v4-flash
description: $0.0004 · 3,922 in / 71 out · 0 cached (0%) · deepseek/deepseek-v4-flash
How this change flows0 changed behaviours across 8 relationships. 6 surrounding behaviours are shown (60 graph nodes walked). 45 further behaviours left out to keep the diagram readable. flowchart LR
n0["DynamicResponse"]:::impacted
n1["Error"]:::impacted
n2["create_coinbase_charge"]:::impacted
n3["create_credit_top_up"]:::impacted
n4["create_auto_recharge_card_setup_intent"]:::impacted
n5["create_stripe_portal_session"]:::impacted
n2 -->|uses| n0
n2 -->|uses| n1
n3 -->|uses| n0
n3 -->|uses| n1
n4 -->|uses| n0
n4 -->|uses| n1
n5 -->|uses| n0
n5 -->|uses| n1
classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Green: changed behaviour. Grey: surrounding behaviour. Arrows name the call, use, implementation, or test relationship. Orange: has findings. Red: has a finding that blocks the merge. |
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Summary
GET /payments/summaryroute to the public payments namespace and generated route registryPaymentsApi::get_summaryfor typed route accessValidation
cargo testcargo clippy --all-targets -- -D warningscargo package(run after commit)Summary by CodeRabbit
New Features
GET /payments/summaryendpoint, returning billing details such as credits, plan information, and related links.Tests