docusign_esign 3.13.0 → 3.14.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/docusign_esign.gemspec +5 -5
  4. data/lib/docusign_esign/api/accounts_api.rb +26 -325
  5. data/lib/docusign_esign/api/connect_api.rb +7 -7
  6. data/lib/docusign_esign/api/envelopes_api.rb +10 -10
  7. data/lib/docusign_esign/api/organizations_api.rb +8 -60
  8. data/lib/docusign_esign/api/users_api.rb +4 -0
  9. data/lib/docusign_esign/client/api_client.rb +16 -10
  10. data/lib/docusign_esign/client/api_error.rb +1 -1
  11. data/lib/docusign_esign/client/auth/oauth.rb +1 -1
  12. data/lib/docusign_esign/models/account_billing_plan_response.rb +7 -8
  13. data/lib/docusign_esign/models/account_settings_information.rb +145 -1
  14. data/lib/docusign_esign/models/billing_entity_information_response.rb +214 -0
  15. data/lib/docusign_esign/models/bulk_send_batch_status.rb +10 -1
  16. data/lib/docusign_esign/models/bulk_send_envelopes_info.rb +204 -0
  17. data/lib/docusign_esign/models/checkbox.rb +21 -1
  18. data/lib/docusign_esign/models/connect_custom_configuration.rb +13 -1
  19. data/lib/docusign_esign/models/connect_user_info.rb +1 -11
  20. data/lib/docusign_esign/models/contact.rb +11 -1
  21. data/lib/docusign_esign/models/delayed_routing_api_model.rb +206 -0
  22. data/lib/docusign_esign/models/delegation_info.rb +214 -0
  23. data/lib/docusign_esign/models/envelope_delay_rule_api_model.rb +194 -0
  24. data/lib/docusign_esign/models/event_notification.rb +13 -1
  25. data/lib/docusign_esign/models/external_primary_account_recipient_auth_requirements.rb +214 -0
  26. data/lib/docusign_esign/models/integrated_connect_user_info_list.rb +6 -6
  27. data/lib/docusign_esign/models/linked_external_primary_account.rb +10 -1
  28. data/lib/docusign_esign/models/notary_recipient.rb +32 -1
  29. data/lib/docusign_esign/models/reserved_domain_existence.rb +194 -0
  30. data/lib/docusign_esign/models/scheduled_sending_api_model.rb +206 -0
  31. data/lib/docusign_esign/models/sender_email_notifications.rb +11 -1
  32. data/lib/docusign_esign/models/signer.rb +32 -1
  33. data/lib/docusign_esign/models/tab_account_settings.rb +20 -1
  34. data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
  35. data/lib/docusign_esign/models/witness.rb +32 -1
  36. data/lib/docusign_esign/models/workflow.rb +20 -1
  37. data/lib/docusign_esign/models/workflow_step.rb +10 -1
  38. data/lib/docusign_esign/version.rb +1 -1
  39. data/lib/docusign_esign.rb +8 -12
  40. metadata +14 -6
@@ -22,6 +22,9 @@ module DocuSign_eSign
22
22
 
23
23
  attr_accessor :event_data
24
24
 
25
+ #
26
+ attr_accessor :events
27
+
25
28
  # When set to **true**, the Connect Service includes the Certificate of Completion with completed envelopes.
26
29
  attr_accessor :include_certificate_of_completion
27
30
 
@@ -73,6 +76,7 @@ module DocuSign_eSign
73
76
  :'delivery_mode' => :'deliveryMode',
74
77
  :'envelope_events' => :'envelopeEvents',
75
78
  :'event_data' => :'eventData',
79
+ :'events' => :'events',
76
80
  :'include_certificate_of_completion' => :'includeCertificateOfCompletion',
77
81
  :'include_certificate_with_soap' => :'includeCertificateWithSoap',
78
82
  :'include_document_fields' => :'includeDocumentFields',
@@ -97,6 +101,7 @@ module DocuSign_eSign
97
101
  :'delivery_mode' => :'String',
98
102
  :'envelope_events' => :'Array<EnvelopeEvent>',
99
103
  :'event_data' => :'ConnectEventData',
104
+ :'events' => :'Array<String>',
100
105
  :'include_certificate_of_completion' => :'String',
101
106
  :'include_certificate_with_soap' => :'String',
102
107
  :'include_document_fields' => :'String',
@@ -137,6 +142,12 @@ module DocuSign_eSign
137
142
  self.event_data = attributes[:'eventData']
138
143
  end
139
144
 
145
+ if attributes.has_key?(:'events')
146
+ if (value = attributes[:'events']).is_a?(Array)
147
+ self.events = value
148
+ end
149
+ end
150
+
140
151
  if attributes.has_key?(:'includeCertificateOfCompletion')
141
152
  self.include_certificate_of_completion = attributes[:'includeCertificateOfCompletion']
142
153
  end
@@ -221,6 +232,7 @@ module DocuSign_eSign
221
232
  delivery_mode == o.delivery_mode &&
222
233
  envelope_events == o.envelope_events &&
223
234
  event_data == o.event_data &&
235
+ events == o.events &&
224
236
  include_certificate_of_completion == o.include_certificate_of_completion &&
225
237
  include_certificate_with_soap == o.include_certificate_with_soap &&
226
238
  include_document_fields == o.include_document_fields &&
@@ -247,7 +259,7 @@ module DocuSign_eSign
247
259
  # Calculates hash code according to all attributes.
248
260
  # @return [Fixnum] Hash code
249
261
  def hash
250
- [delivery_mode, envelope_events, event_data, include_certificate_of_completion, include_certificate_with_soap, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_sender_account_as_custom_field, include_time_zone, logging_enabled, recipient_events, require_acknowledgment, sign_message_with_x509_cert, soap_name_space, url, use_soap_interface].hash
262
+ [delivery_mode, envelope_events, event_data, events, include_certificate_of_completion, include_certificate_with_soap, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_sender_account_as_custom_field, include_time_zone, logging_enabled, recipient_events, require_acknowledgment, sign_message_with_x509_cert, soap_name_space, url, use_soap_interface].hash
251
263
  end
252
264
 
253
265
  # Builds the object from hash
@@ -0,0 +1,214 @@
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 ExternalPrimaryAccountRecipientAuthRequirements
16
+ # If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer `accessCode` property is set in the envelope, then that value is used. If blank and the signer `accessCode` property is not set, then the access code is not required.
17
+ attr_accessor :access_code
18
+
19
+ #
20
+ attr_accessor :id_verification
21
+
22
+ #
23
+ attr_accessor :kba
24
+
25
+ #
26
+ attr_accessor :phone
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'access_code' => :'accessCode',
32
+ :'id_verification' => :'idVerification',
33
+ :'kba' => :'kba',
34
+ :'phone' => :'phone'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'access_code' => :'String',
42
+ :'id_verification' => :'String',
43
+ :'kba' => :'String',
44
+ :'phone' => :'String'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
+
56
+ if attributes.has_key?(:'accessCode')
57
+ self.access_code = attributes[:'accessCode']
58
+ end
59
+
60
+ if attributes.has_key?(:'idVerification')
61
+ self.id_verification = attributes[:'idVerification']
62
+ end
63
+
64
+ if attributes.has_key?(:'kba')
65
+ self.kba = attributes[:'kba']
66
+ end
67
+
68
+ if attributes.has_key?(:'phone')
69
+ self.phone = attributes[:'phone']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ access_code == o.access_code &&
92
+ id_verification == o.id_verification &&
93
+ kba == o.kba &&
94
+ phone == o.phone
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Fixnum] Hash code
105
+ def hash
106
+ [access_code, id_verification, kba, phone].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ self.class.swagger_types.each_pair do |key, type|
115
+ if type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :DateTime
136
+ DateTime.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :BOOLEAN
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ temp_model = DocuSign_eSign.const_get(type).new
167
+ temp_model.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ next if value.nil?
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+
213
+ end
214
+ end
@@ -13,22 +13,22 @@ require 'date'
13
13
 
14
14
  module DocuSign_eSign
15
15
  class IntegratedConnectUserInfoList
16
- #
16
+ # The last position in the result set.
17
17
  attr_accessor :end_position
18
18
 
19
- #
19
+ # The URI to the next chunk of records based on the search request. If the endPosition is the entire results of the search, this is null.
20
20
  attr_accessor :next_uri
21
21
 
22
- #
22
+ # The postal code for the billing address.
23
23
  attr_accessor :previous_uri
24
24
 
25
- #
25
+ # The number of results returned in this response.
26
26
  attr_accessor :result_set_size
27
27
 
28
- #
28
+ # Starting position of the current result set.
29
29
  attr_accessor :start_position
30
30
 
31
- #
31
+ # The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response.
32
32
  attr_accessor :total_set_size
33
33
 
34
34
  #
@@ -25,6 +25,8 @@ module DocuSign_eSign
25
25
  #
26
26
  attr_accessor :link_id
27
27
 
28
+ attr_accessor :recipient_auth_requirements
29
+
28
30
  # 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.
29
31
  attr_accessor :status
30
32
 
@@ -38,6 +40,7 @@ module DocuSign_eSign
38
40
  :'configuration_id' => :'configurationId',
39
41
  :'email' => :'email',
40
42
  :'link_id' => :'linkId',
43
+ :'recipient_auth_requirements' => :'recipientAuthRequirements',
41
44
  :'status' => :'status',
42
45
  :'user_id' => :'userId'
43
46
  }
@@ -50,6 +53,7 @@ module DocuSign_eSign
50
53
  :'configuration_id' => :'String',
51
54
  :'email' => :'String',
52
55
  :'link_id' => :'String',
56
+ :'recipient_auth_requirements' => :'ExternalPrimaryAccountRecipientAuthRequirements',
53
57
  :'status' => :'String',
54
58
  :'user_id' => :'String'
55
59
  }
@@ -79,6 +83,10 @@ module DocuSign_eSign
79
83
  self.link_id = attributes[:'linkId']
80
84
  end
81
85
 
86
+ if attributes.has_key?(:'recipientAuthRequirements')
87
+ self.recipient_auth_requirements = attributes[:'recipientAuthRequirements']
88
+ end
89
+
82
90
  if attributes.has_key?(:'status')
83
91
  self.status = attributes[:'status']
84
92
  end
@@ -110,6 +118,7 @@ module DocuSign_eSign
110
118
  configuration_id == o.configuration_id &&
111
119
  email == o.email &&
112
120
  link_id == o.link_id &&
121
+ recipient_auth_requirements == o.recipient_auth_requirements &&
113
122
  status == o.status &&
114
123
  user_id == o.user_id
115
124
  end
@@ -123,7 +132,7 @@ module DocuSign_eSign
123
132
  # Calculates hash code according to all attributes.
124
133
  # @return [Fixnum] Hash code
125
134
  def hash
126
- [account_name, configuration_id, email, link_id, status, user_id].hash
135
+ [account_name, configuration_id, email, link_id, recipient_auth_requirements, status, user_id].hash
127
136
  end
128
137
 
129
138
  # Builds the object from hash
@@ -66,6 +66,11 @@ module DocuSign_eSign
66
66
  #
67
67
  attr_accessor :default_recipient
68
68
 
69
+ attr_accessor :delegated_by
70
+
71
+ #
72
+ attr_accessor :delegated_to
73
+
69
74
  # Reserved: For DocuSign use only.
70
75
  attr_accessor :delivered_date_time
71
76
 
@@ -152,6 +157,9 @@ module DocuSign_eSign
152
157
  #
153
158
  attr_accessor :notary_id
154
159
 
160
+ #
161
+ attr_accessor :notary_signer_email_sent
162
+
155
163
  #
156
164
  attr_accessor :notary_signers
157
165
 
@@ -291,6 +299,8 @@ module DocuSign_eSign
291
299
  :'declined_date_time' => :'declinedDateTime',
292
300
  :'declined_reason' => :'declinedReason',
293
301
  :'default_recipient' => :'defaultRecipient',
302
+ :'delegated_by' => :'delegatedBy',
303
+ :'delegated_to' => :'delegatedTo',
294
304
  :'delivered_date_time' => :'deliveredDateTime',
295
305
  :'delivery_method' => :'deliveryMethod',
296
306
  :'delivery_method_metadata' => :'deliveryMethodMetadata',
@@ -324,6 +334,7 @@ module DocuSign_eSign
324
334
  :'name' => :'name',
325
335
  :'name_metadata' => :'nameMetadata',
326
336
  :'notary_id' => :'notaryId',
337
+ :'notary_signer_email_sent' => :'notarySignerEmailSent',
327
338
  :'notary_signers' => :'notarySigners',
328
339
  :'notary_type' => :'notaryType',
329
340
  :'note' => :'note',
@@ -392,6 +403,8 @@ module DocuSign_eSign
392
403
  :'declined_date_time' => :'String',
393
404
  :'declined_reason' => :'String',
394
405
  :'default_recipient' => :'String',
406
+ :'delegated_by' => :'DelegationInfo',
407
+ :'delegated_to' => :'Array<DelegationInfo>',
395
408
  :'delivered_date_time' => :'String',
396
409
  :'delivery_method' => :'String',
397
410
  :'delivery_method_metadata' => :'PropertyMetadata',
@@ -425,6 +438,7 @@ module DocuSign_eSign
425
438
  :'name' => :'String',
426
439
  :'name_metadata' => :'PropertyMetadata',
427
440
  :'notary_id' => :'String',
441
+ :'notary_signer_email_sent' => :'String',
428
442
  :'notary_signers' => :'Array<String>',
429
443
  :'notary_type' => :'String',
430
444
  :'note' => :'String',
@@ -556,6 +570,16 @@ module DocuSign_eSign
556
570
  self.default_recipient = attributes[:'defaultRecipient']
557
571
  end
558
572
 
573
+ if attributes.has_key?(:'delegatedBy')
574
+ self.delegated_by = attributes[:'delegatedBy']
575
+ end
576
+
577
+ if attributes.has_key?(:'delegatedTo')
578
+ if (value = attributes[:'delegatedTo']).is_a?(Array)
579
+ self.delegated_to = value
580
+ end
581
+ end
582
+
559
583
  if attributes.has_key?(:'deliveredDateTime')
560
584
  self.delivered_date_time = attributes[:'deliveredDateTime']
561
585
  end
@@ -692,6 +716,10 @@ module DocuSign_eSign
692
716
  self.notary_id = attributes[:'notaryId']
693
717
  end
694
718
 
719
+ if attributes.has_key?(:'notarySignerEmailSent')
720
+ self.notary_signer_email_sent = attributes[:'notarySignerEmailSent']
721
+ end
722
+
695
723
  if attributes.has_key?(:'notarySigners')
696
724
  if (value = attributes[:'notarySigners']).is_a?(Array)
697
725
  self.notary_signers = value
@@ -917,6 +945,8 @@ module DocuSign_eSign
917
945
  declined_date_time == o.declined_date_time &&
918
946
  declined_reason == o.declined_reason &&
919
947
  default_recipient == o.default_recipient &&
948
+ delegated_by == o.delegated_by &&
949
+ delegated_to == o.delegated_to &&
920
950
  delivered_date_time == o.delivered_date_time &&
921
951
  delivery_method == o.delivery_method &&
922
952
  delivery_method_metadata == o.delivery_method_metadata &&
