docusign_rooms 1.0.0 → 1.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/docusign_rooms-1.0.0.gem +0 -0
  3. data/lib/docusign_rooms.rb +13 -2
  4. data/lib/docusign_rooms/.DS_Store +0 -0
  5. data/lib/docusign_rooms/api/accounts_api.rb +1 -1
  6. data/lib/docusign_rooms/api/activity_types_api.rb +1 -1
  7. data/lib/docusign_rooms/api/closing_statuses_api.rb +1 -1
  8. data/lib/docusign_rooms/api/contact_sides_api.rb +1 -1
  9. data/lib/docusign_rooms/api/countries_api.rb +1 -1
  10. data/lib/docusign_rooms/api/currencies_api.rb +1 -1
  11. data/lib/docusign_rooms/api/documents_api.rb +10 -12
  12. data/lib/docusign_rooms/api/e_sign_permission_profiles_api.rb +1 -1
  13. data/lib/docusign_rooms/api/external_form_fill_sessions_api.rb +8 -10
  14. data/lib/docusign_rooms/api/fields_api.rb +2 -2
  15. data/lib/docusign_rooms/api/financing_types_api.rb +1 -1
  16. data/lib/docusign_rooms/api/form_details_api.rb +1 -1
  17. data/lib/docusign_rooms/api/form_groups_api.rb +441 -1
  18. data/lib/docusign_rooms/api/form_libraries_api.rb +2 -2
  19. data/lib/docusign_rooms/api/offices_api.rb +14 -16
  20. data/lib/docusign_rooms/api/origins_of_leads_api.rb +1 -1
  21. data/lib/docusign_rooms/api/property_types_api.rb +1 -1
  22. data/lib/docusign_rooms/api/regions_api.rb +14 -16
  23. data/lib/docusign_rooms/api/roles_api.rb +19 -23
  24. data/lib/docusign_rooms/api/room_contact_types_api.rb +1 -1
  25. data/lib/docusign_rooms/api/room_folders_api.rb +1 -1
  26. data/lib/docusign_rooms/api/room_templates_api.rb +6 -2
  27. data/lib/docusign_rooms/api/rooms_api.rb +85 -96
  28. data/lib/docusign_rooms/api/seller_decision_types_api.rb +1 -1
  29. data/lib/docusign_rooms/api/special_circumstance_types_api.rb +1 -1
  30. data/lib/docusign_rooms/api/states_api.rb +1 -1
  31. data/lib/docusign_rooms/api/task_date_types_api.rb +1 -1
  32. data/lib/docusign_rooms/api/task_list_templates_api.rb +1 -1
  33. data/lib/docusign_rooms/api/task_lists_api.rb +14 -16
  34. data/lib/docusign_rooms/api/task_responsibility_types_api.rb +1 -1
  35. data/lib/docusign_rooms/api/task_statuses_api.rb +1 -1
  36. data/lib/docusign_rooms/api/time_zones_api.rb +1 -1
  37. data/lib/docusign_rooms/api/transaction_sides_api.rb +1 -1
  38. data/lib/docusign_rooms/api/users_api.rb +87 -107
  39. data/lib/docusign_rooms/models/access_level.rb +32 -0
  40. data/lib/docusign_rooms/models/account_status.rb +29 -0
  41. data/lib/docusign_rooms/models/account_summary.rb +1 -35
  42. data/lib/docusign_rooms/models/assignable_roles.rb +13 -4
  43. data/lib/docusign_rooms/models/classic_agent_to_invite.rb +10 -1
  44. data/lib/docusign_rooms/models/classic_manager_to_invite.rb +1 -35
  45. data/lib/docusign_rooms/models/document.rb +10 -1
  46. data/lib/docusign_rooms/models/fields_custom_data_filter_type.rb +30 -0
  47. data/lib/docusign_rooms/models/form_group.rb +214 -0
  48. data/lib/docusign_rooms/models/form_group_for_create.rb +188 -0
  49. data/lib/docusign_rooms/models/form_group_for_update.rb +188 -0
  50. data/lib/docusign_rooms/models/form_group_form_to_assign.rb +197 -0
  51. data/lib/docusign_rooms/models/form_group_summary_list.rb +13 -4
  52. data/lib/docusign_rooms/models/form_library_summary_list.rb +13 -4
  53. data/lib/docusign_rooms/models/form_summary_list.rb +13 -4
  54. data/lib/docusign_rooms/models/group_form.rb +210 -0
  55. data/lib/docusign_rooms/models/member_sorting_option.rb +33 -0
  56. data/lib/docusign_rooms/models/office_summary_list.rb +13 -4
  57. data/lib/docusign_rooms/models/permissions.rb +70 -7
  58. data/lib/docusign_rooms/models/product_version.rb +29 -0
  59. data/lib/docusign_rooms/models/region_summary_list.rb +13 -4
  60. data/lib/docusign_rooms/models/role.rb +1 -1
  61. data/lib/docusign_rooms/models/role_summary_list.rb +13 -4
  62. data/lib/docusign_rooms/models/room.rb +1 -1
  63. data/lib/docusign_rooms/models/room_document.rb +31 -4
  64. data/lib/docusign_rooms/models/room_document_list.rb +10 -1
  65. data/lib/docusign_rooms/models/room_document_owner.rb +219 -0
  66. data/lib/docusign_rooms/models/room_folder_list.rb +13 -4
  67. data/lib/docusign_rooms/models/room_status.rb +31 -0
  68. data/lib/docusign_rooms/models/room_summary_list.rb +13 -4
  69. data/lib/docusign_rooms/models/room_templates_summary_list.rb +13 -4
  70. data/lib/docusign_rooms/models/room_user_sorting_option.rb +33 -0
  71. data/lib/docusign_rooms/models/room_user_summary.rb +22 -4
  72. data/lib/docusign_rooms/models/room_users_result.rb +13 -4
  73. data/lib/docusign_rooms/models/task_list_template_list.rb +13 -4
  74. data/lib/docusign_rooms/models/user.rb +1 -35
  75. data/lib/docusign_rooms/models/user_summary.rb +1 -35
  76. data/lib/docusign_rooms/models/user_summary_list.rb +13 -4
  77. data/lib/docusign_rooms/models/user_to_invite.rb +1 -35
  78. data/lib/docusign_rooms/version.rb +1 -1
  79. data/tests/Gemfile.lock +2 -2
  80. metadata +18 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 221d5989aee6c4367026afa9d67399cba03c6325361d22d59d3401be72a01d6d
4
- data.tar.gz: 448581cc18341890fcb4d8c2a61368ab3247888a6b98a155336325fefc5b743a
3
+ metadata.gz: f0d20ce2f061458abc76cde5cb8439f605f6effca4b2eb468749e50b5a6485e0
4
+ data.tar.gz: c1e203f054a0413c59810afb3e1ccf92a395d5f01a9d52fcfff61fde3acd81fd
5
5
  SHA512:
6
- metadata.gz: d97c8fb8ac3ec5fb347519b7e2dff7aa7036c957044db32a632edd03efcb8b50750fcb166b951a922150349fdb6856d3a6c6bde691c7ed50febe1d76abaf6dc1
7
- data.tar.gz: 3576c38470550634203c755046c376d83514f4c96a5a7a18af6ebc2e3a278338866cc5ba050217225df7ed1d877ac692efd4231ffbaf22914debce46359d3f31
6
+ metadata.gz: 36a7c71719a8d7ff760d92930604c24b9cc5da69e6e7a663fd8aa03abeb19a653093a57f64f0adfa5f87bec20a978f648a9cdb20d10238be6728b01d9ad6f9ec
7
+ data.tar.gz: 5fcc383a7ce474697c715f46cadbba8e22a77590d32dc529cffc7d87f6236b324d2a89e1cb9497aefdcf935a5dbf27ef504b25dcf6e1b3716a73ab0953d586be
Binary file
@@ -19,6 +19,8 @@ require 'docusign_rooms/configuration'
19
19
  require 'docusign_rooms/client/auth/oauth'
20
20
 
21
21
  # Models
22
+ require 'docusign_rooms/models/access_level'
23
+ require 'docusign_rooms/models/account_status'
22
24
  require 'docusign_rooms/models/account_summary'
23
25
  require 'docusign_rooms/models/activity_type'
24
26
  require 'docusign_rooms/models/api_error'
@@ -49,9 +51,14 @@ require 'docusign_rooms/models/field_data'
49
51
  require 'docusign_rooms/models/field_data_for_create'
50
52
  require 'docusign_rooms/models/field_data_for_update'
51
53
  require 'docusign_rooms/models/field_set'
54
+ require 'docusign_rooms/models/fields_custom_data_filter_type'
52
55
  require 'docusign_rooms/models/financing_type'
53
56
  require 'docusign_rooms/models/form_details'
54
57
  require 'docusign_rooms/models/form_for_add'
58
+ require 'docusign_rooms/models/form_group'
59
+ require 'docusign_rooms/models/form_group_for_create'
60
+ require 'docusign_rooms/models/form_group_for_update'
61
+ require 'docusign_rooms/models/form_group_form_to_assign'
55
62
  require 'docusign_rooms/models/form_group_summary'
56
63
  require 'docusign_rooms/models/form_group_summary_list'
57
64
  require 'docusign_rooms/models/form_library_summary'
@@ -75,9 +82,9 @@ require 'docusign_rooms/models/global_task_responsibility_types'
75
82
  require 'docusign_rooms/models/global_task_statuses'
76
83
  require 'docusign_rooms/models/global_time_zones'
77
84
  require 'docusign_rooms/models/global_transaction_sides'
85
+ require 'docusign_rooms/models/group_form'
78
86
  require 'docusign_rooms/models/locked_out_details'
79
- require 'docusign_rooms/models/nullable_field_data'
80
- require 'docusign_rooms/models/nullable_permissions'
87
+ require 'docusign_rooms/models/member_sorting_option'
81
88
  require 'docusign_rooms/models/office'
82
89
  require 'docusign_rooms/models/office_for_create'
83
90
  require 'docusign_rooms/models/office_reference_count'
@@ -86,6 +93,7 @@ require 'docusign_rooms/models/office_summary'
86
93
  require 'docusign_rooms/models/office_summary_list'
87
94
  require 'docusign_rooms/models/origin_of_lead'
88
95
  require 'docusign_rooms/models/permissions'
96
+ require 'docusign_rooms/models/product_version'
89
97
  require 'docusign_rooms/models/property_type'
90
98
  require 'docusign_rooms/models/region'
91
99
  require 'docusign_rooms/models/region_reference_count'
@@ -101,12 +109,14 @@ require 'docusign_rooms/models/room'
101
109
  require 'docusign_rooms/models/room_contact_type'
102
110
  require 'docusign_rooms/models/room_document'
103
111
  require 'docusign_rooms/models/room_document_list'
112
+ require 'docusign_rooms/models/room_document_owner'
104
113
  require 'docusign_rooms/models/room_folder'
105
114
  require 'docusign_rooms/models/room_folder_list'
106
115
  require 'docusign_rooms/models/room_for_create'
107
116
  require 'docusign_rooms/models/room_invite'
108
117
  require 'docusign_rooms/models/room_invite_response'
109
118
  require 'docusign_rooms/models/room_picture'
119
+ require 'docusign_rooms/models/room_status'
110
120
  require 'docusign_rooms/models/room_summary'
111
121
  require 'docusign_rooms/models/room_summary_list'
112
122
  require 'docusign_rooms/models/room_template'
@@ -114,6 +124,7 @@ require 'docusign_rooms/models/room_templates_summary_list'
114
124
  require 'docusign_rooms/models/room_user'
115
125
  require 'docusign_rooms/models/room_user_for_update'
116
126
  require 'docusign_rooms/models/room_user_removal_detail'
127
+ require 'docusign_rooms/models/room_user_sorting_option'
117
128
  require 'docusign_rooms/models/room_user_summary'
118
129
  require 'docusign_rooms/models/room_users_result'
119
130
  require 'docusign_rooms/models/select_list_field_option'
Binary file
@@ -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(['application/json'])
52
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
53
53
 
54
54
  # form parameters
55
55
  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(['application/json'])
48
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
49
49
 
50
50
  # form parameters
51
51
  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(['application/json'])
48
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
49
49
 
50
50
  # form parameters
51
51
  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(['application/json'])
48
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
49
49
 
50
50
  # form parameters
51
51
  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(['application/json'])
48
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
49
49
 
50
50
  # form parameters
51
51
  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(['application/json'])
48
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
49
49
 
50
50
  # form parameters
51
51
  form_params = {}
@@ -34,10 +34,10 @@ module DocuSign_Rooms
34
34
  #
35
35
  # @param document_id
36
36
  # @param account_id
