signrequest_client 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,14 +6,13 @@
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 TeamMember
18
17
  attr_accessor :uuid
19
18
 
@@ -21,19 +20,21 @@ module SignRequestClient
21
20
 
22
21
  attr_accessor :user
23
22
 
23
+ attr_accessor :team
24
+
24
25
  attr_accessor :is_admin
25
26
 
26
27
  attr_accessor :is_active
27
28
 
28
29
  attr_accessor :is_owner
29
30
 
30
-
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
34
  :'uuid' => :'uuid',
35
35
  :'url' => :'url',
36
36
  :'user' => :'user',
37
+ :'team' => :'team',
37
38
  :'is_admin' => :'is_admin',
38
39
  :'is_active' => :'is_active',
39
40
  :'is_owner' => :'is_owner'
@@ -46,6 +47,7 @@ module SignRequestClient
46
47
  :'uuid' => :'String',
47
48
  :'url' => :'String',
48
49
  :'user' => :'User',
50
+ :'team' => :'DocumentTeam',
49
51
  :'is_admin' => :'BOOLEAN',
50
52
  :'is_active' => :'BOOLEAN',
51
53
  :'is_owner' => :'BOOLEAN'
@@ -58,7 +60,7 @@ module SignRequestClient
58
60
  return unless attributes.is_a?(Hash)
59
61
 
60
62
  # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
63
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
64
 
63
65
  if attributes.has_key?(:'uuid')
64
66
  self.uuid = attributes[:'uuid']
@@ -72,6 +74,10 @@ module SignRequestClient
72
74
  self.user = attributes[:'user']
73
75
  end
74
76
 
77
+ if attributes.has_key?(:'team')
78
+ self.team = attributes[:'team']
79
+ end
80
+
75
81
  if attributes.has_key?(:'is_admin')
76
82
  self.is_admin = attributes[:'is_admin']
77
83
  end
@@ -83,7 +89,6 @@ module SignRequestClient
83
89
  if attributes.has_key?(:'is_owner')
84
90
  self.is_owner = attributes[:'is_owner']
85
91
  end
86
-
87
92
  end
88
93
 
89
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,25 +96,24 @@ module SignRequestClient
91
96
  def list_invalid_properties
92
97
  invalid_properties = Array.new
93
98
  if !@uuid.nil? && @uuid.to_s.length < 1
94
- invalid_properties.push("invalid value for 'uuid', the character length must be great than or equal to 1.")
99
+ invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
95
100
  end
96
101
 
97
- return invalid_properties
102
+ invalid_properties
98
103
  end
99
104
 
100
105
  # Check to see if the all the properties in the model are valid
101
106
  # @return true if the model is valid
102
107
  def valid?
103
108
  return false if !@uuid.nil? && @uuid.to_s.length < 1
104
- return true
109
+ true
105
110
  end
106
111
 
107
112
  # Custom attribute writer method with validation
108
113
  # @param [Object] uuid Value to be assigned
109
114
  def uuid=(uuid)
110
-
111
115
  if !uuid.nil? && uuid.to_s.length < 1
112
- fail ArgumentError, "invalid value for 'uuid', the character length must be great than or equal to 1."
116
+ fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
113
117
  end
114
118
 
115
119
  @uuid = uuid
@@ -123,6 +127,7 @@ module SignRequestClient
123
127
  uuid == o.uuid &&
124
128
  url == o.url &&
125
129
  user == o.user &&
130
+ team == o.team &&
126
131
  is_admin == o.is_admin &&
127
132
  is_active == o.is_active &&
128
133
  is_owner == o.is_owner
@@ -137,7 +142,7 @@ module SignRequestClient
137
142
  # Calculates hash code according to all attributes.
138
143
  # @return [Fixnum] Hash code
139
144
  def hash
140
- [uuid, url, user, is_admin, is_active, is_owner].hash
145
+ [uuid, url, user, team, is_admin, is_active, is_owner].hash
141
146
  end
142
147
 
143
148
  # Builds the object from hash
@@ -150,7 +155,7 @@ module SignRequestClient
150
155
  # check to ensure the input is an array given that the the attribute
151
156
  # is documented as an array but the input is not
152
157
  if attributes[self.class.attribute_map[key]].is_a?(Array)
153
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
158
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
159
  end
155
160
  elsif !attributes[self.class.attribute_map[key]].nil?
156
161
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -232,7 +237,7 @@ module SignRequestClient
232
237
  # @return [Hash] Returns the value in the form of hash
233
238
  def _to_hash(value)
234
239
  if value.is_a?(Array)
235
- value.compact.map{ |v| _to_hash(v) }
240
+ value.compact.map { |v| _to_hash(v) }
236
241
  elsif value.is_a?(Hash)
237
242
  {}.tap do |hash|
238
243
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -243,7 +248,5 @@ module SignRequestClient
243
248
  value
244
249
  end
245
250
  end
246
-
247
251
  end
248
-
249
252
  end
@@ -6,14 +6,13 @@
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 Template
18
17
  attr_accessor :url
19
18
 
@@ -24,6 +23,8 @@ module SignRequestClient
24
23
 
25
24
  attr_accessor :user
26
25
 
26
+ attr_accessor :team
27
+
27
28
  # `m`: only me, `mo`: me and others, `o`: only others
28
29
  attr_accessor :who
29
30
 
@@ -58,6 +59,7 @@ module SignRequestClient
58
59
  :'name' => :'name',
59
60
  :'uuid' => :'uuid',
60
61
  :'user' => :'user',
62
+ :'team' => :'team',
61
63
  :'who' => :'who',
62
64
  :'signers' => :'signers'
63
65
  }
@@ -70,6 +72,7 @@ module SignRequestClient
70
72
  :'name' => :'String',
71
73
  :'uuid' => :'String',
72
74
  :'user' => :'User',
75
+ :'team' => :'DocumentTeam',
73
76
  :'who' => :'String',
74
77
  :'signers' => :'Array<DocumentSignerTemplateConf>'
75
78
  }
@@ -81,7 +84,7 @@ module SignRequestClient
81
84
  return unless attributes.is_a?(Hash)
82
85
 
83
86
  # convert string to symbol for hash key
84
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
87
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
85
88
 
86
89
  if attributes.has_key?(:'url')
87
90
  self.url = attributes[:'url']
@@ -99,6 +102,10 @@ module SignRequestClient
99
102
  self.user = attributes[:'user']
100
103
  end
101
104
 
105
+ if attributes.has_key?(:'team')
106
+ self.team = attributes[:'team']
107
+ end
108
+
102
109
  if attributes.has_key?(:'who')
103
110
  self.who = attributes[:'who']
104
111
  end
@@ -108,7 +115,6 @@ module SignRequestClient
108
115
  self.signers = value
109
116
  end
110
117
  end
111
-
112
118
  end
113
119
 
114
120
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,14 +122,14 @@ module SignRequestClient
116
122
  def list_invalid_properties
117
123
  invalid_properties = Array.new
118
124
  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.")
125
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
120
126
  end
121
127
 
122
128
  if !@uuid.nil? && @uuid.to_s.length < 1
123
- invalid_properties.push("invalid value for 'uuid', the character length must be great than or equal to 1.")
129
+ invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
124
130
  end
125
131
 
126
- return invalid_properties
132
+ invalid_properties
127
133
  end
128
134
 
129
135
  # Check to see if the all the properties in the model are valid
@@ -131,17 +137,16 @@ module SignRequestClient
131
137
  def valid?
132
138
  return false if !@name.nil? && @name.to_s.length < 1
133
139
  return false if !@uuid.nil? && @uuid.to_s.length < 1
134
- who_validator = EnumAttributeValidator.new('String', ["m", "mo", "o"])
140
+ who_validator = EnumAttributeValidator.new('String', ['m', 'mo', 'o'])
135
141
  return false unless who_validator.valid?(@who)
136
- return true
142
+ true
137
143
  end
138
144
 
139
145
  # Custom attribute writer method with validation
140
146
  # @param [Object] name Value to be assigned
141
147
  def name=(name)
142
-
143
148
  if !name.nil? && name.to_s.length < 1
144
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
149
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
145
150
  end
146
151
 
147
152
  @name = name
@@ -150,9 +155,8 @@ module SignRequestClient
150
155
  # Custom attribute writer method with validation
151
156
  # @param [Object] uuid Value to be assigned
152
157
  def uuid=(uuid)
