docusign_click 1.0.0.beta2 → 1.0.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: e5fcdfc73632bb0d54d030d729b220c0a5addcdfc2ce9a5e3ca11370eb3dc132
4
- data.tar.gz: f015679476886887254fd624f3ac8721cc8dac0fb0388f92da17be9093ddb6b5
3
+ metadata.gz: f48d454cf4330ef6790b64b906eb50944b1dc30174a1141e01e5b101f36a5f19
4
+ data.tar.gz: bd278a8496562b34f1c3a2a513487040fb9deb0a36df331e747072eff969d554
5
5
  SHA512:
6
- metadata.gz: 44a7a6d3c1251c8521ae64c5199291ae4eab384a3c153a95c0cf32f80da7466d0a34a926b4caa81edee6d49624bb4d3642a3b5c071b152693cff1d19320df1b4
7
- data.tar.gz: 83599ce70b3ccd5f3e7817293b61eea7ee923d91f866a8e95ffd9a6d9e7df141e9d54650a5d2eb519b1fa3dab5c8aeda1744563f63f4dc02debf71622a25cd80
6
+ metadata.gz: 2fe9ac47e0f0eb36e7575111d555a6391479ded740695e706e7e78d9f46181893b7ffbac71970bc0901aedc6611829c8a65c78f927af1a52d8dd534319236993
7
+ data.tar.gz: 811da097324cb4d97f7e35cd4fc429e4c83532001b8486bf300c6364281fab3c7c0cb11af038908d0ea4fa4b280389d3bc27bb07d0b11ac888e10da1bf8d6f2e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # DocuSign Click Ruby Client Changelog
2
2
  See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
3
3
 
4
+ ## [v1.0.0] - DocuSign Click API v1 - 02/11/2021
5
+ ### Changed
6
+ - First GA version of Click API, supports DocuSign Click v1-20.4.02.
7
+
4
8
  ## [v1.0.0.beta] - Click API v1-20.3.02 - 2020-12-17
5
9
  ### Changed
