Expand description
Ruby bindings for StateSet Embedded Commerce
Provides a local-first commerce library with SQLite storage for Ruby.
require 'stateset_embedded'
commerce = StateSet::Commerce.new("./store.db")
customer = commerce.customers.create(
email: "alice@example.com",
first_name: "Alice",
last_name: "Smith"
)Structs§
- Analytics
- Bill
OfMaterials - BomApi
- BomComponent
- Cart
- Cart
Item - Carts
- Commerce
- Main Commerce instance for local commerce operations.
- Currency
Ops - Customer
- Customers
- Exchange
Rate - Inventory
- Inventory
Item - Invoice
- Invoices
- Order
- Order
Item - Orders
- Payments
- Product
- Product
Variant - Products
- Promotion
- Promotions
- Purchase
Order - Purchase
Orders - Return
- Returns
- Sales
Summary - Shipment
- Shipments
- Subscription
- Subscription
Plan - Subscriptions
- Supplier
- Tax
- TaxJurisdiction
- TaxRate
- Warranties
- Warranty
- Warranty
Claim - Work
Order - Work
Orders