You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rick1290 thanks for opening this issue and providing insight into the refunds not displaying as expected.
When looking at the ERD it looks like there is a possible connection via balance_transaction_id. However, to your point as well it looks like it could also map via the charge_id.
Have you been able to play around with this on your end? Do you see the charge_id mapping the refunds appropriately? I'll also call out that we perform this same join in the stripe__balance_transactions model.
@fivetran-joemarkiewicz Charge Id indeed works..... and applies the refund to the invoice level. Balance transaction does not work or map correctly. I think the balance transaction is unique to the refund.
So I guess in this enhanced table - the REFUND would apply at the header level and not item level.
@rick1290 I wanted to let you know that I've been looking into this and agree there likely needs to be a change to properly account for refunds. However, I've seen some conflicting results when swapping the join with data on our end 🤔.
I'll continue to investigate and will share here once I have found a viable solution to this issue that will work for all use cases. Thanks!
Is there an existing issue for this?
Describe the issue
Noticing that no refunds are captured in this table
Relevant error log or model output
No response
Expected behavior
Refunds should display on the invoice or item id
Possible solution
Something to do with the transaction id.... i think using the charge id allows you to map it correctly. Trying to play around with it.
dbt Project configurations
Default
Package versions
Current Version
What database are you using dbt with?
snowflake
How are you running this dbt package?
dbt Cloud™
dbt Version
Current
Additional Context
I just think there is an issue with one of the joins. Take a look at charge_id
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: