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.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/docusign_rooms.gemspec +9 -7
  4. data/lib/docusign_rooms/api/accounts_api.rb +1 -1
  5. data/lib/docusign_rooms/api/activity_types_api.rb +3 -3
  6. data/lib/docusign_rooms/api/closing_statuses_api.rb +1 -1
  7. data/lib/docusign_rooms/api/contact_sides_api.rb +1 -1
  8. data/lib/docusign_rooms/api/countries_api.rb +1 -1
  9. data/lib/docusign_rooms/api/currencies_api.rb +1 -1
  10. data/lib/docusign_rooms/api/documents_api.rb +6 -6
  11. data/lib/docusign_rooms/api/e_sign_permission_profiles_api.rb +1 -1
  12. data/lib/docusign_rooms/api/external_form_fill_sessions_api.rb +6 -6
  13. data/lib/docusign_rooms/api/fields_api.rb +1 -1
  14. data/lib/docusign_rooms/api/financing_types_api.rb +1 -1
  15. data/lib/docusign_rooms/api/form_details_api.rb +1 -1
  16. data/lib/docusign_rooms/api/form_group_forms_api.rb +95 -0
  17. data/lib/docusign_rooms/api/form_groups_api.rb +18 -18
  18. data/lib/docusign_rooms/api/form_libraries_api.rb +2 -2
  19. data/lib/docusign_rooms/api/form_provider_associations_api.rb +95 -0
  20. data/lib/docusign_rooms/api/offices_api.rb +12 -12
  21. data/lib/docusign_rooms/api/origins_of_leads_api.rb +1 -1
  22. data/lib/docusign_rooms/api/property_types_api.rb +1 -1
  23. data/lib/docusign_rooms/api/regions_api.rb +8 -8
  24. data/lib/docusign_rooms/api/roles_api.rb +11 -14
  25. data/lib/docusign_rooms/api/room_contact_types_api.rb +1 -1
  26. data/lib/docusign_rooms/api/room_envelopes_api.rb +81 -0
  27. data/lib/docusign_rooms/api/room_folders_api.rb +1 -1
  28. data/lib/docusign_rooms/api/room_templates_api.rb +1 -1
  29. data/lib/docusign_rooms/api/rooms_api.rb +36 -42
  30. data/lib/docusign_rooms/api/seller_decision_types_api.rb +1 -1
  31. data/lib/docusign_rooms/api/special_circumstance_types_api.rb +1 -1
  32. data/lib/docusign_rooms/api/states_api.rb +1 -1
  33. data/lib/docusign_rooms/api/task_date_types_api.rb +1 -1
  34. data/lib/docusign_rooms/api/task_list_templates_api.rb +1 -1
  35. data/lib/docusign_rooms/api/task_lists_api.rb +5 -5
  36. data/lib/docusign_rooms/api/task_responsibility_types_api.rb +1 -1
  37. data/lib/docusign_rooms/api/task_statuses_api.rb +1 -1
  38. data/lib/docusign_rooms/api/time_zones_api.rb +1 -1
  39. data/lib/docusign_rooms/api/transaction_sides_api.rb +1 -1
  40. data/lib/docusign_rooms/api/users_api.rb +34 -202
  41. data/lib/docusign_rooms/client/api_client.rb +14 -10
  42. data/lib/docusign_rooms/client/api_error.rb +2 -2
  43. data/lib/docusign_rooms/client/auth/oauth.rb +1 -1
  44. data/lib/docusign_rooms/models/account_summary.rb +35 -1
  45. data/lib/docusign_rooms/models/api_error.rb +13 -4
  46. data/lib/docusign_rooms/models/envelope.rb +183 -0
  47. data/lib/docusign_rooms/models/envelope_for_create.rb +194 -0
  48. data/lib/docusign_rooms/models/external_form_fill_session_for_create.rb +12 -6
  49. data/lib/docusign_rooms/models/form_group_form.rb +210 -0
  50. data/lib/docusign_rooms/models/form_group_form_list.rb +239 -0
  51. data/lib/docusign_rooms/models/form_provider_association_summary.rb +219 -0
  52. data/lib/docusign_rooms/models/form_provider_associations_summary_list.rb +239 -0
  53. data/lib/docusign_rooms/models/form_summary.rb +13 -4
  54. data/lib/docusign_rooms/models/group_form.rb +13 -4
  55. data/lib/docusign_rooms/models/listing_type.rb +29 -0
  56. data/lib/docusign_rooms/models/permissions.rb +49 -4
  57. data/lib/docusign_rooms/models/room.rb +21 -1
  58. data/lib/docusign_rooms/models/room_for_create.rb +47 -4
  59. data/lib/docusign_rooms/models/user.rb +35 -1
  60. data/lib/docusign_rooms/models/user_summary.rb +35 -1
  61. data/lib/docusign_rooms/models/user_to_invite.rb +47 -2
  62. data/lib/docusign_rooms/version.rb +1 -1
  63. data/lib/docusign_rooms.rb +10 -3
  64. metadata +115 -89
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '0933d85cae9bda0d7835ad033a42eac3371c2297bfd374c6d6bce5f9ab9c625c'
4
+ data.tar.gz: ebc6c08f0caa5ae6fa1f4aeda50c7208352124626aa3cc1665a1b690a2584150
5
+ SHA512:
6
+ metadata.gz: e77381d3a4cf99894f27ad41be78aa2ce71af6b9c39b31c630bb0f9cd99d37c76f52591eb3df59c40388b9485933a76dc0963a120aef6425a2edb786551f1632
7
+ data.tar.gz: 4a1ba92e92cd0701eaa5def076799bc6e34ce1059b62c84214ae6a2781fbc9d62b8b58e629d7c84bd3bc131716b9146f8cbfc79e2812950cac7104ecb8dfc083
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # DocuSign Rooms Ruby Client Changelog
2
2
  See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
3
3
 
4
+ ## [v1.3.0] - Rooms API v2-1.1.0 - 2023-01-30
5
+ ### Changed
6
+ - Added support for version v2-1.1.0 of the DocuSign Rooms API.
7
+ - Updated the SDK release version.
8
+
4
9
  ## [1.2.0.rc1] - Rooms API v2-1.0.9 - 2021-10-04
5
10
  ### Changed
6
11
  - Added support for version v2-1.0.9 of the DocuSign Rooms API.
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  =begin
4
- #DocuSign Rooms API
4
+ #DocuSign Rooms API - v2
5
5
 
6
6
  #An API for an integrator to access the features of DocuSign Rooms
7
7
 
@@ -21,26 +21,28 @@ Gem::Specification.new do |s|
21
21
  s.authors = ["DocuSign"]
22
22
  s.email = ["devcenter@docusign.com"]
23
23
  s.homepage = "https://github.com/docusign/docusign-rooms-ruby-client"
24
- s.summary = "DocuSign Rooms API Ruby Gem"
24
+ s.summary = "DocuSign Rooms API - v2 Ruby Gem"
25
25
  s.description = "The DocuSign package makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-rooms-ruby-client repository."
26
26
  s.license = "MIT"
27
27
  s.required_ruby_version = ">= 1.9"
28
28
 
29
29
  s.add_runtime_dependency 'jwt', '~> 2.2', '>= 2.2.1'
30
+ s.add_runtime_dependency 'addressable', '~> 2.7', '>= 2.7.0'
30
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
32
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
- s.add_runtime_dependency 'addressable', '~> 2.7', '>= 2.7.0'
33
33
 
34
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'rspec-mocks', '~> 3.8', '>= 3.8.0'
35
+ s.add_development_dependency 'rspec-expectations', '~> 3.8', '>= 3.8.0'
36
+ s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
35
37
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
36
38
  s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
37
39
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
38
40
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
39
41
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
40
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
42
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
41
43
 
42
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
44
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
43
45
  s.test_files = `find spec/*`.split("\n")
44
46
  s.executables = []
45
47
  s.require_paths = ["lib"]
46
- end
48
+ end
@@ -49,7 +49,7 @@ module DocuSign_Rooms
49
49
  # header parameters
50
50
  header_params = {}
51
51
  # HTTP header 'Accept' (if needed)
52
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
52
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
53
53
  # HTTP header 'Content-Type'
54
54
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
55
55
 
@@ -22,7 +22,7 @@ module DocuSign_Rooms
22
22
  end
23
23
 
24
24
  # Retrieves the list of valid activity types.
25
- # Retrieves the list of valid activity types.
25
+ # Returns the list of valid activity types.
26
26
  # @return [GlobalActivityTypes]
27
27
  def get_activity_types()
28
28
  data, _status_code, _headers = get_activity_types_with_http_info()
@@ -30,7 +30,7 @@ module DocuSign_Rooms
30
30
  end
31
31
 
32
32
  # Retrieves the list of valid activity types.
33
- # Retrieves the list of valid activity types.
33
+ # Returns the list of valid activity types.
34
34
  # @return [Array<(GlobalActivityTypes, Fixnum, Hash)>] GlobalActivityTypes data, response status code and response headers
35
35
  def get_activity_types_with_http_info()
36
36
  if @api_client.config.debugging
@@ -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
 
@@ -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
 
@@ -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
 
@@ -34,7 +34,7 @@ module DocuSign_Rooms
34
34
  # Grants a user access to a document. You specify the user's `userId` in the request body. The response is an object that specifies the access the user has.
35
35
  # @param document_id The id of the document.
36
36
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
37
- # @param body (optional parameter)
37
+ # @param body Request body with user id that the document has to be granted to (optional parameter)
38
38
  # @return [DocumentUser]
39
39
  def create_document_user(document_id, account_id, body)
40
40
  data, _status_code, _headers = create_document_user_with_http_info(document_id, account_id, body)
@@ -45,7 +45,7 @@ module DocuSign_Rooms
45
45
  # Grants a user access to a document. You specify the user&#39;s &#x60;userId&#x60; in the request body. The response is an object that specifies the access the user has.
46
46
  # @param document_id The id of the document.
47
47
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
48
- # @param body (optional parameter)
48
+ # @param body Request body with user id that the document has to be granted to (optional parameter)
49
49
  # @return [Array<(DocumentUser, Fixnum, Hash)>] DocumentUser data, response status code and response headers
50
50
  def create_document_user_with_http_info(document_id, account_id, body)
51
51
  if @api_client.config.debugging
@@ -64,9 +64,9 @@ module DocuSign_Rooms
64
64
  # header parameters
65
65
  header_params = {}
66
66
  # HTTP header 'Accept' (if needed)
67
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
67
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
68
68
  # HTTP header 'Content-Type'
69
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
69
+ 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'])
70
70
 
71
71
  # form parameters
72
72
  form_params = {}
@@ -119,7 +119,7 @@ module DocuSign_Rooms
119
119
  # header parameters
120
120
  header_params = {}
121
121
  # HTTP header 'Accept' (if needed)
122
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
122
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
123
123
  # HTTP header 'Content-Type'
124
124
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
125
125
 
@@ -176,7 +176,7 @@ module DocuSign_Rooms
176
176
  # header parameters
177
177
  header_params = {}
178
178
  # HTTP header 'Accept' (if needed)
179
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
179
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
180
180
  # HTTP header 'Content-Type'
181
181
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
182
182
 
@@ -49,7 +49,7 @@ module DocuSign_Rooms
49
49
  # header parameters
50
50
  header_params = {}
51
51
  # HTTP header 'Accept' (if needed)
52
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
52
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
53
53
  # HTTP header 'Content-Type'
