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