zgo-backend/CHANGELOG.md

129 lines
3.5 KiB
Markdown
Raw Normal View History

2022-05-24 18:10:01 +00:00
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2023-01-24 20:11:34 +00:00
## [1.2.1] - 2023-01-24
2023-01-24 16:21:17 +00:00
2023-01-24 19:27:32 +00:00
### Added
- New configuration fields for SMTP
2023-01-24 16:21:17 +00:00
### Fixed
- Owner expiration query
- Xero token expiration query
2023-01-09 16:01:44 +00:00
## [1.2.0] - 2023-01-09
2022-05-24 18:10:01 +00:00
2022-10-26 20:34:29 +00:00
### Added
- New utility to refresh Xero tokens periodically.
2022-11-14 21:56:30 +00:00
- New module for WooCommerce interaction.
2022-12-01 20:36:06 +00:00
- New `/auth` endpoint to authenticate with the WooCommerce plugin and corresponding tests
- New `/woopayment` endpoint to generate a new order from the WooCommerce plugin and corresponding tests
2023-01-09 16:01:44 +00:00
- New `/wootoken` endpoint to generate a new token and query the token from the database.
2022-10-26 20:34:29 +00:00
### Changed
- Refactored code for requesting Xero tokens to make it reusable.
- Changed API authentication to allow for endpoints that don't require an `Authorization` header to support the WooCommerce integration
- Enhanced the on-chain order confirmation functionality to support WooCommerce integration and future integrations.
2022-10-26 20:34:29 +00:00
2022-10-08 13:39:13 +00:00
## [1.1.1] - 2022-10-08
### Changed
- Refactored the `api/owner` POST endpoint.
- Added logic to remove extra whitespace from viewing key strings
2022-10-01 14:25:53 +00:00
## [1.1.0] - 2022-10-01
2022-08-03 18:48:51 +00:00
### Added
2022-09-09 16:17:59 +00:00
- Feature to record a payment when detected on-chain
- Function to record a payment in Xero
2022-09-06 19:01:14 +00:00
- Tests for Xero account code
- Fields in `XeroToken` for Xero payment account code
- Support for the YWallet memo format
2022-08-20 13:18:40 +00:00
- API endpoint to request a Xero invoice
- API endpoint to generate ZGo order from external invoice
- Type `XeroInvResponse`
- Type `XeroInvoice`
2022-08-11 22:30:24 +00:00
- Type `XeroToken`
2022-08-10 15:19:18 +00:00
- Type `Xero`
- API endpoint to query Xero configuration
2022-08-03 18:48:51 +00:00
- Field `crmToken` for `Owner`
2022-08-03 19:13:33 +00:00
- Field `externalInvoice` and `shortCode` for `Order`
2022-08-03 18:48:51 +00:00
2022-09-22 20:20:10 +00:00
### Changed
- Improved error handling for API server
- CoinGecko price feed to include New Zealand dollar (NZD)
2022-09-06 19:01:14 +00:00
2022-07-27 13:18:12 +00:00
## [1.0.0] - 2022-07-27
2022-07-13 14:21:23 +00:00
### Added
2022-07-22 16:04:15 +00:00
- New functionality to read transactions for the given viewing keys
- New functionality to mark orders as paid once payment is found on-chain
2022-07-13 14:21:23 +00:00
- New `Config` type to house the configuration parameters
- New field in `Owner` type to store toggle for payment confirmation
- New field in `Owner` type to store viewing key
2022-07-13 14:21:23 +00:00
2022-07-07 15:33:53 +00:00
### Changed
2022-07-26 20:45:45 +00:00
- Added chronological sorting to list of orders
- Added logic in `/api/owner` endpoint to validate viewing key before saving
- Updated tests for `/api/owner` to account for invalid viewing keys
- Added alphabetic sorting to list of items
2022-07-13 14:21:23 +00:00
- Refactored code to use new `Config` type
2022-07-07 15:33:53 +00:00
- Enhance `decodeHexText` to support Unicode
- Enhance `encodeHexText` to support Unicode
2022-07-07 15:56:33 +00:00
- Update tests for encode/decode of memos
### Fixed
2022-07-25 17:29:02 +00:00
- Fixed the PIN generation
- Fixed calculation of order total to ensure 8 decimal places
2022-07-07 15:56:33 +00:00
- Fixed test for looking for an order with incorrect ID
2022-07-13 14:21:23 +00:00
- Fixed payment scan to focus only on new transactions
2022-07-07 15:33:53 +00:00
## [0.1.0.2] - 2022-05-25
2022-05-24 18:10:01 +00:00
### Added
- Changelog
- `paid` field in ZGoOrder type
- Test for `api/order/:id` endpoint with an invalid ID
2022-07-07 15:33:53 +00:00
### Fixed
2022-05-24 18:10:01 +00:00
- Bug #1: crash when invalid ID was provided to `api/order/:id`
## [0.1.0.1] - 2022-05-20
### Added
- Parametrized fullnode credentials
## [0.1.0.0] - 2022-05-19
### Added
- BOSL license
- API end points
- Country
- Block
- Node address
- User
- Owner
- Order
- Item
- Processing
- Zcash transactions to ZGo items
- Convert login memos to Users
- Mark Owners as paid when payment is found on chain
- Mark Owners as expired when expiration date is reached