docusign_esign 3.17.0 → 3.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/docusign_esign/api/envelopes_api.rb +51 -0
- data/lib/docusign_esign/api/power_forms_api.rb +8 -0
- data/lib/docusign_esign/client/api_client.rb +1 -1
- data/lib/docusign_esign/models/account_information.rb +10 -1
- data/lib/docusign_esign/models/account_settings_information.rb +77 -1
- data/lib/docusign_esign/models/agent.rb +13 -1
- data/lib/docusign_esign/models/carbon_copy.rb +13 -1
- data/lib/docusign_esign/models/certified_delivery.rb +13 -1
- data/lib/docusign_esign/models/connect_custom_configuration.rb +11 -1
- data/lib/docusign_esign/models/connect_historical_envelope_republish.rb +195 -0
- data/lib/docusign_esign/models/consent_details.rb +204 -0
- data/lib/docusign_esign/models/editor.rb +13 -1
- data/lib/docusign_esign/models/envelope_publish_transaction.rb +307 -0
- data/lib/docusign_esign/models/envelope_publish_transaction_error_rollup.rb +194 -0
- data/lib/docusign_esign/models/intermediary.rb +13 -1
- data/lib/docusign_esign/models/notary_recipient.rb +23 -1
- data/lib/docusign_esign/models/participant.rb +13 -1
- data/lib/docusign_esign/models/scheduled_sending.rb +11 -1
- data/lib/docusign_esign/models/signer.rb +13 -1
- data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
- data/lib/docusign_esign/models/witness.rb +13 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/lib/docusign_esign.rb +4 -0
- metadata +10 -6
@@ -42,6 +42,9 @@ module DocuSign_eSign
|
|
42
42
|
#
|
43
43
|
attr_accessor :completed_count
|
44
44
|
|
45
|
+
#
|
46
|
+
attr_accessor :consent_details_list
|
47
|
+
|
45
48
|
# An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the envelope status but otherwise not used by DocuSign. Each customField string can be a maximum of 100 characters.
|
46
49
|
attr_accessor :custom_fields
|
47
50
|
|
@@ -228,6 +231,7 @@ module DocuSign_eSign
|
|
228
231
|
:'auto_responded_reason' => :'autoRespondedReason',
|
229
232
|
:'client_user_id' => :'clientUserId',
|
230
233
|
:'completed_count' => :'completedCount',
|
234
|
+
:'consent_details_list' => :'consentDetailsList',
|
231
235
|
:'custom_fields' => :'customFields',
|
232
236
|
:'declined_date_time' => :'declinedDateTime',
|
233
237
|
:'declined_reason' => :'declinedReason',
|
@@ -309,6 +313,7 @@ module DocuSign_eSign
|
|
309
313
|
:'auto_responded_reason' => :'String',
|
310
314
|
:'client_user_id' => :'String',
|
311
315
|
:'completed_count' => :'String',
|
316
|
+
:'consent_details_list' => :'Array<ConsentDetails>',
|
312
317
|
:'custom_fields' => :'Array<String>',
|
313
318
|
:'declined_date_time' => :'String',
|
314
319
|
:'declined_reason' => :'String',
|
@@ -427,6 +432,12 @@ module DocuSign_eSign
|
|
427
432
|
self.completed_count = attributes[:'completedCount']
|
428
433
|
end
|
429
434
|
|
435
|
+
if attributes.has_key?(:'consentDetailsList')
|
436
|
+
if (value = attributes[:'consentDetailsList']).is_a?(Array)
|
437
|
+
self.consent_details_list = value
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
430
441
|
if attributes.has_key?(:'customFields')
|
431
442
|
if (value = attributes[:'customFields']).is_a?(Array)
|
432
443
|
self.custom_fields = value
|
@@ -730,6 +741,7 @@ module DocuSign_eSign
|
|
730
741
|
auto_responded_reason == o.auto_responded_reason &&
|
731
742
|
client_user_id == o.client_user_id &&
|
732
743
|
completed_count == o.completed_count &&
|
744
|
+
consent_details_list == o.consent_details_list &&
|
733
745
|
custom_fields == o.custom_fields &&
|
734
746
|
declined_date_time == o.declined_date_time &&
|
735
747
|
declined_reason == o.declined_reason &&
|
@@ -806,7 +818,7 @@ module DocuSign_eSign
|
|
806
818
|
# Calculates hash code according to all attributes.
|
807
819
|
# @return [Fixnum] Hash code
|
808
820
|
def hash
|
809
|
-
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, agent_can_edit_email, agent_can_edit_name, allow_system_override_for_locked_recipient, auto_responded_reason, client_user_id, completed_count, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, last_name_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, phone_number, proof_file, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, template_locked, template_required, total_tab_count, user_id].hash
|
821
|
+
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, agent_can_edit_email, agent_can_edit_name, allow_system_override_for_locked_recipient, auto_responded_reason, client_user_id, completed_count, consent_details_list, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, excluded_documents, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, last_name_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, phone_number, proof_file, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, template_locked, template_required, total_tab_count, user_id].hash
|
810
822
|
end
|
811
823
|
|
812
824
|
# Builds the object from hash
|
@@ -34,6 +34,9 @@ module DocuSign_eSign
|
|
34
34
|
#
|
35
35
|
attr_accessor :delivery_mode
|
36
36
|
|
37
|
+
#
|
38
|
+
attr_accessor :disabled_by
|
39
|
+
|
37
40
|
# This turns Connect logging on or off. When set to **true**, logging is turned on.
|
38
41
|
attr_accessor :enable_log
|
39
42
|
|
@@ -142,6 +145,7 @@ module DocuSign_eSign
|
|
142
145
|
:'configuration_type' => :'configurationType',
|
143
146
|
:'connect_id' => :'connectId',
|
144
147
|
:'delivery_mode' => :'deliveryMode',
|
148
|
+
:'disabled_by' => :'disabledBy',
|
145
149
|
:'enable_log' => :'enableLog',
|
146
150
|
:'envelope_events' => :'envelopeEvents',
|
147
151
|
:'event_data' => :'eventData',
|
@@ -188,6 +192,7 @@ module DocuSign_eSign
|
|
188
192
|
:'configuration_type' => :'String',
|
189
193
|
:'connect_id' => :'String',
|
190
194
|
:'delivery_mode' => :'String',
|
195
|
+
:'disabled_by' => :'String',
|
191
196
|
:'enable_log' => :'String',
|
192
197
|
:'envelope_events' => :'Array<String>',
|
193
198
|
:'event_data' => :'ConnectEventData',
|
@@ -260,6 +265,10 @@ module DocuSign_eSign
|
|
260
265
|
self.delivery_mode = attributes[:'deliveryMode']
|
261
266
|
end
|
262
267
|
|
268
|
+
if attributes.has_key?(:'disabledBy')
|
269
|
+
self.disabled_by = attributes[:'disabledBy']
|
270
|
+
end
|
271
|
+
|
263
272
|
if attributes.has_key?(:'enableLog')
|
264
273
|
self.enable_log = attributes[:'enableLog']
|
265
274
|
end
|
@@ -432,6 +441,7 @@ module DocuSign_eSign
|
|
432
441
|
configuration_type == o.configuration_type &&
|
433
442
|
connect_id == o.connect_id &&
|
434
443
|
delivery_mode == o.delivery_mode &&
|
444
|
+
disabled_by == o.disabled_by &&
|
435
445
|
enable_log == o.enable_log &&
|
436
446
|
envelope_events == o.envelope_events &&
|
437
447
|
event_data == o.event_data &&
|
@@ -476,7 +486,7 @@ module DocuSign_eSign
|
|
476
486
|
# Calculates hash code according to all attributes.
|
477
487
|
# @return [Fixnum] Hash code
|
478
488
|
def hash
|
479
|
-
[allow_envelope_publish, allow_salesforce_publish, all_users, all_users_except, configuration_type, connect_id, delivery_mode, enable_log, envelope_events, event_data, events, external_folder_id, external_folder_label, group_ids, include_certificate_of_completion, include_cert_soap_header, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_sender_accountas_custom_field, include_time_zone_information, name, password, recipient_events, require_mutual_tls, requires_acknowledgement, salesforce_api_version, salesforce_authcode, salesforce_call_back_url, salesforce_documents_as_content_files, sender_override, sender_selectable_items, sf_objects, sign_message_with_x509_certificate, soap_namespace, url_to_publish_to, user_ids, user_name, use_soap_interface].hash
|
489
|
+
[allow_envelope_publish, allow_salesforce_publish, all_users, all_users_except, configuration_type, connect_id, delivery_mode, disabled_by, enable_log, envelope_events, event_data, events, external_folder_id, external_folder_label, group_ids, include_certificate_of_completion, include_cert_soap_header, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_sender_accountas_custom_field, include_time_zone_information, name, password, recipient_events, require_mutual_tls, requires_acknowledgement, salesforce_api_version, salesforce_authcode, salesforce_call_back_url, salesforce_documents_as_content_files, sender_override, sender_selectable_items, sf_objects, sign_message_with_x509_certificate, soap_namespace, url_to_publish_to, user_ids, user_name, use_soap_interface].hash
|
480
490
|
end
|
481
491
|
|
482
492
|
# Builds the object from hash
|
@@ -0,0 +1,195 @@
|
|
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
|
+
class ConnectHistoricalEnvelopeRepublish
|
16
|
+
attr_accessor :config
|
17
|
+
|
18
|
+
#
|
19
|
+
attr_accessor :envelopes
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'config' => :'config',
|
25
|
+
:'envelopes' => :'envelopes'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'config' => :'ConnectCustomConfiguration',
|
33
|
+
:'envelopes' => :'Array<String>'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
if attributes.has_key?(:'config')
|
46
|
+
self.config = attributes[:'config']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'envelopes')
|
50
|
+
if (value = attributes[:'envelopes']).is_a?(Array)
|
51
|
+
self.envelopes = value
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
# Checks equality by comparing each attribute.
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def ==(o)
|
72
|
+
return true if self.equal?(o)
|
73
|
+
self.class == o.class &&
|
74
|
+
config == o.config &&
|
75
|
+
envelopes == o.envelopes
|
76
|
+
end
|
77
|
+
|
78
|
+
# @see the `==` method
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def eql?(o)
|
81
|
+
self == o
|
82
|
+
end
|
83
|
+
|
84
|
+
# Calculates hash code according to all attributes.
|
85
|
+
# @return [Fixnum] Hash code
|
86
|
+
def hash
|
87
|
+
[config, envelopes].hash
|
88
|
+
end
|
89
|
+
|
90
|
+
# Builds the object from hash
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
# @return [Object] Returns the model itself
|
93
|
+
def build_from_hash(attributes)
|
94
|
+
return nil unless attributes.is_a?(Hash)
|
95
|
+
self.class.swagger_types.each_pair do |key, type|
|
96
|
+
if type =~ /\AArray<(.*)>/i
|
97
|
+
# check to ensure the input is an array given that the attribute
|
98
|
+
# is documented as an array but the input is not
|
99
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
101
|
+
end
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
104
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
105
|
+
end
|
106
|
+
|
107
|
+
self
|
108
|
+
end
|
109
|
+
|
110
|
+
# Deserializes the data based on type
|
111
|
+
# @param string type Data type
|
112
|
+
# @param string value Value to be deserialized
|
113
|
+
# @return [Object] Deserialized data
|
114
|
+
def _deserialize(type, value)
|
115
|
+
case type.to_sym
|
116
|
+
when :DateTime
|
117
|
+
DateTime.parse(value)
|
118
|
+
when :Date
|
119
|
+
Date.parse(value)
|
120
|
+
when :String
|
121
|
+
value.to_s
|
122
|
+
when :Integer
|
123
|
+
value.to_i
|
124
|
+
when :Float
|
125
|
+
value.to_f
|
126
|
+
when :BOOLEAN
|
127
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
128
|
+
true
|
129
|
+
else
|
130
|
+
false
|
131
|
+
end
|
132
|
+
when :Object
|
133
|
+
# generic object (usually a Hash), return directly
|
134
|
+
value
|
135
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
136
|
+
inner_type = Regexp.last_match[:inner_type]
|
137
|
+
value.map { |v| _deserialize(inner_type, v) }
|
138
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
139
|
+
k_type = Regexp.last_match[:k_type]
|
140
|
+
v_type = Regexp.last_match[:v_type]
|
141
|
+
{}.tap do |hash|
|
142
|
+
value.each do |k, v|
|
143
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
else # model
|
147
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
148
|
+
temp_model.build_from_hash(value)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Returns the string representation of the object
|
153
|
+
# @return [String] String presentation of the object
|
154
|
+
def to_s
|
155
|
+
to_hash.to_s
|
156
|
+
end
|
157
|
+
|
158
|
+
# to_body is an alias to to_hash (backward compatibility)
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
160
|
+
def to_body
|
161
|
+
to_hash
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the object in the form of hash
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
166
|
+
def to_hash
|
167
|
+
hash = {}
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
169
|
+
value = self.send(attr)
|
170
|
+
next if value.nil?
|
171
|
+
hash[param] = _to_hash(value)
|
172
|
+
end
|
173
|
+
hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Outputs non-array value in the form of hash
|
177
|
+
# For object, use to_hash. Otherwise, just return the value
|
178
|
+
# @param [Object] value Any valid value
|
179
|
+
# @return [Hash] Returns the value in the form of hash
|
180
|
+
def _to_hash(value)
|
181
|
+
if value.is_a?(Array)
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
183
|
+
elsif value.is_a?(Hash)
|
184
|
+
{}.tap do |hash|
|
185
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
186
|
+
end
|
187
|
+
elsif value.respond_to? :to_hash
|
188
|
+
value.to_hash
|
189
|
+
else
|
190
|
+
value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
end
|
195
|
+
end
|
@@ -0,0 +1,204 @@
|
|
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
|
+
class ConsentDetails
|
16
|
+
#
|
17
|
+
attr_accessor :consent_key
|
18
|
+
|
19
|
+
# Reserved: For DocuSign use only.
|
20
|
+
attr_accessor :delivery_method
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :signer_consent_status
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'consent_key' => :'consentKey',
|
29
|
+
:'delivery_method' => :'deliveryMethod',
|
30
|
+
:'signer_consent_status' => :'signerConsentStatus'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.swagger_types
|
36
|
+
{
|
37
|
+
:'consent_key' => :'String',
|
38
|
+
:'delivery_method' => :'String',
|
39
|
+
:'signer_consent_status' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
return unless attributes.is_a?(Hash)
|
47
|
+
|
48
|
+
# convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
50
|
+
|
51
|
+
if attributes.has_key?(:'consentKey')
|
52
|
+
self.consent_key = attributes[:'consentKey']
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'deliveryMethod')
|
56
|
+
self.delivery_method = attributes[:'deliveryMethod']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'signerConsentStatus')
|
60
|
+
self.signer_consent_status = attributes[:'signerConsentStatus']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Checks equality by comparing each attribute.
|
78
|
+
# @param [Object] Object to be compared
|
79
|
+
def ==(o)
|
80
|
+
return true if self.equal?(o)
|
81
|
+
self.class == o.class &&
|
82
|
+
consent_key == o.consent_key &&
|
83
|
+
delivery_method == o.delivery_method &&
|
84
|
+
signer_consent_status == o.signer_consent_status
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Fixnum] Hash code
|
95
|
+
def hash
|
96
|
+
[consent_key, delivery_method, signer_consent_status].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def build_from_hash(attributes)
|
103
|
+
return nil unless attributes.is_a?(Hash)
|
104
|
+
self.class.swagger_types.each_pair do |key, type|
|
105
|
+
if type =~ /\AArray<(.*)>/i
|
106
|
+
# check to ensure the input is an array given that the attribute
|
107
|
+
# is documented as an array but the input is not
|
108
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :BOOLEAN
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
157
|
+
temp_model.build_from_hash(value)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the string representation of the object
|
162
|
+
# @return [String] String presentation of the object
|
163
|
+
def to_s
|
164
|
+
to_hash.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# to_body is an alias to to_hash (backward compatibility)
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
def to_body
|
170
|
+
to_hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the object in the form of hash
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_hash
|
176
|
+
hash = {}
|
177
|
+
self.class.attribute_map.each_pair do |attr, param|
|
178
|
+
value = self.send(attr)
|
179
|
+
next if value.nil?
|
180
|
+
hash[param] = _to_hash(value)
|
181
|
+
end
|
182
|
+
hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Outputs non-array value in the form of hash
|
186
|
+
# For object, use to_hash. Otherwise, just return the value
|
187
|
+
# @param [Object] value Any valid value
|
188
|
+
# @return [Hash] Returns the value in the form of hash
|
189
|
+
def _to_hash(value)
|
190
|
+
if value.is_a?(Array)
|
191
|
+
value.compact.map { |v| _to_hash(v) }
|
192
|
+
elsif value.is_a?(Hash)
|
193
|
+
{}.tap do |hash|
|
194
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
195
|
+
end
|
196
|
+
elsif value.respond_to? :to_hash
|
197
|
+
value.to_hash
|
198
|
+
else
|
199
|
+
value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
204
|
+
end
|
@@ -36,6 +36,9 @@ module DocuSign_eSign
|
|
36
36
|
#
|
37
37
|
attr_accessor :completed_count
|
38
38
|
|
39
|
+
#
|
40
|
+
attr_accessor :consent_details_list
|
41
|
+
|
39
42
|
# An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the envelope status but otherwise not used by DocuSign. Each customField string can be a maximum of 100 characters.
|
40
43
|
attr_accessor :custom_fields
|
41
44
|
|
@@ -215,6 +218,7 @@ module DocuSign_eSign
|
|
215
218
|
:'auto_responded_reason' => :'autoRespondedReason',
|
216
219
|
:'client_user_id' => :'clientUserId',
|
217
220
|
:'completed_count' => :'completedCount',
|
221
|
+
:'consent_details_list' => :'consentDetailsList',
|
218
222
|
:'custom_fields' => :'customFields',
|
219
223
|
:'declined_date_time' => :'declinedDateTime',
|
220
224
|
:'declined_reason' => :'declinedReason',
|
@@ -292,6 +296,7 @@ module DocuSign_eSign
|
|
292
296
|
:'auto_responded_reason' => :'String',
|
293
297
|
:'client_user_id' => :'String',
|
294
298
|
:'completed_count' => :'String',
|
299
|
+
:'consent_details_list' => :'Array<ConsentDetails>',
|
295
300
|
:'custom_fields' => :'Array<String>',
|
296
301
|
:'declined_date_time' => :'String',
|
297
302
|
:'declined_reason' => :'String',
|
@@ -400,6 +405,12 @@ module DocuSign_eSign
|
|
400
405
|
self.completed_count = attributes[:'completedCount']
|
401
406
|
end
|
402
407
|
|
408
|
+
if attributes.has_key?(:'consentDetailsList')
|
409
|
+
if (value = attributes[:'consentDetailsList']).is_a?(Array)
|
410
|
+
self.consent_details_list = value
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
403
414
|
if attributes.has_key?(:'customFields')
|
404
415
|
if (value = attributes[:'customFields']).is_a?(Array)
|
405
416
|
self.custom_fields = value
|
@@ -691,6 +702,7 @@ module DocuSign_eSign
|
|
691
702
|
auto_responded_reason == o.auto_responded_reason &&
|
692
703
|
client_user_id == o.client_user_id &&
|
693
704
|
completed_count == o.completed_count &&
|
705
|
+
consent_details_list == o.consent_details_list &&
|
694
706
|
custom_fields == o.custom_fields &&
|
695
707
|
declined_date_time == o.declined_date_time &&
|
696
708
|
declined_reason == o.declined_reason &&
|
@@ -765,7 +777,7 @@ module DocuSign_eSign
|
|
765
777
|
# Calculates hash code according to all attributes.
|
766
778
|
# @return [Fixnum] Hash code
|
767
779
|
def hash
|
768
|
-
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, allow_system_override_for_locked_recipient, auto_responded_reason, client_user_id, completed_count, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, last_name_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, phone_number, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, template_locked, template_required, total_tab_count, user_id].hash
|
780
|
+
[access_code, access_code_metadata, add_access_code_to_email, additional_notifications, allow_system_override_for_locked_recipient, auto_responded_reason, client_user_id, completed_count, consent_details_list, custom_fields, declined_date_time, declined_reason, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, email_recipient_post_signing_url, embedded_recipient_start_url, error_details, fax_number, fax_number_metadata, first_name, first_name_metadata, full_name, full_name_metadata, id_check_configuration_name, id_check_configuration_name_metadata, id_check_information_input, identity_verification, inherit_email_notification_configuration, last_name, last_name_metadata, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, note, note_metadata, phone_authentication, phone_number, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, role_name, routing_order, routing_order_metadata, sent_date_time, signed_date_time, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, template_locked, template_required, total_tab_count, user_id].hash
|
769
781
|
end
|
770
782
|
|
771
783
|
# Builds the object from hash
|