Skip to content

Add billing module#111

Draft
jorg-vr wants to merge 31 commits intomainfrom
feat/add-cost-calculation
Draft

Add billing module#111
jorg-vr wants to merge 31 commits intomainfrom
feat/add-cost-calculation

Conversation

@jorg-vr
Copy link
Copy Markdown
Collaborator

@jorg-vr jorg-vr commented Apr 8, 2026

This pull request adds a new module type 'billing'.

It has a single endpoint that supports a post request with contract info and meter data.
The contract info can be specified using the contract info provided by the members module.

It returns a detailed costs breakdown.

Screen Shot 2026-04-14 at 13 13 51

@jorg-vr jorg-vr self-assigned this Apr 8, 2026
@jorg-vr jorg-vr added the feature major change label Apr 8, 2026
@jorg-vr jorg-vr marked this pull request as ready for review April 10, 2026 10:30
@jorg-vr jorg-vr requested review from JrtPec and maxhelskens April 10, 2026 10:30
Comment thread src/cofy/modules/billing/models/billing_request.py Outdated
Comment thread src/cofy/modules/billing/models/billing_request.py
@jorg-vr jorg-vr marked this pull request as draft April 13, 2026 07:51
@jorg-vr jorg-vr reopened this Apr 13, 2026
jorg-vr added a commit that referenced this pull request Apr 13, 2026
This pull request expands the members module, such that a member is
expected to contain all contract info needed by the billing module, in
development in #111

It also adds ids and a new endpoint `get_by_id`

<img width="2882" height="1986" alt="image"
src="https://github.com/user-attachments/assets/9f6329e6-eec8-474a-9aef-5dc9edaec27b"
/>
@jorg-vr jorg-vr marked this pull request as ready for review April 14, 2026 11:14
@jorg-vr jorg-vr requested a review from JrtPec April 14, 2026 11:14
@jorg-vr jorg-vr marked this pull request as draft April 22, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature major change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants