XeroAPI/xero-python

Overwriting the default model

benmezger opened this issue · 1 comments

I am looking for a way to overwrite the default model of the Accounting models. Invoice by the Xero API should return a DateString, DueDateString, and most probably other fields I haven't hit yet.

In order to overcome this issue, I've subclassed the Invoice model in order to get these fields set, but I wonder how can I let the SDK know about this overwrite.

Thanks.

I've solved this by overwriting the AccountingAPI get_model_finder.