6
- - First BETA version of Click API
10
+ - First BETA version of Click API
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2017- DocuSign, Inc. (https://www.docusign.com)
3
+ Copyright (c) 2020- DocuSign, Inc. (https://www.docusign.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # The Official DocuSign Ruby Client
1
+ # The Official DocuSign Click Ruby Client
2
2
 
3
3
  [![RubyGems version][rubygems-image]][rubygems-url]
4
4
  [![RubyGems downloads][downloads-image]][downloads-url]
@@ -77,4 +77,4 @@ The DocuSign Ruby Client is licensed under the [MIT License](https://github.com/
77
77
  * [DocuSign Developer Center](https://developers.docusign.com)
78
78
  * [DocuSign API on Twitter](https://twitter.com/docusignapi)
79
79
  * [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
80
- * [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
80
+ * [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
Binary file
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.required_ruby_version = ">= 1.9"
28
28
 
29
29
  s.add_runtime_dependency 'jwt', '~> 2.2', '>= 2.2.1'
30
+ s.add_runtime_dependency 'addressable', '~> 2.7', '>= 2.7.0'
30
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
32
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
33
 
@@ -113,6 +113,9 @@ module DocuSign_Click
113
113
  #
114
114
  attr_accessor :page_number
115
115
 
116
+ #
117
+ attr_accessor :shared
118
+
116
119
  #
117
120
  attr_accessor :status
118
121
 
@@ -762,19 +765,15 @@ module DocuSign_Click
762
765
  fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_clickwrap_agreements" if account_id.nil?
763
766
  # verify the required parameter 'clickwrap_id' is set
764
767
  fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_agreements" if clickwrap_id.nil?
765
- # verify the required parameter 'client_user_id' is set
766
- fail ArgumentError, "Missing the required parameter 'client_user_id' when calling AccountsApi.get_clickwrap_agreements" if (options.nil? or options.client_user_id.nil?)
767
- # verify the required parameter 'status' is set
768
- fail ArgumentError, "Missing the required parameter 'status' when calling AccountsApi.get_clickwrap_agreements" if (options.nil? or options.status.nil?)
769
768
  # resource path
770
769
  local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/users".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s)
771
770
 
772
771
  # query parameters
773
772
  query_params = {}
774
- query_params[:'client_user_id'] = options.client_user_id
775
- query_params[:'status'] = options.status
773
+ query_params[:'client_user_id'] = options.client_user_id if !options.client_user_id.nil?
776
774
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
777
775
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
776
+ query_params[:'status'] = options.status if !options.status.nil?
778
777
  query_params[:'to_date'] = options.to_date if !options.to_date.nil?
779
778
 
780
779
  # header parameters
@@ -887,14 +886,12 @@ module DocuSign_Click
887
886
  fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_version_agreements" if clickwrap_id.nil?
888
887
  # verify the required parameter 'version_id' is set
889
888
  fail ArgumentError, "Missing the required parameter 'version_id' when calling AccountsApi.get_clickwrap_version_agreements" if version_id.nil?
890
- # verify the required parameter 'client_user_id' is set
891
- fail ArgumentError, "Missing the required parameter 'client_user_id' when calling AccountsApi.get_clickwrap_version_agreements" if (options.nil? or options.client_user_id.nil?)
892
889
  # resource path
893
890
  local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionId}/users".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
894
891
 
895
892
  # query parameters
896
893
  query_params = {}
897
- query_params[:'client_user_id'] = options.client_user_id
894
+ query_params[:'client_user_id'] = options.client_user_id if !options.client_user_id.nil?
898
895
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
899
896
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
900
897
  query_params[:'status'] = options.status if !options.status.nil?
@@ -953,14 +950,12 @@ module DocuSign_Click
953
950
  fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if clickwrap_id.nil?
954
951
  # verify the required parameter 'version_number' is set
955
952
  fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if version_number.nil?
956
- # verify the required parameter 'client_user_id' is set
957
- fail ArgumentError, "Missing the required parameter 'client_user_id' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if (options.nil? or options.client_user_id.nil?)
958
953
  # resource path
959
954
  local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionNumber}/users".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'versionNumber' + '}', version_number.to_s)
960
955
 
961
956
  # query parameters
962
957
  query_params = {}
963
- query_params[:'client_user_id'] = options.client_user_id
958
+ query_params[:'client_user_id'] = options.client_user_id if !options.client_user_id.nil?
964
959
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
965
960
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
966
961
  query_params[:'status'] = options.status if !options.status.nil?
@@ -1129,6 +1124,7 @@ module DocuSign_Click
1129
1124
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
1130
1125
  query_params[:'ownerUserId'] = options.owner_user_id if !options.owner_user_id.nil?
1131
1126
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
1127
+ query_params[:'shared'] = options.shared if !options.shared.nil?
1132
1128
  query_params[:'status'] = options.status if !options.status.nil?
1133
1129
  query_params[:'to_date'] = options.to_date if !options.to_date.nil?
1134
1130
 
@@ -16,6 +16,7 @@ require 'tempfile'
16
16
  require 'typhoeus'
17
17
  require 'uri'
18
18
  require 'jwt'
19
+ require 'addressable/uri'
19
20
 
20
21
  module DocuSign_Click
21
22
  class ApiClient
@@ -259,8 +260,8 @@ module DocuSign_Click
259
260
  def build_request_url(path, opts)
260
261
  # Add leading and trailing slashes to path
261
262
  path = "/#{path}".gsub(/\/+/, '/')
262
- return URI.encode("https://" + self.get_oauth_base_path + path) if opts[:oauth]
263
- URI.encode(@config.base_url + path)
263
+ return Addressable::URI.encode("https://" + self.get_oauth_base_path + path) if opts[:oauth]
264
+ Addressable::URI.encode(@config.base_url + path)
264
265
  end
265
266
 
266
267
  # Builds the HTTP request body
@@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  =end
11
11
 
12
12
  require 'uri'
13
+ require 'addressable/uri'
13
14
 
14
15
  module DocuSign_Click
15
16
  class Configuration
@@ -168,7 +169,7 @@ module DocuSign_Click
168
169
 
169
170
  def base_url
170
171
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
171
- URI.encode(url)
172
+ Addressable::URI.encode(url)
172
173
  end
173
174
 
174
175
  # Gets API key (with prefix if set).
@@ -25,7 +25,10 @@ module DocuSign_Click
25
25
  attr_accessor :fields_to_null
26
26
 
27
27
  #
28
- attr_accessor :is_majorversion
28
+ attr_accessor :is_major_version
29
+
30
+ #
31
+ attr_accessor :is_shared
29
32
 
30
33
  #
31
34
  attr_accessor :name
@@ -54,7 +57,8 @@ module DocuSign_Click
54
57
  :'display_settings' => :'displaySettings',
55
58
  :'documents' => :'documents',
56
59
  :'fields_to_null' => :'fieldsToNull',
57
- :'is_majorversion' => :'isMajorversion',
60
+ :'is_major_version' => :'isMajorVersion',
61
+ :'is_shared' => :'isShared',
58
62
  :'name' => :'name',
59
63
  :'require_reacceptance' => :'requireReacceptance',
60
64
  :'scheduled_date' => :'scheduledDate',
@@ -72,7 +76,8 @@ module DocuSign_Click
72
76
  :'display_settings' => :'DisplaySettings',
73
77
  :'documents' => :'Array<Document>',
74
78
  :'fields_to_null' => :'String',
75
- :'is_majorversion' => :'BOOLEAN',
79
+ :'is_major_version' => :'BOOLEAN',
80
+ :'is_shared' => :'BOOLEAN',
76
81
  :'name' => :'String',
77
82
  :'require_reacceptance' => :'BOOLEAN',
78
83
  :'scheduled_date' => :'Object',
@@ -109,8 +114,12 @@ module DocuSign_Click
109
114
  self.fields_to_null = attributes[:'fieldsToNull']
110
115
  end
111
116
 
112
- if attributes.has_key?(:'isMajorversion')
113
- self.is_majorversion = attributes[:'isMajorversion']
117
+ if attributes.has_key?(:'isMajorVersion')
118
+ self.is_major_version = attributes[:'isMajorVersion']
119
+ end
120
+
121
+ if attributes.has_key?(:'isShared')
122
+ self.is_shared = attributes[:'isShared']
114
123
  end
115
124
 
116
125
  if attributes.has_key?(:'name')
@@ -164,7 +173,8 @@ module DocuSign_Click
164
173
  display_settings == o.display_settings &&
165
174
  documents == o.documents &&
166
175
  fields_to_null == o.fields_to_null &&
167
- is_majorversion == o.is_majorversion &&
176
+ is_major_version == o.is_major_version &&
177
+ is_shared == o.is_shared &&
168
178
  name == o.name &&
169
179
  require_reacceptance == o.require_reacceptance &&
170
180
  scheduled_date == o.scheduled_date &&
@@ -183,7 +193,7 @@ module DocuSign_Click
183
193
  # Calculates hash code according to all attributes.
184
194
  # @return [Fixnum] Hash code
185
195
  def hash
186
- [clickwrap_name, display_settings, documents, fields_to_null, is_majorversion, name, require_reacceptance, scheduled_date, scheduled_reacceptance, status, transfer_from_user_id, transfer_to_user_id].hash
196
+ [clickwrap_name, display_settings, documents, fields_to_null, is_major_version, is_shared, name, require_reacceptance, scheduled_date, scheduled_reacceptance, status, transfer_from_user_id, transfer_to_user_id].hash
187
197
  end
188
198
 
189
199
  # 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.0.0.beta2'
13
+ VERSION = '1.0.0'
14
14
  end
@@ -1,6 +1,7 @@
1
1
  require 'docusign_click'
2
2
  require 'base64'
3
3
  require 'uri'
4
+ require 'addressable/uri'
4
5
 
5
6
  describe 'DocuSign Ruby Client Tests' do
6
7
  def login
@@ -32,7 +33,7 @@ describe 'DocuSign Ruby Client Tests' do
32
33
  $account_id = account.account_id
33
34
 
34
35
  # IMPORTANT: Use the base url from the login account to instantiant the api_client
35
- base_uri = URI.parse($base_uri)
36
+ base_uri = Addressable::URI.parse($base_uri)
36
37
  $api_client.set_base_path( "%s://%s/clickapi" % [base_uri.scheme, base_uri.host])
37
38
 
38
39
  return account
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docusign_click
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocuSign
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-17 00:00:00.000000000 Z
11
+ date: 2021-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -30,6 +30,26 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.2.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: addressable
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 2.7.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '2.7'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.7.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.7'
33
53
  - !ruby/object:Gem::Dependency
34
54
  name: typhoeus
35
55
  requirement: !ruby/object:Gem::Requirement
@@ -226,6 +246,7 @@ files:
226
246
  - README.md
227
247
  - Rakefile
228
248
  - docusign_click-1.0.0.beta.gem
249
+ - docusign_click-1.0.0.beta2.gem
229
250
  - docusign_click-1.0.0.pre.alpha.gem
230
251
  - docusign_click-1.0.0.rc1.gem
231
252
  - docusign_click.gemspec
@@ -287,9 +308,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
287
308
  version: '1.9'
288
309
  required_rubygems_version: !ruby/object:Gem::Requirement
289
310
  requirements:
290
- - - ">"
311
+ - - ">="
291
312
  - !ruby/object:Gem::Version
292
- version: 1.3.1
313
+ version: '0'
293
314
  requirements: []
294
315
  rubygems_version: 3.0.3
295
316
  signing_key: