docusign_esign 2.10.0.rc1 → 2.12.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bf03d2ed8c66ebb1caa429b3ca31717d7d0bfb7849ecae394819f82c90b971e
4
- data.tar.gz: 5892fa61d1ea91ddf51acfd8c462a4f5381635c78fcc35f023fd268e16d7fb00
3
+ metadata.gz: a4530539a441f26d127da440255407374c1a67ff50860d343ba773ed59ecd549
4
+ data.tar.gz: 29e5dace0cf0888818031782fc8dbc54418850cbd63329b1fed380d1c6e2b49e
5
5
  SHA512:
6
- metadata.gz: b99c61b0893b0f605306bdfcd007caf3f7f972538c196a1785dc8a5a831a1ec75e573bd48b9cdf62e025698afb2699dd0f9c3be61ca16ad09a7611db37669c47
7
- data.tar.gz: d32464dc78643b8050b8a0b66916233ff85e0b69a922ebd3b9bd46171c03968d082bc281df1835dd4d60ea8a4c80f6fc15ff7220e0e17f513aac92277b830827
6
+ metadata.gz: ae9db7e44aa9ee6b9fdeb59ba923cc822431e002ad5d96f27754417a7cd9b86a574f9d531fb792f1249f6b0460fa1622d31cbadd0e635550ee1146a9c1d10205
7
+ data.tar.gz: b99c60d7cc36a28fd63f28afff65c11db2b5240615ade69a3116e395205cfdf76033e83f8c59807bf39186f384c11f101a8de1261c0cdeba4f9b18fe0c9695b5
data/CHANGELOG.md CHANGED
@@ -3,7 +3,19 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
5
5
 
6
- ## [v2.10.0.rc1] - eSignature API v2-21.1.02.00 - 2021-05-20
6
+ ## [v2.12.0.rc1] - ESignature API v2-21.2.02.00 - 2021-08-30
7
+ ### Changed
8
+ - Added support for version v2-21.2.02.00 of the DocuSign ESignature API.
9
+ - Updated the SDK release version.
10
+
11
+ ## [v2.11.0] - eSignature API v2-21.1.02.00 - 2021-07-13
12
+ ### Added
13
+ - Added new models and properties.
14
+ ### Changed
15
+ - Added support for version v2-21.2.02.00 of the DocuSign ESignature API.
16
+ - Updated the SDK release version.
17
+
18
+ ## [v2.10.0] - eSignature API v2-21.1.02.00 - 2021-06-04
7
19
  ### Breaking
8
20
  - Removed methods `get_account_settings_export`,`get_seal_providers` from Accounts.
9
21
  - Removed methods `create_connect_secret`,`delete_connect_secret`,`generate_connect_secret`,`get_connect_secrets` from Connect.
data/Gemfile.lock CHANGED
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docusign_esign (3.7.0.rc1)
5
- addressable (~> 2.7, >= 2.7.0)
4
+ docusign_esign (3.10.0)
6
5
  json (~> 2.1, >= 2.1.0)
7
6
  jwt (~> 2.2, >= 2.2.1)
8
7
  typhoeus (~> 1.0, >= 1.0.1)
@@ -15,35 +14,37 @@ GEM
15
14
  public_suffix (>= 2.0.2, < 5.0)
16
15
  autotest (4.4.6)
17
16
  ZenTest (>= 4.4.1)
18
- autotest-fsevent (0.2.17)
17
+ autotest-fsevent (0.2.18)
19
18
  sys-uname
20
19
  autotest-growl (0.2.16)
21
20
  autotest-rails-pure (4.1.2)
22
- crack (0.4.4)
21
+ crack (0.4.5)
22
+ rexml
23
23
  diff-lcs (1.4.4)
24
- ethon (0.12.0)
25
- ffi (>= 1.3.0)
26
- ffi (1.13.1)
24
+ ethon (0.14.0)
25
+ ffi (>= 1.15.0)
26
+ ffi (1.15.1)
27
27
  hashdiff (1.0.1)
28
- json (2.3.1)
29
- jwt (2.2.2)
28
+ json (2.5.1)
29
+ jwt (2.2.3)
30
30
  public_suffix (4.0.6)
