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 SignerAttachment
|
|
18
17
|
attr_accessor :uuid
|
|
19
18
|
|
|
@@ -24,7 +23,6 @@ module SignRequestClient
|
|
|
24
23
|
|
|
25
24
|
attr_accessor :for_attachment
|
|
26
25
|
|
|
27
|
-
|
|
28
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
27
|
def self.attribute_map
|
|
30
28
|
{
|
|
@@ -51,7 +49,7 @@ module SignRequestClient
|
|
|
51
49
|
return unless attributes.is_a?(Hash)
|
|
52
50
|
|
|
53
51
|
# convert string to symbol for hash key
|
|
54
|
-
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 }
|
|
55
53
|
|
|
56
54
|
if attributes.has_key?(:'uuid')
|
|
57
55
|
self.uuid = attributes[:'uuid']
|
|
@@ -68,7 +66,6 @@ module SignRequestClient
|
|
|
68
66
|
if attributes.has_key?(:'for_attachment')
|
|
69
67
|
self.for_attachment = attributes[:'for_attachment']
|
|
70
68
|
end
|
|
71
|
-
|
|
72
69
|
end
|
|
73
70
|
|
|
74
71
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -76,14 +73,14 @@ module SignRequestClient
|
|
|
76
73
|
def list_invalid_properties
|
|
77
74
|
invalid_properties = Array.new
|
|
78
75
|
if !@uuid.nil? && @uuid.to_s.length < 1
|
|
79
|
-
invalid_properties.push(
|
|
76
|
+
invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
|
|
80
77
|
end
|
|
81
78
|
|
|
82
79
|
if !@name.nil? && @name.to_s.length < 1
|
|
83
|
-
invalid_properties.push(
|
|
80
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
84
81
|
end
|
|
85
82
|
|
|
86
|
-
|
|
83
|
+
invalid_properties
|
|
87
84
|
end
|
|
88
85
|
|
|
89
86
|
# Check to see if the all the properties in the model are valid
|
|
@@ -91,15 +88,14 @@ module SignRequestClient
|
|
|
91
88
|
def valid?
|
|
92
89
|
return false if !@uuid.nil? && @uuid.to_s.length < 1
|
|
93
90
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
94
|
-
|
|
91
|
+
true
|
|
95
92
|
end
|
|
96
93
|
|
|
97
94
|
# Custom attribute writer method with validation
|
|
98
95
|
# @param [Object] uuid Value to be assigned
|
|
99
96
|
def uuid=(uuid)
|
|
100
|
-
|
|
101
97
|
if !uuid.nil? && uuid.to_s.length < 1
|
|
102
|
-
fail ArgumentError,
|
|
98
|
+
fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
|
|
103
99
|
end
|
|
104
100
|
|
|
105
101
|
@uuid = uuid
|
|
@@ -108,9 +104,8 @@ module SignRequestClient
|
|
|
108
104
|
# Custom attribute writer method with validation
|
|
109
105
|
# @param [Object] name Value to be assigned
|
|
110
106
|
def name=(name)
|
|
111
|
-
|
|
112
107
|
if !name.nil? && name.to_s.length < 1
|
|
113
|
-
fail ArgumentError,
|
|
108
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
114
109
|
end
|
|
115
110
|
|
|
116
111
|
@name = name
|
|
@@ -149,7 +144,7 @@ module SignRequestClient
|
|
|
149
144
|
# check to ensure the input is an array given that the the attribute
|
|
150
145
|
# is documented as an array but the input is not
|
|
151
146
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
152
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
153
148
|
end
|
|
154
149
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
155
150
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -231,7 +226,7 @@ module SignRequestClient
|
|
|
231
226
|
# @return [Hash] Returns the value in the form of hash
|
|
232
227
|
def _to_hash(value)
|
|
233
228
|
if value.is_a?(Array)
|
|
234
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
229
|
+
value.compact.map { |v| _to_hash(v) }
|
|
235
230
|
elsif value.is_a?(Hash)
|
|
236
231
|
{}.tap do |hash|
|
|
237
232
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -242,7 +237,5 @@ module SignRequestClient
|
|
|
242
237
|
value
|
|
243
238
|
end
|
|
244
239
|
end
|
|
245
|
-
|
|
246
240
|
end
|
|
247
|
-
|
|
248
241
|
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 SignerInputs
|
|
18
17
|
attr_accessor :type
|
|
19
18
|
|
|
@@ -83,7 +82,7 @@ module SignRequestClient
|
|
|
83
82
|
return unless attributes.is_a?(Hash)
|
|
84
83
|
|
|
85
84
|
# convert string to symbol for hash key
|
|
86
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
87
86
|
|
|
88
87
|
if attributes.has_key?(:'type')
|
|
89
88
|
self.type = attributes[:'type']
|
|
@@ -112,7 +111,6 @@ module SignRequestClient
|
|
|
112
111
|
if attributes.has_key?(:'placeholder_uuid')
|
|
113
112
|
self.placeholder_uuid = attributes[:'placeholder_uuid']
|
|
114
113
|
end
|
|
115
|
-
|
|
116
114
|
end
|
|
117
115
|
|
|
118
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -120,37 +118,37 @@ module SignRequestClient
|
|
|
120
118
|
def list_invalid_properties
|
|
121
119
|
invalid_properties = Array.new
|
|
122
120
|
if @page_index.nil?
|
|
123
|
-
invalid_properties.push(
|
|
121
|
+
invalid_properties.push('invalid value for "page_index", page_index cannot be nil.')
|
|
124
122
|
end
|
|
125
123
|
|
|
126
124
|
if !@external_id.nil? && @external_id.to_s.length > 255
|
|
127
|
-
invalid_properties.push(
|
|
125
|
+
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 255.')
|
|
128
126
|
end
|
|
129
127
|
|
|
130
128
|
if !@placeholder_uuid.nil? && @placeholder_uuid.to_s.length > 36
|
|
131
|
-
invalid_properties.push(
|
|
129
|
+
invalid_properties.push('invalid value for "placeholder_uuid", the character length must be smaller than or equal to 36.')
|
|
132
130
|
end
|
|
133
131
|
|
|
134
|
-
|
|
132
|
+
invalid_properties
|
|
135
133
|
end
|
|
136
134
|
|
|
137
135
|
# Check to see if the all the properties in the model are valid
|
|
138
136
|
# @return true if the model is valid
|
|
139
137
|
def valid?
|
|
140
|
-
type_validator = EnumAttributeValidator.new('String', [
|
|
138
|
+
type_validator = EnumAttributeValidator.new('String', ['s', 'i', 'n', 'd', 't', 'c'])
|
|
141
139
|
return false unless type_validator.valid?(@type)
|
|
142
140
|
return false if @page_index.nil?
|
|
143
141
|
return false if !@external_id.nil? && @external_id.to_s.length > 255
|
|
144
142
|
return false if !@placeholder_uuid.nil? && @placeholder_uuid.to_s.length > 36
|
|
145
|
-
|
|
143
|
+
true
|
|
146
144
|
end
|
|
147
145
|
|
|
148
146
|
# Custom attribute writer method checking allowed values (enum).
|
|
149
147
|
# @param [Object] type Object to be assigned
|
|
150
148
|
def type=(type)
|
|
151
|
-
validator = EnumAttributeValidator.new('String', [
|
|
149
|
+
validator = EnumAttributeValidator.new('String', ['s', 'i', 'n', 'd', 't', 'c'])
|
|
152
150
|
unless validator.valid?(type)
|
|
153
|
-
fail ArgumentError,
|
|
151
|
+
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
154
152
|
end
|
|
155
153
|
@type = type
|
|
156
154
|
end
|
|
@@ -158,9 +156,8 @@ module SignRequestClient
|
|
|
158
156
|
# Custom attribute writer method with validation
|
|
159
157
|
# @param [Object] external_id Value to be assigned
|
|
160
158
|
def external_id=(external_id)
|
|
161
|
-
|
|
162
159
|
if !external_id.nil? && external_id.to_s.length > 255
|
|
163
|
-
fail ArgumentError,
|
|
160
|
+
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 255.'
|
|
164
161
|
end
|
|
165
162
|
|
|
166
163
|
@external_id = external_id
|
|
@@ -169,9 +166,8 @@ module SignRequestClient
|
|
|
169
166
|
# Custom attribute writer method with validation
|
|
170
167
|
# @param [Object] placeholder_uuid Value to be assigned
|
|
171
168
|
def placeholder_uuid=(placeholder_uuid)
|
|
172
|
-
|
|
173
169
|
if !placeholder_uuid.nil? && placeholder_uuid.to_s.length > 36
|
|
174
|
-
fail ArgumentError,
|
|
170
|
+
fail ArgumentError, 'invalid value for "placeholder_uuid", the character length must be smaller than or equal to 36.'
|
|
175
171
|
end
|
|
176
172
|
|
|
177
173
|
@placeholder_uuid = placeholder_uuid
|
|
@@ -213,7 +209,7 @@ module SignRequestClient
|
|
|
213
209
|
# check to ensure the input is an array given that the the attribute
|
|
214
210
|
# is documented as an array but the input is not
|
|
215
211
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
216
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
212
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
217
213
|
end
|
|
218
214
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
219
215
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -295,7 +291,7 @@ module SignRequestClient
|
|
|
295
291
|
# @return [Hash] Returns the value in the form of hash
|
|
296
292
|
def _to_hash(value)
|
|
297
293
|
if value.is_a?(Array)
|
|
298
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
294
|
+
value.compact.map { |v| _to_hash(v) }
|
|
299
295
|
elsif value.is_a?(Hash)
|
|
300
296
|
{}.tap do |hash|
|
|
301
297
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -306,7 +302,5 @@ module SignRequestClient
|
|
|
306
302
|
value
|
|
307
303
|
end
|
|
308
304
|
end
|
|
309
|
-
|
|
310
305
|
end
|
|
311
|
-
|
|
312
306
|
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 SigningLog
|
|
18
17
|
# Temporary URL to signing log, expires in five minutes
|
|
19
18
|
attr_accessor :pdf
|
|
@@ -21,7 +20,6 @@ module SignRequestClient
|
|
|
21
20
|
# SHA256 hash of PDF contents
|
|
22
21
|
attr_accessor :security_hash
|
|
23
22
|
|
|
24
|
-
|
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
24
|
def self.attribute_map
|
|
27
25
|
{
|
|
@@ -44,7 +42,7 @@ module SignRequestClient
|
|
|
44
42
|
return unless attributes.is_a?(Hash)
|
|
45
43
|
|
|
46
44
|
# convert string to symbol for hash key
|
|
47
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
48
46
|
|
|
49
47
|
if attributes.has_key?(:'pdf')
|
|
50
48
|
self.pdf = attributes[:'pdf']
|
|
@@ -53,7 +51,6 @@ module SignRequestClient
|
|
|
53
51
|
if attributes.has_key?(:'security_hash')
|
|
54
52
|
self.security_hash = attributes[:'security_hash']
|
|
55
53
|
end
|
|
56
|
-
|
|
57
54
|
end
|
|
58
55
|
|
|
59
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -61,25 +58,24 @@ module SignRequestClient
|
|
|
61
58
|
def list_invalid_properties
|
|
62
59
|
invalid_properties = Array.new
|
|
63
60
|
if !@security_hash.nil? && @security_hash.to_s.length < 1
|
|
64
|
-
invalid_properties.push(
|
|
61
|
+
invalid_properties.push('invalid value for "security_hash", the character length must be great than or equal to 1.')
|
|
65
62
|
end
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
invalid_properties
|
|
68
65
|
end
|
|
69
66
|
|
|
70
67
|
# Check to see if the all the properties in the model are valid
|
|
71
68
|
# @return true if the model is valid
|
|
72
69
|
def valid?
|
|
73
70
|
return false if !@security_hash.nil? && @security_hash.to_s.length < 1
|
|
74
|
-
|
|
71
|
+
true
|
|
75
72
|
end
|
|
76
73
|
|
|
77
74
|
# Custom attribute writer method with validation
|
|
78
75
|
# @param [Object] security_hash Value to be assigned
|
|
79
76
|
def security_hash=(security_hash)
|
|
80
|
-
|
|
81
77
|
if !security_hash.nil? && security_hash.to_s.length < 1
|
|
82
|
-
fail ArgumentError,
|
|
78
|
+
fail ArgumentError, 'invalid value for "security_hash", the character length must be great than or equal to 1.'
|
|
83
79
|
end
|
|
84
80
|
|
|
85
81
|
@security_hash = security_hash
|
|
@@ -116,7 +112,7 @@ module SignRequestClient
|
|
|
116
112
|
# check to ensure the input is an array given that the the attribute
|
|
117
113
|
# is documented as an array but the input is not
|
|
118
114
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
119
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
115
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
120
116
|
end
|
|
121
117
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
122
118
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -198,7 +194,7 @@ module SignRequestClient
|
|
|
198
194
|
# @return [Hash] Returns the value in the form of hash
|
|
199
195
|
def _to_hash(value)
|
|
200
196
|
if value.is_a?(Array)
|
|
201
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
197
|
+
value.compact.map { |v| _to_hash(v) }
|
|
202
198
|
elsif value.is_a?(Hash)
|
|
203
199
|
{}.tap do |hash|
|
|
204
200
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -209,7 +205,5 @@ module SignRequestClient
|
|
|
209
205
|
value
|
|
210
206
|
end
|
|
211
207
|
end
|
|
212
|
-
|
|
213
208
|
end
|
|
214
|
-
|
|
215
209
|
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 Team
|
|
18
17
|
attr_accessor :name
|
|
19
18
|
|
|
@@ -31,6 +30,11 @@ module SignRequestClient
|
|
|
31
30
|
|
|
32
31
|
attr_accessor :members
|
|
33
32
|
|
|
33
|
+
# When filled this team will be deleted after this date
|
|
34
|
+
attr_accessor :delete_after
|
|
35
|
+
|
|
36
|
+
# Indicates whether team is in Sandbox mode
|
|
37
|
+
attr_accessor :sandbox
|
|
34
38
|
|
|
35
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
40
|
def self.attribute_map
|
|
@@ -42,7 +46,9 @@ module SignRequestClient
|
|
|
42
46
|
:'phone' => :'phone',
|
|
43
47
|
:'primary_color' => :'primary_color',
|
|
44
48
|
:'events_callback_url' => :'events_callback_url',
|
|
45
|
-
:'members' => :'members'
|
|
49
|
+
:'members' => :'members',
|
|
50
|
+
:'delete_after' => :'delete_after',
|
|
51
|
+
:'sandbox' => :'sandbox'
|
|
46
52
|
}
|
|
47
53
|
end
|
|
48
54
|
|
|
@@ -56,7 +62,9 @@ module SignRequestClient
|
|
|
56
62
|
:'phone' => :'String',
|
|
57
63
|
:'primary_color' => :'String',
|
|
58
64
|
:'events_callback_url' => :'String',
|
|
59
|
-
:'members' => :'Array<InlineTeamMember>'
|
|
65
|
+
:'members' => :'Array<InlineTeamMember>',
|
|
66
|
+
:'delete_after' => :'DateTime',
|
|
67
|
+
:'sandbox' => :'BOOLEAN'
|
|
60
68
|
}
|
|
61
69
|
end
|
|
62
70
|
|
|
@@ -66,7 +74,7 @@ module SignRequestClient
|
|
|
66
74
|
return unless attributes.is_a?(Hash)
|
|
67
75
|
|
|
68
76
|
# convert string to symbol for hash key
|
|
69
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
70
78
|
|
|
71
79
|
if attributes.has_key?(:'name')
|
|
72
80
|
self.name = attributes[:'name']
|
|
@@ -102,6 +110,13 @@ module SignRequestClient
|
|
|
102
110
|
end
|
|
103
111
|
end
|
|
104
112
|
|
|
113
|
+
if attributes.has_key?(:'delete_after')
|
|
114
|
+
self.delete_after = attributes[:'delete_after']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.has_key?(:'sandbox')
|
|
118
|
+
self.sandbox = attributes[:'sandbox']
|
|
119
|
+
end
|
|
105
120
|
end
|
|
106
121
|
|
|
107
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -109,42 +124,46 @@ module SignRequestClient
|
|
|
109
124
|
def list_invalid_properties
|
|
110
125
|
invalid_properties = Array.new
|
|
111
126
|
if @name.nil?
|
|
112
|
-
invalid_properties.push(
|
|
127
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
113
128
|
end
|
|
114
129
|
|
|
115
130
|
if @name.to_s.length > 100
|
|
116
|
-
invalid_properties.push(
|
|
131
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
|
117
132
|
end
|
|
118
133
|
|
|
119
134
|
if @name.to_s.length < 1
|
|
120
|
-
invalid_properties.push(
|
|
135
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
121
136
|
end
|
|
122
137
|
|
|
123
138
|
if @subdomain.nil?
|
|
124
|
-
invalid_properties.push(
|
|
139
|
+
invalid_properties.push('invalid value for "subdomain", subdomain cannot be nil.')
|
|
125
140
|
end
|
|
126
141
|
|
|
127
142
|
if @subdomain.to_s.length > 100
|
|
128
|
-
invalid_properties.push(
|
|
143
|
+
invalid_properties.push('invalid value for "subdomain", the character length must be smaller than or equal to 100.')
|
|
129
144
|
end
|
|
130
145
|
|
|
131
146
|
if @subdomain.to_s.length < 1
|
|
132
|
-
invalid_properties.push(
|
|
147
|
+
invalid_properties.push('invalid value for "subdomain", the character length must be great than or equal to 1.')
|
|
133
148
|
end
|
|
134
149
|
|
|
135
150
|
if !@phone.nil? && @phone.to_s.length > 100
|
|
136
|
-
invalid_properties.push(
|
|
151
|
+
invalid_properties.push('invalid value for "phone", the character length must be smaller than or equal to 100.')
|
|
137
152
|
end
|
|
138
153
|
|
|
139
154
|
if !@primary_color.nil? && @primary_color.to_s.length > 100
|
|
140
|
-
invalid_properties.push(
|
|
155
|
+
invalid_properties.push('invalid value for "primary_color", the character length must be smaller than or equal to 100.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if !@primary_color.nil? && @primary_color !~ Regexp.new(/^[#a-zA-Z0-9]+$/)
|
|
159
|
+
invalid_properties.push('invalid value for "primary_color", must conform to the pattern /^[#a-zA-Z0-9]+$/.')
|
|
141
160
|
end
|
|
142
161
|
|
|
143
162
|
if !@events_callback_url.nil? && @events_callback_url.to_s.length > 2100
|
|
144
|
-
invalid_properties.push(
|
|
163
|
+
invalid_properties.push('invalid value for "events_callback_url", the character length must be smaller than or equal to 2100.')
|
|
145
164
|
end
|
|
146
165
|
|
|
147
|
-
|
|
166
|
+
invalid_properties
|
|
148
167
|
end
|
|
149
168
|
|
|
150
169
|
# Check to see if the all the properties in the model are valid
|
|
@@ -158,23 +177,24 @@ module SignRequestClient
|
|
|
158
177
|
return false if @subdomain.to_s.length < 1
|
|
159
178
|
return false if !@phone.nil? && @phone.to_s.length > 100
|
|
160
179
|
return false if !@primary_color.nil? && @primary_color.to_s.length > 100
|
|
180
|
+
return false if !@primary_color.nil? && @primary_color !~ Regexp.new(/^[#a-zA-Z0-9]+$/)
|
|
161
181
|
return false if !@events_callback_url.nil? && @events_callback_url.to_s.length > 2100
|
|
162
|
-
|
|
182
|
+
true
|
|
163
183
|
end
|
|
164
184
|
|
|
165
185
|
# Custom attribute writer method with validation
|
|
166
186
|
# @param [Object] name Value to be assigned
|
|
167
187
|
def name=(name)
|
|
168
188
|
if name.nil?
|
|
169
|
-
fail ArgumentError,
|
|
189
|
+
fail ArgumentError, 'name cannot be nil'
|
|
170
190
|
end
|
|
171
191
|
|
|
172
192
|
if name.to_s.length > 100
|
|
173
|
-
fail ArgumentError,
|
|
193
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
|
|
174
194
|
end
|
|
175
195
|
|
|
176
196
|
if name.to_s.length < 1
|
|
177
|
-
fail ArgumentError,
|
|
197
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
178
198
|
end
|
|
179
199
|
|
|
180
200
|
@name = name
|
|
@@ -184,15 +204,15 @@ module SignRequestClient
|
|
|
184
204
|
# @param [Object] subdomain Value to be assigned
|
|
185
205
|
def subdomain=(subdomain)
|
|
186
206
|
if subdomain.nil?
|
|
187
|
-
fail ArgumentError,
|
|
207
|
+
fail ArgumentError, 'subdomain cannot be nil'
|
|
188
208
|
end
|
|
189
209
|
|
|
190
210
|
if subdomain.to_s.length > 100
|
|
191
|
-
fail ArgumentError,
|
|
211
|
+
fail ArgumentError, 'invalid value for "subdomain", the character length must be smaller than or equal to 100.'
|
|
192
212
|
end
|
|
193
213
|
|
|
194
214
|
if subdomain.to_s.length < 1
|
|
195
|
-
fail ArgumentError,
|
|
215
|
+
fail ArgumentError, 'invalid value for "subdomain", the character length must be great than or equal to 1.'
|
|
196
216
|
end
|
|
197
217
|
|
|
198
218
|
@subdomain = subdomain
|
|
@@ -201,9 +221,8 @@ module SignRequestClient
|
|
|
201
221
|
# Custom attribute writer method with validation
|
|
202
222
|
# @param [Object] phone Value to be assigned
|
|
203
223
|
def phone=(phone)
|
|
204
|
-
|
|
205
224
|
if !phone.nil? && phone.to_s.length > 100
|
|
206
|
-
fail ArgumentError,
|
|
225
|
+
fail ArgumentError, 'invalid value for "phone", the character length must be smaller than or equal to 100.'
|
|
207
226
|
end
|
|
208
227
|
|
|
209
228
|
@phone = phone
|
|
@@ -212,9 +231,12 @@ module SignRequestClient
|
|
|
212
231
|
# Custom attribute writer method with validation
|
|
213
232
|
# @param [Object] primary_color Value to be assigned
|
|
214
233
|
def primary_color=(primary_color)
|
|
215
|
-
|
|
216
234
|
if !primary_color.nil? && primary_color.to_s.length > 100
|
|
217
|
-
fail ArgumentError,
|
|
235
|
+
fail ArgumentError, 'invalid value for "primary_color", the character length must be smaller than or equal to 100.'
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if !primary_color.nil? && primary_color !~ Regexp.new(/^[#a-zA-Z0-9]+$/)
|
|
239
|
+
fail ArgumentError, 'invalid value for "primary_color", must conform to the pattern /^[#a-zA-Z0-9]+$/.'
|
|
218
240
|
end
|
|
219
241
|
|
|
220
242
|
@primary_color = primary_color
|
|
@@ -223,9 +245,8 @@ module SignRequestClient
|
|
|
223
245
|
# Custom attribute writer method with validation
|
|
224
246
|
# @param [Object] events_callback_url Value to be assigned
|
|
225
247
|
def events_callback_url=(events_callback_url)
|
|
226
|
-
|
|
227
248
|
if !events_callback_url.nil? && events_callback_url.to_s.length > 2100
|
|
228
|
-
fail ArgumentError,
|
|
249
|
+
fail ArgumentError, 'invalid value for "events_callback_url", the character length must be smaller than or equal to 2100.'
|
|
229
250
|
end
|
|
230
251
|
|
|
231
252
|
@events_callback_url = events_callback_url
|
|
@@ -243,7 +264,9 @@ module SignRequestClient
|
|
|
243
264
|
phone == o.phone &&
|
|
244
265
|
primary_color == o.primary_color &&
|
|
245
266
|
events_callback_url == o.events_callback_url &&
|
|
246
|
-
members == o.members
|
|
267
|
+
members == o.members &&
|
|
268
|
+
delete_after == o.delete_after &&
|
|
269
|
+
sandbox == o.sandbox
|
|
247
270
|
end
|
|
248
271
|
|
|
249
272
|
# @see the `==` method
|
|
@@ -255,7 +278,7 @@ module SignRequestClient
|
|
|
255
278
|
# Calculates hash code according to all attributes.
|
|
256
279
|
# @return [Fixnum] Hash code
|
|
257
280
|
def hash
|
|
258
|
-
[name, subdomain, url, logo, phone, primary_color, events_callback_url, members].hash
|
|
281
|
+
[name, subdomain, url, logo, phone, primary_color, events_callback_url, members, delete_after, sandbox].hash
|
|
259
282
|
end
|
|
260
283
|
|
|
261
284
|
# Builds the object from hash
|
|
@@ -268,7 +291,7 @@ module SignRequestClient
|
|
|
268
291
|
# check to ensure the input is an array given that the the attribute
|
|
269
292
|
# is documented as an array but the input is not
|
|
270
293
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
271
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
294
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
272
295
|
end
|
|
273
296
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
274
297
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -350,7 +373,7 @@ module SignRequestClient
|
|
|
350
373
|
# @return [Hash] Returns the value in the form of hash
|
|
351
374
|
def _to_hash(value)
|
|
352
375
|
if value.is_a?(Array)
|
|
353
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
376
|
+
value.compact.map { |v| _to_hash(v) }
|
|
354
377
|
elsif value.is_a?(Hash)
|
|
355
378
|
{}.tap do |hash|
|
|
356
379
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -361,7 +384,5 @@ module SignRequestClient
|
|
|
361
384
|
value
|
|
362
385
|
end
|
|
363
386
|
end
|
|
364
|
-
|
|
365
387
|
end
|
|
366
|
-
|
|
367
388
|
end
|