Skip to content

2.0.0

Compare
Choose a tag to compare
@jenksguo jenksguo released this 27 Apr 07:28
· 428 commits to master since this release
9f116fb

Xero NetStandard SDK version 2.0.0 generated against OpenAPI Spec version 2.1.0

IMPORTANT: this major versioning and has breaking changes.

The namespace of Accounting Models & Asset Models are now having below namespaces:

Accounting APIs - Xero.NetStandard.OAuth2.Model.Accounting
Asset APIs - Xero.NetStandard.OAuth2.Model.Asset

Examples:

using Xero.NetStandard.OAuth2.Model.Asset;
using Xero.NetStandard.OAuth2.Model.Accounting;

Accounting API changes:

  • Correct the IncludeOnline value so that it is a query parameter and not included directly in path
  • Add GetPurchaseOrderAsPdfAsync method

Asset API changes:

  • Add missing assetTypeId from Assets object
  • Added Error objects and Validation arrays

GET Assets requires a Status in ALL Caps otherwise you'll receive a 403 Forbidden.

CREATE or GET Assets deserialises JSON responses into the Assets object where the Status is Init Caps.

For this reason the same component in our OpenAPI spec will not support both use cases without throwing an error for missing enums due to case sensitivity.

OpenAPI document version update from 2.0.7 to 2.1.0 across all files

SDK version updated to 2.0.0 (major update with breaking changes)