31
31
  rake (12.3.3)
32
- rspec (3.9.0)
33
- rspec-core (~> 3.9.0)
34
- rspec-expectations (~> 3.9.0)
35
- rspec-mocks (~> 3.9.0)
36
- rspec-core (3.9.3)
37
- rspec-support (~> 3.9.3)
38
- rspec-expectations (3.9.3)
32
+ rexml (3.2.5)
33
+ rspec (3.10.0)
34
+ rspec-core (~> 3.10.0)
35
+ rspec-expectations (~> 3.10.0)
36
+ rspec-mocks (~> 3.10.0)
37
+ rspec-core (3.10.1)
38
+ rspec-support (~> 3.10.0)
39
+ rspec-expectations (3.10.1)
39
40
  diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.9.0)
41
- rspec-mocks (3.9.1)
41
+ rspec-support (~> 3.10.0)
42
+ rspec-mocks (3.10.2)
42
43
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.9.0)
44
- rspec-support (3.9.4)
45
- sys-uname (1.2.1)
46
- ffi (>= 1.0.0)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-support (3.10.2)
46
+ sys-uname (1.2.2)
47
+ ffi (~> 1.1)
47
48
  typhoeus (1.4.0)
48
49
  ethon (>= 0.9.0)
49
50
  vcr (3.0.3)
@@ -71,6 +71,12 @@ module DocuSign_eSign
71
71
  # The name of the Billing Plan.
72
72
  attr_accessor :plan_name
73
73
 
74
+ #
75
+ attr_accessor :plan_start_date
76
+
77
+ #
78
+ attr_accessor :renewal_date
79
+
74
80
  # The renewal status for the account. The acceptable values are: * auto: The account automatically renews. * queued_for_close: Account will be closed at the billingPeriodEndDate. * queued_for_downgrade: Account will be downgraded at the billingPeriodEndDate.
75
81
  attr_accessor :renewal_status
76
82
 
@@ -105,6 +111,8 @@ module DocuSign_eSign
105
111
  :'plan_feature_sets' => :'planFeatureSets',
106
112
  :'plan_id' => :'planId',
107
113
  :'plan_name' => :'planName',
114
+ :'plan_start_date' => :'planStartDate',
115
+ :'renewal_date' => :'renewalDate',
108
116
  :'renewal_status' => :'renewalStatus',
109
117
  :'seat_discounts' => :'seatDiscounts',
110
118
  :'support_incident_fee' => :'supportIncidentFee',
@@ -134,6 +142,8 @@ module DocuSign_eSign
134
142
  :'plan_feature_sets' => :'Array<FeatureSet>',
135
143
  :'plan_id' => :'String',
136
144
  :'plan_name' => :'String',
145
+ :'plan_start_date' => :'String',
146
+ :'renewal_date' => :'String',
137
147
  :'renewal_status' => :'String',
138
148
  :'seat_discounts' => :'Array<SeatDiscount>',
139
149
  :'support_incident_fee' => :'String',
@@ -229,6 +239,14 @@ module DocuSign_eSign
229
239
  self.plan_name = attributes[:'planName']
230
240
  end
231
241
 
242
+ if attributes.has_key?(:'planStartDate')
243
+ self.plan_start_date = attributes[:'planStartDate']
244
+ end
245
+
246
+ if attributes.has_key?(:'renewalDate')
247
+ self.renewal_date = attributes[:'renewalDate']
248
+ end
249
+
232
250
  if attributes.has_key?(:'renewalStatus')
233
251
  self.renewal_status = attributes[:'renewalStatus']
234
252
  end
@@ -285,6 +303,8 @@ module DocuSign_eSign
285
303
  plan_feature_sets == o.plan_feature_sets &&
286
304
  plan_id == o.plan_id &&
287
305
  plan_name == o.plan_name &&
306
+ plan_start_date == o.plan_start_date &&
307
+ renewal_date == o.renewal_date &&
288
308
  renewal_status == o.renewal_status &&
289
309
  seat_discounts == o.seat_discounts &&
290
310
  support_incident_fee == o.support_incident_fee &&