37
- # @param document_user_for_create
37
+ # @param body (optional parameter)
38
38
  # @return [DocumentUser]
39
- def create_document_user(document_id, account_id, document_user_for_create)
40
- data, _status_code, _headers = create_document_user_with_http_info(document_id, account_id, document_user_for_create)
39
+ def create_document_user(document_id, account_id, body)
40
+ data, _status_code, _headers = create_document_user_with_http_info(document_id, account_id, body)
41
41
  return data
42
42
  end
43
43
 
@@ -45,16 +45,14 @@ module DocuSign_Rooms
45
45
  #
46
46
  # @param document_id
47
47
  # @param account_id
48
- # @param document_user_for_create
48
+ # @param body (optional parameter)
49
49
  # @return [Array<(DocumentUser, Fixnum, Hash)>] DocumentUser data, response status code and response headers
50
- def create_document_user_with_http_info(document_id, account_id, document_user_for_create)
50
+ def create_document_user_with_http_info(document_id, account_id, body)
51
51
  if @api_client.config.debugging
52
52
  @api_client.config.logger.debug "Calling API: DocumentsApi.create_document_user ..."
53
53
  end
54
54
  # verify the required parameter 'document_id' is set
55
55
  fail ArgumentError, "Missing the required parameter 'document_id' when calling DocumentsApi.create_document_user" if document_id.nil?
56
- # verify the required parameter 'document_user_for_create' is set
57
- fail ArgumentError, "Missing the required parameter 'document_user_for_create' when calling DocumentsApi.create_document_user" if document_user_for_create.nil?
58
56
  # verify the required parameter 'account_id' is set
59
57
  fail ArgumentError, "Missing the required parameter 'account_id' when calling DocumentsApi.create_document_user" if account_id.nil?
60
58
  # resource path
@@ -66,15 +64,15 @@ module DocuSign_Rooms
66
64
  # header parameters
67
65
  header_params = {}
68
66
  # HTTP header 'Accept' (if needed)
69
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
67
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
70
68
  # HTTP header 'Content-Type'
71
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
69
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
72
70
 
73
71
  # form parameters
74
72
  form_params = {}
75
73
 
76
74
  # http body (model)
77
- post_body = @api_client.object_to_http_body(document_user_for_create)
75
+ post_body = @api_client.object_to_http_body(body)
78
76
  auth_names = []
79
77
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
80
78
  :header_params => header_params,
@@ -121,7 +119,7 @@ module DocuSign_Rooms
121
119
  # header parameters
122
120
  header_params = {}
123
121
  # HTTP header 'Accept' (if needed)
124
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
122
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
125
123
 
126
124
  # form parameters
127
125
  form_params = {}
@@ -176,7 +174,7 @@ module DocuSign_Rooms
176
174
  # header parameters
177
175
  header_params = {}
178
176
  # HTTP header 'Accept' (if needed)
179
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
180
178
 
181
179
  # form parameters
182
180
  form_params = {}
@@ -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(['application/json'])
52
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
53
53
 
54
54
  # form parameters
55
55
  form_params = {}
@@ -24,24 +24,22 @@ module DocuSign_Rooms
24
24
  # Creates an external form fill session.
25
25
  #
26
26
  # @param account_id
27
- # @param form_fill_session_for_create
27
+ # @param body (optional parameter)
28
28
  # @return [ExternalFormFillSession]
29
- def create_external_form_fill_session(account_id, form_fill_session_for_create)
30
- data, _status_code, _headers = create_external_form_fill_session_with_http_info(account_id, form_fill_session_for_create)
29
+ def create_external_form_fill_session(account_id, body)
30
+ data, _status_code, _headers = create_external_form_fill_session_with_http_info(account_id, body)
31
31
  return data
32
32
  end
33
33
 
34
34
  # Creates an external form fill session.
35
35
  #
36
36
  # @param account_id
37
- # @param form_fill_session_for_create
37
+ # @param body (optional parameter)
38
38
  # @return [Array<(ExternalFormFillSession, Fixnum, Hash)>] ExternalFormFillSession data, response status code and response headers
39
- def create_external_form_fill_session_with_http_info(account_id, form_fill_session_for_create)
39
+ def create_external_form_fill_session_with_http_info(account_id, body)
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug "Calling API: ExternalFormFillSessionsApi.create_external_form_fill_session ..."
42
42
  end
