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 Signer
|
|
18
17
|
attr_accessor :email
|
|
19
18
|
|
|
@@ -71,16 +70,24 @@ module SignRequestClient
|
|
|
71
70
|
|
|
72
71
|
attr_accessor :inputs
|
|
73
72
|
|
|
73
|
+
# Place an approval stamp on a document when a signer approves a document
|
|
74
|
+
attr_accessor :use_stamp_for_approve_only
|
|
75
|
+
|
|
74
76
|
attr_accessor :embed_url
|
|
75
77
|
|
|
76
78
|
attr_accessor :attachments
|
|
77
79
|
|
|
78
80
|
attr_accessor :redirect_url
|
|
79
81
|
|
|
82
|
+
attr_accessor :redirect_url_declined
|
|
83
|
+
|
|
80
84
|
attr_accessor :after_document
|
|
81
85
|
|
|
82
86
|
attr_accessor :integrations
|
|
83
87
|
|
|
88
|
+
# Require the signer to enter this password before signing a document. This field is write only.
|
|
89
|
+
attr_accessor :password
|
|
90
|
+
|
|
84
91
|
class EnumAttributeValidator
|
|
85
92
|
attr_reader :datatype
|
|
86
93
|
attr_reader :allowable_values
|
|
@@ -134,11 +141,14 @@ module SignRequestClient
|
|
|
134
141
|
:'message' => :'message',
|
|
135
142
|
:'embed_url_user_id' => :'embed_url_user_id',
|
|
136
143
|
:'inputs' => :'inputs',
|
|
144
|
+
:'use_stamp_for_approve_only' => :'use_stamp_for_approve_only',
|
|
137
145
|
:'embed_url' => :'embed_url',
|
|
138
146
|
:'attachments' => :'attachments',
|
|
139
147
|
:'redirect_url' => :'redirect_url',
|
|
148
|
+
:'redirect_url_declined' => :'redirect_url_declined',
|
|
140
149
|
:'after_document' => :'after_document',
|
|
141
|
-
:'integrations' => :'integrations'
|
|
150
|
+
:'integrations' => :'integrations',
|
|
151
|
+
:'password' => :'password'
|
|
142
152
|
}
|
|
143
153
|
end
|
|
144
154
|
|
|
@@ -173,11 +183,14 @@ module SignRequestClient
|
|
|
173
183
|
:'message' => :'String',
|
|
174
184
|
:'embed_url_user_id' => :'String',
|
|
175
185
|
:'inputs' => :'Array<SignerInputs>',
|
|
186
|
+
:'use_stamp_for_approve_only' => :'BOOLEAN',
|
|
176
187
|
:'embed_url' => :'String',
|
|
177
188
|
:'attachments' => :'Array<SignerAttachment>',
|
|
178
189
|
:'redirect_url' => :'String',
|
|
190
|
+
:'redirect_url_declined' => :'String',
|
|
179
191
|
:'after_document' => :'String',
|
|
180
|
-
:'integrations' => :'Array<InlineDocumentSignerIntegrationData>'
|
|
192
|
+
:'integrations' => :'Array<InlineDocumentSignerIntegrationData>',
|
|
193
|
+
:'password' => :'String'
|
|
181
194
|
}
|
|
182
195
|
end
|
|
183
196
|
|
|
@@ -187,7 +200,7 @@ module SignRequestClient
|
|
|
187
200
|
return unless attributes.is_a?(Hash)
|
|
188
201
|
|
|
189
202
|
# convert string to symbol for hash key
|
|
190
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
203
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
191
204
|
|
|
192
205
|
if attributes.has_key?(:'email')
|
|
193
206
|
self.email = attributes[:'email']
|
|
@@ -305,6 +318,10 @@ module SignRequestClient
|
|
|
305
318
|
end
|
|
306
319
|
end
|
|
307
320
|
|
|
321
|
+
if attributes.has_key?(:'use_stamp_for_approve_only')
|
|
322
|
+
self.use_stamp_for_approve_only = attributes[:'use_stamp_for_approve_only']
|
|
323
|
+
end
|
|
324
|
+
|
|
308
325
|
if attributes.has_key?(:'embed_url')
|
|
309
326
|
self.embed_url = attributes[:'embed_url']
|
|
310
327
|
end
|
|
@@ -319,6 +336,10 @@ module SignRequestClient
|
|
|
319
336
|
self.redirect_url = attributes[:'redirect_url']
|
|
320
337
|
end
|
|
321
338
|
|
|
339
|
+
if attributes.has_key?(:'redirect_url_declined')
|
|
340
|
+
self.redirect_url_declined = attributes[:'redirect_url_declined']
|
|
341
|
+
end
|
|
342
|
+
|
|
322
343
|
if attributes.has_key?(:'after_document')
|
|
323
344
|
self.after_document = attributes[:'after_document']
|
|
324
345
|
end
|
|
@@ -329,6 +350,9 @@ module SignRequestClient
|
|
|
329
350
|
end
|
|
330
351
|
end
|
|
331
352
|
|
|
353
|
+
if attributes.has_key?(:'password')
|
|
354
|
+
self.password = attributes[:'password']
|
|
355
|
+
end
|
|
332
356
|
end
|
|
333
357
|
|
|
334
358
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -336,70 +360,78 @@ module SignRequestClient
|
|
|
336
360
|
def list_invalid_properties
|
|
337
361
|
invalid_properties = Array.new
|
|
338
362
|
if @email.nil?
|
|
339
|
-
invalid_properties.push(
|
|
363
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
|
340
364
|
end
|
|
341
365
|
|
|
342
366
|
if @email.to_s.length > 255
|
|
343
|
-
invalid_properties.push(
|
|
367
|
+
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 255.')
|
|
344
368
|
end
|
|
345
369
|
|
|
346
370
|
if @email.to_s.length < 1
|
|
347
|
-
invalid_properties.push(
|
|
371
|
+
invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
|
|
348
372
|
end
|
|
349
373
|
|
|
350
374
|
if !@display_name.nil? && @display_name.to_s.length < 1
|
|
351
|
-
invalid_properties.push(
|
|
375
|
+
invalid_properties.push('invalid value for "display_name", the character length must be great than or equal to 1.')
|
|
352
376
|
end
|
|
353
377
|
|
|
354
378
|
if !@first_name.nil? && @first_name.to_s.length > 255
|
|
355
|
-
invalid_properties.push(
|
|
379
|
+
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 255.')
|
|
356
380
|
end
|
|
357
381
|
|
|
358
382
|
if !@last_name.nil? && @last_name.to_s.length > 255
|
|
359
|
-
invalid_properties.push(
|
|
383
|
+
invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 255.')
|
|
360
384
|
end
|
|
361
385
|
|
|
362
386
|
if !@order.nil? && @order > 2147483647
|
|
363
|
-
invalid_properties.push(
|
|
387
|
+
invalid_properties.push('invalid value for "order", must be smaller than or equal to 2147483647.')
|
|
364
388
|
end
|
|
365
389
|
|
|
366
390
|
if !@order.nil? && @order < 0
|
|
367
|
-
invalid_properties.push(
|
|
391
|
+
invalid_properties.push('invalid value for "order", must be greater than or equal to 0.')
|
|
368
392
|
end
|
|
369
393
|
|
|
370
394
|
if !@verify_phone_number.nil? && @verify_phone_number.to_s.length > 255
|
|
371
|
-
invalid_properties.push(
|
|
395
|
+
invalid_properties.push('invalid value for "verify_phone_number", the character length must be smaller than or equal to 255.')
|
|
372
396
|
end
|
|
373
397
|
|
|
374
398
|
if !@verify_bank_account.nil? && @verify_bank_account.to_s.length > 255
|
|
375
|
-
invalid_properties.push(
|
|
399
|
+
invalid_properties.push('invalid value for "verify_bank_account", the character length must be smaller than or equal to 255.')
|
|
376
400
|
end
|
|
377
401
|
|
|
378
402
|
if !@forwarded_to_email.nil? && @forwarded_to_email.to_s.length < 1
|
|
379
|
-
invalid_properties.push(
|
|
403
|
+
invalid_properties.push('invalid value for "forwarded_to_email", the character length must be great than or equal to 1.')
|
|
380
404
|
end
|
|
381
405
|
|
|
382
406
|
if !@forwarded_reason.nil? && @forwarded_reason.to_s.length < 1
|
|
383
|
-
invalid_properties.push(
|
|
407
|
+
invalid_properties.push('invalid value for "forwarded_reason", the character length must be great than or equal to 1.')
|
|
384
408
|
end
|
|
385
409
|
|
|
386
410
|
if !@message.nil? && @message.to_s.length < 1
|
|
387
|
-
invalid_properties.push(
|
|
411
|
+
invalid_properties.push('invalid value for "message", the character length must be great than or equal to 1.')
|
|
388
412
|
end
|
|
389
413
|
|
|
390
414
|
if !@embed_url_user_id.nil? && @embed_url_user_id.to_s.length > 255
|
|
391
|
-
invalid_properties.push(
|
|
415
|
+
invalid_properties.push('invalid value for "embed_url_user_id", the character length must be smaller than or equal to 255.')
|
|
392
416
|
end
|
|
393
417
|
|
|
394
418
|
if !@embed_url.nil? && @embed_url.to_s.length < 1
|
|
395
|
-
invalid_properties.push(
|
|
419
|
+
invalid_properties.push('invalid value for "embed_url", the character length must be great than or equal to 1.')
|
|
396
420
|
end
|
|
397
421
|
|
|
398
422
|
if !@redirect_url.nil? && @redirect_url.to_s.length > 2100
|
|
399
|
-
invalid_properties.push(
|
|
423
|
+
invalid_properties.push('invalid value for "redirect_url", the character length must be smaller than or equal to 2100.')
|
|
400
424
|
end
|
|
401
425
|
|
|
402
|
-
|
|
426
|
+
if !@redirect_url_declined.nil? && @redirect_url_declined.to_s.length > 2100
|
|
427
|
+
invalid_properties.push('invalid value for "redirect_url_declined", the character length must be smaller than or equal to 2100.')
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
if !@password.nil? && @password.to_s.length < 1
|
|
431
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
invalid_properties
|
|
403
435
|
end
|
|
404
436
|
|
|
405
437
|
# Check to see if the all the properties in the model are valid
|
|
@@ -413,7 +445,7 @@ module SignRequestClient
|
|
|
413
445
|
return false if !@last_name.nil? && @last_name.to_s.length > 255
|
|
414
446
|
return false if !@order.nil? && @order > 2147483647
|
|
415
447
|
return false if !@order.nil? && @order < 0
|
|
416
|
-
language_validator = EnumAttributeValidator.new('String', [
|
|
448
|
+
language_validator = EnumAttributeValidator.new('String', ['en', 'en-gb', 'nl', 'fr', 'de', 'he', 'da', 'fi', 'hu', 'it', 'no', 'pl', 'pt', 'es', 'sv', 'ru'])
|
|
417
449
|
return false unless language_validator.valid?(@language)
|
|
418
450
|
return false if !@verify_phone_number.nil? && @verify_phone_number.to_s.length > 255
|
|
419
451
|
return false if !@verify_bank_account.nil? && @verify_bank_account.to_s.length > 255
|
|
@@ -423,22 +455,24 @@ module SignRequestClient
|
|
|
423
455
|
return false if !@embed_url_user_id.nil? && @embed_url_user_id.to_s.length > 255
|
|
424
456
|
return false if !@embed_url.nil? && @embed_url.to_s.length < 1
|
|
425
457
|
return false if !@redirect_url.nil? && @redirect_url.to_s.length > 2100
|
|
426
|
-
return
|
|
458
|
+
return false if !@redirect_url_declined.nil? && @redirect_url_declined.to_s.length > 2100
|
|
459
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
|
460
|
+
true
|
|
427
461
|
end
|
|
428
462
|
|
|
429
463
|
# Custom attribute writer method with validation
|
|
430
464
|
# @param [Object] email Value to be assigned
|
|
431
465
|
def email=(email)
|
|
432
466
|
if email.nil?
|
|
433
|
-
fail ArgumentError,
|
|
467
|
+
fail ArgumentError, 'email cannot be nil'
|
|
434
468
|
end
|
|
435
469
|
|
|
436
470
|
if email.to_s.length > 255
|
|
437
|
-
fail ArgumentError,
|
|
471
|
+
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 255.'
|
|
438
472
|
end
|
|
439
473
|
|
|
440
474
|
if email.to_s.length < 1
|
|
441
|
-
fail ArgumentError,
|
|
475
|
+
fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
|
|
442
476
|
end
|
|
443
477
|
|
|
444
478
|
@email = email
|
|
@@ -447,9 +481,8 @@ module SignRequestClient
|
|
|
447
481
|
# Custom attribute writer method with validation
|
|
448
482
|
# @param [Object] display_name Value to be assigned
|
|
449
483
|
def display_name=(display_name)
|
|
450
|
-
|
|
451
484
|
if !display_name.nil? && display_name.to_s.length < 1
|
|
452
|
-
fail ArgumentError,
|
|
485
|
+
fail ArgumentError, 'invalid value for "display_name", the character length must be great than or equal to 1.'
|
|
453
486
|
end
|
|
454
487
|
|
|
455
488
|
@display_name = display_name
|
|
@@ -458,9 +491,8 @@ module SignRequestClient
|
|
|
458
491
|
# Custom attribute writer method with validation
|
|
459
492
|
# @param [Object] first_name Value to be assigned
|
|
460
493
|
def first_name=(first_name)
|
|
461
|
-
|
|
462
494
|
if !first_name.nil? && first_name.to_s.length > 255
|
|
463
|
-
fail ArgumentError,
|
|
495
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 255.'
|
|
464
496
|
end
|
|
465
497
|
|
|
466
498
|
@first_name = first_name
|
|
@@ -469,9 +501,8 @@ module SignRequestClient
|
|
|
469
501
|
# Custom attribute writer method with validation
|
|
470
502
|
# @param [Object] last_name Value to be assigned
|
|
471
503
|
def last_name=(last_name)
|
|
472
|
-
|
|
473
504
|
if !last_name.nil? && last_name.to_s.length > 255
|
|
474
|
-
fail ArgumentError,
|
|
505
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 255.'
|
|
475
506
|
end
|
|
476
507
|
|
|
477
508
|
@last_name = last_name
|
|
@@ -480,13 +511,12 @@ module SignRequestClient
|
|
|
480
511
|
# Custom attribute writer method with validation
|
|
481
512
|
# @param [Object] order Value to be assigned
|
|
482
513
|
def order=(order)
|
|
483
|
-
|
|
484
514
|
if !order.nil? && order > 2147483647
|
|
485
|
-
fail ArgumentError,
|
|
515
|
+
fail ArgumentError, 'invalid value for "order", must be smaller than or equal to 2147483647.'
|
|
486
516
|
end
|
|
487
517
|
|
|
488
518
|
if !order.nil? && order < 0
|
|
489
|
-
fail ArgumentError,
|
|
519
|
+
fail ArgumentError, 'invalid value for "order", must be greater than or equal to 0.'
|
|
490
520
|
end
|
|
491
521
|
|
|
492
522
|
@order = order
|
|
@@ -495,9 +525,9 @@ module SignRequestClient
|
|
|
495
525
|
# Custom attribute writer method checking allowed values (enum).
|
|
496
526
|
# @param [Object] language Object to be assigned
|
|
497
527
|
def language=(language)
|
|
498
|
-
validator = EnumAttributeValidator.new('String', [
|
|
528
|
+
validator = EnumAttributeValidator.new('String', ['en', 'en-gb', 'nl', 'fr', 'de', 'he', 'da', 'fi', 'hu', 'it', 'no', 'pl', 'pt', 'es', 'sv', 'ru'])
|
|
499
529
|
unless validator.valid?(language)
|
|
500
|
-
fail ArgumentError,
|
|
530
|
+
fail ArgumentError, 'invalid value for "language", must be one of #{validator.allowable_values}.'
|
|
501
531
|
end
|
|
502
532
|
@language = language
|
|
503
533
|
end
|
|
@@ -505,9 +535,8 @@ module SignRequestClient
|
|
|
505
535
|
# Custom attribute writer method with validation
|
|
506
536
|
# @param [Object] verify_phone_number Value to be assigned
|
|
507
537
|
def verify_phone_number=(verify_phone_number)
|
|
508
|
-
|
|
509
538
|
if !verify_phone_number.nil? && verify_phone_number.to_s.length > 255
|
|
510
|
-
fail ArgumentError,
|
|
539
|
+
fail ArgumentError, 'invalid value for "verify_phone_number", the character length must be smaller than or equal to 255.'
|
|
511
540
|
end
|
|
512
541
|
|
|
513
542
|
@verify_phone_number = verify_phone_number
|
|
@@ -516,9 +545,8 @@ module SignRequestClient
|
|
|
516
545
|
# Custom attribute writer method with validation
|
|
517
546
|
# @param [Object] verify_bank_account Value to be assigned
|
|
518
547
|
def verify_bank_account=(verify_bank_account)
|
|
519
|
-
|
|
520
548
|
if !verify_bank_account.nil? && verify_bank_account.to_s.length > 255
|
|
521
|
-
fail ArgumentError,
|
|
549
|
+
fail ArgumentError, 'invalid value for "verify_bank_account", the character length must be smaller than or equal to 255.'
|
|
522
550
|
end
|
|
523
551
|
|
|
524
552
|
@verify_bank_account = verify_bank_account
|
|
@@ -527,9 +555,8 @@ module SignRequestClient
|
|
|
527
555
|
# Custom attribute writer method with validation
|
|
528
556
|
# @param [Object] forwarded_to_email Value to be assigned
|
|
529
557
|
def forwarded_to_email=(forwarded_to_email)
|
|
530
|
-
|
|
531
558
|
if !forwarded_to_email.nil? && forwarded_to_email.to_s.length < 1
|
|
532
|
-
fail ArgumentError,
|
|
559
|
+
fail ArgumentError, 'invalid value for "forwarded_to_email", the character length must be great than or equal to 1.'
|
|
533
560
|
end
|
|
534
561
|
|
|
535
562
|
@forwarded_to_email = forwarded_to_email
|
|
@@ -538,9 +565,8 @@ module SignRequestClient
|
|
|
538
565
|
# Custom attribute writer method with validation
|
|
539
566
|
# @param [Object] forwarded_reason Value to be assigned
|
|
540
567
|
def forwarded_reason=(forwarded_reason)
|
|
541
|
-
|
|
542
568
|
if !forwarded_reason.nil? && forwarded_reason.to_s.length < 1
|
|
543
|
-
fail ArgumentError,
|
|
569
|
+
fail ArgumentError, 'invalid value for "forwarded_reason", the character length must be great than or equal to 1.'
|
|
544
570
|
end
|
|
545
571
|
|
|
546
572
|
@forwarded_reason = forwarded_reason
|
|
@@ -549,9 +575,8 @@ module SignRequestClient
|
|
|
549
575
|
# Custom attribute writer method with validation
|
|
550
576
|
# @param [Object] message Value to be assigned
|
|
551
577
|
def message=(message)
|
|
552
|
-
|
|
553
578
|
if !message.nil? && message.to_s.length < 1
|
|
554
|
-
fail ArgumentError,
|
|
579
|
+
fail ArgumentError, 'invalid value for "message", the character length must be great than or equal to 1.'
|
|
555
580
|
end
|
|
556
581
|
|
|
557
582
|
@message = message
|
|
@@ -560,9 +585,8 @@ module SignRequestClient
|
|
|
560
585
|
# Custom attribute writer method with validation
|
|
561
586
|
# @param [Object] embed_url_user_id Value to be assigned
|
|
562
587
|
def embed_url_user_id=(embed_url_user_id)
|
|
563
|
-
|
|
564
588
|
if !embed_url_user_id.nil? && embed_url_user_id.to_s.length > 255
|
|
565
|
-
fail ArgumentError,
|
|
589
|
+
fail ArgumentError, 'invalid value for "embed_url_user_id", the character length must be smaller than or equal to 255.'
|
|
566
590
|
end
|
|
567
591
|
|
|
568
592
|
@embed_url_user_id = embed_url_user_id
|
|
@@ -571,9 +595,8 @@ module SignRequestClient
|
|
|
571
595
|
# Custom attribute writer method with validation
|
|
572
596
|
# @param [Object] embed_url Value to be assigned
|
|
573
597
|
def embed_url=(embed_url)
|
|
574
|
-
|
|
575
598
|
if !embed_url.nil? && embed_url.to_s.length < 1
|
|
576
|
-
fail ArgumentError,
|
|
599
|
+
fail ArgumentError, 'invalid value for "embed_url", the character length must be great than or equal to 1.'
|
|
577
600
|
end
|
|
578
601
|
|
|
579
602
|
@embed_url = embed_url
|
|
@@ -582,14 +605,33 @@ module SignRequestClient
|
|
|
582
605
|
# Custom attribute writer method with validation
|
|
583
606
|
# @param [Object] redirect_url Value to be assigned
|
|
584
607
|
def redirect_url=(redirect_url)
|
|
585
|
-
|
|
586
608
|
if !redirect_url.nil? && redirect_url.to_s.length > 2100
|
|
587
|
-
fail ArgumentError,
|
|
609
|
+
fail ArgumentError, 'invalid value for "redirect_url", the character length must be smaller than or equal to 2100.'
|
|
588
610
|
end
|
|
589
611
|
|
|
590
612
|
@redirect_url = redirect_url
|
|
591
613
|
end
|
|
592
614
|
|
|
615
|
+
# Custom attribute writer method with validation
|
|
616
|
+
# @param [Object] redirect_url_declined Value to be assigned
|
|
617
|
+
def redirect_url_declined=(redirect_url_declined)
|
|
618
|
+
if !redirect_url_declined.nil? && redirect_url_declined.to_s.length > 2100
|
|
619
|
+
fail ArgumentError, 'invalid value for "redirect_url_declined", the character length must be smaller than or equal to 2100.'
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
@redirect_url_declined = redirect_url_declined
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
# Custom attribute writer method with validation
|
|
626
|
+
# @param [Object] password Value to be assigned
|
|
627
|
+
def password=(password)
|
|
628
|
+
if !password.nil? && password.to_s.length < 1
|
|
629
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
@password = password
|
|
633
|
+
end
|
|
634
|
+
|
|
593
635
|
# Checks equality by comparing each attribute.
|
|
594
636
|
# @param [Object] Object to be compared
|
|
595
637
|
def ==(o)
|
|
@@ -623,11 +665,14 @@ module SignRequestClient
|
|
|
623
665
|
message == o.message &&
|
|
624
666
|
embed_url_user_id == o.embed_url_user_id &&
|
|
625
667
|
inputs == o.inputs &&
|
|
668
|
+
use_stamp_for_approve_only == o.use_stamp_for_approve_only &&
|
|
626
669
|
embed_url == o.embed_url &&
|
|
627
670
|
attachments == o.attachments &&
|
|
628
671
|
redirect_url == o.redirect_url &&
|
|
672
|
+
redirect_url_declined == o.redirect_url_declined &&
|
|
629
673
|
after_document == o.after_document &&
|
|
630
|
-
integrations == o.integrations
|
|
674
|
+
integrations == o.integrations &&
|
|
675
|
+
password == o.password
|
|
631
676
|
end
|
|
632
677
|
|
|
633
678
|
# @see the `==` method
|
|
@@ -639,7 +684,7 @@ module SignRequestClient
|
|
|
639
684
|
# Calculates hash code according to all attributes.
|
|
640
685
|
# @return [Fixnum] Hash code
|
|
641
686
|
def hash
|
|
642
|
-
[email, display_name, first_name, last_name, email_viewed, viewed, signed, downloaded, signed_on, needs_to_sign, approve_only, notify_only, in_person, order, language, force_language, emailed, verify_phone_number, verify_bank_account, declined, declined_on, forwarded, forwarded_on, forwarded_to_email, forwarded_reason, message, embed_url_user_id, inputs, embed_url, attachments, redirect_url, after_document, integrations].hash
|
|
687
|
+
[email, display_name, first_name, last_name, email_viewed, viewed, signed, downloaded, signed_on, needs_to_sign, approve_only, notify_only, in_person, order, language, force_language, emailed, verify_phone_number, verify_bank_account, declined, declined_on, forwarded, forwarded_on, forwarded_to_email, forwarded_reason, message, embed_url_user_id, inputs, use_stamp_for_approve_only, embed_url, attachments, redirect_url, redirect_url_declined, after_document, integrations, password].hash
|
|
643
688
|
end
|
|
644
689
|
|
|
645
690
|
# Builds the object from hash
|
|
@@ -652,7 +697,7 @@ module SignRequestClient
|
|
|
652
697
|
# check to ensure the input is an array given that the the attribute
|
|
653
698
|
# is documented as an array but the input is not
|
|
654
699
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
655
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
700
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
656
701
|
end
|
|
657
702
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
658
703
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -734,7 +779,7 @@ module SignRequestClient
|
|
|
734
779
|
# @return [Hash] Returns the value in the form of hash
|
|
735
780
|
def _to_hash(value)
|
|
736
781
|
if value.is_a?(Array)
|
|
737
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
782
|
+
value.compact.map { |v| _to_hash(v) }
|
|
738
783
|
elsif value.is_a?(Hash)
|
|
739
784
|
{}.tap do |hash|
|
|
740
785
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -745,7 +790,5 @@ module SignRequestClient
|
|
|
745
790
|
value
|
|
746
791
|
end
|
|
747
792
|
end
|
|
748
|
-
|
|
749
793
|
end
|
|
750
|
-
|
|
751
794
|
end
|