teference / zoho-dotnet

Zoho API .NET SDK
MIT License
7 stars 11 forks source link

Error parsing HostedPage response #4

Closed kruijs closed 7 years ago

kruijs commented 7 years ago

The ZsHostedPageData class Property "Invoice" should be of type ZsInvoice intead of string, as this:

public sealed class ZsHostedPageData { [JsonProperty("subscription")] public ZsSubscription Subscription { get; set; } [JsonProperty("invoice")] public ZsInvoice Invoice { get; set; } }

jsinh commented 7 years ago

Agreed, at the time of writing this piece I might have ignored i guess.

At the moment if i compare the Zoho Documentation for sample response JSON (invoice section) it is somewhat evolved from the last time I used it as reference to create ZsInvoice

Zoho guys are not so good at maintaining / updating and intimating about the doc / API changes.

I will have to take time and re-write ZsInvoice and others after a fresh compare but for now I have changed the "Invoice" property from String to ZsInvoice (hope that helps)

Release Note Nuget v0.6.15

Pardon on late response