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
@@ -19,12 +19,15 @@ module DocuSign_Rooms
19
19
 
20
20
  attr_accessor :last_updated_date
21
21
 
22
+ attr_accessor :viewing_user_has_access
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'library_form_id' => :'libraryFormId',
26
28
  :'name' => :'name',
27
- :'last_updated_date' => :'lastUpdatedDate'
29
+ :'last_updated_date' => :'lastUpdatedDate',
30
+ :'viewing_user_has_access' => :'viewingUserHasAccess'
28
31
  }
29
32
  end
30
33
 
@@ -33,7 +36,8 @@ module DocuSign_Rooms
33
36
  {
34
37
  :'library_form_id' => :'String',
35
38
  :'name' => :'String',
36
- :'last_updated_date' => :'DateTime'
39
+ :'last_updated_date' => :'DateTime',
40
+ :'viewing_user_has_access' => :'BOOLEAN'
37
41
  }
38
42
  end
39
43
 
@@ -56,6 +60,10 @@ module DocuSign_Rooms
56
60
  if attributes.has_key?(:'lastUpdatedDate')
57
61
  self.last_updated_date = attributes[:'lastUpdatedDate']
58
62
  end
63
+
64
+ if attributes.has_key?(:'viewingUserHasAccess')
65
+ self.viewing_user_has_access = attributes[:'viewingUserHasAccess']
66
+ end
59
67
  end
60
68
 
61
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -78,7 +86,8 @@ module DocuSign_Rooms
78
86
  self.class == o.class &&
79
87
  library_form_id == o.library_form_id &&
80
88
  name == o.name &&
81
- last_updated_date == o.last_updated_date
89
+ last_updated_date == o.last_updated_date &&
90
+ viewing_user_has_access == o.viewing_user_has_access
82
91
  end
83
92
 
84
93
  # @see the `==` method
@@ -90,7 +99,7 @@ module DocuSign_Rooms
90
99
  # Calculates hash code according to all attributes.
91
100
  # @return [Fixnum] Hash code
92
101
  def hash
93
- [library_form_id, name, last_updated_date].hash
102
+ [library_form_id, name, last_updated_date, viewing_user_has_access].hash
94
103
  end
95
104
 
96
105
  # Builds the object from hash
@@ -21,13 +21,16 @@ module DocuSign_Rooms
21
21
 
22
22
  attr_accessor :last_updated_date
23
23
 
24
+ attr_accessor :viewing_user_has_access
25
+
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
29
  :'form_id' => :'formId',
28
30
  :'name' => :'name',
29
31
  :'is_required' => :'isRequired',
30
- :'last_updated_date' => :'lastUpdatedDate'
32
+ :'last_updated_date' => :'lastUpdatedDate',
33
+ :'viewing_user_has_access' => :'viewingUserHasAccess'
31
34
  }
32
35
  end
33
36
 
@@ -37,7 +40,8 @@ module DocuSign_Rooms
37
40
  :'form_id' => :'String',
38
41
  :'name' => :'String',
39
42
  :'is_required' => :'BOOLEAN',
40
- :'last_updated_date' => :'DateTime'
43
+ :'last_updated_date' => :'DateTime',
44
+ :'viewing_user_has_access' => :'BOOLEAN'
41
45
  }
42
46
  end
43
47
 
@@ -64,6 +68,10 @@ module DocuSign_Rooms
64
68
  if attributes.has_key?(:'lastUpdatedDate')
65
69
  self.last_updated_date = attributes[:'lastUpdatedDate']
66
70
  end
71
+
72
+ if attributes.has_key?(:'viewingUserHasAccess')
73
+ self.viewing_user_has_access = attributes[:'viewingUserHasAccess']
74
+ end
67
75
  end
68
76
 
69
77
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -87,7 +95,8 @@ module DocuSign_Rooms
87
95
  form_id == o.form_id &&
88
96
  name == o.name &&
89
97
  is_required == o.is_required &&
90
- last_updated_date == o.last_updated_date
98
+ last_updated_date == o.last_updated_date &&
99
+ viewing_user_has_access == o.viewing_user_has_access
91
100
  end
92
101
 
93
102
  # @see the `==` method
@@ -99,7 +108,7 @@ module DocuSign_Rooms
99
108
  # Calculates hash code according to all attributes.
100
109
  # @return [Fixnum] Hash code
101
110
  def hash
102
- [form_id, name, is_required, last_updated_date].hash
111
+ [form_id, name, is_required, last_updated_date, viewing_user_has_access].hash
103
112
  end
104
113
 
105
114
  # Builds the object from hash
@@ -0,0 +1,29 @@
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 'date'
13
+
14
+ module DocuSign_Rooms
15
+ class ListingType
16
+
17
+ PUBLIC_RECORDS = 'PublicRecords'.freeze
18
+ MLS = 'MLS'.freeze
19
+
20
+ # Builds the enum from string
21
+ # @param [String] The enum value in the form of the string
22
+ # @return [String] The enum value
23
+ def build_from_hash(value)
24
+ constantValues = ListingType.constants.select { |c| ListingType::const_get(c) == value }
25
+ raise "Invalid ENUM value #{value} for class #ListingType" if constantValues.empty?
26
+ value
27
+ end
28
+ end
29
+ end
@@ -49,6 +49,8 @@ module DocuSign_Rooms
49
49
 
50
50
  attr_accessor :can_connect_to_mortgage_cadence
51
51
 
52
+ attr_accessor :auto_access_to_rooms_in_office_only
53
+
52
54
  attr_accessor :can_view_room_details
53
55
 
54
56
  attr_accessor :can_view_and_edit_room_details
@@ -67,6 +69,10 @@ module DocuSign_Rooms
67
69
 
68
70
  attr_accessor :can_delete_owned_documents
69
71
 
72
+ attr_accessor :can_delete_signed_documents
73
+
74
+ attr_accessor :can_delete_unsigned_documents
75
+
70
76
  attr_accessor :can_manage_shared_docs
71
77
 
72
78
  attr_accessor :can_manage_form_groups
@@ -75,6 +81,8 @@ module DocuSign_Rooms
75
81
 
76
82
  attr_accessor :can_create_form_templates
77
83
 
84
+ attr_accessor :can_manage_form_packets
85
+
78
86
  attr_accessor :can_add_tasks_to_any_task_lists
79
87
 
80
88
  attr_accessor :can_edit_editable_tasks
@@ -135,6 +143,8 @@ module DocuSign_Rooms
135
143
 
136
144
  attr_accessor :can_manage_integration_settings
137
145
 
146
+ attr_accessor :can_export_company_usage_report
147
+
138
148
  # Attribute mapping from ruby-style variable name to JSON key.
139
149
  def self.attribute_map
140
150
  {
@@ -156,6 +166,7 @@ module DocuSign_Rooms
156
166
  :'can_manage_room_owners' => :'canManageRoomOwners',
157
167
  :'can_delete_rooms' => :'canDeleteRooms',
158
168
  :'can_connect_to_mortgage_cadence' => :'canConnectToMortgageCadence',
169
+ :'auto_access_to_rooms_in_office_only' => :'autoAccessToRoomsInOfficeOnly',
159
170
  :'can_view_room_details' => :'canViewRoomDetails',
160
171
  :'can_view_and_edit_room_details' => :'canViewAndEditRoomDetails',
161
172
  :'can_send_room_details_to_lone_wolf' => :'canSendRoomDetailsToLoneWolf',
@@ -165,10 +176,13 @@ module DocuSign_Rooms
165
176
  :'documents_viewable_by_others_in_room_from_office' => :'documentsViewableByOthersInRoomFromOffice',
166
177
  :'documents_auto_owned_by_peers' => :'documentsAutoOwnedByPeers',
167
178
  :'can_delete_owned_documents' => :'canDeleteOwnedDocuments',
179
+ :'can_delete_signed_documents' => :'canDeleteSignedDocuments',
180
+ :'can_delete_unsigned_documents' => :'canDeleteUnsignedDocuments',
168
181
  :'can_manage_shared_docs' => :'canManageSharedDocs',
169
182
  :'can_manage_form_groups' => :'canManageFormGroups',
170
183
  :'can_share_docs_not_owned' => :'canShareDocsNotOwned',
171
184
  :'can_create_form_templates' => :'canCreateFormTemplates',
185
+ :'can_manage_form_packets' => :'canManageFormPackets',
172
186
  :'can_add_tasks_to_any_task_lists' => :'canAddTasksToAnyTaskLists',
173
187
  :'can_edit_editable_tasks' => :'canEditEditableTasks',
174
188
  :'can_edit_any_tasks' => :'canEditAnyTasks',
@@ -198,7 +212,8 @@ module DocuSign_Rooms
198
212
  :'can_manage_roles_and_permissions' => :'canManageRolesAndPermissions',
199
213
  :'can_manage_room_details' => :'canManageRoomDetails',
200
214
  :'can_manage_room_templates' => :'canManageRoomTemplates',
201
- :'can_manage_integration_settings' => :'canManageIntegrationSettings'
215
+ :'can_manage_integration_settings' => :'canManageIntegrationSettings',
216
+ :'can_export_company_usage_report' => :'canExportCompanyUsageReport'
202
217
  }
203
218
  end
204
219
 
@@ -223,6 +238,7 @@ module DocuSign_Rooms
223
238
  :'can_manage_room_owners' => :'BOOLEAN',
224
239
  :'can_delete_rooms' => :'BOOLEAN',
225
240
  :'can_connect_to_mortgage_cadence' => :'BOOLEAN',
241
+ :'auto_access_to_rooms_in_office_only' => :'BOOLEAN',
226
242
  :'can_view_room_details' => :'BOOLEAN',
227
243
  :'can_view_and_edit_room_details' => :'BOOLEAN',
228
244
  :'can_send_room_details_to_lone_wolf' => :'BOOLEAN',
@@ -232,10 +248,13 @@ module DocuSign_Rooms
232
248
  :'documents_viewable_by_others_in_room_from_office' => :'BOOLEAN',
233
249
  :'documents_auto_owned_by_peers' => :'BOOLEAN',
234
250
  :'can_delete_owned_documents' => :'BOOLEAN',
251
+ :'can_delete_signed_documents' => :'BOOLEAN',
252
+ :'can_delete_unsigned_documents' => :'BOOLEAN',
235
253
  :'can_manage_shared_docs' => :'BOOLEAN',
236
254
  :'can_manage_form_groups' => :'BOOLEAN',
237
255
  :'can_share_docs_not_owned' => :'BOOLEAN',
238
256
  :'can_create_form_templates' => :'BOOLEAN',
257
+ :'can_manage_form_packets' => :'BOOLEAN',
239
258
  :'can_add_tasks_to_any_task_lists' => :'BOOLEAN',
240
259
  :'can_edit_editable_tasks' => :'BOOLEAN',
241
260
  :'can_edit_any_tasks' => :'BOOLEAN',
@@ -265,7 +284,8 @@ module DocuSign_Rooms
265
284
  :'can_manage_roles_and_permissions' => :'BOOLEAN',
266
285
  :'can_manage_room_details' => :'BOOLEAN',
267
286
  :'can_manage_room_templates' => :'BOOLEAN',
268
- :'can_manage_integration_settings' => :'BOOLEAN'
287
+ :'can_manage_integration_settings' => :'BOOLEAN',
288
+ :'can_export_company_usage_report' => :'BOOLEAN'
269
289
  }
270
290
  end
271
291
 
@@ -349,6 +369,10 @@ module DocuSign_Rooms
349
369
  self.can_connect_to_mortgage_cadence = attributes[:'canConnectToMortgageCadence']
350
370
  end
351
371
 
372
+ if attributes.has_key?(:'autoAccessToRoomsInOfficeOnly')
373
+ self.auto_access_to_rooms_in_office_only = attributes[:'autoAccessToRoomsInOfficeOnly']
374
+ end
375
+
352
376
  if attributes.has_key?(:'canViewRoomDetails')
353
377
  self.can_view_room_details = attributes[:'canViewRoomDetails']
354
378
  end
@@ -385,6 +409,14 @@ module DocuSign_Rooms
385
409
  self.can_delete_owned_documents = attributes[:'canDeleteOwnedDocuments']
386
410
  end
387
411
 
412
+ if attributes.has_key?(:'canDeleteSignedDocuments')
413
+ self.can_delete_signed_documents = attributes[:'canDeleteSignedDocuments']
414
+ end
415
+
416
+ if attributes.has_key?(:'canDeleteUnsignedDocuments')
417
+ self.can_delete_unsigned_documents = attributes[:'canDeleteUnsignedDocuments']
418
+ end
419
+
388
420
  if attributes.has_key?(:'canManageSharedDocs')
389
421
  self.can_manage_shared_docs = attributes[:'canManageSharedDocs']
390
422
  end
@@ -401,6 +433,10 @@ module DocuSign_Rooms
401
433
  self.can_create_form_templates = attributes[:'canCreateFormTemplates']
402
434
  end
403
435
 
436
+ if attributes.has_key?(:'canManageFormPackets')
437
+ self.can_manage_form_packets = attributes[:'canManageFormPackets']
438
+ end
439
+
404
440
  if attributes.has_key?(:'canAddTasksToAnyTaskLists')
405
441
  self.can_add_tasks_to_any_task_lists = attributes[:'canAddTasksToAnyTaskLists']
406
442
  end
@@ -520,6 +556,10 @@ module DocuSign_Rooms
520
556
  if attributes.has_key?(:'canManageIntegrationSettings')
521
557
  self.can_manage_integration_settings = attributes[:'canManageIntegrationSettings']
522
558
  end
559
+
560
+ if attributes.has_key?(:'canExportCompanyUsageReport')
561
+ self.can_export_company_usage_report = attributes[:'canExportCompanyUsageReport']
562
+ end
523
563
  end
524
564
 
525
565
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -558,6 +598,7 @@ module DocuSign_Rooms
558
598
  can_manage_room_owners == o.can_manage_room_owners &&
559
599
  can_delete_rooms == o.can_delete_rooms &&
560
600
  can_connect_to_mortgage_cadence == o.can_connect_to_mortgage_cadence &&
601
+ auto_access_to_rooms_in_office_only == o.auto_access_to_rooms_in_office_only &&
561
602
  can_view_room_details == o.can_view_room_details &&
562
603
  can_view_and_edit_room_details == o.can_view_and_edit_room_details &&
563
604
  can_send_room_details_to_lone_wolf == o.can_send_room_details_to_lone_wolf &&
@@ -567,10 +608,13 @@ module DocuSign_Rooms
567
608
  documents_viewable_by_others_in_room_from_office == o.documents_viewable_by_others_in_room_from_office &&
568
609
  documents_auto_owned_by_peers == o.documents_auto_owned_by_peers &&
569
610
  can_delete_owned_documents == o.can_delete_owned_documents &&
611
+ can_delete_signed_documents == o.can_delete_signed_documents &&
612
+ can_delete_unsigned_documents == o.can_delete_unsigned_documents &&
570
613
  can_manage_shared_docs == o.can_manage_shared_docs &&
571
614
  can_manage_form_groups == o.can_manage_form_groups &&
572
615
  can_share_docs_not_owned == o.can_share_docs_not_owned &&
573
616
  can_create_form_templates == o.can_create_form_templates &&
617
+ can_manage_form_packets == o.can_manage_form_packets &&
574
618
  can_add_tasks_to_any_task_lists == o.can_add_tasks_to_any_task_lists &&
575
619
  can_edit_editable_tasks == o.can_edit_editable_tasks &&
576
620
  can_edit_any_tasks == o.can_edit_any_tasks &&
@@ -600,7 +644,8 @@ module DocuSign_Rooms
600
644
  can_manage_roles_and_permissions == o.can_manage_roles_and_permissions &&
601
645
  can_manage_room_details == o.can_manage_room_details &&
602
646
  can_manage_room_templates == o.can_manage_room_templates &&
603
- can_manage_integration_settings == o.can_manage_integration_settings
647
+ can_manage_integration_settings == o.can_manage_integration_settings &&
648
+ can_export_company_usage_report == o.can_export_company_usage_report
604
649
  end
605
650
 
606
651
  # @see the `==` method
@@ -612,7 +657,7 @@ module DocuSign_Rooms
612
657
  # Calculates hash code according to all attributes.
613
658
  # @return [Fixnum] Hash code
614
659
  def hash
615
- [can_add_users_to_rooms, can_create_rooms, can_submit_rooms_for_review, can_close_rooms, can_reopen_rooms, can_delete_owned_rooms, auto_access_to_rooms, can_export_room_activity_details_people, can_copy_room_details, can_edit_any_room_role, can_edit_invited_room_role, can_edit_room_side, can_manage_any_user_room_access, can_manage_invited_user_room_access, is_hidden_in_room, can_manage_room_owners, can_delete_rooms, can_connect_to_mortgage_cadence, can_view_room_details, can_view_and_edit_room_details, can_send_room_details_to_lone_wolf, can_add_documents, can_add_documents_from_form_groups, can_add_documents_from_form_libraries, documents_viewable_by_others_in_room_from_office, documents_auto_owned_by_peers, can_delete_owned_documents, can_manage_shared_docs, can_manage_form_groups, can_share_docs_not_owned, can_create_form_templates, can_add_tasks_to_any_task_lists, can_edit_editable_tasks, can_edit_any_tasks, can_delete_deletable_tasks, can_delete_any_tasks, can_apply_task_list, can_remove_any_task_list, can_submit_task_list, can_auto_submit_task_list, can_review_task_list, can_auto_approve_task_list, can_manage_task_templates_for_all_regions_all_offices, can_apply_room_templates, can_add_tasks_to_rooms, can_review_any_task, can_manage_docs_on_any_task, can_add_member_and_set_role_lower_access_level, can_add_member_and_set_role_same_access_level, can_change_member_role_lower_access_level, can_change_member_role_same_access_level, can_manage_member_lower_access_level, can_manage_member_same_access_level, can_remove_company_member_lower_access_level, can_remove_company_member_same_access_level, can_manage_account, can_manage_logo, can_manage_roles_and_permissions, can_manage_room_details, can_manage_room_templates, can_manage_integration_settings].hash
660
+ [can_add_users_to_rooms, can_create_rooms, can_submit_rooms_for_review, can_close_rooms, can_reopen_rooms, can_delete_owned_rooms, auto_access_to_rooms, can_export_room_activity_details_people, can_copy_room_details, can_edit_any_room_role, can_edit_invited_room_role, can_edit_room_side, can_manage_any_user_room_access, can_manage_invited_user_room_access, is_hidden_in_room, can_manage_room_owners, can_delete_rooms, can_connect_to_mortgage_cadence, auto_access_to_rooms_in_office_only, can_view_room_details, can_view_and_edit_room_details, can_send_room_details_to_lone_wolf, can_add_documents, can_add_documents_from_form_groups, can_add_documents_from_form_libraries, documents_viewable_by_others_in_room_from_office, documents_auto_owned_by_peers, can_delete_owned_documents, can_delete_signed_documents, can_delete_unsigned_documents, can_manage_shared_docs, can_manage_form_groups, can_share_docs_not_owned, can_create_form_templates, can_manage_form_packets, can_add_tasks_to_any_task_lists, can_edit_editable_tasks, can_edit_any_tasks, can_delete_deletable_tasks, can_delete_any_tasks, can_apply_task_list, can_remove_any_task_list, can_submit_task_list, can_auto_submit_task_list, can_review_task_list, can_auto_approve_task_list, can_manage_task_templates_for_all_regions_all_offices, can_apply_room_templates, can_add_tasks_to_rooms, can_review_any_task, can_manage_docs_on_any_task, can_add_member_and_set_role_lower_access_level, can_add_member_and_set_role_same_access_level, can_change_member_role_lower_access_level, can_change_member_role_same_access_level, can_manage_member_lower_access_level, can_manage_member_same_access_level, can_remove_company_member_lower_access_level, can_remove_company_member_same_access_level, can_manage_account, can_manage_logo, can_manage_roles_and_permissions, can_manage_room_details, can_manage_room_templates, can_manage_integration_settings, can_export_company_usage_report].hash
616
661
  end
617
662
 
618
663
  # Builds the object from hash
@@ -31,10 +31,14 @@ module DocuSign_Rooms
31
31
 
32
32
  attr_accessor :created_by_user_id
33
33
 
34
+ attr_accessor :room_owner_ids
35
+
34
36
  attr_accessor :rejected_by_user_id
35
37
 
36
38
  attr_accessor :closed_status_id
37
39
 
40
+ attr_accessor :field_data_last_updated_date
41
+
38
42
  attr_accessor :field_data
39
43
 
40
44
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -49,8 +53,10 @@ module DocuSign_Rooms
49
53
  :'closed_date' => :'closedDate',
50
54
  :'rejected_date' => :'rejectedDate',
51
55
  :'created_by_user_id' => :'createdByUserId',
56
+ :'room_owner_ids' => :'roomOwnerIds',
52
57
  :'rejected_by_user_id' => :'rejectedByUserId',
53
58
  :'closed_status_id' => :'closedStatusId',
59
+ :'field_data_last_updated_date' => :'fieldDataLastUpdatedDate',
54
60
  :'field_data' => :'fieldData'
55
61
  }
56
62
  end
@@ -67,8 +73,10 @@ module DocuSign_Rooms
67
73
  :'closed_date' => :'DateTime',
68
74
  :'rejected_date' => :'DateTime',
69
75
  :'created_by_user_id' => :'Integer',
76
+ :'room_owner_ids' => :'Array<Integer>',
70
77
  :'rejected_by_user_id' => :'Integer',
71
78
  :'closed_status_id' => :'String',
79
+ :'field_data_last_updated_date' => :'DateTime',
72
80
  :'field_data' => :'FieldData'
73
81
  }
74
82
  end
@@ -117,6 +125,12 @@ module DocuSign_Rooms
117
125
  self.created_by_user_id = attributes[:'createdByUserId']
118
126
  end
119
127
 
128
+ if attributes.has_key?(:'roomOwnerIds')
129
+ if (value = attributes[:'roomOwnerIds']).is_a?(Array)
130
+ self.room_owner_ids = value
131
+ end
132
+ end
133
+
120
134
  if attributes.has_key?(:'rejectedByUserId')
121
135
  self.rejected_by_user_id = attributes[:'rejectedByUserId']
122
136
  end
@@ -125,6 +139,10 @@ module DocuSign_Rooms
125
139
  self.closed_status_id = attributes[:'closedStatusId']
126
140
  end
127
141
 
142
+ if attributes.has_key?(:'fieldDataLastUpdatedDate')
143
+ self.field_data_last_updated_date = attributes[:'fieldDataLastUpdatedDate']
144
+ end
145
+
128
146
  if attributes.has_key?(:'fieldData')
129
147
  self.field_data = attributes[:'fieldData']
130
148
  end
@@ -157,8 +175,10 @@ module DocuSign_Rooms
157
175
  closed_date == o.closed_date &&
158
176
  rejected_date == o.rejected_date &&
159
177
  created_by_user_id == o.created_by_user_id &&
178
+ room_owner_ids == o.room_owner_ids &&
160
179
  rejected_by_user_id == o.rejected_by_user_id &&
161
180
  closed_status_id == o.closed_status_id &&
181
+ field_data_last_updated_date == o.field_data_last_updated_date &&
162
182
  field_data == o.field_data
163
183
  end
164
184
 
@@ -171,7 +191,7 @@ module DocuSign_Rooms
171
191
  # Calculates hash code according to all attributes.
172
192
  # @return [Fixnum] Hash code
173
193
  def hash
174
- [room_id, company_id, name, office_id, created_date, submitted_for_review_date, closed_date, rejected_date, created_by_user_id, rejected_by_user_id, closed_status_id, field_data].hash
194
+ [room_id, company_id, name, office_id, created_date, submitted_for_review_date, closed_date, rejected_date, created_by_user_id, room_owner_ids, rejected_by_user_id, closed_status_id, field_data_last_updated_date, field_data].hash
175
195
  end
176
196
 
177
197
  # Builds the object from hash
