basedone_core 1.0.3
basedone_core: ^1.0.3 copied to clipboard
Dart SDK for BasedOne API - Provides API and utilities for building applications on BasedOne.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.3 - 2025-01-27 #
Fixed #
- Improved robustness of JSON parsing across all entity models to handle null values from API responses
- Made
ProductVariantfields nullable:createdAt,updatedAt, with defaults forisActive(true),sortOrder(0), andattributes(empty map) - Made
ProductReviewfields nullable:createdAt,updatedAt,status, with defaults forisVerifiedPurchase(false),isVisible(true),helpfulCount(0) - Fixed list casting to handle null values with empty list defaults in:
FlashSaleItemProduct.imagesFlashSale.itemsShippingZone.countriesCoupon.applicableProductsandapplicableCategoriesCreateOrderSummary.merchantNamesPublicMerchantProfile.categories- All dropshipping entities with list fields
- Added default values for boolean and integer fields that could be null in various entities
- Fixed
ratingfield parsing inProductReviewto use safe integer parsing
1.0.2 - 2025-01-27 #
Fixed #
- Made
Merchantentity fields nullable (createdAt,updatedAt,ownerUserId,payoutAddress,status) to handle simplified merchant objects returned in product listings
1.0.1 - 2025-01-27 #
1.0.0 - 2024-01-26 #
Added #
- Initial release of BasedOne Core Dart SDK
- CustomerEcommerceClient for customer-facing operations:
- Product browsing, search, and filtering
- Shopping cart management
- Multi-merchant checkout with USDC escrow payments
- Order tracking and history
- Reviews and ratings
- Wishlists
- Gems (loyalty points) system
- Flash sales support
- MerchantEcommerceClient for merchant dashboard operations:
- Store profile management
- Product catalog CRUD with variants
- Order management and fulfillment
- Customer management
- Coupons and discounts
- Shipping configuration (methods, zones, rates)
- Returns and refunds processing
- Review management
- Customer messaging
- Media library
- Promotional banners
- Analytics and reporting
- Inventory management with audit logs
- Tax configuration (rules, nexus, reports)
- Dropshipping integration
- Type-safe models for all API entities
- Built-in retry logic with exponential backoff
- Comprehensive enum definitions for all status types