Skip to content

Latest commit

 

History

History
82 lines (54 loc) · 2.58 KB

changelog.rst

File metadata and controls

82 lines (54 loc) · 2.58 KB

Changelog

v1.0.1 (UNRELEASED)

  • Fixed exception in netsgiro.records.TransactionAmountItem2.to_ocr() if ~netsgiro.records.TransactionAmountItem2.payer_name was None.
  • Fixed exception in netsgiro.records.TransactionAmountItem3.to_ocr() if ~netsgiro.records.TransactionAmountItem3.text was None.
  • Raise a ValueError if a too long string is used for any of:

    • netsgiro.records.TransactionAmountItem1.kid (max 25 chars)
    • netsgiro.records.TransactionAmountItem3.text (max 40 chars)
    • netsgiro.records.TransactionSpecification.text (max 40 chars)
    • netsgiro.records.AvtaleGiroAgreement.kid (max 25 chars)

    Previously the string was accepted and the record generated invalid OCR data.

  • Strip newline characters (\n and \r) from record strings, like netsgiro.records.TransactionAmountItem2.payer_name.

    Previously the newline characters were accepted and the record generated invalid OCR data.

  • Automatically pad netsgiro.records.TransactionSpecification.text to 40 chars, so that a manually created record and a record parsed from OCR are identical.

v1.0.0 (2017-05-20)

No changes from v1.0.0a3, which has been used in production for a few weeks without any issues.

v1.0.0a3 (2017-05-03)

  • Rename netsgiro.TransactionType.AVTALEGIRO_AGREEMENTS (plural) to netsgiro.TransactionType.AVTALEGIRO_AGREEMENT (singular).
  • When writing record to OCR, cut netsgiro.records.TransactionAmountItem2.payer_name to 10 first chars, as that is all the field has room for.

v1.0.0a2 (2017-04-26)

Major improvements and changes.

  • The objects API now supports parsing all known file variants with netsgiro.parse and can recreate the parsed OCR data perfectly with netsgiro.Transmission.to_ocr.
  • The objects API now does all the bookkeeping necessary for building payment requests. With this improvement, the code necessary to produce a payment request is cut to from around 100 to 25 lines of code.
  • New quickstart guide <quickstart> shows how to parse files and build payment requests.
  • All public methods and fields of both the objects API <objects> and records API <records> are now documented.
  • The low-level records API <records> has been moved to the netsgiro.records module.

v1.0.0a1 (2017-04-17)

Initial alpha release. No promises about backwards compatibility.