43
- # verify the required parameter 'form_fill_session_for_create' is set
44
- fail ArgumentError, "Missing the required parameter 'form_fill_session_for_create' when calling ExternalFormFillSessionsApi.create_external_form_fill_session" if form_fill_session_for_create.nil?
45
43
  # verify the required parameter 'account_id' is set
46
44
  fail ArgumentError, "Missing the required parameter 'account_id' when calling ExternalFormFillSessionsApi.create_external_form_fill_session" if account_id.nil?
47
45
  # resource path
@@ -53,15 +51,15 @@ module DocuSign_Rooms
53
51
  # header parameters
54
52
  header_params = {}
55
53
  # HTTP header 'Accept' (if needed)
56
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
54
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
57
55
  # HTTP header 'Content-Type'
58
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
59
57
 
60
58
  # form parameters
61
59
  form_params = {}
62
60
 
63
61
  # http body (model)
64
- post_body = @api_client.object_to_http_body(form_fill_session_for_create)
62
+ post_body = @api_client.object_to_http_body(body)
65
63
  auth_names = []
66
64
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
67
65
  :header_params => header_params,
@@ -63,12 +63,12 @@ module DocuSign_Rooms
63
63
 
64
64
  # query parameters
65
65
  query_params = {}
66
- query_params[:'fieldsCustomDataFilters'] = @api_client.build_collection_param(options.fields_custom_data_filters, :multi) if !options.fields_custom_data_filters.nil?
66
+ query_params[:'fieldsCustomDataFilters'] = @api_client.build_collection_param(options.fields_custom_data_filters, :csv) if !options.fields_custom_data_filters.nil?
67
67
 
68
68
  # header parameters
69
69
  header_params = {}
70
70
  # HTTP header 'Accept' (if needed)
71
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
72
72
 
73
73
  # form parameters
74
74
  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(['application/json'])
48
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
49
49
 
50
50
  # form parameters
51
51
  form_params = {}
@@ -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(['application/json'])
56
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
57
57
 
58
58
  # form parameters
59
59
  form_params = {}
@@ -33,6 +33,221 @@ module DocuSign_Rooms
33
33
  @api_client = api_client
34
34
  end
35
35
 
