#Gkiokan - Invoice Item
1 messages · Page 1 of 1 (latest)
Sure 1 sec
in_1L5vk7Ha5WPIKK5IUUGHoCOq
Don't worry about the states I was testing arround with the subscription update quantity, they may be messed up. Nothing to worry about that.
I am about to translate the description item to german but apperently I have to do this by my own.
Okay so you are looking to localize the item description for this item?
I don't have a solution for this one right now yea
I think we have 3 types of item descriptions:
x times product
Remaining time on product x
and
unsued time on product x
To resolve the unsued string I just check for the ìtem.proration` property which seems to work
Okay so you can use the proration boolean on the invoice, the type which indicates this is an invoice item that is a one-off item (which, in conjunction with proration will let you know the invoice line item is a one-off item due to proration). Then you can use the price data as well as the period to determine the name of the price as well as how many days may be remaining.
https://stripe.com/docs/api/invoices/line_item
It's a lot of work and we should translate the proration descriptions but this is what it will take currently.
sorry i was bussy with a customer call: Checking your answer now
Ah okay. I see. So the price object has all the deeper details that I need to check to display the correct description then. Great. Thanks for the point
Yeah. It's a lot of things to check but if you just try to parse the proration item description we may update the raw string and that could be problematic.