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

Add 'Tracking' as a plural of 'TrackingCategory' #149

Merged
merged 1 commit into from
Jul 9, 2016

Commits on Jun 22, 2016

  1. Add 'Tracking' as a plural of 'TrackingCategory'

    This feels a bit uncomfortable, but effectively; the Xero API is inconsistent about using 'TrackingCategories' as the key for elements where it expects the sub-elements to be 'TrackingCategory'. Specifically, for LineItems, it uses the term 'Tracking' instead, as per https://developer.xero.com/documentation/api/invoices/
    
    So, this adds 'Tracking' as a "plural" version of "TrackingCategory", to allow inserting line items with tracked options enabled. Without this, creating invoices fails with `PostDataInvalidException: Object reference not set to an instance of an object. []`
    jakewins committed Jun 22, 2016
    1 Configuration menu
    Copy the full SHA
    3ace116 View commit details
    Browse the repository at this point in the history