nozzlegear / ShopifySharp

ShopifySharp is a .NET library that helps developers easily authenticate with and manage Shopify stores.
https://nozzlegear.com/shopify-development-handbook
MIT License
747 stars 309 forks source link

API get checkout by token not working #1046

Closed concua1111 closed 6 months ago

concua1111 commented 6 months ago

hm.. I'm integrating Shopify sharp with .net API. I'm facing this error. I think the checkout has some problem: "Error converting value \"51e23315cc62d53897c9e151815986bb\" to type 'System.Nullable`1[System.Int64]'. Path 'checkout.line_items[0].id'."

concua1111 commented 6 months ago

key and id should be strings. I pulled out checkout and saw that the line item id was a string like "51e23315cc62d53897c9e151815986bb". but in the code the id is being inherited with type long.

concua1111 commented 6 months ago

please check, it's urgent for us. image

nozzlegear commented 6 months ago

Hey! Thanks for the bug report. I should be able to fix this right away. Which version of ShopifySharp are you using here?

concua1111 commented 6 months ago

hi. thanks for your response, I'm using ver 6.13.0.

nozzlegear commented 6 months ago

Okay, thanks! I’ll get a new version published with a fix for this right away.

concua1111 commented 6 months ago

hi @nozzlegear . And also missing some fields in "line_item" and "applied_discounts" of the checkout object. kindly update this also. thank you image