Skip to content

Releases: tomy0000000/tw-invoice

2023.9.6

06 Sep 14:14
2023.9.6
69a74b7
Compare
Choose a tag to compare

🌟 Features

⚙️ Internal

New Contributors

Full Changelog: 2023.4.9...2023.9.6

2023.4.9

12 Apr 08:17
eae1428
Compare
Choose a tag to compare

🌟 Features

  • Bump API specification to v1.8
  • Automatically retry when API error

⚙️ Internal

  • pre-commit auto-update by @pre-commit-ci
  • Adding tests for Python 3.11, official support coming in the next release

2022.6.27

26 Jun 18:55
deeab99
Compare
Choose a tag to compare

🌟 Features

  • Validate API response with pydantic, you can opt-out this feature with skip_validation when initialize client

🐞 Bug fixes

  • Add invoice_random parameter to get_invoice_detail

2022.6.20

20 Jun 03:01
aa5ad82
Compare
Choose a tag to compare

🌟 Features

  • The module is now fully tested for production use
  • Type hint is more expressive now with Union[str, None] indicate optional, Literal for string choice
  • Methods now raises a custom exception if request failed

🧨 Breaking Changes

  • type parameters is now barcode_type

🐞 Bug fixes

  • Add ts_tolerance parameter on client initialization that will be added when sending request, to prevent 951 connection expiration
  • The correct invoice number could not match regex test, this is now fixed

🎉 First Release

17 Jun 17:58
a60725c
Compare
Choose a tag to compare

Features

  • Implement eight main application API method
Method name 中文名稱
get_lottery_numbers 查詢中獎發票號碼清單
get_invoice_header 查詢發票表頭
get_invoice_detail 查詢發票明細
get_love_code 捐贈碼查詢
get_carrier_invoices_header 載具發票表頭查詢
get_carrier_invoices_detail 載具發票明細查詢
carrier_donate_invoice 載具發票捐贈
get_aggregate_carrier 手機條碼歸戶載具查詢