docusign_esign 2.2.0.pre.rc1 → 2.2.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docusign_esign-3.1.0.rc2.gem +0 -0
- data/lib/docusign_esign.rb +386 -450
- data/lib/docusign_esign/api/accounts_api.rb +2 -2
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +3 -3
- data/lib/docusign_esign/version.rb +1 -1
- metadata +3 -70
- data/docusign_esign-3.1.0.pre.rc1.gem +0 -0
- data/lib/docusign_esign/api/.DS_Store +0 -0
- data/lib/docusign_esign/models/access_code_format.rb +0 -273
- data/lib/docusign_esign/models/account_notification.rb +0 -206
- data/lib/docusign_esign/models/account_ui_settings.rb +0 -330
- data/lib/docusign_esign/models/bcc_email_archive.rb +0 -276
- data/lib/docusign_esign/models/bcc_email_archive_history.rb +0 -237
- data/lib/docusign_esign/models/bcc_email_archive_history_list.rb +0 -250
- data/lib/docusign_esign/models/bcc_email_archive_list.rb +0 -250
- data/lib/docusign_esign/models/bulk_send_request.rb +0 -188
- data/lib/docusign_esign/models/bulk_send_response.rb +0 -222
- data/lib/docusign_esign/models/bulk_send_test_response.rb +0 -212
- data/lib/docusign_esign/models/bulk_sending_copy.rb +0 -222
- data/lib/docusign_esign/models/bulk_sending_copy_custom_field.rb +0 -198
- data/lib/docusign_esign/models/bulk_sending_copy_recipient.rb +0 -382
- data/lib/docusign_esign/models/bulk_sending_copy_tab.rb +0 -198
- data/lib/docusign_esign/models/bulk_sending_list.rb +0 -210
- data/lib/docusign_esign/models/bulk_sending_list_summaries.rb +0 -190
- data/lib/docusign_esign/models/bulk_sending_list_summary.rb +0 -218
- data/lib/docusign_esign/models/comment.rb +0 -392
- data/lib/docusign_esign/models/comment_history_result.rb +0 -220
- data/lib/docusign_esign/models/comment_publish.rb +0 -244
- data/lib/docusign_esign/models/comment_thread.rb +0 -961
- data/lib/docusign_esign/models/comments_publish.rb +0 -190
- data/lib/docusign_esign/models/connect_salesforce_field.rb +0 -258
- data/lib/docusign_esign/models/connect_salesforce_object.rb +0 -272
- data/lib/docusign_esign/models/connect_user_object.rb +0 -230
- data/lib/docusign_esign/models/direct_debit_processor_information.rb +0 -298
- data/lib/docusign_esign/models/display_appliance_document.rb +0 -258
- data/lib/docusign_esign/models/display_appliance_document_page.rb +0 -278
- data/lib/docusign_esign/models/display_appliance_envelope.rb +0 -328
- data/lib/docusign_esign/models/display_appliance_info.rb +0 -235
- data/lib/docusign_esign/models/display_appliance_page.rb +0 -278
- data/lib/docusign_esign/models/display_appliance_pdf.rb +0 -267
- data/lib/docusign_esign/models/display_appliance_recipient.rb +0 -388
- data/lib/docusign_esign/models/display_appliance_signer_attachment.rb +0 -248
- data/lib/docusign_esign/models/envelope_metadata.rb +0 -208
- data/lib/docusign_esign/models/envelope_purge_configuration.rb +0 -218
- data/lib/docusign_esign/models/envelope_transfer_rule.rb +0 -273
- data/lib/docusign_esign/models/envelope_transfer_rule_information.rb +0 -250
- data/lib/docusign_esign/models/envelope_transfer_rule_request.rb +0 -279
- data/lib/docusign_esign/models/external_claim.rb +0 -218
- data/lib/docusign_esign/models/external_document_sources.rb +0 -273
- data/lib/docusign_esign/models/favorite_templates_content_item.rb +0 -207
- data/lib/docusign_esign/models/favorite_templates_info.rb +0 -209
- data/lib/docusign_esign/models/feature_available_metadata.rb +0 -198
- data/lib/docusign_esign/models/folder_shared_item.rb +0 -289
- data/lib/docusign_esign/models/form_data_item.rb +0 -227
- data/lib/docusign_esign/models/graphics_context.rb +0 -208
- data/lib/docusign_esign/models/id_check_configuration.rb +0 -210
- data/lib/docusign_esign/models/id_check_security_step.rb +0 -188
- data/lib/docusign_esign/models/locale_policy.rb +0 -595
- data/lib/docusign_esign/models/locale_policy_tab.rb +0 -298
- data/lib/docusign_esign/models/notification_default_settings.rb +0 -196
- data/lib/docusign_esign/models/notification_defaults.rb +0 -196
- data/lib/docusign_esign/models/page_size.rb +0 -198
- data/lib/docusign_esign/models/path_extended_element.rb +0 -208
- data/lib/docusign_esign/models/pay_pal_legacy_settings.rb +0 -228
- data/lib/docusign_esign/models/payment_gateway_account_setting.rb +0 -218
- data/lib/docusign_esign/models/payment_method_with_options.rb +0 -200
- data/lib/docusign_esign/models/poly_line.rb +0 -218
- data/lib/docusign_esign/models/poly_line_overlay.rb +0 -885
- data/lib/docusign_esign/models/recipient_preview_request.rb +0 -278
- data/lib/docusign_esign/models/signature_properties.rb +0 -198
- data/lib/docusign_esign/models/tab_group.rb +0 -911
- data/lib/docusign_esign/models/workspace_settings.rb +0 -188
- data/tests/Gemfile.lock +0 -42
- data/tests/docs/private.pem +0 -27
@@ -1,206 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#DocuSign REST API
|
3
|
-
|
4
|
-
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
-
|
6
|
-
OpenAPI spec version: v2.1
|
7
|
-
Contact: devcenter@docusign.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module DocuSign_eSign
|
15
|
-
|
16
|
-
class AccountNotification
|
17
|
-
attr_accessor :expirations
|
18
|
-
|
19
|
-
attr_accessor :reminders
|
20
|
-
|
21
|
-
#
|
22
|
-
attr_accessor :user_override_enabled
|
23
|
-
|
24
|
-
|
25
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
-
def self.attribute_map
|
27
|
-
{
|
28
|
-
:'expirations' => :'expirations',
|
29
|
-
:'reminders' => :'reminders',
|
30
|
-
:'user_override_enabled' => :'userOverrideEnabled'
|
31
|
-
}
|
32
|
-
end
|
33
|
-
|
34
|
-
# Attribute type mapping.
|
35
|
-
def self.swagger_types
|
36
|
-
{
|
37
|
-
:'expirations' => :'Expirations',
|
38
|
-
:'reminders' => :'Reminders',
|
39
|
-
:'user_override_enabled' => :'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?(:'expirations')
|
52
|
-
self.expirations = attributes[:'expirations']
|
53
|
-
end
|
54
|
-
|
55
|
-
if attributes.has_key?(:'reminders')
|
56
|
-
self.reminders = attributes[:'reminders']
|
57
|
-
end
|
58
|
-
|
59
|
-
if attributes.has_key?(:'userOverrideEnabled')
|
60
|
-
self.user_override_enabled = attributes[:'userOverrideEnabled']
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
65
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
-
# @return Array for valid properies with the reasons
|
67
|
-
def list_invalid_properties
|
68
|
-
invalid_properties = Array.new
|
69
|
-
return invalid_properties
|
70
|
-
end
|
71
|
-
|
72
|
-
# Check to see if the all the properties in the model are valid
|
73
|
-
# @return true if the model is valid
|
74
|
-
def valid?
|
75
|
-
return true
|
76
|
-
end
|
77
|
-
|
78
|
-
# Checks equality by comparing each attribute.
|
79
|
-
# @param [Object] Object to be compared
|
80
|
-
def ==(o)
|
81
|
-
return true if self.equal?(o)
|
82
|
-
self.class == o.class &&
|
83
|
-
expirations == o.expirations &&
|
84
|
-
reminders == o.reminders &&
|
85
|
-
user_override_enabled == o.user_override_enabled
|
86
|
-
end
|
87
|
-
|
88
|
-
# @see the `==` method
|
89
|
-
# @param [Object] Object to be compared
|
90
|
-
def eql?(o)
|
91
|
-
self == o
|
92
|
-
end
|
93
|
-
|
94
|
-
# Calculates hash code according to all attributes.
|
95
|
-
# @return [Fixnum] Hash code
|
96
|
-
def hash
|
97
|
-
[expirations, reminders, user_override_enabled].hash
|
98
|
-
end
|
99
|
-
|
100
|
-
# Builds the object from hash
|
101
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
-
# @return [Object] Returns the model itself
|
103
|
-
def build_from_hash(attributes)
|
104
|
-
return nil unless attributes.is_a?(Hash)
|
105
|
-
self.class.swagger_types.each_pair do |key, type|
|
106
|
-
if type =~ /\AArray<(.*)>/i
|
107
|
-
# check to ensure the input is an array given that the the attribute
|
108
|
-
# is documented as an array but the input is not
|
109
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
111
|
-
end
|
112
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
-
end
|
116
|
-
|
117
|
-
self
|
118
|
-
end
|
119
|
-
|
120
|
-
# Deserializes the data based on type
|
121
|
-
# @param string type Data type
|
122
|
-
# @param string value Value to be deserialized
|
123
|
-
# @return [Object] Deserialized data
|
124
|
-
def _deserialize(type, value)
|
125
|
-
case type.to_sym
|
126
|
-
when :DateTime
|
127
|
-
DateTime.parse(value)
|
128
|
-
when :Date
|
129
|
-
Date.parse(value)
|
130
|
-
when :String
|
131
|
-
value.to_s
|
132
|
-
when :Integer
|
133
|
-
value.to_i
|
134
|
-
when :Float
|
135
|
-
value.to_f
|
136
|
-
when :BOOLEAN
|
137
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
-
true
|
139
|
-
else
|
140
|
-
false
|
141
|
-
end
|
142
|
-
when :Object
|
143
|
-
# generic object (usually a Hash), return directly
|
144
|
-
value
|
145
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
-
inner_type = Regexp.last_match[:inner_type]
|
147
|
-
value.map { |v| _deserialize(inner_type, v) }
|
148
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
-
k_type = Regexp.last_match[:k_type]
|
150
|
-
v_type = Regexp.last_match[:v_type]
|
151
|
-
{}.tap do |hash|
|
152
|
-
value.each do |k, v|
|
153
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
-
end
|
155
|
-
end
|
156
|
-
else # model
|
157
|
-
temp_model = DocuSign_eSign.const_get(type).new
|
158
|
-
temp_model.build_from_hash(value)
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
# Returns the string representation of the object
|
163
|
-
# @return [String] String presentation of the object
|
164
|
-
def to_s
|
165
|
-
to_hash.to_s
|
166
|
-
end
|
167
|
-
|
168
|
-
# to_body is an alias to to_hash (backward compatibility)
|
169
|
-
# @return [Hash] Returns the object in the form of hash
|
170
|
-
def to_body
|
171
|
-
to_hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# Returns the object in the form of hash
|
175
|
-
# @return [Hash] Returns the object in the form of hash
|
176
|
-
def to_hash
|
177
|
-
hash = {}
|
178
|
-
self.class.attribute_map.each_pair do |attr, param|
|
179
|
-
value = self.send(attr)
|
180
|
-
next if value.nil?
|
181
|
-
hash[param] = _to_hash(value)
|
182
|
-
end
|
183
|
-
hash
|
184
|
-
end
|
185
|
-
|
186
|
-
# Outputs non-array value in the form of hash
|
187
|
-
# For object, use to_hash. Otherwise, just return the value
|
188
|
-
# @param [Object] value Any valid value
|
189
|
-
# @return [Hash] Returns the value in the form of hash
|
190
|
-
def _to_hash(value)
|
191
|
-
if value.is_a?(Array)
|
192
|
-
value.compact.map{ |v| _to_hash(v) }
|
193
|
-
elsif value.is_a?(Hash)
|
194
|
-
{}.tap do |hash|
|
195
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
-
end
|
197
|
-
elsif value.respond_to? :to_hash
|
198
|
-
value.to_hash
|
199
|
-
else
|
200
|
-
value
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
end
|
205
|
-
|
206
|
-
end
|
@@ -1,330 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#DocuSign REST API
|
3
|
-
|
4
|
-
#The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
|
5
|
-
|
6
|
-
OpenAPI spec version: v2.1
|
7
|
-
Contact: devcenter@docusign.com
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module DocuSign_eSign
|
15
|
-
|
16
|
-
class AccountUISettings
|
17
|
-
#
|
18
|
-
attr_accessor :enable_easy_sign_can_use_multi_template_apply
|
19
|
-
|
20
|
-
attr_accessor :enable_easy_sign_can_use_multi_template_apply_metadata
|
21
|
-
|
22
|
-
#
|
23
|
-
attr_accessor :enable_easy_sign_template_upload
|
24
|
-
|
25
|
-
attr_accessor :enable_easy_sign_template_upload_metadata
|
26
|
-
|
27
|
-
#
|
28
|
-
attr_accessor :hide_send_an_envelope
|
29
|
-
|
30
|
-
attr_accessor :hide_send_an_envelope_metadata
|
31
|
-
|
32
|
-
#
|
33
|
-
attr_accessor :hide_use_a_template
|
34
|
-
|
35
|
-
#
|
36
|
-
attr_accessor :hide_use_a_template_in_prepare
|
37
|
-
|
38
|
-
attr_accessor :hide_use_a_template_in_prepare_metadata
|
39
|
-
|
40
|
-
attr_accessor :hide_use_a_template_metadata
|
41
|
-
|
42
|
-
#
|
43
|
-
attr_accessor :order_based_recipient_id_generation
|
44
|
-
|
45
|
-
attr_accessor :order_based_recipient_id_generation_metadata
|
46
|
-
|
47
|
-
#
|
48
|
-
attr_accessor :remove_envelope_forwarding
|
49
|
-
|
50
|
-
attr_accessor :remove_envelope_forwarding_metadata
|
51
|
-
|
52
|
-
#
|
53
|
-
attr_accessor :should_redact_access_code
|
54
|
-
|
55
|
-
attr_accessor :should_redact_access_code_metadata
|
56
|
-
|
57
|
-
|
58
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
59
|
-
def self.attribute_map
|
60
|
-
{
|
61
|
-
:'enable_easy_sign_can_use_multi_template_apply' => :'enableEasySignCanUseMultiTemplateApply',
|
62
|
-
:'enable_easy_sign_can_use_multi_template_apply_metadata' => :'enableEasySignCanUseMultiTemplateApplyMetadata',
|
63
|
-
:'enable_easy_sign_template_upload' => :'enableEasySignTemplateUpload',
|
64
|
-
:'enable_easy_sign_template_upload_metadata' => :'enableEasySignTemplateUploadMetadata',
|
65
|
-
:'hide_send_an_envelope' => :'hideSendAnEnvelope',
|
66
|
-
:'hide_send_an_envelope_metadata' => :'hideSendAnEnvelopeMetadata',
|
67
|
-
:'hide_use_a_template' => :'hideUseATemplate',
|
68
|
-
:'hide_use_a_template_in_prepare' => :'hideUseATemplateInPrepare',
|
69
|
-
:'hide_use_a_template_in_prepare_metadata' => :'hideUseATemplateInPrepareMetadata',
|
70
|
-
:'hide_use_a_template_metadata' => :'hideUseATemplateMetadata',
|
71
|
-
:'order_based_recipient_id_generation' => :'orderBasedRecipientIdGeneration',
|
72
|
-
:'order_based_recipient_id_generation_metadata' => :'orderBasedRecipientIdGenerationMetadata',
|
73
|
-
:'remove_envelope_forwarding' => :'removeEnvelopeForwarding',
|
74
|
-
:'remove_envelope_forwarding_metadata' => :'removeEnvelopeForwardingMetadata',
|
75
|
-
:'should_redact_access_code' => :'shouldRedactAccessCode',
|
76
|
-
:'should_redact_access_code_metadata' => :'shouldRedactAccessCodeMetadata'
|
77
|
-
}
|
78
|
-
end
|
79
|
-
|
80
|
-
# Attribute type mapping.
|
81
|
-
def self.swagger_types
|
82
|
-
{
|
83
|
-
:'enable_easy_sign_can_use_multi_template_apply' => :'String',
|
84
|
-
:'enable_easy_sign_can_use_multi_template_apply_metadata' => :'SettingsMetadata',
|
85
|
-
:'enable_easy_sign_template_upload' => :'String',
|
86
|
-
:'enable_easy_sign_template_upload_metadata' => :'SettingsMetadata',
|
87
|
-
:'hide_send_an_envelope' => :'String',
|
88
|
-
:'hide_send_an_envelope_metadata' => :'SettingsMetadata',
|
89
|
-
:'hide_use_a_template' => :'String',
|
90
|
-
:'hide_use_a_template_in_prepare' => :'String',
|
91
|
-
:'hide_use_a_template_in_prepare_metadata' => :'SettingsMetadata',
|
92
|
-
:'hide_use_a_template_metadata' => :'SettingsMetadata',
|
93
|
-
:'order_based_recipient_id_generation' => :'String',
|
94
|
-
:'order_based_recipient_id_generation_metadata' => :'SettingsMetadata',
|
95
|
-
:'remove_envelope_forwarding' => :'String',
|
96
|
-
:'remove_envelope_forwarding_metadata' => :'SettingsMetadata',
|
97
|
-
:'should_redact_access_code' => :'String',
|
98
|
-
:'should_redact_access_code_metadata' => :'SettingsMetadata'
|
99
|
-
}
|
100
|
-
end
|
101
|
-
|
102
|
-
# Initializes the object
|
103
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
-
def initialize(attributes = {})
|
105
|
-
return unless attributes.is_a?(Hash)
|
106
|
-
|
107
|
-
# convert string to symbol for hash key
|
108
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
109
|
-
|
110
|
-
if attributes.has_key?(:'enableEasySignCanUseMultiTemplateApply')
|
111
|
-
self.enable_easy_sign_can_use_multi_template_apply = attributes[:'enableEasySignCanUseMultiTemplateApply']
|
112
|
-
end
|
113
|
-
|
114
|
-
if attributes.has_key?(:'enableEasySignCanUseMultiTemplateApplyMetadata')
|
115
|
-
self.enable_easy_sign_can_use_multi_template_apply_metadata = attributes[:'enableEasySignCanUseMultiTemplateApplyMetadata']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.has_key?(:'enableEasySignTemplateUpload')
|
119
|
-
self.enable_easy_sign_template_upload = attributes[:'enableEasySignTemplateUpload']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.has_key?(:'enableEasySignTemplateUploadMetadata')
|
123
|
-
self.enable_easy_sign_template_upload_metadata = attributes[:'enableEasySignTemplateUploadMetadata']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.has_key?(:'hideSendAnEnvelope')
|
127
|
-
self.hide_send_an_envelope = attributes[:'hideSendAnEnvelope']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.has_key?(:'hideSendAnEnvelopeMetadata')
|
131
|
-
self.hide_send_an_envelope_metadata = attributes[:'hideSendAnEnvelopeMetadata']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.has_key?(:'hideUseATemplate')
|
135
|
-
self.hide_use_a_template = attributes[:'hideUseATemplate']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.has_key?(:'hideUseATemplateInPrepare')
|
139
|
-
self.hide_use_a_template_in_prepare = attributes[:'hideUseATemplateInPrepare']
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.has_key?(:'hideUseATemplateInPrepareMetadata')
|
143
|
-
self.hide_use_a_template_in_prepare_metadata = attributes[:'hideUseATemplateInPrepareMetadata']
|
144
|
-
end
|
145
|
-
|
146
|
-
if attributes.has_key?(:'hideUseATemplateMetadata')
|
147
|
-
self.hide_use_a_template_metadata = attributes[:'hideUseATemplateMetadata']
|
148
|
-
end
|
149
|
-
|
150
|
-
if attributes.has_key?(:'orderBasedRecipientIdGeneration')
|
151
|
-
self.order_based_recipient_id_generation = attributes[:'orderBasedRecipientIdGeneration']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.has_key?(:'orderBasedRecipientIdGenerationMetadata')
|
155
|
-
self.order_based_recipient_id_generation_metadata = attributes[:'orderBasedRecipientIdGenerationMetadata']
|
156
|
-
end
|
157
|
-
|
158
|
-
if attributes.has_key?(:'removeEnvelopeForwarding')
|
159
|
-
self.remove_envelope_forwarding = attributes[:'removeEnvelopeForwarding']
|
160
|
-
end
|
161
|
-
|
162
|
-
if attributes.has_key?(:'removeEnvelopeForwardingMetadata')
|
163
|
-
self.remove_envelope_forwarding_metadata = attributes[:'removeEnvelopeForwardingMetadata']
|
164
|
-
end
|
165
|
-
|
166
|
-
if attributes.has_key?(:'shouldRedactAccessCode')
|
167
|
-
self.should_redact_access_code = attributes[:'shouldRedactAccessCode']
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes.has_key?(:'shouldRedactAccessCodeMetadata')
|
171
|
-
self.should_redact_access_code_metadata = attributes[:'shouldRedactAccessCodeMetadata']
|
172
|
-
end
|
173
|
-
|
174
|
-
end
|
175
|
-
|
176
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
177
|
-
# @return Array for valid properies with the reasons
|
178
|
-
def list_invalid_properties
|
179
|
-
invalid_properties = Array.new
|
180
|
-
return invalid_properties
|
181
|
-
end
|
182
|
-
|
183
|
-
# Check to see if the all the properties in the model are valid
|
184
|
-
# @return true if the model is valid
|
185
|
-
def valid?
|
186
|
-
return true
|
187
|
-
end
|
188
|
-
|
189
|
-
# Checks equality by comparing each attribute.
|
190
|
-
# @param [Object] Object to be compared
|
191
|
-
def ==(o)
|
192
|
-
return true if self.equal?(o)
|
193
|
-
self.class == o.class &&
|
194
|
-
enable_easy_sign_can_use_multi_template_apply == o.enable_easy_sign_can_use_multi_template_apply &&
|
195
|
-
enable_easy_sign_can_use_multi_template_apply_metadata == o.enable_easy_sign_can_use_multi_template_apply_metadata &&
|
196
|
-
enable_easy_sign_template_upload == o.enable_easy_sign_template_upload &&
|
197
|
-
enable_easy_sign_template_upload_metadata == o.enable_easy_sign_template_upload_metadata &&
|
198
|
-
hide_send_an_envelope == o.hide_send_an_envelope &&
|
199
|
-
hide_send_an_envelope_metadata == o.hide_send_an_envelope_metadata &&
|
200
|
-
hide_use_a_template == o.hide_use_a_template &&
|
201
|
-
hide_use_a_template_in_prepare == o.hide_use_a_template_in_prepare &&
|
202
|
-
hide_use_a_template_in_prepare_metadata == o.hide_use_a_template_in_prepare_metadata &&
|
203
|
-
hide_use_a_template_metadata == o.hide_use_a_template_metadata &&
|
204
|
-
order_based_recipient_id_generation == o.order_based_recipient_id_generation &&
|
205
|
-
order_based_recipient_id_generation_metadata == o.order_based_recipient_id_generation_metadata &&
|
206
|
-
remove_envelope_forwarding == o.remove_envelope_forwarding &&
|
207
|
-
remove_envelope_forwarding_metadata == o.remove_envelope_forwarding_metadata &&
|
208
|
-
should_redact_access_code == o.should_redact_access_code &&
|
209
|
-
should_redact_access_code_metadata == o.should_redact_access_code_metadata
|
210
|
-
end
|
211
|
-
|
212
|
-
# @see the `==` method
|
213
|
-
# @param [Object] Object to be compared
|
214
|
-
def eql?(o)
|
215
|
-
self == o
|
216
|
-
end
|
217
|
-
|
218
|
-
# Calculates hash code according to all attributes.
|
219
|
-
# @return [Fixnum] Hash code
|
220
|
-
def hash
|
221
|
-
[enable_easy_sign_can_use_multi_template_apply, enable_easy_sign_can_use_multi_template_apply_metadata, enable_easy_sign_template_upload, enable_easy_sign_template_upload_metadata, hide_send_an_envelope, hide_send_an_envelope_metadata, hide_use_a_template, hide_use_a_template_in_prepare, hide_use_a_template_in_prepare_metadata, hide_use_a_template_metadata, order_based_recipient_id_generation, order_based_recipient_id_generation_metadata, remove_envelope_forwarding, remove_envelope_forwarding_metadata, should_redact_access_code, should_redact_access_code_metadata].hash
|
222
|
-
end
|
223
|
-
|
224
|
-
# Builds the object from hash
|
225
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
226
|
-
# @return [Object] Returns the model itself
|
227
|
-
def build_from_hash(attributes)
|
228
|
-
return nil unless attributes.is_a?(Hash)
|
229
|
-
self.class.swagger_types.each_pair do |key, type|
|
230
|
-
if type =~ /\AArray<(.*)>/i
|
231
|
-
# check to ensure the input is an array given that the the attribute
|
232
|
-
# is documented as an array but the input is not
|
233
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
234
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
235
|
-
end
|
236
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
237
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
238
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
239
|
-
end
|
240
|
-
|
241
|
-
self
|
242
|
-
end
|
243
|
-
|
244
|
-
# Deserializes the data based on type
|
245
|
-
# @param string type Data type
|
246
|
-
# @param string value Value to be deserialized
|
247
|
-
# @return [Object] Deserialized data
|
248
|
-
def _deserialize(type, value)
|
249
|
-
case type.to_sym
|
250
|
-
when :DateTime
|
251
|
-
DateTime.parse(value)
|
252
|
-
when :Date
|
253
|
-
Date.parse(value)
|
254
|
-
when :String
|
255
|
-
value.to_s
|
256
|
-
when :Integer
|
257
|
-
value.to_i
|
258
|
-
when :Float
|
259
|
-
value.to_f
|
260
|
-
when :BOOLEAN
|
261
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
262
|
-
true
|
263
|
-
else
|
264
|
-
false
|
265
|
-
end
|
266
|
-
when :Object
|
267
|
-
# generic object (usually a Hash), return directly
|
268
|
-
value
|
269
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
270
|
-
inner_type = Regexp.last_match[:inner_type]
|
271
|
-
value.map { |v| _deserialize(inner_type, v) }
|
272
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
273
|
-
k_type = Regexp.last_match[:k_type]
|
274
|
-
v_type = Regexp.last_match[:v_type]
|
275
|
-
{}.tap do |hash|
|
276
|
-
value.each do |k, v|
|
277
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
278
|
-
end
|
279
|
-
end
|
280
|
-
else # model
|
281
|
-
temp_model = DocuSign_eSign.const_get(type).new
|
282
|
-
temp_model.build_from_hash(value)
|
283
|
-
end
|
284
|
-
end
|
285
|
-
|
286
|
-
# Returns the string representation of the object
|
287
|
-
# @return [String] String presentation of the object
|
288
|
-
def to_s
|
289
|
-
to_hash.to_s
|
290
|
-
end
|
291
|
-
|
292
|
-
# to_body is an alias to to_hash (backward compatibility)
|
293
|
-
# @return [Hash] Returns the object in the form of hash
|
294
|
-
def to_body
|
295
|
-
to_hash
|
296
|
-
end
|
297
|
-
|
298
|
-
# Returns the object in the form of hash
|
299
|
-
# @return [Hash] Returns the object in the form of hash
|
300
|
-
def to_hash
|
301
|
-
hash = {}
|
302
|
-
self.class.attribute_map.each_pair do |attr, param|
|
303
|
-
value = self.send(attr)
|
304
|
-
next if value.nil?
|
305
|
-
hash[param] = _to_hash(value)
|
306
|
-
end
|
307
|
-
hash
|
308
|
-
end
|
309
|
-
|
310
|
-
# Outputs non-array value in the form of hash
|
311
|
-
# For object, use to_hash. Otherwise, just return the value
|
312
|
-
# @param [Object] value Any valid value
|
313
|
-
# @return [Hash] Returns the value in the form of hash
|
314
|
-
def _to_hash(value)
|
315
|
-
if value.is_a?(Array)
|
316
|
-
value.compact.map{ |v| _to_hash(v) }
|
317
|
-
elsif value.is_a?(Hash)
|
318
|
-
{}.tap do |hash|
|
319
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
320
|
-
end
|
321
|
-
elsif value.respond_to? :to_hash
|
322
|
-
value.to_hash
|
323
|
-
else
|
324
|
-
value
|
325
|
-
end
|
326
|
-
end
|
327
|
-
|
328
|
-
end
|
329
|
-
|
330
|
-
end
|