Changelogs » Pymyob

Pymyob

1.1.8

31 Added endpoint for `Company/Preferences` (thanks rmartin48!).

1.1.7

30 Added endpoints for  `Sales/Order` (thanks laurielounge!).

1.1.6

28 Added endpoints for  `GeneralLedger/Job` (thanks mattjegan!).

1.1.5

26 Fixed error on attempting to delete certain MYOB records (thanks rmartin48!).
27 Reduced verbosity of endpoints.py file. Some hint texts have changed slightly as a result.

1.1.4

Added endpoints for `GeneralLedger/Category`.

1.1.3

24 Added endpoints for `Purchase/Bill/Miscellaneous` (thanks callumanderson-alliance!).

1.1.2

23 Added endpoints for  `Banking/SpendMoneyTxn` and `Banking/ReceiveMoneyTxn` (thanks mattjegan!).

1.1.1

21 Added support for requests-oauthlib 3.0 (thanks mattjegan !)

1.1.0

20 Added timeout support. Defaults to no timeout as was the behaviour for prior versions.

1.0

**This release has breaking changes!**
Please read below, then step through the README to update your code to conform.

15 Cleaned up some final niggles with the way company file credentials are stored, and how they are passed around:
- Added support for storing multiple sets of company file credentials.
- Removed need to pass `company_id` into every single method, by promoting `CompanyFile` from a json blob to a class.
- base64 conversion of the userpass is now done internally, rather asking the user to do it. Just call the new `cred.authenticate_companyfile(company_id, username, password)` method.

**Important note**: Due to the changes to how company file credentials are stored, if you're upgrading from a previous version, you'll either need to tweak your stored `state` json blob, or ask your customers to reconnect their MYOB integrations from scratch. If you want to do the former, the steps to migrating your stored `state` json blob are as follows:

state = <persistently_stored_state_in_your_db>
userpass = state['userpass']
del state['userpass']
state['companyfile_credentials'] = {
'<company_uid>': userpass,
}
Now push state back into your db where you had it before.

Trying to spin up a `PartnerCredentials` instance with `PartnerCredentials(**old_state)` will fail loudly, as `userpass` will be flagged as an unwanted argument.


Enjoy!

0.4.5

Fix Python3.4 support. (trailing comma after `**kwargs`..)

0.4.4

Fix Manager reprs.

0.4.3

13 Add support for primitive data types (date, datetime). This allows passing python datetimes directly into filter functions (no stringifying). For example:

invoices = myob.invoices.all(company_id=<company_id>, InvoiceType='Item', Date__lt=datetime(1992, 11, 14), orderby='Number desc')

0.4.2

12 Add Supplier endpoints.

0.4.1

11 Add Purchase/Bill endpoints.

0.4.0

9 Make use of trailing slashes consistent across all endpoints. Add endpoint tests.
10 Add support for `__gt` and `__lt`. Add request_kwargs filter building tests.

0.3.2

- Recognise 403s.

0.3.1

- Make responses to PUTs return the created object too.

0.3.0

- Make responses to POSTs return the created object.

0.2.2

- Allow selecting invoice template.

0.2.1

- Fix pagination support.
- Add endpoints for Service Invoices and General Ledger Accounts.

0.2.0

- Add pagination support.

0.1.9

- Add purchaseorder endpoint.

0.1.8

- Avoid importing modules on install.

0.1.7

- Add endpoints for Sales Invoices, TaxCodes & Inventory Items.
- Enable posting to the endpoints.
- Enable PDF download. (Set desired response type in GET header)

0.1.6


      

0.1.5


      

0.1.4

Improve pipinstallability

0.1.3

Add install requirements.

0.1.2

Fix empty filter raising error.