54
54
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
55
55
 
@@ -22,9 +22,9 @@ module DocuSign_Rooms
22
22
  end
23
23
 
24
24
  # Creates an external form fill session.
25
- # Returns a URL for a new external form fill session, based on the `roomId` and `formId` that you specify in the `formFillSessionForCreate` request body.
25
+ # Returns a URL for a new external form fill session, based on the `roomId` and `formId` or `formIds` that you specify in the `formFillSessionForCreate` request body. User may supply up to 10 `formIds`. Eventually, `formId` will be deprecated.
26
26
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
27
- # @param body (optional parameter)
27
+ # @param body Request body that accepts the `roomId` and `formId` or `formIds` that you specify in the `formFillSessionForCreate` request body. User may supply up to 10 `formIds`. Eventually, `formId` will be deprecated (optional parameter)
28
28
  # @return [ExternalFormFillSession]
29
29
  def create_external_form_fill_session(account_id, body)
30
30
  data, _status_code, _headers = create_external_form_fill_session_with_http_info(account_id, body)
@@ -32,9 +32,9 @@ module DocuSign_Rooms
32
32
  end
33
33
 
34
34
  # Creates an external form fill session.
35
- # Returns a URL for a new external form fill session, based on the &#x60;roomId&#x60; and &#x60;formId&#x60; that you specify in the &#x60;formFillSessionForCreate&#x60; request body.
35
+ # Returns a URL for a new external form fill session, based on the &#x60;roomId&#x60; and &#x60;formId&#x60; or &#x60;formIds&#x60; that you specify in the &#x60;formFillSessionForCreate&#x60; request body. User may supply up to 10 &#x60;formIds&#x60;. Eventually, &#x60;formId&#x60; will be deprecated.
36
36
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
37
- # @param body (optional parameter)
37
+ # @param body Request body that accepts the `roomId` and `formId` or `formIds` that you specify in the `formFillSessionForCreate` request body. User may supply up to 10 `formIds`. Eventually, `formId` will be deprecated (optional parameter)
38
38
  # @return [Array<(ExternalFormFillSession, Fixnum, Hash)>] ExternalFormFillSession data, response status code and response headers
39
39
  def create_external_form_fill_session_with_http_info(account_id, body)
40
40
  if @api_client.config.debugging
@@ -51,9 +51,9 @@ module DocuSign_Rooms
51
51
  # header parameters
52
52
  header_params = {}
53
53
  # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
56
+ 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'])
57
57
 
58
58
  # form parameters
59
59
  form_params = {}
@@ -68,7 +68,7 @@ module DocuSign_Rooms
68
68
  # header parameters
69
69
  header_params = {}
70
70
  # HTTP header 'Accept' (if needed)
71
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
71
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
72
72
  # HTTP header 'Content-Type'
73
73
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
74
74
 
@@ -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
 
@@ -53,7 +53,7 @@ module DocuSign_Rooms
53
53
  # header parameters
54
54
  header_params = {}
55
55
  # HTTP header 'Accept' (if needed)
56
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
56
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
57
57
  # HTTP header 'Content-Type'
58
58
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
59
59
 
@@ -0,0 +1,95 @@
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
+ class GetFormGroupFormsOptions
17
+ # Default value is 100 and max value is 100
18
+ attr_accessor :count
19
+
20
+ # Default value is 0
21
+ attr_accessor :start_position
22
+
23
+ def self.default
24
+ @@default ||= GetFormGroupFormsOptions.new
25
+ end
26
+ end
27
+
28
+
29
+ class FormGroupFormsApi
30
+ attr_accessor :api_client
31
+
32
+ def initialize(api_client = FormGroupFormsApi.default)
33
+ @api_client = api_client
34
+ end
35
+
36
+ # Gets the user's form group's forms.
37
+ # Get forms of the specified form group.
38
+ # @param form_group_id The ID of the form group.
39
+ # @param account_id (Required) The globally unique identifier (GUID) for the account.
40
+ # @param DocuSign_Rooms::GetFormGroupFormsOptions Options for modifying the behavior of the function.
41
+ # @return [FormGroupFormList]
42
+ def get_form_group_forms(form_group_id, account_id, options = DocuSign_Rooms::GetFormGroupFormsOptions.default)
43
+ data, _status_code, _headers = get_form_group_forms_with_http_info(form_group_id, account_id, options)
44
+ return data
45
+ end
46
+
47
+ # Gets the user&#39;s form group&#39;s forms.
48
+ # Get forms of the specified form group.
49
+ # @param form_group_id The ID of the form group.
50
+ # @param account_id (Required) The globally unique identifier (GUID) for the account.
51
+ # @param DocuSign_Rooms::GetFormGroupFormsOptions Options for modifying the behavior of the function.
52
+ # @return [Array<(FormGroupFormList, Fixnum, Hash)>] FormGroupFormList data, response status code and response headers
53
+ def get_form_group_forms_with_http_info(form_group_id, account_id, options = DocuSign_Rooms::GetFormGroupFormsOptions.default)
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug "Calling API: FormGroupFormsApi.get_form_group_forms ..."
56
+ end
57
+ # verify the required parameter 'form_group_id' is set
58
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupFormsApi.get_form_group_forms" if form_group_id.nil?
59
+ # verify the required parameter 'account_id' is set
60
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupFormsApi.get_form_group_forms" if account_id.nil?
61
+ # resource path
62
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}/forms".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
63
+
64
+ # query parameters
65
+ query_params = {}
66
+ query_params[:'count'] = options.count if !options.count.nil?
67
+ query_params[:'startPosition'] = options.start_position if !options.start_position.nil?
68
+
69
+ # header parameters
70
+ header_params = {}
71
+ # HTTP header 'Accept' (if needed)
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'])
75
+
76
+ # form parameters
77
+ form_params = {}
78
+
79
+ # http body (model)
80
+ post_body = nil
81
+ auth_names = []
82
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => 'FormGroupFormList')
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: FormGroupFormsApi#get_form_group_forms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+ end
95
+ end
@@ -37,7 +37,7 @@ module DocuSign_Rooms
37
37
  # Assigns the form specified in the `formId` property of the request to the form group `formGroupId`.
38
38
  # @param form_group_id The ID of the form group.
39
39
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
40
- # @param body (optional parameter)
40
+ # @param body Assigns the form specified in the `formId` property of the request to the form group `formGroupId`. (optional parameter)
41
41
  # @return [FormGroupFormToAssign]
42
42
  def assign_form_group_form(form_group_id, account_id, body)
43
43
  data, _status_code, _headers = assign_form_group_form_with_http_info(form_group_id, account_id, body)
@@ -48,7 +48,7 @@ module DocuSign_Rooms
48
48
  # Assigns the form specified in the &#x60;formId&#x60; property of the request to the form group &#x60;formGroupId&#x60;.
49
49
  # @param form_group_id The ID of the form group.
50
50
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
51
- # @param body (optional parameter)
51
+ # @param body Assigns the form specified in the `formId` property of the request to the form group `formGroupId`. (optional parameter)
52
52
  # @return [Array<(FormGroupFormToAssign, Fixnum, Hash)>] FormGroupFormToAssign data, response status code and response headers
53
53
  def assign_form_group_form_with_http_info(form_group_id, account_id, body)
54
54
  if @api_client.config.debugging
@@ -67,9 +67,9 @@ module DocuSign_Rooms
67
67
  # header parameters
68
68
  header_params = {}
69
69
  # HTTP header 'Accept' (if needed)
70
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
70
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
71
71
  # HTTP header 'Content-Type'
72
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
72
+ 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'])
73
73
 
74
74
  # form parameters
75
75
  form_params = {}
