docusign_esign 3.20.0 → 3.21.0

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