-
Notifications
You must be signed in to change notification settings - Fork 47
Period start/end on invoice_line_item is no longer correct #43
Description
Sometime about a month ago around the beginning of September 2019 (using Stitch) the fields period__start and period__end started showing incorrect dates.
This only seems to affect invoice line items for invoices that were created as prorations. For example, let's say in the middle of the month an upgrade with a proration happens. The period__start used to have the same date as when the change/proration happened and the period__end used to be the end date of the regular billing cycle this was in.
Now, both period__start and period__end will always have the same date.
This is incorrect because if you retrieve such an invoice line item using the Stripe API directly, I can verify that the subobject "period" has a different "end" date than what is currently synced to the database.
The other reason why I know that this must be some kind of change that got introduced only about a month ago, is because all the invoice line items that were previously synced were correct. However, when I triggered a full resync in Stitch (by resetting the historical date), now all the data, even previously correct invoice line items have the same incorrect date (where period__start always matches period__end for proration line items).
I looked through the code and tried to see if there were any obvious changes around that time. Doesn't seem like it. So perhaps something on the Stripe API side changed that now causes this issue? Just guessing.