36
+ # Assigns a form to a form group.
37
+ #
38
+ # @param form_group_id
39
+ # @param account_id
40
+ # @param body (optional parameter)
41
+ # @return [FormGroupFormToAssign]
42
+ def assign_form_group_form(form_group_id, account_id, body)
43
+ data, _status_code, _headers = assign_form_group_form_with_http_info(form_group_id, account_id, body)
44
+ return data
45
+ end
46
+
47
+ # Assigns a form to a form group.
48
+ #
49
+ # @param form_group_id
50
+ # @param account_id
51
+ # @param body (optional parameter)
52
+ # @return [Array<(FormGroupFormToAssign, Fixnum, Hash)>] FormGroupFormToAssign data, response status code and response headers
53
+ def assign_form_group_form_with_http_info(form_group_id, account_id, body)
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.assign_form_group_form ..."
56
+ end
57
+ # verify the required parameter 'form_group_id' is set
58
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupsApi.assign_form_group_form" 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 FormGroupsApi.assign_form_group_form" if account_id.nil?
61
+ # resource path
62
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}/assign_form".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
63
+
64
+ # query parameters
65
+ query_params = {}
66
+
67
+ # header parameters
68
+ header_params = {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
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'])
73
+
74
+ # form parameters
75
+ form_params = {}
76
+
77
+ # http body (model)
78
+ post_body = @api_client.object_to_http_body(body)
79
+ auth_names = []
80
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => 'FormGroupFormToAssign')
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: FormGroupsApi#assign_form_group_form\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+
93
+ # Creates a form group.
94
+ #
95
+ # @param account_id
96
+ # @param body (optional parameter)
97
+ # @return [FormGroup]
98
+ def create_form_group(account_id, body)
99
+ data, _status_code, _headers = create_form_group_with_http_info(account_id, body)
100
+ return data
101
+ end
102
+
103
+ # Creates a form group.
104
+ #
105
+ # @param account_id
106
+ # @param body (optional parameter)
107
+ # @return [Array<(FormGroup, Fixnum, Hash)>] FormGroup data, response status code and response headers
108
+ def create_form_group_with_http_info(account_id, body)
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.create_form_group ..."
111
+ end
112
+ # verify the required parameter 'account_id' is set
113
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupsApi.create_form_group" if account_id.nil?
114
+ # resource path
115
+ local_var_path = "/v2/accounts/{accountId}/form_groups".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
116
+
117
+ # query parameters
118
+ query_params = {}
119
+
120
+ # header parameters
121
+ header_params = {}
122
+ # HTTP header 'Accept' (if needed)
123
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
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'])
126
+
127
+ # form parameters
128
+ form_params = {}
129
+
130
+ # http body (model)
131
+ post_body = @api_client.object_to_http_body(body)
132
+ auth_names = []
133
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
134
+ :header_params => header_params,
135
+ :query_params => query_params,
136
+ :form_params => form_params,
137
+ :body => post_body,
138
+ :auth_names => auth_names,
139
+ :return_type => 'FormGroup')
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: FormGroupsApi#create_form_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # Deletes a form group.
147
+ #
148
+ # @param form_group_id
149
+ # @param account_id
150
+ # @return [nil]
151
+ def delete_form_group(form_group_id, account_id)
152
+ delete_form_group_with_http_info(form_group_id, account_id)
153
+ return nil
154
+ end
155
+
156
+ # Deletes a form group.
157
+ #
158
+ # @param form_group_id
159
+ # @param account_id
160
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
161
+ def delete_form_group_with_http_info(form_group_id, account_id)
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.delete_form_group ..."
164
+ end
165
+ # verify the required parameter 'form_group_id' is set
166
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupsApi.delete_form_group" if form_group_id.nil?
167
+ # verify the required parameter 'account_id' is set
168
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupsApi.delete_form_group" if account_id.nil?
169
+ # resource path
170
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
171
+
172
+ # query parameters
173
+ query_params = {}
174
+
175
+ # header parameters
176
+ header_params = {}
177
+ # HTTP header 'Accept' (if needed)
178
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
179
+
180
+ # form parameters
181
+ form_params = {}
182
+
183
+ # http body (model)
184
+ post_body = nil
185
+ auth_names = []
186
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
187
+ :header_params => header_params,
188
+ :query_params => query_params,
189
+ :form_params => form_params,
190
+ :body => post_body,
191
+ :auth_names => auth_names)
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug "API called: FormGroupsApi#delete_form_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
194
+ end
195
+ return data, status_code, headers
196
+ end
197
+
198
+ # Gets a form group.
199
+ #
200
+ # @param form_group_id
201
+ # @param account_id
202
+ # @return [FormGroup]
203
+ def get_form_group(form_group_id, account_id)
204
+ data, _status_code, _headers = get_form_group_with_http_info(form_group_id, account_id)
205
+ return data
206
+ end
207
+
208
+ # Gets a form group.
209
+ #
210
+ # @param form_group_id
211
+ # @param account_id
212
+ # @return [Array<(FormGroup, Fixnum, Hash)>] FormGroup data, response status code and response headers
213
+ def get_form_group_with_http_info(form_group_id, account_id)
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.get_form_group ..."
216
+ end
217
+ # verify the required parameter 'form_group_id' is set
218
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupsApi.get_form_group" if form_group_id.nil?
219
+ # verify the required parameter 'account_id' is set
220
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupsApi.get_form_group" if account_id.nil?
221
+ # resource path
222
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
223
+
224
+ # query parameters
225
+ query_params = {}
226
+
227
+ # header parameters
228
+ header_params = {}
229
+ # HTTP header 'Accept' (if needed)
230
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
231
+
232
+ # form parameters
233
+ form_params = {}
234
+
235
+ # http body (model)
236
+ post_body = nil
237
+ auth_names = []
238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => 'FormGroup')
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug "API called: FormGroupsApi#get_form_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ end
248
+ return data, status_code, headers
249
+ end
250
+
36
251
  # Get account Form Groups.
37
252
  #
38
253
  # @param account_id
@@ -65,7 +280,7 @@ module DocuSign_Rooms
65
280
  # header parameters
66
281
  header_params = {}
67
282
  # HTTP header 'Accept' (if needed)
68
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
283
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
69
284
 
70
285
  # form parameters
71
286
  form_params = {}
@@ -85,5 +300,230 @@ module DocuSign_Rooms
85
300
  end
