Skip to content

fix(api): pass settlementmode to api - #4181

Merged
GAlexIHU merged 1 commit into
mainfrom
fix/api-subs-settlement-mode
Apr 20, 2026
Merged

GAlexIHU merged 1 commit into
mainfrom
fix/api-subs-settlement-mode

Conversation

@GAlexIHU

@GAlexIHU GAlexIHU commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Pass field to API

Fixes #(issue)

Notes for reviewer

Summary by CodeRabbit

  • New Features
    • Subscription details now include settlement mode information, providing more comprehensive visibility into subscription configurations.

@GAlexIHU
GAlexIHU requested a review from a team as a code owner April 20, 2026 10:54
@GAlexIHU GAlexIHU added the release-note/misc Miscellaneous changes label Apr 20, 2026
@coderabbitai

coderabbitai Bot commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0aa76ec6-9a75-453a-8dda-424a6147c555

📥 Commits

Reviewing files that changed from the base of the PR and between fd00eee and 782ff88.

📒 Files selected for processing (1)
  • openmeter/productcatalog/subscription/http/mapping.go

📝 Walkthrough

Walkthrough

A single field assignment was added to the MapSubscriptionViewToAPI function, which now includes the SettlementMode field when constructing an api.SubscriptionExpanded object.

Changes

Cohort / File(s) Summary
Settlement Mode Mapping
openmeter/productcatalog/subscription/http/mapping.go
Added SettlementMode field assignment to the subscription API response object.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(api): pass settlementmode to api' directly matches the changeset, which adds a SettlementMode field assignment to the API mapping function.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/api-subs-settlement-mode

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@GAlexIHU
GAlexIHU enabled auto-merge (squash) April 20, 2026 10:55
@GAlexIHU
GAlexIHU merged commit 8921dc3 into main Apr 20, 2026
23 of 24 checks passed
@GAlexIHU
GAlexIHU deleted the fix/api-subs-settlement-mode branch April 20, 2026 11:00

This branch was previously deployed

1 inactive deployment
dev — 782ff88c Deployed Apr 20, 2026 by GAlexIHU via Migration Checks #13622
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc Miscellaneous changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants