docusign_rooms 1.2.0.rc1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/docusign_rooms.gemspec +9 -7
- data/lib/docusign_rooms/api/accounts_api.rb +1 -1
- data/lib/docusign_rooms/api/activity_types_api.rb +3 -3
- data/lib/docusign_rooms/api/closing_statuses_api.rb +1 -1
- data/lib/docusign_rooms/api/contact_sides_api.rb +1 -1
- data/lib/docusign_rooms/api/countries_api.rb +1 -1
- data/lib/docusign_rooms/api/currencies_api.rb +1 -1
- data/lib/docusign_rooms/api/documents_api.rb +6 -6
- data/lib/docusign_rooms/api/e_sign_permission_profiles_api.rb +1 -1
- data/lib/docusign_rooms/api/external_form_fill_sessions_api.rb +6 -6
- data/lib/docusign_rooms/api/fields_api.rb +1 -1
- data/lib/docusign_rooms/api/financing_types_api.rb +1 -1
- data/lib/docusign_rooms/api/form_details_api.rb +1 -1
- data/lib/docusign_rooms/api/form_group_forms_api.rb +95 -0
- data/lib/docusign_rooms/api/form_groups_api.rb +18 -18
- data/lib/docusign_rooms/api/form_libraries_api.rb +2 -2
- data/lib/docusign_rooms/api/form_provider_associations_api.rb +95 -0
- data/lib/docusign_rooms/api/offices_api.rb +12 -12
- data/lib/docusign_rooms/api/origins_of_leads_api.rb +1 -1
- data/lib/docusign_rooms/api/property_types_api.rb +1 -1
- data/lib/docusign_rooms/api/regions_api.rb +8 -8
- data/lib/docusign_rooms/api/roles_api.rb +11 -14
- data/lib/docusign_rooms/api/room_contact_types_api.rb +1 -1
- data/lib/docusign_rooms/api/room_envelopes_api.rb +81 -0
- data/lib/docusign_rooms/api/room_folders_api.rb +1 -1
- data/lib/docusign_rooms/api/room_templates_api.rb +1 -1
- data/lib/docusign_rooms/api/rooms_api.rb +36 -42
- data/lib/docusign_rooms/api/seller_decision_types_api.rb +1 -1
- data/lib/docusign_rooms/api/special_circumstance_types_api.rb +1 -1
- data/lib/docusign_rooms/api/states_api.rb +1 -1
- data/lib/docusign_rooms/api/task_date_types_api.rb +1 -1
- data/lib/docusign_rooms/api/task_list_templates_api.rb +1 -1
- data/lib/docusign_rooms/api/task_lists_api.rb +5 -5
- data/lib/docusign_rooms/api/task_responsibility_types_api.rb +1 -1
- data/lib/docusign_rooms/api/task_statuses_api.rb +1 -1
- data/lib/docusign_rooms/api/time_zones_api.rb +1 -1
- data/lib/docusign_rooms/api/transaction_sides_api.rb +1 -1
- data/lib/docusign_rooms/api/users_api.rb +34 -202
- data/lib/docusign_rooms/client/api_client.rb +14 -10
- data/lib/docusign_rooms/client/api_error.rb +2 -2
- data/lib/docusign_rooms/client/auth/oauth.rb +1 -1
- data/lib/docusign_rooms/models/account_summary.rb +35 -1
- data/lib/docusign_rooms/models/api_error.rb +13 -4
- data/lib/docusign_rooms/models/envelope.rb +183 -0
- data/lib/docusign_rooms/models/envelope_for_create.rb +194 -0
- data/lib/docusign_rooms/models/external_form_fill_session_for_create.rb +12 -6
- data/lib/docusign_rooms/models/form_group_form.rb +210 -0
- data/lib/docusign_rooms/models/form_group_form_list.rb +239 -0
- data/lib/docusign_rooms/models/form_provider_association_summary.rb +219 -0
- data/lib/docusign_rooms/models/form_provider_associations_summary_list.rb +239 -0
- data/lib/docusign_rooms/models/form_summary.rb +13 -4
- data/lib/docusign_rooms/models/group_form.rb +13 -4
- data/lib/docusign_rooms/models/listing_type.rb +29 -0
- data/lib/docusign_rooms/models/permissions.rb +49 -4
- data/lib/docusign_rooms/models/room.rb +21 -1
- data/lib/docusign_rooms/models/room_for_create.rb +47 -4
- data/lib/docusign_rooms/models/user.rb +35 -1
- data/lib/docusign_rooms/models/user_summary.rb +35 -1
- data/lib/docusign_rooms/models/user_to_invite.rb +47 -2
- data/lib/docusign_rooms/version.rb +1 -1
- data/lib/docusign_rooms.rb +10 -3
- metadata +115 -89
@@ -42,7 +42,7 @@ module DocuSign_Rooms
|
|
42
42
|
# Create an office.
|
43
43
|
# Create an office.
|
44
44
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
45
|
-
# @param body
|
45
|
+
# @param body Creates an office with given name and other details like Region,Address (optional parameter)
|
46
46
|
# @return [Office]
|
47
47
|
def create_office(account_id, body)
|
48
48
|
data, _status_code, _headers = create_office_with_http_info(account_id, body)
|
@@ -52,7 +52,7 @@ module DocuSign_Rooms
|
|
52
52
|
# Create an office.
|
53
53
|
# Create an office.
|
54
54
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
55
|
-
# @param body
|
55
|
+
# @param body Creates an office with given name and other details like Region,Address (optional parameter)
|
56
56
|
# @return [Array<(Office, Fixnum, Hash)>] Office data, response status code and response headers
|
57
57
|
def create_office_with_http_info(account_id, body)
|
58
58
|
if @api_client.config.debugging
|
@@ -69,9 +69,9 @@ module DocuSign_Rooms
|
|
69
69
|
# header parameters
|
70
70
|
header_params = {}
|
71
71
|
# HTTP header 'Accept' (if needed)
|
72
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
72
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
73
73
|
# HTTP header 'Content-Type'
|
74
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
74
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/xml', 'text/xml', 'application/*+xml'])
|
75
75
|
|
76
76
|
# form parameters
|
77
77
|
form_params = {}
|
@@ -94,7 +94,7 @@ module DocuSign_Rooms
|
|
94
94
|
|
95
95
|
# Delete an office.
|
96
96
|
# This method deletes an office from a Rooms account.
|
97
|
-
# @param office_id
|
97
|
+
# @param office_id Office ID to be deleted
|
98
98
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
99
99
|
# @return [nil]
|
100
100
|
def delete_office(office_id, account_id)
|
@@ -104,7 +104,7 @@ module DocuSign_Rooms
|
|
104
104
|
|
105
105
|
# Delete an office.
|
106
106
|
# This method deletes an office from a Rooms account.
|
107
|
-
# @param office_id
|
107
|
+
# @param office_id Office ID to be deleted
|
108
108
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
109
109
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
110
110
|
def delete_office_with_http_info(office_id, account_id)
|
@@ -124,7 +124,7 @@ module DocuSign_Rooms
|
|
124
124
|
# header parameters
|
125
125
|
header_params = {}
|
126
126
|
# HTTP header 'Accept' (if needed)
|
127
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
127
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
128
128
|
# HTTP header 'Content-Type'
|
129
129
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
130
130
|
|
@@ -178,7 +178,7 @@ module DocuSign_Rooms
|
|
178
178
|
# header parameters
|
179
179
|
header_params = {}
|
180
180
|
# HTTP header 'Accept' (if needed)
|
181
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
181
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
182
182
|
# HTTP header 'Content-Type'
|
183
183
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
184
184
|
|
@@ -235,7 +235,7 @@ module DocuSign_Rooms
|
|
235
235
|
# header parameters
|
236
236
|
header_params = {}
|
237
237
|
# HTTP header 'Accept' (if needed)
|
238
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
238
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
239
239
|
# HTTP header 'Content-Type'
|
240
240
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
241
241
|
|
@@ -260,7 +260,7 @@ module DocuSign_Rooms
|
|
260
260
|
|
261
261
|
# Lists the number of objects of each type that reference the office.
|
262
262
|
# This method returns a list of each type of object and the number of objects of that type referencing the specified office. Note that an office cannot be deleted while existing objects reference it.
|
263
|
-
# @param office_id
|
263
|
+
# @param office_id ID of the office
|
264
264
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
265
265
|
# @return [OfficeReferenceCountList]
|
266
266
|
def get_reference_counts(office_id, account_id)
|
@@ -270,7 +270,7 @@ module DocuSign_Rooms
|
|
270
270
|
|
271
271
|
# Lists the number of objects of each type that reference the office.
|
272
272
|
# This method returns a list of each type of object and the number of objects of that type referencing the specified office. Note that an office cannot be deleted while existing objects reference it.
|
273
|
-
# @param office_id
|
273
|
+
# @param office_id ID of the office
|
274
274
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
275
275
|
# @return [Array<(OfficeReferenceCountList, Fixnum, Hash)>] OfficeReferenceCountList data, response status code and response headers
|
276
276
|
def get_reference_counts_with_http_info(office_id, account_id)
|
@@ -290,7 +290,7 @@ module DocuSign_Rooms
|
|
290
290
|
# header parameters
|
291
291
|
header_params = {}
|
292
292
|
# HTTP header 'Accept' (if needed)
|
293
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
293
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
294
294
|
# HTTP header 'Content-Type'
|
295
295
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
296
296
|
|
@@ -45,7 +45,7 @@ module DocuSign_Rooms
|
|
45
45
|
# header parameters
|
46
46
|
header_params = {}
|
47
47
|
# HTTP header 'Accept' (if needed)
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
49
49
|
# HTTP header 'Content-Type'
|
50
50
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
51
51
|
|
@@ -45,7 +45,7 @@ module DocuSign_Rooms
|
|
45
45
|
# header parameters
|
46
46
|
header_params = {}
|
47
47
|
# HTTP header 'Accept' (if needed)
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
49
49
|
# HTTP header 'Content-Type'
|
50
50
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
51
51
|
|
@@ -39,7 +39,7 @@ module DocuSign_Rooms
|
|
39
39
|
# Creates a new region for a company
|
40
40
|
# Creates a new region for a company
|
41
41
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
42
|
-
# @param body
|
42
|
+
# @param body The information required to create a new region for the caller's company (optional parameter)
|
43
43
|
# @return [Region]
|
44
44
|
def create_region(account_id, body)
|
45
45
|
data, _status_code, _headers = create_region_with_http_info(account_id, body)
|
@@ -49,7 +49,7 @@ module DocuSign_Rooms
|
|
49
49
|
# Creates a new region for a company
|
50
50
|
# Creates a new region for a company
|
51
51
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
52
|
-
# @param body
|
52
|
+
# @param body The information required to create a new region for the caller's company (optional parameter)
|
53
53
|
# @return [Array<(Region, Fixnum, Hash)>] Region data, response status code and response headers
|
54
54
|
def create_region_with_http_info(account_id, body)
|
55
55
|
if @api_client.config.debugging
|
@@ -66,9 +66,9 @@ module DocuSign_Rooms
|
|
66
66
|
# header parameters
|
67
67
|
header_params = {}
|
68
68
|
# HTTP header 'Accept' (if needed)
|
69
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
70
70
|
# HTTP header 'Content-Type'
|
71
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
71
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/xml', 'text/xml', 'application/*+xml'])
|
72
72
|
|
73
73
|
# form parameters
|
74
74
|
form_params = {}
|
@@ -121,7 +121,7 @@ module DocuSign_Rooms
|
|
121
121
|
# header parameters
|
122
122
|
header_params = {}
|
123
123
|
# HTTP header 'Accept' (if needed)
|
124
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
125
125
|
# HTTP header 'Content-Type'
|
126
126
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
127
127
|
|
@@ -175,7 +175,7 @@ module DocuSign_Rooms
|
|
175
175
|
# header parameters
|
176
176
|
header_params = {}
|
177
177
|
# HTTP header 'Accept' (if needed)
|
178
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
179
179
|
# HTTP header 'Content-Type'
|
180
180
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
181
181
|
|
@@ -230,7 +230,7 @@ module DocuSign_Rooms
|
|
230
230
|
# header parameters
|
231
231
|
header_params = {}
|
232
232
|
# HTTP header 'Accept' (if needed)
|
233
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
233
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
234
234
|
# HTTP header 'Content-Type'
|
235
235
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
236
236
|
|
@@ -286,7 +286,7 @@ module DocuSign_Rooms
|
|
286
286
|
# header parameters
|
287
287
|
header_params = {}
|
288
288
|
# HTTP header 'Accept' (if needed)
|
289
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
289
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
290
290
|
# HTTP header 'Content-Type'
|
291
291
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
292
292
|
|
@@ -54,7 +54,7 @@ module DocuSign_Rooms
|
|
54
54
|
# Creates a role.
|
55
55
|
# Creates a new company role in Rooms
|
56
56
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
57
|
-
# @param body
|
57
|
+
# @param body Name and permission details of the role to be created (optional parameter)
|
58
58
|
# @return [Role]
|
59
59
|
def create_role(account_id, body)
|
60
60
|
data, _status_code, _headers = create_role_with_http_info(account_id, body)
|
@@ -64,7 +64,7 @@ module DocuSign_Rooms
|
|
64
64
|
# Creates a role.
|
65
65
|
# Creates a new company role in Rooms
|
66
66
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
67
|
-
# @param body
|
67
|
+
# @param body Name and permission details of the role to be created (optional parameter)
|
68
68
|
# @return [Array<(Role, Fixnum, Hash)>] Role data, response status code and response headers
|
69
69
|
def create_role_with_http_info(account_id, body)
|
70
70
|
if @api_client.config.debugging
|
@@ -81,9 +81,9 @@ module DocuSign_Rooms
|
|
81
81
|
# header parameters
|
82
82
|
header_params = {}
|
83
83
|
# HTTP header 'Accept' (if needed)
|
84
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
84
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
85
85
|
# HTTP header 'Content-Type'
|
86
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
86
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/xml', 'text/xml', 'application/*+xml'])
|
87
87
|
|
88
88
|
# form parameters
|
89
89
|
form_params = {}
|
@@ -136,7 +136,7 @@ module DocuSign_Rooms
|
|
136
136
|
# header parameters
|
137
137
|
header_params = {}
|
138
138
|
# HTTP header 'Accept' (if needed)
|
139
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
140
140
|
# HTTP header 'Content-Type'
|
141
141
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
142
142
|
|
@@ -193,7 +193,7 @@ module DocuSign_Rooms
|
|
193
193
|
# header parameters
|
194
194
|
header_params = {}
|
195
195
|
# HTTP header 'Accept' (if needed)
|
196
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
197
197
|
# HTTP header 'Content-Type'
|
198
198
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
199
199
|
|
@@ -237,9 +237,6 @@ module DocuSign_Rooms
|
|
237
237
|
end
|
238
238
|
# verify the required parameter 'account_id' is set
|
239
239
|
fail ArgumentError, "Missing the required parameter 'account_id' when calling RolesApi.get_roles" if account_id.nil?
|
240
|
-
if options.filter_context && !['AllRoles', 'AssignableRolesBasedOnCompanyPermissions', 'AssignableRolesBasedOnAllPermissions'].include?(options.filter_context)
|
241
|
-
fail ArgumentError, 'invalid value for "filter_context", must be one of AllRoles, AssignableRolesBasedOnCompanyPermissions, AssignableRolesBasedOnAllPermissions'
|
242
|
-
end
|
243
240
|
# resource path
|
244
241
|
local_var_path = "/v2/accounts/{accountId}/roles".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
|
245
242
|
|
@@ -254,7 +251,7 @@ module DocuSign_Rooms
|
|
254
251
|
# header parameters
|
255
252
|
header_params = {}
|
256
253
|
# HTTP header 'Accept' (if needed)
|
257
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
254
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
258
255
|
# HTTP header 'Content-Type'
|
259
256
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
260
257
|
|
@@ -281,7 +278,7 @@ module DocuSign_Rooms
|
|
281
278
|
# Updates the role with the given roleId.
|
282
279
|
# @param role_id The id of the role.
|
283
280
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
284
|
-
# @param body
|
281
|
+
# @param body Name and permission details of the role to be updated (optional parameter)
|
285
282
|
# @return [Role]
|
286
283
|
def update_role(role_id, account_id, body)
|
287
284
|
data, _status_code, _headers = update_role_with_http_info(role_id, account_id, body)
|
@@ -292,7 +289,7 @@ module DocuSign_Rooms
|
|
292
289
|
# Updates the role with the given roleId.
|
293
290
|
# @param role_id The id of the role.
|
294
291
|
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
295
|
-
# @param body
|
292
|
+
# @param body Name and permission details of the role to be updated (optional parameter)
|
296
293
|
# @return [Array<(Role, Fixnum, Hash)>] Role data, response status code and response headers
|
297
294
|
def update_role_with_http_info(role_id, account_id, body)
|
298
295
|
if @api_client.config.debugging
|
@@ -311,9 +308,9 @@ module DocuSign_Rooms
|
|
311
308
|
# header parameters
|
312
309
|
header_params = {}
|
313
310
|
# HTTP header 'Accept' (if needed)
|
314
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
315
312
|
# HTTP header 'Content-Type'
|
316
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
313
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json', 'application/xml', 'text/xml', 'application/*+xml'])
|
317
314
|
|
318
315
|
# form parameters
|
319
316
|
form_params = {}
|
@@ -45,7 +45,7 @@ module DocuSign_Rooms
|
|
45
45
|
# header parameters
|
46
46
|
header_params = {}
|
47
47
|
# HTTP header 'Accept' (if needed)
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
49
49
|
# HTTP header 'Content-Type'
|
50
50
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
51
51
|
|
@@ -0,0 +1,81 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign Rooms API - v2
|
3
|
+
|
4
|
+
#An API for an integrator to access the features of DocuSign Rooms
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require "uri"
|
13
|
+
|
14
|
+
module DocuSign_Rooms
|
15
|
+
|
16
|
+
|
17
|
+
class RoomEnvelopesApi
|
18
|
+
attr_accessor :api_client
|
19
|
+
|
20
|
+
def initialize(api_client = RoomEnvelopesApi.default)
|
21
|
+
@api_client = api_client
|
22
|
+
end
|
23
|
+
|
24
|
+
# Creates an envelope with given documents. Returns the eSign envelope ID created
|
25
|
+
# Creates an envelope with given documents. Returns the eSign envelope ID created
|
26
|
+
# @param room_id Room ID
|
27
|
+
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
28
|
+
# @param body Envelope Name and list of document IDs (optional parameter)
|
29
|
+
# @return [Envelope]
|
30
|
+
def create_room_envelope(room_id, account_id, body)
|
31
|
+
data, _status_code, _headers = create_room_envelope_with_http_info(room_id, account_id, body)
|
32
|
+
return data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Creates an envelope with given documents. Returns the eSign envelope ID created
|
36
|
+
# Creates an envelope with given documents. Returns the eSign envelope ID created
|
37
|
+
# @param room_id Room ID
|
38
|
+
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
39
|
+
# @param body Envelope Name and list of document IDs (optional parameter)
|
40
|
+
# @return [Array<(Envelope, Fixnum, Hash)>] Envelope data, response status code and response headers
|
41
|
+
def create_room_envelope_with_http_info(room_id, account_id, body)
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug "Calling API: RoomEnvelopesApi.create_room_envelope ..."
|
44
|
+
end
|
45
|
+
# verify the required parameter 'room_id' is set
|
46
|
+
fail ArgumentError, "Missing the required parameter 'room_id' when calling RoomEnvelopesApi.create_room_envelope" if room_id.nil?
|
47
|
+
# verify the required parameter 'account_id' is set
|
48
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling RoomEnvelopesApi.create_room_envelope" if account_id.nil?
|
49
|
+
# resource path
|
50
|
+
local_var_path = "/v2/accounts/{accountId}/rooms/{roomId}/envelopes".sub('{format}','json').sub('{' + 'roomId' + '}', room_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = @api_client.object_to_http_body(body)
|
67
|
+
auth_names = []
|
68
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => 'Envelope')
|
75
|
+
if @api_client.config.debugging
|
76
|
+
@api_client.config.logger.debug "API called: RoomEnvelopesApi#create_room_envelope\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
77
|
+
end
|
78
|
+
return data, status_code, headers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -69,7 +69,7 @@ module DocuSign_Rooms
|
|
69
69
|
# header parameters
|
70
70
|
header_params = {}
|
71
71
|
# HTTP header 'Accept' (if needed)
|
72
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
72
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
73
73
|
# HTTP header 'Content-Type'
|
74
74
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
75
75
|
|
@@ -77,7 +77,7 @@ module DocuSign_Rooms
|
|
77
77
|
# header parameters
|
78
78
|
header_params = {}
|
79
79
|
# HTTP header 'Accept' (if needed)
|
80
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
|
80
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
|
81
81
|
# HTTP header 'Content-Type'
|
82
82
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
83
83
|
|