woob.capabilities.shop
¶
- exception OrderNotFound(msg='Order not found')[source]¶
Bases:
UserError
Raised when an order is not found.
- class Order(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Purchase order.
- Variables:
url – (
str
) urldate – (
date
,datetime
) Date when the order was placedshipping – (
Decimal
) Shipping pricediscount – (
Decimal
) Discountstax – (
Decimal
) Taxtotal – (
Decimal
) Total
- class Payment(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Payment for an order.
- class Item(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Purchased item within an order.
- class CapShop[source]¶
Bases:
CapCollection
Capability of online shops to see orders history.
- iter_resources(objs, split_path)[source]¶
Iter resources.
Default implementation of this method is to return on top-level all orders (by calling
iter_accounts()
).- Parameters:
objs (tuple[
BaseObject
]) – type of objects to getsplit_path (
list
) – path to discover
- Return type:
iter[
BaseObject
]
- get_order(id)[source]¶
Get an order from its ID.
- Parameters:
id (
str
) – ID of the order- Return type:
- Raises:
- iter_payments(order)[source]¶
Iter payments of a specific order.