Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingMethodException when setting VatNumber property on ICustomer #27

Closed
TimS- opened this issue Apr 1, 2016 · 1 comment
Closed
Assignees

Comments

@TimS-
Copy link

TimS- commented Apr 1, 2016

I updated to the latest build on Nuget to implement VatNumber functionality since a PR #15, however I am getting the following error when I try to call my method which gets a customer and updates the VatNumber property - assuming it's not been fully implemented?

System.MissingMethodException was unhandled by user code
Method not found: 'Void ChargifyNET.ICustomerAttributes.set_VatNumber(System.String)'.
@kfrancis
Copy link
Owner

kfrancis commented Apr 1, 2016

That's because you aren't supposed to set output object properties, CustomerAttributes has VatNumber which is what you set (or alternatively SubscriptionCreateOptions).

It's not a great structure, I agree - I just haven't had time to work on the better structured lib (input/output poco serialization, better overall structure, using RestSharp and not .NET vanilla, .NET Core 1 compat, etc). This library is in use by thousands, so I can't make too many breaking changes.

@kfrancis kfrancis self-assigned this Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants