@@ -242,6 +242,182 @@ public BulkSendingListSummaries deleteBulkSendList(String accountId, String bulk
242242 GenericType <BulkSendingListSummaries > localVarReturnType = new GenericType <BulkSendingListSummaries >() {};
243243 return apiClient .invokeAPI (localVarPath , "DELETE" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType );
244244 }
245+ /// <summary>
246+ /// Gets envelopes from a specific bulk send batch
247+ /// </summary>
248+ public class GetBulkSendBatchEnvelopesOptions
249+ {
250+ private Integer count = null ;
251+ private String include = null ;
252+ private String order = null ;
253+ private String orderBy = null ;
254+ private String searchText = null ;
255+ private Integer startPosition = null ;
256+ private String status = null ;
257+ private java .util .UUID userId = null ;
258+ /*
259+ *
260+ */
261+ public void setCount (Integer count ) {
262+ this .count = count ;
263+ }
264+
265+ public Integer getCount () {
266+ return this .count ;
267+ }
268+ /*
269+ *
270+ */
271+ public void setInclude (String include ) {
272+ this .include = include ;
273+ }
274+
275+ public String getInclude () {
276+ return this .include ;
277+ }
278+ /*
279+ *
280+ */
281+ public void setOrder (String order ) {
282+ this .order = order ;
283+ }
284+
285+ public String getOrder () {
286+ return this .order ;
287+ }
288+ /*
289+ *
290+ */
291+ public void setOrderBy (String orderBy ) {
292+ this .orderBy = orderBy ;
293+ }
294+
295+ public String getOrderBy () {
296+ return this .orderBy ;
297+ }
298+ /*
299+ *
300+ */
301+ public void setSearchText (String searchText ) {
302+ this .searchText = searchText ;
303+ }
304+
305+ public String getSearchText () {
306+ return this .searchText ;
307+ }
308+ /*
309+ *
310+ */
311+ public void setStartPosition (Integer startPosition ) {
312+ this .startPosition = startPosition ;
313+ }
314+
315+ public Integer getStartPosition () {
316+ return this .startPosition ;
317+ }
318+ /*
319+ *
320+ */
321+ public void setStatus (String status ) {
322+ this .status = status ;
323+ }
324+
325+ public String getStatus () {
326+ return this .status ;
327+ }
328+ /*
329+ *
330+ */
331+ public void setUserId (java .util .UUID userId ) {
332+ this .userId = userId ;
333+ }
334+
335+ public java .util .UUID getUserId () {
336+ return this .userId ;
337+ }
338+ }
339+
340+ /**
341+ * Gets envelopes from a specific bulk send batch
342+ *
343+ * @param accountId The external account number (int) or account ID Guid. (required)
344+ * @param bulkSendBatchId (required)
345+ * @return EnvelopesInformation
346+ */
347+ public EnvelopesInformation getBulkSendBatchEnvelopes (String accountId , String bulkSendBatchId ) throws ApiException {
348+ return getBulkSendBatchEnvelopes (accountId , bulkSendBatchId , null );
349+ }
350+
351+ /**
352+ * Gets envelopes from a specific bulk send batch
353+ *
354+ * @param accountId The external account number (int) or account ID Guid. (required)
355+ * @param bulkSendBatchId (required)
356+ * @param options for modifying the method behavior.
357+ * @return EnvelopesInformation
358+ * @throws ApiException if fails to make API call
359+ */
360+ public EnvelopesInformation getBulkSendBatchEnvelopes (String accountId , String bulkSendBatchId , BulkEnvelopesApi .GetBulkSendBatchEnvelopesOptions options ) throws ApiException {
361+ Object localVarPostBody = "{}" ;
362+
363+ // verify the required parameter 'accountId' is set
364+ if (accountId == null ) {
365+ throw new ApiException (400 , "Missing the required parameter 'accountId' when calling getBulkSendBatchEnvelopes" );
366+ }
367+
368+ // verify the required parameter 'bulkSendBatchId' is set
369+ if (bulkSendBatchId == null ) {
370+ throw new ApiException (400 , "Missing the required parameter 'bulkSendBatchId' when calling getBulkSendBatchEnvelopes" );
371+ }
372+
373+ // create path and map variables
374+ String localVarPath = "/v2.1/accounts/{accountId}/bulk_send_batch/{bulkSendBatchId}/envelopes"
375+ .replaceAll ("\\ {" + "accountId" + "\\ }" , apiClient .escapeString (accountId .toString ()))
376+ .replaceAll ("\\ {" + "bulkSendBatchId" + "\\ }" , apiClient .escapeString (bulkSendBatchId .toString ()));
377+
378+ // query params
379+ java .util .List <Pair > localVarQueryParams = new java .util .ArrayList <Pair >();
380+ java .util .List <Pair > localVarCollectionQueryParams = new java .util .ArrayList <Pair >();
381+ java .util .Map <String , String > localVarHeaderParams = new java .util .HashMap <String , String >();
382+ java .util .Map <String , Object > localVarFormParams = new java .util .HashMap <String , Object >();
383+
384+ if (options != null ) {
385+ localVarQueryParams .addAll (apiClient .parameterToPair ("count" , options .count ));
386+ }if (options != null ) {
387+ localVarQueryParams .addAll (apiClient .parameterToPair ("include" , options .include ));
388+ }if (options != null ) {
389+ localVarQueryParams .addAll (apiClient .parameterToPair ("order" , options .order ));
390+ }if (options != null ) {
391+ localVarQueryParams .addAll (apiClient .parameterToPair ("order_by" , options .orderBy ));
392+ }if (options != null ) {
393+ localVarQueryParams .addAll (apiClient .parameterToPair ("search_text" , options .searchText ));
394+ }if (options != null ) {
395+ localVarQueryParams .addAll (apiClient .parameterToPair ("start_position" , options .startPosition ));
396+ }if (options != null ) {
397+ localVarQueryParams .addAll (apiClient .parameterToPair ("status" , options .status ));
398+ }if (options != null ) {
399+ localVarQueryParams .addAll (apiClient .parameterToPair ("user_id" , options .userId ));
400+ }
401+
402+
403+
404+
405+
406+ final String [] localVarAccepts = {
407+ "application/json"
408+ };
409+ final String localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
410+
411+ final String [] localVarContentTypes = {
412+
413+ };
414+ final String localVarContentType = apiClient .selectHeaderContentType (localVarContentTypes );
415+
416+ String [] localVarAuthNames = new String [] { "docusignAccessCode" };
417+
418+ GenericType <EnvelopesInformation > localVarReturnType = new GenericType <EnvelopesInformation >() {};
419+ return apiClient .invokeAPI (localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType );
420+ }
245421
246422 /**
247423 * Gets a specific bulk send batch status
0 commit comments