docusign_esign 2.10.0.rc1 → 2.10.0

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: c8c8527868947d076f350d3452425555d53984b8c6f8d0badde3d1596e3fd82e
4
+ data.tar.gz: b29aa96d9e52b49d23c325ef48f864757d7380137a4024a616430f7897006579
5
5
  SHA512:
6
- metadata.gz: b99c61b0893b0f605306bdfcd007caf3f7f972538c196a1785dc8a5a831a1ec75e573bd48b9cdf62e025698afb2699dd0f9c3be61ca16ad09a7611db37669c47
7
- data.tar.gz: d32464dc78643b8050b8a0b66916233ff85e0b69a922ebd3b9bd46171c03968d082bc281df1835dd4d60ea8a4c80f6fc15ff7220e0e17f513aac92277b830827
6
+ metadata.gz: 312110d5cbde42550cc776c6821b1aa4bdc4ba55c0db443c350145aa2e88b5c6ceb1f5d2d9d6241da27c56a11211cd360e3ea79f0178e80ab349efd1764b3b93
7
+ data.tar.gz: 318c36b5560b2f200c2936a47c85ce9eea4c3d8ccf165b06c5e37120b571bddf829ec2268adc583e5fd9e8b4acba24970fec20856d7d06c07647a32e3f6a5888
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)
Binary file
Binary file
@@ -167,6 +167,7 @@ require 'docusign_esign/models/envelope_document'
167
167
  require 'docusign_esign/models/envelope_documents_result'
168
168
  require 'docusign_esign/models/envelope_event'
169
169
  require 'docusign_esign/models/envelope_form_data'
170
+ require 'docusign_esign/models/envelope_form_data_prefill_form_data'
170
171
  require 'docusign_esign/models/envelope_id'
171
172
  require 'docusign_esign/models/envelope_ids_request'
172
173
  require 'docusign_esign/models/envelope_notification_request'
@@ -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' => :'EnvelopeFormDataPrefillFormData',
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
@@ -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>',
@@ -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.10.0'
14
14
  end
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 (2.10.0)
5
5
  addressable (~> 2.7, >= 2.7.0)
6
6
  json (~> 2.1, >= 2.1.0)
7
7
  jwt (~> 2.2, >= 2.2.1)
@@ -13,11 +13,11 @@ GEM
13
13
  addressable (2.7.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.1)
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.10.0
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-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -285,6 +285,8 @@ files:
285
285
  - LICENSE
286
286
  - README.md
287
287
  - Rakefile
288
+ - docusign_esign-2.10.0.rc1.gem
289
+ - docusign_esign-3.10.0.rc1.gem
288
290
  - docusign_esign.gemspec
289
291
  - git_push.sh
290
292
  - lib/docusign_esign.rb
@@ -471,6 +473,7 @@ files:
471
473
  - lib/docusign_esign/models/envelope_documents_result.rb
472
474
  - lib/docusign_esign/models/envelope_event.rb
473
475
  - lib/docusign_esign/models/envelope_form_data.rb
476
+ - lib/docusign_esign/models/envelope_form_data_prefill_form_data.rb
474
477
  - lib/docusign_esign/models/envelope_id.rb
475
478
  - lib/docusign_esign/models/envelope_ids_request.rb
476
479
  - lib/docusign_esign/models/envelope_notification_request.rb
@@ -709,9 +712,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
709
712
  version: '1.9'
710
713
  required_rubygems_version: !ruby/object:Gem::Requirement
711
714
  requirements:
712
- - - ">"
715
+ - - ">="
713
716
  - !ruby/object:Gem::Version
714
- version: 1.3.1
717
+ version: '0'
715
718
  requirements: []
716
719
  rubygems_version: 3.0.3
717
720
  signing_key: