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 SignRequest
|
|
18
17
|
# Email of user sending the SignRequest (must be a validated email)
|
|
19
18
|
attr_accessor :from_email
|
|
@@ -29,6 +28,9 @@ module SignRequestClient
|
|
|
29
28
|
# URL at which SignRequest will redirect to when a document is signed
|
|
30
29
|
attr_accessor :redirect_url
|
|
31
30
|
|
|
31
|
+
# URL at which SignRequest will redirect to when a document is declined
|
|
32
|
+
attr_accessor :redirect_url_declined
|
|
33
|
+
|
|
32
34
|
# Attachments that signers are required to upload
|
|
33
35
|
attr_accessor :required_attachments
|
|
34
36
|
|
|
@@ -50,6 +52,12 @@ module SignRequestClient
|
|
|
50
52
|
# Disable usage of uploaded signatures (images)
|
|
51
53
|
attr_accessor :disable_upload_signatures
|
|
52
54
|
|
|
55
|
+
# Disables storing timestamp proof hashes in blockchain integrations.
|
|
56
|
+
attr_accessor :disable_blockchain_proof
|
|
57
|
+
|
|
58
|
+
# When true a text message verification is needed before the signer can see the document
|
|
59
|
+
attr_accessor :text_message_verification_locked
|
|
60
|
+
|
|
53
61
|
# Subject of SignRequest email
|
|
54
62
|
attr_accessor :subject
|
|
55
63
|
|
|
@@ -104,6 +112,7 @@ module SignRequestClient
|
|
|
104
112
|
:'is_being_prepared' => :'is_being_prepared',
|
|
105
113
|
:'prepare_url' => :'prepare_url',
|
|
106
114
|
:'redirect_url' => :'redirect_url',
|
|
115
|
+
:'redirect_url_declined' => :'redirect_url_declined',
|
|
107
116
|
:'required_attachments' => :'required_attachments',
|
|
108
117
|
:'disable_attachments' => :'disable_attachments',
|
|
109
118
|
:'disable_text_signatures' => :'disable_text_signatures',
|
|
@@ -111,6 +120,8 @@ module SignRequestClient
|
|
|
111
120
|
:'disable_date' => :'disable_date',
|
|
112
121
|
:'disable_emails' => :'disable_emails',
|
|
113
122
|
:'disable_upload_signatures' => :'disable_upload_signatures',
|
|
123
|
+
:'disable_blockchain_proof' => :'disable_blockchain_proof',
|
|
124
|
+
:'text_message_verification_locked' => :'text_message_verification_locked',
|
|
114
125
|
:'subject' => :'subject',
|
|
115
126
|
:'message' => :'message',
|
|
116
127
|
:'who' => :'who',
|
|
@@ -132,6 +143,7 @@ module SignRequestClient
|
|
|
132
143
|
:'is_being_prepared' => :'BOOLEAN',
|
|
133
144
|
:'prepare_url' => :'String',
|
|
134
145
|
:'redirect_url' => :'String',
|
|
146
|
+
:'redirect_url_declined' => :'String',
|
|
135
147
|
:'required_attachments' => :'Array<RequiredAttachment>',
|
|
136
148
|
:'disable_attachments' => :'BOOLEAN',
|
|
137
149
|
:'disable_text_signatures' => :'BOOLEAN',
|
|
@@ -139,6 +151,8 @@ module SignRequestClient
|
|
|
139
151
|
:'disable_date' => :'BOOLEAN',
|
|
140
152
|
:'disable_emails' => :'BOOLEAN',
|
|
141
153
|
:'disable_upload_signatures' => :'BOOLEAN',
|
|
154
|
+
:'disable_blockchain_proof' => :'BOOLEAN',
|
|
155
|
+
:'text_message_verification_locked' => :'BOOLEAN',
|
|
142
156
|
:'subject' => :'String',
|
|
143
157
|
:'message' => :'String',
|
|
144
158
|
:'who' => :'String',
|
|
@@ -158,7 +172,7 @@ module SignRequestClient
|
|
|
158
172
|
return unless attributes.is_a?(Hash)
|
|
159
173
|
|
|
160
174
|
# convert string to symbol for hash key
|
|
161
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
175
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
162
176
|
|
|
163
177
|
if attributes.has_key?(:'from_email')
|
|
164
178
|
self.from_email = attributes[:'from_email']
|
|
@@ -180,6 +194,10 @@ module SignRequestClient
|
|
|
180
194
|
self.redirect_url = attributes[:'redirect_url']
|
|
181
195
|
end
|
|
182
196
|
|
|
197
|
+
if attributes.has_key?(:'redirect_url_declined')
|
|
198
|
+
self.redirect_url_declined = attributes[:'redirect_url_declined']
|
|
199
|
+
end
|
|
200
|
+
|
|
183
201
|
if attributes.has_key?(:'required_attachments')
|
|
184
202
|
if (value = attributes[:'required_attachments']).is_a?(Array)
|
|
185
203
|
self.required_attachments = value
|
|
@@ -210,6 +228,14 @@ module SignRequestClient
|
|
|
210
228
|
self.disable_upload_signatures = attributes[:'disable_upload_signatures']
|
|
211
229
|
end
|
|
212
230
|
|
|
231
|
+
if attributes.has_key?(:'disable_blockchain_proof')
|
|
232
|
+
self.disable_blockchain_proof = attributes[:'disable_blockchain_proof']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.has_key?(:'text_message_verification_locked')
|
|
236
|
+
self.text_message_verification_locked = attributes[:'text_message_verification_locked']
|
|
237
|
+
end
|
|
238
|
+
|
|
213
239
|
if attributes.has_key?(:'subject')
|
|
214
240
|
self.subject = attributes[:'subject']
|
|
215
241
|
end
|
|
@@ -221,7 +247,7 @@ module SignRequestClient
|
|
|
221
247
|
if attributes.has_key?(:'who')
|
|
222
248
|
self.who = attributes[:'who']
|
|
223
249
|
else
|
|
224
|
-
self.who =
|
|
250
|
+
self.who = 'o'
|
|
225
251
|
end
|
|
226
252
|
|
|
227
253
|
if attributes.has_key?(:'send_reminders')
|
|
@@ -253,7 +279,6 @@ module SignRequestClient
|
|
|
253
279
|
if attributes.has_key?(:'integration_data')
|
|
254
280
|
self.integration_data = attributes[:'integration_data']
|
|
255
281
|
end
|
|
256
|
-
|
|
257
282
|
end
|
|
258
283
|
|
|
259
284
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -261,42 +286,46 @@ module SignRequestClient
|
|
|
261
286
|
def list_invalid_properties
|
|
262
287
|
invalid_properties = Array.new
|
|
263
288
|
if !@from_email.nil? && @from_email.to_s.length > 255
|
|
264
|
-
invalid_properties.push(
|
|
289
|
+
invalid_properties.push('invalid value for "from_email", the character length must be smaller than or equal to 255.')
|
|
265
290
|
end
|
|
266
291
|
|
|
267
292
|
if !@from_email.nil? && @from_email.to_s.length < 1
|
|
268
|
-
invalid_properties.push(
|
|
293
|
+
invalid_properties.push('invalid value for "from_email", the character length must be great than or equal to 1.')
|
|
269
294
|
end
|
|
270
295
|
|
|
271
296
|
if !@from_email_name.nil? && @from_email_name.to_s.length > 255
|
|
272
|
-
invalid_properties.push(
|
|
297
|
+
invalid_properties.push('invalid value for "from_email_name", the character length must be smaller than or equal to 255.')
|
|
273
298
|
end
|
|
274
299
|
|
|
275
300
|
if !@prepare_url.nil? && @prepare_url.to_s.length < 1
|
|
276
|
-
invalid_properties.push(
|
|
301
|
+
invalid_properties.push('invalid value for "prepare_url", the character length must be great than or equal to 1.')
|
|
277
302
|
end
|
|
278
303
|
|
|
279
304
|
if !@redirect_url.nil? && @redirect_url.to_s.length > 2100
|
|
280
|
-
invalid_properties.push(
|
|
305
|
+
invalid_properties.push('invalid value for "redirect_url", the character length must be smaller than or equal to 2100.')
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if !@redirect_url_declined.nil? && @redirect_url_declined.to_s.length > 2100
|
|
309
|
+
invalid_properties.push('invalid value for "redirect_url_declined", the character length must be smaller than or equal to 2100.')
|
|
281
310
|
end
|
|
282
311
|
|
|
283
312
|
if !@subject.nil? && @subject.to_s.length > 512
|
|
284
|
-
invalid_properties.push(
|
|
313
|
+
invalid_properties.push('invalid value for "subject", the character length must be smaller than or equal to 512.')
|
|
285
314
|
end
|
|
286
315
|
|
|
287
316
|
if @signers.nil?
|
|
288
|
-
invalid_properties.push(
|
|
317
|
+
invalid_properties.push('invalid value for "signers", signers cannot be nil.')
|
|
289
318
|
end
|
|
290
319
|
|
|
291
320
|
if !@uuid.nil? && @uuid.to_s.length < 1
|
|
292
|
-
invalid_properties.push(
|
|
321
|
+
invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
|
|
293
322
|
end
|
|
294
323
|
|
|
295
324
|
if @document.nil?
|
|
296
|
-
invalid_properties.push(
|
|
325
|
+
invalid_properties.push('invalid value for "document", document cannot be nil.')
|
|
297
326
|
end
|
|
298
327
|
|
|
299
|
-
|
|
328
|
+
invalid_properties
|
|
300
329
|
end
|
|
301
330
|
|
|
302
331
|
# Check to see if the all the properties in the model are valid
|
|
@@ -307,27 +336,27 @@ module SignRequestClient
|
|
|
307
336
|
return false if !@from_email_name.nil? && @from_email_name.to_s.length > 255
|
|
308
337
|
return false if !@prepare_url.nil? && @prepare_url.to_s.length < 1
|
|
309
338
|
return false if !@redirect_url.nil? && @redirect_url.to_s.length > 2100
|
|
339
|
+
return false if !@redirect_url_declined.nil? && @redirect_url_declined.to_s.length > 2100
|
|
310
340
|
return false if !@subject.nil? && @subject.to_s.length > 512
|
|
311
|
-
who_validator = EnumAttributeValidator.new('String', [
|
|
341
|
+
who_validator = EnumAttributeValidator.new('String', ['m', 'mo', 'o'])
|
|
312
342
|
return false unless who_validator.valid?(@who)
|
|
313
343
|
return false if @signers.nil?
|
|
314
344
|
return false if !@uuid.nil? && @uuid.to_s.length < 1
|
|
315
345
|
return false if @document.nil?
|
|
316
|
-
integration_validator = EnumAttributeValidator.new('String', [
|
|
346
|
+
integration_validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
317
347
|
return false unless integration_validator.valid?(@integration)
|
|
318
|
-
|
|
348
|
+
true
|
|
319
349
|
end
|
|
320
350
|
|
|
321
351
|
# Custom attribute writer method with validation
|
|
322
352
|
# @param [Object] from_email Value to be assigned
|
|
323
353
|
def from_email=(from_email)
|
|
324
|
-
|
|
325
354
|
if !from_email.nil? && from_email.to_s.length > 255
|
|
326
|
-
fail ArgumentError,
|
|
355
|
+
fail ArgumentError, 'invalid value for "from_email", the character length must be smaller than or equal to 255.'
|
|
327
356
|
end
|
|
328
357
|
|
|
329
358
|
if !from_email.nil? && from_email.to_s.length < 1
|
|
330
|
-
fail ArgumentError,
|
|
359
|
+
fail ArgumentError, 'invalid value for "from_email", the character length must be great than or equal to 1.'
|
|
331
360
|
end
|
|
332
361
|
|
|
333
362
|
@from_email = from_email
|
|
@@ -336,9 +365,8 @@ module SignRequestClient
|
|
|
336
365
|
# Custom attribute writer method with validation
|
|
337
366
|
# @param [Object] from_email_name Value to be assigned
|
|
338
367
|
def from_email_name=(from_email_name)
|
|
339
|
-
|
|
340
368
|
if !from_email_name.nil? && from_email_name.to_s.length > 255
|
|
341
|
-
fail ArgumentError,
|
|
369
|
+
fail ArgumentError, 'invalid value for "from_email_name", the character length must be smaller than or equal to 255.'
|
|
342
370
|
end
|
|
343
371
|
|
|
344
372
|
@from_email_name = from_email_name
|
|
@@ -347,9 +375,8 @@ module SignRequestClient
|
|
|
347
375
|
# Custom attribute writer method with validation
|
|
348
376
|
# @param [Object] prepare_url Value to be assigned
|
|
349
377
|
def prepare_url=(prepare_url)
|
|
350
|
-
|
|
351
378
|
if !prepare_url.nil? && prepare_url.to_s.length < 1
|
|
352
|
-
fail ArgumentError,
|
|
379
|
+
fail ArgumentError, 'invalid value for "prepare_url", the character length must be great than or equal to 1.'
|
|
353
380
|
end
|
|
354
381
|
|
|
355
382
|
@prepare_url = prepare_url
|
|
@@ -358,20 +385,28 @@ module SignRequestClient
|
|
|
358
385
|
# Custom attribute writer method with validation
|
|
359
386
|
# @param [Object] redirect_url Value to be assigned
|
|
360
387
|
def redirect_url=(redirect_url)
|
|
361
|
-
|
|
362
388
|
if !redirect_url.nil? && redirect_url.to_s.length > 2100
|
|
363
|
-
fail ArgumentError,
|
|
389
|
+
fail ArgumentError, 'invalid value for "redirect_url", the character length must be smaller than or equal to 2100.'
|
|
364
390
|
end
|
|
365
391
|
|
|
366
392
|
@redirect_url = redirect_url
|
|
367
393
|
end
|
|
368
394
|
|
|
395
|
+
# Custom attribute writer method with validation
|
|
396
|
+
# @param [Object] redirect_url_declined Value to be assigned
|
|
397
|
+
def redirect_url_declined=(redirect_url_declined)
|
|
398
|
+
if !redirect_url_declined.nil? && redirect_url_declined.to_s.length > 2100
|
|
399
|
+
fail ArgumentError, 'invalid value for "redirect_url_declined", the character length must be smaller than or equal to 2100.'
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
@redirect_url_declined = redirect_url_declined
|
|
403
|
+
end
|
|
404
|
+
|
|
369
405
|
# Custom attribute writer method with validation
|
|
370
406
|
# @param [Object] subject Value to be assigned
|
|
371
407
|
def subject=(subject)
|
|
372
|
-
|
|
373
408
|
if !subject.nil? && subject.to_s.length > 512
|
|
374
|
-
fail ArgumentError,
|
|
409
|
+
fail ArgumentError, 'invalid value for "subject", the character length must be smaller than or equal to 512.'
|
|
375
410
|
end
|
|
376
411
|
|
|
377
412
|
@subject = subject
|
|
@@ -380,9 +415,9 @@ module SignRequestClient
|
|
|
380
415
|
# Custom attribute writer method checking allowed values (enum).
|
|
381
416
|
# @param [Object] who Object to be assigned
|
|
382
417
|
def who=(who)
|
|
383
|
-
validator = EnumAttributeValidator.new('String', [
|
|
418
|
+
validator = EnumAttributeValidator.new('String', ['m', 'mo', 'o'])
|
|
384
419
|
unless validator.valid?(who)
|
|
385
|
-
fail ArgumentError,
|
|
420
|
+
fail ArgumentError, 'invalid value for "who", must be one of #{validator.allowable_values}.'
|
|
386
421
|
end
|
|
387
422
|
@who = who
|
|
388
423
|
end
|
|
@@ -390,9 +425,8 @@ module SignRequestClient
|
|
|
390
425
|
# Custom attribute writer method with validation
|
|
391
426
|
# @param [Object] uuid Value to be assigned
|
|
392
427
|
def uuid=(uuid)
|
|
393
|
-
|
|
394
428
|
if !uuid.nil? && uuid.to_s.length < 1
|
|
395
|
-
fail ArgumentError,
|
|
429
|
+
fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
|
|
396
430
|
end
|
|
397
431
|
|
|
398
432
|
@uuid = uuid
|
|
@@ -401,9 +435,9 @@ module SignRequestClient
|
|
|
401
435
|
# Custom attribute writer method checking allowed values (enum).
|
|
402
436
|
# @param [Object] integration Object to be assigned
|
|
403
437
|
def integration=(integration)
|
|
404
|
-
validator = EnumAttributeValidator.new('String', [
|
|
438
|
+
validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
405
439
|
unless validator.valid?(integration)
|
|
406
|
-
fail ArgumentError,
|
|
440
|
+
fail ArgumentError, 'invalid value for "integration", must be one of #{validator.allowable_values}.'
|
|
407
441
|
end
|
|
408
442
|
@integration = integration
|
|
409
443
|
end
|
|
@@ -418,6 +452,7 @@ module SignRequestClient
|
|
|
418
452
|
is_being_prepared == o.is_being_prepared &&
|
|
419
453
|
prepare_url == o.prepare_url &&
|
|
420
454
|
redirect_url == o.redirect_url &&
|
|
455
|
+
redirect_url_declined == o.redirect_url_declined &&
|
|
421
456
|
required_attachments == o.required_attachments &&
|
|
422
457
|
disable_attachments == o.disable_attachments &&
|
|
423
458
|
disable_text_signatures == o.disable_text_signatures &&
|
|
@@ -425,6 +460,8 @@ module SignRequestClient
|
|
|
425
460
|
disable_date == o.disable_date &&
|
|
426
461
|
disable_emails == o.disable_emails &&
|
|
427
462
|
disable_upload_signatures == o.disable_upload_signatures &&
|
|
463
|
+
disable_blockchain_proof == o.disable_blockchain_proof &&
|
|
464
|
+
text_message_verification_locked == o.text_message_verification_locked &&
|
|
428
465
|
subject == o.subject &&
|
|
429
466
|
message == o.message &&
|
|
430
467
|
who == o.who &&
|
|
@@ -446,7 +483,7 @@ module SignRequestClient
|
|
|
446
483
|
# Calculates hash code according to all attributes.
|
|
447
484
|
# @return [Fixnum] Hash code
|
|
448
485
|
def hash
|
|
449
|
-
[from_email, from_email_name, is_being_prepared, prepare_url, redirect_url, required_attachments, disable_attachments, disable_text_signatures, disable_text, disable_date, disable_emails, disable_upload_signatures, subject, message, who, send_reminders, signers, uuid, url, document, integration, integration_data].hash
|
|
486
|
+
[from_email, from_email_name, is_being_prepared, prepare_url, redirect_url, redirect_url_declined, required_attachments, disable_attachments, disable_text_signatures, disable_text, disable_date, disable_emails, disable_upload_signatures, disable_blockchain_proof, text_message_verification_locked, subject, message, who, send_reminders, signers, uuid, url, document, integration, integration_data].hash
|
|
450
487
|
end
|
|
451
488
|
|
|
452
489
|
# Builds the object from hash
|
|
@@ -459,7 +496,7 @@ module SignRequestClient
|
|
|
459
496
|
# check to ensure the input is an array given that the the attribute
|
|
460
497
|
# is documented as an array but the input is not
|
|
461
498
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
462
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
499
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
463
500
|
end
|
|
464
501
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
465
502
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -541,7 +578,7 @@ module SignRequestClient
|
|
|
541
578
|
# @return [Hash] Returns the value in the form of hash
|
|
542
579
|
def _to_hash(value)
|
|
543
580
|
if value.is_a?(Array)
|
|
544
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
581
|
+
value.compact.map { |v| _to_hash(v) }
|
|
545
582
|
elsif value.is_a?(Hash)
|
|
546
583
|
{}.tap do |hash|
|
|
547
584
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -552,7 +589,5 @@ module SignRequestClient
|
|
|
552
589
|
value
|
|
553
590
|
end
|
|
554
591
|
end
|
|
555
|
-
|
|
556
592
|
end
|
|
557
|
-
|
|
558
593
|
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 SignRequestQuickCreate
|
|
18
17
|
# Email of user sending the SignRequest (must be a validated email)
|
|
19
18
|
attr_accessor :from_email
|
|
@@ -29,6 +28,9 @@ module SignRequestClient
|
|
|
29
28
|
# URL at which SignRequest will redirect to when a document is signed
|
|
30
29
|
attr_accessor :redirect_url
|
|
31
30
|
|
|
31
|
+
# URL at which SignRequest will redirect to when a document is declined
|
|
32
|
+
attr_accessor :redirect_url_declined
|
|
33
|
+
|
|
32
34
|
# Attachments that signers are required to upload
|
|
33
35
|
attr_accessor :required_attachments
|
|
34
36
|
|
|
@@ -50,6 +52,12 @@ module SignRequestClient
|
|
|
50
52
|
# Disable usage of uploaded signatures (images)
|
|
51
53
|
attr_accessor :disable_upload_signatures
|
|
52
54
|
|
|
55
|
+
# Disables storing timestamp proof hashes in blockchain integrations.
|
|
56
|
+
attr_accessor :disable_blockchain_proof
|
|
57
|
+
|
|
58
|
+
# When true a text message verification is needed before the signer can see the document
|
|
59
|
+
attr_accessor :text_message_verification_locked
|
|
60
|
+
|
|
53
61
|
# Subject of SignRequest email
|
|
54
62
|
attr_accessor :subject
|
|
55
63
|
|
|
@@ -110,6 +118,9 @@ module SignRequestClient
|
|
|
110
118
|
# Number of days after which a finished document (signed/cancelled/declined) will be automatically deleted
|
|
111
119
|
attr_accessor :auto_delete_days
|
|
112
120
|
|
|
121
|
+
# Number of days after which a non finished document will be automatically expired
|
|
122
|
+
attr_accessor :auto_expire_days
|
|
123
|
+
|
|
113
124
|
class EnumAttributeValidator
|
|
114
125
|
attr_reader :datatype
|
|
115
126
|
attr_reader :allowable_values
|
|
@@ -140,6 +151,7 @@ module SignRequestClient
|
|
|
140
151
|
:'is_being_prepared' => :'is_being_prepared',
|
|
141
152
|
:'prepare_url' => :'prepare_url',
|
|
142
153
|
:'redirect_url' => :'redirect_url',
|
|
154
|
+
:'redirect_url_declined' => :'redirect_url_declined',
|
|
143
155
|
:'required_attachments' => :'required_attachments',
|
|
144
156
|
:'disable_attachments' => :'disable_attachments',
|
|
145
157
|
:'disable_text_signatures' => :'disable_text_signatures',
|
|
@@ -147,6 +159,8 @@ module SignRequestClient
|
|
|
147
159
|
:'disable_date' => :'disable_date',
|
|
148
160
|
:'disable_emails' => :'disable_emails',
|
|
149
161
|
:'disable_upload_signatures' => :'disable_upload_signatures',
|
|
162
|
+
:'disable_blockchain_proof' => :'disable_blockchain_proof',
|
|
163
|
+
:'text_message_verification_locked' => :'text_message_verification_locked',
|
|
150
164
|
:'subject' => :'subject',
|
|
151
165
|
:'message' => :'message',
|
|
152
166
|
:'who' => :'who',
|
|
@@ -169,7 +183,8 @@ module SignRequestClient
|
|
|
169
183
|
:'prefill_tags' => :'prefill_tags',
|
|
170
184
|
:'integrations' => :'integrations',
|
|
171
185
|
:'file_from_sf' => :'file_from_sf',
|
|
172
|
-
:'auto_delete_days' => :'auto_delete_days'
|
|
186
|
+
:'auto_delete_days' => :'auto_delete_days',
|
|
187
|
+
:'auto_expire_days' => :'auto_expire_days'
|
|
173
188
|
}
|
|
174
189
|
end
|
|
175
190
|
|
|
@@ -181,6 +196,7 @@ module SignRequestClient
|
|
|
181
196
|
:'is_being_prepared' => :'BOOLEAN',
|
|
182
197
|
:'prepare_url' => :'String',
|
|
183
198
|
:'redirect_url' => :'String',
|
|
199
|
+
:'redirect_url_declined' => :'String',
|
|
184
200
|
:'required_attachments' => :'Array<RequiredAttachment>',
|
|
185
201
|
:'disable_attachments' => :'BOOLEAN',
|
|
186
202
|
:'disable_text_signatures' => :'BOOLEAN',
|
|
@@ -188,6 +204,8 @@ module SignRequestClient
|
|
|
188
204
|
:'disable_date' => :'BOOLEAN',
|
|
189
205
|
:'disable_emails' => :'BOOLEAN',
|
|
190
206
|
:'disable_upload_signatures' => :'BOOLEAN',
|
|
207
|
+
:'disable_blockchain_proof' => :'BOOLEAN',
|
|
208
|
+
:'text_message_verification_locked' => :'BOOLEAN',
|
|
191
209
|
:'subject' => :'String',
|
|
192
210
|
:'message' => :'String',
|
|
193
211
|
:'who' => :'String',
|
|
@@ -210,7 +228,8 @@ module SignRequestClient
|
|
|
210
228
|
:'prefill_tags' => :'Array<InlinePrefillTags>',
|
|
211
229
|
:'integrations' => :'Array<InlineIntegrationData>',
|
|
212
230
|
:'file_from_sf' => :'FileFromSf',
|
|
213
|
-
:'auto_delete_days' => :'Integer'
|
|
231
|
+
:'auto_delete_days' => :'Integer',
|
|
232
|
+
:'auto_expire_days' => :'Integer'
|
|
214
233
|
}
|
|
215
234
|
end
|
|
216
235
|
|
|
@@ -220,7 +239,7 @@ module SignRequestClient
|
|
|
220
239
|
return unless attributes.is_a?(Hash)
|
|
221
240
|
|
|
222
241
|
# convert string to symbol for hash key
|
|
223
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
242
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
224
243
|
|
|
225
244
|
if attributes.has_key?(:'from_email')
|
|
226
245
|
self.from_email = attributes[:'from_email']
|
|
@@ -242,6 +261,10 @@ module SignRequestClient
|
|
|
242
261
|
self.redirect_url = attributes[:'redirect_url']
|
|
243
262
|
end
|
|
244
263
|
|
|
264
|
+
if attributes.has_key?(:'redirect_url_declined')
|
|
265
|
+
self.redirect_url_declined = attributes[:'redirect_url_declined']
|
|
266
|
+
end
|
|
267
|
+
|
|
245
268
|
if attributes.has_key?(:'required_attachments')
|
|
246
269
|
if (value = attributes[:'required_attachments']).is_a?(Array)
|
|
247
270
|
self.required_attachments = value
|
|
@@ -272,6 +295,14 @@ module SignRequestClient
|
|
|
272
295
|
self.disable_upload_signatures = attributes[:'disable_upload_signatures']
|
|
273
296
|
end
|
|
274
297
|
|
|
298
|
+
if attributes.has_key?(:'disable_blockchain_proof')
|
|
299
|
+
self.disable_blockchain_proof = attributes[:'disable_blockchain_proof']
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.has_key?(:'text_message_verification_locked')
|
|
303
|
+
self.text_message_verification_locked = attributes[:'text_message_verification_locked']
|
|
304
|
+
end
|
|
305
|
+
|
|
275
306
|
if attributes.has_key?(:'subject')
|
|
276
307
|
self.subject = attributes[:'subject']
|
|
277
308
|
end
|
|
@@ -283,7 +314,7 @@ module SignRequestClient
|
|
|
283
314
|
if attributes.has_key?(:'who')
|
|
284
315
|
self.who = attributes[:'who']
|
|
285
316
|
else
|
|
286
|
-
self.who =
|
|
317
|
+
self.who = 'o'
|
|
287
318
|
end
|
|
288
319
|
|
|
289
320
|
if attributes.has_key?(:'send_reminders')
|
|
@@ -372,6 +403,9 @@ module SignRequestClient
|
|
|
372
403
|
self.auto_delete_days = attributes[:'auto_delete_days']
|
|
373
404
|
end
|
|
374
405
|
|
|
406
|
+
if attributes.has_key?(:'auto_expire_days')
|
|
407
|
+
self.auto_expire_days = attributes[:'auto_expire_days']
|
|
408
|
+
end
|
|
375
409
|
end
|
|
376
410
|
|
|
377
411
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -379,66 +413,78 @@ module SignRequestClient
|
|
|
379
413
|
def list_invalid_properties
|
|
380
414
|
invalid_properties = Array.new
|
|
381
415
|
if !@from_email.nil? && @from_email.to_s.length > 255
|
|
382
|
-
invalid_properties.push(
|
|
416
|
+
invalid_properties.push('invalid value for "from_email", the character length must be smaller than or equal to 255.')
|
|
383
417
|
end
|
|
384
418
|
|
|
385
419
|
if !@from_email.nil? && @from_email.to_s.length < 1
|
|
386
|
-
invalid_properties.push(
|
|
420
|
+
invalid_properties.push('invalid value for "from_email", the character length must be great than or equal to 1.')
|
|
387
421
|
end
|
|
388
422
|
|
|
389
423
|
if !@from_email_name.nil? && @from_email_name.to_s.length > 255
|
|
390
|
-
invalid_properties.push(
|
|
424
|
+
invalid_properties.push('invalid value for "from_email_name", the character length must be smaller than or equal to 255.')
|
|
391
425
|
end
|
|
392
426
|
|
|
393
427
|
if !@prepare_url.nil? && @prepare_url.to_s.length < 1
|
|
394
|
-
invalid_properties.push(
|
|
428
|
+
invalid_properties.push('invalid value for "prepare_url", the character length must be great than or equal to 1.')
|
|
395
429
|
end
|
|
396
430
|
|
|
397
431
|
if !@redirect_url.nil? && @redirect_url.to_s.length > 2100
|
|
398
|
-
invalid_properties.push(
|
|
432
|
+
invalid_properties.push('invalid value for "redirect_url", the character length must be smaller than or equal to 2100.')
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
if !@redirect_url_declined.nil? && @redirect_url_declined.to_s.length > 2100
|
|
436
|
+
invalid_properties.push('invalid value for "redirect_url_declined", the character length must be smaller than or equal to 2100.')
|
|
399
437
|
end
|
|
400
438
|
|
|
401
439
|
if !@subject.nil? && @subject.to_s.length > 512
|
|
402
|
-
invalid_properties.push(
|
|
440
|
+
invalid_properties.push('invalid value for "subject", the character length must be smaller than or equal to 512.')
|
|
403
441
|
end
|
|
404
442
|
|
|
405
443
|
if @signers.nil?
|
|
406
|
-
invalid_properties.push(
|
|
444
|
+
invalid_properties.push('invalid value for "signers", signers cannot be nil.')
|
|
407
445
|
end
|
|
408
446
|
|
|
409
447
|
if !@uuid.nil? && @uuid.to_s.length < 1
|
|
410
|
-
invalid_properties.push(
|
|
448
|
+
invalid_properties.push('invalid value for "uuid", the character length must be great than or equal to 1.')
|
|
411
449
|
end
|
|
412
450
|
|
|
413
451
|
if !@name.nil? && @name.to_s.length > 255
|
|
414
|
-
invalid_properties.push(
|
|
452
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
|
415
453
|
end
|
|
416
454
|
|
|
417
455
|
if !@external_id.nil? && @external_id.to_s.length > 255
|
|
418
|
-
invalid_properties.push(
|
|
456
|
+
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 255.')
|
|
419
457
|
end
|
|
420
458
|
|
|
421
459
|
if !@frontend_id.nil? && @frontend_id.to_s.length > 255
|
|
422
|
-
invalid_properties.push(
|
|
460
|
+
invalid_properties.push('invalid value for "frontend_id", the character length must be smaller than or equal to 255.')
|
|
423
461
|
end
|
|
424
462
|
|
|
425
463
|
if !@file_from_url.nil? && @file_from_url.to_s.length > 2100
|
|
426
|
-
invalid_properties.push(
|
|
464
|
+
invalid_properties.push('invalid value for "file_from_url", the character length must be smaller than or equal to 2100.')
|
|
427
465
|
end
|
|
428
466
|
|
|
429
467
|
if !@events_callback_url.nil? && @events_callback_url.to_s.length > 2100
|
|
430
|
-
invalid_properties.push(
|
|
468
|
+
invalid_properties.push('invalid value for "events_callback_url", the character length must be smaller than or equal to 2100.')
|
|
431
469
|
end
|
|
432
470
|
|
|
433
471
|
if !@auto_delete_days.nil? && @auto_delete_days > 730
|
|
434
|
-
invalid_properties.push(
|
|
472
|
+
invalid_properties.push('invalid value for "auto_delete_days", must be smaller than or equal to 730.')
|
|
435
473
|
end
|
|
436
474
|
|
|
437
475
|
if !@auto_delete_days.nil? && @auto_delete_days < 1
|
|
438
|
-
invalid_properties.push(
|
|
476
|
+
invalid_properties.push('invalid value for "auto_delete_days", must be greater than or equal to 1.')
|
|
439
477
|
end
|
|
440
478
|
|
|
441
|
-
|
|
479
|
+
if !@auto_expire_days.nil? && @auto_expire_days > 730
|
|
480
|
+
invalid_properties.push('invalid value for "auto_expire_days", must be smaller than or equal to 730.')
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
if !@auto_expire_days.nil? && @auto_expire_days < 1
|
|
484
|
+
invalid_properties.push('invalid value for "auto_expire_days", must be greater than or equal to 1.')
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
invalid_properties
|
|
442
488
|
end
|
|
443
489
|
|
|
444
490
|
# Check to see if the all the properties in the model are valid
|
|
@@ -449,12 +495,13 @@ module SignRequestClient
|
|
|
449
495
|
return false if !@from_email_name.nil? && @from_email_name.to_s.length > 255
|
|
450
496
|
return false if !@prepare_url.nil? && @prepare_url.to_s.length < 1
|
|
451
497
|
return false if !@redirect_url.nil? && @redirect_url.to_s.length > 2100
|
|
498
|
+
return false if !@redirect_url_declined.nil? && @redirect_url_declined.to_s.length > 2100
|
|
452
499
|
return false if !@subject.nil? && @subject.to_s.length > 512
|
|
453
|
-
who_validator = EnumAttributeValidator.new('String', [
|
|
500
|
+
who_validator = EnumAttributeValidator.new('String', ['m', 'mo', 'o'])
|
|
454
501
|
return false unless who_validator.valid?(@who)
|
|
455
502
|
return false if @signers.nil?
|
|
456
503
|
return false if !@uuid.nil? && @uuid.to_s.length < 1
|
|
457
|
-
integration_validator = EnumAttributeValidator.new('String', [
|
|
504
|
+
integration_validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
458
505
|
return false unless integration_validator.valid?(@integration)
|
|
459
506
|
return false if !@name.nil? && @name.to_s.length > 255
|
|
460
507
|
return false if !@external_id.nil? && @external_id.to_s.length > 255
|
|
@@ -463,19 +510,20 @@ module SignRequestClient
|
|
|
463
510
|
return false if !@events_callback_url.nil? && @events_callback_url.to_s.length > 2100
|
|
464
511
|
return false if !@auto_delete_days.nil? && @auto_delete_days > 730
|
|
465
512
|
return false if !@auto_delete_days.nil? && @auto_delete_days < 1
|
|
466
|
-
return
|
|
513
|
+
return false if !@auto_expire_days.nil? && @auto_expire_days > 730
|
|
514
|
+
return false if !@auto_expire_days.nil? && @auto_expire_days < 1
|
|
515
|
+
true
|
|
467
516
|
end
|
|
468
517
|
|
|
469
518
|
# Custom attribute writer method with validation
|
|
470
519
|
# @param [Object] from_email Value to be assigned
|
|
471
520
|
def from_email=(from_email)
|
|
472
|
-
|
|
473
521
|
if !from_email.nil? && from_email.to_s.length > 255
|
|
474
|
-
fail ArgumentError,
|
|
522
|
+
fail ArgumentError, 'invalid value for "from_email", the character length must be smaller than or equal to 255.'
|
|
475
523
|
end
|
|
476
524
|
|
|
477
525
|
if !from_email.nil? && from_email.to_s.length < 1
|
|
478
|
-
fail ArgumentError,
|
|
526
|
+
fail ArgumentError, 'invalid value for "from_email", the character length must be great than or equal to 1.'
|
|
479
527
|
end
|
|
480
528
|
|
|
481
529
|
@from_email = from_email
|
|
@@ -484,9 +532,8 @@ module SignRequestClient
|
|
|
484
532
|
# Custom attribute writer method with validation
|
|
485
533
|
# @param [Object] from_email_name Value to be assigned
|
|
486
534
|
def from_email_name=(from_email_name)
|
|
487
|
-
|
|
488
535
|
if !from_email_name.nil? && from_email_name.to_s.length > 255
|
|
489
|
-
fail ArgumentError,
|
|
536
|
+
fail ArgumentError, 'invalid value for "from_email_name", the character length must be smaller than or equal to 255.'
|
|
490
537
|
end
|
|
491
538
|
|
|
492
539
|
@from_email_name = from_email_name
|
|
@@ -495,9 +542,8 @@ module SignRequestClient
|
|
|
495
542
|
# Custom attribute writer method with validation
|
|
496
543
|
# @param [Object] prepare_url Value to be assigned
|
|
497
544
|
def prepare_url=(prepare_url)
|
|
498
|
-
|
|
499
545
|
if !prepare_url.nil? && prepare_url.to_s.length < 1
|
|
500
|
-
fail ArgumentError,
|
|
546
|
+
fail ArgumentError, 'invalid value for "prepare_url", the character length must be great than or equal to 1.'
|
|
501
547
|
end
|
|
502
548
|
|
|
503
549
|
@prepare_url = prepare_url
|
|
@@ -506,20 +552,28 @@ module SignRequestClient
|
|
|
506
552
|
# Custom attribute writer method with validation
|
|
507
553
|
# @param [Object] redirect_url Value to be assigned
|
|
508
554
|
def redirect_url=(redirect_url)
|
|
509
|
-
|
|
510
555
|
if !redirect_url.nil? && redirect_url.to_s.length > 2100
|
|
511
|
-
fail ArgumentError,
|
|
556
|
+
fail ArgumentError, 'invalid value for "redirect_url", the character length must be smaller than or equal to 2100.'
|
|
512
557
|
end
|
|
513
558
|
|
|
514
559
|
@redirect_url = redirect_url
|
|
515
560
|
end
|
|
516
561
|
|
|
562
|
+
# Custom attribute writer method with validation
|
|
563
|
+
# @param [Object] redirect_url_declined Value to be assigned
|
|
564
|
+
def redirect_url_declined=(redirect_url_declined)
|
|
565
|
+
if !redirect_url_declined.nil? && redirect_url_declined.to_s.length > 2100
|
|
566
|
+
fail ArgumentError, 'invalid value for "redirect_url_declined", the character length must be smaller than or equal to 2100.'
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
@redirect_url_declined = redirect_url_declined
|
|
570
|
+
end
|
|
571
|
+
|
|
517
572
|
# Custom attribute writer method with validation
|
|
518
573
|
# @param [Object] subject Value to be assigned
|
|
519
574
|
def subject=(subject)
|
|
520
|
-
|
|
521
575
|
if !subject.nil? && subject.to_s.length > 512
|
|
522
|
-
fail ArgumentError,
|
|
576
|
+
fail ArgumentError, 'invalid value for "subject", the character length must be smaller than or equal to 512.'
|
|
523
577
|
end
|
|
524
578
|
|
|
525
579
|
@subject = subject
|
|
@@ -528,9 +582,9 @@ module SignRequestClient
|
|
|
528
582
|
# Custom attribute writer method checking allowed values (enum).
|
|
529
583
|
# @param [Object] who Object to be assigned
|
|
530
584
|
def who=(who)
|
|
531
|
-
validator = EnumAttributeValidator.new('String', [
|
|
585
|
+
validator = EnumAttributeValidator.new('String', ['m', 'mo', 'o'])
|
|
532
586
|
unless validator.valid?(who)
|
|
533
|
-
fail ArgumentError,
|
|
587
|
+
fail ArgumentError, 'invalid value for "who", must be one of #{validator.allowable_values}.'
|
|
534
588
|
end
|
|
535
589
|
@who = who
|
|
536
590
|
end
|
|
@@ -538,9 +592,8 @@ module SignRequestClient
|
|
|
538
592
|
# Custom attribute writer method with validation
|
|
539
593
|
# @param [Object] uuid Value to be assigned
|
|
540
594
|
def uuid=(uuid)
|
|
541
|
-
|
|
542
595
|
if !uuid.nil? && uuid.to_s.length < 1
|
|
543
|
-
fail ArgumentError,
|
|
596
|
+
fail ArgumentError, 'invalid value for "uuid", the character length must be great than or equal to 1.'
|
|
544
597
|
end
|
|
545
598
|
|
|
546
599
|
@uuid = uuid
|
|
@@ -549,9 +602,9 @@ module SignRequestClient
|
|
|
549
602
|
# Custom attribute writer method checking allowed values (enum).
|
|
550
603
|
# @param [Object] integration Object to be assigned
|
|
551
604
|
def integration=(integration)
|
|
552
|
-
validator = EnumAttributeValidator.new('String', [
|
|
605
|
+
validator = EnumAttributeValidator.new('String', ['mfiles', 'salesforce', 'formdesk', 'zapier', 'txhash'])
|
|
553
606
|
unless validator.valid?(integration)
|
|
554
|
-
fail ArgumentError,
|
|
607
|
+
fail ArgumentError, 'invalid value for "integration", must be one of #{validator.allowable_values}.'
|
|
555
608
|
end
|
|
556
609
|
@integration = integration
|
|
557
610
|
end
|
|
@@ -559,9 +612,8 @@ module SignRequestClient
|
|
|
559
612
|
# Custom attribute writer method with validation
|
|
560
613
|
# @param [Object] name Value to be assigned
|
|
561
614
|
def name=(name)
|
|
562
|
-
|
|
563
615
|
if !name.nil? && name.to_s.length > 255
|
|
564
|
-
fail ArgumentError,
|
|
616
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
|
565
617
|
end
|
|
566
618
|
|
|
567
619
|
@name = name
|
|
@@ -570,9 +622,8 @@ module SignRequestClient
|
|
|
570
622
|
# Custom attribute writer method with validation
|
|
571
623
|
# @param [Object] external_id Value to be assigned
|
|
572
624
|
def external_id=(external_id)
|
|
573
|
-
|
|
574
625
|
if !external_id.nil? && external_id.to_s.length > 255
|
|
575
|
-
fail ArgumentError,
|
|
626
|
+
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 255.'
|
|
576
627
|
end
|
|
577
628
|
|
|
578
629
|
@external_id = external_id
|
|
@@ -581,9 +632,8 @@ module SignRequestClient
|
|
|
581
632
|
# Custom attribute writer method with validation
|
|
582
633
|
# @param [Object] frontend_id Value to be assigned
|
|
583
634
|
def frontend_id=(frontend_id)
|
|
584
|
-
|
|
585
635
|
if !frontend_id.nil? && frontend_id.to_s.length > 255
|
|
586
|
-
fail ArgumentError,
|
|
636
|
+
fail ArgumentError, 'invalid value for "frontend_id", the character length must be smaller than or equal to 255.'
|
|
587
637
|
end
|
|
588
638
|
|
|
589
639
|
@frontend_id = frontend_id
|
|
@@ -592,9 +642,8 @@ module SignRequestClient
|
|
|
592
642
|
# Custom attribute writer method with validation
|
|
593
643
|
# @param [Object] file_from_url Value to be assigned
|
|
594
644
|
def file_from_url=(file_from_url)
|
|
595
|
-
|
|
596
645
|
if !file_from_url.nil? && file_from_url.to_s.length > 2100
|
|
597
|
-
fail ArgumentError,
|
|
646
|
+
fail ArgumentError, 'invalid value for "file_from_url", the character length must be smaller than or equal to 2100.'
|
|
598
647
|
end
|
|
599
648
|
|
|
600
649
|
@file_from_url = file_from_url
|
|
@@ -603,9 +652,8 @@ module SignRequestClient
|
|
|
603
652
|
# Custom attribute writer method with validation
|
|
604
653
|
# @param [Object] events_callback_url Value to be assigned
|
|
605
654
|
def events_callback_url=(events_callback_url)
|
|
606
|
-
|
|
607
655
|
if !events_callback_url.nil? && events_callback_url.to_s.length > 2100
|
|
608
|
-
fail ArgumentError,
|
|
656
|
+
fail ArgumentError, 'invalid value for "events_callback_url", the character length must be smaller than or equal to 2100.'
|
|
609
657
|
end
|
|
610
658
|
|
|
611
659
|
@events_callback_url = events_callback_url
|
|
@@ -614,18 +662,31 @@ module SignRequestClient
|
|
|
614
662
|
# Custom attribute writer method with validation
|
|
615
663
|
# @param [Object] auto_delete_days Value to be assigned
|
|
616
664
|
def auto_delete_days=(auto_delete_days)
|
|
617
|
-
|
|
618
665
|
if !auto_delete_days.nil? && auto_delete_days > 730
|
|
619
|
-
fail ArgumentError,
|
|
666
|
+
fail ArgumentError, 'invalid value for "auto_delete_days", must be smaller than or equal to 730.'
|
|
620
667
|
end
|
|
621
668
|
|
|
622
669
|
if !auto_delete_days.nil? && auto_delete_days < 1
|
|
623
|
-
fail ArgumentError,
|
|
670
|
+
fail ArgumentError, 'invalid value for "auto_delete_days", must be greater than or equal to 1.'
|
|
624
671
|
end
|
|
625
672
|
|
|
626
673
|
@auto_delete_days = auto_delete_days
|
|
627
674
|
end
|
|
628
675
|
|
|
676
|
+
# Custom attribute writer method with validation
|
|
677
|
+
# @param [Object] auto_expire_days Value to be assigned
|
|
678
|
+
def auto_expire_days=(auto_expire_days)
|
|
679
|
+
if !auto_expire_days.nil? && auto_expire_days > 730
|
|
680
|
+
fail ArgumentError, 'invalid value for "auto_expire_days", must be smaller than or equal to 730.'
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
if !auto_expire_days.nil? && auto_expire_days < 1
|
|
684
|
+
fail ArgumentError, 'invalid value for "auto_expire_days", must be greater than or equal to 1.'
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
@auto_expire_days = auto_expire_days
|
|
688
|
+
end
|
|
689
|
+
|
|
629
690
|
# Checks equality by comparing each attribute.
|
|
630
691
|
# @param [Object] Object to be compared
|
|
631
692
|
def ==(o)
|
|
@@ -636,6 +697,7 @@ module SignRequestClient
|
|
|
636
697
|
is_being_prepared == o.is_being_prepared &&
|
|
637
698
|
prepare_url == o.prepare_url &&
|
|
638
699
|
redirect_url == o.redirect_url &&
|
|
700
|
+
redirect_url_declined == o.redirect_url_declined &&
|
|
639
701
|
required_attachments == o.required_attachments &&
|
|
640
702
|
disable_attachments == o.disable_attachments &&
|
|
641
703
|
disable_text_signatures == o.disable_text_signatures &&
|
|
@@ -643,6 +705,8 @@ module SignRequestClient
|
|
|
643
705
|
disable_date == o.disable_date &&
|
|
644
706
|
disable_emails == o.disable_emails &&
|
|
645
707
|
disable_upload_signatures == o.disable_upload_signatures &&
|
|
708
|
+
disable_blockchain_proof == o.disable_blockchain_proof &&
|
|
709
|
+
text_message_verification_locked == o.text_message_verification_locked &&
|
|
646
710
|
subject == o.subject &&
|
|
647
711
|
message == o.message &&
|
|
648
712
|
who == o.who &&
|
|
@@ -665,7 +729,8 @@ module SignRequestClient
|
|
|
665
729
|
prefill_tags == o.prefill_tags &&
|
|
666
730
|
integrations == o.integrations &&
|
|
667
731
|
file_from_sf == o.file_from_sf &&
|
|
668
|
-
auto_delete_days == o.auto_delete_days
|
|
732
|
+
auto_delete_days == o.auto_delete_days &&
|
|
733
|
+
auto_expire_days == o.auto_expire_days
|
|
669
734
|
end
|
|
670
735
|
|
|
671
736
|
# @see the `==` method
|
|
@@ -677,7 +742,7 @@ module SignRequestClient
|
|
|
677
742
|
# Calculates hash code according to all attributes.
|
|
678
743
|
# @return [Fixnum] Hash code
|
|
679
744
|
def hash
|
|
680
|
-
[from_email, from_email_name, is_being_prepared, prepare_url, redirect_url, required_attachments, disable_attachments, disable_text_signatures, disable_text, disable_date, disable_emails, disable_upload_signatures, subject, message, who, send_reminders, signers, uuid, url, document, integration, integration_data, name, external_id, frontend_id, file, file_from_url, events_callback_url, file_from_content, file_from_content_name, template, prefill_tags, integrations, file_from_sf, auto_delete_days].hash
|
|
745
|
+
[from_email, from_email_name, is_being_prepared, prepare_url, redirect_url, redirect_url_declined, required_attachments, disable_attachments, disable_text_signatures, disable_text, disable_date, disable_emails, disable_upload_signatures, disable_blockchain_proof, text_message_verification_locked, subject, message, who, send_reminders, signers, uuid, url, document, integration, integration_data, name, external_id, frontend_id, file, file_from_url, events_callback_url, file_from_content, file_from_content_name, template, prefill_tags, integrations, file_from_sf, auto_delete_days, auto_expire_days].hash
|
|
681
746
|
end
|
|
682
747
|
|
|
683
748
|
# Builds the object from hash
|
|
@@ -690,7 +755,7 @@ module SignRequestClient
|
|
|
690
755
|
# check to ensure the input is an array given that the the attribute
|
|
691
756
|
# is documented as an array but the input is not
|
|
692
757
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
693
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
758
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
694
759
|
end
|
|
695
760
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
696
761
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -772,7 +837,7 @@ module SignRequestClient
|
|
|
772
837
|
# @return [Hash] Returns the value in the form of hash
|
|
773
838
|
def _to_hash(value)
|
|
774
839
|
if value.is_a?(Array)
|
|
775
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
840
|
+
value.compact.map { |v| _to_hash(v) }
|
|
776
841
|
elsif value.is_a?(Hash)
|
|
777
842
|
{}.tap do |hash|
|
|
778
843
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -783,7 +848,5 @@ module SignRequestClient
|
|
|
783
848
|
value
|
|
784
849
|
end
|
|
785
850
|
end
|
|
786
|
-
|
|
787
851
|
end
|
|
788
|
-
|
|
789
852
|
end
|