docusign_rooms 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/docusign_rooms.gemspec +9 -6
- data/lib/docusign_rooms/api/accounts_api.rb +7 -5
- data/lib/docusign_rooms/api/activity_types_api.rb +5 -3
- data/lib/docusign_rooms/api/closing_statuses_api.rb +5 -3
- data/lib/docusign_rooms/api/contact_sides_api.rb +5 -3
- data/lib/docusign_rooms/api/countries_api.rb +5 -3
- data/lib/docusign_rooms/api/currencies_api.rb +5 -3
- data/lib/docusign_rooms/api/documents_api.rb +29 -25
- data/lib/docusign_rooms/api/e_sign_permission_profiles_api.rb +7 -5
- data/lib/docusign_rooms/api/external_form_fill_sessions_api.rb +8 -8
- data/lib/docusign_rooms/api/fields_api.rb +10 -8
- data/lib/docusign_rooms/api/financing_types_api.rb +5 -3
- data/lib/docusign_rooms/api/form_details_api.rb +7 -5
- data/lib/docusign_rooms/api/form_group_forms_api.rb +95 -0
- data/lib/docusign_rooms/api/form_groups_api.rb +86 -74
- data/lib/docusign_rooms/api/form_libraries_api.rb +14 -10
- data/lib/docusign_rooms/api/form_provider_associations_api.rb +95 -0
- data/lib/docusign_rooms/api/offices_api.rb +44 -36
- data/lib/docusign_rooms/api/origins_of_leads_api.rb +5 -3
- data/lib/docusign_rooms/api/property_types_api.rb +5 -3
- data/lib/docusign_rooms/api/regions_api.rb +38 -30
- data/lib/docusign_rooms/api/roles_api.rb +52 -42
- data/lib/docusign_rooms/api/room_contact_types_api.rb +5 -3
- data/lib/docusign_rooms/api/room_envelopes_api.rb +81 -0
- data/lib/docusign_rooms/api/room_folders_api.rb +7 -5
- data/lib/docusign_rooms/api/room_templates_api.rb +8 -6
- data/lib/docusign_rooms/api/rooms_api.rb +183 -155
- data/lib/docusign_rooms/api/seller_decision_types_api.rb +5 -3
- data/lib/docusign_rooms/api/special_circumstance_types_api.rb +5 -3
- data/lib/docusign_rooms/api/states_api.rb +5 -3
- data/lib/docusign_rooms/api/task_date_types_api.rb +5 -3
- data/lib/docusign_rooms/api/task_list_templates_api.rb +9 -7
- data/lib/docusign_rooms/api/task_lists_api.rb +25 -21
- data/lib/docusign_rooms/api/task_responsibility_types_api.rb +5 -3
- data/lib/docusign_rooms/api/task_statuses_api.rb +5 -3
- data/lib/docusign_rooms/api/time_zones_api.rb +5 -3
- data/lib/docusign_rooms/api/transaction_sides_api.rb +5 -3
- data/lib/docusign_rooms/api/users_api.rb +103 -261
- data/lib/docusign_rooms/client/api_client.rb +17 -12
- data/lib/docusign_rooms/client/api_error.rb +2 -2
- data/lib/docusign_rooms/client/auth/oauth.rb +1 -1
- data/lib/docusign_rooms/configuration.rb +2 -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/document.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 +58 -13
- data/lib/docusign_rooms/models/roles_filter_context_types.rb +30 -0
- data/lib/docusign_rooms/models/room.rb +21 -1
- data/lib/docusign_rooms/models/room_document.rb +10 -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 +11 -3
- data/runLinter.sh +1 -0
- metadata +90 -23
- data/Gemfile.lock +0 -71
- data/lib/.DS_Store +0 -0
- data/lib/docusign_rooms/.DS_Store +0 -0
- data/lib/docusign_rooms/client/.DS_Store +0 -0
- data/tests/Gemfile.lock +0 -42
- data/tests/docs/private.pem +0 -27
@@ -22,7 +22,7 @@ module DocuSign_Rooms
|
|
22
22
|
end
|
23
23
|
|
24
24
|
# Retrieves the list of valid room contact types.
|
25
|
-
#
|
25
|
+
# Returns a list of room contact types, such as Buyer, Seller, and Listing Agent.
|
26
26
|
# @return [GlobalRoomContactTypes]
|
27
27
|
def get_room_contact_types()
|
28
28
|
data, _status_code, _headers = get_room_contact_types_with_http_info()
|
@@ -30,7 +30,7 @@ module DocuSign_Rooms
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Retrieves the list of valid room contact types.
|
33
|
-
#
|
33
|
+
# Returns a list of room contact types, such as Buyer, Seller, and Listing Agent.
|
34
34
|
# @return [Array<(GlobalRoomContactTypes, Fixnum, Hash)>] GlobalRoomContactTypes data, response status code and response headers
|
35
35
|
def get_room_contact_types_with_http_info()
|
36
36
|
if @api_client.config.debugging
|
@@ -45,7 +45,9 @@ 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
|
+
# HTTP header 'Content-Type'
|
50
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
49
51
|
|
50
52
|
# form parameters
|
51
53
|
form_params = {}
|
@@ -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
|
@@ -34,9 +34,9 @@ module DocuSign_Rooms
|
|
34
34
|
end
|
35
35
|
|
36
36
|
# Gets room folders accessible to the calling user.
|
37
|
-
#
|
37
|
+
# Gets a list of room folders in the specified room that are accessible to the current user.
|
38
38
|
# @param room_id The room id from which to retrieve folders.
|
39
|
-
# @param account_id
|
39
|
+
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
40
40
|
# @param DocuSign_Rooms::GetRoomFoldersOptions Options for modifying the behavior of the function.
|
41
41
|
# @return [RoomFolderList]
|
42
42
|
def get_room_folders(room_id, account_id, options = DocuSign_Rooms::GetRoomFoldersOptions.default)
|
@@ -45,9 +45,9 @@ module DocuSign_Rooms
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# Gets room folders accessible to the calling user.
|
48
|
-
#
|
48
|
+
# Gets a list of room folders in the specified room that are accessible to the current user.
|
49
49
|
# @param room_id The room id from which to retrieve folders.
|
50
|
-
# @param account_id
|
50
|
+
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
51
51
|
# @param DocuSign_Rooms::GetRoomFoldersOptions Options for modifying the behavior of the function.
|
52
52
|
# @return [Array<(RoomFolderList, Fixnum, Hash)>] RoomFolderList data, response status code and response headers
|
53
53
|
def get_room_folders_with_http_info(room_id, account_id, options = DocuSign_Rooms::GetRoomFoldersOptions.default)
|
@@ -69,7 +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
|
+
# 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'])
|
73
75
|
|
74
76
|
# form parameters
|
75
77
|
form_params = {}
|
@@ -14,7 +14,7 @@ require "uri"
|
|
14
14
|
module DocuSign_Rooms
|
15
15
|
|
16
16
|
class GetRoomTemplatesOptions
|
17
|
-
# Get all room templates you have access to for this office. Response includes Company and Region level
|
17
|
+
# Get all room templates you have access to for this office. Response includes Company and Region level templates. If onlyAssignable is true, and no officeId is provided, user's default office is assumed.
|
18
18
|
attr_accessor :office_id
|
19
19
|
|
20
20
|
# Get list of templates you have access to. Default value false.
|
@@ -43,8 +43,8 @@ module DocuSign_Rooms
|
|
43
43
|
end
|
44
44
|
|
45
45
|
# Returns all room templates that the active user has access to
|
46
|
-
#
|
47
|
-
# @param account_id
|
46
|
+
# This method returns a list of room templates that the user can use to create a new room. The response includes company and region-level templates
|
47
|
+
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
48
48
|
# @param DocuSign_Rooms::GetRoomTemplatesOptions Options for modifying the behavior of the function.
|
49
49
|
# @return [RoomTemplatesSummaryList]
|
50
50
|
def get_room_templates(account_id, options = DocuSign_Rooms::GetRoomTemplatesOptions.default)
|
@@ -53,8 +53,8 @@ module DocuSign_Rooms
|
|
53
53
|
end
|
54
54
|
|
55
55
|
# Returns all room templates that the active user has access to
|
56
|
-
#
|
57
|
-
# @param account_id
|
56
|
+
# This method returns a list of room templates that the user can use to create a new room. The response includes company and region-level templates
|
57
|
+
# @param account_id (Required) The globally unique identifier (GUID) for the account.
|
58
58
|
# @param DocuSign_Rooms::GetRoomTemplatesOptions Options for modifying the behavior of the function.
|
59
59
|
# @return [Array<(RoomTemplatesSummaryList, Fixnum, Hash)>] RoomTemplatesSummaryList data, response status code and response headers
|
60
60
|
def get_room_templates_with_http_info(account_id, options = DocuSign_Rooms::GetRoomTemplatesOptions.default)
|
@@ -77,7 +77,9 @@ 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
|
+
# HTTP header 'Content-Type'
|
82
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
|
81
83
|
|
82
84
|
# form parameters
|
83
85
|
form_params = {}
|