Skip to content

Conversation

@hdiniz
Copy link
Contributor

@hdiniz hdiniz commented Oct 23, 2025

Resolve opencollective/opencollective#8266

This change updates contribution time series to use the new clearedAt field in the transaction. This matches with the effectiveDate field that is now default on the transaction CSV export.

Additionally, it fixes the record of the clearedAt date for stripe contributions, using the balanceTransaction available_on date to correctly represent when funds are available. The difference between charge create date and balance available date is significant on delayed payments such as SEPA and ACH where funds can take sometimes weeks to clear.

Such as this example:
image

@hdiniz hdiniz self-assigned this Oct 23, 2025
@hdiniz hdiniz requested a review from kewitz October 23, 2025 15:03
@hdiniz hdiniz marked this pull request as ready for review October 23, 2025 15:03
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.

Mismatch in calculation of collective.stats.contributionsAmountTimeSeries

1 participant