Skip to content

multi: Expand the API to support retrieving paid amounts. - #1698

Open
thanhnp95 wants to merge 7 commits into
decred:masterfrom
thanhnp95:proposal-billed-state-api
Open

multi: Expand the API to support retrieving paid amounts.#1698
thanhnp95 wants to merge 7 commits into
decred:masterfrom
thanhnp95:proposal-billed-state-api

Conversation

@thanhnp95

@thanhnp95 thanhnp95 commented Feb 26, 2025

Copy link
Copy Markdown

Resoved issue: #1697

Created API to support getting actual payment data for proposal
ApiRoute: /v1/proposals/billedstate
Type: Public API
Input: proposal token
Output: Payment times and amounts paid for proposal
{ "totalbilled": int64, "paidinvoices": [{ "timestamp": int64, "total": int64, }] }

@thanhnp95
thanhnp95 marked this pull request as ready for review February 28, 2025 09:57

@ukane-philemon ukane-philemon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done @thanhnp95.

Comment thread politeiawww/legacy/wwwcms.go Outdated
Comment thread politeiawww/legacy/invoices.go Outdated
Comment thread politeiawww/legacy/invoices.go Outdated
@thanhnp95

Copy link
Copy Markdown
Author

@ukane-philemon I've fixed it. Please check it again for me. Thank you very much!

@ukane-philemon ukane-philemon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested Ack

@thanhnp95

Copy link
Copy Markdown
Author

@ukane-philemon I don't know when this PR will be merged and what the deployment process is. I think we need to deploy quickly to be able to provide information to the community

@ukane-philemon

Copy link
Copy Markdown

@thanhnp95, please ask on the politeia channel on element.

@JoeGruffins JoeGruffins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good however I am unable to test without setting up a server.

Comment thread politeiawww/api/cms/v1/api.md Outdated
Comment thread politeiawww/api/cms/v1/api.md Outdated
Comment thread politeiawww/api/cms/v1/api.md
Comment thread politeiawww/legacy/invoices.go Outdated
Comment thread politeiawww/legacy/wwwcms.go Outdated
@JoeGruffins

Copy link
Copy Markdown
Member

One more nit, the commit title should be something like:

multi: Expand the API to support retrieving paid amounts.

https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

@thanhnp95 thanhnp95 changed the title Expanding the API to support retrieving paid amounts for approved proposal multi: Expand the API to support retrieving paid amounts. Apr 1, 2025
@thanhnp95
thanhnp95 force-pushed the proposal-billed-state-api branch from 7f32102 to 4f437a9 Compare April 1, 2025 09:22
@thanhnp95

thanhnp95 commented Apr 1, 2025

Copy link
Copy Markdown
Author

@JoeGruffins Thank you very much for reviewing my PR. I have incorporated your suggested changes and hope you can provide further support so that the PR can be merged and deployed quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants