#voidmonk_api

1 messages ¡ Page 1 of 1 (latest)

weak gulchBOT
#

👋 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.

tight carbon
coarse ocean
#

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?

tight carbon
coarse ocean
#

that page doesn't show a replacement for plan, as I need invoiceLineItem.Plan.Interval

tight carbon
#

Can you look at Pricing? What do you have inside it?

coarse ocean
#

Pricing has PricingDetails which has Price (string) and Product (string), both object Ids, so unsure how to get to Plan for a given invoice

tight carbon
#

You should have the same value inside Price, correct?

coarse ocean
#

Price and Product are different to Plan, which isn't there in Invoice or InvoiceLineItem anymore

tight carbon
#

Price is similar and the replacement of Plan. Can you look at the both value and compare its value?