2929
3030import wtx .woocommerce .api .client .model .ApiError ;
3131import wtx .woocommerce .api .client .model .Customer ;
32- import java .time .OffsetDateTime ;
3332
3433import java .lang .reflect .Type ;
3534import java .util .ArrayList ;
@@ -82,13 +81,11 @@ public void setCustomBaseUrl(String customBaseUrl) {
8281 * @param search Limit results to those matching a string. (optional)
8382 * @param exclude Ensure result set excludes specific IDs. (optional)
8483 * @param include Limit result set to specific IDs. (optional)
85- * @param after Limit response to resources created after a given ISO8601 compliant date. (optional)
86- * @param before Limit response to resources created before a given ISO8601 compliant date. (optional)
8784 * @param offset Offset the result set by a specific number of items. (optional)
8885 * @param order Order sort attribute ascending or descending (asc as default). (optional)
8986 * @param orderby Sort collection by object attribute. (optional)
9087 * @param email Limit result set to resources with a specific email address. (optional)
91- * @param role Limit result set to resources with a specific role. (optional)
88+ * @param role Limit result set to resources with a specific role. Default is customer. (optional)
9289 * @param _callback Callback for upload/download progress
9390 * @return Call to execute
9491 * @throws ApiException If fail to serialize the request body object
@@ -101,7 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
10198 <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
10299 </table>
103100 */
104- public okhttp3 .Call listAllCustomersCall (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , OffsetDateTime after , OffsetDateTime before , Integer offset , String order , String orderby , String email , String role , final ApiCallback _callback ) throws ApiException {
101+ public okhttp3 .Call listAllCustomersCall (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , Integer offset , String order , String orderby , String email , String role , final ApiCallback _callback ) throws ApiException {
105102 String basePath = null ;
106103 // Operation Servers
107104 String [] localBasePaths = new String [] { };
@@ -150,14 +147,6 @@ public okhttp3.Call listAllCustomersCall(String context, Integer page, Integer p
150147 localVarCollectionQueryParams .addAll (localVarApiClient .parameterToPairs ("multi" , "include" , include ));
151148 }
152149
153- if (after != null ) {
154- localVarQueryParams .addAll (localVarApiClient .parameterToPair ("after" , after ));
155- }
156-
157- if (before != null ) {
158- localVarQueryParams .addAll (localVarApiClient .parameterToPair ("before" , before ));
159- }
160-
161150 if (offset != null ) {
162151 localVarQueryParams .addAll (localVarApiClient .parameterToPair ("offset" , offset ));
163152 }
@@ -198,8 +187,8 @@ public okhttp3.Call listAllCustomersCall(String context, Integer page, Integer p
198187 }
199188
200189 @ SuppressWarnings ("rawtypes" )
201- private okhttp3 .Call listAllCustomersValidateBeforeCall (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , OffsetDateTime after , OffsetDateTime before , Integer offset , String order , String orderby , String email , String role , final ApiCallback _callback ) throws ApiException {
202- return listAllCustomersCall (context , page , perPage , search , exclude , include , after , before , offset , order , orderby , email , role , _callback );
190+ private okhttp3 .Call listAllCustomersValidateBeforeCall (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , Integer offset , String order , String orderby , String email , String role , final ApiCallback _callback ) throws ApiException {
191+ return listAllCustomersCall (context , page , perPage , search , exclude , include , offset , order , orderby , email , role , _callback );
203192
204193 }
205194
@@ -212,13 +201,11 @@ private okhttp3.Call listAllCustomersValidateBeforeCall(String context, Integer
212201 * @param search Limit results to those matching a string. (optional)
213202 * @param exclude Ensure result set excludes specific IDs. (optional)
214203 * @param include Limit result set to specific IDs. (optional)
215- * @param after Limit response to resources created after a given ISO8601 compliant date. (optional)
216- * @param before Limit response to resources created before a given ISO8601 compliant date. (optional)
217204 * @param offset Offset the result set by a specific number of items. (optional)
218205 * @param order Order sort attribute ascending or descending (asc as default). (optional)
219206 * @param orderby Sort collection by object attribute. (optional)
220207 * @param email Limit result set to resources with a specific email address. (optional)
221- * @param role Limit result set to resources with a specific role. (optional)
208+ * @param role Limit result set to resources with a specific role. Default is customer. (optional)
222209 * @return List<Customer>
223210 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
224211 * @http.response.details
@@ -230,8 +217,8 @@ private okhttp3.Call listAllCustomersValidateBeforeCall(String context, Integer
230217 <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
231218 </table>
232219 */
233- public List <Customer > listAllCustomers (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , OffsetDateTime after , OffsetDateTime before , Integer offset , String order , String orderby , String email , String role ) throws ApiException {
234- ApiResponse <List <Customer >> localVarResp = listAllCustomersWithHttpInfo (context , page , perPage , search , exclude , include , after , before , offset , order , orderby , email , role );
220+ public List <Customer > listAllCustomers (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , Integer offset , String order , String orderby , String email , String role ) throws ApiException {
221+ ApiResponse <List <Customer >> localVarResp = listAllCustomersWithHttpInfo (context , page , perPage , search , exclude , include , offset , order , orderby , email , role );
235222 return localVarResp .getData ();
236223 }
237224
@@ -244,13 +231,11 @@ public List<Customer> listAllCustomers(String context, Integer page, Integer per
244231 * @param search Limit results to those matching a string. (optional)
245232 * @param exclude Ensure result set excludes specific IDs. (optional)
246233 * @param include Limit result set to specific IDs. (optional)
247- * @param after Limit response to resources created after a given ISO8601 compliant date. (optional)
248- * @param before Limit response to resources created before a given ISO8601 compliant date. (optional)
249234 * @param offset Offset the result set by a specific number of items. (optional)
250235 * @param order Order sort attribute ascending or descending (asc as default). (optional)
251236 * @param orderby Sort collection by object attribute. (optional)
252237 * @param email Limit result set to resources with a specific email address. (optional)
253- * @param role Limit result set to resources with a specific role. (optional)
238+ * @param role Limit result set to resources with a specific role. Default is customer. (optional)
254239 * @return ApiResponse<List<Customer>>
255240 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
256241 * @http.response.details
@@ -262,8 +247,8 @@ public List<Customer> listAllCustomers(String context, Integer page, Integer per
262247 <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
263248 </table>
264249 */
265- public ApiResponse <List <Customer >> listAllCustomersWithHttpInfo (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , OffsetDateTime after , OffsetDateTime before , Integer offset , String order , String orderby , String email , String role ) throws ApiException {
266- okhttp3 .Call localVarCall = listAllCustomersValidateBeforeCall (context , page , perPage , search , exclude , include , after , before , offset , order , orderby , email , role , null );
250+ public ApiResponse <List <Customer >> listAllCustomersWithHttpInfo (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , Integer offset , String order , String orderby , String email , String role ) throws ApiException {
251+ okhttp3 .Call localVarCall = listAllCustomersValidateBeforeCall (context , page , perPage , search , exclude , include , offset , order , orderby , email , role , null );
267252 Type localVarReturnType = new TypeToken <List <Customer >>(){}.getType ();
268253 return localVarApiClient .execute (localVarCall , localVarReturnType );
269254 }
@@ -277,13 +262,11 @@ public ApiResponse<List<Customer>> listAllCustomersWithHttpInfo(String context,
277262 * @param search Limit results to those matching a string. (optional)
278263 * @param exclude Ensure result set excludes specific IDs. (optional)
279264 * @param include Limit result set to specific IDs. (optional)
280- * @param after Limit response to resources created after a given ISO8601 compliant date. (optional)
281- * @param before Limit response to resources created before a given ISO8601 compliant date. (optional)
282265 * @param offset Offset the result set by a specific number of items. (optional)
283266 * @param order Order sort attribute ascending or descending (asc as default). (optional)
284267 * @param orderby Sort collection by object attribute. (optional)
285268 * @param email Limit result set to resources with a specific email address. (optional)
286- * @param role Limit result set to resources with a specific role. (optional)
269+ * @param role Limit result set to resources with a specific role. Default is customer. (optional)
287270 * @param _callback The callback to be executed when the API call finishes
288271 * @return The request call
289272 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -296,9 +279,9 @@ public ApiResponse<List<Customer>> listAllCustomersWithHttpInfo(String context,
296279 <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
297280 </table>
298281 */
299- public okhttp3 .Call listAllCustomersAsync (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , OffsetDateTime after , OffsetDateTime before , Integer offset , String order , String orderby , String email , String role , final ApiCallback <List <Customer >> _callback ) throws ApiException {
282+ public okhttp3 .Call listAllCustomersAsync (String context , Integer page , Integer perPage , String search , List <Integer > exclude , List <Integer > include , Integer offset , String order , String orderby , String email , String role , final ApiCallback <List <Customer >> _callback ) throws ApiException {
300283
301- okhttp3 .Call localVarCall = listAllCustomersValidateBeforeCall (context , page , perPage , search , exclude , include , after , before , offset , order , orderby , email , role , _callback );
284+ okhttp3 .Call localVarCall = listAllCustomersValidateBeforeCall (context , page , perPage , search , exclude , include , offset , order , orderby , email , role , _callback );
302285 Type localVarReturnType = new TypeToken <List <Customer >>(){}.getType ();
303286 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
304287 return localVarCall ;
0 commit comments