rd_catalogue 0.1.0-beta.1
rd_catalogue: ^0.1.0-beta.1 copied to clipboard
A Flutter package for the Redeemly Catalogue API
Changelog #
All notable changes to this project will be documented in this file.
0.1.0-beta.1 - 2026-02-12 #
Added #
- Initial beta release of rd_catalogue package
- Browse vouchers from Redeemly catalogue API
- View voucher details with images and descriptions
- Select quantity and confirm purchase flow
- Custom payment integration via
onConfirmPurchasecallback - Automatic voucher pull via Redeemly API after successful payment
- Voucher success screen with serial codes
- Customer logs page (My Vouchers) with issued vouchers
- HTML-based "How to Use" instructions rendering
- Support for English and Arabic languages
- Clean, customizable UI matching Figma designs
- Self-contained navigation flow
- Error handling with custom exceptions
- Debug logging support
- Status chips for voucher availability (Active/Used/Expired)
- Serial code copy functionality
- Empty states for vouchers list and customer logs
Models #
RdCatalogueVoucher: Voucher model with all propertiesRdHowToUse: How to use instructions modelRdLanguage: Language enumeration (English/Arabic)RdPurchaseAuthResult: Purchase authorization result typesRdPulledVoucherItem: Pulled voucher item modelRdIssuedVoucher: Issued voucher model for customer logs
Pages #
RdVouchersPage: Main vouchers listing pageRdVoucherDetailsPage: Voucher details and purchase flowRdVoucherPurchasePage: Quantity selection and purchase confirmationRdVoucherSuccessPage: Post-purchase success screenRdCatalogueLogsPage: Customer vouchers (My Vouchers)
Configuration #
RdCatalogueOptions: Package configuration optionsRdCatalogueConfig: Singleton configuration manager
API #
RdCatalogueApiClient: API client for catalogue operationsfetchVouchers(): Fetch vouchers from cataloguepullVoucher(): Pull vouchers after purchase