EventDay / Infusionsoft.net

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

ChargeInvoice Exception #17

Open mkittel opened 10 years ago

mkittel commented 10 years ago

When making a call to the InvoiceService, ChargeInvoice method, the following exception is thrown:

"response contains implicit string value where integer expected [response : struct mapped to type ChargeInvoiceResult : member RefNum mapped to type Int32]"

The problem is being caused by the ChargeInvoiceResult class, RefNum property being an int and the API returning "None" for the RefNum which causes the exception since "None" cannot be converted to an int.

robmcleish commented 9 years ago

Any update on this issue? I am experiencing the same issue.