docusign_esign 3.19.0 → 3.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/lib/docusign_esign/api/accounts_api.rb +4 -4
  4. data/lib/docusign_esign/api/connect_api.rb +51 -0
  5. data/lib/docusign_esign/api/envelopes_api.rb +16 -65
  6. data/lib/docusign_esign/api/folders_api.rb +8 -0
  7. data/lib/docusign_esign/api/templates_api.rb +0 -73
  8. data/lib/docusign_esign/client/api_client.rb +1 -1
  9. data/lib/docusign_esign/models/account_identity_verification_workflow.rb +11 -1
  10. data/lib/docusign_esign/models/account_settings_information.rb +338 -15
  11. data/lib/docusign_esign/models/account_ui_settings.rb +20 -1
  12. data/lib/docusign_esign/models/bulk_sending_copy.rb +13 -1
  13. data/lib/docusign_esign/models/bulk_sending_copy_recipient.rb +10 -1
  14. data/lib/docusign_esign/models/bulksending_copy_doc_gen_form_field.rb +194 -0
  15. data/lib/docusign_esign/models/connect_custom_configuration.rb +21 -1
  16. data/lib/docusign_esign/models/connect_o_auth_config.rb +11 -1
  17. data/lib/docusign_esign/models/contact.rb +10 -1
  18. data/lib/docusign_esign/models/delayed_routing.rb +3 -3
  19. data/lib/docusign_esign/models/delegation_info.rb +12 -12
  20. data/lib/docusign_esign/models/doc_gen_form_field.rb +224 -0
  21. data/lib/docusign_esign/models/doc_gen_syntax_error.rb +204 -0
  22. data/lib/docusign_esign/models/document.rb +23 -1
  23. data/lib/docusign_esign/models/envelope.rb +11 -1
  24. data/lib/docusign_esign/models/envelope_definition.rb +11 -1
  25. data/lib/docusign_esign/models/envelope_delay_rule.rb +3 -2
  26. data/lib/docusign_esign/models/envelope_document.rb +45 -1
  27. data/lib/docusign_esign/models/envelope_template.rb +21 -1
  28. data/lib/docusign_esign/models/event_notification.rb +21 -1
  29. data/lib/docusign_esign/models/id_evidence_view_link.rb +3 -3
  30. data/lib/docusign_esign/models/initial_here.rb +1 -1
  31. data/lib/docusign_esign/models/jurisdiction_summary.rb +214 -0
  32. data/lib/docusign_esign/models/locale_policy_tab.rb +14 -4
  33. data/lib/docusign_esign/models/notary_contact_details.rb +196 -0
  34. data/lib/docusign_esign/models/numerical.rb +1279 -0
  35. data/lib/docusign_esign/models/recipient_form_data.rb +12 -12
  36. data/lib/docusign_esign/models/recipient_identity_verification.rb +14 -4
  37. data/lib/docusign_esign/models/scheduled_sending.rb +3 -3
  38. data/lib/docusign_esign/models/tab_metadata.rb +11 -1
  39. data/lib/docusign_esign/models/tabs.rb +13 -1
  40. data/lib/docusign_esign/models/template_role.rb +11 -1
  41. data/lib/docusign_esign/models/template_tabs.rb +13 -1
  42. data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
  43. data/lib/docusign_esign/version.rb +1 -1
  44. data/lib/docusign_esign.rb +6 -4
  45. metadata +8 -2
@@ -0,0 +1,196 @@
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 NotaryContactDetails
16
+ #
17
+ attr_accessor :has_docusign_certificate
18
+
19
+ #
20
+ attr_accessor :jurisdictions
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'has_docusign_certificate' => :'hasDocusignCertificate',
26
+ :'jurisdictions' => :'jurisdictions'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.swagger_types
32
+ {
33
+ :'has_docusign_certificate' => :'String',
34
+ :'jurisdictions' => :'Array<JurisdictionSummary>'
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?(:'hasDocusignCertificate')
47
+ self.has_docusign_certificate = attributes[:'hasDocusignCertificate']
48
+ end
49
+
50
+ if attributes.has_key?(:'jurisdictions')
51
+ if (value = attributes[:'jurisdictions']).is_a?(Array)
52
+ self.jurisdictions = value
53
+ end
54
+ end
55
+ end
56
+
57
+ # Show invalid properties with the reasons. Usually used together with valid?
58
+ # @return Array for valid properties with the reasons
59
+ def list_invalid_properties
60
+ invalid_properties = Array.new
61
+ invalid_properties
62
+ end
63
+
64
+ # Check to see if the all the properties in the model are valid
65
+ # @return true if the model is valid
66
+ def valid?
67
+ true
68
+ end
69
+
70
+ # Checks equality by comparing each attribute.
71
+ # @param [Object] Object to be compared
72
+ def ==(o)
73
+ return true if self.equal?(o)
74
+ self.class == o.class &&
75
+ has_docusign_certificate == o.has_docusign_certificate &&
76
+ jurisdictions == o.jurisdictions
77
+ end
78
+
79
+ # @see the `==` method
80
+ # @param [Object] Object to be compared
81
+ def eql?(o)
82
+ self == o
83
+ end
84
+
85
+ # Calculates hash code according to all attributes.
86
+ # @return [Fixnum] Hash code
87
+ def hash
88
+ [has_docusign_certificate, jurisdictions].hash
89
+ end
90
+
91
+ # Builds the object from hash
92
+ # @param [Hash] attributes Model attributes in the form of hash
93
+ # @return [Object] Returns the model itself
94
+ def build_from_hash(attributes)
95
+ return nil unless attributes.is_a?(Hash)
96
+ self.class.swagger_types.each_pair do |key, type|
97
+ if type =~ /\AArray<(.*)>/i
98
+ # check to ensure the input is an array given that the attribute
99
+ # is documented as an array but the input is not
100
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
101
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
+ end
103
+ elsif !attributes[self.class.attribute_map[key]].nil?
104
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
106
+ end
107
+
108
+ self
109
+ end
110
+
111
+ # Deserializes the data based on type
112
+ # @param string type Data type
113
+ # @param string value Value to be deserialized
114
+ # @return [Object] Deserialized data
115
+ def _deserialize(type, value)
116
+ case type.to_sym
117
+ when :DateTime
118
+ DateTime.parse(value)
119
+ when :Date
120
+ Date.parse(value)
121
+ when :String
122
+ value.to_s
123
+ when :Integer
124
+ value.to_i
125
+ when :Float
126
+ value.to_f
127
+ when :BOOLEAN
128
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
129
+ true
130
+ else
131
+ false
132
+ end
133
+ when :Object
134
+ # generic object (usually a Hash), return directly
135
+ value
136
+ when /\AArray<(?<inner_type>.+)>\z/
137
+ inner_type = Regexp.last_match[:inner_type]
138
+ value.map { |v| _deserialize(inner_type, v) }
139
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
140
+ k_type = Regexp.last_match[:k_type]
141
+ v_type = Regexp.last_match[:v_type]
142
+ {}.tap do |hash|
143
+ value.each do |k, v|
144
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
145
+ end
146
+ end
147
+ else # model
148
+ temp_model = DocuSign_eSign.const_get(type).new
149
+ temp_model.build_from_hash(value)
150
+ end
151
+ end
152
+
153
+ # Returns the string representation of the object
154
+ # @return [String] String presentation of the object
155
+ def to_s
156
+ to_hash.to_s
157
+ end
158
+
159
+ # to_body is an alias to to_hash (backward compatibility)
160
+ # @return [Hash] Returns the object in the form of hash
161
+ def to_body
162
+ to_hash
163
+ end
164
+
165
+ # Returns the object in the form of hash
166
+ # @return [Hash] Returns the object in the form of hash
167
+ def to_hash
168
+ hash = {}
169
+ self.class.attribute_map.each_pair do |attr, param|
170
+ value = self.send(attr)
171
+ next if value.nil?
172
+ hash[param] = _to_hash(value)
173
+ end
174
+ hash
175
+ end
176
+
177
+ # Outputs non-array value in the form of hash
178
+ # For object, use to_hash. Otherwise, just return the value
179
+ # @param [Object] value Any valid value
180
+ # @return [Hash] Returns the value in the form of hash
181
+ def _to_hash(value)
182
+ if value.is_a?(Array)
183
+ value.compact.map { |v| _to_hash(v) }
184
+ elsif value.is_a?(Hash)
185
+ {}.tap do |hash|
186
+ value.each { |k, v| hash[k] = _to_hash(v) }
187
+ end
188
+ elsif value.respond_to? :to_hash
189
+ value.to_hash
190
+ else
191
+ value
192
+ end
193
+ end
194
+
195
+ end
196
+ end