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
@@ -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 EnvelopeDelayRule
|
16
|
+
#
|
17
|
+
attr_accessor :delay
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :resume_date
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'delay' => :'delay',
|
26
|
+
:'resume_date' => :'resumeDate'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'delay' => :'String',
|
34
|
+
:'resume_date' => :'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?(:'delay')
|
47
|
+
self.delay = attributes[:'delay']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'resumeDate')
|
51
|
+
self.resume_date = attributes[:'resumeDate']
|
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
|
+
delay == o.delay &&
|
74
|
+
resume_date == o.resume_date
|
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
|
+
[delay, resume_date].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
|
|
@@ -252,6 +257,8 @@ module DocuSign_eSign
|
|
252
257
|
:'anchor_y_offset_metadata' => :'anchorYOffsetMetadata',
|
253
258
|
:'bold' => :'bold',
|
254
259
|
:'bold_metadata' => :'boldMetadata',
|
260
|
+
:'caption' => :'caption',
|
261
|
+
:'caption_metadata' => :'captionMetadata',
|
255
262
|
:'conditional_parent_label' => :'conditionalParentLabel',
|
256
263
|
:'conditional_parent_label_metadata' => :'conditionalParentLabelMetadata',
|
257
264
|
:'conditional_parent_value' => :'conditionalParentValue',
|
@@ -344,6 +351,8 @@ module DocuSign_eSign
|
|
344
351
|
:'anchor_y_offset_metadata' => :'PropertyMetadata',
|
345
352
|
:'bold' => :'String',
|
346
353
|
:'bold_metadata' => :'PropertyMetadata',
|
354
|
+
:'caption' => :'String',
|
355
|
+
:'caption_metadata' => :'PropertyMetadata',
|
347
356
|
:'conditional_parent_label' => :'String',
|
348
357
|
:'conditional_parent_label_metadata' => :'PropertyMetadata',
|
349
358
|
:'conditional_parent_value' => :'String',
|
@@ -507,6 +516,14 @@ module DocuSign_eSign
|
|
507
516
|
self.bold_metadata = attributes[:'boldMetadata']
|
508
517
|
end
|
509
518
|
|
519
|
+
if attributes.has_key?(:'caption')
|
520
|
+
self.caption = attributes[:'caption']
|
521
|
+
end
|
522
|
+
|
523
|
+
if attributes.has_key?(:'captionMetadata')
|
524
|
+
self.caption_metadata = attributes[:'captionMetadata']
|
525
|
+
end
|
526
|
+
|
510
527
|
if attributes.has_key?(:'conditionalParentLabel')
|
511
528
|
self.conditional_parent_label = attributes[:'conditionalParentLabel']
|
512
529
|
end
|
@@ -806,6 +823,8 @@ module DocuSign_eSign
|
|
806
823
|
anchor_y_offset_metadata == o.anchor_y_offset_metadata &&
|
807
824
|
bold == o.bold &&
|
808
825
|
bold_metadata == o.bold_metadata &&
|
826
|
+
caption == o.caption &&
|
827
|
+
caption_metadata == o.caption_metadata &&
|
809
828
|
conditional_parent_label == o.conditional_parent_label &&
|
810
829
|
conditional_parent_label_metadata == o.conditional_parent_label_metadata &&
|
811
830
|
conditional_parent_value == o.conditional_parent_value &&
|
@@ -881,7 +900,7 @@ module DocuSign_eSign
|
|
881
900
|
# Calculates hash code according to all attributes.
|
882
901
|
# @return [Fixnum] Hash code
|
883
902
|
def hash
|
884
|
-
[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, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].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, 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, width, width_metadata, x_position, x_position_metadata, y_position, y_position_metadata].hash
|
885
904
|
end
|
886
905
|
|
887
906
|
# Builds the object from hash
|
@@ -0,0 +1,307 @@
|
|
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 EnvelopePublishTransaction
|
16
|
+
#
|
17
|
+
attr_accessor :apply_connect_settings
|
18
|
+
|
19
|
+
#
|
20
|
+
attr_accessor :envelope_count
|
21
|
+
|
22
|
+
#
|
23
|
+
attr_accessor :envelope_level_error_rollups
|
24
|
+
|
25
|
+
#
|
26
|
+
attr_accessor :envelope_publish_transaction_id
|
27
|
+
|
28
|
+
#
|
29
|
+
attr_accessor :error_count
|
30
|
+
|
31
|
+
#
|
32
|
+
attr_accessor :file_level_errors
|
33
|
+
|
34
|
+
#
|
35
|
+
attr_accessor :no_action_required_envelope_count
|
36
|
+
|
37
|
+
#
|
38
|
+
attr_accessor :processed_envelope_count
|
39
|
+
|
40
|
+
#
|
41
|
+
attr_accessor :processing_status
|
42
|
+
|
43
|
+
#
|
44
|
+
attr_accessor :results_uri
|
45
|
+
|
46
|
+
#
|
47
|
+
attr_accessor :submission_date
|
48
|
+
|
49
|
+
attr_accessor :submitted_by_user_info
|
50
|
+
|
51
|
+
#
|
52
|
+
attr_accessor :submitted_for_publishing_envelope_count
|
53
|
+
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
55
|
+
def self.attribute_map
|
56
|
+
{
|
57
|
+
:'apply_connect_settings' => :'applyConnectSettings',
|
58
|
+
:'envelope_count' => :'envelopeCount',
|
59
|
+
:'envelope_level_error_rollups' => :'envelopeLevelErrorRollups',
|
60
|
+
:'envelope_publish_transaction_id' => :'envelopePublishTransactionId',
|
61
|
+
:'error_count' => :'errorCount',
|
62
|
+
:'file_level_errors' => :'fileLevelErrors',
|
63
|
+
:'no_action_required_envelope_count' => :'noActionRequiredEnvelopeCount',
|
64
|
+
:'processed_envelope_count' => :'processedEnvelopeCount',
|
65
|
+
:'processing_status' => :'processingStatus',
|
66
|
+
:'results_uri' => :'resultsUri',
|
67
|
+
:'submission_date' => :'submissionDate',
|
68
|
+
:'submitted_by_user_info' => :'submittedByUserInfo',
|
69
|
+
:'submitted_for_publishing_envelope_count' => :'submittedForPublishingEnvelopeCount'
|
70
|
+
}
|
71
|
+
end
|
72
|
+
|
73
|
+
# Attribute type mapping.
|
74
|
+
def self.swagger_types
|
75
|
+
{
|
76
|
+
:'apply_connect_settings' => :'String',
|
77
|
+
:'envelope_count' => :'String',
|
78
|
+
:'envelope_level_error_rollups' => :'Array<EnvelopePublishTransactionErrorRollup>',
|
79
|
+
:'envelope_publish_transaction_id' => :'String',
|
80
|
+
:'error_count' => :'String',
|
81
|
+
:'file_level_errors' => :'Array<String>',
|
82
|
+
:'no_action_required_envelope_count' => :'String',
|
83
|
+
:'processed_envelope_count' => :'String',
|
84
|
+
:'processing_status' => :'String',
|
85
|
+
:'results_uri' => :'String',
|
86
|
+
:'submission_date' => :'String',
|
87
|
+
:'submitted_by_user_info' => :'UserInfo',
|
88
|
+
:'submitted_for_publishing_envelope_count' => :'String'
|
89
|
+
}
|
90
|
+
end
|
91
|
+
|
92
|
+
# Initializes the object
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
94
|
+
def initialize(attributes = {})
|
95
|
+
return unless attributes.is_a?(Hash)
|
96
|
+
|
97
|
+
# convert string to symbol for hash key
|
98
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
99
|
+
|
100
|
+
if attributes.has_key?(:'applyConnectSettings')
|
101
|
+
self.apply_connect_settings = attributes[:'applyConnectSettings']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'envelopeCount')
|
105
|
+
self.envelope_count = attributes[:'envelopeCount']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.has_key?(:'envelopeLevelErrorRollups')
|
109
|
+
if (value = attributes[:'envelopeLevelErrorRollups']).is_a?(Array)
|
110
|
+
self.envelope_level_error_rollups = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.has_key?(:'envelopePublishTransactionId')
|
115
|
+
self.envelope_publish_transaction_id = attributes[:'envelopePublishTransactionId']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.has_key?(:'errorCount')
|
119
|
+
self.error_count = attributes[:'errorCount']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'fileLevelErrors')
|
123
|
+
if (value = attributes[:'fileLevelErrors']).is_a?(Array)
|
124
|
+
self.file_level_errors = value
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'noActionRequiredEnvelopeCount')
|
129
|
+
self.no_action_required_envelope_count = attributes[:'noActionRequiredEnvelopeCount']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.has_key?(:'processedEnvelopeCount')
|
133
|
+
self.processed_envelope_count = attributes[:'processedEnvelopeCount']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'processingStatus')
|
137
|
+
self.processing_status = attributes[:'processingStatus']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'resultsUri')
|
141
|
+
self.results_uri = attributes[:'resultsUri']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'submissionDate')
|
145
|
+
self.submission_date = attributes[:'submissionDate']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'submittedByUserInfo')
|
149
|
+
self.submitted_by_user_info = attributes[:'submittedByUserInfo']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'submittedForPublishingEnvelopeCount')
|
153
|
+
self.submitted_for_publishing_envelope_count = attributes[:'submittedForPublishingEnvelopeCount']
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
158
|
+
# @return Array for valid properties with the reasons
|
159
|
+
def list_invalid_properties
|
160
|
+
invalid_properties = Array.new
|
161
|
+
invalid_properties
|
162
|
+
end
|
163
|
+
|
164
|
+
# Check to see if the all the properties in the model are valid
|
165
|
+
# @return true if the model is valid
|
166
|
+
def valid?
|
167
|
+
true
|
168
|
+
end
|
169
|
+
|
170
|
+
# Checks equality by comparing each attribute.
|
171
|
+
# @param [Object] Object to be compared
|
172
|
+
def ==(o)
|
173
|
+
return true if self.equal?(o)
|
174
|
+
self.class == o.class &&
|
175
|
+
apply_connect_settings == o.apply_connect_settings &&
|
176
|
+
envelope_count == o.envelope_count &&
|
177
|
+
envelope_level_error_rollups == o.envelope_level_error_rollups &&
|
178
|
+
envelope_publish_transaction_id == o.envelope_publish_transaction_id &&
|
179
|
+
error_count == o.error_count &&
|
180
|
+
file_level_errors == o.file_level_errors &&
|
181
|
+
no_action_required_envelope_count == o.no_action_required_envelope_count &&
|
182
|
+
processed_envelope_count == o.processed_envelope_count &&
|
183
|
+
processing_status == o.processing_status &&
|
184
|
+
results_uri == o.results_uri &&
|
185
|
+
submission_date == o.submission_date &&
|
186
|
+
submitted_by_user_info == o.submitted_by_user_info &&
|
187
|
+
submitted_for_publishing_envelope_count == o.submitted_for_publishing_envelope_count
|
188
|
+
end
|
189
|
+
|
190
|
+
# @see the `==` method
|
191
|
+
# @param [Object] Object to be compared
|
192
|
+
def eql?(o)
|
193
|
+
self == o
|
194
|
+
end
|
195
|
+
|
196
|
+
# Calculates hash code according to all attributes.
|
197
|
+
# @return [Fixnum] Hash code
|
198
|
+
def hash
|
199
|
+
[apply_connect_settings, envelope_count, envelope_level_error_rollups, envelope_publish_transaction_id, error_count, file_level_errors, no_action_required_envelope_count, processed_envelope_count, processing_status, results_uri, submission_date, submitted_by_user_info, submitted_for_publishing_envelope_count].hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Builds the object from hash
|
203
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
204
|
+
# @return [Object] Returns the model itself
|
205
|
+
def build_from_hash(attributes)
|
206
|
+
return nil unless attributes.is_a?(Hash)
|
207
|
+
self.class.swagger_types.each_pair do |key, type|
|
208
|
+
if type =~ /\AArray<(.*)>/i
|
209
|
+
# check to ensure the input is an array given that the attribute
|
210
|
+
# is documented as an array but the input is not
|
211
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
212
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
213
|
+
end
|
214
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
215
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
216
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
217
|
+
end
|
218
|
+
|
219
|
+
self
|
220
|
+
end
|
221
|
+
|
222
|
+
# Deserializes the data based on type
|
223
|
+
# @param string type Data type
|
224
|
+
# @param string value Value to be deserialized
|
225
|
+
# @return [Object] Deserialized data
|
226
|
+
def _deserialize(type, value)
|
227
|
+
case type.to_sym
|
228
|
+
when :DateTime
|
229
|
+
DateTime.parse(value)
|
230
|
+
when :Date
|
231
|
+
Date.parse(value)
|
232
|
+
when :String
|
233
|
+
value.to_s
|
234
|
+
when :Integer
|
235
|
+
value.to_i
|
236
|
+
when :Float
|
237
|
+
value.to_f
|
238
|
+
when :BOOLEAN
|
239
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
240
|
+
true
|
241
|
+
else
|
242
|
+
false
|
243
|
+
end
|
244
|
+
when :Object
|
245
|
+
# generic object (usually a Hash), return directly
|
246
|
+
value
|
247
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
248
|
+
inner_type = Regexp.last_match[:inner_type]
|
249
|
+
value.map { |v| _deserialize(inner_type, v) }
|
250
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
251
|
+
k_type = Regexp.last_match[:k_type]
|
252
|
+
v_type = Regexp.last_match[:v_type]
|
253
|
+
{}.tap do |hash|
|
254
|
+
value.each do |k, v|
|
255
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
256
|
+
end
|
257
|
+
end
|
258
|
+
else # model
|
259
|
+
temp_model = DocuSign_eSign.const_get(type).new
|
260
|
+
temp_model.build_from_hash(value)
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
# Returns the string representation of the object
|
265
|
+
# @return [String] String presentation of the object
|
266
|
+
def to_s
|
267
|
+
to_hash.to_s
|
268
|
+
end
|
269
|
+
|
270
|
+
# to_body is an alias to to_hash (backward compatibility)
|
271
|
+
# @return [Hash] Returns the object in the form of hash
|
272
|
+
def to_body
|
273
|
+
to_hash
|
274
|
+
end
|
275
|
+
|
276
|
+
# Returns the object in the form of hash
|
277
|
+
# @return [Hash] Returns the object in the form of hash
|
278
|
+
def to_hash
|
279
|
+
hash = {}
|
280
|
+
self.class.attribute_map.each_pair do |attr, param|
|
281
|
+
value = self.send(attr)
|
282
|
+
next if value.nil?
|
283
|
+
hash[param] = _to_hash(value)
|
284
|
+
end
|
285
|
+
hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Outputs non-array value in the form of hash
|
289
|
+
# For object, use to_hash. Otherwise, just return the value
|
290
|
+
# @param [Object] value Any valid value
|
291
|
+
# @return [Hash] Returns the value in the form of hash
|
292
|
+
def _to_hash(value)
|
293
|
+
if value.is_a?(Array)
|
294
|
+
value.compact.map { |v| _to_hash(v) }
|
295
|
+
elsif value.is_a?(Hash)
|
296
|
+
{}.tap do |hash|
|
297
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
298
|
+
end
|
299
|
+
elsif value.respond_to? :to_hash
|
300
|
+
value.to_hash
|
301
|
+
else
|
302
|
+
value
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
end
|
307
|
+
end
|