153
-
154
158
  if !uuid.nil? && uuid.to_s.length < 1
155
- fail ArgumentError, "invalid value for 'uuid', the character length must be great than or equal to 1."
159
+ fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
156
160
  end
157
161
 
158
162
  @uuid = uuid
@@ -161,9 +165,9 @@ module SignRequestClient
161
165
  # Custom attribute writer method checking allowed values (enum).
162
166
  # @param [Object] who Object to be assigned
163
167
  def who=(who)
164
- validator = EnumAttributeValidator.new('String', ["m", "mo", "o"])
168
+ validator = EnumAttributeValidator.new('String', ['m', 'mo', 'o'])
165
169
  unless validator.valid?(who)
166
- fail ArgumentError, "invalid value for 'who', must be one of #{validator.allowable_values}."
170
+ fail ArgumentError, 'invalid value for "who", must be one of #{validator.allowable_values}.'
167
171
  end
168
172
  @who = who
169
173
  end
@@ -177,6 +181,7 @@ module SignRequestClient
177
181
  name == o.name &&
178
182
  uuid == o.uuid &&
179
183
  user == o.user &&
184
+ team == o.team &&
180
185
  who == o.who &&
181
186
  signers == o.signers
182
187
  end
@@ -190,7 +195,7 @@ module SignRequestClient
190
195
  # Calculates hash code according to all attributes.
191
196
  # @return [Fixnum] Hash code
192
197
  def hash
193
- [url, name, uuid, user, who, signers].hash
198
+ [url, name, uuid, user, team, who, signers].hash
194
199
  end
195
200
 
196
201
  # Builds the object from hash
@@ -203,7 +208,7 @@ module SignRequestClient
203
208
  # check to ensure the input is an array given that the the attribute
204
209
  # is documented as an array but the input is not
205
210
  if attributes[self.class.attribute_map[key]].is_a?(Array)
206
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
211
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
207
212
  end
208
213
  elsif !attributes[self.class.attribute_map[key]].nil?
209
214
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -285,7 +290,7 @@ module SignRequestClient
285
290
  # @return [Hash] Returns the value in the form of hash
286
291
  def _to_hash(value)
287
292
  if value.is_a?(Array)
288
- value.compact.map{ |v| _to_hash(v) }
293
+ value.compact.map { |v| _to_hash(v) }
289
294
  elsif value.is_a?(Hash)
290
295
  {}.tap do |hash|
291
296
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -296,7 +301,5 @@ module SignRequestClient
296
301
  value
297
302
  end
298
303
  end
299
-
300
304
  end
301
-
302
305
  end
@@ -6,14 +6,13 @@
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 User
18
17
  attr_accessor :email
19
18
 
@@ -23,7 +22,6 @@ module SignRequestClient
23
22
 
24
23
  attr_accessor :display_name
25
24
 
26
-
27
25
  # Attribute mapping from ruby-style variable name to JSON key.
28
26
  def self.attribute_map
