docusign_esign 3.19.0 → 3.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,6 +77,9 @@ module DocuSign_eSign
77
77
  #
78
78
  attr_accessor :include_hmac
79
79
 
80
+ #
81
+ attr_accessor :include_o_auth
82
+
80
83
  # When set to **true**, Connect will include the sender account as Custom Field in the data.
81
84
  attr_accessor :include_sender_accountas_custom_field
82
85
 
@@ -161,6 +164,7 @@ module DocuSign_eSign
161
164
  :'include_documents' => :'includeDocuments',
162
165
  :'include_envelope_void_reason' => :'includeEnvelopeVoidReason',
163
166
  :'include_hmac' => :'includeHMAC',
167
+ :'include_o_auth' => :'includeOAuth',
164
168
  :'include_sender_accountas_custom_field' => :'includeSenderAccountasCustomField',
165
169
  :'include_time_zone_information' => :'includeTimeZoneInformation',
166
170
  :'name' => :'name',
@@ -208,6 +212,7 @@ module DocuSign_eSign
208
212
  :'include_documents' => :'String',
209
213
  :'include_envelope_void_reason' => :'String',
210
214
  :'include_hmac' => :'String',
215
+ :'include_o_auth' => :'String',
211
216
  :'include_sender_accountas_custom_field' => :'String',
212
217
  :'include_time_zone_information' => :'String',
213
218
  :'name' => :'String',
@@ -329,6 +334,10 @@ module DocuSign_eSign
329
334
  self.include_hmac = attributes[:'includeHMAC']
330
335
  end
331
336
 
337
+ if attributes.has_key?(:'includeOAuth')
338
+ self.include_o_auth = attributes[:'includeOAuth']
339
+ end
340
+
332
341
  if attributes.has_key?(:'includeSenderAccountasCustomField')
333
342
  self.include_sender_accountas_custom_field = attributes[:'includeSenderAccountasCustomField']
334
343
  end
@@ -457,6 +466,7 @@ module DocuSign_eSign
457
466
  include_documents == o.include_documents &&
458
467
  include_envelope_void_reason == o.include_envelope_void_reason &&
459
468
  include_hmac == o.include_hmac &&
469
+ include_o_auth == o.include_o_auth &&
460
470
  include_sender_accountas_custom_field == o.include_sender_accountas_custom_field &&
461
471
  include_time_zone_information == o.include_time_zone_information &&
462
472
  name == o.name &&
@@ -488,7 +498,7 @@ module DocuSign_eSign
488
498
  # Calculates hash code according to all attributes.
489
499
  # @return [Fixnum] Hash code
490
500
  def hash
491
- [allow_envelope_publish, allow_salesforce_publish, all_users, all_users_except, configuration_type, connect_id, delivery_mode, disabled_by, enable_log, envelope_events, event_data, events, external_folder_id, external_folder_label, group_ids, include_certificate_of_completion, include_cert_soap_header, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_sender_accountas_custom_field, include_time_zone_information, name, password, recipient_events, require_mutual_tls, requires_acknowledgement, salesforce_api_version, salesforce_authcode, salesforce_call_back_url, salesforce_documents_as_content_files, sender_override, sender_selectable_items, sf_objects, sign_message_with_x509_certificate, soap_namespace, url_to_publish_to, user_ids, user_name, use_soap_interface].hash
501
+ [allow_envelope_publish, allow_salesforce_publish, all_users, all_users_except, configuration_type, connect_id, delivery_mode, disabled_by, enable_log, envelope_events, event_data, events, external_folder_id, external_folder_label, group_ids, include_certificate_of_completion, include_cert_soap_header, include_document_fields, include_documents, include_envelope_void_reason, include_hmac, include_o_auth, include_sender_accountas_custom_field, include_time_zone_information, name, password, recipient_events, require_mutual_tls, requires_acknowledgement, salesforce_api_version, salesforce_authcode, salesforce_call_back_url, salesforce_documents_as_content_files, sender_override, sender_selectable_items, sf_objects, sign_message_with_x509_certificate, soap_namespace, url_to_publish_to, user_ids, user_name, use_soap_interface].hash
492
502
  end
493
503
 
494
504
  # Builds the object from hash
@@ -22,6 +22,9 @@ module DocuSign_eSign
22
22
  #
23
23
  attr_accessor :client_secret
24
24
 
25
+ #
26
+ attr_accessor :custom_parameters
27
+
25
28
  #
26
29
  attr_accessor :scope
27
30
 
@@ -31,6 +34,7 @@ module DocuSign_eSign
31
34
  :'authorization_server_url' => :'authorizationServerUrl',
32
35
  :'client_id' => :'clientId',
33
36
  :'client_secret' => :'clientSecret',
37
+ :'custom_parameters' => :'customParameters',
34
38
  :'scope' => :'scope'
35
39
  }
36
40
  end
@@ -41,6 +45,7 @@ module DocuSign_eSign
41
45
  :'authorization_server_url' => :'String',
42
46
  :'client_id' => :'String',
43
47
  :'client_secret' => :'String',
48
+ :'custom_parameters' => :'String',
44
49
  :'scope' => :'String'
45
50
  }
46
51
  end
@@ -65,6 +70,10 @@ module DocuSign_eSign
65
70
  self.client_secret = attributes[:'clientSecret']
66
71
  end
67
72
 
73
+ if attributes.has_key?(:'customParameters')
74
+ self.custom_parameters = attributes[:'customParameters']
75
+ end
76
+
68
77
  if attributes.has_key?(:'scope')
69
78
  self.scope = attributes[:'scope']
70
79
  end
@@ -91,6 +100,7 @@ module DocuSign_eSign
91
100
  authorization_server_url == o.authorization_server_url &&
92
101
  client_id == o.client_id &&
93
102
  client_secret == o.client_secret &&
103
+ custom_parameters == o.custom_parameters &&
94
104
  scope == o.scope
95
105
  end
96
106
 
@@ -103,7 +113,7 @@ module DocuSign_eSign
103
113
  # Calculates hash code according to all attributes.
104
114
  # @return [Fixnum] Hash code
105
115
  def hash
106
- [authorization_server_url, client_id, client_secret, scope].hash
116
+ [authorization_server_url, client_id, client_secret, custom_parameters, scope].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash
@@ -13,13 +13,13 @@ require 'date'
13
13
 
14
14
  module DocuSign_eSign
15
15
  class DelayedRouting
16
- #
16
+ # An ISO 8601 formatted datetime string indicating the date and time that the envelope is (or was) scheduled to be sent to the recipients associated with the current workflow step or null if the envelope has not yet begun processing the current workflow step.
17
17
  attr_accessor :resume_date
18
18
 
19
- #
19
+ # A list of envelope delay rules specified by the user indicating how and when the envelope should be sent in the future for the current workflow step and its associated recipients. Currently only 1 rule may be specified.
20
20
  attr_accessor :rules
21
21
 
22
- # Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later.
22
+ # \\\"pending\\\" if the current workflow step has not been reached and the delay has not yet started. \\\"started\\\" if the delay is in progress. \\\"completed\\\" if the delay has elapsed and the envelope has been sent to the current workflow step's recipients.
23
23
  attr_accessor :status
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,224 @@
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 DocGenFormField
16
+ #
17
+ attr_accessor :label
18
+
19
+ #
20
+ attr_accessor :name
21
+
22
+ # When set to **true**, the signer is required to fill out this tab
23
+ attr_accessor :required
24
+
25
+ #
26
+ attr_accessor :type
27
+
28
+ # Specifies the value of the tab.
29
+ attr_accessor :value
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'label' => :'label',
35
+ :'name' => :'name',
36
+ :'required' => :'required',
37
+ :'type' => :'type',
38
+ :'value' => :'value'
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.swagger_types
44
+ {
45
+ :'label' => :'String',
46
+ :'name' => :'String',
47
+ :'required' => :'String',
48
+ :'type' => :'String',
49
+ :'value' => :'String'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
+
61
+ if attributes.has_key?(:'label')
62
+ self.label = attributes[:'label']
63
+ end
64
+
65
+ if attributes.has_key?(:'name')
66
+ self.name = attributes[:'name']
67
+ end
68
+
69
+ if attributes.has_key?(:'required')
70
+ self.required = attributes[:'required']
71
+ end
72
+
73
+ if attributes.has_key?(:'type')
74
+ self.type = attributes[:'type']
75
+ end
76
+
77
+ if attributes.has_key?(:'value')
78
+ self.value = attributes[:'value']
79
+ end
80
+ end
81
+
82
+ # Show invalid properties with the reasons. Usually used together with valid?
83
+ # @return Array for valid properties with the reasons
84
+ def list_invalid_properties
85
+ invalid_properties = Array.new
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ label == o.label &&
101
+ name == o.name &&
102
+ required == o.required &&
103
+ type == o.type &&
104
+ value == o.value
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Fixnum] Hash code
115
+ def hash
116
+ [label, name, required, type, value].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ self.class.swagger_types.each_pair do |key, type|
125
+ if type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :DateTime
146
+ DateTime.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :BOOLEAN
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ temp_model = DocuSign_eSign.const_get(type).new
177
+ temp_model.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ next if value.nil?
200
+ hash[param] = _to_hash(value)
201
+ end
202
+ hash
203
+ end
204
+
205
+ # Outputs non-array value in the form of hash
206
+ # For object, use to_hash. Otherwise, just return the value
207
+ # @param [Object] value Any valid value
208
+ # @return [Hash] Returns the value in the form of hash
209
+ def _to_hash(value)
210
+ if value.is_a?(Array)
211
+ value.compact.map { |v| _to_hash(v) }
212
+ elsif value.is_a?(Hash)
213
+ {}.tap do |hash|
214
+ value.each { |k, v| hash[k] = _to_hash(v) }
215
+ end
216
+ elsif value.respond_to? :to_hash
217
+ value.to_hash
218
+ else
219
+ value
220
+ end
221
+ end
222
+
223
+ end
224
+ end
@@ -0,0 +1,204 @@
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 DocGenSyntaxError
16
+ #
17
+ attr_accessor :error_code
18
+
19
+ #
20
+ attr_accessor :message
21
+
22
+ #
23
+ attr_accessor :tag_identifier
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'error_code' => :'errorCode',
29
+ :'message' => :'message',
30
+ :'tag_identifier' => :'tagIdentifier'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.swagger_types
36
+ {
37
+ :'error_code' => :'String',
38
+ :'message' => :'String',
39
+ :'tag_identifier' => :'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?(:'errorCode')
52
+ self.error_code = attributes[:'errorCode']
53
+ end
54
+
55
+ if attributes.has_key?(:'message')
56
+ self.message = attributes[:'message']
57
+ end
58
+
59
+ if attributes.has_key?(:'tagIdentifier')
60
+ self.tag_identifier = attributes[:'tagIdentifier']
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
+ error_code == o.error_code &&
83
+ message == o.message &&
84
+ tag_identifier == o.tag_identifier
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
+ [error_code, message, tag_identifier].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_eSign.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
@@ -23,6 +23,9 @@ module DocuSign_eSign
23
23
  #
24
24
  attr_accessor :display
25
25
 
26
+ #
27
+ attr_accessor :doc_gen_form_fields
28
+
26
29
  # The document's bytes. This field can be used to include a base64 version of the document bytes within an envelope definition instead of sending the document using a multi-part HTTP request. The maximum document size is smaller if this field is used due to the overhead of the base64 encoding.
27
30
  attr_accessor :document_base64
28
31
 
@@ -47,6 +50,9 @@ module DocuSign_eSign
47
50
  #
48
51
  attr_accessor :include_in_download
49
52
 
53
+ #
54
+ attr_accessor :is_doc_gen_document
55
+
50
56
  # Matchboxes define areas in a document for document matching when you are creating envelopes. They are only used when you upload and edit a template. A matchbox consists of 5 elements: * pageNumber - The document page number on which the matchbox will appear. * xPosition - The x position of the matchbox on a page. * yPosition - The y position of the matchbox on a page. * width - The width of the matchbox. * height - The height of the matchbox.
51
57
  attr_accessor :match_boxes
52
58
 
@@ -95,6 +101,7 @@ module DocuSign_eSign
95
101
  :'apply_anchor_tabs' => :'applyAnchorTabs',
96
102
  :'assign_tabs_to_recipient_id' => :'assignTabsToRecipientId',
97
103
  :'display' => :'display',
104
+ :'doc_gen_form_fields' => :'docGenFormFields',
98
105
  :'document_base64' => :'documentBase64',
99
106
  :'document_fields' => :'documentFields',
100
107
  :'document_id' => :'documentId',
@@ -103,6 +110,7 @@ module DocuSign_eSign
103
110
  :'file_format_hint' => :'fileFormatHint',
104
111
  :'html_definition' => :'htmlDefinition',
105
112
  :'include_in_download' => :'includeInDownload',
113
+ :'is_doc_gen_document' => :'isDocGenDocument',
106
114
  :'match_boxes' => :'matchBoxes',
107
115
  :'name' => :'name',
108
116
  :'order' => :'order',
@@ -126,6 +134,7 @@ module DocuSign_eSign
126
134
  :'apply_anchor_tabs' => :'String',
127
135
  :'assign_tabs_to_recipient_id' => :'String',
128
136
  :'display' => :'String',
137
+ :'doc_gen_form_fields' => :'Array<DocGenFormField>',
129
138
  :'document_base64' => :'String',
130
139
  :'document_fields' => :'Array<NameValue>',
131
140
  :'document_id' => :'String',
@@ -134,6 +143,7 @@ module DocuSign_eSign
134
143
  :'file_format_hint' => :'String',
135
144
  :'html_definition' => :'DocumentHtmlDefinition',
136
145
  :'include_in_download' => :'String',
146
+ :'is_doc_gen_document' => :'String',
137
147
  :'match_boxes' => :'Array<MatchBox>',
138
148
  :'name' => :'String',
139
149
  :'order' => :'String',
@@ -171,6 +181,12 @@ module DocuSign_eSign
171
181
  self.display = attributes[:'display']
172
182
  end
173
183
 
184
+ if attributes.has_key?(:'docGenFormFields')
185
+ if (value = attributes[:'docGenFormFields']).is_a?(Array)
186
+ self.doc_gen_form_fields = value
187
+ end
188
+ end
189
+
174
190
  if attributes.has_key?(:'documentBase64')
175
191
  self.document_base64 = attributes[:'documentBase64']
176
192
  end
@@ -205,6 +221,10 @@ module DocuSign_eSign
205
221
  self.include_in_download = attributes[:'includeInDownload']
206
222
  end
207
223
 
224
+ if attributes.has_key?(:'isDocGenDocument')
225
+ self.is_doc_gen_document = attributes[:'isDocGenDocument']
226
+ end
227
+
208
228
  if attributes.has_key?(:'matchBoxes')
209
229
  if (value = attributes[:'matchBoxes']).is_a?(Array)
210
230
  self.match_boxes = value
@@ -285,6 +305,7 @@ module DocuSign_eSign
285
305
  apply_anchor_tabs == o.apply_anchor_tabs &&
286
306
  assign_tabs_to_recipient_id == o.assign_tabs_to_recipient_id &&
287
307
  display == o.display &&
308
+ doc_gen_form_fields == o.doc_gen_form_fields &&
288
309
  document_base64 == o.document_base64 &&
289
310
  document_fields == o.document_fields &&
290
311
  document_id == o.document_id &&
@@ -293,6 +314,7 @@ module DocuSign_eSign
293
314
  file_format_hint == o.file_format_hint &&
294
315
  html_definition == o.html_definition &&
295
316
  include_in_download == o.include_in_download &&
317
+ is_doc_gen_document == o.is_doc_gen_document &&
296
318
  match_boxes == o.match_boxes &&
297
319
  name == o.name &&
298
320
  order == o.order &&
@@ -318,7 +340,7 @@ module DocuSign_eSign
318
340
  # Calculates hash code according to all attributes.
319
341
  # @return [Fixnum] Hash code
320
342
  def hash
321
- [apply_anchor_tabs, assign_tabs_to_recipient_id, display, document_base64, document_fields, document_id, encrypted_with_key_manager, file_extension, file_format_hint, html_definition, include_in_download, match_boxes, name, order, pages, password, pdf_form_field_option, remote_url, signer_must_acknowledge, signer_must_acknowledge_use_account_default, tabs, template_locked, template_required, transform_pdf_fields, uri].hash
343
+ [apply_anchor_tabs, assign_tabs_to_recipient_id, display, doc_gen_form_fields, document_base64, document_fields, document_id, encrypted_with_key_manager, file_extension, file_format_hint, html_definition, include_in_download, is_doc_gen_document, match_boxes, name, order, pages, password, pdf_form_field_option, remote_url, signer_must_acknowledge, signer_must_acknowledge_use_account_default, tabs, template_locked, template_required, transform_pdf_fields, uri].hash
322
344
  end
323
345
 
324
346
  # Builds the object from hash
@@ -12,11 +12,12 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
12
  require 'date'
13
13
 
14
14
  module DocuSign_eSign
15
+ # An envelope delay rule is a rule which determines how the envelope should be delayed either for sending or routing. It can expressed as either a delay in some number of days, hours, minutes and seconds or an exact resumeDate in the future.
15
16
  class EnvelopeDelayRule
16
- #
17
+ # A string timespan duration represented as d.hh:mm:ss where the d component is days, hh is hours measured on a 24-hour clock, mm is minutes and ss is seconds, indicating the expected delay for this envelope rule. The maximum delay is 30 days.
17
18
  attr_accessor :delay
18
19
 
19
- #
20
+ # A string formatted as an ISO 8601 DATETIME with TimeZone specified, indicating the expected resumeDate for this envelope rule. The specified datetime must occur in the future relative to the current UTC time hen the request is made. The maximum resumeDate must not exceed 30 days in the future.
20
21
  attr_accessor :resume_date
21
22
 
22
23
  # Attribute mapping from ruby-style variable name to JSON key.