Skip to main content

Crate stateset_embedded

Crate stateset_embedded 

Source
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
BillOfMaterials
BomApi
BomComponent
Cart
CartItem
Carts
Commerce
Main Commerce instance for local commerce operations.
CurrencyOps
Customer
Customers
ExchangeRate
Inventory
InventoryItem
Invoice
Invoices
Order
OrderItem
Orders
Payments
Product
ProductVariant
Products
Promotion
Promotions
PurchaseOrder
PurchaseOrders
Return
Returns
SalesSummary
Shipment
Shipments
Subscription
SubscriptionPlan
Subscriptions
Supplier
Tax
TaxJurisdiction
TaxRate
Warranties
Warranty
WarrantyClaim
WorkOrder
WorkOrders

Functions§

Init_stateset_embedded_ruby