29
27
  {
@@ -50,7 +48,7 @@ module SignRequestClient
50
48
  return unless attributes.is_a?(Hash)
51
49
 
52
50
  # convert string to symbol for hash key
53
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
52
 
55
53
  if attributes.has_key?(:'email')
56
54
  self.email = attributes[:'email']
@@ -67,7 +65,6 @@ module SignRequestClient
67
65
  if attributes.has_key?(:'display_name')
68
66
  self.display_name = attributes[:'display_name']
69
67
  end
70
-
71
68
  end
72
69
 
73
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -75,30 +72,30 @@ module SignRequestClient
75
72
  def list_invalid_properties
76
73
  invalid_properties = Array.new
77
74
  if @email.nil?
78
- invalid_properties.push("invalid value for 'email', email cannot be nil.")
75
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
79
76
  end
80
77
 
81
78
  if @email.to_s.length > 254
82
- invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 254.")
79
+ invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 254.')
83
80
  end
84
81
 
85
82
  if @email.to_s.length < 1
86
- invalid_properties.push("invalid value for 'email', the character length must be great than or equal to 1.")
83
+ invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
87
84
  end
88
85
 
89
86
  if !@first_name.nil? && @first_name.to_s.length > 255
90
- invalid_properties.push("invalid value for 'first_name', the character length must be smaller than or equal to 255.")
87
+ invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 255.')
91
88
  end
92
89
 
93
90
  if !@last_name.nil? && @last_name.to_s.length > 255
94
- invalid_properties.push("invalid value for 'last_name', the character length must be smaller than or equal to 255.")
91
+ invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 255.')
95
92
  end
96
93
 
97
94
  if !@display_name.nil? && @display_name.to_s.length < 1
98
- invalid_properties.push("invalid value for 'display_name', the character length must be great than or equal to 1.")
95
+ invalid_properties.push('invalid value for "display_name", the character length must be great than or equal to 1.')
99
96
  end
100
97
 
101
- return invalid_properties
98
+ invalid_properties
102
99
  end
103
100
 
104
101
  # Check to see if the all the properties in the model are valid
@@ -110,22 +107,22 @@ module SignRequestClient
110
107
  return false if !@first_name.nil? && @first_name.to_s.length > 255
111
108
  return false if !@last_name.nil? && @last_name.to_s.length > 255
112
109
  return false if !@display_name.nil? && @display_name.to_s.length < 1
113
- return true
110
+ true
114
111
  end
115
112
 
116
113
  # Custom attribute writer method with validation
117
114
  # @param [Object] email Value to be assigned
118
115
  def email=(email)
119
116
  if email.nil?
120
- fail ArgumentError, "email cannot be nil"
117
+ fail ArgumentError, 'email cannot be nil'
121
118
  end
122
119
 
123
120
  if email.to_s.length > 254
124
- fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 254."
121
+ fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 254.'
125
122
  end
126
123
 
127
124
  if email.to_s.length < 1
128
- fail ArgumentError, "invalid value for 'email', the character length must be great than or equal to 1."
125
+ fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
129
126
  end
130
127
 
131
128
  @email = email
@@ -134,9 +131,8 @@ module SignRequestClient
134
131
  # Custom attribute writer method with validation
135
132
  # @param [Object] first_name Value to be assigned
136
133
  def first_name=(first_name)
137
-
138
134
  if !first_name.nil? && first_name.to_s.length > 255
139
- fail ArgumentError, "invalid value for 'first_name', the character length must be smaller than or equal to 255."
135
+ fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 255.'
140
136
  end
141
137
 
142
138
  @first_name = first_name
@@ -145,9 +141,8 @@ module SignRequestClient
145
141
  # Custom attribute writer method with validation
146
142
  # @param [Object] last_name Value to be assigned
147
143
  def last_name=(last_name)
148
-
149
144
  if !last_name.nil? && last_name.to_s.length > 255
150
- fail ArgumentError, "invalid value for 'last_name', the character length must be smaller than or equal to 255."
145
+ fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 255.'
151
146
  end
152
147
 
153
148
  @last_name = last_name
@@ -156,9 +151,8 @@ module SignRequestClient
156
151
  # Custom attribute writer method with validation
157
152
  # @param [Object] display_name Value to be assigned
158
153
  def display_name=(display_name)
159
-
160
154
  if !display_name.nil? && display_name.to_s.length < 1
161
- fail ArgumentError, "invalid value for 'display_name', the character length must be great than or equal to 1."
155
+ fail ArgumentError, 'invalid value for "display_name", the character length must be great than or equal to 1.'
162
156
  end
163
157
 
164
158
  @display_name = display_name
@@ -197,7 +191,7 @@ module SignRequestClient
197
191
  # check to ensure the input is an array given that the the attribute
198
192
  # is documented as an array but the input is not
199
193
  if attributes[self.class.attribute_map[key]].is_a?(Array)
200
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
194
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
201
195
  end
202
196
  elsif !attributes[self.class.attribute_map[key]].nil?
203
197
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -279,7 +273,7 @@ module SignRequestClient
279
273
  # @return [Hash] Returns the value in the form of hash
280
274
  def _to_hash(value)
281
275
  if value.is_a?(Array)
282
- value.compact.map{ |v| _to_hash(v) }
276
+ value.compact.map { |v| _to_hash(v) }
283
277
  elsif value.is_a?(Hash)
284
278
  {}.tap do |hash|
285
279
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -290,7 +284,5 @@ module SignRequestClient
290
284
  value
291
285
  end
292
286
  end
293
-
294
287
  end
295
-
296
288
  end