@@ -300,7 +320,7 @@ module DocuSign_eSign
300
320
  # Calculates hash code according to all attributes.
301
321
  # @return [Fixnum] Hash code
302
322
  def hash
303
- [add_ons, app_store_receipt_expiration_date, app_store_receipt_purchase_date, can_cancel_renewal, can_upgrade, currency_code, enable_support, included_seats, incremental_seats, is_downgrade, notification_type, other_discount_percent, payment_cycle, payment_method, per_seat_price, plan_classification, plan_feature_sets, plan_id, plan_name, renewal_status, seat_discounts, support_incident_fee, support_plan_fee].hash
323
+ [add_ons, app_store_receipt_expiration_date, app_store_receipt_purchase_date, can_cancel_renewal, can_upgrade, currency_code, enable_support, included_seats, incremental_seats, is_downgrade, notification_type, other_discount_percent, payment_cycle, payment_method, per_seat_price, plan_classification, plan_feature_sets, plan_id, plan_name, plan_start_date, renewal_date, renewal_status, seat_discounts, support_incident_fee, support_plan_fee].hash
304
324
  end
305
325
 
306
326
  # Builds the object from hash
@@ -22,7 +22,6 @@ module DocuSign_eSign
22
22
  #
23
23
  attr_accessor :form_data
24
24
 
25
- #
26
25
  attr_accessor :prefill_form_data
27
26
 
28
27
  #
@@ -53,7 +52,7 @@ module DocuSign_eSign
53
52
  :'email_subject' => :'String',
54
53
  :'envelope_id' => :'String',
55
54
  :'form_data' => :'Array<NameValue>',
56
- :'prefill_form_data' => :'Array<NameValue>',
55
+ :'prefill_form_data' => :'PrefillFormData',
57
56
  :'recipient_form_data' => :'Array<RecipientFormData>',
58
57
  :'sent_date_time' => :'String',
59
58
  :'status' => :'String'
@@ -83,9 +82,7 @@ module DocuSign_eSign
83
82
  end
84
83
 
85
84
  if attributes.has_key?(:'prefillFormData')
86
- if (value = attributes[:'prefillFormData']).is_a?(Array)
87
- self.prefill_form_data = value
88
- end
85
+ self.prefill_form_data = attributes[:'prefillFormData']
89
86
  end
90
87
 
91
88
  if attributes.has_key?(:'recipientFormData')
@@ -0,0 +1,186 @@
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
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 EnvelopeFormDataPrefillFormData
16
+ #
17
+ attr_accessor :form_data
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'form_data' => :'formData'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'form_data' => :'Array<NameValue>'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'formData')
42
+ if (value = attributes[:'formData']).is_a?(Array)
43
+ self.form_data = value
44
+ end
45
+ end
46
+ end
47
+
48
+ # Show invalid properties with the reasons. Usually used together with valid?
49
+ # @return Array for valid properties with the reasons
50
+ def list_invalid_properties
51
+ invalid_properties = Array.new
52
+ invalid_properties
53
+ end
54
+
55
+ # Check to see if the all the properties in the model are valid
56
+ # @return true if the model is valid
57
+ def valid?
58
+ true
59
+ end
60
+
61
+ # Checks equality by comparing each attribute.
62
+ # @param [Object] Object to be compared
63
+ def ==(o)
64
+ return true if self.equal?(o)
65
+ self.class == o.class &&
66
+ form_data == o.form_data
67
+ end
68
+
69
+ # @see the `==` method
70
+ # @param [Object] Object to be compared
71
+ def eql?(o)
72
+ self == o
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Fixnum] Hash code
77
+ def hash
78
+ [form_data].hash
79
+ end
80
+
81
+ # Builds the object from hash
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ # @return [Object] Returns the model itself
84
+ def build_from_hash(attributes)
85
+ return nil unless attributes.is_a?(Hash)
86
+ self.class.swagger_types.each_pair do |key, type|
87
+ if type =~ /\AArray<(.*)>/i
88
+ # check to ensure the input is an array given that the attribute
89
+ # is documented as an array but the input is not
90
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
92
+ end
93
+ elsif !attributes[self.class.attribute_map[key]].nil?
94
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
95
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
96
+ end
97
+
98
+ self
99
+ end
100
+
101
+ # Deserializes the data based on type
102
+ # @param string type Data type
103
+ # @param string value Value to be deserialized
104
+ # @return [Object] Deserialized data
105
+ def _deserialize(type, value)
106
+ case type.to_sym
107
+ when :DateTime
108
+ DateTime.parse(value)
109
+ when :Date
110
+ Date.parse(value)
111
+ when :String
112
+ value.to_s
113
+ when :Integer
114
+ value.to_i
115
+ when :Float
116
+ value.to_f
117
+ when :BOOLEAN
118
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
119
+ true
120
+ else
121
+ false
122
+ end
123
+ when :Object
124
+ # generic object (usually a Hash), return directly
125
+ value
126
+ when /\AArray<(?<inner_type>.+)>\z/
127
+ inner_type = Regexp.last_match[:inner_type]
128
+ value.map { |v| _deserialize(inner_type, v) }
129
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
130
+ k_type = Regexp.last_match[:k_type]
131
+ v_type = Regexp.last_match[:v_type]
132
+ {}.tap do |hash|
133
+ value.each do |k, v|
134
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
135
+ end
136
+ end
137
+ else # model
138
+ temp_model = DocuSign_eSign.const_get(type).new
139
+ temp_model.build_from_hash(value)
140
+ end
141
+ end
142
+
143
+ # Returns the string representation of the object
144
+ # @return [String] String presentation of the object
145
+ def to_s
146
+ to_hash.to_s
147
+ end
148
+
149
+ # to_body is an alias to to_hash (backward compatibility)
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_body
152
+ to_hash
153
+ end
154
+
155
+ # Returns the object in the form of hash
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_hash
158
+ hash = {}
159
+ self.class.attribute_map.each_pair do |attr, param|
160
+ value = self.send(attr)
161
+ next if value.nil?
162
+ hash[param] = _to_hash(value)
163
+ end
164
+ hash
165
+ end
166
+
167
+ # Outputs non-array value in the form of hash
168
+ # For object, use to_hash. Otherwise, just return the value
169
+ # @param [Object] value Any valid value
170
+ # @return [Hash] Returns the value in the form of hash
171
+ def _to_hash(value)
172
+ if value.is_a?(Array)
173
+ value.compact.map { |v| _to_hash(v) }
174
+ elsif value.is_a?(Hash)
175
+ {}.tap do |hash|
176
+ value.each { |k, v| hash[k] = _to_hash(v) }
177
+ end
178
+ elsif value.respond_to? :to_hash
179
+ value.to_hash
180
+ else
181
+ value
182
+ end
183
+ end
184
+
185
+ end
186
+ end
@@ -0,0 +1,216 @@
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
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 PrefillFormData
16
+ #
17
+ attr_accessor :form_data
18
+
19
+ #
20
+ attr_accessor :sender_email
21
+
22
+ #
23
+ attr_accessor :sender_name
24
+
25
+ #
26
+ attr_accessor :sender_user_id
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'form_data' => :'formData',
32
+ :'sender_email' => :'senderEmail',
33
+ :'sender_name' => :'senderName',
34
+ :'sender_user_id' => :'senderUserId'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'form_data' => :'Array<NameValue>',
42
+ :'sender_email' => :'String',
43
+ :'sender_name' => :'String',
44
+ :'sender_user_id' => :'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?(:'formData')
57
+ if (value = attributes[:'formData']).is_a?(Array)
58
+ self.form_data = value
59
+ end
60
+ end
61
+
62
+ if attributes.has_key?(:'senderEmail')
63
+ self.sender_email = attributes[:'senderEmail']
64
+ end
65
+
66
+ if attributes.has_key?(:'senderName')
67
+ self.sender_name = attributes[:'senderName']
68
+ end
69
+
70
+ if attributes.has_key?(:'senderUserId')
71
+ self.sender_user_id = attributes[:'senderUserId']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ form_data == o.form_data &&
94
+ sender_email == o.sender_email &&
95
+ sender_name == o.sender_name &&
96
+ sender_user_id == o.sender_user_id
97
+ end
98
+
99
+ # @see the `==` method
100
+ # @param [Object] Object to be compared
101
+ def eql?(o)
102
+ self == o
103
+ end
104
+
105
+ # Calculates hash code according to all attributes.
106
+ # @return [Fixnum] Hash code
107
+ def hash
108
+ [form_data, sender_email, sender_name, sender_user_id].hash
109
+ end
110
+
111
+ # Builds the object from hash
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ # @return [Object] Returns the model itself
114
+ def build_from_hash(attributes)
115
+ return nil unless attributes.is_a?(Hash)
116
+ self.class.swagger_types.each_pair do |key, type|
117
+ if type =~ /\AArray<(.*)>/i
118
+ # check to ensure the input is an array given that the attribute
119
+ # is documented as an array but the input is not
120
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
121
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
122
+ end
123
+ elsif !attributes[self.class.attribute_map[key]].nil?
124
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
125
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
126
+ end
127
+
128
+ self
129
+ end
130
+
131
+ # Deserializes the data based on type
132
+ # @param string type Data type
133
+ # @param string value Value to be deserialized
134
+ # @return [Object] Deserialized data
135
+ def _deserialize(type, value)
136
+ case type.to_sym
137
+ when :DateTime
138
+ DateTime.parse(value)
139
+ when :Date
140
+ Date.parse(value)
141
+ when :String
142
+ value.to_s
143
+ when :Integer
144
+ value.to_i
145
+ when :Float
146
+ value.to_f
147
+ when :BOOLEAN
148
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
+ true
150
+ else
151
+ false
152
+ end
153
+ when :Object
154
+ # generic object (usually a Hash), return directly
155
+ value
156
+ when /\AArray<(?<inner_type>.+)>\z/
157
+ inner_type = Regexp.last_match[:inner_type]
158
+ value.map { |v| _deserialize(inner_type, v) }
159
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
+ k_type = Regexp.last_match[:k_type]
161
+ v_type = Regexp.last_match[:v_type]
162
+ {}.tap do |hash|
163
+ value.each do |k, v|
164
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
+ end
166
+ end
167
+ else # model
168
+ temp_model = DocuSign_eSign.const_get(type).new
169
+ temp_model.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ # Returns the string representation of the object
174
+ # @return [String] String presentation of the object
175
+ def to_s
176
+ to_hash.to_s
177
+ end
178
+
179
+ # to_body is an alias to to_hash (backward compatibility)
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_body
182
+ to_hash
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ next if value.nil?
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+
215
+ end
216
+ end
@@ -13,12 +13,16 @@ require 'date'
13
13
 
