signrequest_client 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -7
  3. data/Rakefile +0 -1
  4. data/docs/ApiTokensApi.md +0 -164
  5. data/docs/Document.md +6 -0
  6. data/docs/DocumentAttachment.md +1 -1
  7. data/docs/DocumentAttachmentsApi.md +4 -4
  8. data/docs/DocumentSearch.md +5 -5
  9. data/docs/DocumentSigningLog.md +9 -0
  10. data/docs/DocumentSignrequest.md +28 -0
  11. data/docs/DocumentTeam.md +10 -0
  12. data/docs/DocumentsApi.md +11 -11
  13. data/docs/DocumentsSearchApi.md +8 -8
  14. data/docs/Event.md +1 -0
  15. data/docs/EventsApi.md +13 -13
  16. data/docs/FileFromSf.md +1 -0
  17. data/docs/InlineResponse201.md +1 -1
  18. data/docs/InlineSignRequest.md +3 -0
  19. data/docs/SignRequest.md +4 -1
  20. data/docs/SignRequestQuickCreate.md +5 -1
  21. data/docs/Signer.md +3 -0
  22. data/docs/SignrequestsApi.md +5 -5
  23. data/docs/Team.md +2 -0
  24. data/docs/TeamMember.md +1 -0
  25. data/docs/TeamMembersApi.md +7 -7
  26. data/docs/TeamsApi.md +57 -3
  27. data/docs/Template.md +1 -0
  28. data/docs/TemplatesApi.md +1 -1
  29. data/docs/WebhookSubscription.md +1 -0
  30. data/docs/WebhooksApi.md +4 -4
  31. data/lib/signrequest_client.rb +4 -1
  32. data/lib/signrequest_client/api/api_tokens_api.rb +5 -170
  33. data/lib/signrequest_client/api/document_attachments_api.rb +11 -14
  34. data/lib/signrequest_client/api/documents_api.rb +14 -18
  35. data/lib/signrequest_client/api/documents_search_api.rb +5 -6
  36. data/lib/signrequest_client/api/events_api.rb +8 -10
  37. data/lib/signrequest_client/api/signrequest_quick_create_api.rb +5 -6
  38. data/lib/signrequest_client/api/signrequests_api.rb +17 -22
  39. data/lib/signrequest_client/api/team_members_api.rb +8 -10
  40. data/lib/signrequest_client/api/teams_api.rb +69 -21
  41. data/lib/signrequest_client/api/templates_api.rb +8 -10
  42. data/lib/signrequest_client/api/webhooks_api.rb +20 -26
  43. data/lib/signrequest_client/api_client.rb +9 -9
  44. data/lib/signrequest_client/api_error.rb +1 -1
  45. data/lib/signrequest_client/configuration.rb +2 -2
  46. data/lib/signrequest_client/models/auth_token.rb +16 -23
  47. data/lib/signrequest_client/models/document.rb +113 -45
  48. data/lib/signrequest_client/models/document_attachment.rb +17 -25
  49. data/lib/signrequest_client/models/document_search.rb +111 -122
  50. data/lib/signrequest_client/models/document_signer_template_conf.rb +14 -21
  51. data/lib/signrequest_client/models/document_signing_log.rb +209 -0
  52. data/lib/signrequest_client/models/document_signrequest.rb +538 -0
  53. data/lib/signrequest_client/models/document_team.rb +240 -0
  54. data/lib/signrequest_client/models/event.rb +24 -20
  55. data/lib/signrequest_client/models/file_from_sf.rb +40 -21
  56. data/lib/signrequest_client/models/inline_document_signer_integration_data.rb +9 -13
  57. data/lib/signrequest_client/models/inline_integration_data.rb +9 -13
  58. data/lib/signrequest_client/models/inline_prefill_tags.rb +8 -13
  59. data/lib/signrequest_client/models/inline_response_200.rb +8 -13
  60. data/lib/signrequest_client/models/inline_response_200_1.rb +8 -13
  61. data/lib/signrequest_client/models/inline_response_200_2.rb +8 -13
  62. data/lib/signrequest_client/models/inline_response_200_3.rb +8 -13
  63. data/lib/signrequest_client/models/inline_response_200_4.rb +8 -13
  64. data/lib/signrequest_client/models/inline_response_200_5.rb +8 -13
  65. data/lib/signrequest_client/models/inline_response_200_6.rb +8 -13
  66. data/lib/signrequest_client/models/inline_response_200_7.rb +8 -13
  67. data/lib/signrequest_client/models/inline_response_200_8.rb +8 -13
  68. data/lib/signrequest_client/models/inline_response_200_9.rb +8 -13
  69. data/lib/signrequest_client/models/inline_response_201.rb +27 -31
  70. data/lib/signrequest_client/models/inline_response_201_1.rb +11 -15
  71. data/lib/signrequest_client/models/inline_sign_request.rb +69 -35
  72. data/lib/signrequest_client/models/inline_team.rb +12 -19
  73. data/lib/signrequest_client/models/inline_team_member.rb +8 -14
  74. data/lib/signrequest_client/models/invite_member.rb +10 -15
  75. data/lib/signrequest_client/models/placeholder.rb +15 -21
  76. data/lib/signrequest_client/models/required_attachment.rb +14 -20
  77. data/lib/signrequest_client/models/sign_request.rb +75 -40
  78. data/lib/signrequest_client/models/sign_request_quick_create.rb +124 -61
  79. data/lib/signrequest_client/models/signer.rb +103 -60
  80. data/lib/signrequest_client/models/signer_attachment.rb +10 -17
  81. data/lib/signrequest_client/models/signer_inputs.rb +14 -20
  82. data/lib/signrequest_client/models/signing_log.rb +8 -14
  83. data/lib/signrequest_client/models/team.rb +55 -34
  84. data/lib/signrequest_client/models/team_member.rb +18 -15
  85. data/lib/signrequest_client/models/template.rb +23 -20
  86. data/lib/signrequest_client/models/user.rb +18 -26
  87. data/lib/signrequest_client/models/webhook_subscription.rb +33 -30
  88. data/lib/signrequest_client/version.rb +2 -2
  89. data/signrequest_client-1.0.0.gem +0 -0
  90. data/signrequest_client.gemspec +4 -4
  91. data/spec/models/document_signing_log_spec.rb +47 -0
  92. data/spec/models/document_signrequest_spec.rb +165 -0
  93. data/spec/models/document_team_spec.rb +53 -0
  94. metadata +28 -42
