API Reference
Core Interface: CommerceAdapter
The root interface for all commerce operations.
Methods
getCatalogAdapter(): Access product catalog operations.getCartAdapter(): Access shopping cart operations.getOrderAdapter(): Access order management operations.getCustomerAdapter(): Access customer management operations.
Capability: CatalogAdapter
Key Methods
Optional<Product> getProductById(String id)List<Product> searchProducts(String query)List<Product> getProductsByCategory(String categoryId)
Capability: CartAdapter
Key Methods
Cart createCart(String customerId)Cart addToCart(String cartId, String productId, int quantity)Cart removeFromCart(String cartId, String itemId)
Domain Models
Product
String id;
String sku;
String name;
String description;
BigDecimal price;
String currency;
Map<String, Object> attributes;
String imageUrl;