docusign_esign 3.0.0 → 3.1.0.pre.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/lib/docusign_esign.rb +464 -447
- data/{tests → lib/docusign_esign/api}/.DS_Store +0 -0
- data/lib/docusign_esign/api/accounts_api.rb +69 -8
- data/lib/docusign_esign/api/authentication_api.rb +8 -8
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +335 -0
- data/lib/docusign_esign/api/connect_api.rb +400 -0
- data/lib/docusign_esign/api/envelopes_api.rb +77 -588
- data/lib/docusign_esign/api/notary_api.rb +439 -0
- data/lib/docusign_esign/api/organizations_api.rb +232 -0
- data/lib/docusign_esign/api/tsps_api.rb +256 -0
- data/lib/docusign_esign/models/account_settings_information.rb +125 -10
- data/lib/docusign_esign/models/account_ui_settings.rb +60 -4
- data/lib/docusign_esign/models/admin_message.rb +198 -0
- data/lib/docusign_esign/models/agent.rb +21 -1
- data/lib/docusign_esign/models/approve.rb +29 -1
- data/lib/docusign_esign/models/ask_an_admin.rb +218 -0
- data/lib/docusign_esign/models/carbon_copy.rb +39 -1
- data/lib/docusign_esign/models/certified_delivery.rb +39 -1
- data/lib/docusign_esign/models/checkbox.rb +29 -1
- data/lib/docusign_esign/models/comment_thread.rb +29 -1
- data/lib/docusign_esign/models/company.rb +29 -1
- data/lib/docusign_esign/models/complete_sign_request.rb +22 -2
- data/lib/docusign_esign/models/connect_custom_configuration.rb +19 -19
- data/lib/docusign_esign/models/credential.rb +12 -2
- data/lib/docusign_esign/models/date.rb +29 -1
- data/lib/docusign_esign/models/date_signed.rb +29 -1
- data/lib/docusign_esign/models/decline.rb +29 -1
- data/lib/docusign_esign/models/document.rb +53 -1
- data/lib/docusign_esign/models/document_fields_information.rb +1 -1
- data/lib/docusign_esign/models/document_html_display_settings.rb +11 -1
- data/lib/docusign_esign/models/document_security_store.rb +1 -1
- data/lib/docusign_esign/models/document_update_info.rb +1 -1
- data/lib/docusign_esign/models/editor.rb +21 -1
- data/lib/docusign_esign/models/email.rb +29 -1
- data/lib/docusign_esign/models/email_address.rb +29 -1
- data/lib/docusign_esign/models/envelope_document.rb +11 -1
- data/lib/docusign_esign/models/envelope_id.rb +29 -1
- data/lib/docusign_esign/models/envelope_template.rb +1 -11
- data/lib/docusign_esign/models/first_name.rb +29 -1
- data/lib/docusign_esign/models/formula_tab.rb +29 -1
- data/lib/docusign_esign/models/full_name.rb +29 -1
- data/lib/docusign_esign/models/in_person_signer.rb +21 -1
- data/lib/docusign_esign/models/initial_here.rb +29 -1
- data/lib/docusign_esign/models/intermediary.rb +21 -1
- data/lib/docusign_esign/models/last_name.rb +29 -1
- data/lib/docusign_esign/models/list.rb +29 -1
- data/lib/docusign_esign/models/notarize.rb +29 -1
- data/lib/docusign_esign/models/notary.rb +217 -0
- data/lib/docusign_esign/models/notary_host.rb +21 -1
- data/lib/docusign_esign/models/notary_jurisdiction.rb +246 -0
- data/lib/docusign_esign/models/notary_jurisdiction_list.rb +250 -0
- data/lib/docusign_esign/models/notary_result.rb +199 -0
- data/lib/docusign_esign/models/note.rb +29 -1
- data/lib/docusign_esign/models/number.rb +29 -1
- data/lib/docusign_esign/models/ocr_request.rb +238 -0
- data/lib/docusign_esign/models/offline_attributes.rb +238 -0
- data/lib/docusign_esign/models/poly_line_overlay.rb +29 -1
- data/lib/docusign_esign/models/proof_service_resource_token.rb +188 -0
- data/lib/docusign_esign/models/proof_service_view_link.rb +188 -0
- data/lib/docusign_esign/models/radio.rb +20 -1
- data/lib/docusign_esign/models/recipient_email_notification.rb +1 -1
- data/lib/docusign_esign/models/recipient_proof_file.rb +188 -0
- data/lib/docusign_esign/models/revision.rb +11 -2
- data/lib/docusign_esign/models/seal_sign.rb +21 -1
- data/lib/docusign_esign/models/sender.rb +1 -1
- data/lib/docusign_esign/models/sign_hash_document.rb +12 -3
- data/lib/docusign_esign/models/sign_hash_session_info_response.rb +12 -3
- data/lib/docusign_esign/models/sign_here.rb +38 -1
- data/lib/docusign_esign/models/sign_session_info_request.rb +12 -2
- data/lib/docusign_esign/models/signature_data_info.rb +1 -1
- data/lib/docusign_esign/models/signer.rb +31 -2
- data/lib/docusign_esign/models/signer_attachment.rb +29 -1
- data/lib/docusign_esign/models/smart_contract_information.rb +198 -0
- data/lib/docusign_esign/models/smart_section.rb +29 -1
- data/lib/docusign_esign/models/smart_section_display_settings.rb +11 -1
- data/lib/docusign_esign/models/ssn.rb +29 -1
- data/lib/docusign_esign/models/stamp.rb +336 -0
- data/lib/docusign_esign/models/tab_group.rb +29 -1
- data/lib/docusign_esign/models/text.rb +29 -1
- data/lib/docusign_esign/models/time_stamp_field.rb +1 -1
- data/lib/docusign_esign/models/title.rb +29 -1
- data/lib/docusign_esign/models/tsp_health_check_request.rb +1 -1
- data/lib/docusign_esign/models/tsp_health_check_status_description.rb +1 -1
- data/lib/docusign_esign/models/update_transaction_request.rb +1 -1
- data/lib/docusign_esign/models/update_transaction_response.rb +1 -1
- data/lib/docusign_esign/models/usage_history.rb +1 -1
- data/lib/docusign_esign/models/user.rb +27 -5
- data/lib/docusign_esign/models/user_info_response.rb +1 -1
- data/lib/docusign_esign/models/user_information.rb +1 -1
- data/lib/docusign_esign/models/user_signature.rb +14 -4
- data/lib/docusign_esign/models/view.rb +29 -1
- data/lib/docusign_esign/models/witness.rb +30 -1
- data/lib/docusign_esign/models/zip.rb +29 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/tests/Gemfile.lock +1 -1
- metadata +20 -7
- data/Gemfile.lock +0 -73
- data/docusign_esign-2.1.0.gem +0 -0
@@ -14,6 +14,11 @@ require 'date'
|
|
14
14
|
module DocuSign_eSign
|
15
15
|
|
16
16
|
class Ssn
|
17
|
+
#
|
18
|
+
attr_accessor :anchor_allow_white_space_in_characters
|
19
|
+
|
20
|
+
attr_accessor :anchor_allow_white_space_in_characters_metadata
|
21
|
+
|
17
22
|
# When set to **true**, the anchor string does not consider case when matching strings in the document. The default value is **true**.
|
18
23
|
attr_accessor :anchor_case_sensitive
|
19
24
|
|
@@ -203,6 +208,8 @@ module DocuSign_eSign
|
|
203
208
|
|
204
209
|
attr_accessor :shared_metadata
|
205
210
|
|
211
|
+
attr_accessor :smart_contract_information
|
212
|
+
|
206
213
|
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
207
214
|
attr_accessor :status
|
208
215
|
|
@@ -287,6 +294,8 @@ module DocuSign_eSign
|
|
287
294
|
# Attribute mapping from ruby-style variable name to JSON key.
|
288
295
|
def self.attribute_map
|
289
296
|
{
|
297
|
+
:'anchor_allow_white_space_in_characters' => :'anchorAllowWhiteSpaceInCharacters',
|
298
|
+
:'anchor_allow_white_space_in_characters_metadata' => :'anchorAllowWhiteSpaceInCharactersMetadata',
|
290
299
|
:'anchor_case_sensitive' => :'anchorCaseSensitive',
|
291
300
|
:'anchor_case_sensitive_metadata' => :'anchorCaseSensitiveMetadata',
|
292
301
|
:'anchor_horizontal_alignment' => :'anchorHorizontalAlignment',
|
@@ -363,6 +372,7 @@ module DocuSign_eSign
|
|
363
372
|
:'sender_required_metadata' => :'senderRequiredMetadata',
|
364
373
|
:'shared' => :'shared',
|
365
374
|
:'shared_metadata' => :'sharedMetadata',
|
375
|
+
:'smart_contract_information' => :'smartContractInformation',
|
366
376
|
:'status' => :'status',
|
367
377
|
:'status_metadata' => :'statusMetadata',
|
368
378
|
:'tab_group_labels' => :'tabGroupLabels',
|
@@ -401,6 +411,8 @@ module DocuSign_eSign
|
|
401
411
|
# Attribute type mapping.
|
402
412
|
def self.swagger_types
|
403
413
|
{
|
414
|
+
:'anchor_allow_white_space_in_characters' => :'String',
|
415
|
+
:'anchor_allow_white_space_in_characters_metadata' => :'PropertyMetadata',
|
404
416
|
:'anchor_case_sensitive' => :'String',
|
405
417
|
:'anchor_case_sensitive_metadata' => :'PropertyMetadata',
|
406
418
|
:'anchor_horizontal_alignment' => :'String',
|
@@ -477,6 +489,7 @@ module DocuSign_eSign
|
|
477
489
|
:'sender_required_metadata' => :'PropertyMetadata',
|
478
490
|
:'shared' => :'String',
|
479
491
|
:'shared_metadata' => :'PropertyMetadata',
|
492
|
+
:'smart_contract_information' => :'SmartContractInformation',
|
480
493
|
:'status' => :'String',
|
481
494
|
:'status_metadata' => :'PropertyMetadata',
|
482
495
|
:'tab_group_labels' => :'Array<String>',
|
@@ -520,6 +533,14 @@ module DocuSign_eSign
|
|
520
533
|
# convert string to symbol for hash key
|
521
534
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
522
535
|
|
536
|
+
if attributes.has_key?(:'anchorAllowWhiteSpaceInCharacters')
|
537
|
+
self.anchor_allow_white_space_in_characters = attributes[:'anchorAllowWhiteSpaceInCharacters']
|
538
|
+
end
|
539
|
+
|
540
|
+
if attributes.has_key?(:'anchorAllowWhiteSpaceInCharactersMetadata')
|
541
|
+
self.anchor_allow_white_space_in_characters_metadata = attributes[:'anchorAllowWhiteSpaceInCharactersMetadata']
|
542
|
+
end
|
543
|
+
|
523
544
|
if attributes.has_key?(:'anchorCaseSensitive')
|
524
545
|
self.anchor_case_sensitive = attributes[:'anchorCaseSensitive']
|
525
546
|
end
|
@@ -824,6 +845,10 @@ module DocuSign_eSign
|
|
824
845
|
self.shared_metadata = attributes[:'sharedMetadata']
|
825
846
|
end
|
826
847
|
|
848
|
+
if attributes.has_key?(:'smartContractInformation')
|
849
|
+
self.smart_contract_information = attributes[:'smartContractInformation']
|
850
|
+
end
|
851
|
+
|
827
852
|
if attributes.has_key?(:'status')
|
828
853
|
self.status = attributes[:'status']
|
829
854
|
end
|
@@ -974,6 +999,8 @@ module DocuSign_eSign
|
|
974
999
|
def ==(o)
|
975
1000
|
return true if self.equal?(o)
|
976
1001
|
self.class == o.class &&
|
1002
|
+
anchor_allow_white_space_in_characters == o.anchor_allow_white_space_in_characters &&
|
1003
|
+
anchor_allow_white_space_in_characters_metadata == o.anchor_allow_white_space_in_characters_metadata &&
|
977
1004
|
anchor_case_sensitive == o.anchor_case_sensitive &&
|
978
1005
|
anchor_case_sensitive_metadata == o.anchor_case_sensitive_metadata &&
|
979
1006
|
anchor_horizontal_alignment == o.anchor_horizontal_alignment &&
|
@@ -1050,6 +1077,7 @@ module DocuSign_eSign
|
|
1050
1077
|
sender_required_metadata == o.sender_required_metadata &&
|
1051
1078
|
shared == o.shared &&
|
1052
1079
|
shared_metadata == o.shared_metadata &&
|
1080
|
+
smart_contract_information == o.smart_contract_information &&
|
1053
1081
|
status == o.status &&
|
1054
1082
|
status_metadata == o.status_metadata &&
|
1055
1083
|
tab_group_labels == o.tab_group_labels &&
|
@@ -1093,7 +1121,7 @@ module DocuSign_eSign
|
|
1093
1121
|
# Calculates hash code according to all attributes.
|
1094
1122
|
# @return [Fixnum] Hash code
|
1095
1123
|
def hash
|
1096
|
-
[anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, sender_required, sender_required_metadata, shared, shared_metadata, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
1124
|
+
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, sender_required, sender_required_metadata, shared, shared_metadata, smart_contract_information, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
1097
1125
|
end
|
1098
1126
|
|
1099
1127
|
# Builds the object from hash
|
@@ -0,0 +1,336 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign REST API
|
3
|
+
|
4
|
+
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2.1
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
|
16
|
+
class Stamp
|
17
|
+
#
|
18
|
+
attr_accessor :adopted_date_time
|
19
|
+
|
20
|
+
# Indicates the date and time the item was created.
|
21
|
+
attr_accessor :created_date_time
|
22
|
+
|
23
|
+
#
|
24
|
+
attr_accessor :custom_field
|
25
|
+
|
26
|
+
attr_accessor :date_stamp_properties
|
27
|
+
|
28
|
+
#
|
29
|
+
attr_accessor :disallow_user_resize_stamp
|
30
|
+
|
31
|
+
attr_accessor :error_details
|
32
|
+
|
33
|
+
#
|
34
|
+
attr_accessor :external_id
|
35
|
+
|
36
|
+
#
|
37
|
+
attr_accessor :image_base64
|
38
|
+
|
39
|
+
#
|
40
|
+
attr_accessor :image_type
|
41
|
+
|
42
|
+
# The date and time the item was last modified.
|
43
|
+
attr_accessor :last_modified_date_time
|
44
|
+
|
45
|
+
#
|
46
|
+
attr_accessor :phonetic_name
|
47
|
+
|
48
|
+
# Specifies the user signature name.
|
49
|
+
attr_accessor :signature_name
|
50
|
+
|
51
|
+
#
|
52
|
+
attr_accessor :stamp_format
|
53
|
+
|
54
|
+
#
|
55
|
+
attr_accessor :stamp_image_uri
|
56
|
+
|
57
|
+
#
|
58
|
+
attr_accessor :stamp_size_mm
|
59
|
+
|
60
|
+
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
61
|
+
attr_accessor :status
|
62
|
+
|
63
|
+
|
64
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
65
|
+
def self.attribute_map
|
66
|
+
{
|
67
|
+
:'adopted_date_time' => :'adoptedDateTime',
|
68
|
+
:'created_date_time' => :'createdDateTime',
|
69
|
+
:'custom_field' => :'customField',
|
70
|
+
:'date_stamp_properties' => :'dateStampProperties',
|
71
|
+
:'disallow_user_resize_stamp' => :'disallowUserResizeStamp',
|
72
|
+
:'error_details' => :'errorDetails',
|
73
|
+
:'external_id' => :'externalID',
|
74
|
+
:'image_base64' => :'imageBase64',
|
75
|
+
:'image_type' => :'imageType',
|
76
|
+
:'last_modified_date_time' => :'lastModifiedDateTime',
|
77
|
+
:'phonetic_name' => :'phoneticName',
|
78
|
+
:'signature_name' => :'signatureName',
|
79
|
+
:'stamp_format' => :'stampFormat',
|
80
|
+
:'stamp_image_uri' => :'stampImageUri',
|
81
|
+
:'stamp_size_mm' => :'stampSizeMM',
|
82
|
+
:'status' => :'status'
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
# Attribute type mapping.
|
87
|
+
def self.swagger_types
|
88
|
+
{
|
89
|
+
:'adopted_date_time' => :'String',
|
90
|
+
:'created_date_time' => :'String',
|
91
|
+
:'custom_field' => :'String',
|
92
|
+
:'date_stamp_properties' => :'DateStampProperties',
|
93
|
+
:'disallow_user_resize_stamp' => :'String',
|
94
|
+
:'error_details' => :'ErrorDetails',
|
95
|
+
:'external_id' => :'String',
|
96
|
+
:'image_base64' => :'String',
|
97
|
+
:'image_type' => :'String',
|
98
|
+
:'last_modified_date_time' => :'String',
|
99
|
+
:'phonetic_name' => :'String',
|
100
|
+
:'signature_name' => :'String',
|
101
|
+
:'stamp_format' => :'String',
|
102
|
+
:'stamp_image_uri' => :'String',
|
103
|
+
:'stamp_size_mm' => :'String',
|
104
|
+
:'status' => :'String'
|
105
|
+
}
|
106
|
+
end
|
107
|
+
|
108
|
+
# Initializes the object
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
def initialize(attributes = {})
|
111
|
+
return unless attributes.is_a?(Hash)
|
112
|
+
|
113
|
+
# convert string to symbol for hash key
|
114
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
115
|
+
|
116
|
+
if attributes.has_key?(:'adoptedDateTime')
|
117
|
+
self.adopted_date_time = attributes[:'adoptedDateTime']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.has_key?(:'createdDateTime')
|
121
|
+
self.created_date_time = attributes[:'createdDateTime']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'customField')
|
125
|
+
self.custom_field = attributes[:'customField']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'dateStampProperties')
|
129
|
+
self.date_stamp_properties = attributes[:'dateStampProperties']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.has_key?(:'disallowUserResizeStamp')
|
133
|
+
self.disallow_user_resize_stamp = attributes[:'disallowUserResizeStamp']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'errorDetails')
|
137
|
+
self.error_details = attributes[:'errorDetails']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'externalID')
|
141
|
+
self.external_id = attributes[:'externalID']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'imageBase64')
|
145
|
+
self.image_base64 = attributes[:'imageBase64']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'imageType')
|
149
|
+
self.image_type = attributes[:'imageType']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'lastModifiedDateTime')
|
153
|
+
self.last_modified_date_time = attributes[:'lastModifiedDateTime']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.has_key?(:'phoneticName')
|
157
|
+
self.phonetic_name = attributes[:'phoneticName']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.has_key?(:'signatureName')
|
161
|
+
self.signature_name = attributes[:'signatureName']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'stampFormat')
|
165
|
+
self.stamp_format = attributes[:'stampFormat']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'stampImageUri')
|
169
|
+
self.stamp_image_uri = attributes[:'stampImageUri']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.has_key?(:'stampSizeMM')
|
173
|
+
self.stamp_size_mm = attributes[:'stampSizeMM']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.has_key?(:'status')
|
177
|
+
self.status = attributes[:'status']
|
178
|
+
end
|
179
|
+
|
180
|
+
end
|
181
|
+
|
182
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
183
|
+
# @return Array for valid properies with the reasons
|
184
|
+
def list_invalid_properties
|
185
|
+
invalid_properties = Array.new
|
186
|
+
return invalid_properties
|
187
|
+
end
|
188
|
+
|
189
|
+
# Check to see if the all the properties in the model are valid
|
190
|
+
# @return true if the model is valid
|
191
|
+
def valid?
|
192
|
+
return true
|
193
|
+
end
|
194
|
+
|
195
|
+
# Checks equality by comparing each attribute.
|
196
|
+
# @param [Object] Object to be compared
|
197
|
+
def ==(o)
|
198
|
+
return true if self.equal?(o)
|
199
|
+
self.class == o.class &&
|
200
|
+
adopted_date_time == o.adopted_date_time &&
|
201
|
+
created_date_time == o.created_date_time &&
|
202
|
+
custom_field == o.custom_field &&
|
203
|
+
date_stamp_properties == o.date_stamp_properties &&
|
204
|
+
disallow_user_resize_stamp == o.disallow_user_resize_stamp &&
|
205
|
+
error_details == o.error_details &&
|
206
|
+
external_id == o.external_id &&
|
207
|
+
image_base64 == o.image_base64 &&
|
208
|
+
image_type == o.image_type &&
|
209
|
+
last_modified_date_time == o.last_modified_date_time &&
|
210
|
+
phonetic_name == o.phonetic_name &&
|
211
|
+
signature_name == o.signature_name &&
|
212
|
+
stamp_format == o.stamp_format &&
|
213
|
+
stamp_image_uri == o.stamp_image_uri &&
|
214
|
+
stamp_size_mm == o.stamp_size_mm &&
|
215
|
+
status == o.status
|
216
|
+
end
|
217
|
+
|
218
|
+
# @see the `==` method
|
219
|
+
# @param [Object] Object to be compared
|
220
|
+
def eql?(o)
|
221
|
+
self == o
|
222
|
+
end
|
223
|
+
|
224
|
+
# Calculates hash code according to all attributes.
|
225
|
+
# @return [Fixnum] Hash code
|
226
|
+
def hash
|
227
|
+
[adopted_date_time, created_date_time, custom_field, date_stamp_properties, disallow_user_resize_stamp, error_details, external_id, image_base64, image_type, last_modified_date_time, phonetic_name, signature_name, stamp_format, stamp_image_uri, stamp_size_mm, status].hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Builds the object from hash
|
231
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
232
|
+
# @return [Object] Returns the model itself
|
233
|
+
def build_from_hash(attributes)
|
234
|
+
return nil unless attributes.is_a?(Hash)
|
235
|
+
self.class.swagger_types.each_pair do |key, type|
|
236
|
+
if type =~ /\AArray<(.*)>/i
|
237
|
+
# check to ensure the input is an array given that the the attribute
|
238
|
+
# is documented as an array but the input is not
|
239
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
240
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
241
|
+
end
|
242
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
243
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
244
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
245
|
+
end
|
246
|
+
|
247
|
+
self
|
248
|
+
end
|
249
|
+
|
250
|
+
# Deserializes the data based on type
|
251
|
+
# @param string type Data type
|
252
|
+
# @param string value Value to be deserialized
|
253
|
+
# @return [Object] Deserialized data
|
254
|
+
def _deserialize(type, value)
|
255
|
+
case type.to_sym
|
256
|
+
when :DateTime
|
257
|
+
DateTime.parse(value)
|
258
|
+
when :Date
|
259
|
+
Date.parse(value)
|
260
|
+
when :String
|
261
|
+
value.to_s
|
262
|
+
when :Integer
|
263
|
+
value.to_i
|
264
|
+
when :Float
|
265
|
+
value.to_f
|
266
|
+
when :BOOLEAN
|
267
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
268
|
+
true
|
269
|
+
else
|
270
|
+
false
|
271
|
+
end
|
272
|
+
when :Object
|
273
|
+
# generic object (usually a Hash), return directly
|
274
|
+
value
|
275
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
276
|
+
inner_type = Regexp.last_match[:inner_type]
|
277
|
+
value.map { |v| _deserialize(inner_type, v) }
|
278
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
279
|
+
k_type = Regexp.last_match[:k_type]
|
280
|
+
v_type = Regexp.last_match[:v_type]
|
281
|
+
{}.tap do |hash|
|
282
|
+
value.each do |k, v|
|
283
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
284
|
+
end
|
285
|
+
end
|
286
|
+
else # model
|
287
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
288
|
+
temp_model.build_from_hash(value)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
# Returns the string representation of the object
|
293
|
+
# @return [String] String presentation of the object
|
294
|
+
def to_s
|
295
|
+
to_hash.to_s
|
296
|
+
end
|
297
|
+
|
298
|
+
# to_body is an alias to to_hash (backward compatibility)
|
299
|
+
# @return [Hash] Returns the object in the form of hash
|
300
|
+
def to_body
|
301
|
+
to_hash
|
302
|
+
end
|
303
|
+
|
304
|
+
# Returns the object in the form of hash
|
305
|
+
# @return [Hash] Returns the object in the form of hash
|
306
|
+
def to_hash
|
307
|
+
hash = {}
|
308
|
+
self.class.attribute_map.each_pair do |attr, param|
|
309
|
+
value = self.send(attr)
|
310
|
+
next if value.nil?
|
311
|
+
hash[param] = _to_hash(value)
|
312
|
+
end
|
313
|
+
hash
|
314
|
+
end
|
315
|
+
|
316
|
+
# Outputs non-array value in the form of hash
|
317
|
+
# For object, use to_hash. Otherwise, just return the value
|
318
|
+
# @param [Object] value Any valid value
|
319
|
+
# @return [Hash] Returns the value in the form of hash
|
320
|
+
def _to_hash(value)
|
321
|
+
if value.is_a?(Array)
|
322
|
+
value.compact.map{ |v| _to_hash(v) }
|
323
|
+
elsif value.is_a?(Hash)
|
324
|
+
{}.tap do |hash|
|
325
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
326
|
+
end
|
327
|
+
elsif value.respond_to? :to_hash
|
328
|
+
value.to_hash
|
329
|
+
else
|
330
|
+
value
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
334
|
+
end
|
335
|
+
|
336
|
+
end
|
@@ -14,6 +14,11 @@ require 'date'
|
|
14
14
|
module DocuSign_eSign
|
15
15
|
|
16
16
|
class TabGroup
|
17
|
+
#
|
18
|
+
attr_accessor :anchor_allow_white_space_in_characters
|
19
|
+
|
20
|
+
attr_accessor :anchor_allow_white_space_in_characters_metadata
|
21
|
+
|
17
22
|
# When set to **true**, the anchor string does not consider case when matching strings in the document. The default value is **true**.
|
18
23
|
attr_accessor :anchor_case_sensitive
|
19
24
|
|
@@ -141,6 +146,8 @@ module DocuSign_eSign
|
|
141
146
|
|
142
147
|
attr_accessor :recipient_id_metadata
|
143
148
|
|
149
|
+
attr_accessor :smart_contract_information
|
150
|
+
|
144
151
|
# Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
|
145
152
|
attr_accessor :status
|
146
153
|
|
@@ -210,6 +217,8 @@ module DocuSign_eSign
|
|
210
217
|
# Attribute mapping from ruby-style variable name to JSON key.
|
211
218
|
def self.attribute_map
|
212
219
|
{
|
220
|
+
:'anchor_allow_white_space_in_characters' => :'anchorAllowWhiteSpaceInCharacters',
|
221
|
+
:'anchor_allow_white_space_in_characters_metadata' => :'anchorAllowWhiteSpaceInCharactersMetadata',
|
213
222
|
:'anchor_case_sensitive' => :'anchorCaseSensitive',
|
214
223
|
:'anchor_case_sensitive_metadata' => :'anchorCaseSensitiveMetadata',
|
215
224
|
:'anchor_horizontal_alignment' => :'anchorHorizontalAlignment',
|
@@ -261,6 +270,7 @@ module DocuSign_eSign
|
|
261
270
|
:'recipient_id_guid' => :'recipientIdGuid',
|
262
271
|
:'recipient_id_guid_metadata' => :'recipientIdGuidMetadata',
|
263
272
|
:'recipient_id_metadata' => :'recipientIdMetadata',
|
273
|
+
:'smart_contract_information' => :'smartContractInformation',
|
264
274
|
:'status' => :'status',
|
265
275
|
:'status_metadata' => :'statusMetadata',
|
266
276
|
:'tab_group_labels' => :'tabGroupLabels',
|
@@ -293,6 +303,8 @@ module DocuSign_eSign
|
|
293
303
|
# Attribute type mapping.
|
294
304
|
def self.swagger_types
|
295
305
|
{
|
306
|
+
:'anchor_allow_white_space_in_characters' => :'String',
|
307
|
+
:'anchor_allow_white_space_in_characters_metadata' => :'PropertyMetadata',
|
296
308
|
:'anchor_case_sensitive' => :'String',
|
297
309
|
:'anchor_case_sensitive_metadata' => :'PropertyMetadata',
|
298
310
|
:'anchor_horizontal_alignment' => :'String',
|
@@ -344,6 +356,7 @@ module DocuSign_eSign
|
|
344
356
|
:'recipient_id_guid' => :'String',
|
345
357
|
:'recipient_id_guid_metadata' => :'PropertyMetadata',
|
346
358
|
:'recipient_id_metadata' => :'PropertyMetadata',
|
359
|
+
:'smart_contract_information' => :'SmartContractInformation',
|
347
360
|
:'status' => :'String',
|
348
361
|
:'status_metadata' => :'PropertyMetadata',
|
349
362
|
:'tab_group_labels' => :'Array<String>',
|
@@ -381,6 +394,14 @@ module DocuSign_eSign
|
|
381
394
|
# convert string to symbol for hash key
|
382
395
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
383
396
|
|
397
|
+
if attributes.has_key?(:'anchorAllowWhiteSpaceInCharacters')
|
398
|
+
self.anchor_allow_white_space_in_characters = attributes[:'anchorAllowWhiteSpaceInCharacters']
|
399
|
+
end
|
400
|
+
|
401
|
+
if attributes.has_key?(:'anchorAllowWhiteSpaceInCharactersMetadata')
|
402
|
+
self.anchor_allow_white_space_in_characters_metadata = attributes[:'anchorAllowWhiteSpaceInCharactersMetadata']
|
403
|
+
end
|
404
|
+
|
384
405
|
if attributes.has_key?(:'anchorCaseSensitive')
|
385
406
|
self.anchor_case_sensitive = attributes[:'anchorCaseSensitive']
|
386
407
|
end
|
@@ -585,6 +606,10 @@ module DocuSign_eSign
|
|
585
606
|
self.recipient_id_metadata = attributes[:'recipientIdMetadata']
|
586
607
|
end
|
587
608
|
|
609
|
+
if attributes.has_key?(:'smartContractInformation')
|
610
|
+
self.smart_contract_information = attributes[:'smartContractInformation']
|
611
|
+
end
|
612
|
+
|
588
613
|
if attributes.has_key?(:'status')
|
589
614
|
self.status = attributes[:'status']
|
590
615
|
end
|
@@ -711,6 +736,8 @@ module DocuSign_eSign
|
|
711
736
|
def ==(o)
|
712
737
|
return true if self.equal?(o)
|
713
738
|
self.class == o.class &&
|
739
|
+
anchor_allow_white_space_in_characters == o.anchor_allow_white_space_in_characters &&
|
740
|
+
anchor_allow_white_space_in_characters_metadata == o.anchor_allow_white_space_in_characters_metadata &&
|
714
741
|
anchor_case_sensitive == o.anchor_case_sensitive &&
|
715
742
|
anchor_case_sensitive_metadata == o.anchor_case_sensitive_metadata &&
|
716
743
|
anchor_horizontal_alignment == o.anchor_horizontal_alignment &&
|
@@ -762,6 +789,7 @@ module DocuSign_eSign
|
|
762
789
|
recipient_id_guid == o.recipient_id_guid &&
|
763
790
|
recipient_id_guid_metadata == o.recipient_id_guid_metadata &&
|
764
791
|
recipient_id_metadata == o.recipient_id_metadata &&
|
792
|
+
smart_contract_information == o.smart_contract_information &&
|
765
793
|
status == o.status &&
|
766
794
|
status_metadata == o.status_metadata &&
|
767
795
|
tab_group_labels == o.tab_group_labels &&
|
@@ -799,7 +827,7 @@ module DocuSign_eSign
|
|
799
827
|
# Calculates hash code according to all attributes.
|
800
828
|
# @return [Fixnum] Hash code
|
801
829
|
def hash
|
802
|
-
[anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, group_label, group_label_metadata, group_rule, group_rule_metadata, height, height_metadata, maximum_allowed, maximum_allowed_metadata, merge_field, merge_field_xml, minimum_required, minimum_required_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_order, tab_order_metadata, tab_scope, tab_scope_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, validation_message, validation_message_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
830
|
+
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, group_label, group_label_metadata, group_rule, group_rule_metadata, height, height_metadata, maximum_allowed, maximum_allowed_metadata, merge_field, merge_field_xml, minimum_required, minimum_required_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, smart_contract_information, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_order, tab_order_metadata, tab_scope, tab_scope_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, validation_message, validation_message_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
803
831
|
end
|
804
832
|
|
805
833
|
# Builds the object from hash
|