3434 ObjectResponse ,
3535)
3636from integrify .clopos .schemas .customers .object import Customer , Group
37+ from integrify .clopos .schemas .customers .request import CustomerFilter
3738from integrify .clopos .schemas .enums import (
3839 CategoryType ,
3940 DiscountType ,
4243)
4344from integrify .clopos .schemas .orders .object import Order , OrderPayloadIn
4445from integrify .clopos .schemas .products .object import Product , StopList
45- from integrify .clopos .schemas .products .request import GetProducstRequestFilter
46+ from integrify .clopos .schemas .products .request import GetProducstRequestFilter , StopListFilter
4647from integrify .clopos .schemas .receipts .object import Receipt , ReceiptProductIn
4748from integrify .clopos .schemas .receipts .request import PaymentMethodIn , UpdateReceiptMetaData
4849from integrify .clopos .schemas .sales .object import PaymentMethod , SaleType
@@ -279,8 +280,7 @@ def get_customers(
279280 page : Unset [int ] = 1 ,
280281 limit : Unset [int ] = 20 ,
281282 with_ : Unset [list [str ]] = UNSET ,
282- filter_bys : Unset [list [str ]] = UNSET ,
283- filter_values : Unset [list [str ]] = UNSET ,
283+ filters : Unset [list [CustomerFilter ]] = UNSET ,
284284 * ,
285285 headers : Unset [dict [str , str ]] = UNSET ,
286286 ) -> APIResponse [ObjectListResponse [Customer ]]:
@@ -303,9 +303,8 @@ def get_customers(
303303 Args:
304304 page: Page number for pagination (starts at 1)
305305 limit: Maximum number of objects to return (1-100)
306- with_: Include related data in the response. Supported values: `group`, `balance`, `cashback_balance`. You can include multiple with parameters.
307- filter_bys: Filter by specific fields. Supported values: `name` (partial match), `phones`, `group_id`.
308- filter_values: Filter values matching the filter_bys
306+ with_: Include related data in the response. Supported values: `group`, `balance`, cashback_balance. You can include multiple with parameters.
307+ filters: List of filters to apply in format {'by': 'name'|'phones'|'group_id', 'value': str}
309308 headers: Headers for request
310309 ```
311310 """ # noqa: E501
@@ -619,9 +618,7 @@ def get_product_by_id(
619618
620619 def get_stop_list (
621620 self ,
622- filter_bys : list [Literal ['id' , 'limit' , 'timestamp' ]] = [],
623- filter_froms : list [int ] = [],
624- filter_tos : list [int ] = [],
621+ filters : Unset [list [StopListFilter ]] = UNSET ,
625622 * ,
626623 headers : Unset [dict [str , str ]] = UNSET ,
627624 ) -> APIResponse [ObjectListResponse [StopList ]]:
@@ -639,19 +636,18 @@ def get_stop_list(
639636
640637 # Or if you have set the environment variables
641638 CloposClient.get_stop_list(
642- filter_bys=['id', 'limit'],
643- filter_froms=[1, 0],
644- filter_tos=[100, 10],
639+ filters=[
640+ {'by': 'id', 'from_': '0', 'to': '100'},
641+ {'by': 'limit', 'from_': '1', 'to': '10'},
642+ ]
645643 headers={'x-token': token},
646- )) # Filter by id from 0 to 100 AND limit from 1 to 10
644+ ) # Filter by id from 0 to 100 AND limit from 1 to 10
647645 ```
648646
649647 **Response format: [`ObjectListResponse[StopList]`][integrify.clopos.schemas.common.response.ObjectListResponse]**
650648
651649 Args:
652- filter_bys: Filter by: id, limit, timestamp
653- filter_froms: Filter from values
654- filter_tos: Filter to values
650+ filters: List of filter options. Each filter is a dict with keys 'by', 'from_', and 'to'.
655651 headers: Headers for request
656652 ```
657653 """ # noqa: E501
0 commit comments