@@ -6,20 +6,19 @@
6
6
  OpenAPI spec version: v1
7
7
  Contact: tech-support@signrequest.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module SignRequestClient
16
-
17
16
  class DocumentAttachment
18
17
  attr_accessor :url
19
18
 
20
19
  attr_accessor :uuid
21
20
 
22
- # Defaults to filename
21
+ # Defaults to filename, including extension
23
22
  attr_accessor :name
24
23
 
25
24
  # Temporary URL to document attachment, expires in five minutes
@@ -36,7 +35,6 @@ module SignRequestClient
36
35
 
37
36
  attr_accessor :document
38
37
 
39
-
40
38
  # Attribute mapping from ruby-style variable name to JSON key.
41
39
  def self.attribute_map
42
40
  {
@@ -71,7 +69,7 @@ module SignRequestClient
71
69
  return unless attributes.is_a?(Hash)
72
70
 
73
71
  # convert string to symbol for hash key
74
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
72
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
75
73
 
76
74
  if attributes.has_key?(:'url')
77
75
  self.url = attributes[:'url']
@@ -104,7 +102,6 @@ module SignRequestClient
104
102
  if attributes.has_key?(:'document')
105
103
  self.document = attributes[:'document']
106
104
  end
107
-
108
105
  end
109
106
 
110
107
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -112,40 +109,39 @@ module SignRequestClient
112
109
  def list_invalid_properties
113
110
  invalid_properties = Array.new
114
111
  if !@uuid.nil? && @uuid.to_s.length < 1
115
- invalid_properties.push("invalid value for 'uuid', the character length must be great than or equal to 1.")
112
+ invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
116
113
  end
117
114
 
118
- if !@name.nil? && @name.to_s.length < 1
119
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
115
+ if !@name.nil? && @name.to_s.length > 255
116
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
120
117
  end
121
118
 
122
119
  if !@file_from_url.nil? && @file_from_url.to_s.length > 2100
123
- invalid_properties.push("invalid value for 'file_from_url', the character length must be smaller than or equal to 2100.")
120
+ invalid_properties.push('invalid value for "file_from_url", the character length must be smaller than or equal to 2100.')
124
121
  end
125
122
 
126
123
  if @document.nil?
127
- invalid_properties.push("invalid value for 'document', document cannot be nil.")
124
+ invalid_properties.push('invalid value for "document", document cannot be nil.')
128
125
  end
129
126
 
130
- return invalid_properties
127
+ invalid_properties
131
128
  end
132
129
 
133
130
  # Check to see if the all the properties in the model are valid
134
131
  # @return true if the model is valid
135
132
  def valid?
136
133
  return false if !@uuid.nil? && @uuid.to_s.length < 1
137
- return false if !@name.nil? && @name.to_s.length < 1
134
+ return false if !@name.nil? && @name.to_s.length > 255
138
135
  return false if !@file_from_url.nil? && @file_from_url.to_s.length > 2100
139
136
  return false if @document.nil?
140
- return true
137
+ true
141
138
  end
142
139
 
143
140
  # Custom attribute writer method with validation
144
141
  # @param [Object] uuid Value to be assigned
145
142
  def uuid=(uuid)
146
-
147
143
  if !uuid.nil? && uuid.to_s.length < 1
148
- fail ArgumentError, "invalid value for 'uuid', the character length must be great than or equal to 1."
144
+ fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
149
145
  end
150
146
 
151
147
  @uuid = uuid
@@ -154,9 +150,8 @@ module SignRequestClient
154
150
  # Custom attribute writer method with validation
155
151
  # @param [Object] name Value to be assigned
156
152
  def name=(name)
157
-
158
- if !name.nil? && name.to_s.length < 1
159
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
153
+ if !name.nil? && name.to_s.length > 255
154
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
160
155
  end
161
156
 
162
157
  @name = name
@@ -165,9 +160,8 @@ module SignRequestClient
165
160
  # Custom attribute writer method with validation
166
161
  # @param [Object] file_from_url Value to be assigned
167
162
  def file_from_url=(file_from_url)
168
-
169
163
  if !file_from_url.nil? && file_from_url.to_s.length > 2100
170
- fail ArgumentError, "invalid value for 'file_from_url', the character length must be smaller than or equal to 2100."
164
+ fail ArgumentError, 'invalid value for "file_from_url", the character length must be smaller than or equal to 2100.'
171
165
  end
172
166
 
173
167
  @file_from_url = file_from_url
@@ -210,7 +204,7 @@ module SignRequestClient
210
204
  # check to ensure the input is an array given that the the attribute
211
205
  # is documented as an array but the input is not
212
206
  if attributes[self.class.attribute_map[key]].is_a?(Array)
213
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
207
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
214
208
  end
215
209
  elsif !attributes[self.class.attribute_map[key]].nil?
216
210
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -292,7 +286,7 @@ module SignRequestClient
292
286
  # @return [Hash] Returns the value in the form of hash
293
287
  def _to_hash(value)
294
288
  if value.is_a?(Array)
295
- value.compact.map{ |v| _to_hash(v) }
289
+ value.compact.map { |v| _to_hash(v) }
296
290
  elsif value.is_a?(Hash)
297
291
  {}.tap do |hash|
298
292
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -303,7 +297,5 @@ module SignRequestClient
303
297
  value
304
298
  end
305
299
  end
306
-
307
300
  end
308
-
309
301
  end
@@ -6,32 +6,31 @@
6
6
  OpenAPI spec version: v1
7
7
  Contact: tech-support@signrequest.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module SignRequestClient
16
-
17
16
  class DocumentSearch
17
+ attr_accessor :uuid
18
+
19
+ attr_accessor :created
20
+
18
21
  # `co`: converting, `ne`: new, `se`: sent, `vi`: viewed, `si`: signed, `do`: downloaded, `sd`: signed and downloaded, `ca`: cancelled, `de`: declined, `ec`: error converting, `es`: error sending, `xp`: expired
19
22
  attr_accessor :status
20
23
 
24
+ attr_accessor :who
25
+
21
26
  # Defaults to filename
22
27
  attr_accessor :name
23
28
 
24
- attr_accessor :who
25
-
26
- attr_accessor :nr_extra_docs
29
+ attr_accessor :autocomplete
27
30
 
28
31
  attr_accessor :from_email
29
32
 
30
- attr_accessor :uuid
31
-
32
- attr_accessor :created
33
-
34
- attr_accessor :autocomplete
33
+ attr_accessor :nr_extra_docs
35
34
 
36
35
  attr_accessor :signer_emails
37
36
 
@@ -47,18 +46,17 @@ module SignRequestClient
47
46
 
48
47
  attr_accessor :subdomain
49
48
 
50
-
51
49
  # Attribute mapping from ruby-style variable name to JSON key.
52
50
  def self.attribute_map
53
51
  {
54
- :'status' => :'status',
55
- :'name' => :'name',
56
- :'who' => :'who',
57
- :'nr_extra_docs' => :'nr_extra_docs',
58
- :'from_email' => :'from_email',
59
52
  :'uuid' => :'uuid',
60
53
  :'created' => :'created',
54
+ :'status' => :'status',
55
+ :'who' => :'who',
56
+ :'name' => :'name',
61
57
  :'autocomplete' => :'autocomplete',
58
+ :'from_email' => :'from_email',
59
+ :'nr_extra_docs' => :'nr_extra_docs',
62
60
  :'signer_emails' => :'signer_emails',
63
61
  :'status_display' => :'status_display',
64
62
  :'created_timestamp' => :'created_timestamp',
@@ -72,14 +70,14 @@ module SignRequestClient
72
70
  # Attribute type mapping.
73
71
  def self.swagger_types
74
72
  {
75
- :'status' => :'String',
76
- :'name' => :'String',
77
- :'who' => :'String',
78
- :'nr_extra_docs' => :'Integer',
79
- :'from_email' => :'String',
80
73
  :'uuid' => :'String',
81
74
  :'created' => :'DateTime',
75
+ :'status' => :'String',
76
+ :'who' => :'String',
77
+ :'name' => :'String',
82
78
  :'autocomplete' => :'String',
79
+ :'from_email' => :'String',
80
+ :'nr_extra_docs' => :'Integer',
83
81
  :'signer_emails' => :'Array<String>',
84
82
  :'status_display' => :'String',
85
83
  :'created_timestamp' => :'Integer',
@@ -96,38 +94,38 @@ module SignRequestClient
96
94
  return unless attributes.is_a?(Hash)
97
95
 
98
96
  # convert string to symbol for hash key
99
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
97
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
100
98
 
101
- if attributes.has_key?(:'status')
102
- self.status = attributes[:'status']
99
+ if attributes.has_key?(:'uuid')
100
+ self.uuid = attributes[:'uuid']
103
101
  end
104
102
 
105
- if attributes.has_key?(:'name')
106
- self.name = attributes[:'name']
103
+ if attributes.has_key?(:'created')
104
+ self.created = attributes[:'created']
107
105
  end
108
106
 
109
- if attributes.has_key?(:'who')
110
- self.who = attributes[:'who']
107
+ if attributes.has_key?(:'status')
108
+ self.status = attributes[:'status']
111
109
  end
112
110
 
113
- if attributes.has_key?(:'nr_extra_docs')
114
- self.nr_extra_docs = attributes[:'nr_extra_docs']
111
+ if attributes.has_key?(:'who')
112
+ self.who = attributes[:'who']
115
113
  end
116
114
 
117
- if attributes.has_key?(:'from_email')
118
- self.from_email = attributes[:'from_email']
115
+ if attributes.has_key?(:'name')
116
+ self.name = attributes[:'name']
119
117
  end
120
118
 
121
- if attributes.has_key?(:'uuid')
122
- self.uuid = attributes[:'uuid']
119
+ if attributes.has_key?(:'autocomplete')
120
+ self.autocomplete = attributes[:'autocomplete']
123
121
  end
124
122
 
125
- if attributes.has_key?(:'created')
126
- self.created = attributes[:'created']
123
+ if attributes.has_key?(:'from_email')
124
+ self.from_email = attributes[:'from_email']
127
125
  end
128
126
 
129
- if attributes.has_key?(:'autocomplete')
130
- self.autocomplete = attributes[:'autocomplete']
127
+ if attributes.has_key?(:'nr_extra_docs')
128
+ self.nr_extra_docs = attributes[:'nr_extra_docs']
131
129
  end
132
130
 
133
131
  if attributes.has_key?(:'signer_emails')
@@ -159,177 +157,172 @@ module SignRequestClient
159
157
  if attributes.has_key?(:'subdomain')
160
158
  self.subdomain = attributes[:'subdomain']
161
159
  end
162
-
163
160
  end
164
161
 
165
162
  # Show invalid properties with the reasons. Usually used together with valid?
166
163
  # @return Array for valid properties with the reasons
167
164
  def list_invalid_properties
168
165
  invalid_properties = Array.new
169
- if !@status.nil? && @status.to_s.length > 2
170
- invalid_properties.push("invalid value for 'status', the character length must be smaller than or equal to 2.")
166
+ if !@uuid.nil? && @uuid.to_s.length < 1
167
+ invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
171
168
  end
172
169
 
173
- if !@status.nil? && @status.to_s.length < 1
174
- invalid_properties.push("invalid value for 'status', the character length must be great than or equal to 1.")
170
+ if !@status.nil? && @status.to_s.length > 2
171
+ invalid_properties.push('invalid value for "status", the character length must be smaller than or equal to 2.')
175
172
  end
176
173
 
177
- if !@name.nil? && @name.to_s.length < 1
178
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
174
+ if !@status.nil? && @status.to_s.length < 1
175
+ invalid_properties.push('invalid value for "status", the character length must be great than or equal to 1.')
179
176
  end
180
177
 
181
178
  if @who.nil?
182
- invalid_properties.push("invalid value for 'who', who cannot be nil.")
179
+ invalid_properties.push('invalid value for "who", who cannot be nil.')
183
180
  end
184
181
 
185
182
  if @who.to_s.length < 1
186
- invalid_properties.push("invalid value for 'who', the character length must be great than or equal to 1.")
183
+ invalid_properties.push('invalid value for "who", the character length must be great than or equal to 1.')
187
184
  end
188
185
 
189
- if @nr_extra_docs.nil?
190
- invalid_properties.push("invalid value for 'nr_extra_docs', nr_extra_docs cannot be nil.")
186
+ if !@name.nil? && @name.to_s.length < 1
187
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
191
188
  end
192
189
 
193
- if @from_email.nil?
194
- invalid_properties.push("invalid value for 'from_email', from_email cannot be nil.")
190
+ if @autocomplete.nil?
191
+ invalid_properties.push('invalid value for "autocomplete", autocomplete cannot be nil.')
195
192
  end
196
193
 
197
- if @from_email.to_s.length < 1
198
- invalid_properties.push("invalid value for 'from_email', the character length must be great than or equal to 1.")
194
+ if @autocomplete.to_s.length < 1
195
+ invalid_properties.push('invalid value for "autocomplete", the character length must be great than or equal to 1.')
199
196
  end
200
197
 
201
- if !@uuid.nil? && @uuid.to_s.length < 1
202
- invalid_properties.push("invalid value for 'uuid', the character length must be great than or equal to 1.")
198
+ if @from_email.nil?
199
+ invalid_properties.push('invalid value for "from_email", from_email cannot be nil.')
203
200
  end
204
201
 
205
- if @autocomplete.nil?
206
- invalid_properties.push("invalid value for 'autocomplete', autocomplete cannot be nil.")
202
+ if @from_email.to_s.length < 1
203
+ invalid_properties.push('invalid value for "from_email", the character length must be great than or equal to 1.')
207
204
  end
208
205
 
209
- if @autocomplete.to_s.length < 1
210
- invalid_properties.push("invalid value for 'autocomplete', the character length must be great than or equal to 1.")
206
+ if @nr_extra_docs.nil?
207
+ invalid_properties.push('invalid value for "nr_extra_docs", nr_extra_docs cannot be nil.')
211
208
  end
212
209
 
213
210
  if !@status_display.nil? && @status_display.to_s.length < 1
214
- invalid_properties.push("invalid value for 'status_display', the character length must be great than or equal to 1.")
211
+ invalid_properties.push('invalid value for "status_display", the character length must be great than or equal to 1.')
215
212
  end
216
213
 
217
214
  if !@parent_doc.nil? && @parent_doc.to_s.length < 1
218
- invalid_properties.push("invalid value for 'parent_doc', the character length must be great than or equal to 1.")
215
+ invalid_properties.push('invalid value for "parent_doc", the character length must be great than or equal to 1.')
219
216
  end
220
217
 
221
218
  if !@subdomain.nil? && @subdomain.to_s.length < 1
222
- invalid_properties.push("invalid value for 'subdomain', the character length must be great than or equal to 1.")
219
+ invalid_properties.push('invalid value for "subdomain", the character length must be great than or equal to 1.')
223
220
  end
224
221
 
225
- return invalid_properties
222
+ invalid_properties
226
223
  end
227
224
 
228
225
  # Check to see if the all the properties in the model are valid
229
226
  # @return true if the model is valid
230
227
  def valid?
228
+ return false if !@uuid.nil? && @uuid.to_s.length < 1
231
229
  return false if !@status.nil? && @status.to_s.length > 2
232
230
  return false if !@status.nil? && @status.to_s.length < 1
233
- return false if !@name.nil? && @name.to_s.length < 1
234
231
  return false if @who.nil?
235
232
  return false if @who.to_s.length < 1
236
- return false if @nr_extra_docs.nil?
237
- return false if @from_email.nil?
238
- return false if @from_email.to_s.length < 1
239
- return false if !@uuid.nil? && @uuid.to_s.length < 1
233
+ return false if !@name.nil? && @name.to_s.length < 1
240
234
  return false if @autocomplete.nil?
241
235
  return false if @autocomplete.to_s.length < 1
236
+ return false if @from_email.nil?
237
+ return false if @from_email.to_s.length < 1
238
+ return false if @nr_extra_docs.nil?
242
239
  return false if !@status_display.nil? && @status_display.to_s.length < 1
243
240
  return false if !@parent_doc.nil? && @parent_doc.to_s.length < 1
244
241
  return false if !@subdomain.nil? && @subdomain.to_s.length < 1
245
- return true
242
+ true
243
+ end
244
+
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] uuid Value to be assigned
247
+ def uuid=(uuid)
248
+ if !uuid.nil? && uuid.to_s.length < 1
249
+ fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
250
+ end
251
+
252
+ @uuid = uuid
246
253
  end
247
254
 
248
255
  # Custom attribute writer method with validation
249
256
  # @param [Object] status Value to be assigned
250
257
  def status=(status)
251
-
252
258
  if !status.nil? && status.to_s.length > 2
253
- fail ArgumentError, "invalid value for 'status', the character length must be smaller than or equal to 2."
259
+ fail ArgumentError, 'invalid value for "status", the character length must be smaller than or equal to 2.'
254
260
  end
255
261
 
256
262
  if !status.nil? && status.to_s.length < 1
257
- fail ArgumentError, "invalid value for 'status', the character length must be great than or equal to 1."
263
+ fail ArgumentError, 'invalid value for "status", the character length must be great than or equal to 1.'
258
264
  end
259
265
 
260
266
  @status = status
261
267
  end
262
268
 
263
- # Custom attribute writer method with validation
264
- # @param [Object] name Value to be assigned
265
- def name=(name)
266
-
267
- if !name.nil? && name.to_s.length < 1
268
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
269
- end
270
-
271
- @name = name
272
- end
273
-
274
269
  # Custom attribute writer method with validation
275
270
  # @param [Object] who Value to be assigned
276
271
  def who=(who)
277
272
  if who.nil?
278
- fail ArgumentError, "who cannot be nil"
273
+ fail ArgumentError, 'who cannot be nil'
279
274
  end
280
275
 
281
276
  if who.to_s.length < 1
282
- fail ArgumentError, "invalid value for 'who', the character length must be great than or equal to 1."
277
+ fail ArgumentError, 'invalid value for "who", the character length must be great than or equal to 1.'
283
278
  end
284
279
 
285
280
  @who = who
286
281
  end
287
282
 
288
283
  # Custom attribute writer method with validation
289
- # @param [Object] from_email Value to be assigned
290
- def from_email=(from_email)
291
- if from_email.nil?
292
- fail ArgumentError, "from_email cannot be nil"
293
- end
294
-
295
- if from_email.to_s.length < 1
296
- fail ArgumentError, "invalid value for 'from_email', the character length must be great than or equal to 1."
284
+ # @param [Object] name Value to be assigned
285
+ def name=(name)
286
+ if !name.nil? && name.to_s.length < 1
287
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
297
288
  end
298
289
 
299
- @from_email = from_email
290
+ @name = name
300
291
  end
301
292
 
302
293
  # Custom attribute writer method with validation
303
- # @param [Object] uuid Value to be assigned
304
- def uuid=(uuid)
294
+ # @param [Object] autocomplete Value to be assigned
295
+ def autocomplete=(autocomplete)
296
+ if autocomplete.nil?
297
+ fail ArgumentError, 'autocomplete cannot be nil'
298
+ end
305
299
 
306
- if !uuid.nil? && uuid.to_s.length < 1
307
- fail ArgumentError, "invalid value for 'uuid', the character length must be great than or equal to 1."
300
+ if autocomplete.to_s.length < 1
301
+ fail ArgumentError, 'invalid value for "autocomplete", the character length must be great than or equal to 1.'
308
302
  end
309
303
 
310
- @uuid = uuid
304
+ @autocomplete = autocomplete
311
305
  end
312
306
 
313
307
  # Custom attribute writer method with validation
314
- # @param [Object] autocomplete Value to be assigned
315
- def autocomplete=(autocomplete)
316
- if autocomplete.nil?
317
- fail ArgumentError, "autocomplete cannot be nil"
308
+ # @param [Object] from_email Value to be assigned
309
+ def from_email=(from_email)
310
+ if from_email.nil?
311
+ fail ArgumentError, 'from_email cannot be nil'
318
312
  end
319
313
 
320
- if autocomplete.to_s.length < 1
321
- fail ArgumentError, "invalid value for 'autocomplete', the character length must be great than or equal to 1."
314
+ if from_email.to_s.length < 1
315
+ fail ArgumentError, 'invalid value for "from_email", the character length must be great than or equal to 1.'
322
316
  end
323
317
 
324
- @autocomplete = autocomplete
318
+ @from_email = from_email
325
319
  end
326
320
 
327
321
  # Custom attribute writer method with validation
328
322
  # @param [Object] status_display Value to be assigned
329
323
  def status_display=(status_display)
330
-
331
324
  if !status_display.nil? && status_display.to_s.length < 1
332
- fail ArgumentError, "invalid value for 'status_display', the character length must be great than or equal to 1."
325
+ fail ArgumentError, 'invalid value for "status_display", the character length must be great than or equal to 1.'
333
326
  end
334
327
 
335
328
  @status_display = status_display
@@ -338,9 +331,8 @@ module SignRequestClient
338
331
  # Custom attribute writer method with validation
339
332
  # @param [Object] parent_doc Value to be assigned
340
333
  def parent_doc=(parent_doc)
341
-
342
334
  if !parent_doc.nil? && parent_doc.to_s.length < 1
343
- fail ArgumentError, "invalid value for 'parent_doc', the character length must be great than or equal to 1."
335
+ fail ArgumentError, 'invalid value for "parent_doc", the character length must be great than or equal to 1.'
344
336
  end
345
337
 
346
338
  @parent_doc = parent_doc
@@ -349,9 +341,8 @@ module SignRequestClient
349
341
  # Custom attribute writer method with validation
350
342
  # @param [Object] subdomain Value to be assigned
351
343
  def subdomain=(subdomain)
352
-
353
344
  if !subdomain.nil? && subdomain.to_s.length < 1
354
- fail ArgumentError, "invalid value for 'subdomain', the character length must be great than or equal to 1."
345
+ fail ArgumentError, 'invalid value for "subdomain", the character length must be great than or equal to 1.'
355
346
  end
356
347
 
357
348
  @subdomain = subdomain
@@ -362,14 +353,14 @@ module SignRequestClient
362
353
  def ==(o)
363
354
  return true if self.equal?(o)
364
355
  self.class == o.class &&
365
- status == o.status &&
366
- name == o.name &&
367
- who == o.who &&
368
- nr_extra_docs == o.nr_extra_docs &&
369
- from_email == o.from_email &&
370
356
  uuid == o.uuid &&
371
357
  created == o.created &&
358
+ status == o.status &&
359
+ who == o.who &&
360
+ name == o.name &&
372
361
  autocomplete == o.autocomplete &&
362
+ from_email == o.from_email &&
363
+ nr_extra_docs == o.nr_extra_docs &&
373
364
  signer_emails == o.signer_emails &&
374
365
  status_display == o.status_display &&
375
366
  created_timestamp == o.created_timestamp &&
@@ -388,7 +379,7 @@ module SignRequestClient
388
379
  # Calculates hash code according to all attributes.
389
380
  # @return [Fixnum] Hash code
390
381
  def hash
391
- [status, name, who, nr_extra_docs, from_email, uuid, created, autocomplete, signer_emails, status_display, created_timestamp, finished_on_timestamp, parent_doc, finished_on, subdomain].hash
382
+ [uuid, created, status, who, name, autocomplete, from_email, nr_extra_docs, signer_emails, status_display, created_timestamp, finished_on_timestamp, parent_doc, finished_on, subdomain].hash
392
383
  end
393
384
 
394
385
  # Builds the object from hash
@@ -401,7 +392,7 @@ module SignRequestClient
401
392
  # check to ensure the input is an array given that the the attribute
402
393
  # is documented as an array but the input is not
403
394
  if attributes[self.class.attribute_map[key]].is_a?(Array)
404
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
395
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
405
396
  end
406
397
  elsif !attributes[self.class.attribute_map[key]].nil?
407
398
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -483,7 +474,7 @@ module SignRequestClient
483
474
  # @return [Hash] Returns the value in the form of hash
484
475
  def _to_hash(value)
485
476
  if value.is_a?(Array)
486
- value.compact.map{ |v| _to_hash(v) }
477
+ value.compact.map { |v| _to_hash(v) }
487
478
  elsif value.is_a?(Hash)
488
479
  {}.tap do |hash|
489
480
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -494,7 +485,5 @@ module SignRequestClient
494
485
  value
495
486
  end
496
487
  end
497
-
498
488
  end
499
-
500
489
  end