@@ -950,6 +980,7 @@ module DocuSign_eSign
950
980
  name == o.name &&
951
981
  name_metadata == o.name_metadata &&
952
982
  notary_id == o.notary_id &&
983
+ notary_signer_email_sent == o.notary_signer_email_sent &&
953
984
  notary_signers == o.notary_signers &&
954
985
  notary_type == o.notary_type &&
955
986
  note == o.note &&
@@ -1005,7 +1036,7 @@ module DocuSign_eSign
1005
1036
  # Calculates hash code according to all attributes.
1006
1037
  # @return [Fixnum] Hash code
1007
1038
  def hash
1008
- [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_navigation, auto_responded_reason, bulk_recipients_uri, can_sign_offline, client_user_id, completed_count, creation_reason, custom_fields, declined_date_time, declined_reason, default_recipient, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, 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, is_bulk_recipient, is_bulk_recipient_metadata, last_name, last_name_metadata, live_oak_start_url, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_id, notary_signers, notary_type, note, note_metadata, offline_attributes, phone_authentication, phone_number, proof_file, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_signature_providers, recipient_supplies_tabs, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, require_signer_certificate, require_sign_on_paper, require_upload_signature, role_name, routing_order, routing_order_metadata, sent_date_time, signature_info, signed_date_time, sign_in_each_location, sign_in_each_location_metadata, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
1039
+ [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_navigation, auto_responded_reason, bulk_recipients_uri, can_sign_offline, client_user_id, completed_count, creation_reason, custom_fields, declined_date_time, declined_reason, default_recipient, delegated_by, delegated_to, delivered_date_time, delivery_method, delivery_method_metadata, designator_id, designator_id_guid, document_visibility, email, email_metadata, email_notification, 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, is_bulk_recipient, is_bulk_recipient_metadata, last_name, last_name_metadata, live_oak_start_url, locked_recipient_phone_auth_editable, locked_recipient_sms_editable, name, name_metadata, notary_id, notary_signer_email_sent, notary_signers, notary_type, note, note_metadata, offline_attributes, phone_authentication, phone_number, proof_file, recipient_attachments, recipient_authentication_status, recipient_feature_metadata, recipient_id, recipient_id_guid, recipient_signature_providers, recipient_supplies_tabs, recipient_type, recipient_type_metadata, require_id_lookup, require_id_lookup_metadata, require_signer_certificate, require_sign_on_paper, require_upload_signature, role_name, routing_order, routing_order_metadata, sent_date_time, signature_info, signed_date_time, sign_in_each_location, sign_in_each_location_metadata, signing_group_id, signing_group_id_metadata, signing_group_name, signing_group_users, sms_authentication, social_authentications, status, status_code, suppress_emails, tabs, template_locked, template_required, total_tab_count, user_id].hash
1009
1040
  end
1010
1041
 
1011
1042
  # Builds the object from hash
@@ -0,0 +1,194 @@
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 ReservedDomainExistence
16
+ #
17
+ attr_accessor :email_domain
18
+
19
+ #
20
+ attr_accessor :is_reserved
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'email_domain' => :'emailDomain',
26
+ :'is_reserved' => :'isReserved'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.swagger_types
32
+ {
33
+ :'email_domain' => :'String',
34
+ :'is_reserved' => :'String'
35
+ }
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ return unless attributes.is_a?(Hash)
42
+
43
+ # convert string to symbol for hash key
44
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
+
46
+ if attributes.has_key?(:'emailDomain')
47
+ self.email_domain = attributes[:'emailDomain']
48
+ end
49
+
50
+ if attributes.has_key?(:'isReserved')
51
+ self.is_reserved = attributes[:'isReserved']
52
+ end
53
+ end
54
+
55
+ # Show invalid properties with the reasons. Usually used together with valid?
56
+ # @return Array for valid properties with the reasons
57
+ def list_invalid_properties
58
+ invalid_properties = Array.new
59
+ invalid_properties
60
+ end
61
+
62
+ # Check to see if the all the properties in the model are valid
63
+ # @return true if the model is valid
64
+ def valid?
65
+ true
66
+ end
67
+
68
+ # Checks equality by comparing each attribute.
69
+ # @param [Object] Object to be compared
70
+ def ==(o)
71
+ return true if self.equal?(o)
72
+ self.class == o.class &&
73
+ email_domain == o.email_domain &&
74
+ is_reserved == o.is_reserved
75
+ end
76
+
77
+ # @see the `==` method
78
+ # @param [Object] Object to be compared
79
+ def eql?(o)
80
+ self == o
81
+ end
82
+
83
+ # Calculates hash code according to all attributes.
84
+ # @return [Fixnum] Hash code
85
+ def hash
86
+ [email_domain, is_reserved].hash
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def build_from_hash(attributes)
93
+ return nil unless attributes.is_a?(Hash)
94
+ self.class.swagger_types.each_pair do |key, type|
95
+ if type =~ /\AArray<(.*)>/i
96
+ # check to ensure the input is an array given that the attribute
97
+ # is documented as an array but the input is not
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ end
101
+ elsif !attributes[self.class.attribute_map[key]].nil?
102
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
103
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
104
+ end
105
+
106
+ self
107
+ end
108
+
109
+ # Deserializes the data based on type
110
+ # @param string type Data type
111
+ # @param string value Value to be deserialized
112
+ # @return [Object] Deserialized data
113
+ def _deserialize(type, value)
114
+ case type.to_sym
115
+ when :DateTime
116
+ DateTime.parse(value)
117
+ when :Date
118
+ Date.parse(value)
119
+ when :String
120
+ value.to_s
121
+ when :Integer
122
+ value.to_i
123
+ when :Float
124
+ value.to_f
125
+ when :BOOLEAN
126
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
127
+ true
128
+ else
129
+ false
130
+ end
131
+ when :Object
132
+ # generic object (usually a Hash), return directly
133
+ value
134
+ when /\AArray<(?<inner_type>.+)>\z/
135
+ inner_type = Regexp.last_match[:inner_type]
136
+ value.map { |v| _deserialize(inner_type, v) }
137
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
138
+ k_type = Regexp.last_match[:k_type]
139
+ v_type = Regexp.last_match[:v_type]
140
+ {}.tap do |hash|
141
+ value.each do |k, v|
142
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
143
+ end
144
+ end
145
+ else # model
146
+ temp_model = DocuSign_eSign.const_get(type).new
147
+ temp_model.build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ # Returns the string representation of the object
152
+ # @return [String] String presentation of the object
153
+ def to_s
154
+ to_hash.to_s
155
+ end
156
+
157
+ # to_body is an alias to to_hash (backward compatibility)
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_body
160
+ to_hash
161
+ end
162
+
163
+ # Returns the object in the form of hash
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_hash
166
+ hash = {}
167
+ self.class.attribute_map.each_pair do |attr, param|
168
+ value = self.send(attr)
169
+ next if value.nil?
170
+ hash[param] = _to_hash(value)
171
+ end
172
+ hash
173
+ end
174
+
175
+ # Outputs non-array value in the form of hash
176
+ # For object, use to_hash. Otherwise, just return the value
177
+ # @param [Object] value Any valid value
178
+ # @return [Hash] Returns the value in the form of hash
179
+ def _to_hash(value)
180
+ if value.is_a?(Array)
181
+ value.compact.map { |v| _to_hash(v) }
182
+ elsif value.is_a?(Hash)
183
+ {}.tap do |hash|
184
+ value.each { |k, v| hash[k] = _to_hash(v) }
185
+ end
186
+ elsif value.respond_to? :to_hash
187
+ value.to_hash
188
+ else
189
+ value
190
+ end
191
+ end
192
+
193
+ end
194
+ end