EventDay / Infusionsoft.net

A C# Wrapper around the Infusionsoft.com API
15 stars 22 forks source link

InvoiceService.ValidateCreditCard results in an XmlRpc error #2

Closed MisinformedDNA closed 11 years ago

MisinformedDNA commented 11 years ago

Error: response contains implicit string value where boolean expected [response : struct mapped to type ValidateCreditCardResult : member Valid mapped to type Boolean]

The simple fix is simply to convert

public bool Valid { get; set; }

to

public string Valid { get; set; }

But then we don't have type safety.

Thoughts?

trbngr commented 11 years ago

Hi MisinformedDNA,

I've pushed a quick solution to this issue. https://github.com/EventDay/Infusionsoft.net/commit/115894394a5f6251c1159fed1eadb237b4b52fa7

I involves an "Untyped" type being returned from the service, parsed into a type safe object.

I hope that helps you out.

Thanks for posting, Chris