Business helpers mapped from Baileys' business.ts.
Summary
Functions
Fetch the product catalog for a business.
Fetch business catalog collections.
Fetch order details via the thrift IQ namespace.
Create a business product.
Delete products from the catalog.
Update a business product.
Remove the business cover photo.
Update the business profile mutation payload.
Upload and set the business cover photo.
Functions
Fetch the product catalog for a business.
@spec get_collections(term(), String.t() | nil, pos_integer(), keyword()) :: {:ok, map()} | {:error, term()}
Fetch business catalog collections.
@spec get_order_details(term(), String.t(), String.t(), keyword()) :: {:ok, map()} | {:error, term()}
Fetch order details via the thrift IQ namespace.
Create a business product.
@spec product_delete(term(), [String.t()], keyword()) :: {:ok, %{deleted: non_neg_integer()}} | {:error, term()}
Delete products from the catalog.
Update a business product.
@spec remove_cover_photo(term(), String.t(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Remove the business cover photo.
@spec update_business_profile(term(), map(), keyword()) :: {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}
Update the business profile mutation payload.
Upload and set the business cover photo.