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
@@ -0,0 +1,219 @@
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 RoomDocumentOwner
16
+ attr_accessor :user_id
17
+
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :company_name
23
+
24
+ attr_accessor :image_src
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'user_id' => :'userId',
30
+ :'first_name' => :'firstName',
31
+ :'last_name' => :'lastName',
32
+ :'company_name' => :'companyName',
33
+ :'image_src' => :'imageSrc'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'user_id' => :'Integer',
41
+ :'first_name' => :'String',
42
+ :'last_name' => :'String',
43
+ :'company_name' => :'String',
44
+ :'image_src' => :'String'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
+
56
+ if attributes.has_key?(:'userId')
57
+ self.user_id = attributes[:'userId']
58
+ end
59
+
60
+ if attributes.has_key?(:'firstName')
61
+ self.first_name = attributes[:'firstName']
62
+ end
63
+
64
+ if attributes.has_key?(:'lastName')
65
+ self.last_name = attributes[:'lastName']
66
+ end
67
+
68
+ if attributes.has_key?(:'companyName')
69
+ self.company_name = attributes[:'companyName']
70
+ end
71
+
72
+ if attributes.has_key?(:'imageSrc')
73
+ self.image_src = attributes[:'imageSrc']
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ true
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] Object to be compared
92
+ def ==(o)
93
+ return true if self.equal?(o)
94
+ self.class == o.class &&
95
+ user_id == o.user_id &&
96
+ first_name == o.first_name &&
97
+ last_name == o.last_name &&
98
+ company_name == o.company_name &&
99
+ image_src == o.image_src
100
+ end
101
+
102
+ # @see the `==` method
103
+ # @param [Object] Object to be compared
104
+ def eql?(o)
105
+ self == o
106
+ end
107
+
108
+ # Calculates hash code according to all attributes.
109
+ # @return [Fixnum] Hash code
110
+ def hash
111
+ [user_id, first_name, last_name, company_name, image_src].hash
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.swagger_types.each_pair do |key, type|
120
+ if type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ end
126
+ elsif !attributes[self.class.attribute_map[key]].nil?
127
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
129
+ end
130
+
131
+ self
132
+ end
133
+
134
+ # Deserializes the data based on type
135
+ # @param string type Data type
136
+ # @param string value Value to be deserialized
137
+ # @return [Object] Deserialized data
138
+ def _deserialize(type, value)
139
+ case type.to_sym
140
+ when :DateTime
141
+ DateTime.parse(value)
142
+ when :Date
143
+ Date.parse(value)
144
+ when :String
145
+ value.to_s
146
+ when :Integer
147
+ value.to_i
148
+ when :Float
149
+ value.to_f
150
+ when :BOOLEAN
151
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
152
+ true
153
+ else
154
+ false
155
+ end
156
+ when :Object
157
+ # generic object (usually a Hash), return directly
158
+ value
159
+ when /\AArray<(?<inner_type>.+)>\z/
160
+ inner_type = Regexp.last_match[:inner_type]
161
+ value.map { |v| _deserialize(inner_type, v) }
162
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
163
+ k_type = Regexp.last_match[:k_type]
164
+ v_type = Regexp.last_match[:v_type]
165
+ {}.tap do |hash|
166
+ value.each do |k, v|
167
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
168
+ end
169
+ end
170
+ else # model
171
+ temp_model = DocuSign_Rooms.const_get(type).new
172
+ temp_model.build_from_hash(value)
173
+ end
174
+ end
175
+
176
+ # Returns the string representation of the object
177
+ # @return [String] String presentation of the object
178
+ def to_s
179
+ to_hash.to_s
180
+ end
181
+
182
+ # to_body is an alias to to_hash (backward compatibility)
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_body
185
+ to_hash
186
+ end
187
+
188
+ # Returns the object in the form of hash
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_hash
191
+ hash = {}
192
+ self.class.attribute_map.each_pair do |attr, param|
193
+ value = self.send(attr)
194
+ next if value.nil?
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+ end
@@ -25,6 +25,8 @@ module DocuSign_Rooms
25
25
 
26
26
  attr_accessor :prior_uri
27
27
 
28
+ attr_accessor :total_row_count
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
@@ -33,7 +35,8 @@ module DocuSign_Rooms
33
35
  :'start_position' => :'startPosition',
34
36
  :'end_position' => :'endPosition',
35
37
  :'next_uri' => :'nextUri',
36
- :'prior_uri' => :'priorUri'
38
+ :'prior_uri' => :'priorUri',
39
+ :'total_row_count' => :'totalRowCount'
37
40
  }
38
41
  end
39
42
 
@@ -45,7 +48,8 @@ module DocuSign_Rooms
45
48
  :'start_position' => :'Integer',
46
49
  :'end_position' => :'Integer',
47
50
  :'next_uri' => :'String',
48
- :'prior_uri' => :'String'
51
+ :'prior_uri' => :'String',
52
+ :'total_row_count' => :'Integer'
49
53
  }
50
54
  end
51
55
 
@@ -82,6 +86,10 @@ module DocuSign_Rooms
82
86
  if attributes.has_key?(:'priorUri')
83
87
  self.prior_uri = attributes[:'priorUri']
84
88
  end
89
+
90
+ if attributes.has_key?(:'totalRowCount')
91
+ self.total_row_count = attributes[:'totalRowCount']
92
+ end
85
93
  end
86
94
 
87
95
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,7 +115,8 @@ module DocuSign_Rooms
107
115
  start_position == o.start_position &&
108
116
  end_position == o.end_position &&
109
117
  next_uri == o.next_uri &&
110
- prior_uri == o.prior_uri
118
+ prior_uri == o.prior_uri &&
119
+ total_row_count == o.total_row_count
111
120
  end
112
121
 
113
122
  # @see the `==` method
@@ -119,7 +128,7 @@ module DocuSign_Rooms
119
128
  # Calculates hash code according to all attributes.
120
129
  # @return [Fixnum] Hash code
121
130
  def hash
122
- [folders, result_set_size, start_position, end_position, next_uri, prior_uri].hash
131
+ [folders, result_set_size, start_position, end_position, next_uri, prior_uri, total_row_count].hash
123
132
  end
124
133
 
125
134
  # Builds the object from hash
@@ -0,0 +1,31 @@
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 RoomStatus
16
+
17
+ ACTIVE = 'Active'.freeze
18
+ PENDING = 'Pending'.freeze
19
+ CLOSED = 'Closed'.freeze
20
+ OPEN = 'Open'.freeze
21
+
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def build_from_hash(value)
26
+ constantValues = RoomStatus.constants.select { |c| RoomStatus::const_get(c) == value }
27
+ raise "Invalid ENUM value #{value} for class #RoomStatus" if constantValues.empty?
28
+ value
29
+ end
30
+ end
31
+ end
@@ -25,6 +25,8 @@ module DocuSign_Rooms
25
25
 
26
26
  attr_accessor :prior_uri
27
27
 
28
+ attr_accessor :total_row_count
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
@@ -33,7 +35,8 @@ module DocuSign_Rooms
33
35
  :'start_position' => :'startPosition',
34
36
  :'end_position' => :'endPosition',
35
37
  :'next_uri' => :'nextUri',
36
- :'prior_uri' => :'priorUri'
38
+ :'prior_uri' => :'priorUri',
39
+ :'total_row_count' => :'totalRowCount'
37
40
  }
38
41
  end
39
42
 
@@ -45,7 +48,8 @@ module DocuSign_Rooms
45
48
  :'start_position' => :'Integer',
46
49
  :'end_position' => :'Integer',
47
50
  :'next_uri' => :'String',
48
- :'prior_uri' => :'String'
51
+ :'prior_uri' => :'String',
52
+ :'total_row_count' => :'Integer'
49
53
  }
50
54
  end
51
55
 
@@ -82,6 +86,10 @@ module DocuSign_Rooms
82
86
  if attributes.has_key?(:'priorUri')
83
87
  self.prior_uri = attributes[:'priorUri']
84
88
  end
89
+
90
+ if attributes.has_key?(:'totalRowCount')
91
+ self.total_row_count = attributes[:'totalRowCount']
92
+ end
85
93
  end
86
94
 
87
95
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,7 +115,8 @@ module DocuSign_Rooms
107
115
  start_position == o.start_position &&
108
116
  end_position == o.end_position &&
109
117
  next_uri == o.next_uri &&
110
- prior_uri == o.prior_uri
118
+ prior_uri == o.prior_uri &&
119
+ total_row_count == o.total_row_count
111
120
  end
112
121
 
113
122
  # @see the `==` method
@@ -119,7 +128,7 @@ module DocuSign_Rooms
119
128
  # Calculates hash code according to all attributes.
120
129
  # @return [Fixnum] Hash code
121
130
  def hash
122
- [rooms, result_set_size, start_position, end_position, next_uri, prior_uri].hash
131
+ [rooms, result_set_size, start_position, end_position, next_uri, prior_uri, total_row_count].hash
123
132
  end
124
133
 
125
134
  # Builds the object from hash
@@ -25,6 +25,8 @@ module DocuSign_Rooms
25
25
 
26
26
  attr_accessor :prior_uri
27
27
 
28
+ attr_accessor :total_row_count
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
@@ -33,7 +35,8 @@ module DocuSign_Rooms
33
35
  :'start_position' => :'startPosition',
34
36
  :'end_position' => :'endPosition',
35
37
  :'next_uri' => :'nextUri',
36
- :'prior_uri' => :'priorUri'
38
+ :'prior_uri' => :'priorUri',
39
+ :'total_row_count' => :'totalRowCount'
37
40
  }
38
41
  end
39
42
 
@@ -45,7 +48,8 @@ module DocuSign_Rooms
45
48
  :'start_position' => :'Integer',
46
49
  :'end_position' => :'Integer',
47
50
  :'next_uri' => :'String',
48
- :'prior_uri' => :'String'
51
+ :'prior_uri' => :'String',
52
+ :'total_row_count' => :'Integer'
49
53
  }
50
54
  end
51
55
 
@@ -82,6 +86,10 @@ module DocuSign_Rooms
82
86
  if attributes.has_key?(:'priorUri')
83
87
  self.prior_uri = attributes[:'priorUri']
84
88
  end
89
+
90
+ if attributes.has_key?(:'totalRowCount')
91
+ self.total_row_count = attributes[:'totalRowCount']
92
+ end
85
93
  end
86
94
 
87
95
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,7 +115,8 @@ module DocuSign_Rooms
107
115
  start_position == o.start_position &&
108
116
  end_position == o.end_position &&
109
117
  next_uri == o.next_uri &&
110
- prior_uri == o.prior_uri
118
+ prior_uri == o.prior_uri &&
119
+ total_row_count == o.total_row_count
111
120
  end
112
121
 
113
122
  # @see the `==` method
@@ -119,7 +128,7 @@ module DocuSign_Rooms
119
128
  # Calculates hash code according to all attributes.
120
129
  # @return [Fixnum] Hash code
121
130
  def hash
122
- [room_templates, result_set_size, start_position, end_position, next_uri, prior_uri].hash
131
+ [room_templates, result_set_size, start_position, end_position, next_uri, prior_uri, total_row_count].hash
123
132
  end
124
133
 
125
134
  # Builds the object from hash
@@ -0,0 +1,33 @@
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 RoomUserSortingOption
16
+
17
+ FIRST_NAME_ASC = 'FirstNameAsc'.freeze
18
+ LAST_NAME_ASC = 'LastNameAsc'.freeze
19
+ EMAIL_ASC = 'EmailAsc'.freeze
20
+ FIRST_NAME_DESC = 'FirstNameDesc'.freeze
21
+ LAST_NAME_DESC = 'LastNameDesc'.freeze
22
+ EMAIL_DESC = 'EmailDesc'.freeze
23
+
24
+ # Builds the enum from string
25
+ # @param [String] The enum value in the form of the string
26
+ # @return [String] The enum value
27
+ def build_from_hash(value)
28
+ constantValues = RoomUserSortingOption.constants.select { |c| RoomUserSortingOption::const_get(c) == value }
29
+ raise "Invalid ENUM value #{value} for class #RoomUserSortingOption" if constantValues.empty?
30
+ value
31
+ end
32
+ end
33
+ end