basedone_core 1.0.3 copy "basedone_core: ^1.0.3" to clipboard
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 ProductVariant fields nullable: createdAt, updatedAt, with defaults for isActive (true), sortOrder (0), and attributes (empty map)
  • Made ProductReview fields nullable: createdAt, updatedAt, status, with defaults for isVerifiedPurchase (false), isVisible (true), helpfulCount (0)
  • Fixed list casting to handle null values with empty list defaults in:
    • FlashSaleItemProduct.images
    • FlashSale.items
    • ShippingZone.countries
    • Coupon.applicableProducts and applicableCategories
    • CreateOrderSummary.merchantNames
    • PublicMerchantProfile.categories
    • All dropshipping entities with list fields
  • Added default values for boolean and integer fields that could be null in various entities
  • Fixed rating field parsing in ProductReview to use safe integer parsing

1.0.2 - 2025-01-27 #

Fixed #

  • Made Merchant entity fields nullable (createdAt, updatedAt, ownerUserId, payoutAddress, status) to handle simplified merchant objects returned in product listings

1.0.1 - 2025-01-27 #

Added #

  • getDeliveryAddress() method to CustomerEcommerceClient for BasedPay delivery address

Fixed #

  • Fixed JSON parsing for averageRating and reviewCount fields to handle both string and numeric values from API responses

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
0
likes
0
points
37
downloads

Publisher

verified publisherbased.one

Weekly Downloads

Dart SDK for BasedOne API - Provides API and utilities for building applications on BasedOne.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, json_annotation

More

Packages that depend on basedone_core