14
14
  module DocuSign_eSign
15
15
  class RecipientProofFile
16
+ #
17
+ attr_accessor :has_identity_attempts
18
+
16
19
  #
17
20
  attr_accessor :is_in_proof_file
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
25
+ :'has_identity_attempts' => :'hasIdentityAttempts',
22
26
  :'is_in_proof_file' => :'isInProofFile'
23
27
  }
24
28
  end
@@ -26,6 +30,7 @@ module DocuSign_eSign
26
30
  # Attribute type mapping.
27
31
  def self.swagger_types
28
32
  {
33
+ :'has_identity_attempts' => :'String',
29
34
  :'is_in_proof_file' => :'String'
30
35
  }
31
36
  end
@@ -38,6 +43,10 @@ module DocuSign_eSign
38
43
  # convert string to symbol for hash key
39
44
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
45
 
46
+ if attributes.has_key?(:'hasIdentityAttempts')
47
+ self.has_identity_attempts = attributes[:'hasIdentityAttempts']
48
+ end
49
+
41
50
  if attributes.has_key?(:'isInProofFile')
42
51
  self.is_in_proof_file = attributes[:'isInProofFile']
43
52
  end
@@ -61,6 +70,7 @@ module DocuSign_eSign
61
70
  def ==(o)
62
71
  return true if self.equal?(o)
63
72
  self.class == o.class &&
73
+ has_identity_attempts == o.has_identity_attempts &&
64
74
  is_in_proof_file == o.is_in_proof_file
65
75
  end
66
76
 
@@ -73,7 +83,7 @@ module DocuSign_eSign
73
83
  # Calculates hash code according to all attributes.
74
84
  # @return [Fixnum] Hash code
75
85
  def hash
76
- [is_in_proof_file].hash
86
+ [has_identity_attempts, is_in_proof_file].hash
77
87
  end
78
88
 
79
89
  # Builds the object from hash
@@ -144,7 +144,7 @@ module DocuSign_eSign
144
144
  :'full_name_tabs' => :'Array<FullName>',
145
145
  :'initial_here_tabs' => :'Array<InitialHere>',
146
146
  :'last_name_tabs' => :'Array<LastName>',
147
- :'list_tabs' => :'Array<Array>',
147
+ :'list_tabs' => :'Array<List>',
148
148
  :'notarize_tabs' => :'Array<Notarize>',
149
149
  :'note_tabs' => :'Array<Note>',
150
150
  :'number_tabs' => :'Array<Number>',
@@ -144,7 +144,7 @@ module DocuSign_eSign
144
144
  :'full_name_tabs' => :'Array<FullName>',
145
145
  :'initial_here_tabs' => :'Array<InitialHere>',
146
146
  :'last_name_tabs' => :'Array<LastName>',
147
- :'list_tabs' => :'Array<Array>',
147
+ :'list_tabs' => :'Array<List>',
148
148
  :'notarize_tabs' => :'Array<Notarize>',
149
149
  :'note_tabs' => :'Array<Note>',
150
150
  :'number_tabs' => :'Array<Number>',
@@ -28,6 +28,11 @@ module DocuSign_eSign
28
28
 
29
29
  attr_accessor :can_manage_admins_metadata
30
30
 
31
+ #
32
+ attr_accessor :can_manage_document_retention
33
+
34
+ attr_accessor :can_manage_document_retention_metadata
35
+
31
36
  #
32
37
  attr_accessor :can_manage_envelope_transfer
33
38
 
@@ -72,6 +77,8 @@ module DocuSign_eSign
72
77
  :'can_manage_account_settings_metadata' => :'canManageAccountSettingsMetadata',
73
78
  :'can_manage_admins' => :'canManageAdmins',
74
79
  :'can_manage_admins_metadata' => :'canManageAdminsMetadata',
80
+ :'can_manage_document_retention' => :'canManageDocumentRetention',
81
+ :'can_manage_document_retention_metadata' => :'canManageDocumentRetentionMetadata',
75
82
  :'can_manage_envelope_transfer' => :'canManageEnvelopeTransfer',
76
83
  :'can_manage_envelope_transfer_metadata' => :'canManageEnvelopeTransferMetadata',
77
84
  :'can_manage_groups' => :'canManageGroups',
@@ -98,6 +105,8 @@ module DocuSign_eSign
98
105
  :'can_manage_account_settings_metadata' => :'SettingsMetadata',
99
106
  :'can_manage_admins' => :'String',
100
107
  :'can_manage_admins_metadata' => :'SettingsMetadata',
108
+ :'can_manage_document_retention' => :'String',
109
+ :'can_manage_document_retention_metadata' => :'SettingsMetadata',
101
110
  :'can_manage_envelope_transfer' => :'String',
102
111
  :'can_manage_envelope_transfer_metadata' => :'SettingsMetadata',
103
112
  :'can_manage_groups' => :'String',
@@ -147,6 +156,14 @@ module DocuSign_eSign
147
156
  self.can_manage_admins_metadata = attributes[:'canManageAdminsMetadata']
148
157
  end
149
158
 
159
+ if attributes.has_key?(:'canManageDocumentRetention')
160
+ self.can_manage_document_retention = attributes[:'canManageDocumentRetention']
161
+ end
162
+
163
+ if attributes.has_key?(:'canManageDocumentRetentionMetadata')
164
+ self.can_manage_document_retention_metadata = attributes[:'canManageDocumentRetentionMetadata']
165
+ end
166
+
150
167
  if attributes.has_key?(:'canManageEnvelopeTransfer')
151
168
  self.can_manage_envelope_transfer = attributes[:'canManageEnvelopeTransfer']
152
169
  end
@@ -228,6 +245,8 @@ module DocuSign_eSign
228
245
  can_manage_account_settings_metadata == o.can_manage_account_settings_metadata &&
229
246
  can_manage_admins == o.can_manage_admins &&
230
247
  can_manage_admins_metadata == o.can_manage_admins_metadata &&
248
+ can_manage_document_retention == o.can_manage_document_retention &&
249
+ can_manage_document_retention_metadata == o.can_manage_document_retention_metadata &&
231
250
  can_manage_envelope_transfer == o.can_manage_envelope_transfer &&
232
251
  can_manage_envelope_transfer_metadata == o.can_manage_envelope_transfer_metadata &&
233
252
  can_manage_groups == o.can_manage_groups &&
@@ -253,7 +272,7 @@ module DocuSign_eSign
253
272
  # Calculates hash code according to all attributes.
254
273
  # @return [Fixnum] Hash code
255
274
  def hash
256
- [can_manage_account_security_settings, can_manage_account_security_settings_metadata, can_manage_account_settings, can_manage_account_settings_metadata, can_manage_admins, can_manage_admins_metadata, can_manage_envelope_transfer, can_manage_envelope_transfer_metadata, can_manage_groups, can_manage_groups_metadata, can_manage_reporting, can_manage_reporting_metadata, can_manage_sharing, can_manage_sharing_metadata, can_manage_signing_groups, can_manage_signing_groups_metadata, can_manage_users, can_manage_users_metadata, can_view_users, can_view_users_metadata].hash
275
+ [can_manage_account_security_settings, can_manage_account_security_settings_metadata, can_manage_account_settings, can_manage_account_settings_metadata, can_manage_admins, can_manage_admins_metadata, can_manage_document_retention, can_manage_document_retention_metadata, can_manage_envelope_transfer, can_manage_envelope_transfer_metadata, can_manage_groups, can_manage_groups_metadata, can_manage_reporting, can_manage_reporting_metadata, can_manage_sharing, can_manage_sharing_metadata, can_manage_signing_groups, can_manage_signing_groups_metadata, can_manage_users, can_manage_users_metadata, can_view_users, can_view_users_metadata].hash
257
276
  end
258
277
 
259
278
  # 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_eSign
13
- VERSION = '2.10.0.rc1'
13
+ VERSION = '2.12.0.rc1'
14
14
  end
@@ -262,6 +262,7 @@ require 'docusign_esign/models/power_form_senders_response'
262
262
  require 'docusign_esign/models/power_forms_form_data_response'
263
263
  require 'docusign_esign/models/power_forms_request'
264
264
  require 'docusign_esign/models/power_forms_response'
265
+ require 'docusign_esign/models/prefill_form_data'
265
266
  require 'docusign_esign/models/property_metadata'
266
267
  require 'docusign_esign/models/province'
267
268
  require 'docusign_esign/models/provisioning_information'
data/tests/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- docusign_esign (2.10.0.rc1)
4
+ docusign_esign (3.11.0.rc1)
5
5
  addressable (~> 2.7, >= 2.7.0)
6
6
  json (~> 2.1, >= 2.1.0)
7
7
  jwt (~> 2.2, >= 2.2.1)
@@ -10,14 +10,14 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.7.0)
13
+ addressable (2.8.0)
14
14
  public_suffix (>= 2.0.2, < 5.0)
15
15
  diff-lcs (1.4.4)
16
- ethon (0.12.0)
17
- ffi (>= 1.3.0)
18
- ffi (1.13.1)
19
- json (2.3.1)
20
- jwt (2.2.2)
16
+ ethon (0.14.0)
17
+ ffi (>= 1.15.0)
18
+ ffi (1.15.3)
19
+ json (2.5.1)
20
+ jwt (2.2.3)
21
21
  public_suffix (4.0.6)
22
22
  rspec (3.9.0)
23
23
  rspec-core (~> 3.9.0)
@@ -307,6 +307,39 @@ describe 'DocuSign Ruby Client Tests' do
307
307
  end
