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 InlineTeam
18
17
  attr_accessor :name
19
18
 
@@ -21,7 +20,6 @@ module SignRequestClient
21
20
 
22
21
  attr_accessor :url
23
22
 
24
-
25
23
  # Attribute mapping from ruby-style variable name to JSON key.
26
24
  def self.attribute_map
27
25
  {
@@ -46,7 +44,7 @@ module SignRequestClient
46
44
  return unless attributes.is_a?(Hash)
47
45
 
48
46
  # convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
48
 
51
49
  if attributes.has_key?(:'name')
52
50
  self.name = attributes[:'name']
@@ -59,7 +57,6 @@ module SignRequestClient
59
57
  if attributes.has_key?(:'url')
60
58
  self.url = attributes[:'url']
61
59
  end
62
-
63
60
  end
64
61
 
65
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -67,18 +64,18 @@ module SignRequestClient
67
64
  def list_invalid_properties
68
65
  invalid_properties = Array.new
69
66
  if !@name.nil? && @name.to_s.length < 1
70
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
67
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
71
68
  end
72
69
 
73
70
  if !@subdomain.nil? && @subdomain.to_s.length < 1
74
- invalid_properties.push("invalid value for 'subdomain', the character length must be great than or equal to 1.")
71
+ invalid_properties.push('invalid value for "subdomain", the character length must be great than or equal to 1.')
75
72
  end
76
73
 
77
74
  if !@subdomain.nil? && @subdomain !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
78
- invalid_properties.push("invalid value for 'subdomain', must conform to the pattern /^[-a-zA-Z0-9_]+$/.")
75
+ invalid_properties.push('invalid value for "subdomain", must conform to the pattern /^[-a-zA-Z0-9_]+$/.')
79
76
  end
80
77
 
81
- return invalid_properties
78
+ invalid_properties
82
79
  end
83
80
 
84
81
  # Check to see if the all the properties in the model are valid
@@ -87,15 +84,14 @@ module SignRequestClient
87
84
  return false if !@name.nil? && @name.to_s.length < 1
88
85
  return false if !@subdomain.nil? && @subdomain.to_s.length < 1
89
86
  return false if !@subdomain.nil? && @subdomain !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
90
- return true
87
+ true
91
88
  end
92
89
 
93
90
  # Custom attribute writer method with validation
94
91
  # @param [Object] name Value to be assigned
95
92
  def name=(name)
96
-
97
93
  if !name.nil? && name.to_s.length < 1
98
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
94
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
99
95
  end
100
96
 
101
97
  @name = name
@@ -104,13 +100,12 @@ module SignRequestClient
104
100
  # Custom attribute writer method with validation
105
101
  # @param [Object] subdomain Value to be assigned
106
102
  def subdomain=(subdomain)
107
-
108
103
  if !subdomain.nil? && subdomain.to_s.length < 1
109
- fail ArgumentError, "invalid value for 'subdomain', the character length must be great than or equal to 1."
104
+ fail ArgumentError, 'invalid value for "subdomain", the character length must be great than or equal to 1.'
110
105
  end
111
106
 
112
107
  if !subdomain.nil? && subdomain !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
113
- fail ArgumentError, "invalid value for 'subdomain', must conform to the pattern /^[-a-zA-Z0-9_]+$/."
108
+ fail ArgumentError, 'invalid value for "subdomain", must conform to the pattern /^[-a-zA-Z0-9_]+$/.'
114
109
  end
115
110
 
116
111
  @subdomain = subdomain
@@ -148,7 +143,7 @@ module SignRequestClient
148
143
  # check to ensure the input is an array given that the the attribute
149
144
  # is documented as an array but the input is not
150
145
  if attributes[self.class.attribute_map[key]].is_a?(Array)
151
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
146
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
152
147
  end
153
148
  elsif !attributes[self.class.attribute_map[key]].nil?
154
149
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -230,7 +225,7 @@ module SignRequestClient
230
225
  # @return [Hash] Returns the value in the form of hash
231
226
  def _to_hash(value)
232
227
  if value.is_a?(Array)
233
- value.compact.map{ |v| _to_hash(v) }
228
+ value.compact.map { |v| _to_hash(v) }
234
229
  elsif value.is_a?(Hash)
235
230
  {}.tap do |hash|
236
231
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -241,7 +236,5 @@ module SignRequestClient
241
236
  value
242
237
  end
243
238
  end
244
-
245
239
  end
246
-
247
240
  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 InlineTeamMember
18
17
  attr_accessor :uuid
19
18
 
@@ -27,7 +26,6 @@ module SignRequestClient
27
26
 
28
27
  attr_accessor :is_owner
29
28
 
30
-
31
29
  # Attribute mapping from ruby-style variable name to JSON key.
32
30
  def self.attribute_map
33
31
  {
@@ -58,7 +56,7 @@ module SignRequestClient
58
56
  return unless attributes.is_a?(Hash)
59
57
 
60
58
  # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
60
 
63
61
  if attributes.has_key?(:'uuid')
64
62
  self.uuid = attributes[:'uuid']
@@ -83,7 +81,6 @@ module SignRequestClient
83
81
  if attributes.has_key?(:'is_owner')
84
82
  self.is_owner = attributes[:'is_owner']
85
83
  end
86
-
87
84
  end
88
85
 
89
86
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,25 +88,24 @@ module SignRequestClient
91
88
  def list_invalid_properties
92
89
  invalid_properties = Array.new
93
90
  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.")
91
+ invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
95
92
  end
96
93
 
97
- return invalid_properties
94
+ invalid_properties
98
95
  end
99
96
 
100
97
  # Check to see if the all the properties in the model are valid
101
98
  # @return true if the model is valid
102
99
  def valid?
103
100
  return false if !@uuid.nil? && @uuid.to_s.length < 1
104
- return true
101
+ true
105
102
  end
106
103
 
107
104
  # Custom attribute writer method with validation
108
105
  # @param [Object] uuid Value to be assigned
109
106
  def uuid=(uuid)
110
-
111
107
  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."
108
+ fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
113
109
  end
114
110
 
115
111
  @uuid = uuid
@@ -150,7 +146,7 @@ module SignRequestClient
150
146
  # check to ensure the input is an array given that the the attribute
151
147
  # is documented as an array but the input is not
152
148
  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) } )
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
150
  end
155
151
  elsif !attributes[self.class.attribute_map[key]].nil?
156
152
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -232,7 +228,7 @@ module SignRequestClient
232
228
  # @return [Hash] Returns the value in the form of hash
233
229
  def _to_hash(value)
234
230
  if value.is_a?(Array)
235
- value.compact.map{ |v| _to_hash(v) }
231
+ value.compact.map { |v| _to_hash(v) }
236
232
  elsif value.is_a?(Hash)
237
233
  {}.tap do |hash|
238
234
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -243,7 +239,5 @@ module SignRequestClient
243
239
  value
244
240
  end
245
241
  end
246
-
247
242
  end
248
-
249
243
  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 InviteMember
18
17
  attr_accessor :email
19
18
 
@@ -21,7 +20,6 @@ module SignRequestClient
21
20
 
22
21
  attr_accessor :is_owner
23
22
 
24
-
25
23
  # Attribute mapping from ruby-style variable name to JSON key.
26
24
  def self.attribute_map
27
25
  {
@@ -46,7 +44,7 @@ module SignRequestClient
46
44
  return unless attributes.is_a?(Hash)
47
45
 
48
46
  # convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
48
 
51
49
  if attributes.has_key?(:'email')
52
50
  self.email = attributes[:'email']
@@ -63,7 +61,6 @@ module SignRequestClient
63
61
  else
64
62
  self.is_owner = false
65
63
  end
66
-
67
64
  end
68
65
 
69
66
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -71,14 +68,14 @@ module SignRequestClient
71
68
  def list_invalid_properties
72
69
  invalid_properties = Array.new
73
70
  if @email.nil?
74
- invalid_properties.push("invalid value for 'email', email cannot be nil.")
71
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
75
72
  end
76
73
 
77
74
  if @email.to_s.length < 1
78
- invalid_properties.push("invalid value for 'email', the character length must be great than or equal to 1.")
75
+ invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
79
76
  end
80
77
 
81
- return invalid_properties
78
+ invalid_properties
82
79
  end
83
80
 
84
81
  # Check to see if the all the properties in the model are valid
@@ -86,18 +83,18 @@ module SignRequestClient
86
83
  def valid?
87
84
  return false if @email.nil?
88
85
  return false if @email.to_s.length < 1
89
- return true
86
+ true
90
87
  end
91
88
 
92
89
  # Custom attribute writer method with validation
93
90
  # @param [Object] email Value to be assigned
94
91
  def email=(email)
95
92
  if email.nil?
96
- fail ArgumentError, "email cannot be nil"
93
+ fail ArgumentError, 'email cannot be nil'
97
94
  end
98
95
 
99
96
  if email.to_s.length < 1
100
- fail ArgumentError, "invalid value for 'email', the character length must be great than or equal to 1."
97
+ fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
101
98
  end
102
99
 
103
100
  @email = email
@@ -135,7 +132,7 @@ module SignRequestClient
135
132
  # check to ensure the input is an array given that the the attribute
136
133
  # is documented as an array but the input is not
137
134
  if attributes[self.class.attribute_map[key]].is_a?(Array)
138
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
135
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
136
  end
140
137
  elsif !attributes[self.class.attribute_map[key]].nil?
141
138
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -217,7 +214,7 @@ module SignRequestClient
217
214
  # @return [Hash] Returns the value in the form of hash
218
215
  def _to_hash(value)
219
216
  if value.is_a?(Array)
220
- value.compact.map{ |v| _to_hash(v) }
217
+ value.compact.map { |v| _to_hash(v) }
221
218
  elsif value.is_a?(Hash)
222
219
  {}.tap do |hash|
223
220
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -228,7 +225,5 @@ module SignRequestClient
228
225
  value
229
226
  end
230
227
  end
231
-
232
228
  end
233
-
234
229
  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 Placeholder
18
17
  attr_accessor :uuid
19
18
 
@@ -87,7 +86,7 @@ module SignRequestClient
87
86
  return unless attributes.is_a?(Hash)
88
87
 
89
88
  # convert string to symbol for hash key
90
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
89
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
91
90
 
92
91
  if attributes.has_key?(:'uuid')
93
92
  self.uuid = attributes[:'uuid']
@@ -120,7 +119,6 @@ module SignRequestClient
120
119
  if attributes.has_key?(:'external_id')
121
120
  self.external_id = attributes[:'external_id']
122
121
  end
123
-
124
122
  end
125
123
 
126
124
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,42 +126,41 @@ module SignRequestClient
128
126
  def list_invalid_properties
129
127
  invalid_properties = Array.new
130
128
  if !@uuid.nil? && @uuid.to_s.length < 1
131
- 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.')
132
130
  end
133
131
 
134
132
  if @page_index.nil?
135
- invalid_properties.push("invalid value for 'page_index', page_index cannot be nil.")
133
+ invalid_properties.push('invalid value for "page_index", page_index cannot be nil.')
136
134
  end
137
135
 
138
136
  if @prefill.nil?
139
- invalid_properties.push("invalid value for 'prefill', prefill cannot be nil.")
137
+ invalid_properties.push('invalid value for "prefill", prefill cannot be nil.')
140
138
  end
141
139
 
142
140
  if !@external_id.nil? && @external_id.to_s.length > 255
143
- invalid_properties.push("invalid value for 'external_id', the character length must be smaller than or equal to 255.")
141
+ invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 255.')
144
142
  end
145
143
 
146
- return invalid_properties
144
+ invalid_properties
147
145
  end
148
146
 
149
147
  # Check to see if the all the properties in the model are valid
150
148
  # @return true if the model is valid
151
149
  def valid?
152
150
  return false if !@uuid.nil? && @uuid.to_s.length < 1
153
- type_validator = EnumAttributeValidator.new('String', ["s", "i", "n", "d", "t", "c"])
151
+ type_validator = EnumAttributeValidator.new('String', ['s', 'i', 'n', 'd', 't', 'c'])
154
152
  return false unless type_validator.valid?(@type)
155
153
  return false if @page_index.nil?
156
154
  return false if @prefill.nil?
157
155
  return false if !@external_id.nil? && @external_id.to_s.length > 255
158
- return true
156
+ true
159
157
  end
160
158
 
161
159
  # Custom attribute writer method with validation
162
160
  # @param [Object] uuid Value to be assigned
163
161
  def uuid=(uuid)
164
-
165
162
  if !uuid.nil? && uuid.to_s.length < 1
166
- fail ArgumentError, "invalid value for 'uuid', the character length must be great than or equal to 1."
163
+ fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
167
164
  end
168
165
 
169
166
  @uuid = uuid
@@ -172,9 +169,9 @@ module SignRequestClient
172
169
  # Custom attribute writer method checking allowed values (enum).
173
170
  # @param [Object] type Object to be assigned
174
171
  def type=(type)
175
- validator = EnumAttributeValidator.new('String', ["s", "i", "n", "d", "t", "c"])
172
+ validator = EnumAttributeValidator.new('String', ['s', 'i', 'n', 'd', 't', 'c'])
176
173
  unless validator.valid?(type)
177
- fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
174
+ fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
178
175
  end
179
176
  @type = type
180
177
  end
@@ -182,9 +179,8 @@ module SignRequestClient
182
179
  # Custom attribute writer method with validation
183
180
  # @param [Object] external_id Value to be assigned
184
181
  def external_id=(external_id)
185
-
186
182
  if !external_id.nil? && external_id.to_s.length > 255
187
- fail ArgumentError, "invalid value for 'external_id', the character length must be smaller than or equal to 255."
183
+ fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 255.'
188
184
  end
189
185
 
190
186
  @external_id = external_id
@@ -227,7 +223,7 @@ module SignRequestClient
227
223
  # check to ensure the input is an array given that the the attribute
228
224
  # is documented as an array but the input is not
229
225
  if attributes[self.class.attribute_map[key]].is_a?(Array)
230
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
226
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
231
227
  end
232
228
  elsif !attributes[self.class.attribute_map[key]].nil?
233
229
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -309,7 +305,7 @@ module SignRequestClient
309
305
  # @return [Hash] Returns the value in the form of hash
310
306
  def _to_hash(value)
311
307
  if value.is_a?(Array)
312
- value.compact.map{ |v| _to_hash(v) }
308
+ value.compact.map { |v| _to_hash(v) }
313
309
  elsif value.is_a?(Hash)
314
310
  {}.tap do |hash|
315
311
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -320,7 +316,5 @@ module SignRequestClient
320
316
  value
321
317
  end
322
318
  end
323
-
324
319
  end
325
-
326
320
  end
@@ -6,20 +6,18 @@
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 RequiredAttachment
18
17
  attr_accessor :name
19
18
 
20
19
  attr_accessor :uuid
21
20
 
22
-
23
21
  # Attribute mapping from ruby-style variable name to JSON key.
24
22
  def self.attribute_map
25
23
  {
@@ -42,7 +40,7 @@ module SignRequestClient
42
40
  return unless attributes.is_a?(Hash)
43
41
 
44
42
  # convert string to symbol for hash key
45
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
44
 
47
45
  if attributes.has_key?(:'name')
48
46
  self.name = attributes[:'name']
@@ -51,7 +49,6 @@ module SignRequestClient
51
49
  if attributes.has_key?(:'uuid')
52
50
  self.uuid = attributes[:'uuid']
53
51
  end
54
-
55
52
  end
56
53
 
57
54
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -59,22 +56,22 @@ module SignRequestClient
59
56
  def list_invalid_properties
60
57
  invalid_properties = Array.new
61
58
  if @name.nil?
62
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
59
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
63
60
  end
64
61
 
65
62
  if @name.to_s.length > 255
66
- invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 255.")
63
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
67
64
  end
68
65
 
69
66
  if @name.to_s.length < 1
70
- invalid_properties.push("invalid value for 'name', the character length must be great than or equal to 1.")
67
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
71
68
  end
72
69
 
73
70
  if !@uuid.nil? && @uuid.to_s.length < 1
74
- invalid_properties.push("invalid value for 'uuid', the character length must be great than or equal to 1.")
71
+ invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
75
72
  end
76
73
 
77
- return invalid_properties
74
+ invalid_properties
78
75
  end
79
76
 
80
77
  # Check to see if the all the properties in the model are valid
@@ -84,22 +81,22 @@ module SignRequestClient
84
81
  return false if @name.to_s.length > 255
85
82
  return false if @name.to_s.length < 1
86
83
  return false if !@uuid.nil? && @uuid.to_s.length < 1
87
- return true
84
+ true
88
85
  end
89
86
 
90
87
  # Custom attribute writer method with validation
91
88
  # @param [Object] name Value to be assigned
92
89
  def name=(name)
93
90
  if name.nil?
94
- fail ArgumentError, "name cannot be nil"
91
+ fail ArgumentError, 'name cannot be nil'
95
92
  end
96
93
 
97
94
  if name.to_s.length > 255
98
- fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 255."
95
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
99
96
  end
100
97
 
101
98
  if name.to_s.length < 1
102
- fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to 1."
99
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
103
100
  end
104
101
 
105
102
  @name = name
@@ -108,9 +105,8 @@ module SignRequestClient
108
105
  # Custom attribute writer method with validation
109
106
  # @param [Object] uuid Value to be assigned
110
107
  def uuid=(uuid)
111
-
112
108
  if !uuid.nil? && uuid.to_s.length < 1
113
- fail ArgumentError, "invalid value for 'uuid', the character length must be great than or equal to 1."
109
+ fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
114
110
  end
115
111
 
116
112
  @uuid = uuid
@@ -147,7 +143,7 @@ module SignRequestClient
147
143
  # check to ensure the input is an array given that the the attribute
148
144
  # is documented as an array but the input is not
149
145
  if attributes[self.class.attribute_map[key]].is_a?(Array)
150
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
146
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
147
  end
152
148
  elsif !attributes[self.class.attribute_map[key]].nil?
153
149
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -229,7 +225,7 @@ module SignRequestClient
229
225
  # @return [Hash] Returns the value in the form of hash
230
226
  def _to_hash(value)
231
227
  if value.is_a?(Array)
232
- value.compact.map{ |v| _to_hash(v) }
228
+ value.compact.map { |v| _to_hash(v) }
233
229
  elsif value.is_a?(Hash)
234
230
  {}.tap do |hash|
235
231
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -240,7 +236,5 @@ module SignRequestClient
240
236
  value
241
237
  end
242
238
  end
243
-
244
239
  end
245
-
246
240
  end