api

package
v1.49.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 91 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoute

func RegisterRoute(fn RouteFn)

RegisterRoute wires an additional route function. The parent api.Route invokes every registered function after its own wiring is done. Consumers who want the route must blank-import the sub-module (e.g. `import _ "github.com/hanzoai/commerce/luxfi/cevm/api"`).

func Route

func Route(api zip.Router)

Types

type RouteFn

type RouteFn func(r zip.Router, args ...zip.Handler)

RouteFn is an optional side-car wirer for API routes that don't ship in-tree — typically sub-modules like luxfi/cevm which would otherwise transitively pull heavy deps (geth, warp, etc.) into consumers that don't need them.

Directories

Path Synopsis
Package account — login deprecated.
Package account — login deprecated.
Package b2b wires the B2B commerce HTTP surface: companies, employees (with their spending headroom), quotes (accept/reject + message thread), and spend-approvals.
Package b2b wires the B2B commerce HTTP surface: companies, employees (with their spending headroom), quotes (accept/reject + message thread), and spend-approvals.
Package catalog is the HTTP surface for the platform product catalog — the CMS source-of-truth for a brand's OWN products (Models, Vector, KMS, …) that docs.<brand>, the console sidebar, and pricing derive from.
Package catalog is the HTTP surface for the platform product catalog — the CMS source-of-truth for a brand's OWN products (Models, Vector, KMS, …) that docs.<brand>, the console sidebar, and pricing derive from.
cdn
Package claim wires the order-claim HTTP surface: CRUD on claims (with their claimed lines) plus the accept / reject decisions.
Package claim wires the order-claim HTTP surface: CRUD on claims (with their claimed lines) plus the accept / reject decisions.
Package costs is commerce's vendor-cost / COGS surface — the mirror of the revenue/usage billing package.
Package costs is commerce's vendor-cost / COGS surface — the mirror of the revenue/usage billing package.
Package currency is the HTTP surface for the currency reference table: admin CRUD (generic REST) plus a public GET list.
Package currency is the HTTP surface for the currency reference table: admin CRUD (generic REST) plus a public GET list.
Package dashv2 — login deprecated.
Package dashv2 — login deprecated.
Package draftorder wires the admin order-builder HTTP surface: CRUD on draft orders and their line items, plus the complete action that converts a draft into a REAL order (models/order) with the same items and total.
Package draftorder wires the admin order-builder HTTP surface: CRUD on draft orders and their line items, plus the complete action that converts a draft into a REAL order (models/order) with the same items and total.
Package exchange wires the order-exchange HTTP surface: CRUD on exchanges plus confirm/cancel transitions.
Package exchange wires the order-exchange HTTP surface: CRUD on exchanges plus confirm/cancel transitions.
Package giftcard is the HTTP surface for gift cards: base CRUD via rest plus money actions (redeem / balance / void).
Package giftcard is the HTTP surface for gift cards: base CRUD via rest plus money actions (redeem / balance / void).
Package invite exposes the commerce paywall's invite-code HTTP surface:
Package invite exposes the commerce paywall's invite-code HTTP surface:
Package metrics is the platform SaaS-operations god-view: the whole business's money, computed IN commerce (the system of record for subscriptions + the usage ledger) so admin.hanzo.ai only renders — never re-aggregates client-side and never calls Stripe directly.
Package metrics is the platform SaaS-operations god-view: the whole business's money, computed IN commerce (the system of record for subscriptions + the usage ledger) so admin.hanzo.ai only renders — never re-aggregates client-side and never calls Stripe directly.
Package plan is the SuperAdmin HTTP surface for the platform subscription/DNS plan authority (models/plan) — the editable runtime source of truth for subscription + DNS pricing that admin.hanzo.ai governs.
Package plan is the SuperAdmin HTTP surface for the platform subscription/DNS plan authority (models/plan) — the editable runtime source of truth for subscription + DNS pricing that admin.hanzo.ai governs.
Package producttaxonomy is the HTTP surface for the product-builder taxonomy: options (+values), categories (hierarchical), tags, types, and the return/refund reason lookups.
Package producttaxonomy is the HTTP surface for the product-builder taxonomy: options (+values), categories (hierarchical), tags, types, and the return/refund reason lookups.
Package promo is the platform PLAN promo — the admin-controlled "50% off for a limited time" offer, composed on the existing Promotion model (NOT a parallel model) so the discount that a customer sees on GET /v1/billing/plans is SuperAdmin-configured, never hardcoded in the catalog.
Package promo is the platform PLAN promo — the admin-controlled "50% off for a limited time" offer, composed on the existing Promotion model (NOT a parallel model) so the discount that a customer sees on GET /v1/billing/plans is SuperAdmin-configured, never hardcoded in the catalog.
Package upload is the admin surface for merchant asset uploads (product images).
Package upload is the admin surface for merchant asset uploads (product images).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL