basedone_core 1.0.6
basedone_core: ^1.0.6 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.5 - 2025-01-27 #
Fixed #
- Comprehensive null safety improvements across all model files to handle unexpected null values from API responses
- entities.dart: Fixed null handling in Order, OrderEvent, Product, ProductVariant, ProductReview, Coupon, CouponUsage, Banner, BannerMerchant, Message, ShippingRate, ShippingZone, ShippingOption, MediaAsset, FlashSale, FlashSaleItem, FlashSaleItemProduct, ReviewUser
- responses.dart: Fixed null handling in CreateOrderSummary, EscrowInfo, ConfirmEscrowDepositResponse, AppliedDiscount, ValidatedDiscount, TaxBreakdownItem, PublicMerchantProfile, MerchantInfo, FollowStatusResponse, FollowActionResponse, FollowedMerchantSummary, FollowedMerchantInfo, FlashSaleTimeRemaining, ActiveFlashSalesResponse, FlashSaleAllowanceInfo, PaymentMethodInfo, GetPaymentMethodsResponse, CustomerConversation, ConversationMerchant, MessageStats, GetGemBalanceResponse, GemHistoryItem, GemHistoryPagination, ExpiringGemBatch, BrowsingLocation, DeleteBrowsingLocationResponse, CashAccountBalanceResponse, DeliveryAddressInfo, DeliveryAddressResponse, CustomerSummary, OrderEvent, ShippingMethod, ReturnRequest, AnalyticsOverview, AnalyticsChartDataPoint, ProductMetric, InventoryAuditEntry, InventoryAuditProduct, TaxSettings, TaxRule, TaxNexus, TaxReport, TaxReportRecord, MerchantConversation, MerchantConversationCustomer
- dropshipping.dart: Fixed null handling in DropshipSupplier, DropshipSupplierInfo, SupplierProduct, SupplierProductVariant, SupplierCategory, DropshipProduct, DropshipLocalProduct, DropshipOrderLink, DropshipOrderInfo, DropshipOrderItemInfo, DropshipSupplierBrief, DropshipMerchantSettings, DropshipForwardingDetails
- All non-nullable String, int, bool, and num fields now have safe default values when API returns null
1.0.4 - 2025-01-27 #
Fixed #
- Fixed
Merchant.namefield to handle null values from API (defaults to empty string)
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