Skip to content

4.1.0

Compare
Choose a tag to compare
@SerKnight SerKnight released this 22 Jan 00:17
· 539 commits to master since this release

Naming Conventions updated - Open API spec only allows us to to single PUT/POST in our generated SDKS - refactoring to enable the supported endpoints. This is a larger change that will enable the generated SDK's to be encompass the full features of the raw API, but does require some painful re-naming.

Semver naming -> MAJOR.MINOR.PATCH

While this is not a backwards compatible (minor) change, we are opting to bounce this to 4.1.0 in lui of a major as the current SDK is relatively new and is getting to a more stable place

ex:
createContact -> updateOrCreateContacts
createBankTransaction -> updateOrCreateBankTransactions

This will enable the ability for our SDK's to both batch create/update from a single endpoint based on the payload..

Refer to the generated type files to see the newly expected format of each function. The sample app also has updated examples on each function change: https://github.com/XeroAPI/xero-node-oauth2-app

Remove singular create methods

  • createItem
  • createContact
  • createBankTransaction
  • createInvoice
  • createPurchaseOrder

Add createOrUpdate bulk methods

  • updateOrCreateItems

  • updateOrCreateContacts

  • updateOrCreateBankTransactions

  • updateOrCreateInvoices

  • createPurchaseOrders

  • Add summarizeError to bulk create and updateOrCreate methods

  • Add missing Enums from

  • taxRates
  • Fix datatype for DiscountRate from string to number on lineItem model

  • Add object IDs to ValidationError element array

  • Add statusAttributeString to Contact model