Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 50 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Changelog

## 0.1.8

> Added

- **INTRA Payment Support**: Full support for European inter-bank transfers
- BIC/SWIFT code support for INTRA hostname
- Dynamic account number type (int for ACH, String for INTRA)
- Support for alphanumeric account numbers (e.g., hexadecimal addresses)
- Comprehensive test coverage for INTRA payments

> Changed

- Updated `accountNumber` property to support both ACH (int) and INTRA (String) payments
- Updated `BIC` property to support `intra` hostname alongside `bic` and `iban`
- Updated `PaytoJson` model to support dynamic account numbers

## 0.1.7

> Added

- **Language/Locale Support**: Strict validation and case preservation
- Regex-based validation: `/^[a-z]{2}(-[a-z]{2}|-[A-Z]{2})?$/`
- Case preservation (no automatic normalization)
- Valid formats: `en`, `en-us`, `en-US`
- Invalid formats: `EN`, `En-Us`, `en-Us`, `EN-US` (validates strict format)
- **Mode Parameter**: Payment mode specification
- Support for `mode` query parameter (e.g., 'qr', 'nfc', 'card')
- Automatic lowercase normalization on getter
- JSON serialization support
- **Enhanced Geographic Coordinates**: High-precision support
- Increased precision from 6 to 9 decimal places
- Sub-millimeter accuracy for geographic applications
- Support for coordinates with 1-9 decimal places

> Changed

- Language validation now uses strict regex pattern
- Language values preserve original case (no lowercasing)
- Geographic coordinate regex updated to support 9 decimal places

> Fixed

- Improved validation error messages for language codes
- Fixed color property getters/setters
- Updated JSON object conversion to include all new properties

## 0.1.1

- Updated pubspec.yaml
Expand All @@ -9,15 +55,15 @@

Initial release of Flutter PaytoRL 🎉

### Features
> Features

- 🎯 Full Dart/Flutter implementation of PaytoRL
- 🔄 Conversion from TypeScript to Flutter
- 📱 Cross-platform support (Android, iOS, Web, macOS, Windows, Linux, Wasm)
- 🧪 Comprehensive test coverage
- 📚 Complete API documentation

### Added
> Added

- Core `Payto` class implementation
- Payment URL parsing and manipulation
Expand All @@ -33,7 +79,7 @@ Initial release of Flutter PaytoRL 🎉
- Platform-specific implementations
- Example Flutter application

### Developer Experience
> Developer Experience

- Zero external dependencies
- Tree-shaking support
Expand All @@ -42,7 +88,7 @@ Initial release of Flutter PaytoRL 🎉
- Detailed API documentation
- Example usage in README

### Documentation
> Documentation

- Full API reference
- Usage examples
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_paytorl
description: A Flutter library for handling Payto Resource Locators (PRLs). Based on the URL API and provides additional functionality for managing PRLs.
version: 0.1.7
version: 0.1.8
homepage: https://github.com/bchainhub/flutter_paytorl
repository: https://github.com/bchainhub/flutter_paytorl
documentation: https://github.com/bchainhub/flutter_paytorl#readme
Expand Down