308
308
  end
309
309
  end
310
+
311
+ context 'get form data' do
312
+ it 'successfully returns envelope form data' do
313
+ envelope_form_data = nil
314
+
315
+ if !$envelope_id.nil?
316
+ api_client = create_api_client()
317
+ envelopes_api = DocuSign_eSign::EnvelopesApi.new(api_client)
318
+
319
+ envelope_form_data = envelopes_api.get_form_data($account_id, $envelope_id)
320
+ end
321
+
322
+ expect(envelope_form_data).to be_truthy
323
+ if !envelope_form_data.nil?
324
+ expect(envelope_form_data.form_data).to be_truthy
325
+ if !envelope_form_data.form_data.nil?
326
+ expect(envelope_form_data.form_data).to be_truthy
327
+ # expect(envelope_form_data.form_data.length).to be > 0
328
+ # if envelope_form_data.form_data.length > 0
329
+ # expect(envelope_form_data.form_data[0].name).to be_truthy
330
+ # expect(envelope_form_data.prefill_form_data).to be_truthy
331
+ # if !envelope_form_data.prefill_form_data.nil?
332
+ # expect(envelope_form_data.prefill_form_data.form_data).to be_truthy
333
+ # expect(envelope_form_data.prefill_form_data.form_data.length).to be > 0
334
+ # if envelope_form_data.prefill_form_data.form_data.length > 0
335
+ # expect(envelope_form_data.prefill_form_data.form_data[0].name).to be_truthy
336
+ # end
337
+ # end
338
+ # end
339
+ end
340
+ end
341
+ end
342
+ end
310
343
  end
311
344
 
312
345
  describe '.list' do
@@ -423,5 +456,30 @@ describe 'DocuSign Ruby Client Tests' do
423
456
  end
424
457
  end
425
458
  end
459
+
460
+ context 'list tabs' do
461
+ it 'successfully lists envelope tabs' do
462
+ envelope_summary = nil
463
+
464
+ if !$envelope_id.nil?
465
+ api_client = create_api_client()
466
+ envelopes_api = DocuSign_eSign::EnvelopesApi.new(api_client)
467
+
468
+ options = DocuSign_eSign::GetEnvelopeOptions.new
469
+
470
+ envelope_summary = envelopes_api.get_envelope($account_id, $envelope_id, options)
471
+
472
+ options = DocuSign_eSign::ListRecipientsOptions.new
473
+
474
+ recipients = envelopes_api.list_recipients($account_id, $envelope_id, options)
475
+
476
+ tabs = envelopes_api.list_tabs($account_id, $envelope_id, recipients.signers[0].recipient_id)
477
+
478
+ sign_here_tabs = tabs.sign_here_tabs
479
+
480
+ expect(sign_here_tabs).to be_truthy
481
+ end
482
+ end
483
+ end
426
484
  end
427
485
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docusign_esign
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0.rc1
4
+ version: 2.12.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocuSign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-20 00:00:00.000000000 Z
11
+ date: 2021-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -471,6 +471,7 @@ files:
471
471
  - lib/docusign_esign/models/envelope_documents_result.rb
472
472
  - lib/docusign_esign/models/envelope_event.rb
473
473
  - lib/docusign_esign/models/envelope_form_data.rb
474
+ - lib/docusign_esign/models/envelope_form_data_prefill_form_data.rb
474
475
  - lib/docusign_esign/models/envelope_id.rb
475
476
  - lib/docusign_esign/models/envelope_ids_request.rb
476
477
  - lib/docusign_esign/models/envelope_notification_request.rb
@@ -566,6 +567,7 @@ files:
566
567
  - lib/docusign_esign/models/power_forms_form_data_response.rb
567
568
  - lib/docusign_esign/models/power_forms_request.rb
568
569
  - lib/docusign_esign/models/power_forms_response.rb
570
+ - lib/docusign_esign/models/prefill_form_data.rb
569
571
  - lib/docusign_esign/models/property_metadata.rb
570
572
  - lib/docusign_esign/models/province.rb
571
573
  - lib/docusign_esign/models/provisioning_information.rb