IOrderModuleService
{summary}
Methods
retrieve
This method retrieves a {return type} by its ID.
Example
Parameters
orderId
stringRequiredconfig
FindConfig<OrderDTO>The configurations determining how the order is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a order.
config
FindConfig<OrderDTO>select
or relations
, accept the
attributes or relations associated with a order.Returns
The retrieved {return type}(s).
list
This method retrieves a paginated list of {return type}(s) based on optional filters and configuration.
Example
Parameters
filters
FilterableOrderPropsThe filters to apply on the retrieved order.
filters
FilterableOrderPropsconfig
FindConfig<OrderDTO>The configurations determining how the order is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a order.
config
FindConfig<OrderDTO>select
or relations
, accept the
attributes or relations associated with a order.Returns
The list of {return type}(s).
listAndCount
This method retrieves a paginated list of {return type} along with the total count of available {return type}(s) satisfying the provided filters.
Example
Parameters
filters
FilterableOrderPropsThe filters to apply on the retrieved order.
filters
FilterableOrderPropsconfig
FindConfig<OrderDTO>The configurations determining how the order is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a order.
config
FindConfig<OrderDTO>select
or relations
, accept the
attributes or relations associated with a order.Returns
The list of {return type}(s) along with their total count.
create
**create**(data, sharedContext?): Promise<[OrderDTO](types.OrderTypes.OrderDTO.mdx)[]>
This method creates {return type}(s)
Example
Parameters
The order to be created.
Returns
The created {return type}(s).
**create**(data, sharedContext?): Promise<[OrderDTO](types.OrderTypes.OrderDTO.mdx)>
This method creates {return type}(s)
Example
Parameters
The order to be created.
Returns
The created {return type}(s).
update
**update**(data): Promise<[OrderDTO](types.OrderTypes.OrderDTO.mdx)[]>
This method updates existing {return type}(s).
Example
Parameters
The attributes to update in the order.
Returns
The updated {return type}(s).
**update**(orderId, data, sharedContext?): Promise<[OrderDTO](types.OrderTypes.OrderDTO.mdx)>
This method updates existing {return type}(s).
Example
Parameters
orderId
stringRequiredThe attributes to update in the order.
Returns
The updated {return type}(s).
**update**(selector, data, sharedContext?): Promise<[OrderDTO](types.OrderTypes.OrderDTO.mdx)[]>
This method updates existing {return type}(s).
Example
Parameters
Make all properties in T optional
The attributes to update in the order.
Returns
The updated {return type}(s).
delete
**delete**(orderIds, sharedContext?): Promise<void>
This method deletes {return type} by its ID.