🐛 Source Orb: fix window request for credit_ledger_entries
#36036
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix
credit_ledger_entries
previous version was building request with larger than 30 days. As the Orb API throws errors for these request:Now the connector will create a fixed-window of 30 days based on the
created_at
field inside thecredit_ledger_entry
record, our best shot to get data from the event.I was able to run a mock test using a single customer and also I added more information whatever the code fails now giving better idea what need to be improved.