@@ -28,6 +28,30 @@ module DocuSign_Rooms
28
28
 
29
29
  attr_accessor :field_data
30
30
 
31
+ attr_accessor :listing_source
32
+
33
+ class EnumAttributeValidator
34
+ attr_reader :datatype
35
+ attr_reader :allowable_values
36
+
37
+ def initialize(datatype, allowable_values)
38
+ @allowable_values = allowable_values.map do |value|
39
+ case datatype.to_s
40
+ when /Integer/i
41
+ value.to_i
42
+ when /Float/i
43
+ value.to_f
44
+ else
45
+ value
46
+ end
47
+ end
48
+ end
49
+
50
+ def valid?(value)
51
+ !value || allowable_values.include?(value)
52
+ end
53
+ end
54
+
31
55
  # Attribute mapping from ruby-style variable name to JSON key.
32
56
  def self.attribute_map
33
57
  {
@@ -37,7 +61,8 @@ module DocuSign_Rooms
37
61
  :'owner_id' => :'ownerId',
38
62
  :'template_id' => :'templateId',
39
63
  :'office_id' => :'officeId',
40
- :'field_data' => :'fieldData'
64
+ :'field_data' => :'fieldData',
65
+ :'listing_source' => :'listingSource'
41
66
  }
42
67
  end
43
68
 
@@ -50,7 +75,8 @@ module DocuSign_Rooms
50
75
  :'owner_id' => :'Integer',
51
76
  :'template_id' => :'Integer',
52
77
  :'office_id' => :'Integer',
53
- :'field_data' => :'FieldDataForCreate'
78
+ :'field_data' => :'FieldDataForCreate',
79
+ :'listing_source' => :'String'
54
80
  }
55
81
  end
56
82
 
@@ -89,6 +115,10 @@ module DocuSign_Rooms
89
115
  if attributes.has_key?(:'fieldData')
90
116
  self.field_data = attributes[:'fieldData']
91
117
  end
118
+
119
+ if attributes.has_key?(:'listingSource')
120
+ self.listing_source = attributes[:'listingSource']
121
+ end
92
122
  end
93
123
 
94
124
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,9 +141,21 @@ module DocuSign_Rooms
111
141
  def valid?
112
142
  return false if @name.nil?
113
143
  return false if @role_id.nil?
144
+ listing_source_validator = EnumAttributeValidator.new('String', ['PublicRecords', 'MLS'])
145
+ return false unless listing_source_validator.valid?(@listing_source)
114
146
  true
115
147
  end
116
148
 
149
+ # Custom attribute writer method checking allowed values (enum).
150
+ # @param [Object] listing_source Object to be assigned
151
+ def listing_source=(listing_source)
152
+ validator = EnumAttributeValidator.new('String', ['PublicRecords', 'MLS'])
153
+ unless validator.valid?(listing_source)
154
+ fail ArgumentError, 'invalid value for "listing_source", must be one of #{validator.allowable_values}.'
155
+ end
156
+ @listing_source = listing_source
157
+ end
158
+
117
159
  # Checks equality by comparing each attribute.
118
160
  # @param [Object] Object to be compared
119
161
  def ==(o)
@@ -125,7 +167,8 @@ module DocuSign_Rooms
125
167
  owner_id == o.owner_id &&
126
168
  template_id == o.template_id &&
127
169
  office_id == o.office_id &&
128
- field_data == o.field_data
170
+ field_data == o.field_data &&
171
+ listing_source == o.listing_source
129
172
  end
130
173
 
131
174
  # @see the `==` method
@@ -137,7 +180,7 @@ module DocuSign_Rooms
137
180
  # Calculates hash code according to all attributes.
138
181
  # @return [Fixnum] Hash code
139
182
  def hash
140
- [name, role_id, transaction_side_id, owner_id, template_id, office_id, field_data].hash
183
+ [name, role_id, transaction_side_id, owner_id, template_id, office_id, field_data, listing_source].hash
141
184
  end
142
185
 
143
186
  # Builds the object from hash
@@ -41,6 +41,28 @@ module DocuSign_Rooms
41
41
 