@@ -93,7 +93,7 @@ module DocuSign_Rooms
93
93
  # Creates a form group.
94
94
  # Creates a new form group with the name given in the `name` property of the request body.
95
95
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
96
- # @param body (optional parameter)
96
+ # @param body Required input of name for the form group (optional parameter)
97
97
  # @return [FormGroup]
98
98
  def create_form_group(account_id, body)
99
99
  data, _status_code, _headers = create_form_group_with_http_info(account_id, body)
@@ -103,7 +103,7 @@ module DocuSign_Rooms
103
103
  # Creates a form group.
104
104
  # Creates a new form group with the name given in the &#x60;name&#x60; property of the request body.
105
105
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
106
- # @param body (optional parameter)
106
+ # @param body Required input of name for the form group (optional parameter)
107
107
  # @return [Array<(FormGroup, Fixnum, Hash)>] FormGroup data, response status code and response headers
108
108
  def create_form_group_with_http_info(account_id, body)
109
109
  if @api_client.config.debugging
@@ -120,9 +120,9 @@ module DocuSign_Rooms
120
120
  # header parameters
121
121
  header_params = {}
122
122
  # HTTP header 'Accept' (if needed)
123
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
123
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
124
124
  # HTTP header 'Content-Type'
125
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
125
+ 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'])
126
126
 
127
127
  # form parameters
128
128
  form_params = {}
@@ -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
 
@@ -229,7 +229,7 @@ module DocuSign_Rooms
229
229
  # header parameters
230
230
  header_params = {}
231
231
  # HTTP header 'Accept' (if needed)
232
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
232
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
233
233
  # HTTP header 'Content-Type'
234
234
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
235
235
 
@@ -284,7 +284,7 @@ module DocuSign_Rooms
284
284
  # header parameters
285
285
  header_params = {}
286
286
  # HTTP header 'Accept' (if needed)
287
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
287
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
288
288
  # HTTP header 'Content-Type'
289
289
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
290
290
 
@@ -343,7 +343,7 @@ module DocuSign_Rooms
343
343
  # header parameters
344
344
  header_params = {}
345
345
  # HTTP header 'Accept' (if needed)
346
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
346
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
347
347
  # HTTP header 'Content-Type'
348
348
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
349
349
 
@@ -401,7 +401,7 @@ module DocuSign_Rooms
401
401
  # header parameters
402
402
  header_params = {}
403
403
  # HTTP header 'Accept' (if needed)
404
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
404
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
405
405
  # HTTP header 'Content-Type'
406
406
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
407
407
 
@@ -427,7 +427,7 @@ module DocuSign_Rooms
427
427
  # Renames the specified form group with the name given in the `name` property of the request.
428
428
  # @param form_group_id The ID of the form group.
429
429
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
430
- # @param body (optional parameter)
430
+ # @param body Required input of name for the form group (optional parameter)
431
431
  # @return [FormGroup]
432
432
  def rename_form_group(form_group_id, account_id, body)
433
433
  data, _status_code, _headers = rename_form_group_with_http_info(form_group_id, account_id, body)
@@ -438,7 +438,7 @@ module DocuSign_Rooms
438
438
  # Renames the specified form group with the name given in the &#x60;name&#x60; property of the request.
439
439
  # @param form_group_id The ID of the form group.
440
440
  # @param account_id (Required) The globally unique identifier (GUID) for the account.
441
- # @param body (optional parameter)
441
+ # @param body Required input of name for the form group (optional parameter)
442
442
  # @return [Array<(FormGroup, Fixnum, Hash)>] FormGroup data, response status code and response headers
443
443
  def rename_form_group_with_http_info(form_group_id, account_id, body)
444
444
  if @api_client.config.debugging
@@ -457,9 +457,9 @@ module DocuSign_Rooms
457
457
  # header parameters
458
458
  header_params = {}
459
459
  # HTTP header 'Accept' (if needed)
