Skip to main content

Crate stateset_dotnet

Crate stateset_dotnet 

Source
Expand description

C FFI bindings for StateSet Embedded Commerce (.NET/C#)

This crate provides C-compatible bindings for .NET P/Invoke integration.

Functions§

stateset_analytics_sales_summary
Get sales summary period: “today”, “week”, “month”, “quarter”, “year”, “all” Returns JSON string (caller must free)
stateset_analytics_top_customers
Get top customers Returns JSON array string (caller must free)
stateset_analytics_top_products
Get top products Returns JSON array string (caller must free)
stateset_ap_create_bill
Create a bill Returns JSON string (caller must free)
stateset_ap_list_bills
List bills Returns JSON array string (caller must free)
stateset_ar_aging_summary
Get AR aging summary Returns JSON string (caller must free)
stateset_ar_customer_aging
Get customer AR aging Returns JSON string (caller must free)
stateset_backorder_create
Create a backorder Returns JSON string (caller must free)
stateset_backorder_list
List backorders Returns JSON array string (caller must free)
stateset_cart_add_item
Add item to cart Returns JSON string (caller must free)
stateset_cart_create
Create a cart customer_id can be null for anonymous carts Returns JSON string (caller must free)
stateset_cart_get
Get cart by ID Returns JSON string (caller must free)
stateset_commerce_free
Destroy a Commerce instance
stateset_commerce_new
Create a new Commerce instance Returns a handle pointer, or null on error
stateset_cost_get_item_cost
Get item cost Returns JSON string (caller must free)
stateset_cost_set_item_cost
Set item cost Returns JSON string (caller must free)
stateset_credit_create_account
Create a credit account Returns JSON string (caller must free)
stateset_customer_count
Count customers Returns count or -1 on error
stateset_customer_create
Create a customer Returns JSON string (caller must free with stateset_string_free)
stateset_customer_delete
Delete a customer by ID Returns 1 on success, 0 on failure
stateset_customer_get
Get a customer by ID Returns JSON string (caller must free)
stateset_customer_list
List all customers Returns JSON array string (caller must free)
stateset_get_last_error
Get the last error message (returns null if no error) Caller must free the returned string
stateset_gl_create_account
Create a GL account Returns JSON string (caller must free)
stateset_gl_list_accounts
List GL accounts Returns JSON array string (caller must free)
stateset_inventory_adjust
Adjust inventory quantity Returns 1 on success, 0 on failure
stateset_inventory_create_item
Create an inventory item Returns JSON string (caller must free)
stateset_inventory_get_level
Get stock level for SKU Returns JSON string (caller must free)
stateset_lots_create
Create a lot Returns JSON string (caller must free)
stateset_lots_list
List lots Returns JSON array string (caller must free)
stateset_order_create
Create an order items_json should be a JSON array of order items Returns JSON string (caller must free)
stateset_order_get
Get an order by ID Returns JSON string (caller must free)
stateset_order_list
List all orders Returns JSON array string (caller must free)
stateset_order_update_status
Update order status status: “pending”, “confirmed”, “processing”, “shipped”, “delivered”, “cancelled”, “refunded” Returns JSON string (caller must free)
stateset_payment_create
Create a payment method: “credit_card”, “debit_card”, “bank_transfer”, “paypal”, “apple_pay”, “google_pay”, “crypto” Returns JSON string (caller must free)
stateset_product_create
Create a product Returns JSON string (caller must free)
stateset_product_get
Get a product by ID Returns JSON string (caller must free)
stateset_product_list
List all products Returns JSON array string (caller must free)
stateset_quality_create_inspection
Create a quality inspection Returns JSON string (caller must free)
stateset_return_create
Create a return reason: “defective”, “wrong_item”, “not_as_described”, “changed_mind”, “damaged”, “other” Returns JSON string (caller must free)
stateset_return_list
List all returns Returns JSON array string (caller must free)
stateset_serials_create
Create a serial number Returns JSON string (caller must free)
stateset_serials_list
List serial numbers Returns JSON array string (caller must free)
stateset_shipment_cancel
Cancel a shipment Returns JSON string (caller must free)
stateset_shipment_create
Create a shipment Returns JSON string (caller must free)
stateset_shipment_deliver
Mark shipment as delivered Returns JSON string (caller must free)
stateset_shipment_get
Get a shipment by ID Returns JSON string (caller must free)
stateset_shipment_list
List all shipments Returns JSON array string (caller must free)
stateset_shipment_ship
Ship a shipment (hand off to carrier) Returns JSON string (caller must free)
stateset_string_free
Free a string allocated by Rust
stateset_warehouse_create
Create a warehouse Returns JSON string (caller must free)
stateset_warehouse_create_location
Create a warehouse location Returns JSON string (caller must free)
stateset_warehouse_list
List warehouses Returns JSON array string (caller must free)