docusign_click 1.1.0.rc1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,9 @@ module DocuSign_Click
19
19
  #
20
20
  attr_accessor :created_time
21
21
 
22
+ #
23
+ attr_accessor :data_fields
24
+
22
25
  #
23
26
  attr_accessor :deletion_message
24
27
 
@@ -56,6 +59,7 @@ module DocuSign_Click
56
59
  {
57
60
  :'clickwrap_version_id' => :'clickwrapVersionId',
58
61
  :'created_time' => :'createdTime',
62
+ :'data_fields' => :'dataFields',
59
63
  :'deletion_message' => :'deletionMessage',
60
64
  :'deletion_success' => :'deletionSuccess',
61
65
  :'last_modified' => :'lastModified',
@@ -75,6 +79,7 @@ module DocuSign_Click
75
79
  {
76
80
  :'clickwrap_version_id' => :'String',
77
81
  :'created_time' => :'Object',
82
+ :'data_fields' => :'Array<DataField>',
78
83
  :'deletion_message' => :'String',
79
84
  :'deletion_success' => :'BOOLEAN',
80
85
  :'last_modified' => :'Object',
@@ -105,6 +110,12 @@ module DocuSign_Click
105
110
  self.created_time = attributes[:'createdTime']
106
111
  end
107
112
 
113
+ if attributes.has_key?(:'dataFields')
114
+ if (value = attributes[:'dataFields']).is_a?(Array)
115
+ self.data_fields = value
116
+ end
117
+ end
118
+
108
119
  if attributes.has_key?(:'deletionMessage')
109
120
  self.deletion_message = attributes[:'deletionMessage']
110
121
  end
@@ -170,6 +181,7 @@ module DocuSign_Click
170
181
  self.class == o.class &&
171
182
  clickwrap_version_id == o.clickwrap_version_id &&
172
183
  created_time == o.created_time &&
184
+ data_fields == o.data_fields &&
173
185
  deletion_message == o.deletion_message &&
174
186
  deletion_success == o.deletion_success &&
175
187
  last_modified == o.last_modified &&
@@ -192,7 +204,7 @@ module DocuSign_Click
192
204
  # Calculates hash code according to all attributes.
193
205
  # @return [Fixnum] Hash code
194
206
  def hash
195
- [clickwrap_version_id, created_time, deletion_message, deletion_success, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
207
+ [clickwrap_version_id, created_time, data_fields, deletion_message, deletion_success, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
196
208
  end
197
209
 
198
210
  # Builds the object from hash
@@ -28,6 +28,9 @@ module DocuSign_Click
28
28
  #
29
29
  attr_accessor :created_time
30
30
 
31
+ #
32
+ attr_accessor :data_fields
33
+
31
34
  attr_accessor :display_settings
32
35
 
33
36
  #
@@ -67,6 +70,7 @@ module DocuSign_Click
67
70
  :'clickwrap_name' => :'clickwrapName',
68
71
  :'clickwrap_version_id' => :'clickwrapVersionId',
69
72
  :'created_time' => :'createdTime',
73
+ :'data_fields' => :'dataFields',
70
74
  :'display_settings' => :'displaySettings',
71
75
  :'documents' => :'documents',
72
76
  :'last_modified' => :'lastModified',
@@ -89,6 +93,7 @@ module DocuSign_Click
89
93
  :'clickwrap_name' => :'String',
90
94
  :'clickwrap_version_id' => :'String',
91
95
  :'created_time' => :'Object',
96
+ :'data_fields' => :'Array<DataField>',
92
97
  :'display_settings' => :'DisplaySettings',
93
98
  :'documents' => :'Array<Document>',
94
99
  :'last_modified' => :'Object',
@@ -131,6 +136,12 @@ module DocuSign_Click
131
136
  self.created_time = attributes[:'createdTime']
132
137
  end
133
138
 
139
+ if attributes.has_key?(:'dataFields')
140
+ if (value = attributes[:'dataFields']).is_a?(Array)
141
+ self.data_fields = value
142
+ end
143
+ end
144
+
134
145
  if attributes.has_key?(:'displaySettings')
135
146
  self.display_settings = attributes[:'displaySettings']
136
147
  end
@@ -201,6 +212,7 @@ module DocuSign_Click
201
212
  clickwrap_name == o.clickwrap_name &&
202
213
  clickwrap_version_id == o.clickwrap_version_id &&
203
214
  created_time == o.created_time &&
215
+ data_fields == o.data_fields &&
204
216
  display_settings == o.display_settings &&
205
217
  documents == o.documents &&
206
218
  last_modified == o.last_modified &&
@@ -223,7 +235,7 @@ module DocuSign_Click
223
235
  # Calculates hash code according to all attributes.
224
236
  # @return [Fixnum] Hash code
225
237
  def hash
226
- [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, display_settings, documents, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
238
+ [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, data_fields, display_settings, documents, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
227
239
  end
228
240
 
229
241
  # Builds the object from hash
@@ -28,6 +28,9 @@ module DocuSign_Click
28
28
  #
29
29
  attr_accessor :created_time
30
30
 
31
+ #
32
+ attr_accessor :data_fields
33
+
31
34
  #
32
35
  attr_accessor :last_modified
33
36
 
@@ -62,6 +65,7 @@ module DocuSign_Click
62
65
  :'clickwrap_name' => :'clickwrapName',
63
66
  :'clickwrap_version_id' => :'clickwrapVersionId',
64
67
  :'created_time' => :'createdTime',
68
+ :'data_fields' => :'dataFields',
65
69
  :'last_modified' => :'lastModified',
66
70
  :'last_modified_by' => :'lastModifiedBy',
67
71
  :'owner_user_id' => :'ownerUserId',
@@ -82,6 +86,7 @@ module DocuSign_Click
82
86
  :'clickwrap_name' => :'String',
83
87
  :'clickwrap_version_id' => :'String',
84
88
  :'created_time' => :'Object',
89
+ :'data_fields' => :'Array<DataField>',
85
90
  :'last_modified' => :'Object',
86
91
  :'last_modified_by' => :'String',
87
92
  :'owner_user_id' => :'String',
@@ -122,6 +127,12 @@ module DocuSign_Click
122
127
  self.created_time = attributes[:'createdTime']
123
128
  end
124
129
 
130
+ if attributes.has_key?(:'dataFields')
131
+ if (value = attributes[:'dataFields']).is_a?(Array)
132
+ self.data_fields = value
133
+ end
134
+ end
135
+
125
136
  if attributes.has_key?(:'lastModified')
126
137
  self.last_modified = attributes[:'lastModified']
127
138
  end
@@ -182,6 +193,7 @@ module DocuSign_Click
182
193
  clickwrap_name == o.clickwrap_name &&
183
194
  clickwrap_version_id == o.clickwrap_version_id &&
184
195
  created_time == o.created_time &&
196
+ data_fields == o.data_fields &&
185
197
  last_modified == o.last_modified &&
186
198
  last_modified_by == o.last_modified_by &&
187
199
  owner_user_id == o.owner_user_id &&
@@ -202,7 +214,7 @@ module DocuSign_Click
202
214
  # Calculates hash code according to all attributes.
203
215
  # @return [Fixnum] Hash code
204
216
  def hash
205
- [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
217
+ [account_id, clickwrap_id, clickwrap_name, clickwrap_version_id, created_time, data_fields, last_modified, last_modified_by, owner_user_id, require_reacceptance, scheduled_date, scheduled_reacceptance, status, version_id, version_number].hash
206
218
  end
207
219
 
208
220
  # Builds the object from hash
@@ -0,0 +1,204 @@
1
+ =begin
2
+ #DocuSign Click API
3
+
4
+ #DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations.
5
+
6
+ OpenAPI spec version: v1
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_Click
15
+ class DataField
16
+ #
17
+ attr_accessor :label
18
+
19
+ #
20
+ attr_accessor :name
21
+
22
+ #
23
+ attr_accessor :type
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'label' => :'label',
29
+ :'name' => :'name',
30
+ :'type' => :'type'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.swagger_types
36
+ {
37
+ :'label' => :'String',
38
+ :'name' => :'String',
39
+ :'type' => :'String'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ return unless attributes.is_a?(Hash)
47
+
48
+ # convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
+
51
+ if attributes.has_key?(:'label')
52
+ self.label = attributes[:'label']
53
+ end
54
+
55
+ if attributes.has_key?(:'name')
56
+ self.name = attributes[:'name']
57
+ end
58
+
59
+ if attributes.has_key?(:'type')
60
+ self.type = attributes[:'type']
61
+ end
62
+ end
63
+
64
+ # Show invalid properties with the reasons. Usually used together with valid?
65
+ # @return Array for valid properties with the reasons
66
+ def list_invalid_properties
67
+ invalid_properties = Array.new
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ true
75
+ end
76
+
77
+ # Checks equality by comparing each attribute.
78
+ # @param [Object] Object to be compared
79
+ def ==(o)
80
+ return true if self.equal?(o)
81
+ self.class == o.class &&
82
+ label == o.label &&
83
+ name == o.name &&
84
+ type == o.type
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Fixnum] Hash code
95
+ def hash
96
+ [label, name, type].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def build_from_hash(attributes)
103
+ return nil unless attributes.is_a?(Hash)
104
+ self.class.swagger_types.each_pair do |key, type|
105
+ if type =~ /\AArray<(.*)>/i
106
+ # check to ensure the input is an array given that the attribute
107
+ # is documented as an array but the input is not
108
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
109
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
110
+ end
111
+ elsif !attributes[self.class.attribute_map[key]].nil?
112
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
113
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
114
+ end
115
+
116
+ self
117
+ end
118
+
119
+ # Deserializes the data based on type
120
+ # @param string type Data type
121
+ # @param string value Value to be deserialized
122
+ # @return [Object] Deserialized data
123
+ def _deserialize(type, value)
124
+ case type.to_sym
125
+ when :DateTime
126
+ DateTime.parse(value)
127
+ when :Date
128
+ Date.parse(value)
129
+ when :String
130
+ value.to_s
131
+ when :Integer
132
+ value.to_i
133
+ when :Float
134
+ value.to_f
135
+ when :BOOLEAN
136
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
137
+ true
138
+ else
139
+ false
140
+ end
141
+ when :Object
142
+ # generic object (usually a Hash), return directly
143
+ value
144
+ when /\AArray<(?<inner_type>.+)>\z/
145
+ inner_type = Regexp.last_match[:inner_type]
146
+ value.map { |v| _deserialize(inner_type, v) }
147
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
148
+ k_type = Regexp.last_match[:k_type]
149
+ v_type = Regexp.last_match[:v_type]
150
+ {}.tap do |hash|
151
+ value.each do |k, v|
152
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
153
+ end
154
+ end
155
+ else # model
156
+ temp_model = DocuSign_Click.const_get(type).new
157
+ temp_model.build_from_hash(value)
158
+ end
159
+ end
160
+
161
+ # Returns the string representation of the object
162
+ # @return [String] String presentation of the object
163
+ def to_s
164
+ to_hash.to_s
165
+ end
166
+
167
+ # to_body is an alias to to_hash (backward compatibility)
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_body
170
+ to_hash
171
+ end
172
+
173
+ # Returns the object in the form of hash
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ next if value.nil?
180
+ hash[param] = _to_hash(value)
181
+ end
182
+ hash
183
+ end
184
+
185
+ # Outputs non-array value in the form of hash
186
+ # For object, use to_hash. Otherwise, just return the value
187
+ # @param [Object] value Any valid value
188
+ # @return [Hash] Returns the value in the form of hash
189
+ def _to_hash(value)
190
+ if value.is_a?(Array)
191
+ value.compact.map { |v| _to_hash(v) }
192
+ elsif value.is_a?(Hash)
193
+ {}.tap do |hash|
194
+ value.each { |k, v| hash[k] = _to_hash(v) }
195
+ end
196
+ elsif value.respond_to? :to_hash
197
+ value.to_hash
198
+ else
199
+ value
200
+ end
201
+ end
202
+
203
+ end
204
+ end
@@ -64,6 +64,9 @@ module DocuSign_Click
64
64
  #
65
65
  attr_accessor :send_to_email
66
66
 
67
+ #
68
+ attr_accessor :statement_alignment
69
+
67
70
  # Attribute mapping from ruby-style variable name to JSON key.
68
71
  def self.attribute_map
69
72
  {
@@ -83,7 +86,8 @@ module DocuSign_Click
83
86
  :'must_view' => :'mustView',
84
87
  :'record_decline_responses' => :'recordDeclineResponses',
85
88
  :'require_accept' => :'requireAccept',
86
- :'send_to_email' => :'sendToEmail'
89
+ :'send_to_email' => :'sendToEmail',
90
+ :'statement_alignment' => :'statementAlignment'
87
91
  }
88
92
  end
89
93
 
@@ -106,7 +110,8 @@ module DocuSign_Click
106
110
  :'must_view' => :'BOOLEAN',
107
111
  :'record_decline_responses' => :'BOOLEAN',
108
112
  :'require_accept' => :'BOOLEAN',
109
- :'send_to_email' => :'BOOLEAN'
113
+ :'send_to_email' => :'BOOLEAN',
114
+ :'statement_alignment' => :'String'
110
115
  }
111
116
  end
112
117
 
@@ -187,6 +192,10 @@ module DocuSign_Click
187
192
  if attributes.has_key?(:'sendToEmail')
188
193
  self.send_to_email = attributes[:'sendToEmail']
189
194
  end
195
+
196
+ if attributes.has_key?(:'statementAlignment')
197
+ self.statement_alignment = attributes[:'statementAlignment']
198
+ end
190
199
  end
191
200
 
192
201
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -223,7 +232,8 @@ module DocuSign_Click
223
232
  must_view == o.must_view &&
224
233
  record_decline_responses == o.record_decline_responses &&
225
234
  require_accept == o.require_accept &&
226
- send_to_email == o.send_to_email
235
+ send_to_email == o.send_to_email &&
236
+ statement_alignment == o.statement_alignment
227
237
  end
228
238
 
229
239
  # @see the `==` method
@@ -235,7 +245,7 @@ module DocuSign_Click
235
245
  # Calculates hash code according to all attributes.
236
246
  # @return [Fixnum] Hash code
237
247
  def hash
238
- [action_button_alignment, allow_client_only, allowed_hosts, brand_id, consent_button_text, consent_text, decline_button_text, display_name, document_display, downloadable, format, has_decline_button, must_read, must_view, record_decline_responses, require_accept, send_to_email].hash
248
+ [action_button_alignment, allow_client_only, allowed_hosts, brand_id, consent_button_text, consent_text, decline_button_text, display_name, document_display, downloadable, format, has_decline_button, must_read, must_view, record_decline_responses, require_accept, send_to_email, statement_alignment].hash
239
249
  end
240
250
 
241
251
  # Builds the object from hash
@@ -16,6 +16,9 @@ module DocuSign_Click
16
16
  #
17
17
  attr_accessor :document_base64
18
18
 
19
+ #
20
+ attr_accessor :document_display
21
+
19
22
  #
20
23
  attr_accessor :document_html
21
24
 
@@ -25,6 +28,12 @@ module DocuSign_Click
25
28
  #
26
29
  attr_accessor :file_extension
27
30
 
31
+ #
32
+ attr_accessor :must_read
33
+
34
+ #
35
+ attr_accessor :must_view
36
+
28
37
  #
29
38
  attr_accessor :order
30
39
 
@@ -32,9 +41,12 @@ module DocuSign_Click
32
41
  def self.attribute_map
33
42
  {
34
43
  :'document_base64' => :'documentBase64',
44
+ :'document_display' => :'documentDisplay',
35
45
  :'document_html' => :'documentHtml',
36
46
  :'document_name' => :'documentName',
37
47
  :'file_extension' => :'fileExtension',
48
+ :'must_read' => :'mustRead',
49
+ :'must_view' => :'mustView',
38
50
  :'order' => :'order'
39
51
  }
40
52
  end
@@ -43,9 +55,12 @@ module DocuSign_Click
43
55
  def self.swagger_types
44
56
  {
45
57
  :'document_base64' => :'String',
58
+ :'document_display' => :'String',
46
59
  :'document_html' => :'String',
47
60
  :'document_name' => :'String',
48
61
  :'file_extension' => :'String',
62
+ :'must_read' => :'BOOLEAN',
63
+ :'must_view' => :'BOOLEAN',
49
64
  :'order' => :'Integer'
50
65
  }
51
66
  end
@@ -62,6 +77,10 @@ module DocuSign_Click
62
77
  self.document_base64 = attributes[:'documentBase64']
63
78
  end
64
79
 
80
+ if attributes.has_key?(:'documentDisplay')
81
+ self.document_display = attributes[:'documentDisplay']
82
+ end
83
+
65
84
  if attributes.has_key?(:'documentHtml')
66
85
  self.document_html = attributes[:'documentHtml']
67
86
  end
@@ -74,6 +93,14 @@ module DocuSign_Click
74
93
  self.file_extension = attributes[:'fileExtension']
75
94
  end
76
95
 
96
+ if attributes.has_key?(:'mustRead')
97
+ self.must_read = attributes[:'mustRead']
98
+ end
99
+
100
+ if attributes.has_key?(:'mustView')
101
+ self.must_view = attributes[:'mustView']
102
+ end
103
+
77
104
  if attributes.has_key?(:'order')
78
105
  self.order = attributes[:'order']
79
106
  end
@@ -98,9 +125,12 @@ module DocuSign_Click
98
125
  return true if self.equal?(o)
99
126
  self.class == o.class &&
100
127
  document_base64 == o.document_base64 &&
128
+ document_display == o.document_display &&
101
129
  document_html == o.document_html &&
102
130
  document_name == o.document_name &&
103
131
  file_extension == o.file_extension &&
132
+ must_read == o.must_read &&
133
+ must_view == o.must_view &&
104
134
  order == o.order
105
135
  end
106
136
 
@@ -113,7 +143,7 @@ module DocuSign_Click
113
143
  # Calculates hash code according to all attributes.
114
144
  # @return [Fixnum] Hash code
115
145
  def hash
116
- [document_base64, document_html, document_name, file_extension, order].hash
146
+ [document_base64, document_display, document_html, document_name, file_extension, must_read, must_view, order].hash
117
147
  end
118
148
 
119
149
  # Builds the object from hash
@@ -16,6 +16,7 @@ module DocuSign_Click
16
16
  #
17
17
  attr_accessor :client_user_id
18
18
 
19
+ #
19
20
  attr_accessor :document_data
20
21
 
21
22
  #
@@ -34,7 +35,7 @@ module DocuSign_Click
34
35
  def self.swagger_types
35
36
  {
36
37
  :'client_user_id' => :'String',
37
- :'document_data' => :'DocumentData',
38
+ :'document_data' => :'Hash<String, String>',
38
39
  :'metadata' => :'String'
39
40
  }
40
41
  end
@@ -52,7 +53,9 @@ module DocuSign_Click
52
53
  end
53
54
 
54
55
  if attributes.has_key?(:'documentData')
55
- self.document_data = attributes[:'documentData']
56
+ if (value = attributes[:'documentData']).is_a?(Hash)
57
+ self.document_data = value
58
+ end
56
59
  end
57
60
 
58
61
  if attributes.has_key?(:'metadata')
@@ -31,6 +31,9 @@ module DocuSign_Click
31
31
  #
32
32
  attr_accessor :client_user_id
33
33
 
34
+ #
35
+ attr_accessor :consumer_disclosure_enabled
36
+
34
37
  #
35
38
  attr_accessor :consumer_disclosure_html
36
39
 
@@ -40,6 +43,7 @@ module DocuSign_Click
40
43
  #
41
44
  attr_accessor :declined_on
42
45
 
46
+ #
43
47
  attr_accessor :document_data
44
48
 
45
49
  #
@@ -53,6 +57,9 @@ module DocuSign_Click
53
57
  #
54
58
  attr_accessor :status
55
59
 
60
+ #
61
+ attr_accessor :style
62
+
56
63
  #
57
64
  attr_accessor :version
58
65
 
@@ -71,6 +78,7 @@ module DocuSign_Click
71
78
  :'agreement_url' => :'agreementUrl',
72
79
  :'clickwrap_id' => :'clickwrapId',
73
80
  :'client_user_id' => :'clientUserId',
81
+ :'consumer_disclosure_enabled' => :'consumerDisclosureEnabled',
74
82
  :'consumer_disclosure_html' => :'consumerDisclosureHtml',
75
83
  :'created_on' => :'createdOn',
76
84
  :'declined_on' => :'declinedOn',
@@ -79,6 +87,7 @@ module DocuSign_Click
79
87
  :'metadata' => :'metadata',
80
88
  :'settings' => :'settings',
81
89
  :'status' => :'status',
90
+ :'style' => :'style',
82
91
  :'version' => :'version',
83
92
  :'version_id' => :'versionId',
84
93
  :'version_number' => :'versionNumber'
@@ -94,14 +103,16 @@ module DocuSign_Click
94
103
  :'agreement_url' => :'String',
95
104
  :'clickwrap_id' => :'String',
96
105
  :'client_user_id' => :'String',
106
+ :'consumer_disclosure_enabled' => :'BOOLEAN',
97
107
  :'consumer_disclosure_html' => :'String',
98
108
  :'created_on' => :'Object',
99
109
  :'declined_on' => :'Object',
100
- :'document_data' => :'DocumentData',
110
+ :'document_data' => :'Hash<String, String>',
101
111
  :'documents' => :'Array<Document>',
102
112
  :'metadata' => :'String',
103
113
  :'settings' => :'DisplaySettings',
104
114
  :'status' => :'String',
115
+ :'style' => :'Hash<String, String>',
105
116
  :'version' => :'String',
106
117
  :'version_id' => :'String',
107
118
  :'version_number' => :'Integer'
@@ -140,6 +151,10 @@ module DocuSign_Click
140
151
  self.client_user_id = attributes[:'clientUserId']
141
152
  end
142
153
 
154
+ if attributes.has_key?(:'consumerDisclosureEnabled')
155
+ self.consumer_disclosure_enabled = attributes[:'consumerDisclosureEnabled']
156
+ end
157
+
143
158
  if attributes.has_key?(:'consumerDisclosureHtml')
144
159
  self.consumer_disclosure_html = attributes[:'consumerDisclosureHtml']
145
160
  end
@@ -153,7 +168,9 @@ module DocuSign_Click
153
168
  end
154
169
 
155
170
  if attributes.has_key?(:'documentData')
156
- self.document_data = attributes[:'documentData']
171
+ if (value = attributes[:'documentData']).is_a?(Hash)
172
+ self.document_data = value
173
+ end
157
174
  end
158
175
 
159
176
  if attributes.has_key?(:'documents')
@@ -174,6 +191,12 @@ module DocuSign_Click
174
191
  self.status = attributes[:'status']
175
192
  end
176
193
 
194
+ if attributes.has_key?(:'style')
195
+ if (value = attributes[:'style']).is_a?(Hash)
196
+ self.style = value
197
+ end
198
+ end
199
+
177
200
  if attributes.has_key?(:'version')
178
201
  self.version = attributes[:'version']
179
202
  end
@@ -211,6 +234,7 @@ module DocuSign_Click
211
234
  agreement_url == o.agreement_url &&
212
235
  clickwrap_id == o.clickwrap_id &&
213
236
  client_user_id == o.client_user_id &&
237
+ consumer_disclosure_enabled == o.consumer_disclosure_enabled &&
214
238
  consumer_disclosure_html == o.consumer_disclosure_html &&
215
239
  created_on == o.created_on &&
216
240
  declined_on == o.declined_on &&
@@ -219,6 +243,7 @@ module DocuSign_Click
219
243
  metadata == o.metadata &&
220
244
  settings == o.settings &&
221
245
  status == o.status &&
246
+ style == o.style &&
222
247
  version == o.version &&
223
248
  version_id == o.version_id &&
224
249
  version_number == o.version_number
@@ -233,7 +258,7 @@ module DocuSign_Click
233
258
  # Calculates hash code according to all attributes.
234
259
  # @return [Fixnum] Hash code
235
260
  def hash
236
- [account_id, agreed_on, agreement_id, agreement_url, clickwrap_id, client_user_id, consumer_disclosure_html, created_on, declined_on, document_data, documents, metadata, settings, status, version, version_id, version_number].hash
261
+ [account_id, agreed_on, agreement_id, agreement_url, clickwrap_id, client_user_id, consumer_disclosure_enabled, consumer_disclosure_html, created_on, declined_on, document_data, documents, metadata, settings, status, style, version, version_id, version_number].hash
237
262
  end
238
263
 
239
264
  # Builds the object from hash
@@ -10,5 +10,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  =end
11
11
 
12
12
  module DocuSign_Click
13
- VERSION = '1.1.0.rc1'
13
+ VERSION = '1.2.2'
14
14
  end
@@ -32,9 +32,9 @@ require 'docusign_click/models/clickwrap_versions_delete_response'
32
32
  require 'docusign_click/models/clickwrap_versions_paged_response'
33
33
  require 'docusign_click/models/clickwrap_versions_response'
34
34
  require 'docusign_click/models/clickwraps_delete_response'
35
+ require 'docusign_click/models/data_field'
35
36
  require 'docusign_click/models/display_settings'
36
37
  require 'docusign_click/models/document'
37
- require 'docusign_click/models/document_data'
38
38
  require 'docusign_click/models/error_details'
39
39
  require 'docusign_click/models/service_information'
40
40
  require 'docusign_click/models/service_version'