-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[stripe] Handle invoice finalization #12456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6e06398
to
227269c
Compare
18023bc
to
d02d891
Compare
227269c
to
744a66e
Compare
ac6dd91
to
5e513f2
Compare
f13f667
to
d377bbf
Compare
d377bbf
to
d3916a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
@@ -91,3 +91,14 @@ func ListUsage(ctx context.Context, conn *gorm.DB, attributionId AttributionID, | |||
} | |||
|
|||
type UsageReport []WorkspaceInstanceUsage | |||
|
|||
func (r UsageReport) FilterToAttributionID(attributionID AttributionID) UsageReport { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it's worth adding a test for this method (as it is exported by the db
package)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good shout. Will add it.
I've also rebased and used the new contentservice.UsageReport
struct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added tests
a3ae174
to
5eda2d9
Compare
d429fdd
to
2887e47
Compare
/unhold |
2887e47
to
b0dffc5
Compare
Description
Implements invoice Finalization.
When an invoice is finalized, a webhook triggeres this RPC (through public-api).
Related Issue(s)
Fixes #
How to test
Release Notes
Documentation
Werft options: