@@ -25,35 +25,6 @@ model ListCustomersParamsFilter {
2525 key ? : Shared .ExternalResourceKey ;
2626}
2727
28- /**
29- * Query params for listing customers.
30- */
31- @ friendlyName ("ListCustomersParams" )
32- model ListCustomersParams {
33- ... Common .PagePaginationQuery ;
34-
35- /**
36- * Sort customers returned in the response.
37- * Supported sort attributes are:
38- * - `id`
39- * - `name` (default)
40- * - `created_at`
41- *
42- * The `asc` suffix is optional as the default sort order is ascending.
43- * The `desc` suffix is used to specify a descending order.
44- */
45- @ query (#{ name : "sort" })
46- sort ? : Common .SortQuery ;
47-
48- /**
49- * Filter customers returned in the response.
50- *
51- * To filter customers by key add the following query param: filter[key]=my-db-id
52- */
53- @ query (#{ style : "deepObject" , explode : true })
54- filter ? : ListCustomersParamsFilter ;
55- }
56-
5728interface CustomersOperations {
5829 @ post
5930 @ operationId ("create-customer" )
@@ -80,7 +51,28 @@ interface CustomersOperations {
8051 @ extension (Shared .UnstableExtension , true )
8152 @ extension (Shared .InternalExtension , true )
8253 list (
83- ... ListCustomersParams ,
54+ ... Common .PagePaginationQuery ,
55+
56+ /**
57+ * Sort customers returned in the response.
58+ * Supported sort attributes are:
59+ * - `id`
60+ * - `name` (default)
61+ * - `created_at`
62+ *
63+ * The `asc` suffix is optional as the default sort order is ascending.
64+ * The `desc` suffix is used to specify a descending order.
65+ */
66+ @ query (#{ name : "sort" })
67+ sort ? : Common .SortQuery ,
68+
69+ /**
70+ * Filter customers returned in the response.
71+ *
72+ * To filter customers by key add the following query param: filter[key]=my-db-id
73+ */
74+ @ query (#{ style : "deepObject" , explode : true })
75+ filter ? : ListCustomersParamsFilter ,
8476 ): Shared .PagePaginatedResponse <Customer > | Common .ErrorResponses ;
8577
8678 @ put
0 commit comments