Response Models

class FwPage(raw: Any, items_label: str, t: type[TPageItem])

Represents a paged response result.

Parameters:
  • raw (dict[str, Any]) – Raw JSON-compatible value

  • total (int) – Total number of items regardless of pagination

  • items (list[TPageItem]) – List of items on the page; no guarantee on the list’s size

class FwShop(raw: dict[str, Any])

Represents a shop from a response.

Some of the actual object’s fields may be unparsed but stored within the raw field.

Parameters:
  • raw (dict[str, Any]) – Raw JSON-compatible value

  • shop_id (int) – Shop ID

  • name (str) – Shop’s name

  • status (str) – Shop’s status

  • is_verified (bool) – Whether the shop is verified

class FwProduct(raw: dict[str, Any])

Represents a product from a response.

Some of the actual object’s fields may be unparsed but stored within the raw field.

Parameters:
  • raw (dict[str, Any]) – Raw JSON-compatible value

  • offer_id (str | None) – Product’s offer ID

  • product_id (int | None) – Product ID

  • is_active (bool) – Whether the product is active

  • type (int) – Product’s type

  • name (str) – Product’s name

  • available (int) – Product’s availability

  • stock (int) – Product’s quantity in stock

  • price (str) – Product’s price

  • discount (str) – Product’s discount

  • currency_code (str) – Product’s currency code

class FwFlatProductRespErr(raw: dict[str, Any])

Base flat partial product-related error.

Parameters:
  • raw (dict[str, Any]) – Raw JSON-compatible value

  • offer_id (str | None) – Product’s offer ID

  • product_id (int | None) – Product ID

  • message (str) – Error message

class FwOfferMappingRespErr(raw: dict[str, Any])

Partial product related error of offer mapping

class FwProductActiveRespErr(raw: dict[str, Any])

Partial product related error of product activeness setting.

Parameters:

is_active (bool | None) – Whether the product is active

class FwStockUpdatingRespErr(raw: dict[str, Any])

Partial product related error of stock updating.

Parameters:

stock (int) – Product’s quantity in stock