42
42
  attr_accessor :permissions
43
43
 
44
+ class EnumAttributeValidator
45
+ attr_reader :datatype
46
+ attr_reader :allowable_values
47
+
48
+ def initialize(datatype, allowable_values)
49
+ @allowable_values = allowable_values.map do |value|
50
+ case datatype.to_s
51
+ when /Integer/i
52
+ value.to_i
53
+ when /Float/i
54
+ value.to_f
55
+ else
56
+ value
57
+ end
58
+ end
59
+ end
60
+
61
+ def valid?(value)
62
+ !value || allowable_values.include?(value)
63
+ end
64
+ end
65
+
44
66
  # Attribute mapping from ruby-style variable name to JSON key.
45
67
  def self.attribute_map
46
68
  {
@@ -70,7 +92,7 @@ module DocuSign_Rooms
70
92
  :'last_name' => :'String',
71
93
  :'is_locked_out' => :'BOOLEAN',
72
94
  :'status' => :'String',
73
- :'access_level' => :'AccessLevel',
95
+ :'access_level' => :'String',
74
96
  :'default_office_id' => :'Integer',
75
97
  :'title_id' => :'Integer',
76
98
  :'role_id' => :'Integer',
@@ -160,9 +182,21 @@ module DocuSign_Rooms
160
182
  # Check to see if the all the properties in the model are valid
161
183
  # @return true if the model is valid
162
184
  def valid?
185
+ access_level_validator = EnumAttributeValidator.new('String', ['Contributor', 'Office', 'Region', 'Company', 'Admin'])
186
+ return false unless access_level_validator.valid?(@access_level)
163
187
  true
164
188
  end
165
189
 
190
+ # Custom attribute writer method checking allowed values (enum).
191
+ # @param [Object] access_level Object to be assigned
192
+ def access_level=(access_level)
193
+ validator = EnumAttributeValidator.new('String', ['Contributor', 'Office', 'Region', 'Company', 'Admin'])
194
+ unless validator.valid?(access_level)
195
+ fail ArgumentError, 'invalid value for "access_level", must be one of #{validator.allowable_values}.'
196
+ end
197
+ @access_level = access_level
198
+ end
199
+
166
200
  # Checks equality by comparing each attribute.
167
201
  # @param [Object] Object to be compared
168
202
  def ==(o)
@@ -35,6 +35,28 @@ module DocuSign_Rooms
35
35
 
36
36
  attr_accessor :profile_image_url
37
37
 
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
38
60
  # Attribute mapping from ruby-style variable name to JSON key.
39
61
  def self.attribute_map
40
62
  {
@@ -61,7 +83,7 @@ module DocuSign_Rooms
61
83
  :'last_name' => :'String',
62
84
  :'is_locked_out' => :'BOOLEAN',
63
85
  :'status' => :'String',
64
- :'access_level' => :'AccessLevel',
86
+ :'access_level' => :'String',
65
87
  :'default_office_id' => :'Integer',
66
88
  :'title_id' => :'Integer',
67
89
  :'role_id' => :'Integer',
@@ -132,9 +154,21 @@ module DocuSign_Rooms
132
154
  # Check to see if the all the properties in the model are valid
133
155
  # @return true if the model is valid
134
156
  def valid?
157
+ access_level_validator = EnumAttributeValidator.new('String', ['Contributor', 'Office', 'Region', 'Company', 'Admin'])
158
+ return false unless access_level_validator.valid?(@access_level)
135
159
  true
136
160
  end
137
161
 
162
+ # Custom attribute writer method checking allowed values (enum).
163
+ # @param [Object] access_level Object to be assigned
164
+ def access_level=(access_level)
165
+ validator = EnumAttributeValidator.new('String', ['Contributor', 'Office', 'Region', 'Company', 'Admin'])
166
+ unless validator.valid?(access_level)
167
+ fail ArgumentError, 'invalid value for "access_level", must be one of #{validator.allowable_values}.'
168
+ end
169
+ @access_level = access_level
170
+ end
171
+
138
172
  # Checks equality by comparing each attribute.
139
173
  # @param [Object] Object to be compared
140
174
  def ==(o)