docusign_esign 3.15.0 → 3.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/docusign_esign/api/accounts_api.rb +15 -66
- data/lib/docusign_esign/api/bulk_envelopes_api.rb +12 -4
- data/lib/docusign_esign/api/envelopes_api.rb +116 -140
- data/lib/docusign_esign/api/power_forms_api.rb +8 -0
- data/lib/docusign_esign/api/templates_api.rb +0 -59
- data/lib/docusign_esign/api/users_api.rb +4 -0
- data/lib/docusign_esign/client/api_client.rb +1 -1
- data/lib/docusign_esign/models/account_information.rb +10 -1
- data/lib/docusign_esign/models/account_role_settings.rb +42 -4
- data/lib/docusign_esign/models/account_settings_information.rb +222 -19
- data/lib/docusign_esign/models/account_ui_settings.rb +13 -13
- data/lib/docusign_esign/models/agent.rb +13 -1
- data/lib/docusign_esign/models/approve.rb +20 -1
- data/lib/docusign_esign/models/billing_invoice_item.rb +21 -1
- data/lib/docusign_esign/models/billing_invoices_summary.rb +21 -1
- data/lib/docusign_esign/models/billing_plan_information.rb +21 -1
- data/lib/docusign_esign/models/bulk_send_batch_status.rb +11 -1
- data/lib/docusign_esign/models/bulk_send_envelopes_info.rb +101 -1
- data/lib/docusign_esign/models/bulk_send_error_status.rb +11 -1
- data/lib/docusign_esign/models/carbon_copy.rb +13 -1
- data/lib/docusign_esign/models/certified_delivery.rb +13 -1
- data/lib/docusign_esign/models/checkbox.rb +20 -1
- data/lib/docusign_esign/models/comment_thread.rb +20 -1
- data/lib/docusign_esign/models/commission_county.rb +20 -1
- data/lib/docusign_esign/models/commission_expiration.rb +20 -1
- data/lib/docusign_esign/models/commission_number.rb +20 -1
- data/lib/docusign_esign/models/commission_state.rb +20 -1
- data/lib/docusign_esign/models/company.rb +20 -1
- data/lib/docusign_esign/models/connect_custom_configuration.rb +33 -1
- data/lib/docusign_esign/models/connect_historical_envelope_republish.rb +195 -0
- data/lib/docusign_esign/models/consent_details.rb +204 -0
- data/lib/docusign_esign/models/currency.rb +20 -1
- data/lib/docusign_esign/models/date.rb +20 -1
- data/lib/docusign_esign/models/date_signed.rb +20 -1
- data/lib/docusign_esign/models/decline.rb +20 -1
- data/lib/docusign_esign/models/delayed_routing.rb +206 -0
- data/lib/docusign_esign/models/draw.rb +20 -1
- data/lib/docusign_esign/models/editor.rb +13 -1
- data/lib/docusign_esign/models/email.rb +20 -1
- data/lib/docusign_esign/models/email_address.rb +20 -1
- data/lib/docusign_esign/models/envelope_delay_rule.rb +194 -0
- data/lib/docusign_esign/models/envelope_id.rb +20 -1
- data/lib/docusign_esign/models/envelope_publish_transaction.rb +307 -0
- data/lib/docusign_esign/models/envelope_publish_transaction_error_rollup.rb +194 -0
- data/lib/docusign_esign/models/first_name.rb +20 -1
- data/lib/docusign_esign/models/formula_tab.rb +20 -1
- data/lib/docusign_esign/models/full_name.rb +20 -1
- data/lib/docusign_esign/models/id_evidence_resource_token.rb +194 -0
- data/lib/docusign_esign/models/id_evidence_view_link.rb +184 -0
- data/lib/docusign_esign/models/initial_here.rb +20 -1
- data/lib/docusign_esign/models/intermediary.rb +13 -1
- data/lib/docusign_esign/models/last_name.rb +20 -1
- data/lib/docusign_esign/models/linked_external_primary_account.rb +11 -1
- data/lib/docusign_esign/models/list.rb +20 -1
- data/lib/docusign_esign/models/new_account_definition.rb +21 -1
- data/lib/docusign_esign/models/notarize.rb +20 -1
- data/lib/docusign_esign/models/notary_recipient.rb +23 -1
- data/lib/docusign_esign/models/notary_seal.rb +20 -1
- data/lib/docusign_esign/models/note.rb +20 -1
- data/lib/docusign_esign/models/number.rb +20 -1
- data/lib/docusign_esign/models/participant.rb +908 -0
- data/lib/docusign_esign/models/phone_number.rb +20 -1
- data/lib/docusign_esign/models/poly_line_overlay.rb +20 -1
- data/lib/docusign_esign/models/prefill_tabs.rb +64 -4
- data/lib/docusign_esign/models/radio.rb +20 -1
- data/lib/docusign_esign/models/recipient_token_client_ur_ls.rb +102 -2
- data/lib/docusign_esign/models/recipients.rb +13 -1
- data/lib/docusign_esign/models/scheduled_sending.rb +216 -0
- data/lib/docusign_esign/models/sender_company.rb +20 -1
- data/lib/docusign_esign/models/sender_name.rb +20 -1
- data/lib/docusign_esign/models/sign_here.rb +20 -1
- data/lib/docusign_esign/models/signer.rb +13 -1
- data/lib/docusign_esign/models/signer_attachment.rb +20 -1
- data/lib/docusign_esign/models/smart_section.rb +20 -1
- data/lib/docusign_esign/models/ssn.rb +20 -1
- data/lib/docusign_esign/models/tab_group.rb +20 -1
- data/lib/docusign_esign/models/template_recipients.rb +13 -1
- data/lib/docusign_esign/models/text.rb +20 -1
- data/lib/docusign_esign/models/title.rb +20 -1
- data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
- data/lib/docusign_esign/models/user_information.rb +11 -1
- data/lib/docusign_esign/models/user_settings_information.rb +42 -4
- data/lib/docusign_esign/models/view.rb +20 -1
- data/lib/docusign_esign/models/witness.rb +13 -1
- data/lib/docusign_esign/models/workflow.rb +12 -2
- data/lib/docusign_esign/models/workflow_step.rb +1 -1
- data/lib/docusign_esign/models/zip.rb +20 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/lib/docusign_esign.rb +10 -8
- data/tests/spec/unit_tests_using_jwt_spec.rb +4 -4
- metadata +16 -6
@@ -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 EnvelopePublishTransactionErrorRollup
|
16
|
+
#
|
17
|
+
attr_accessor :count
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :error_type
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'count' => :'count',
|
26
|
+
:'error_type' => :'errorType'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'count' => :'String',
|
34
|
+
:'error_type' => :'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?(:'count')
|
47
|
+
self.count = attributes[:'count']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'errorType')
|
51
|
+
self.error_type = attributes[:'errorType']
|
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
|
+
count == o.count &&
|
74
|
+
error_type == o.error_type
|
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
|
+
[count, error_type].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
|
@@ -68,6 +68,11 @@ module DocuSign_eSign
|
|
68
68
|
|
69
69
|
attr_accessor :bold_metadata
|
70
70
|
|
71
|
+
#
|
72
|
+
attr_accessor :caption
|
73
|
+
|
74
|
+
attr_accessor :caption_metadata
|
75
|
+
|
71
76
|
# For conditional fields this is the TabLabel of the parent tab that controls this tab's visibility.
|
72
77
|
attr_accessor :conditional_parent_label
|
73
78
|
|
@@ -257,6 +262,8 @@ module DocuSign_eSign
|
|
257
262
|
:'anchor_y_offset_metadata' => :'anchorYOffsetMetadata',
|
258
263
|
:'bold' => :'bold',
|
259
264
|
:'bold_metadata' => :'boldMetadata',
|
265
|
+
:'caption' => :'caption',
|
266
|
+
:'caption_metadata' => :'captionMetadata',
|
260
267
|
:'conditional_parent_label' => :'conditionalParentLabel',
|
261
268
|
:'conditional_parent_label_metadata' => :'conditionalParentLabelMetadata',
|
262
269
|
:'conditional_parent_value' => :'conditionalParentValue',
|
@@ -351,6 +358,8 @@ module DocuSign_eSign
|
|
351
358
|
:'anchor_y_offset_metadata' => :'PropertyMetadata',
|
352
359
|
:'bold' => :'String',
|
353
360
|
:'bold_metadata' => :'PropertyMetadata',
|
361
|
+
:'caption' => :'String',
|
362
|
+
:'caption_metadata' => :'PropertyMetadata',
|
354
363
|
:'conditional_parent_label' => :'String',
|
355
364
|
:'conditional_parent_label_metadata' => :'PropertyMetadata',
|
356
365
|
:'conditional_parent_value' => :'String',
|
@@ -516,6 +525,14 @@ module DocuSign_eSign
|
|
516
525
|
self.bold_metadata = attributes[:'boldMetadata']
|
517
526
|
end
|
518
527
|
|
528
|
+
if attributes.has_key?(:'caption')
|
529
|
+
self.caption = attributes[:'caption']
|
530
|
+
end
|
531
|
+
|
532
|
+
if attributes.has_key?(:'captionMetadata')
|
533
|
+
self.caption_metadata = attributes[:'captionMetadata']
|
534
|
+
end
|
535
|
+
|
519
536
|
if attributes.has_key?(:'conditionalParentLabel')
|
520
537
|
self.conditional_parent_label = attributes[:'conditionalParentLabel']
|
521
538
|
end
|
@@ -823,6 +840,8 @@ module DocuSign_eSign
|
|
823
840
|
anchor_y_offset_metadata == o.anchor_y_offset_metadata &&
|
824
841
|
bold == o.bold &&
|
825
842
|
bold_metadata == o.bold_metadata &&
|
843
|
+
caption == o.caption &&
|
844
|
+
caption_metadata == o.caption_metadata &&
|
826
845
|
conditional_parent_label == o.conditional_parent_label &&
|
827
846
|
conditional_parent_label_metadata == o.conditional_parent_label_metadata &&
|
828
847
|
conditional_parent_value == o.conditional_parent_value &&
|
@@ -900,7 +919,7 @@ module DocuSign_eSign
|
|
900
919
|
# Calculates hash code according to all attributes.
|
901
920
|
# @return [Fixnum] Hash code
|
902
921
|
def hash
|
903
|
-
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, merge_field, merge_field_xml, name, name_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
922
|
+
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, caption, caption_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, merge_field, merge_field_xml, name, name_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
904
923
|
end
|
905
924
|
|
906
925
|
# Builds the object from hash
|
@@ -68,6 +68,11 @@ module DocuSign_eSign
|
|
68
68
|
|
69
69
|
attr_accessor :bold_metadata
|
70
70
|
|
71
|
+
#
|
72
|
+
attr_accessor :caption
|
73
|
+
|
74
|
+
attr_accessor :caption_metadata
|
75
|
+
|
71
76
|
# When set to **true**, the field appears normally while the recipient is adding or modifying the information in the field, but the data is not visible (the characters are hidden by asterisks) to any other signer or the sender. When an envelope is completed the information is available to the sender through the Form Data link in the DocuSign Console. This setting applies only to text boxes and does not affect list boxes, radio buttons, or check boxes.
|
72
77
|
attr_accessor :conceal_value_on_document
|
73
78
|
|
@@ -344,6 +349,8 @@ module DocuSign_eSign
|
|
344
349
|
:'anchor_y_offset_metadata' => :'anchorYOffsetMetadata',
|
345
350
|
:'bold' => :'bold',
|
346
351
|
:'bold_metadata' => :'boldMetadata',
|
352
|
+
:'caption' => :'caption',
|
353
|
+
:'caption_metadata' => :'captionMetadata',
|
347
354
|
:'conceal_value_on_document' => :'concealValueOnDocument',
|
348
355
|
:'conceal_value_on_document_metadata' => :'concealValueOnDocumentMetadata',
|
349
356
|
:'conditional_parent_label' => :'conditionalParentLabel',
|
@@ -473,6 +480,8 @@ module DocuSign_eSign
|
|
473
480
|
:'anchor_y_offset_metadata' => :'PropertyMetadata',
|
474
481
|
:'bold' => :'String',
|
475
482
|
:'bold_metadata' => :'PropertyMetadata',
|
483
|
+
:'caption' => :'String',
|
484
|
+
:'caption_metadata' => :'PropertyMetadata',
|
476
485
|
:'conceal_value_on_document' => :'String',
|
477
486
|
:'conceal_value_on_document_metadata' => :'PropertyMetadata',
|
478
487
|
:'conditional_parent_label' => :'String',
|
@@ -673,6 +682,14 @@ module DocuSign_eSign
|
|
673
682
|
self.bold_metadata = attributes[:'boldMetadata']
|
674
683
|
end
|
675
684
|
|
685
|
+
if attributes.has_key?(:'caption')
|
686
|
+
self.caption = attributes[:'caption']
|
687
|
+
end
|
688
|
+
|
689
|
+
if attributes.has_key?(:'captionMetadata')
|
690
|
+
self.caption_metadata = attributes[:'captionMetadata']
|
691
|
+
end
|
692
|
+
|
676
693
|
if attributes.has_key?(:'concealValueOnDocument')
|
677
694
|
self.conceal_value_on_document = attributes[:'concealValueOnDocument']
|
678
695
|
end
|
@@ -1120,6 +1137,8 @@ module DocuSign_eSign
|
|
1120
1137
|
anchor_y_offset_metadata == o.anchor_y_offset_metadata &&
|
1121
1138
|
bold == o.bold &&
|
1122
1139
|
bold_metadata == o.bold_metadata &&
|
1140
|
+
caption == o.caption &&
|
1141
|
+
caption_metadata == o.caption_metadata &&
|
1123
1142
|
conceal_value_on_document == o.conceal_value_on_document &&
|
1124
1143
|
conceal_value_on_document_metadata == o.conceal_value_on_document_metadata &&
|
1125
1144
|
conditional_parent_label == o.conditional_parent_label &&
|
@@ -1232,7 +1251,7 @@ module DocuSign_eSign
|
|
1232
1251
|
# Calculates hash code according to all attributes.
|
1233
1252
|
# @return [Fixnum] Hash code
|
1234
1253
|
def hash
|
1235
|
-
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, formula, formula_metadata, height, height_metadata, hidden, hidden_metadata, is_payment_amount, is_payment_amount_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, payment_details, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, round_decimal_places, round_decimal_places_metadata, sender_required, sender_required_metadata, shared, shared_metadata, share_to_recipients, share_to_recipients_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
1254
|
+
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, caption, caption_metadata, conceal_value_on_document, conceal_value_on_document_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, disable_auto_size, disable_auto_size_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, formula, formula_metadata, height, height_metadata, hidden, hidden_metadata, is_payment_amount, is_payment_amount_metadata, italic, italic_metadata, locale_policy, locked, locked_metadata, max_length, max_length_metadata, merge_field, merge_field_xml, name, name_metadata, original_value, original_value_metadata, page_number, page_number_metadata, payment_details, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, require_all, require_all_metadata, required, required_metadata, require_initial_on_shared_change, require_initial_on_shared_change_metadata, round_decimal_places, round_decimal_places_metadata, sender_required, sender_required_metadata, shared, shared_metadata, share_to_recipients, share_to_recipients_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, validation_message, validation_message_metadata, validation_pattern, validation_pattern_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
1236
1255
|
end
|
1237
1256
|
|
1238
1257
|
# Builds the object from hash
|
@@ -68,6 +68,11 @@ module DocuSign_eSign
|
|
68
68
|
|
69
69
|
attr_accessor :bold_metadata
|
70
70
|
|
71
|
+
#
|
72
|
+
attr_accessor :caption
|
73
|
+
|
74
|
+
attr_accessor :caption_metadata
|
75
|
+
|
71
76
|
# For conditional fields this is the TabLabel of the parent tab that controls this tab's visibility.
|
72
77
|
attr_accessor :conditional_parent_label
|
73
78
|
|
@@ -257,6 +262,8 @@ module DocuSign_eSign
|
|
257
262
|
:'anchor_y_offset_metadata' => :'anchorYOffsetMetadata',
|
258
263
|
:'bold' => :'bold',
|
259
264
|
:'bold_metadata' => :'boldMetadata',
|
265
|
+
:'caption' => :'caption',
|
266
|
+
:'caption_metadata' => :'captionMetadata',
|
260
267
|
:'conditional_parent_label' => :'conditionalParentLabel',
|
261
268
|
:'conditional_parent_label_metadata' => :'conditionalParentLabelMetadata',
|
262
269
|
:'conditional_parent_value' => :'conditionalParentValue',
|
@@ -351,6 +358,8 @@ module DocuSign_eSign
|
|
351
358
|
:'anchor_y_offset_metadata' => :'PropertyMetadata',
|
352
359
|
:'bold' => :'String',
|
353
360
|
:'bold_metadata' => :'PropertyMetadata',
|
361
|
+
:'caption' => :'String',
|
362
|
+
:'caption_metadata' => :'PropertyMetadata',
|
354
363
|
:'conditional_parent_label' => :'String',
|
355
364
|
:'conditional_parent_label_metadata' => :'PropertyMetadata',
|
356
365
|
:'conditional_parent_value' => :'String',
|
@@ -516,6 +525,14 @@ module DocuSign_eSign
|
|
516
525
|
self.bold_metadata = attributes[:'boldMetadata']
|
517
526
|
end
|
518
527
|
|
528
|
+
if attributes.has_key?(:'caption')
|
529
|
+
self.caption = attributes[:'caption']
|
530
|
+
end
|
531
|
+
|
532
|
+
if attributes.has_key?(:'captionMetadata')
|
533
|
+
self.caption_metadata = attributes[:'captionMetadata']
|
534
|
+
end
|
535
|
+
|
519
536
|
if attributes.has_key?(:'conditionalParentLabel')
|
520
537
|
self.conditional_parent_label = attributes[:'conditionalParentLabel']
|
521
538
|
end
|
@@ -823,6 +840,8 @@ module DocuSign_eSign
|
|
823
840
|
anchor_y_offset_metadata == o.anchor_y_offset_metadata &&
|
824
841
|
bold == o.bold &&
|
825
842
|
bold_metadata == o.bold_metadata &&
|
843
|
+
caption == o.caption &&
|
844
|
+
caption_metadata == o.caption_metadata &&
|
826
845
|
conditional_parent_label == o.conditional_parent_label &&
|
827
846
|
conditional_parent_label_metadata == o.conditional_parent_label_metadata &&
|
828
847
|
conditional_parent_value == o.conditional_parent_value &&
|
@@ -900,7 +919,7 @@ module DocuSign_eSign
|
|
900
919
|
# Calculates hash code according to all attributes.
|
901
920
|
# @return [Fixnum] Hash code
|
902
921
|
def hash
|
903
|
-
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, merge_field, merge_field_xml, name, name_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
922
|
+
[anchor_allow_white_space_in_characters, anchor_allow_white_space_in_characters_metadata, anchor_case_sensitive, anchor_case_sensitive_metadata, anchor_horizontal_alignment, anchor_horizontal_alignment_metadata, anchor_ignore_if_not_present, anchor_ignore_if_not_present_metadata, anchor_match_whole_word, anchor_match_whole_word_metadata, anchor_string, anchor_string_metadata, anchor_tab_processor_version, anchor_tab_processor_version_metadata, anchor_units, anchor_units_metadata, anchor_x_offset, anchor_x_offset_metadata, anchor_y_offset, anchor_y_offset_metadata, bold, bold_metadata, caption, caption_metadata, conditional_parent_label, conditional_parent_label_metadata, conditional_parent_value, conditional_parent_value_metadata, custom_tab_id, custom_tab_id_metadata, document_id, document_id_metadata, error_details, font, font_color, font_color_metadata, font_metadata, font_size, font_size_metadata, form_order, form_order_metadata, form_page_label, form_page_label_metadata, form_page_number, form_page_number_metadata, height, height_metadata, italic, italic_metadata, locale_policy, merge_field, merge_field_xml, name, name_metadata, page_number, page_number_metadata, recipient_id, recipient_id_guid, recipient_id_guid_metadata, recipient_id_metadata, smart_contract_information, source, status, status_metadata, tab_group_labels, tab_group_labels_metadata, tab_id, tab_id_metadata, tab_label, tab_label_metadata, tab_order, tab_order_metadata, tab_type, tab_type_metadata, template_locked, template_locked_metadata, template_required, template_required_metadata, tooltip, tool_tip_metadata, underline, underline_metadata, value, value_metadata, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
904
923
|
end
|
905
924
|
|
906
925
|
# 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 IdEvidenceResourceToken
|
16
|
+
#
|
17
|
+
attr_accessor :proof_base_uri
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :resource_token
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'proof_base_uri' => :'proofBaseURI',
|
26
|
+
:'resource_token' => :'resourceToken'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'proof_base_uri' => :'String',
|
34
|
+
:'resource_token' => :'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?(:'proofBaseURI')
|
47
|
+
self.proof_base_uri = attributes[:'proofBaseURI']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'resourceToken')
|
51
|
+
self.resource_token = attributes[:'resourceToken']
|
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
|
+
proof_base_uri == o.proof_base_uri &&
|
74
|
+
resource_token == o.resource_token
|
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
|
+
[proof_base_uri, resource_token].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
|