460
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
460
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
461
461
  # HTTP header 'Content-Type'
462
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
462
+ 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'])
463
463
 
464
464
  # form parameters
465
465
  form_params = {}
@@ -516,7 +516,7 @@ module DocuSign_Rooms
516
516
  # header parameters
517
517
  header_params = {}
518
518
  # HTTP header 'Accept' (if needed)
519
- header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
519
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json', 'application/xml', 'text/xml'])
520
520
  # HTTP header 'Content-Type'
521
521
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
522
522
 
@@ -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
 
@@ -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
 
@@ -0,0 +1,95 @@
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
+ class GetFormProviderAssociationsOptions
17
+ # Total number of associations to be returned
18
+ attr_accessor :count
19
+
20
+ # starting position of the list
21
+ attr_accessor :start_position
22
+
23
+ def self.default
24
+ @@default ||= GetFormProviderAssociationsOptions.new
25
+ end
26
+ end
27
+
28
+
29
+ class FormProviderAssociationsApi
30
+ attr_accessor :api_client
31
+
32
+ def initialize(api_client = FormProviderAssociationsApi.default)
33
+ @api_client = api_client
34
+ end
35
+
36
+ # Retrieves all Associations by provider
37
+ # Retrieves all Associations for given provider
38
+ # @param provider_id provider id like nar, nwmls etc..
39
+ # @param account_id (Required) The globally unique identifier (GUID) for the account.
40
+ # @param DocuSign_Rooms::GetFormProviderAssociationsOptions Options for modifying the behavior of the function.
41
+ # @return [FormProviderAssociationsSummaryList]
42
+ def get_form_provider_associations(provider_id, account_id, options = DocuSign_Rooms::GetFormProviderAssociationsOptions.default)
43
+ data, _status_code, _headers = get_form_provider_associations_with_http_info(provider_id, account_id, options)
44
+ return data
45
+ end
46
+
47
+ # Retrieves all Associations by provider
48
+ # Retrieves all Associations for given provider
49
+ # @param provider_id provider id like nar, nwmls etc..
50
+ # @param account_id (Required) The globally unique identifier (GUID) for the account.
51
+ # @param DocuSign_Rooms::GetFormProviderAssociationsOptions Options for modifying the behavior of the function.
52
+ # @return [Array<(FormProviderAssociationsSummaryList, Fixnum, Hash)>] FormProviderAssociationsSummaryList data, response status code and response headers
53
+ def get_form_provider_associations_with_http_info(provider_id, account_id, options = DocuSign_Rooms::GetFormProviderAssociationsOptions.default)
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug "Calling API: FormProviderAssociationsApi.get_form_provider_associations ..."
56
+ end
57
+ # verify the required parameter 'provider_id' is set
58
+ fail ArgumentError, "Missing the required parameter 'provider_id' when calling FormProviderAssociationsApi.get_form_provider_associations" if provider_id.nil?
59
+ # verify the required parameter 'account_id' is set
60
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormProviderAssociationsApi.get_form_provider_associations" if account_id.nil?
61
+ # resource path
62
+ local_var_path = "/v2/accounts/{accountId}/form_providers/{providerId}/associations".sub('{format}','json').sub('{' + 'providerId' + '}', provider_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
63
+
64
+ # query parameters
65
+ query_params = {}
66
+ query_params[:'count'] = options.count if !options.count.nil?
67
+ query_params[:'startPosition'] = options.start_position if !options.start_position.nil?
68
+
69
+ # header parameters
70
+ header_params = {}
71
+ # HTTP header 'Accept' (if needed)
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'])
75
+
76
+ # form parameters
77
+ form_params = {}
78
+
79
+ # http body (model)
80
+ post_body = nil
81
+ auth_names = []
82
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => 'FormProviderAssociationsSummaryList')
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: FormProviderAssociationsApi#get_form_provider_associations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+ end
95
+ end