docusign_esign 2.8.0.rc1 → 2.9.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -40
- data/docusign_esign-3.9.0.rc1.gem +0 -0
- data/lib/docusign_esign.rb +1 -1
- data/lib/docusign_esign/api/accounts_api.rb +49 -0
- data/lib/docusign_esign/api/connect_api.rb +1 -54
- data/lib/docusign_esign/api/signature_api.rb +256 -0
- data/lib/docusign_esign/models/account_billing_plan.rb +21 -1
- data/lib/docusign_esign/version.rb +1 -1
- data/tests/Gemfile.lock +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d12b55a013f8eecc1dfe66056be3537d3cf2ffd223e18eca83f77faca71b8984
|
4
|
+
data.tar.gz: 0ade0920ce89bdcb159928f79459e785037ea5b5e4da97f3ed7165077bc30f8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1f63cb8ca96f73640f44dfd8ae9b1a58cc8efbf6eb1cfd069738910bc83bfefb3b4b4bfcbfe82227c35b1702d478911ba4837601c1cbb974189a60a51475e2d
|
7
|
+
data.tar.gz: 789f1e7e2d5bbfe1ebc4a3eff1073284ca5a9cbc41c4f0c4d5b5940f3c8369adf4c185b5873948e4091b857dce01df489c3a4e77339843d83dbb760f964a14a5
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# The Official DocuSign Ruby Client
|
1
|
+
# The Official DocuSign eSignature Ruby Client SDK
|
2
2
|
|
3
3
|
[![RubyGems version][rubygems-image]][rubygems-url]
|
4
4
|
[![RubyGems downloads][downloads-image]][downloads-url]
|
@@ -13,66 +13,48 @@
|
|
13
13
|
|
14
14
|
- Ruby 1.9+
|
15
15
|
|
16
|
-
## Note
|
17
|
-
|
18
|
-
This open-source SDK is provided for cases where you would like to make additional changes that the SDK does not provide out-of-the-box. If you simply want to use the SDK with any of the examples shown in the [Developer Center](https://developers.docusign.com/esign-rest-api/code-examples), follow the installation instructions below.
|
19
|
-
|
20
16
|
## Installation
|
17
|
+
This SDK is provided as open source, which enables you to customize its functionality to suit your particular use case. To do so, download or clone the repository. If the SDK’s given functionality meets your integration needs, or if you’re working through our [code examples](https://developers.docusign.com/docs/esign-rest-api/how-to/) from the [DocuSign Developer Center](https://developers.docusign.com/), you merely need to install it by following the instructions below.
|
21
18
|
|
22
|
-
###
|
23
|
-
|
24
|
-
|
25
|
-
**gem 'docusign_esign'**
|
19
|
+
### Installation via your application's Gemfile:
|
20
|
+
1. In your application's Gemfile, add:
|
21
|
+
`gem 'docusign_esign'`
|
26
22
|
2. Open your preferred console.
|
27
|
-
3. In your project directory, execute the installer by typing:
|
28
|
-
**bundle install**
|
29
|
-
|
30
|
-
### Manual install:
|
23
|
+
3. In your project directory, execute the installer by typing: **bundle install**
|
31
24
|
|
25
|
+
### Manual installation:
|
32
26
|
1. Open your preferred console.
|
33
|
-
2. In the console, type:
|
34
|
-
**gem install docusign_esign**
|
27
|
+
2. In the console, type: **gem install docusign_esign**
|
35
28
|
|
36
29
|
### Dependencies
|
37
|
-
|
38
30
|
This client has the following external dependencies:
|
31
|
+
* Jwt>=1.5.2
|
32
|
+
* Json>=2.1.0
|
33
|
+
* Typhoeus>=1.0.1
|
39
34
|
|
40
|
-
|
41
|
-
-
|
42
|
-
- Typhoeus>=1.0.1
|
43
|
-
|
44
|
-
## Code Examples
|
45
|
-
|
46
|
-
### Launchers
|
35
|
+
## Code examples
|
36
|
+
You can find on our GitHub a self-executing package of code examples for the eSignature C# SDK, called a [Launcher](https://github.com/docusign/code-examples-ruby/blob/master/README.md), that demonstrates common use cases. You can also download a version preconfigured for your DocuSign developer account from [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/). These examples can use either the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) or [JSON Web Token (JWT)](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) authentication workflows.
|
47
37
|
|
48
|
-
|
49
|
-
|
50
|
-
### Proof-of-concept applications
|
51
|
-
|
52
|
-
If your goal is to create a proof-of-concept application, DocuSign provides a set of [Quick Start](https://github.com/docusign/qs-ruby) examples. The Quick Start examples are meant to be used with DocuSign's [OAuth Token Generator](https://developers.docusign.com/oauth-token-generator), which will allow you to generate tokens for the Demo/Sandbox environment only. These tokens last for eight hours and will enable you to build your proof-of-concept application without the need to fully implement an OAuth solution.
|
53
|
-
|
54
|
-
## OAuth Implementations
|
55
|
-
|
56
|
-
For details regarding which type of OAuth grant will work best for your DocuSign integration, see the [REST API Authentication Overview](https://developers.docusign.com/esign-rest-api/guides/authentication) guide located on the [DocuSign Developer Center](https://developers.docusign.com/esign-rest-api/guides/authentication).
|
38
|
+
## OAuth implementations
|
39
|
+
For details regarding which type of OAuth grant will work best for your DocuSign integration, see [Choose OAuth Type](https://developers.docusign.com/platform/auth/choose/) in the [DocuSign Developer Center](https://developers.docusign.com/).
|
57
40
|
|
58
41
|
For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
|
59
42
|
|
60
|
-
There are other use-case scenarios, such as **single-page applications** (SPA) that use **Cross-Origin Resource Sharing** (CORS), or where there may not be a user to interact with your Service Account. For these use cases, DocuSign also supports [JWT](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) and [Implicit](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-implicit) grants. For code examples, see the links below:
|
61
|
-
|
62
|
-
- [JWT (JSON Web Token)](https://github.com/docusign/eg-03-ruby-auth-code-grant)
|
63
|
-
- Implicit Grant (coming soon)
|
64
|
-
|
65
43
|
## Support
|
66
|
-
|
67
44
|
Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
|
68
45
|
|
69
46
|
## License
|
47
|
+
The DocuSign eSignature Ruby Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-ruby-client/blob/master/LICENSE).
|
70
48
|
|
71
|
-
|
49
|
+
### Additional resources
|
50
|
+
* [DocuSign Developer Center](https://developers.docusign.com/)
|
51
|
+
* [DocuSign API on Twitter](https://twitter.com/docusignapi)
|
52
|
+
* [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
|
53
|
+
* [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
|
72
54
|
|
73
55
|
[rubygems-image]: https://img.shields.io/gem/v/docusign_esign.svg?style=flat
|
74
56
|
[rubygems-url]: https://rubygems.org/gems/docusign_esign
|
75
57
|
[downloads-image]: https://img.shields.io/gem/dt/docusign_esign.svg?style=flat
|
76
58
|
[downloads-url]: https://rubygems.org/gems/docusign_esign
|
77
59
|
[travis-image]: https://img.shields.io/travis/docusign/docusign-ruby-client.svg?style=flat
|
78
|
-
[travis-url]: https://travis-ci.org/docusign/docusign-ruby-client
|
60
|
+
[travis-url]: https://travis-ci.org/docusign/docusign-ruby-client
|
Binary file
|
data/lib/docusign_esign.rb
CHANGED
@@ -403,9 +403,9 @@ require 'docusign_esign/api/groups_api'
|
|
403
403
|
require 'docusign_esign/api/notary_api'
|
404
404
|
require 'docusign_esign/api/organizations_api'
|
405
405
|
require 'docusign_esign/api/power_forms_api'
|
406
|
+
require 'docusign_esign/api/signature_api'
|
406
407
|
require 'docusign_esign/api/signing_groups_api'
|
407
408
|
require 'docusign_esign/api/templates_api'
|
408
|
-
require 'docusign_esign/api/trust_service_providers_api'
|
409
409
|
require 'docusign_esign/api/users_api'
|
410
410
|
require 'docusign_esign/api/workspaces_api'
|
411
411
|
|
@@ -1785,6 +1785,55 @@ module DocuSign_eSign
|
|
1785
1785
|
return data, status_code, headers
|
1786
1786
|
end
|
1787
1787
|
|
1788
|
+
# Returns Account available seals for specified account.
|
1789
|
+
#
|
1790
|
+
# @param account_id The external account number (int) or account ID Guid.
|
1791
|
+
# @return [AccountSeals]
|
1792
|
+
def get_seal_providers(account_id)
|
1793
|
+
data, _status_code, _headers = get_seal_providers_with_http_info(account_id)
|
1794
|
+
return data
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
# Returns Account available seals for specified account.
|
1798
|
+
#
|
1799
|
+
# @param account_id The external account number (int) or account ID Guid.
|
1800
|
+
# @return [Array<(AccountSeals, Fixnum, Hash)>] AccountSeals data, response status code and response headers
|
1801
|
+
def get_seal_providers_with_http_info(account_id)
|
1802
|
+
if @api_client.config.debugging
|
1803
|
+
@api_client.config.logger.debug "Calling API: AccountsApi.get_seal_providers ..."
|
1804
|
+
end
|
1805
|
+
# verify the required parameter 'account_id' is set
|
1806
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_seal_providers" if account_id.nil?
|
1807
|
+
# resource path
|
1808
|
+
local_var_path = "/v2/accounts/{accountId}/seals".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
|
1809
|
+
|
1810
|
+
# query parameters
|
1811
|
+
query_params = {}
|
1812
|
+
|
1813
|
+
# header parameters
|
1814
|
+
header_params = {}
|
1815
|
+
# HTTP header 'Accept' (if needed)
|
1816
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1817
|
+
|
1818
|
+
# form parameters
|
1819
|
+
form_params = {}
|
1820
|
+
|
1821
|
+
# http body (model)
|
1822
|
+
post_body = nil
|
1823
|
+
auth_names = []
|
1824
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1825
|
+
:header_params => header_params,
|
1826
|
+
:query_params => query_params,
|
1827
|
+
:form_params => form_params,
|
1828
|
+
:body => post_body,
|
1829
|
+
:auth_names => auth_names,
|
1830
|
+
:return_type => 'AccountSeals')
|
1831
|
+
if @api_client.config.debugging
|
1832
|
+
@api_client.config.logger.debug "API called: AccountsApi#get_seal_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1833
|
+
end
|
1834
|
+
return data, status_code, headers
|
1835
|
+
end
|
1836
|
+
|
1788
1837
|
# Gets list of supported languages for recipient language setting.
|
1789
1838
|
#
|
1790
1839
|
# @param account_id The external account number (int) or account ID Guid.
|
@@ -253,7 +253,7 @@ module DocuSign_eSign
|
|
253
253
|
# verify the required parameter 'key_id' is set
|
254
254
|
fail ArgumentError, "Missing the required parameter 'key_id' when calling ConnectApi.delete_connect_secret" if key_id.nil?
|
255
255
|
# resource path
|
256
|
-
local_var_path = "/v2/accounts/{accountId}/connect/secret/{keyId}
|
256
|
+
local_var_path = "/v2/accounts/{accountId}/connect/secret/{keyId}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
|
257
257
|
|
258
258
|
# query parameters
|
259
259
|
query_params = {}
|
@@ -893,59 +893,6 @@ module DocuSign_eSign
|
|
893
893
|
return data, status_code, headers
|
894
894
|
end
|
895
895
|
|
896
|
-
# Test connect configuration.
|
897
|
-
#
|
898
|
-
# @param account_id The external account number (int) or account ID Guid.
|
899
|
-
# @param connect_id The ID of the custom Connect configuration being accessed.
|
900
|
-
# @return [ResourceInformation]
|
901
|
-
def list_tests(account_id, connect_id)
|
902
|
-
data, _status_code, _headers = list_tests_with_http_info(account_id, connect_id)
|
903
|
-
return data
|
904
|
-
end
|
905
|
-
|
906
|
-
# Test connect configuration.
|
907
|
-
#
|
908
|
-
# @param account_id The external account number (int) or account ID Guid.
|
909
|
-
# @param connect_id The ID of the custom Connect configuration being accessed.
|
910
|
-
# @return [Array<(ResourceInformation, Fixnum, Hash)>] ResourceInformation data, response status code and response headers
|
911
|
-
def list_tests_with_http_info(account_id, connect_id)
|
912
|
-
if @api_client.config.debugging
|
913
|
-
@api_client.config.logger.debug "Calling API: ConnectApi.list_tests ..."
|
914
|
-
end
|
915
|
-
# verify the required parameter 'account_id' is set
|
916
|
-
fail ArgumentError, "Missing the required parameter 'account_id' when calling ConnectApi.list_tests" if account_id.nil?
|
917
|
-
# verify the required parameter 'connect_id' is set
|
918
|
-
fail ArgumentError, "Missing the required parameter 'connect_id' when calling ConnectApi.list_tests" if connect_id.nil?
|
919
|
-
# resource path
|
920
|
-
local_var_path = "/v2/accounts/{accountId}/connect/{connectId}/tests".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'connectId' + '}', connect_id.to_s)
|
921
|
-
|
922
|
-
# query parameters
|
923
|
-
query_params = {}
|
924
|
-
|
925
|
-
# header parameters
|
926
|
-
header_params = {}
|
927
|
-
# HTTP header 'Accept' (if needed)
|
928
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
929
|
-
|
930
|
-
# form parameters
|
931
|
-
form_params = {}
|
932
|
-
|
933
|
-
# http body (model)
|
934
|
-
post_body = nil
|
935
|
-
auth_names = []
|
936
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
937
|
-
:header_params => header_params,
|
938
|
-
:query_params => query_params,
|
939
|
-
:form_params => form_params,
|
940
|
-
:body => post_body,
|
941
|
-
:auth_names => auth_names,
|
942
|
-
:return_type => 'ResourceInformation')
|
943
|
-
if @api_client.config.debugging
|
944
|
-
@api_client.config.logger.debug "API called: ConnectApi#list_tests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
945
|
-
end
|
946
|
-
return data, status_code, headers
|
947
|
-
end
|
948
|
-
|
949
896
|
# Returns users from the configured Connect service.
|
950
897
|
# Returns users from the configured Connect service.
|
951
898
|
# @param account_id The external account number (int) or account ID Guid.
|
@@ -0,0 +1,256 @@
|
|
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 "uri"
|
13
|
+
|
14
|
+
module DocuSign_eSign
|
15
|
+
|
16
|
+
|
17
|
+
class SignatureApi
|
18
|
+
attr_accessor :api_client
|
19
|
+
|
20
|
+
def initialize(api_client = SignatureApi.default)
|
21
|
+
@api_client = api_client
|
22
|
+
end
|
23
|
+
|
24
|
+
# Complete Sign Hash
|
25
|
+
#
|
26
|
+
# @param complete_sign_request (optional parameter)
|
27
|
+
# @return [CompleteSignHashResponse]
|
28
|
+
def complete_sign_hash(complete_sign_request)
|
29
|
+
data, _status_code, _headers = complete_sign_hash_with_http_info( complete_sign_request)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Complete Sign Hash
|
34
|
+
#
|
35
|
+
# @param complete_sign_request (optional parameter)
|
36
|
+
# @return [Array<(CompleteSignHashResponse, Fixnum, Hash)>] CompleteSignHashResponse data, response status code and response headers
|
37
|
+
def complete_sign_hash_with_http_info(complete_sign_request)
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug "Calling API: SignatureApi.complete_sign_hash ..."
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = "/v2/signature/completesignhash".sub('{format}','json')
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = @api_client.object_to_http_body(complete_sign_request)
|
57
|
+
auth_names = []
|
58
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
59
|
+
:header_params => header_params,
|
60
|
+
:query_params => query_params,
|
61
|
+
:form_params => form_params,
|
62
|
+
:body => post_body,
|
63
|
+
:auth_names => auth_names,
|
64
|
+
:return_type => 'CompleteSignHashResponse')
|
65
|
+
if @api_client.config.debugging
|
66
|
+
@api_client.config.logger.debug "API called: SignatureApi#complete_sign_hash\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
67
|
+
end
|
68
|
+
return data, status_code, headers
|
69
|
+
end
|
70
|
+
|
71
|
+
# Get User Info To Sign Document
|
72
|
+
#
|
73
|
+
# @return [UserInfoResponse]
|
74
|
+
def get_user_info()
|
75
|
+
data, _status_code, _headers = get_user_info_with_http_info()
|
76
|
+
return data
|
77
|
+
end
|
78
|
+
|
79
|
+
# Get User Info To Sign Document
|
80
|
+
#
|
81
|
+
# @return [Array<(UserInfoResponse, Fixnum, Hash)>] UserInfoResponse data, response status code and response headers
|
82
|
+
def get_user_info_with_http_info()
|
83
|
+
if @api_client.config.debugging
|
84
|
+
@api_client.config.logger.debug "Calling API: SignatureApi.get_user_info ..."
|
85
|
+
end
|
86
|
+
# resource path
|
87
|
+
local_var_path = "/v2/signature/userInfo".sub('{format}','json')
|
88
|
+
|
89
|
+
# query parameters
|
90
|
+
query_params = {}
|
91
|
+
|
92
|
+
# header parameters
|
93
|
+
header_params = {}
|
94
|
+
# HTTP header 'Accept' (if needed)
|
95
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
96
|
+
|
97
|
+
# form parameters
|
98
|
+
form_params = {}
|
99
|
+
|
100
|
+
# http body (model)
|
101
|
+
post_body = nil
|
102
|
+
auth_names = []
|
103
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
104
|
+
:header_params => header_params,
|
105
|
+
:query_params => query_params,
|
106
|
+
:form_params => form_params,
|
107
|
+
:body => post_body,
|
108
|
+
:auth_names => auth_names,
|
109
|
+
:return_type => 'UserInfoResponse')
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug "API called: SignatureApi#get_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
112
|
+
end
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
|
116
|
+
# Report status from the TSP to DocuSign
|
117
|
+
#
|
118
|
+
# @param tsp_health_check_request (optional parameter)
|
119
|
+
# @return [nil]
|
120
|
+
def health_check(tsp_health_check_request)
|
121
|
+
health_check_with_http_info( tsp_health_check_request)
|
122
|
+
return nil
|
123
|
+
end
|
124
|
+
|
125
|
+
# Report status from the TSP to DocuSign
|
126
|
+
#
|
127
|
+
# @param tsp_health_check_request (optional parameter)
|
128
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
129
|
+
def health_check_with_http_info(tsp_health_check_request)
|
130
|
+
if @api_client.config.debugging
|
131
|
+
@api_client.config.logger.debug "Calling API: SignatureApi.health_check ..."
|
132
|
+
end
|
133
|
+
# resource path
|
134
|
+
local_var_path = "/v2/signature/healthcheck".sub('{format}','json')
|
135
|
+
|
136
|
+
# query parameters
|
137
|
+
query_params = {}
|
138
|
+
|
139
|
+
# header parameters
|
140
|
+
header_params = {}
|
141
|
+
# HTTP header 'Accept' (if needed)
|
142
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
143
|
+
|
144
|
+
# form parameters
|
145
|
+
form_params = {}
|
146
|
+
|
147
|
+
# http body (model)
|
148
|
+
post_body = @api_client.object_to_http_body(tsp_health_check_request)
|
149
|
+
auth_names = []
|
150
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
151
|
+
:header_params => header_params,
|
152
|
+
:query_params => query_params,
|
153
|
+
:form_params => form_params,
|
154
|
+
:body => post_body,
|
155
|
+
:auth_names => auth_names)
|
156
|
+
if @api_client.config.debugging
|
157
|
+
@api_client.config.logger.debug "API called: SignatureApi#health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
+
end
|
159
|
+
return data, status_code, headers
|
160
|
+
end
|
161
|
+
|
162
|
+
# Get Signature Session Info To Sign Document Hash
|
163
|
+
#
|
164
|
+
# @param sign_session_info_request (optional parameter)
|
165
|
+
# @return [SignHashSessionInfoResponse]
|
166
|
+
def sign_hash_session_info(sign_session_info_request)
|
167
|
+
data, _status_code, _headers = sign_hash_session_info_with_http_info( sign_session_info_request)
|
168
|
+
return data
|
169
|
+
end
|
170
|
+
|
171
|
+
# Get Signature Session Info To Sign Document Hash
|
172
|
+
#
|
173
|
+
# @param sign_session_info_request (optional parameter)
|
174
|
+
# @return [Array<(SignHashSessionInfoResponse, Fixnum, Hash)>] SignHashSessionInfoResponse data, response status code and response headers
|
175
|
+
def sign_hash_session_info_with_http_info(sign_session_info_request)
|
176
|
+
if @api_client.config.debugging
|
177
|
+
@api_client.config.logger.debug "Calling API: SignatureApi.sign_hash_session_info ..."
|
178
|
+
end
|
179
|
+
# resource path
|
180
|
+
local_var_path = "/v2/signature/signhashsessioninfo".sub('{format}','json')
|
181
|
+
|
182
|
+
# query parameters
|
183
|
+
query_params = {}
|
184
|
+
|
185
|
+
# header parameters
|
186
|
+
header_params = {}
|
187
|
+
# HTTP header 'Accept' (if needed)
|
188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
189
|
+
|
190
|
+
# form parameters
|
191
|
+
form_params = {}
|
192
|
+
|
193
|
+
# http body (model)
|
194
|
+
post_body = @api_client.object_to_http_body(sign_session_info_request)
|
195
|
+
auth_names = []
|
196
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
197
|
+
:header_params => header_params,
|
198
|
+
:query_params => query_params,
|
199
|
+
:form_params => form_params,
|
200
|
+
:body => post_body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => 'SignHashSessionInfoResponse')
|
203
|
+
if @api_client.config.debugging
|
204
|
+
@api_client.config.logger.debug "API called: SignatureApi#sign_hash_session_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
205
|
+
end
|
206
|
+
return data, status_code, headers
|
207
|
+
end
|
208
|
+
|
209
|
+
# Report an error from the tsp to docusign
|
210
|
+
#
|
211
|
+
# @param update_transaction_request (optional parameter)
|
212
|
+
# @return [UpdateTransactionResponse]
|
213
|
+
def update_transaction(update_transaction_request)
|
214
|
+
data, _status_code, _headers = update_transaction_with_http_info( update_transaction_request)
|
215
|
+
return data
|
216
|
+
end
|
217
|
+
|
218
|
+
# Report an error from the tsp to docusign
|
219
|
+
#
|
220
|
+
# @param update_transaction_request (optional parameter)
|
221
|
+
# @return [Array<(UpdateTransactionResponse, Fixnum, Hash)>] UpdateTransactionResponse data, response status code and response headers
|
222
|
+
def update_transaction_with_http_info(update_transaction_request)
|
223
|
+
if @api_client.config.debugging
|
224
|
+
@api_client.config.logger.debug "Calling API: SignatureApi.update_transaction ..."
|
225
|
+
end
|
226
|
+
# resource path
|
227
|
+
local_var_path = "/v2/signature/updatetransaction".sub('{format}','json')
|
228
|
+
|
229
|
+
# query parameters
|
230
|
+
query_params = {}
|
231
|
+
|
232
|
+
# header parameters
|
233
|
+
header_params = {}
|
234
|
+
# HTTP header 'Accept' (if needed)
|
235
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
236
|
+
|
237
|
+
# form parameters
|
238
|
+
form_params = {}
|
239
|
+
|
240
|
+
# http body (model)
|
241
|
+
post_body = @api_client.object_to_http_body(update_transaction_request)
|
242
|
+
auth_names = []
|
243
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
244
|
+
:header_params => header_params,
|
245
|
+
:query_params => query_params,
|
246
|
+
:form_params => form_params,
|
247
|
+
:body => post_body,
|
248
|
+
:auth_names => auth_names,
|
249
|
+
:return_type => 'UpdateTransactionResponse')
|
250
|
+
if @api_client.config.debugging
|
251
|
+
@api_client.config.logger.debug "API called: SignatureApi#update_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
252
|
+
end
|
253
|
+
return data, status_code, headers
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
@@ -17,6 +17,12 @@ module DocuSign_eSign
|
|
17
17
|
# Reserved:
|
18
18
|
attr_accessor :add_ons
|
19
19
|
|
20
|
+
#
|
21
|
+
attr_accessor :app_store_receipt_expiration_date
|
22
|
+
|
23
|
+
#
|
24
|
+
attr_accessor :app_store_receipt_purchase_date
|
25
|
+
|
20
26
|
# Reserved: TBD
|
21
27
|
attr_accessor :can_cancel_renewal
|
22
28
|
|
@@ -81,6 +87,8 @@ module DocuSign_eSign
|
|
81
87
|
def self.attribute_map
|
82
88
|
{
|
83
89
|
:'add_ons' => :'addOns',
|
90
|
+
:'app_store_receipt_expiration_date' => :'appStoreReceiptExpirationDate',
|
91
|
+
:'app_store_receipt_purchase_date' => :'appStoreReceiptPurchaseDate',
|
84
92
|
:'can_cancel_renewal' => :'canCancelRenewal',
|
85
93
|
:'can_upgrade' => :'canUpgrade',
|
86
94
|
:'currency_code' => :'currencyCode',
|
@@ -108,6 +116,8 @@ module DocuSign_eSign
|
|
108
116
|
def self.swagger_types
|
109
117
|
{
|
110
118
|
:'add_ons' => :'Array<AddOn>',
|
119
|
+
:'app_store_receipt_expiration_date' => :'String',
|
120
|
+
:'app_store_receipt_purchase_date' => :'String',
|
111
121
|
:'can_cancel_renewal' => :'String',
|
112
122
|
:'can_upgrade' => :'String',
|
113
123
|
:'currency_code' => :'String',
|
@@ -145,6 +155,14 @@ module DocuSign_eSign
|
|
145
155
|
end
|
146
156
|
end
|
147
157
|
|
158
|
+
if attributes.has_key?(:'appStoreReceiptExpirationDate')
|
159
|
+
self.app_store_receipt_expiration_date = attributes[:'appStoreReceiptExpirationDate']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.has_key?(:'appStoreReceiptPurchaseDate')
|
163
|
+
self.app_store_receipt_purchase_date = attributes[:'appStoreReceiptPurchaseDate']
|
164
|
+
end
|
165
|
+
|
148
166
|
if attributes.has_key?(:'canCancelRenewal')
|
149
167
|
self.can_cancel_renewal = attributes[:'canCancelRenewal']
|
150
168
|
end
|
@@ -249,6 +267,8 @@ module DocuSign_eSign
|
|
249
267
|
return true if self.equal?(o)
|
250
268
|
self.class == o.class &&
|
251
269
|
add_ons == o.add_ons &&
|
270
|
+
app_store_receipt_expiration_date == o.app_store_receipt_expiration_date &&
|
271
|
+
app_store_receipt_purchase_date == o.app_store_receipt_purchase_date &&
|
252
272
|
can_cancel_renewal == o.can_cancel_renewal &&
|
253
273
|
can_upgrade == o.can_upgrade &&
|
254
274
|
currency_code == o.currency_code &&
|
@@ -280,7 +300,7 @@ module DocuSign_eSign
|
|
280
300
|
# Calculates hash code according to all attributes.
|
281
301
|
# @return [Fixnum] Hash code
|
282
302
|
def hash
|
283
|
-
[add_ons, 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
|
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
|
284
304
|
end
|
285
305
|
|
286
306
|
# Builds the object from hash
|
data/tests/Gemfile.lock
CHANGED
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.
|
4
|
+
version: 2.9.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-
|
11
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -285,6 +285,7 @@ files:
|
|
285
285
|
- LICENSE
|
286
286
|
- README.md
|
287
287
|
- Rakefile
|
288
|
+
- docusign_esign-3.9.0.rc1.gem
|
288
289
|
- docusign_esign.gemspec
|
289
290
|
- git_push.sh
|
290
291
|
- lib/docusign_esign.rb
|
@@ -305,6 +306,7 @@ files:
|
|
305
306
|
- lib/docusign_esign/api/notary_api.rb
|
306
307
|
- lib/docusign_esign/api/organizations_api.rb
|
307
308
|
- lib/docusign_esign/api/power_forms_api.rb
|
309
|
+
- lib/docusign_esign/api/signature_api.rb
|
308
310
|
- lib/docusign_esign/api/signing_groups_api.rb
|
309
311
|
- lib/docusign_esign/api/templates_api.rb
|
310
312
|
- lib/docusign_esign/api/trust_service_providers_api.rb
|