@@ -30,21 +30,48 @@ public void setApiClient(ApiClient apiClient) {
3030 this .apiClient = apiClient ;
3131 }
3232
33+ /// <summary>
34+ /// Gets a list of all account tabs. Retrieves a list of all tabs associated with the account.
35+ /// </summary>
36+ public class CallListOptions
37+ {
38+ private String customTabOnly = null ;
39+ /*
40+ * When set to **true**, only custom tabs are returned in the response.
41+ */
42+ public void setCustomTabOnly (String customTabOnly ) {
43+ this .customTabOnly = customTabOnly ;
44+ }
45+
46+ public String getCustomTabOnly () {
47+ return this .customTabOnly ;
48+ }
49+ }
50+
51+ /**
52+ * Gets a list of all account tabs.
53+ * Retrieves a list of all tabs associated with the account.
54+ * @param accountId The external account number (int) or account ID Guid. (required)
55+ * @return TabMetadataList
56+ */
57+ public TabMetadataList callList (String accountId ) throws ApiException {
58+ return callList (accountId , null );
59+ }
3360
3461 /**
35- * Creates a custom tab .
36- * Creates a tab with pre-defined properties, such as a text tab with a certain font type and validation pattern. Users can access the custom tabs when sending documents through the DocuSign web application. Custom tabs can be created for approve, checkbox, company, date, date signed, decline, email, email address, envelope ID, first name, formula, full name, initial here, last name, list, note, number, radio, sign here, signer attachment, SSN, text, title, and zip tabs .
62+ * Gets a list of all account tabs .
63+ * Retrieves a list of all tabs associated with the account .
3764 * @param accountId The external account number (int) or account ID Guid. (required)
38- * @param tabMetadata (optional)
39- * @return TabMetadata
65+ * @param options for modifying the method behavior.
66+ * @return TabMetadataList
4067 * @throws ApiException if fails to make API call
4168 */
42- public TabMetadata create (String accountId , TabMetadata tabMetadata ) throws ApiException {
43- Object localVarPostBody = tabMetadata ;
69+ public TabMetadataList callList (String accountId , CustomTabsApi . CallListOptions options ) throws ApiException {
70+ Object localVarPostBody = "{}" ;
4471
4572 // verify the required parameter 'accountId' is set
4673 if (accountId == null ) {
47- throw new ApiException (400 , "Missing the required parameter 'accountId' when calling create " );
74+ throw new ApiException (400 , "Missing the required parameter 'accountId' when calling callList " );
4875 }
4976
5077 // create path and map variables
@@ -57,7 +84,9 @@ public TabMetadata create(String accountId, TabMetadata tabMetadata) throws ApiE
5784 java .util .Map <String , String > localVarHeaderParams = new java .util .HashMap <String , String >();
5885 java .util .Map <String , Object > localVarFormParams = new java .util .HashMap <String , Object >();
5986
60-
87+ if (options != null ) {
88+ localVarQueryParams .addAll (apiClient .parameterToPair ("custom_tab_only" , options .customTabOnly ));
89+ }
6190
6291
6392
@@ -75,34 +104,29 @@ public TabMetadata create(String accountId, TabMetadata tabMetadata) throws ApiE
75104
76105 String [] localVarAuthNames = new String [] { "docusignAccessCode" };
77106
78- GenericType <TabMetadata > localVarReturnType = new GenericType <TabMetadata >() {};
79- return apiClient .invokeAPI (localVarPath , "POST " , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType );
107+ GenericType <TabMetadataList > localVarReturnType = new GenericType <TabMetadataList >() {};
108+ return apiClient .invokeAPI (localVarPath , "GET " , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType );
80109 }
81110
82111 /**
83- * Deletes custom tab information .
84- * Deletes the custom from the specified account .
112+ * Creates a custom tab.
113+ * Creates a tab with pre-defined properties, such as a text tab with a certain font type and validation pattern. Users can access the custom tabs when sending documents through the DocuSign web application. Custom tabs can be created for approve, checkbox, company, date, date signed, decline, email, email address, envelope ID, first name, formula, full name, initial here, last name, list, note, number, radio, sign here, signer attachment, SSN, text, title, and zip tabs .
85114 * @param accountId The external account number (int) or account ID Guid. (required)
86- * @param customTabId (required)
115+ * @param tabMetadata (optional)
116+ * @return TabMetadata
87117 * @throws ApiException if fails to make API call
88118 */
89- public void delete (String accountId , String customTabId ) throws ApiException {
90- Object localVarPostBody = "{}" ;
119+ public TabMetadata create (String accountId , TabMetadata tabMetadata ) throws ApiException {
120+ Object localVarPostBody = tabMetadata ;
91121
92122 // verify the required parameter 'accountId' is set
93123 if (accountId == null ) {
94- throw new ApiException (400 , "Missing the required parameter 'accountId' when calling delete" );
95- }
96-
97- // verify the required parameter 'customTabId' is set
98- if (customTabId == null ) {
99- throw new ApiException (400 , "Missing the required parameter 'customTabId' when calling delete" );
124+ throw new ApiException (400 , "Missing the required parameter 'accountId' when calling create" );
100125 }
101126
102127 // create path and map variables
103- String localVarPath = "/v2/accounts/{accountId}/tab_definitions/{customTabId}"
104- .replaceAll ("\\ {" + "accountId" + "\\ }" , apiClient .escapeString (accountId .toString ()))
105- .replaceAll ("\\ {" + "customTabId" + "\\ }" , apiClient .escapeString (customTabId .toString ()));
128+ String localVarPath = "/v2/accounts/{accountId}/tab_definitions"
129+ .replaceAll ("\\ {" + "accountId" + "\\ }" , apiClient .escapeString (accountId .toString ()));
106130
107131 // query params
108132 java .util .List <Pair > localVarQueryParams = new java .util .ArrayList <Pair >();
@@ -128,29 +152,28 @@ public void delete(String accountId, String customTabId) throws ApiException {
128152
129153 String [] localVarAuthNames = new String [] { "docusignAccessCode" };
130154
131-
132- apiClient .invokeAPI (localVarPath , "DELETE " , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , null );
133- }
155+ GenericType < TabMetadata > localVarReturnType = new GenericType < TabMetadata >() {};
156+ return apiClient .invokeAPI (localVarPath , "POST " , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType );
157+ }
134158
135159 /**
136- * Gets custom tab information.
137- * Retrieves information about the requested custom tab on the specified account.
160+ * Deletes custom tab information.
161+ * Deletes the custom from the specified account.
138162 * @param accountId The external account number (int) or account ID Guid. (required)
139163 * @param customTabId (required)
140- * @return TabMetadata
141164 * @throws ApiException if fails to make API call
142165 */
143- public TabMetadata get (String accountId , String customTabId ) throws ApiException {
166+ public void delete (String accountId , String customTabId ) throws ApiException {
144167 Object localVarPostBody = "{}" ;
145168
146169 // verify the required parameter 'accountId' is set
147170 if (accountId == null ) {
148- throw new ApiException (400 , "Missing the required parameter 'accountId' when calling get " );
171+ throw new ApiException (400 , "Missing the required parameter 'accountId' when calling delete " );
149172 }
150173
151174 // verify the required parameter 'customTabId' is set
152175 if (customTabId == null ) {
153- throw new ApiException (400 , "Missing the required parameter 'customTabId' when calling get " );
176+ throw new ApiException (400 , "Missing the required parameter 'customTabId' when calling delete " );
154177 }
155178
156179 // create path and map variables
@@ -182,66 +205,43 @@ public TabMetadata get(String accountId, String customTabId) throws ApiException
182205
183206 String [] localVarAuthNames = new String [] { "docusignAccessCode" };
184207
185- GenericType <TabMetadata > localVarReturnType = new GenericType <TabMetadata >() {};
186- return apiClient .invokeAPI (localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType );
187- }
188- /// <summary>
189- /// Gets a list of all account tabs. Retrieves a list of all tabs associated with the account.
190- /// </summary>
191- public class ListOptions
192- {
193- private String customTabOnly = null ;
194- /*
195- * When set to **true**, only custom tabs are returned in the response.
196- */
197- public void setCustomTabOnly (String customTabOnly ) {
198- this .customTabOnly = customTabOnly ;
199- }
200-
201- public String getCustomTabOnly () {
202- return this .customTabOnly ;
203- }
204- }
205208
206- /**
207- * Gets a list of all account tabs.
208- * Retrieves a list of all tabs associated with the account.
209- * @param accountId The external account number (int) or account ID Guid. (required)
210- * @return TabMetadataList
211- */
212- public TabMetadataList list (String accountId ) throws ApiException {
213- return list (accountId , null );
209+ apiClient .invokeAPI (localVarPath , "DELETE" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , null );
214210 }
215211
216212 /**
217- * Gets a list of all account tabs .
218- * Retrieves a list of all tabs associated with the account.
213+ * Gets custom tab information .
214+ * Retrieves information about the requested custom tab on the specified account.
219215 * @param accountId The external account number (int) or account ID Guid. (required)
220- * @param options for modifying the method behavior.
221- * @return TabMetadataList
216+ * @param customTabId (required)
217+ * @return TabMetadata
222218 * @throws ApiException if fails to make API call
223219 */
224- public TabMetadataList list (String accountId , CustomTabsApi . ListOptions options ) throws ApiException {
220+ public TabMetadata get (String accountId , String customTabId ) throws ApiException {
225221 Object localVarPostBody = "{}" ;
226222
227223 // verify the required parameter 'accountId' is set
228224 if (accountId == null ) {
229- throw new ApiException (400 , "Missing the required parameter 'accountId' when calling list" );
225+ throw new ApiException (400 , "Missing the required parameter 'accountId' when calling get" );
226+ }
227+
228+ // verify the required parameter 'customTabId' is set
229+ if (customTabId == null ) {
230+ throw new ApiException (400 , "Missing the required parameter 'customTabId' when calling get" );
230231 }
231232
232233 // create path and map variables
233- String localVarPath = "/v2/accounts/{accountId}/tab_definitions"
234- .replaceAll ("\\ {" + "accountId" + "\\ }" , apiClient .escapeString (accountId .toString ()));
234+ String localVarPath = "/v2/accounts/{accountId}/tab_definitions/{customTabId}"
235+ .replaceAll ("\\ {" + "accountId" + "\\ }" , apiClient .escapeString (accountId .toString ()))
236+ .replaceAll ("\\ {" + "customTabId" + "\\ }" , apiClient .escapeString (customTabId .toString ()));
235237
236238 // query params
237239 java .util .List <Pair > localVarQueryParams = new java .util .ArrayList <Pair >();
238240 java .util .List <Pair > localVarCollectionQueryParams = new java .util .ArrayList <Pair >();
239241 java .util .Map <String , String > localVarHeaderParams = new java .util .HashMap <String , String >();
240242 java .util .Map <String , Object > localVarFormParams = new java .util .HashMap <String , Object >();
241243
242- if (options != null ) {
243- localVarQueryParams .addAll (apiClient .parameterToPair ("custom_tab_only" , options .customTabOnly ));
244- }
244+
245245
246246
247247
@@ -259,7 +259,7 @@ public TabMetadataList list(String accountId, CustomTabsApi.ListOptions options)
259259
260260 String [] localVarAuthNames = new String [] { "docusignAccessCode" };
261261
262- GenericType <TabMetadataList > localVarReturnType = new GenericType <TabMetadataList >() {};
262+ GenericType <TabMetadata > localVarReturnType = new GenericType <TabMetadata >() {};
263263 return apiClient .invokeAPI (localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType );
264264 }
265265
0 commit comments