docusign_esign 3.5.0 → 3.6.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/docusign_esign-2.6.0.gem +0 -0
  4. data/docusign_esign-2.7.0.rc1.gem +0 -0
  5. data/docusign_esign-3.5.0.gem +0 -0
  6. data/lib/docusign_esign.rb +10 -0
  7. data/lib/docusign_esign/api/accounts_api.rb +556 -4
  8. data/lib/docusign_esign/api/envelopes_api.rb +56 -2
  9. data/lib/docusign_esign/models/account_settings_information.rb +20 -1
  10. data/lib/docusign_esign/models/account_signature.rb +497 -0
  11. data/lib/docusign_esign/models/account_signature_definition.rb +338 -0
  12. data/lib/docusign_esign/models/account_signatures_information.rb +187 -0
  13. data/lib/docusign_esign/models/correct_view_request.rb +14 -4
  14. data/lib/docusign_esign/models/in_person_signer.rb +11 -1
  15. data/lib/docusign_esign/models/notary_certificate.rb +869 -0
  16. data/lib/docusign_esign/models/notary_recipient.rb +1097 -0
  17. data/lib/docusign_esign/models/notary_seal.rb +983 -0
  18. data/lib/docusign_esign/models/recipients.rb +13 -1
  19. data/lib/docusign_esign/models/signature_group.rb +205 -0
  20. data/lib/docusign_esign/models/signature_group_def.rb +195 -0
  21. data/lib/docusign_esign/models/signature_user.rb +215 -0
  22. data/lib/docusign_esign/models/signature_user_def.rb +205 -0
  23. data/lib/docusign_esign/models/signer.rb +11 -1
  24. data/lib/docusign_esign/models/tabs.rb +25 -1
  25. data/lib/docusign_esign/models/template_recipients.rb +13 -1
  26. data/lib/docusign_esign/models/template_tabs.rb +25 -1
  27. data/lib/docusign_esign/models/user_account_management_granular_information.rb +20 -1
  28. data/lib/docusign_esign/models/witness.rb +11 -1
  29. data/lib/docusign_esign/version.rb +1 -1
  30. data/tests/Gemfile.lock +1 -1
  31. metadata +17 -4
@@ -38,6 +38,9 @@ module DocuSign_eSign
38
38
  # Identifies a recipient that can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order (until subsequent Agents, Editors or Intermediaries recipient types are added).
39
39
  attr_accessor :intermediaries
40
40
 
41
+ #
42
+ attr_accessor :notaries
43
+
41
44
  #
42
45
  attr_accessor :recipient_count
43
46
 
@@ -61,6 +64,7 @@ module DocuSign_eSign
61
64
  :'error_details' => :'errorDetails',
62
65
  :'in_person_signers' => :'inPersonSigners',
63
66
  :'intermediaries' => :'intermediaries',
67
+ :'notaries' => :'notaries',
64
68
  :'recipient_count' => :'recipientCount',
65
69
  :'seals' => :'seals',
66
70
  :'signers' => :'signers',
@@ -79,6 +83,7 @@ module DocuSign_eSign
79
83
  :'error_details' => :'ErrorDetails',
80
84
  :'in_person_signers' => :'Array<InPersonSigner>',
81
85
  :'intermediaries' => :'Array<Intermediary>',
86
+ :'notaries' => :'Array<NotaryRecipient>',
82
87
  :'recipient_count' => :'String',
83
88
  :'seals' => :'Array<SealSign>',
84
89
  :'signers' => :'Array<Signer>',
@@ -138,6 +143,12 @@ module DocuSign_eSign
138
143
  end
139
144
  end
140
145
 
146
+ if attributes.has_key?(:'notaries')
147
+ if (value = attributes[:'notaries']).is_a?(Array)
148
+ self.notaries = value
149
+ end
150
+ end
151
+
141
152
  if attributes.has_key?(:'recipientCount')
142
153
  self.recipient_count = attributes[:'recipientCount']
143
154
  end
@@ -187,6 +198,7 @@ module DocuSign_eSign
187
198
  error_details == o.error_details &&
188
199
  in_person_signers == o.in_person_signers &&
189
200
  intermediaries == o.intermediaries &&
201
+ notaries == o.notaries &&
190
202
  recipient_count == o.recipient_count &&
191
203
  seals == o.seals &&
192
204
  signers == o.signers &&
@@ -202,7 +214,7 @@ module DocuSign_eSign
202
214
  # Calculates hash code according to all attributes.
203
215
  # @return [Fixnum] Hash code
204
216
  def hash
205
- [agents, carbon_copies, certified_deliveries, current_routing_order, editors, error_details, in_person_signers, intermediaries, recipient_count, seals, signers, witnesses].hash
217
+ [agents, carbon_copies, certified_deliveries, current_routing_order, editors, error_details, in_person_signers, intermediaries, notaries, recipient_count, seals, signers, witnesses].hash
206
218
  end
