Skip to main content

Crate stateset_embedded_wasm

Crate stateset_embedded_wasm 

Source
Expand description

WASM bindings for StateSet Embedded Commerce

Provides an in-memory commerce library for browser environments.

import init, { Commerce } from '@stateset/embedded-wasm';

async function main() {
  await init();
  const commerce = new Commerce();
  const customer = commerce.createCustomer({
    email: "alice@example.com",
    firstName: "Alice",
    lastName: "Smith"
  });
}

Structs§

Bom
Bill of Materials management operations.
Carts
Cart and checkout management operations.
Commerce
Main Commerce instance for browser-based commerce operations. Uses in-memory storage (data is lost on page refresh).
Customers
Customer management operations.
Inventory
Inventory management operations.
Invoices
Invoice management operations.
Orders
Order management operations.
Payments
Payment processing operations.
Products
Product catalog operations.
Promotions
Promotions and discounts management.
PurchaseOrders
Purchase order management operations.
Returns
Return processing operations.
Shipments
Shipment management operations.
Subscriptions
Tax
Warranties
Warranty management operations.
WorkOrders
Work order management operations.

Functions§

init