86
301
  return data, status_code, headers
87
302
  end
303
+
304
+ # Assign office to a form group so the specified office has access to the form group.
305
+ #
306
+ # @param form_group_id
307
+ # @param office_id
308
+ # @param account_id
309
+ # @return [nil]
310
+ def grant_office_access_to_form_group(form_group_id, office_id, account_id)
311
+ grant_office_access_to_form_group_with_http_info(form_group_id, office_id, account_id)
312
+ return nil
313
+ end
314
+
315
+ # Assign office to a form group so the specified office has access to the form group.
316
+ #
317
+ # @param form_group_id
318
+ # @param office_id
319
+ # @param account_id
320
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
321
+ def grant_office_access_to_form_group_with_http_info(form_group_id, office_id, account_id)
322
+ if @api_client.config.debugging
323
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.grant_office_access_to_form_group ..."
324
+ end
325
+ # verify the required parameter 'form_group_id' is set
326
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupsApi.grant_office_access_to_form_group" if form_group_id.nil?
327
+ # verify the required parameter 'office_id' is set
328
+ fail ArgumentError, "Missing the required parameter 'office_id' when calling FormGroupsApi.grant_office_access_to_form_group" if office_id.nil?
329
+ # verify the required parameter 'account_id' is set
330
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupsApi.grant_office_access_to_form_group" if account_id.nil?
331
+ # resource path
332
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}/grant_office_access/{officeId}".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'officeId' + '}', office_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
333
+
334
+ # query parameters
335
+ query_params = {}
336
+
337
+ # header parameters
338
+ header_params = {}
339
+ # HTTP header 'Accept' (if needed)
340
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
341
+
342
+ # form parameters
343
+ form_params = {}
344
+
345
+ # http body (model)
346
+ post_body = nil
347
+ auth_names = []
348
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
349
+ :header_params => header_params,
350
+ :query_params => query_params,
351
+ :form_params => form_params,
352
+ :body => post_body,
353
+ :auth_names => auth_names)
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: FormGroupsApi#grant_office_access_to_form_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
359
+
360
+ # Removes a form from a form group.
361
+ #
362
+ # @param form_group_id
363
+ # @param form_id
364
+ # @param account_id
365
+ # @return [nil]
366
+ def remove_form_group_form(form_group_id, form_id, account_id)
367
+ remove_form_group_form_with_http_info(form_group_id, form_id, account_id)
368
+ return nil
369
+ end
370
+
371
+ # Removes a form from a form group.
372
+ #
373
+ # @param form_group_id
374
+ # @param form_id
375
+ # @param account_id
376
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
377
+ def remove_form_group_form_with_http_info(form_group_id, form_id, account_id)
378
+ if @api_client.config.debugging
379
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.remove_form_group_form ..."
380
+ end
381
+ # verify the required parameter 'form_group_id' is set
382
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupsApi.remove_form_group_form" if form_group_id.nil?
383
+ # verify the required parameter 'form_id' is set
384
+ fail ArgumentError, "Missing the required parameter 'form_id' when calling FormGroupsApi.remove_form_group_form" if form_id.nil?
385
+ # verify the required parameter 'account_id' is set
386
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupsApi.remove_form_group_form" if account_id.nil?
387
+ # resource path
388
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}/unassign_form/{formId}".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'formId' + '}', form_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
389
+
390
+ # query parameters
391
+ query_params = {}
392
+
393
+ # header parameters
394
+ header_params = {}
395
+ # HTTP header 'Accept' (if needed)
396
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
397
+
398
+ # form parameters
399
+ form_params = {}
400
+
401
+ # http body (model)
402
+ post_body = nil
403
+ auth_names = []
404
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
405
+ :header_params => header_params,
406
+ :query_params => query_params,
407
+ :form_params => form_params,
408
+ :body => post_body,
409
+ :auth_names => auth_names)
410
+ if @api_client.config.debugging
411
+ @api_client.config.logger.debug "API called: FormGroupsApi#remove_form_group_form\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
412
+ end
413
+ return data, status_code, headers
414
+ end
415
+
416
+ # Renames a form group.
417
+ #
418
+ # @param form_group_id
419
+ # @param account_id
420
+ # @param body (optional parameter)
421
+ # @return [FormGroup]
422
+ def rename_form_group(form_group_id, account_id, body)
423
+ data, _status_code, _headers = rename_form_group_with_http_info(form_group_id, account_id, body)
424
+ return data
425
+ end
426
+
427
+ # Renames a form group.
428
+ #
429
+ # @param form_group_id
430
+ # @param account_id
431
+ # @param body (optional parameter)
432
+ # @return [Array<(FormGroup, Fixnum, Hash)>] FormGroup data, response status code and response headers
433
+ def rename_form_group_with_http_info(form_group_id, account_id, body)
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.rename_form_group ..."
436
+ end
437
+ # verify the required parameter 'form_group_id' is set
438
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupsApi.rename_form_group" if form_group_id.nil?
439
+ # verify the required parameter 'account_id' is set
440
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupsApi.rename_form_group" if account_id.nil?
441
+ # resource path
442
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
443
+
444
+ # query parameters
445
+ query_params = {}
446
+
447
+ # header parameters
448
+ header_params = {}
449
+ # HTTP header 'Accept' (if needed)
450
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
451
+ # HTTP header 'Content-Type'
452
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
453
+
454
+ # form parameters
455
+ form_params = {}
456
+
457
+ # http body (model)
458
+ post_body = @api_client.object_to_http_body(body)
459
+ auth_names = []
460
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
461
+ :header_params => header_params,
462
+ :query_params => query_params,
463
+ :form_params => form_params,
464
+ :body => post_body,
465
+ :auth_names => auth_names,
466
+ :return_type => 'FormGroup')
467
+ if @api_client.config.debugging
468
+ @api_client.config.logger.debug "API called: FormGroupsApi#rename_form_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
469
+ end
470
+ return data, status_code, headers
471
+ end
472
+
473
+ # Remove office to a form group so the specified office doesn't have access to the form group.
474
+ #
475
+ # @param form_group_id
476
+ # @param office_id
477
+ # @param account_id
478
+ # @return [nil]
479
+ def revoke_office_access_from_form_group(form_group_id, office_id, account_id)
480
+ revoke_office_access_from_form_group_with_http_info(form_group_id, office_id, account_id)
481
+ return nil
482
+ end
483
+
484
+ # Remove office to a form group so the specified office doesn&#39;t have access to the form group.
485
+ #
486
+ # @param form_group_id
487
+ # @param office_id
488
+ # @param account_id
489
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
490
+ def revoke_office_access_from_form_group_with_http_info(form_group_id, office_id, account_id)
491
+ if @api_client.config.debugging
492
+ @api_client.config.logger.debug "Calling API: FormGroupsApi.revoke_office_access_from_form_group ..."
493
+ end
494
+ # verify the required parameter 'form_group_id' is set
495
+ fail ArgumentError, "Missing the required parameter 'form_group_id' when calling FormGroupsApi.revoke_office_access_from_form_group" if form_group_id.nil?
496
+ # verify the required parameter 'office_id' is set
497
+ fail ArgumentError, "Missing the required parameter 'office_id' when calling FormGroupsApi.revoke_office_access_from_form_group" if office_id.nil?
498
+ # verify the required parameter 'account_id' is set
499
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling FormGroupsApi.revoke_office_access_from_form_group" if account_id.nil?
500
+ # resource path
501
+ local_var_path = "/v2/accounts/{accountId}/form_groups/{formGroupId}/revoke_office_access/{officeId}".sub('{format}','json').sub('{' + 'formGroupId' + '}', form_group_id.to_s).sub('{' + 'officeId' + '}', office_id.to_s).sub('{' + 'accountId' + '}', account_id.to_s)
502
+
503
+ # query parameters
504
+ query_params = {}
505
+
506
+ # header parameters
507
+ header_params = {}
508
+ # HTTP header 'Accept' (if needed)
509
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'text/json'])
510
+
511
+ # form parameters
512
+ form_params = {}
513
+
514
+ # http body (model)
515
+ post_body = nil
516
+ auth_names = []
517
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
518
+ :header_params => header_params,
519
+ :query_params => query_params,
520
+ :form_params => form_params,
521
+ :body => post_body,
522
+ :auth_names => auth_names)
523
+ if @api_client.config.debugging
524
+ @api_client.config.logger.debug "API called: FormGroupsApi#revoke_office_access_from_form_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
525
+ end
526
+ return data, status_code, headers
527
+ end
88
528
  end
89
529
  end