EventDay / Infusionsoft.net

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

ChargeInvoice returns error #33

Open robmcleish opened 9 years ago

robmcleish commented 9 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.