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 InlineDocumentSignerIntegrationData
|
|
18
17
|
attr_accessor :integration
|
|
19
18
|
|
|
@@ -63,7 +62,7 @@ module SignRequestClient
|
|
|
63
62
|
return unless attributes.is_a?(Hash)
|
|
64
63
|
|
|
65
64
|
# convert string to symbol for hash key
|
|
66
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
66
|
|
|
68
67
|
if attributes.has_key?(:'integration')
|
|
69
68
|
self.integration = attributes[:'integration']
|
|
@@ -72,30 +71,29 @@ module SignRequestClient
|
|
|
72
71
|
if attributes.has_key?(:'integration_data')
|
|
73
72
|
self.integration_data = attributes[:'integration_data']
|
|
74
73
|
end
|
|
75
|
-
|
|
76
74
|
end
|
|
77
75
|
|
|
78
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
79
77
|
# @return Array for valid properties with the reasons
|
|
80
78
|
def list_invalid_properties
|
|
81
79
|
invalid_properties = Array.new
|
|
82
|
-
|
|
80
|
+
invalid_properties
|
|
83
81
|
end
|
|
84
82
|
|
|
85
83
|
# Check to see if the all the properties in the model are valid
|
|
86
84
|
# @return true if the model is valid
|
|
87
85
|
def valid?
|
|
88
|
-
integration_validator = EnumAttributeValidator.new('String', [
|
|
86
|
+
integration_validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
89
87
|
return false unless integration_validator.valid?(@integration)
|
|
90
|
-
|
|
88
|
+
true
|
|
91
89
|
end
|
|
92
90
|
|
|
93
91
|
# Custom attribute writer method checking allowed values (enum).
|
|
94
92
|
# @param [Object] integration Object to be assigned
|
|
95
93
|
def integration=(integration)
|
|
96
|
-
validator = EnumAttributeValidator.new('String', [
|
|
94
|
+
validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
97
95
|
unless validator.valid?(integration)
|
|
98
|
-
fail ArgumentError,
|
|
96
|
+
fail ArgumentError, 'invalid value for "integration", must be one of #{validator.allowable_values}.'
|
|
99
97
|
end
|
|
100
98
|
@integration = integration
|
|
101
99
|
end
|
|
@@ -131,7 +129,7 @@ module SignRequestClient
|
|
|
131
129
|
# check to ensure the input is an array given that the the attribute
|
|
132
130
|
# is documented as an array but the input is not
|
|
133
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
134
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
132
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
135
133
|
end
|
|
136
134
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
137
135
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -213,7 +211,7 @@ module SignRequestClient
|
|
|
213
211
|
# @return [Hash] Returns the value in the form of hash
|
|
214
212
|
def _to_hash(value)
|
|
215
213
|
if value.is_a?(Array)
|
|
216
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
|
217
215
|
elsif value.is_a?(Hash)
|
|
218
216
|
{}.tap do |hash|
|
|
219
217
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -224,7 +222,5 @@ module SignRequestClient
|
|
|
224
222
|
value
|
|
225
223
|
end
|
|
226
224
|
end
|
|
227
|
-
|
|
228
225
|
end
|
|
229
|
-
|
|
230
226
|
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 InlineIntegrationData
|
|
18
17
|
attr_accessor :integration
|
|
19
18
|
|
|
@@ -63,7 +62,7 @@ module SignRequestClient
|
|
|
63
62
|
return unless attributes.is_a?(Hash)
|
|
64
63
|
|
|
65
64
|
# convert string to symbol for hash key
|
|
66
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
66
|
|
|
68
67
|
if attributes.has_key?(:'integration')
|
|
69
68
|
self.integration = attributes[:'integration']
|
|
@@ -72,30 +71,29 @@ module SignRequestClient
|
|
|
72
71
|
if attributes.has_key?(:'integration_data')
|
|
73
72
|
self.integration_data = attributes[:'integration_data']
|
|
74
73
|
end
|
|
75
|
-
|
|
76
74
|
end
|
|
77
75
|
|
|
78
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
79
77
|
# @return Array for valid properties with the reasons
|
|
80
78
|
def list_invalid_properties
|
|
81
79
|
invalid_properties = Array.new
|
|
82
|
-
|
|
80
|
+
invalid_properties
|
|
83
81
|
end
|
|
84
82
|
|
|
85
83
|
# Check to see if the all the properties in the model are valid
|
|
86
84
|
# @return true if the model is valid
|
|
87
85
|
def valid?
|
|
88
|
-
integration_validator = EnumAttributeValidator.new('String', [
|
|
86
|
+
integration_validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
89
87
|
return false unless integration_validator.valid?(@integration)
|
|
90
|
-
|
|
88
|
+
true
|
|
91
89
|
end
|
|
92
90
|
|
|
93
91
|
# Custom attribute writer method checking allowed values (enum).
|
|
94
92
|
# @param [Object] integration Object to be assigned
|
|
95
93
|
def integration=(integration)
|
|
96
|
-
validator = EnumAttributeValidator.new('String', [
|
|
94
|
+
validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
97
95
|
unless validator.valid?(integration)
|
|
98
|
-
fail ArgumentError,
|
|
96
|
+
fail ArgumentError, 'invalid value for "integration", must be one of #{validator.allowable_values}.'
|
|
99
97
|
end
|
|
100
98
|
@integration = integration
|
|
101
99
|
end
|
|
@@ -131,7 +129,7 @@ module SignRequestClient
|
|
|
131
129
|
# check to ensure the input is an array given that the the attribute
|
|
132
130
|
# is documented as an array but the input is not
|
|
133
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
134
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
132
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
135
133
|
end
|
|
136
134
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
137
135
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -213,7 +211,7 @@ module SignRequestClient
|
|
|
213
211
|
# @return [Hash] Returns the value in the form of hash
|
|
214
212
|
def _to_hash(value)
|
|
215
213
|
if value.is_a?(Array)
|
|
216
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
|
217
215
|
elsif value.is_a?(Hash)
|
|
218
216
|
{}.tap do |hash|
|
|
219
217
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -224,7 +222,5 @@ module SignRequestClient
|
|
|
224
222
|
value
|
|
225
223
|
end
|
|
226
224
|
end
|
|
227
|
-
|
|
228
225
|
end
|
|
229
|
-
|
|
230
226
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
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
|
|
|
@@ -23,7 +23,6 @@ module SignRequestClient
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :date_value
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
27
|
def self.attribute_map
|
|
29
28
|
{
|
|
@@ -50,7 +49,7 @@ module SignRequestClient
|
|
|
50
49
|
return unless attributes.is_a?(Hash)
|
|
51
50
|
|
|
52
51
|
# convert string to symbol for hash key
|
|
53
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
54
53
|
|
|
55
54
|
if attributes.has_key?(:'external_id')
|
|
56
55
|
self.external_id = attributes[:'external_id']
|
|
@@ -67,7 +66,6 @@ module SignRequestClient
|
|
|
67
66
|
if attributes.has_key?(:'date_value')
|
|
68
67
|
self.date_value = attributes[:'date_value']
|
|
69
68
|
end
|
|
70
|
-
|
|
71
69
|
end
|
|
72
70
|
|
|
73
71
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -75,25 +73,24 @@ module SignRequestClient
|
|
|
75
73
|
def list_invalid_properties
|
|
76
74
|
invalid_properties = Array.new
|
|
77
75
|
if !@external_id.nil? && @external_id.to_s.length > 255
|
|
78
|
-
invalid_properties.push(
|
|
76
|
+
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 255.')
|
|
79
77
|
end
|
|
80
78
|
|
|
81
|
-
|
|
79
|
+
invalid_properties
|
|
82
80
|
end
|
|
83
81
|
|
|
84
82
|
# Check to see if the all the properties in the model are valid
|
|
85
83
|
# @return true if the model is valid
|
|
86
84
|
def valid?
|
|
87
85
|
return false if !@external_id.nil? && @external_id.to_s.length > 255
|
|
88
|
-
|
|
86
|
+
true
|
|
89
87
|
end
|
|
90
88
|
|
|
91
89
|
# Custom attribute writer method with validation
|
|
92
90
|
# @param [Object] external_id Value to be assigned
|
|
93
91
|
def external_id=(external_id)
|
|
94
|
-
|
|
95
92
|
if !external_id.nil? && external_id.to_s.length > 255
|
|
96
|
-
fail ArgumentError,
|
|
93
|
+
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 255.'
|
|
97
94
|
end
|
|
98
95
|
|
|
99
96
|
@external_id = external_id
|
|
@@ -132,7 +129,7 @@ module SignRequestClient
|
|
|
132
129
|
# check to ensure the input is an array given that the the attribute
|
|
133
130
|
# is documented as an array but the input is not
|
|
134
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
135
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
132
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
136
133
|
end
|
|
137
134
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
138
135
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -214,7 +211,7 @@ module SignRequestClient
|
|
|
214
211
|
# @return [Hash] Returns the value in the form of hash
|
|
215
212
|
def _to_hash(value)
|
|
216
213
|
if value.is_a?(Array)
|
|
217
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
|
218
215
|
elsif value.is_a?(Hash)
|
|
219
216
|
{}.tap do |hash|
|
|
220
217
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -225,7 +222,5 @@ module SignRequestClient
|
|
|
225
222
|
value
|
|
226
223
|
end
|
|
227
224
|
end
|
|
228
|
-
|
|
229
225
|
end
|
|
230
|
-
|
|
231
226
|
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 InlineResponse200
|
|
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 InlineResponse2001
|
|
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 InlineResponse2002
|
|
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
|