207
219
 
208
220
  # Builds the object from hash
@@ -0,0 +1,205 @@
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
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class SignatureGroup
17
+ #
18
+ attr_accessor :group_id
19
+
20
+ # The name of the group.
21
+ attr_accessor :group_name
22
+
23
+ #
24
+ attr_accessor :rights
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'group_id' => :'groupId',
30
+ :'group_name' => :'groupName',
31
+ :'rights' => :'rights'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'group_id' => :'String',
39
+ :'group_name' => :'String',
40
+ :'rights' => :'String'
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
+
52
+ if attributes.has_key?(:'groupId')
53
+ self.group_id = attributes[:'groupId']
54
+ end
55
+
56
+ if attributes.has_key?(:'groupName')
57
+ self.group_name = attributes[:'groupName']
58
+ end
59
+
60
+ if attributes.has_key?(:'rights')
61
+ self.rights = attributes[:'rights']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ group_id == o.group_id &&
84
+ group_name == o.group_name &&
85
+ rights == o.rights
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Fixnum] Hash code
96
+ def hash
97
+ [group_id, group_name, rights].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def build_from_hash(attributes)
104
+ return nil unless attributes.is_a?(Hash)
105
+ self.class.swagger_types.each_pair do |key, type|
106
+ if type =~ /\AArray<(.*)>/i
107
+ # check to ensure the input is an array given that the attribute
108
+ # is documented as an array but the input is not
109
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
110
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
+ end
112
+ elsif !attributes[self.class.attribute_map[key]].nil?
113
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
114
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
115
+ end
116
+
117
+ self
118
+ end
119
+
120
+ # Deserializes the data based on type
121
+ # @param string type Data type
122
+ # @param string value Value to be deserialized
123
+ # @return [Object] Deserialized data
124
+ def _deserialize(type, value)
125
+ case type.to_sym
126
+ when :DateTime
127
+ DateTime.parse(value)
128
+ when :Date
129
+ Date.parse(value)
130
+ when :String
131
+ value.to_s
132
+ when :Integer
133
+ value.to_i
134
+ when :Float
135
+ value.to_f
136
+ when :BOOLEAN
137
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
138
+ true
139
+ else
140
+ false
141
+ end
142
+ when :Object
143
+ # generic object (usually a Hash), return directly
144
+ value
145
+ when /\AArray<(?<inner_type>.+)>\z/
146
+ inner_type = Regexp.last_match[:inner_type]
147
+ value.map { |v| _deserialize(inner_type, v) }
148
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
149
+ k_type = Regexp.last_match[:k_type]
150
+ v_type = Regexp.last_match[:v_type]
151
+ {}.tap do |hash|
152
+ value.each do |k, v|
153
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
154
+ end
155
+ end
156
+ else # model
157
+ temp_model = DocuSign_eSign.const_get(type).new
158
+ temp_model.build_from_hash(value)
159
+ end
160
+ end
161
+
162
+ # Returns the string representation of the object
163
+ # @return [String] String presentation of the object
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_hash (backward compatibility)
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_body
171
+ to_hash
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ next if value.nil?
181
+ hash[param] = _to_hash(value)
182
+ end
183
+ hash
184
+ end
185
+
186
+ # Outputs non-array value in the form of hash
187
+ # For object, use to_hash. Otherwise, just return the value
188
+ # @param [Object] value Any valid value
189
+ # @return [Hash] Returns the value in the form of hash
190
+ def _to_hash(value)
191
+ if value.is_a?(Array)
192
+ value.compact.map { |v| _to_hash(v) }
193
+ elsif value.is_a?(Hash)
194
+ {}.tap do |hash|
195
+ value.each { |k, v| hash[k] = _to_hash(v) }
196
+ end
197
+ elsif value.respond_to? :to_hash
198
+ value.to_hash
199
+ else
200
+ value
201
+ end
202
+ end
203
+
204
+ end
205
+ end
@@ -0,0 +1,195 @@
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
+ Swagger Codegen version: 2.4.13-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocuSign_eSign
16
+ class SignatureGroupDef
17
+ #
18
+ attr_accessor :group_id
19
+
20
+ #
21
+ attr_accessor :rights
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'group_id' => :'groupId',
27
+ :'rights' => :'rights'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'group_id' => :'String',
35
+ :'rights' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'groupId')
48
+ self.group_id = attributes[:'groupId']
49
+ end
50
+
51
+ if attributes.has_key?(:'rights')
52
+ self.rights = attributes[:'rights']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ group_id == o.group_id &&
75
+ rights == o.rights
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [group_id, rights].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = DocuSign_eSign.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map { |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+ end