docusign_esign 3.24.0 → 3.26.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 +10 -0
- data/lib/docusign_esign/api/accounts_api.rb +35 -9
- data/lib/docusign_esign/api/envelopes_api.rb +11 -6
- data/lib/docusign_esign/api/templates_api.rb +4 -0
- data/lib/docusign_esign/api/users_api.rb +8 -4
- data/lib/docusign_esign/client/api_client.rb +8 -3
- data/lib/docusign_esign/models/account_identity_verification_workflow.rb +21 -1
- data/lib/docusign_esign/models/account_role_settings.rb +101 -1
- data/lib/docusign_esign/models/account_settings_information.rb +267 -27
- data/lib/docusign_esign/models/brand.rb +21 -1
- data/lib/docusign_esign/models/doc_gen_form_field.rb +43 -1
- data/lib/docusign_esign/models/doc_gen_form_field_option.rb +214 -0
- data/lib/docusign_esign/models/doc_gen_form_field_validation.rb +194 -0
- data/lib/docusign_esign/models/document.rb +11 -1
- data/lib/docusign_esign/models/envelope_document.rb +11 -1
- data/lib/docusign_esign/models/envelope_template.rb +11 -1
- data/lib/docusign_esign/models/envelopes_information.rb +11 -1
- data/lib/docusign_esign/models/notary_recipient.rb +11 -1
- data/lib/docusign_esign/models/user_settings_information.rb +101 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/lib/docusign_esign.rb +2 -0
- metadata +4 -2
@@ -38,6 +38,9 @@ module DocuSign_eSign
|
|
38
38
|
# Array or errors.
|
39
39
|
attr_accessor :error_details
|
40
40
|
|
41
|
+
#
|
42
|
+
attr_accessor :is_organization_brand
|
43
|
+
|
41
44
|
#
|
42
45
|
attr_accessor :is_overriding_company_name
|
43
46
|
|
@@ -56,6 +59,9 @@ module DocuSign_eSign
|
|
56
59
|
# The URIs for retrieving the logos that are associated with the brand.
|
57
60
|
attr_accessor :logos
|
58
61
|
|
62
|
+
#
|
63
|
+
attr_accessor :organization_brand_logo
|
64
|
+
|
59
65
|
# An object containing the URLs for the four DocuSign master resource files that the brand uses for sending, signing, email messages, and captive (embedded) signing. You can modify the default email messages and formats in these file to customize the user experience. **Note:** This object is returned only when the `resourceContentType` is `sending`, `signing`, `email`, or `signing_captive`.
|
60
66
|
attr_accessor :resources
|
61
67
|
|
@@ -70,12 +76,14 @@ module DocuSign_eSign
|
|
70
76
|
:'default_brand_language' => :'defaultBrandLanguage',
|
71
77
|
:'email_content' => :'emailContent',
|
72
78
|
:'error_details' => :'errorDetails',
|
79
|
+
:'is_organization_brand' => :'isOrganizationBrand',
|
73
80
|
:'is_overriding_company_name' => :'isOverridingCompanyName',
|
74
81
|
:'is_sending_default' => :'isSendingDefault',
|
75
82
|
:'is_signing_default' => :'isSigningDefault',
|
76
83
|
:'landing_pages' => :'landingPages',
|
77
84
|
:'links' => :'links',
|
78
85
|
:'logos' => :'logos',
|
86
|
+
:'organization_brand_logo' => :'organizationBrandLogo',
|
79
87
|
:'resources' => :'resources'
|
80
88
|
}
|
81
89
|
end
|
@@ -91,12 +99,14 @@ module DocuSign_eSign
|
|
91
99
|
:'default_brand_language' => :'String',
|
92
100
|
:'email_content' => :'Array<BrandEmailContent>',
|
93
101
|
:'error_details' => :'ErrorDetails',
|
102
|
+
:'is_organization_brand' => :'String',
|
94
103
|
:'is_overriding_company_name' => :'BOOLEAN',
|
95
104
|
:'is_sending_default' => :'BOOLEAN',
|
96
105
|
:'is_signing_default' => :'BOOLEAN',
|
97
106
|
:'landing_pages' => :'Array<NameValue>',
|
98
107
|
:'links' => :'Array<BrandLink>',
|
99
108
|
:'logos' => :'BrandLogos',
|
109
|
+
:'organization_brand_logo' => :'String',
|
100
110
|
:'resources' => :'BrandResourceUrls'
|
101
111
|
}
|
102
112
|
end
|
@@ -147,6 +157,10 @@ module DocuSign_eSign
|
|
147
157
|
self.error_details = attributes[:'errorDetails']
|
148
158
|
end
|
149
159
|
|
160
|
+
if attributes.has_key?(:'isOrganizationBrand')
|
161
|
+
self.is_organization_brand = attributes[:'isOrganizationBrand']
|
162
|
+
end
|
163
|
+
|
150
164
|
if attributes.has_key?(:'isOverridingCompanyName')
|
151
165
|
self.is_overriding_company_name = attributes[:'isOverridingCompanyName']
|
152
166
|
end
|
@@ -175,6 +189,10 @@ module DocuSign_eSign
|
|
175
189
|
self.logos = attributes[:'logos']
|
176
190
|
end
|
177
191
|
|
192
|
+
if attributes.has_key?(:'organizationBrandLogo')
|
193
|
+
self.organization_brand_logo = attributes[:'organizationBrandLogo']
|
194
|
+
end
|
195
|
+
|
178
196
|
if attributes.has_key?(:'resources')
|
179
197
|
self.resources = attributes[:'resources']
|
180
198
|
end
|
@@ -206,12 +224,14 @@ module DocuSign_eSign
|
|
206
224
|
default_brand_language == o.default_brand_language &&
|
207
225
|
email_content == o.email_content &&
|
208
226
|
error_details == o.error_details &&
|
227
|
+
is_organization_brand == o.is_organization_brand &&
|
209
228
|
is_overriding_company_name == o.is_overriding_company_name &&
|
210
229
|
is_sending_default == o.is_sending_default &&
|
211
230
|
is_signing_default == o.is_signing_default &&
|
212
231
|
landing_pages == o.landing_pages &&
|
213
232
|
links == o.links &&
|
214
233
|
logos == o.logos &&
|
234
|
+
organization_brand_logo == o.organization_brand_logo &&
|
215
235
|
resources == o.resources
|
216
236
|
end
|
217
237
|
|
@@ -224,7 +244,7 @@ module DocuSign_eSign
|
|
224
244
|
# Calculates hash code according to all attributes.
|
225
245
|
# @return [Fixnum] Hash code
|
226
246
|
def hash
|
227
|
-
[brand_company, brand_id, brand_languages, brand_name, colors, default_brand_language, email_content, error_details, is_overriding_company_name, is_sending_default, is_signing_default, landing_pages, links, logos, resources].hash
|
247
|
+
[brand_company, brand_id, brand_languages, brand_name, colors, default_brand_language, email_content, error_details, is_organization_brand, is_overriding_company_name, is_sending_default, is_signing_default, landing_pages, links, logos, organization_brand_logo, resources].hash
|
228
248
|
end
|
229
249
|
|
230
250
|
# Builds the object from hash
|
@@ -13,28 +13,44 @@ require 'date'
|
|
13
13
|
|
14
14
|
module DocuSign_eSign
|
15
15
|
class DocGenFormField
|
16
|
+
#
|
17
|
+
attr_accessor :description
|
18
|
+
|
16
19
|
#
|
17
20
|
attr_accessor :label
|
18
21
|
|
19
22
|
#
|
20
23
|
attr_accessor :name
|
21
24
|
|
25
|
+
#
|
26
|
+
attr_accessor :options
|
27
|
+
|
28
|
+
#
|
29
|
+
attr_accessor :predefined_validation
|
30
|
+
|
22
31
|
# When set to **true**, the signer is required to fill out this tab
|
23
32
|
attr_accessor :required
|
24
33
|
|
25
34
|
#
|
26
35
|
attr_accessor :type
|
27
36
|
|
37
|
+
#
|
38
|
+
attr_accessor :validation
|
39
|
+
|
28
40
|
# Specifies the value of the tab.
|
29
41
|
attr_accessor :value
|
30
42
|
|
31
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
44
|
def self.attribute_map
|
33
45
|
{
|
46
|
+
:'description' => :'description',
|
34
47
|
:'label' => :'label',
|
35
48
|
:'name' => :'name',
|
49
|
+
:'options' => :'options',
|
50
|
+
:'predefined_validation' => :'predefinedValidation',
|
36
51
|
:'required' => :'required',
|
37
52
|
:'type' => :'type',
|
53
|
+
:'validation' => :'validation',
|
38
54
|
:'value' => :'value'
|
39
55
|
}
|
40
56
|
end
|
@@ -42,10 +58,14 @@ module DocuSign_eSign
|
|
42
58
|
# Attribute type mapping.
|
43
59
|
def self.swagger_types
|
44
60
|
{
|
61
|
+
:'description' => :'String',
|
45
62
|
:'label' => :'String',
|
46
63
|
:'name' => :'String',
|
64
|
+
:'options' => :'Array<DocGenFormFieldOption>',
|
65
|
+
:'predefined_validation' => :'String',
|
47
66
|
:'required' => :'String',
|
48
67
|
:'type' => :'String',
|
68
|
+
:'validation' => :'DocGenFormFieldValidation',
|
49
69
|
:'value' => :'String'
|
50
70
|
}
|
51
71
|
end
|
@@ -58,6 +78,10 @@ module DocuSign_eSign
|
|
58
78
|
# convert string to symbol for hash key
|
59
79
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
80
|
|
81
|
+
if attributes.has_key?(:'description')
|
82
|
+
self.description = attributes[:'description']
|
83
|
+
end
|
84
|
+
|
61
85
|
if attributes.has_key?(:'label')
|
62
86
|
self.label = attributes[:'label']
|
63
87
|
end
|
@@ -66,6 +90,16 @@ module DocuSign_eSign
|
|
66
90
|
self.name = attributes[:'name']
|
67
91
|
end
|
68
92
|
|
93
|
+
if attributes.has_key?(:'options')
|
94
|
+
if (value = attributes[:'options']).is_a?(Array)
|
95
|
+
self.options = value
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'predefinedValidation')
|
100
|
+
self.predefined_validation = attributes[:'predefinedValidation']
|
101
|
+
end
|
102
|
+
|
69
103
|
if attributes.has_key?(:'required')
|
70
104
|
self.required = attributes[:'required']
|
71
105
|
end
|
@@ -74,6 +108,10 @@ module DocuSign_eSign
|
|
74
108
|
self.type = attributes[:'type']
|
75
109
|
end
|
76
110
|
|
111
|
+
if attributes.has_key?(:'validation')
|
112
|
+
self.validation = attributes[:'validation']
|
113
|
+
end
|
114
|
+
|
77
115
|
if attributes.has_key?(:'value')
|
78
116
|
self.value = attributes[:'value']
|
79
117
|
end
|
@@ -97,10 +135,14 @@ module DocuSign_eSign
|
|
97
135
|
def ==(o)
|
98
136
|
return true if self.equal?(o)
|
99
137
|
self.class == o.class &&
|
138
|
+
description == o.description &&
|
100
139
|
label == o.label &&
|
101
140
|
name == o.name &&
|
141
|
+
options == o.options &&
|
142
|
+
predefined_validation == o.predefined_validation &&
|
102
143
|
required == o.required &&
|
103
144
|
type == o.type &&
|
145
|
+
validation == o.validation &&
|
104
146
|
value == o.value
|
105
147
|
end
|
106
148
|
|
@@ -113,7 +155,7 @@ module DocuSign_eSign
|
|
113
155
|
# Calculates hash code according to all attributes.
|
114
156
|
# @return [Fixnum] Hash code
|
115
157
|
def hash
|
116
|
-
[label, name, required, type, value].hash
|
158
|
+
[description, label, name, options, predefined_validation, required, type, validation, value].hash
|
117
159
|
end
|
118
160
|
|
119
161
|
# 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 DocGenFormFieldOption
|
16
|
+
#
|
17
|
+
attr_accessor :description
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :label
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :selected
|
24
|
+
|
25
|
+
# Specifies the value of the tab.
|
26
|
+
attr_accessor :value
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'description' => :'description',
|
32
|
+
:'label' => :'label',
|
33
|
+
:'selected' => :'selected',
|
34
|
+
:'value' => :'value'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
:'description' => :'String',
|
42
|
+
:'label' => :'String',
|
43
|
+
:'selected' => :'String',
|
44
|
+
:'value' => :'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?(:'description')
|
57
|
+
self.description = attributes[:'description']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'label')
|
61
|
+
self.label = attributes[:'label']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.has_key?(:'selected')
|
65
|
+
self.selected = attributes[:'selected']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'value')
|
69
|
+
self.value = attributes[:'value']
|
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
|
+
description == o.description &&
|
92
|
+
label == o.label &&
|
93
|
+
selected == o.selected &&
|
94
|
+
value == o.value
|
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
|
+
[description, label, selected, value].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
|
@@ -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 DocGenFormFieldValidation
|
16
|
+
#
|
17
|
+
attr_accessor :error_message
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :expression
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'error_message' => :'errorMessage',
|
26
|
+
:'expression' => :'expression'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'error_message' => :'String',
|
34
|
+
:'expression' => :'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?(:'errorMessage')
|
47
|
+
self.error_message = attributes[:'errorMessage']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'expression')
|
51
|
+
self.expression = attributes[:'expression']
|
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
|
+
error_message == o.error_message &&
|
74
|
+
expression == o.expression
|
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
|
+
[error_message, expression].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
|
@@ -20,6 +20,9 @@ module DocuSign_eSign
|
|
20
20
|
#
|
21
21
|
attr_accessor :assign_tabs_to_recipient_id
|
22
22
|
|
23
|
+
# Specifies the Authoritative copy feature. If set to true the Authoritative copy feature is enabled.
|
24
|
+
attr_accessor :authoritative_copy
|
25
|
+
|
23
26
|
#
|
24
27
|
attr_accessor :display
|
25
28
|
|
@@ -100,6 +103,7 @@ module DocuSign_eSign
|
|
100
103
|
{
|
101
104
|
:'apply_anchor_tabs' => :'applyAnchorTabs',
|
102
105
|
:'assign_tabs_to_recipient_id' => :'assignTabsToRecipientId',
|
106
|
+
:'authoritative_copy' => :'authoritativeCopy',
|
103
107
|
:'display' => :'display',
|
104
108
|
:'doc_gen_form_fields' => :'docGenFormFields',
|
105
109
|
:'document_base64' => :'documentBase64',
|
@@ -133,6 +137,7 @@ module DocuSign_eSign
|
|
133
137
|
{
|
134
138
|
:'apply_anchor_tabs' => :'String',
|
135
139
|
:'assign_tabs_to_recipient_id' => :'String',
|
140
|
+
:'authoritative_copy' => :'BOOLEAN',
|
136
141
|
:'display' => :'String',
|
137
142
|
:'doc_gen_form_fields' => :'Array<DocGenFormField>',
|
138
143
|
:'document_base64' => :'String',
|
@@ -177,6 +182,10 @@ module DocuSign_eSign
|
|
177
182
|
self.assign_tabs_to_recipient_id = attributes[:'assignTabsToRecipientId']
|
178
183
|
end
|
179
184
|
|
185
|
+
if attributes.has_key?(:'authoritativeCopy')
|
186
|
+
self.authoritative_copy = attributes[:'authoritativeCopy']
|
187
|
+
end
|
188
|
+
|
180
189
|
if attributes.has_key?(:'display')
|
181
190
|
self.display = attributes[:'display']
|
182
191
|
end
|
@@ -304,6 +313,7 @@ module DocuSign_eSign
|
|
304
313
|
self.class == o.class &&
|
305
314
|
apply_anchor_tabs == o.apply_anchor_tabs &&
|
306
315
|
assign_tabs_to_recipient_id == o.assign_tabs_to_recipient_id &&
|
316
|
+
authoritative_copy == o.authoritative_copy &&
|
307
317
|
display == o.display &&
|
308
318
|
doc_gen_form_fields == o.doc_gen_form_fields &&
|
309
319
|
document_base64 == o.document_base64 &&
|
@@ -340,7 +350,7 @@ module DocuSign_eSign
|
|
340
350
|
# Calculates hash code according to all attributes.
|
341
351
|
# @return [Fixnum] Hash code
|
342
352
|
def hash
|
343
|
-
[apply_anchor_tabs, assign_tabs_to_recipient_id, display, doc_gen_form_fields, document_base64, document_fields, document_id, encrypted_with_key_manager, file_extension, file_format_hint, html_definition, include_in_download, is_doc_gen_document, match_boxes, name, order, pages, password, pdf_form_field_option, remote_url, signer_must_acknowledge, signer_must_acknowledge_use_account_default, tabs, template_locked, template_required, transform_pdf_fields, uri].hash
|
353
|
+
[apply_anchor_tabs, assign_tabs_to_recipient_id, authoritative_copy, display, doc_gen_form_fields, document_base64, document_fields, document_id, encrypted_with_key_manager, file_extension, file_format_hint, html_definition, include_in_download, is_doc_gen_document, match_boxes, name, order, pages, password, pdf_form_field_option, remote_url, signer_must_acknowledge, signer_must_acknowledge_use_account_default, tabs, template_locked, template_required, transform_pdf_fields, uri].hash
|
344
354
|
end
|
345
355
|
|
346
356
|
# Builds the object from hash
|