#voidmonk_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1415154330163613757
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yes these are the basil version breaking changes. You can find instructions from https://docs.stripe.com/changelog/basil (look at the breaking change warning mark), and see the alternative inside
Thanks!
I've replaced invoice.ChargeId with new InvoicePaymentService().List(new InvoicePaymentListOptions { Invoice = invoice.Id }).FirstOrDefault()?.Payment?.ChargeId)
I've replaced invoice.Paid with new InvoicePaymentService().List(new InvoicePaymentListOptions { Invoice = invoice.Id }).FirstOrDefault()?.Status == "paid" (using same InvoicePayment object as above)
Do these two above look ok?
Can't figure out how to replace invoiceLineItem.Plan?
Looks ok but you would want to try it out. For Invoice Line Item, take a look at https://docs.stripe.com/changelog/basil/2025-03-31/invoice-pricing-configurations
that page doesn't show a replacement for plan, as I need invoiceLineItem.Plan.Interval
Can you look at Pricing? What do you have inside it?
Pricing has PricingDetails which has Price (string) and Product (string), both object Ids, so unsure how to get to Plan for a given invoice
You should have the same value inside Price, correct?
Price and Product are different to Plan, which isn't there in Invoice or InvoiceLineItem anymore
Price is similar and the replacement of Plan. Can you look at the both value and compare its value?