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.
- checksums.yaml +4 -4
- data/README.md +26 -7
- data/Rakefile +0 -1
- data/docs/ApiTokensApi.md +0 -164
- data/docs/Document.md +6 -0
- data/docs/DocumentAttachment.md +1 -1
- data/docs/DocumentAttachmentsApi.md +4 -4
- data/docs/DocumentSearch.md +5 -5
- data/docs/DocumentSigningLog.md +9 -0
- data/docs/DocumentSignrequest.md +28 -0
- data/docs/DocumentTeam.md +10 -0
- data/docs/DocumentsApi.md +11 -11
- data/docs/DocumentsSearchApi.md +8 -8
- data/docs/Event.md +1 -0
- data/docs/EventsApi.md +13 -13
- data/docs/FileFromSf.md +1 -0
- data/docs/InlineResponse201.md +1 -1
- data/docs/InlineSignRequest.md +3 -0
- data/docs/SignRequest.md +4 -1
- data/docs/SignRequestQuickCreate.md +5 -1
- data/docs/Signer.md +3 -0
- data/docs/SignrequestsApi.md +5 -5
- data/docs/Team.md +2 -0
- data/docs/TeamMember.md +1 -0
- data/docs/TeamMembersApi.md +7 -7
- data/docs/TeamsApi.md +57 -3
- data/docs/Template.md +1 -0
- data/docs/TemplatesApi.md +1 -1
- data/docs/WebhookSubscription.md +1 -0
- data/docs/WebhooksApi.md +4 -4
- data/lib/signrequest_client.rb +4 -1
- data/lib/signrequest_client/api/api_tokens_api.rb +5 -170
- data/lib/signrequest_client/api/document_attachments_api.rb +11 -14
- data/lib/signrequest_client/api/documents_api.rb +14 -18
- data/lib/signrequest_client/api/documents_search_api.rb +5 -6
- data/lib/signrequest_client/api/events_api.rb +8 -10
- data/lib/signrequest_client/api/signrequest_quick_create_api.rb +5 -6
- data/lib/signrequest_client/api/signrequests_api.rb +17 -22
- data/lib/signrequest_client/api/team_members_api.rb +8 -10
- data/lib/signrequest_client/api/teams_api.rb +69 -21
- data/lib/signrequest_client/api/templates_api.rb +8 -10
- data/lib/signrequest_client/api/webhooks_api.rb +20 -26
- data/lib/signrequest_client/api_client.rb +9 -9
- data/lib/signrequest_client/api_error.rb +1 -1
- data/lib/signrequest_client/configuration.rb +2 -2
- data/lib/signrequest_client/models/auth_token.rb +16 -23
- data/lib/signrequest_client/models/document.rb +113 -45
- data/lib/signrequest_client/models/document_attachment.rb +17 -25
- data/lib/signrequest_client/models/document_search.rb +111 -122
- data/lib/signrequest_client/models/document_signer_template_conf.rb +14 -21
- data/lib/signrequest_client/models/document_signing_log.rb +209 -0
- data/lib/signrequest_client/models/document_signrequest.rb +538 -0
- data/lib/signrequest_client/models/document_team.rb +240 -0
- data/lib/signrequest_client/models/event.rb +24 -20
- data/lib/signrequest_client/models/file_from_sf.rb +40 -21
- data/lib/signrequest_client/models/inline_document_signer_integration_data.rb +9 -13
- data/lib/signrequest_client/models/inline_integration_data.rb +9 -13
- data/lib/signrequest_client/models/inline_prefill_tags.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_1.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_2.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_3.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_4.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_5.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_6.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_7.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_8.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_9.rb +8 -13
- data/lib/signrequest_client/models/inline_response_201.rb +27 -31
- data/lib/signrequest_client/models/inline_response_201_1.rb +11 -15
- data/lib/signrequest_client/models/inline_sign_request.rb +69 -35
- data/lib/signrequest_client/models/inline_team.rb +12 -19
- data/lib/signrequest_client/models/inline_team_member.rb +8 -14
- data/lib/signrequest_client/models/invite_member.rb +10 -15
- data/lib/signrequest_client/models/placeholder.rb +15 -21
- data/lib/signrequest_client/models/required_attachment.rb +14 -20
- data/lib/signrequest_client/models/sign_request.rb +75 -40
- data/lib/signrequest_client/models/sign_request_quick_create.rb +124 -61
- data/lib/signrequest_client/models/signer.rb +103 -60
- data/lib/signrequest_client/models/signer_attachment.rb +10 -17
- data/lib/signrequest_client/models/signer_inputs.rb +14 -20
- data/lib/signrequest_client/models/signing_log.rb +8 -14
- data/lib/signrequest_client/models/team.rb +55 -34
- data/lib/signrequest_client/models/team_member.rb +18 -15
- data/lib/signrequest_client/models/template.rb +23 -20
- data/lib/signrequest_client/models/user.rb +18 -26
- data/lib/signrequest_client/models/webhook_subscription.rb +33 -30
- data/lib/signrequest_client/version.rb +2 -2
- data/signrequest_client-1.0.0.gem +0 -0
- data/signrequest_client.gemspec +4 -4
- data/spec/models/document_signing_log_spec.rb +47 -0
- data/spec/models/document_signrequest_spec.rb +165 -0
- data/spec/models/document_team_spec.rb +53 -0
- 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.
|
|
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 InlineResponse2003
|
|
18
17
|
attr_accessor :count
|
|
19
18
|
|
|
@@ -23,7 +22,6 @@ module SignRequestClient
|
|
|
23
22
|
|
|
24
23
|
attr_accessor :results
|
|
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?(:'count')
|
|
56
54
|
self.count = attributes[:'count']
|
|
@@ -69,7 +67,6 @@ module SignRequestClient
|
|
|
69
67
|
self.results = value
|
|
70
68
|
end
|
|
71
69
|
end
|
|
72
|
-
|
|
73
70
|
end
|
|
74
71
|
|
|
75
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -77,14 +74,14 @@ module SignRequestClient
|
|
|
77
74
|
def list_invalid_properties
|
|
78
75
|
invalid_properties = Array.new
|
|
79
76
|
if @count.nil?
|
|
80
|
-
invalid_properties.push(
|
|
77
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
81
78
|
end
|
|
82
79
|
|
|
83
80
|
if @results.nil?
|
|
84
|
-
invalid_properties.push(
|
|
81
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
85
82
|
end
|
|
86
83
|
|
|
87
|
-
|
|
84
|
+
invalid_properties
|
|
88
85
|
end
|
|
89
86
|
|
|
90
87
|
# Check to see if the all the properties in the model are valid
|
|
@@ -92,7 +89,7 @@ module SignRequestClient
|
|
|
92
89
|
def valid?
|
|
93
90
|
return false if @count.nil?
|
|
94
91
|
return false if @results.nil?
|
|
95
|
-
|
|
92
|
+
true
|
|
96
93
|
end
|
|
97
94
|
|
|
98
95
|
# Checks equality by comparing each attribute.
|
|
@@ -128,7 +125,7 @@ module SignRequestClient
|
|
|
128
125
|
# check to ensure the input is an array given that the the attribute
|
|
129
126
|
# is documented as an array but the input is not
|
|
130
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
132
129
|
end
|
|
133
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
134
131
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -210,7 +207,7 @@ module SignRequestClient
|
|
|
210
207
|
# @return [Hash] Returns the value in the form of hash
|
|
211
208
|
def _to_hash(value)
|
|
212
209
|
if value.is_a?(Array)
|
|
213
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
214
211
|
elsif value.is_a?(Hash)
|
|
215
212
|
{}.tap do |hash|
|
|
216
213
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -221,7 +218,5 @@ module SignRequestClient
|
|
|
221
218
|
value
|
|
222
219
|
end
|
|
223
220
|
end
|
|
224
|
-
|
|
225
221
|
end
|
|
226
|
-
|
|
227
222
|
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.
|
|
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 InlineResponse2004
|
|
18
17
|
attr_accessor :count
|
|
19
18
|
|
|
@@ -23,7 +22,6 @@ module SignRequestClient
|
|
|
23
22
|
|
|
24
23
|
attr_accessor :results
|
|
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?(:'count')
|
|
56
54
|
self.count = attributes[:'count']
|
|
@@ -69,7 +67,6 @@ module SignRequestClient
|
|
|
69
67
|
self.results = value
|
|
70
68
|
end
|
|
71
69
|
end
|
|
72
|
-
|
|
73
70
|
end
|
|
74
71
|
|
|
75
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -77,14 +74,14 @@ module SignRequestClient
|
|
|
77
74
|
def list_invalid_properties
|
|
78
75
|
invalid_properties = Array.new
|
|
79
76
|
if @count.nil?
|
|
80
|
-
invalid_properties.push(
|
|
77
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
81
78
|
end
|
|
82
79
|
|
|
83
80
|
if @results.nil?
|
|
84
|
-
invalid_properties.push(
|
|
81
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
85
82
|
end
|
|
86
83
|
|
|
87
|
-
|
|
84
|
+
invalid_properties
|
|
88
85
|
end
|
|
89
86
|
|
|
90
87
|
# Check to see if the all the properties in the model are valid
|
|
@@ -92,7 +89,7 @@ module SignRequestClient
|
|
|
92
89
|
def valid?
|
|
93
90
|
return false if @count.nil?
|
|
94
91
|
return false if @results.nil?
|
|
95
|
-
|
|
92
|
+
true
|
|
96
93
|
end
|
|
97
94
|
|
|
98
95
|
# Checks equality by comparing each attribute.
|
|
@@ -128,7 +125,7 @@ module SignRequestClient
|
|
|
128
125
|
# check to ensure the input is an array given that the the attribute
|
|
129
126
|
# is documented as an array but the input is not
|
|
130
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
132
129
|
end
|
|
133
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
134
131
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -210,7 +207,7 @@ module SignRequestClient
|
|
|
210
207
|
# @return [Hash] Returns the value in the form of hash
|
|
211
208
|
def _to_hash(value)
|
|
212
209
|
if value.is_a?(Array)
|
|
213
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
214
211
|
elsif value.is_a?(Hash)
|
|
215
212
|
{}.tap do |hash|
|
|
216
213
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -221,7 +218,5 @@ module SignRequestClient
|
|
|
221
218
|
value
|
|
222
219
|
end
|
|
223
220
|
end
|
|
224
|
-
|
|
225
221
|
end
|
|
226
|
-
|
|
227
222
|
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.
|
|
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 InlineResponse2005
|
|
18
17
|
attr_accessor :count
|
|
19
18
|
|
|
@@ -23,7 +22,6 @@ module SignRequestClient
|
|
|
23
22
|
|
|
24
23
|
attr_accessor :results
|
|
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?(:'count')
|
|
56
54
|
self.count = attributes[:'count']
|
|
@@ -69,7 +67,6 @@ module SignRequestClient
|
|
|
69
67
|
self.results = value
|
|
70
68
|
end
|
|
71
69
|
end
|
|
72
|
-
|
|
73
70
|
end
|
|
74
71
|
|
|
75
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -77,14 +74,14 @@ module SignRequestClient
|
|
|
77
74
|
def list_invalid_properties
|
|
78
75
|
invalid_properties = Array.new
|
|
79
76
|
if @count.nil?
|
|
80
|
-
invalid_properties.push(
|
|
77
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
81
78
|
end
|
|
82
79
|
|
|
83
80
|
if @results.nil?
|
|
84
|
-
invalid_properties.push(
|
|
81
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
85
82
|
end
|
|
86
83
|
|
|
87
|
-
|
|
84
|
+
invalid_properties
|
|
88
85
|
end
|
|
89
86
|
|
|
90
87
|
# Check to see if the all the properties in the model are valid
|
|
@@ -92,7 +89,7 @@ module SignRequestClient
|
|
|
92
89
|
def valid?
|
|
93
90
|
return false if @count.nil?
|
|
94
91
|
return false if @results.nil?
|
|
95
|
-
|
|
92
|
+
true
|
|
96
93
|
end
|
|
97
94
|
|
|
98
95
|
# Checks equality by comparing each attribute.
|
|
@@ -128,7 +125,7 @@ module SignRequestClient
|
|
|
128
125
|
# check to ensure the input is an array given that the the attribute
|
|
129
126
|
# is documented as an array but the input is not
|
|
130
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
132
129
|
end
|
|
133
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
134
131
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -210,7 +207,7 @@ module SignRequestClient
|
|
|
210
207
|
# @return [Hash] Returns the value in the form of hash
|
|
211
208
|
def _to_hash(value)
|
|
212
209
|
if value.is_a?(Array)
|
|
213
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
214
211
|
elsif value.is_a?(Hash)
|
|
215
212
|
{}.tap do |hash|
|
|
216
213
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -221,7 +218,5 @@ module SignRequestClient
|
|
|
221
218
|
value
|
|
222
219
|
end
|
|
223
220
|
end
|
|
224
|
-
|
|
225
221
|
end
|
|
226
|
-
|
|
227
222
|
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.
|
|
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 InlineResponse2006
|
|
18
17
|
attr_accessor :count
|
|
19
18
|
|
|
@@ -23,7 +22,6 @@ module SignRequestClient
|
|
|
23
22
|
|
|
24
23
|
attr_accessor :results
|
|
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?(:'count')
|
|
56
54
|
self.count = attributes[:'count']
|
|
@@ -69,7 +67,6 @@ module SignRequestClient
|
|
|
69
67
|
self.results = value
|
|
70
68
|
end
|
|
71
69
|
end
|
|
72
|
-
|
|
73
70
|
end
|
|
74
71
|
|
|
75
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -77,14 +74,14 @@ module SignRequestClient
|
|
|
77
74
|
def list_invalid_properties
|
|
78
75
|
invalid_properties = Array.new
|
|
79
76
|
if @count.nil?
|
|
80
|
-
invalid_properties.push(
|
|
77
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
81
78
|
end
|
|
82
79
|
|
|
83
80
|
if @results.nil?
|
|
84
|
-
invalid_properties.push(
|
|
81
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
85
82
|
end
|
|
86
83
|
|
|
87
|
-
|
|
84
|
+
invalid_properties
|
|
88
85
|
end
|
|
89
86
|
|
|
90
87
|
# Check to see if the all the properties in the model are valid
|
|
@@ -92,7 +89,7 @@ module SignRequestClient
|
|
|
92
89
|
def valid?
|
|
93
90
|
return false if @count.nil?
|
|
94
91
|
return false if @results.nil?
|
|
95
|
-
|
|
92
|
+
true
|
|
96
93
|
end
|
|
97
94
|
|
|
98
95
|
# Checks equality by comparing each attribute.
|
|
@@ -128,7 +125,7 @@ module SignRequestClient
|
|
|
128
125
|
# check to ensure the input is an array given that the the attribute
|
|
129
126
|
# is documented as an array but the input is not
|
|
130
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
132
129
|
end
|
|
133
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
134
131
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -210,7 +207,7 @@ module SignRequestClient
|
|
|
210
207
|
# @return [Hash] Returns the value in the form of hash
|
|
211
208
|
def _to_hash(value)
|
|
212
209
|
if value.is_a?(Array)
|
|
213
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
214
211
|
elsif value.is_a?(Hash)
|
|
215
212
|
{}.tap do |hash|
|
|
216
213
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -221,7 +218,5 @@ module SignRequestClient
|
|
|
221
218
|
value
|
|
222
219
|
end
|
|
223
220
|
end
|
|
224
|
-
|
|
225
221
|
end
|
|
226
|
-
|
|
227
222
|
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.
|
|
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 InlineResponse2007
|
|
18
17
|
attr_accessor :count
|
|
19
18
|
|
|
@@ -23,7 +22,6 @@ module SignRequestClient
|
|
|
23
22
|
|
|
24
23
|
attr_accessor :results
|
|
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?(:'count')
|
|
56
54
|
self.count = attributes[:'count']
|
|
@@ -69,7 +67,6 @@ module SignRequestClient
|
|
|
69
67
|
self.results = value
|
|
70
68
|
end
|
|
71
69
|
end
|
|
72
|
-
|
|
73
70
|
end
|
|
74
71
|
|
|
75
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -77,14 +74,14 @@ module SignRequestClient
|
|
|
77
74
|
def list_invalid_properties
|
|
78
75
|
invalid_properties = Array.new
|
|
79
76
|
if @count.nil?
|
|
80
|
-
invalid_properties.push(
|
|
77
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
|
81
78
|
end
|
|
82
79
|
|
|
83
80
|
if @results.nil?
|
|
84
|
-
invalid_properties.push(
|
|
81
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
|
85
82
|
end
|
|
86
83
|
|
|
87
|
-
|
|
84
|
+
invalid_properties
|
|
88
85
|
end
|
|
89
86
|
|
|
90
87
|
# Check to see if the all the properties in the model are valid
|
|
@@ -92,7 +89,7 @@ module SignRequestClient
|
|
|
92
89
|
def valid?
|
|
93
90
|
return false if @count.nil?
|
|
94
91
|
return false if @results.nil?
|
|
95
|
-
|
|
92
|
+
true
|
|
96
93
|
end
|
|
97
94
|
|
|
98
95
|
# Checks equality by comparing each attribute.
|
|
@@ -128,7 +125,7 @@ module SignRequestClient
|
|
|
128
125
|
# check to ensure the input is an array given that the the attribute
|
|
129
126
|
# is documented as an array but the input is not
|
|
130
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
132
129
|
end
|
|
133
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
134
131
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -210,7 +207,7 @@ module SignRequestClient
|
|
|
210
207
|
# @return [Hash] Returns the value in the form of hash
|
|
211
208
|
def _to_hash(value)
|
|
212
209
|
if value.is_a?(Array)
|
|
213
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
214
211
|
elsif value.is_a?(Hash)
|
|
215
212
|
{}.tap do |hash|
|
|
216
213
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -221,7 +218,5 @@ module SignRequestClient
|
|
|
221
218
|
value
|
|
222
219
|
end
|
|
223
220
|
end
|
|
224
|
-
|
|
225
221
|
end
|
|
226
|
-
|
|
227
222
|
end
|