docusign_esign 3.7.0.rc1 → 3.8.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -9
- data/docusign_esign-2.8.0.rc1.gem +0 -0
- data/lib/docusign_esign.rb +29 -1
- data/lib/docusign_esign/api/accounts_api.rb +65 -8
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +22 -298
- data/lib/docusign_esign/api/connect_api.rb +196 -0
- data/lib/docusign_esign/api/envelopes_api.rb +1502 -78
- data/lib/docusign_esign/api/groups_api.rb +9 -9
- data/lib/docusign_esign/api/trust_service_providers_api.rb +232 -0
- data/lib/docusign_esign/api/users_api.rb +52 -0
- data/lib/docusign_esign/models/account_billing_plan.rb +11 -1
- data/lib/docusign_esign/models/account_information.rb +34 -4
- data/lib/docusign_esign/models/account_settings_information.rb +134 -1
- data/lib/docusign_esign/models/account_ui_settings.rb +20 -1
- data/lib/docusign_esign/models/bulk_send_batch_request.rb +184 -0
- data/lib/docusign_esign/models/bulk_send_batch_status.rb +21 -1
- data/lib/docusign_esign/models/complete_sign_hash_response.rb +7 -11
- data/lib/docusign_esign/models/complete_sign_request.rb +7 -11
- data/lib/docusign_esign/models/credential.rb +7 -11
- data/lib/docusign_esign/models/display_appliance_account.rb +224 -0
- data/lib/docusign_esign/models/display_appliance_info.rb +174 -0
- data/lib/docusign_esign/models/display_appliance_pdf.rb +174 -0
- data/lib/docusign_esign/models/display_appliance_signer_attachment.rb +174 -0
- data/lib/docusign_esign/models/document.rb +11 -1
- data/lib/docusign_esign/models/document_security_store.rb +7 -11
- data/lib/docusign_esign/models/document_update_info.rb +7 -11
- data/lib/docusign_esign/models/envelope_form_data.rb +13 -1
- data/lib/docusign_esign/models/external_claim.rb +7 -11
- data/lib/docusign_esign/models/group_brands.rb +207 -0
- data/lib/docusign_esign/models/payment_details.rb +10 -1
- data/lib/docusign_esign/models/payment_signer_values.rb +184 -0
- data/lib/docusign_esign/models/prefill_tabs.rb +222 -0
- data/lib/docusign_esign/models/revision.rb +7 -11
- data/lib/docusign_esign/models/seal.rb +8 -12
- data/lib/docusign_esign/models/sender.rb +7 -11
- data/lib/docusign_esign/models/sign_hash_document.rb +7 -11
- data/lib/docusign_esign/models/sign_hash_session_info_response.rb +7 -11
- data/lib/docusign_esign/models/sign_session_info_request.rb +7 -11
- data/lib/docusign_esign/models/signature_data_info.rb +7 -11
- data/lib/docusign_esign/models/signature_properties.rb +7 -11
- data/lib/docusign_esign/models/tab_account_settings.rb +20 -1
- data/lib/docusign_esign/models/tabs.rb +10 -1
- data/lib/docusign_esign/models/template_tabs.rb +10 -1
- data/lib/docusign_esign/models/time_stamp_field.rb +7 -11
- data/lib/docusign_esign/models/tsp_health_check_request.rb +7 -11
- data/lib/docusign_esign/models/tsp_health_check_status_description.rb +7 -11
- data/lib/docusign_esign/models/update_transaction_request.rb +7 -11
- data/lib/docusign_esign/models/update_transaction_response.rb +7 -11
- data/lib/docusign_esign/models/user.rb +7 -11
- data/lib/docusign_esign/models/user_info_response.rb +7 -11
- data/lib/docusign_esign/models/user_information.rb +11 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/tests/Gemfile.lock +9 -5
- metadata +11 -2
@@ -37,9 +37,15 @@ module DocuSign_eSign
|
|
37
37
|
#
|
38
38
|
attr_accessor :mailing_list_id
|
39
39
|
|
40
|
+
#
|
41
|
+
attr_accessor :owner_user_id
|
42
|
+
|
40
43
|
#
|
41
44
|
attr_accessor :queued
|
42
45
|
|
46
|
+
#
|
47
|
+
attr_accessor :sender_user_id
|
48
|
+
|
43
49
|
#
|
44
50
|
attr_accessor :sent
|
45
51
|
|
@@ -57,7 +63,9 @@ module DocuSign_eSign
|
|
57
63
|
:'envelopes_uri' => :'envelopesUri',
|
58
64
|
:'failed' => :'failed',
|
59
65
|
:'mailing_list_id' => :'mailingListId',
|
66
|
+
:'owner_user_id' => :'ownerUserId',
|
60
67
|
:'queued' => :'queued',
|
68
|
+
:'sender_user_id' => :'senderUserId',
|
61
69
|
:'sent' => :'sent',
|
62
70
|
:'submitted_date' => :'submittedDate'
|
63
71
|
}
|
@@ -74,7 +82,9 @@ module DocuSign_eSign
|
|
74
82
|
:'envelopes_uri' => :'String',
|
75
83
|
:'failed' => :'String',
|
76
84
|
:'mailing_list_id' => :'String',
|
85
|
+
:'owner_user_id' => :'String',
|
77
86
|
:'queued' => :'String',
|
87
|
+
:'sender_user_id' => :'String',
|
78
88
|
:'sent' => :'String',
|
79
89
|
:'submitted_date' => :'String'
|
80
90
|
}
|
@@ -122,10 +132,18 @@ module DocuSign_eSign
|
|
122
132
|
self.mailing_list_id = attributes[:'mailingListId']
|
123
133
|
end
|
124
134
|
|
135
|
+
if attributes.has_key?(:'ownerUserId')
|
136
|
+
self.owner_user_id = attributes[:'ownerUserId']
|
137
|
+
end
|
138
|
+
|
125
139
|
if attributes.has_key?(:'queued')
|
126
140
|
self.queued = attributes[:'queued']
|
127
141
|
end
|
128
142
|
|
143
|
+
if attributes.has_key?(:'senderUserId')
|
144
|
+
self.sender_user_id = attributes[:'senderUserId']
|
145
|
+
end
|
146
|
+
|
129
147
|
if attributes.has_key?(:'sent')
|
130
148
|
self.sent = attributes[:'sent']
|
131
149
|
end
|
@@ -161,7 +179,9 @@ module DocuSign_eSign
|
|
161
179
|
envelopes_uri == o.envelopes_uri &&
|
162
180
|
failed == o.failed &&
|
163
181
|
mailing_list_id == o.mailing_list_id &&
|
182
|
+
owner_user_id == o.owner_user_id &&
|
164
183
|
queued == o.queued &&
|
184
|
+
sender_user_id == o.sender_user_id &&
|
165
185
|
sent == o.sent &&
|
166
186
|
submitted_date == o.submitted_date
|
167
187
|
end
|
@@ -175,7 +195,7 @@ module DocuSign_eSign
|
|
175
195
|
# Calculates hash code according to all attributes.
|
176
196
|
# @return [Fixnum] Hash code
|
177
197
|
def hash
|
178
|
-
[batch_id, batch_name, batch_size, bulk_errors, envelope_id_or_template_id, envelopes_uri, failed, mailing_list_id, queued, sent, submitted_date].hash
|
198
|
+
[batch_id, batch_name, batch_size, bulk_errors, envelope_id_or_template_id, envelopes_uri, failed, mailing_list_id, owner_user_id, queued, sender_user_id, sent, submitted_date].hash
|
179
199
|
end
|
180
200
|
|
181
201
|
# Builds the object from hash
|
@@ -12,7 +12,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module DocuSign_eSign
|
15
|
-
|
16
15
|
class CompleteSignHashResponse
|
17
16
|
# Complex element contains the details on the documents in the envelope.
|
18
17
|
attr_accessor :documents
|
@@ -23,7 +22,6 @@ module DocuSign_eSign
|
|
23
22
|
#
|
24
23
|
attr_accessor :remaining_signature_requests
|
25
24
|
|
26
|
-
|
27
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
26
|
def self.attribute_map
|
29
27
|
{
|
@@ -48,7 +46,7 @@ module DocuSign_eSign
|
|
48
46
|
return unless attributes.is_a?(Hash)
|
49
47
|
|
50
48
|
# convert string to symbol for hash key
|
51
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
50
|
|
53
51
|
if attributes.has_key?(:'documents')
|
54
52
|
if (value = attributes[:'documents']).is_a?(Array)
|
@@ -63,20 +61,19 @@ module DocuSign_eSign
|
|
63
61
|
if attributes.has_key?(:'remainingSignatureRequests')
|
64
62
|
self.remaining_signature_requests = attributes[:'remainingSignatureRequests']
|
65
63
|
end
|
66
|
-
|
67
64
|
end
|
68
65
|
|
69
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
70
|
-
# @return Array for valid
|
67
|
+
# @return Array for valid properties with the reasons
|
71
68
|
def list_invalid_properties
|
72
69
|
invalid_properties = Array.new
|
73
|
-
|
70
|
+
invalid_properties
|
74
71
|
end
|
75
72
|
|
76
73
|
# Check to see if the all the properties in the model are valid
|
77
74
|
# @return true if the model is valid
|
78
75
|
def valid?
|
79
|
-
|
76
|
+
true
|
80
77
|
end
|
81
78
|
|
82
79
|
# Checks equality by comparing each attribute.
|
@@ -108,10 +105,10 @@ module DocuSign_eSign
|
|
108
105
|
return nil unless attributes.is_a?(Hash)
|
109
106
|
self.class.swagger_types.each_pair do |key, type|
|
110
107
|
if type =~ /\AArray<(.*)>/i
|
111
|
-
# check to ensure the input is an array given that the
|
108
|
+
# check to ensure the input is an array given that the attribute
|
112
109
|
# is documented as an array but the input is not
|
113
110
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
114
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
115
112
|
end
|
116
113
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
117
114
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -193,7 +190,7 @@ module DocuSign_eSign
|
|
193
190
|
# @return [Hash] Returns the value in the form of hash
|
194
191
|
def _to_hash(value)
|
195
192
|
if value.is_a?(Array)
|
196
|
-
value.compact.map{ |v| _to_hash(v) }
|
193
|
+
value.compact.map { |v| _to_hash(v) }
|
197
194
|
elsif value.is_a?(Hash)
|
198
195
|
{}.tap do |hash|
|
199
196
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -206,5 +203,4 @@ module DocuSign_eSign
|
|
206
203
|
end
|
207
204
|
|
208
205
|
end
|
209
|
-
|
210
206
|
end
|
@@ -12,7 +12,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module DocuSign_eSign
|
15
|
-
|
16
15
|
class CompleteSignRequest
|
17
16
|
#
|
18
17
|
attr_accessor :certificate
|
@@ -32,7 +31,6 @@ module DocuSign_eSign
|
|
32
31
|
# Used to identify an envelope. The id is a sender-generated value and is valid in the DocuSign system for 7 days. It is recommended that a transaction ID is used for offline signing to ensure that an envelope is not sent multiple times. The `transactionId` property can be used determine an envelope's status (i.e. was it created or not) in cases where the internet connection was lost before the envelope status was returned.
|
33
32
|
attr_accessor :transaction_id
|
34
33
|
|
35
|
-
|
36
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
35
|
def self.attribute_map
|
38
36
|
{
|
@@ -63,7 +61,7 @@ module DocuSign_eSign
|
|
63
61
|
return unless attributes.is_a?(Hash)
|
64
62
|
|
65
63
|
# convert string to symbol for hash key
|
66
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
65
|
|
68
66
|
if attributes.has_key?(:'certificate')
|
69
67
|
self.certificate = attributes[:'certificate']
|
@@ -90,20 +88,19 @@ module DocuSign_eSign
|
|
90
88
|
if attributes.has_key?(:'transactionId')
|
91
89
|
self.transaction_id = attributes[:'transactionId']
|
92
90
|
end
|
93
|
-
|
94
91
|
end
|
95
92
|
|
96
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
-
# @return Array for valid
|
94
|
+
# @return Array for valid properties with the reasons
|
98
95
|
def list_invalid_properties
|
99
96
|
invalid_properties = Array.new
|
100
|
-
|
97
|
+
invalid_properties
|
101
98
|
end
|
102
99
|
|
103
100
|
# Check to see if the all the properties in the model are valid
|
104
101
|
# @return true if the model is valid
|
105
102
|
def valid?
|
106
|
-
|
103
|
+
true
|
107
104
|
end
|
108
105
|
|
109
106
|
# Checks equality by comparing each attribute.
|
@@ -138,10 +135,10 @@ module DocuSign_eSign
|
|
138
135
|
return nil unless attributes.is_a?(Hash)
|
139
136
|
self.class.swagger_types.each_pair do |key, type|
|
140
137
|
if type =~ /\AArray<(.*)>/i
|
141
|
-
# check to ensure the input is an array given that the
|
138
|
+
# check to ensure the input is an array given that the attribute
|
142
139
|
# is documented as an array but the input is not
|
143
140
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
144
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
145
142
|
end
|
146
143
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
144
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -223,7 +220,7 @@ module DocuSign_eSign
|
|
223
220
|
# @return [Hash] Returns the value in the form of hash
|
224
221
|
def _to_hash(value)
|
225
222
|
if value.is_a?(Array)
|
226
|
-
value.compact.map{ |v| _to_hash(v) }
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
227
224
|
elsif value.is_a?(Hash)
|
228
225
|
{}.tap do |hash|
|
229
226
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -236,5 +233,4 @@ module DocuSign_eSign
|
|
236
233
|
end
|
237
234
|
|
238
235
|
end
|
239
|
-
|
240
236
|
end
|
@@ -12,7 +12,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module DocuSign_eSign
|
15
|
-
|
16
15
|
class Credential
|
17
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.
|
18
17
|
attr_accessor :access_code
|
@@ -23,7 +22,6 @@ module DocuSign_eSign
|
|
23
22
|
# Specifies the value of the tab.
|
24
23
|
attr_accessor :value
|
25
24
|
|
26
|
-
|
27
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
26
|
def self.attribute_map
|
29
27
|
{
|
@@ -48,7 +46,7 @@ module DocuSign_eSign
|
|
48
46
|
return unless attributes.is_a?(Hash)
|
49
47
|
|
50
48
|
# convert string to symbol for hash key
|
51
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
50
|
|
53
51
|
if attributes.has_key?(:'accessCode')
|
54
52
|
self.access_code = attributes[:'accessCode']
|
@@ -61,20 +59,19 @@ module DocuSign_eSign
|
|
61
59
|
if attributes.has_key?(:'value')
|
62
60
|
self.value = attributes[:'value']
|
63
61
|
end
|
64
|
-
|
65
62
|
end
|
66
63
|
|
67
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
-
# @return Array for valid
|
65
|
+
# @return Array for valid properties with the reasons
|
69
66
|
def list_invalid_properties
|
70
67
|
invalid_properties = Array.new
|
71
|
-
|
68
|
+
invalid_properties
|
72
69
|
end
|
73
70
|
|
74
71
|
# Check to see if the all the properties in the model are valid
|
75
72
|
# @return true if the model is valid
|
76
73
|
def valid?
|
77
|
-
|
74
|
+
true
|
78
75
|
end
|
79
76
|
|
80
77
|
# Checks equality by comparing each attribute.
|
@@ -106,10 +103,10 @@ module DocuSign_eSign
|
|
106
103
|
return nil unless attributes.is_a?(Hash)
|
107
104
|
self.class.swagger_types.each_pair do |key, type|
|
108
105
|
if type =~ /\AArray<(.*)>/i
|
109
|
-
# check to ensure the input is an array given that the
|
106
|
+
# check to ensure the input is an array given that the attribute
|
110
107
|
# is documented as an array but the input is not
|
111
108
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
112
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
113
110
|
end
|
114
111
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
112
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -191,7 +188,7 @@ module DocuSign_eSign
|
|
191
188
|
# @return [Hash] Returns the value in the form of hash
|
192
189
|
def _to_hash(value)
|
193
190
|
if value.is_a?(Array)
|
194
|
-
value.compact.map{ |v| _to_hash(v) }
|
191
|
+
value.compact.map { |v| _to_hash(v) }
|
195
192
|
elsif value.is_a?(Hash)
|
196
193
|
{}.tap do |hash|
|
197
194
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -204,5 +201,4 @@ module DocuSign_eSign
|
|
204
201
|
end
|
205
202
|
|
206
203
|
end
|
207
|
-
|
208
204
|
end
|
@@ -0,0 +1,224 @@
|
|
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 DisplayApplianceAccount
|
16
|
+
# The account ID associated with the envelope.
|
17
|
+
attr_accessor :account_id
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :opt_out_auto_nav_text_and_tab_color_updates
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :show_initial_conditional_fields
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :signing_version
|
27
|
+
|
28
|
+
#
|
29
|
+
attr_accessor :tag_has_sig_block
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'account_id' => :'accountId',
|
35
|
+
:'opt_out_auto_nav_text_and_tab_color_updates' => :'optOutAutoNavTextAndTabColorUpdates',
|
36
|
+
:'show_initial_conditional_fields' => :'showInitialConditionalFields',
|
37
|
+
:'signing_version' => :'signingVersion',
|
38
|
+
:'tag_has_sig_block' => :'tagHasSigBlock'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
{
|
45
|
+
:'account_id' => :'String',
|
46
|
+
:'opt_out_auto_nav_text_and_tab_color_updates' => :'BOOLEAN',
|
47
|
+
:'show_initial_conditional_fields' => :'BOOLEAN',
|
48
|
+
:'signing_version' => :'String',
|
49
|
+
:'tag_has_sig_block' => :'BOOLEAN'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
return unless attributes.is_a?(Hash)
|
57
|
+
|
58
|
+
# convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
|
+
|
61
|
+
if attributes.has_key?(:'accountId')
|
62
|
+
self.account_id = attributes[:'accountId']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'optOutAutoNavTextAndTabColorUpdates')
|
66
|
+
self.opt_out_auto_nav_text_and_tab_color_updates = attributes[:'optOutAutoNavTextAndTabColorUpdates']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'showInitialConditionalFields')
|
70
|
+
self.show_initial_conditional_fields = attributes[:'showInitialConditionalFields']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'signingVersion')
|
74
|
+
self.signing_version = attributes[:'signingVersion']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'tagHasSigBlock')
|
78
|
+
self.tag_has_sig_block = attributes[:'tagHasSigBlock']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
83
|
+
# @return Array for valid properties with the reasons
|
84
|
+
def list_invalid_properties
|
85
|
+
invalid_properties = Array.new
|
86
|
+
invalid_properties
|
87
|
+
end
|
88
|
+
|
89
|
+
# Check to see if the all the properties in the model are valid
|
90
|
+
# @return true if the model is valid
|
91
|
+
def valid?
|
92
|
+
true
|
93
|
+
end
|
94
|
+
|
95
|
+
# Checks equality by comparing each attribute.
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def ==(o)
|
98
|
+
return true if self.equal?(o)
|
99
|
+
self.class == o.class &&
|
100
|
+
account_id == o.account_id &&
|
101
|
+
opt_out_auto_nav_text_and_tab_color_updates == o.opt_out_auto_nav_text_and_tab_color_updates &&
|
102
|
+
show_initial_conditional_fields == o.show_initial_conditional_fields &&
|
103
|
+
signing_version == o.signing_version &&
|
104
|
+
tag_has_sig_block == o.tag_has_sig_block
|
105
|
+
end
|
106
|
+
|
107
|
+
# @see the `==` method
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def eql?(o)
|
110
|
+
self == o
|
111
|
+
end
|
112
|
+
|
113
|
+
# Calculates hash code according to all attributes.
|
114
|
+
# @return [Fixnum] Hash code
|
115
|
+
def hash
|
116
|
+
[account_id, opt_out_auto_nav_text_and_tab_color_updates, show_initial_conditional_fields, signing_version, tag_has_sig_block].hash
|
117
|
+
end
|
118
|
+
|
119
|
+
# Builds the object from hash
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
+
# @return [Object] Returns the model itself
|
122
|
+
def build_from_hash(attributes)
|
123
|
+
return nil unless attributes.is_a?(Hash)
|
124
|
+
self.class.swagger_types.each_pair do |key, type|
|
125
|
+
if type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
134
|
+
end
|
135
|
+
|
136
|
+
self
|
137
|
+
end
|
138
|
+
|
139
|
+
# Deserializes the data based on type
|
140
|
+
# @param string type Data type
|
141
|
+
# @param string value Value to be deserialized
|
142
|
+
# @return [Object] Deserialized data
|
143
|
+
def _deserialize(type, value)
|
144
|
+
case type.to_sym
|
145
|
+
when :DateTime
|
146
|
+
DateTime.parse(value)
|
147
|
+
when :Date
|
148
|
+
Date.parse(value)
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :BOOLEAN
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else # model
|
176
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
177
|
+
temp_model.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
next if value.nil?
|
200
|
+
hash[param] = _to_hash(value)
|
201
|
+
end
|
202
|
+
hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Outputs non-array value in the form of hash
|
206
|
+
# For object, use to_hash. Otherwise, just return the value
|
207
|
+
# @param [Object] value Any valid value
|
208
|
+
# @return [Hash] Returns the value in the form of hash
|
209
|
+
def _to_hash(value)
|
210
|
+
if value.is_a?(Array)
|
211
|
+
value.compact.map { |v| _to_hash(v) }
|
212
|
+
elsif value.is_a?(Hash)
|
213
|
+
{}.tap do |hash|
|
214
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
215
|
+
end
|
216
|
+
elsif value.respond_to? :to_hash
|
217
|
+
value.to_hash
|
218
|
+
else
|
219
|
+
value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
224
|
+
end
|