cardtrader_api 1.0.1
cardtrader_api: ^1.0.1 copied to clipboard
A Dart package for interacting with the CardTrader API.
Changelog #
All notable changes to this project will be documented in this file.
1.0.1 #
Changed #
- Lowered SDK constraint from
^3.8.0to^3.4.0for wider compatibility (Flutter 3.22+) - Widened dependency version ranges to support more environments
- Capped
json_serializableto<6.10.0to avoid null-aware-elements syntax requiring Dart 3.8+
1.0.0 #
Added #
- Games:
getGames()endpoint to retrieve the list of games - Categories:
getCategories()endpoint with optional game ID filter - Expansions:
getExpansions()andgetMyExpansions()endpoints - Blueprints:
getBlueprintsByExpansion()endpoint - Marketplace:
getMarketplaceProducts()with expansion, blueprint, foil, and language filters - Cart:
getCart(),addToCart(),removeFromCart(), andpurchaseCart()endpoints - Wishlists:
getWishlists(),getWishlist(),createWishlist(), anddeleteWishlist()endpoints - Inventory Management:
getMyProducts(),createProduct(),updateProduct(),deleteProduct(), andincrementProduct()endpoints - Product Images:
uploadProductImage(),uploadProductImageFromUrl(), andremoveProductImage()endpoints - Batch Operations:
bulkCreateProducts(),bulkUpdateProducts(),bulkDeleteProducts(), andgetJobStatus()endpoints - Order Management:
getOrders(),getOrder(),setOrderTrackingCode(),shipOrder(),requestOrderCancellation(), andconfirmOrderCancellation()endpoints - CT0 Box Items:
getCt0BoxItems()andgetCt0BoxItem()endpoints OrderAsenum for type-safe order role filtering (seller/buyer)DateTimesupport forfromandtoparameters ingetOrders()- Models:
Game,Category,Expansion,Blueprint,MarketplaceProduct,Cart,Wishlist,Product,ProductRequest,ProductUpdateRequest,Job,Order,Ct0BoxItem,Money,Address,User,ShippingMethod,Property,PaginatedResponse - Full unit test coverage for all endpoints and models
- Example usage in
example/main.dart