docusign 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/bin/docusign +0 -0
- data/lib/docusign.rb +1 -1
- data/lib/docusign/credential.rb +32 -0
- data/lib/docusign/credentialDriver.rb +9 -1
- data/lib/docusign/credentialMappingRegistry.rb +20 -0
- data/lib/docusign/docusign.rb +801 -42
- data/lib/docusign/docusignDriver.rb +97 -17
- data/lib/docusign/docusignMappingRegistry.rb +883 -69
- data/lib/{DocuSign3.0.10API.wsdl → wsdl/DocuSign3.0.10API.wsdl} +0 -0
- data/lib/wsdl/DocuSign3.0.11API.wsdl +2668 -0
- data/lib/wsdl/DocuSign3.0.2API.wsdl +3150 -0
- data/lib/wsdl/DocuSign3.0.2CredentialAPI.wsdl +275 -0
- metadata +14 -7
- data/tasks/docusign_tasks.rake +0 -30
@@ -0,0 +1,275 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.docusign.net/API/Credential" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.docusign.net/API/Credential" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
3
|
+
<wsdl:types>
|
4
|
+
<s:schema elementFormDefault="qualified" targetNamespace="http://www.docusign.net/API/Credential">
|
5
|
+
<s:element name="Ping">
|
6
|
+
<s:complexType />
|
7
|
+
</s:element>
|
8
|
+
<s:element name="PingResponse">
|
9
|
+
<s:complexType>
|
10
|
+
<s:sequence>
|
11
|
+
<s:element minOccurs="1" maxOccurs="1" name="PingResult" type="s:boolean" />
|
12
|
+
</s:sequence>
|
13
|
+
</s:complexType>
|
14
|
+
</s:element>
|
15
|
+
<s:element name="Login">
|
16
|
+
<s:complexType>
|
17
|
+
<s:sequence>
|
18
|
+
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
|
19
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
20
|
+
</s:sequence>
|
21
|
+
</s:complexType>
|
22
|
+
</s:element>
|
23
|
+
<s:element name="LoginResponse">
|
24
|
+
<s:complexType>
|
25
|
+
<s:sequence>
|
26
|
+
<s:element minOccurs="0" maxOccurs="1" name="LoginResult">
|
27
|
+
<s:complexType>
|
28
|
+
<s:sequence>
|
29
|
+
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
|
30
|
+
<s:element minOccurs="0" maxOccurs="1" name="ErrorCode" type="tns:ErrorCode" />
|
31
|
+
<s:element minOccurs="0" maxOccurs="1" name="AuthenticationMessage" type="s:string" />
|
32
|
+
<s:element minOccurs="0" maxOccurs="1" name="Accounts" type="tns:ArrayOfAccount" />
|
33
|
+
</s:sequence>
|
34
|
+
</s:complexType>
|
35
|
+
</s:element>
|
36
|
+
</s:sequence>
|
37
|
+
</s:complexType>
|
38
|
+
</s:element>
|
39
|
+
<s:simpleType name="ErrorCode">
|
40
|
+
<s:restriction base="s:string">
|
41
|
+
<s:enumeration value="User_Does_Not_Exist_In_System" />
|
42
|
+
<s:enumeration value="Account_Lacks_Permissions" />
|
43
|
+
<s:enumeration value="User_Lacks_Permissions" />
|
44
|
+
<s:enumeration value="User_Authentication_Failed" />
|
45
|
+
<s:enumeration value="Unspecified_Error" />
|
46
|
+
<s:enumeration value="Success" />
|
47
|
+
</s:restriction>
|
48
|
+
</s:simpleType>
|
49
|
+
<s:complexType name="ArrayOfAccount">
|
50
|
+
<s:sequence>
|
51
|
+
<s:element minOccurs="0" maxOccurs="unbounded" name="Account">
|
52
|
+
<s:complexType>
|
53
|
+
<s:sequence>
|
54
|
+
<s:element minOccurs="0" maxOccurs="1" name="AccountID" type="s:string" />
|
55
|
+
<s:element minOccurs="0" maxOccurs="1" name="AccountName" type="s:string" />
|
56
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserID" type="s:string" />
|
57
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
58
|
+
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
|
59
|
+
</s:sequence>
|
60
|
+
</s:complexType>
|
61
|
+
</s:element>
|
62
|
+
</s:sequence>
|
63
|
+
</s:complexType>
|
64
|
+
<s:element name="GetAuthenticationToken">
|
65
|
+
<s:complexType>
|
66
|
+
<s:sequence>
|
67
|
+
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
|
68
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
69
|
+
<s:element minOccurs="0" maxOccurs="1" name="AccountID" type="s:string" />
|
70
|
+
<s:element minOccurs="0" maxOccurs="1" name="GoToEnvelopeID" type="s:string" />
|
71
|
+
</s:sequence>
|
72
|
+
</s:complexType>
|
73
|
+
</s:element>
|
74
|
+
<s:element name="GetAuthenticationTokenResponse">
|
75
|
+
<s:complexType>
|
76
|
+
<s:sequence>
|
77
|
+
<s:element minOccurs="0" maxOccurs="1" name="GetAuthenticationTokenResult" type="s:string" />
|
78
|
+
</s:sequence>
|
79
|
+
</s:complexType>
|
80
|
+
</s:element>
|
81
|
+
<s:element name="RequestSenderToken">
|
82
|
+
<s:complexType>
|
83
|
+
<s:sequence>
|
84
|
+
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
|
85
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
86
|
+
<s:element minOccurs="0" maxOccurs="1" name="AccountID" type="s:string" />
|
87
|
+
<s:element minOccurs="0" maxOccurs="1" name="EnvelopeID" type="s:string" />
|
88
|
+
<s:element minOccurs="0" maxOccurs="1" name="ReturnURL" type="s:string" />
|
89
|
+
</s:sequence>
|
90
|
+
</s:complexType>
|
91
|
+
</s:element>
|
92
|
+
<s:element name="RequestSenderTokenResponse">
|
93
|
+
<s:complexType>
|
94
|
+
<s:sequence>
|
95
|
+
<s:element minOccurs="0" maxOccurs="1" name="RequestSenderTokenResult" type="s:string" />
|
96
|
+
</s:sequence>
|
97
|
+
</s:complexType>
|
98
|
+
</s:element>
|
99
|
+
<s:element name="RequestCorrectToken">
|
100
|
+
<s:complexType>
|
101
|
+
<s:sequence>
|
102
|
+
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
|
103
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
104
|
+
<s:element minOccurs="0" maxOccurs="1" name="EnvelopeID" type="s:string" />
|
105
|
+
<s:element minOccurs="1" maxOccurs="1" name="SuppressNavigation" type="s:boolean" />
|
106
|
+
<s:element minOccurs="0" maxOccurs="1" name="ReturnURL" type="s:string" />
|
107
|
+
</s:sequence>
|
108
|
+
</s:complexType>
|
109
|
+
</s:element>
|
110
|
+
<s:element name="RequestCorrectTokenResponse">
|
111
|
+
<s:complexType>
|
112
|
+
<s:sequence>
|
113
|
+
<s:element minOccurs="0" maxOccurs="1" name="RequestCorrectTokenResult" type="s:string" />
|
114
|
+
</s:sequence>
|
115
|
+
</s:complexType>
|
116
|
+
</s:element>
|
117
|
+
</s:schema>
|
118
|
+
</wsdl:types>
|
119
|
+
<wsdl:message name="PingSoapIn">
|
120
|
+
<wsdl:part name="parameters" element="tns:Ping" />
|
121
|
+
</wsdl:message>
|
122
|
+
<wsdl:message name="PingSoapOut">
|
123
|
+
<wsdl:part name="parameters" element="tns:PingResponse" />
|
124
|
+
</wsdl:message>
|
125
|
+
<wsdl:message name="LoginSoapIn">
|
126
|
+
<wsdl:part name="parameters" element="tns:Login" />
|
127
|
+
</wsdl:message>
|
128
|
+
<wsdl:message name="LoginSoapOut">
|
129
|
+
<wsdl:part name="parameters" element="tns:LoginResponse" />
|
130
|
+
</wsdl:message>
|
131
|
+
<wsdl:message name="GetAuthenticationTokenSoapIn">
|
132
|
+
<wsdl:part name="parameters" element="tns:GetAuthenticationToken" />
|
133
|
+
</wsdl:message>
|
134
|
+
<wsdl:message name="GetAuthenticationTokenSoapOut">
|
135
|
+
<wsdl:part name="parameters" element="tns:GetAuthenticationTokenResponse" />
|
136
|
+
</wsdl:message>
|
137
|
+
<wsdl:message name="RequestSenderTokenSoapIn">
|
138
|
+
<wsdl:part name="parameters" element="tns:RequestSenderToken" />
|
139
|
+
</wsdl:message>
|
140
|
+
<wsdl:message name="RequestSenderTokenSoapOut">
|
141
|
+
<wsdl:part name="parameters" element="tns:RequestSenderTokenResponse" />
|
142
|
+
</wsdl:message>
|
143
|
+
<wsdl:message name="RequestCorrectTokenSoapIn">
|
144
|
+
<wsdl:part name="parameters" element="tns:RequestCorrectToken" />
|
145
|
+
</wsdl:message>
|
146
|
+
<wsdl:message name="RequestCorrectTokenSoapOut">
|
147
|
+
<wsdl:part name="parameters" element="tns:RequestCorrectTokenResponse" />
|
148
|
+
</wsdl:message>
|
149
|
+
<wsdl:portType name="CredentialSoap">
|
150
|
+
<wsdl:operation name="Ping">
|
151
|
+
<wsdl:input message="tns:PingSoapIn" />
|
152
|
+
<wsdl:output message="tns:PingSoapOut" />
|
153
|
+
</wsdl:operation>
|
154
|
+
<wsdl:operation name="Login">
|
155
|
+
<wsdl:input message="tns:LoginSoapIn" />
|
156
|
+
<wsdl:output message="tns:LoginSoapOut" />
|
157
|
+
</wsdl:operation>
|
158
|
+
<wsdl:operation name="GetAuthenticationToken">
|
159
|
+
<wsdl:input message="tns:GetAuthenticationTokenSoapIn" />
|
160
|
+
<wsdl:output message="tns:GetAuthenticationTokenSoapOut" />
|
161
|
+
</wsdl:operation>
|
162
|
+
<wsdl:operation name="RequestSenderToken">
|
163
|
+
<wsdl:input message="tns:RequestSenderTokenSoapIn" />
|
164
|
+
<wsdl:output message="tns:RequestSenderTokenSoapOut" />
|
165
|
+
</wsdl:operation>
|
166
|
+
<wsdl:operation name="RequestCorrectToken">
|
167
|
+
<wsdl:input message="tns:RequestCorrectTokenSoapIn" />
|
168
|
+
<wsdl:output message="tns:RequestCorrectTokenSoapOut" />
|
169
|
+
</wsdl:operation>
|
170
|
+
</wsdl:portType>
|
171
|
+
<wsdl:binding name="CredentialSoap" type="tns:CredentialSoap">
|
172
|
+
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
173
|
+
<wsdl:operation name="Ping">
|
174
|
+
<soap:operation soapAction="http://www.docusign.net/API/Credential/Ping" style="document" />
|
175
|
+
<wsdl:input>
|
176
|
+
<soap:body use="literal" />
|
177
|
+
</wsdl:input>
|
178
|
+
<wsdl:output>
|
179
|
+
<soap:body use="literal" />
|
180
|
+
</wsdl:output>
|
181
|
+
</wsdl:operation>
|
182
|
+
<wsdl:operation name="Login">
|
183
|
+
<soap:operation soapAction="http://www.docusign.net/API/Credential/Login" style="document" />
|
184
|
+
<wsdl:input>
|
185
|
+
<soap:body use="literal" />
|
186
|
+
</wsdl:input>
|
187
|
+
<wsdl:output>
|
188
|
+
<soap:body use="literal" />
|
189
|
+
</wsdl:output>
|
190
|
+
</wsdl:operation>
|
191
|
+
<wsdl:operation name="GetAuthenticationToken">
|
192
|
+
<soap:operation soapAction="http://www.docusign.net/API/Credential/GetAuthenticationToken" style="document" />
|
193
|
+
<wsdl:input>
|
194
|
+
<soap:body use="literal" />
|
195
|
+
</wsdl:input>
|
196
|
+
<wsdl:output>
|
197
|
+
<soap:body use="literal" />
|
198
|
+
</wsdl:output>
|
199
|
+
</wsdl:operation>
|
200
|
+
<wsdl:operation name="RequestSenderToken">
|
201
|
+
<soap:operation soapAction="http://www.docusign.net/API/Credential/RequestSenderToken" style="document" />
|
202
|
+
<wsdl:input>
|
203
|
+
<soap:body use="literal" />
|
204
|
+
</wsdl:input>
|
205
|
+
<wsdl:output>
|
206
|
+
<soap:body use="literal" />
|
207
|
+
</wsdl:output>
|
208
|
+
</wsdl:operation>
|
209
|
+
<wsdl:operation name="RequestCorrectToken">
|
210
|
+
<soap:operation soapAction="http://www.docusign.net/API/Credential/RequestCorrectToken" style="document" />
|
211
|
+
<wsdl:input>
|
212
|
+
<soap:body use="literal" />
|
213
|
+
</wsdl:input>
|
214
|
+
<wsdl:output>
|
215
|
+
<soap:body use="literal" />
|
216
|
+
</wsdl:output>
|
217
|
+
</wsdl:operation>
|
218
|
+
</wsdl:binding>
|
219
|
+
<wsdl:binding name="CredentialSoap12" type="tns:CredentialSoap">
|
220
|
+
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
221
|
+
<wsdl:operation name="Ping">
|
222
|
+
<soap12:operation soapAction="http://www.docusign.net/API/Credential/Ping" style="document" />
|
223
|
+
<wsdl:input>
|
224
|
+
<soap12:body use="literal" />
|
225
|
+
</wsdl:input>
|
226
|
+
<wsdl:output>
|
227
|
+
<soap12:body use="literal" />
|
228
|
+
</wsdl:output>
|
229
|
+
</wsdl:operation>
|
230
|
+
<wsdl:operation name="Login">
|
231
|
+
<soap12:operation soapAction="http://www.docusign.net/API/Credential/Login" style="document" />
|
232
|
+
<wsdl:input>
|
233
|
+
<soap12:body use="literal" />
|
234
|
+
</wsdl:input>
|
235
|
+
<wsdl:output>
|
236
|
+
<soap12:body use="literal" />
|
237
|
+
</wsdl:output>
|
238
|
+
</wsdl:operation>
|
239
|
+
<wsdl:operation name="GetAuthenticationToken">
|
240
|
+
<soap12:operation soapAction="http://www.docusign.net/API/Credential/GetAuthenticationToken" style="document" />
|
241
|
+
<wsdl:input>
|
242
|
+
<soap12:body use="literal" />
|
243
|
+
</wsdl:input>
|
244
|
+
<wsdl:output>
|
245
|
+
<soap12:body use="literal" />
|
246
|
+
</wsdl:output>
|
247
|
+
</wsdl:operation>
|
248
|
+
<wsdl:operation name="RequestSenderToken">
|
249
|
+
<soap12:operation soapAction="http://www.docusign.net/API/Credential/RequestSenderToken" style="document" />
|
250
|
+
<wsdl:input>
|
251
|
+
<soap12:body use="literal" />
|
252
|
+
</wsdl:input>
|
253
|
+
<wsdl:output>
|
254
|
+
<soap12:body use="literal" />
|
255
|
+
</wsdl:output>
|
256
|
+
</wsdl:operation>
|
257
|
+
<wsdl:operation name="RequestCorrectToken">
|
258
|
+
<soap12:operation soapAction="http://www.docusign.net/API/Credential/RequestCorrectToken" style="document" />
|
259
|
+
<wsdl:input>
|
260
|
+
<soap12:body use="literal" />
|
261
|
+
</wsdl:input>
|
262
|
+
<wsdl:output>
|
263
|
+
<soap12:body use="literal" />
|
264
|
+
</wsdl:output>
|
265
|
+
</wsdl:operation>
|
266
|
+
</wsdl:binding>
|
267
|
+
<wsdl:service name="Credential">
|
268
|
+
<wsdl:port name="CredentialSoap" binding="tns:CredentialSoap">
|
269
|
+
<soap:address location="https://demo.docusign.net/api/3.0/credential.asmx" />
|
270
|
+
</wsdl:port>
|
271
|
+
<wsdl:port name="CredentialSoap12" binding="tns:CredentialSoap12">
|
272
|
+
<soap12:address location="https://demo.docusign.net/api/3.0/credential.asmx" />
|
273
|
+
</wsdl:port>
|
274
|
+
</wsdl:service>
|
275
|
+
</wsdl:definitions>
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docusign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 63
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
version: 0.8.0
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Leigh Caplan
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-01-22 00:00:00 -08:00
|
18
19
|
default_executable: docusign
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -39,7 +40,6 @@ files:
|
|
39
40
|
- bin/docusign
|
40
41
|
- docusign.gemspec
|
41
42
|
- lib/Credential.wsdl
|
42
|
-
- lib/DocuSign3.0.10API.wsdl
|
43
43
|
- lib/docusign.rb
|
44
44
|
- lib/docusign/anchor_tab.rb
|
45
45
|
- lib/docusign/auth_header_handler.rb
|
@@ -59,12 +59,15 @@ files:
|
|
59
59
|
- lib/docusign/request_recipient_token_client_urls.rb
|
60
60
|
- lib/docusign/tab.rb
|
61
61
|
- lib/docusign/utilities.rb
|
62
|
+
- lib/wsdl/DocuSign3.0.10API.wsdl
|
63
|
+
- lib/wsdl/DocuSign3.0.11API.wsdl
|
64
|
+
- lib/wsdl/DocuSign3.0.2API.wsdl
|
65
|
+
- lib/wsdl/DocuSign3.0.2CredentialAPI.wsdl
|
62
66
|
- spec/docusign/builder/anchor_builder_spec.rb
|
63
67
|
- spec/docusign/builder/tab_builder_spec.rb
|
64
68
|
- spec/docusign/document_spec.rb
|
65
69
|
- spec/spec.opts
|
66
70
|
- spec/spec_helper.rb
|
67
|
-
- tasks/docusign_tasks.rake
|
68
71
|
- test/test_docusign.rb
|
69
72
|
has_rdoc: true
|
70
73
|
homepage: http://github.com/texel/docusign
|
@@ -76,23 +79,27 @@ rdoc_options:
|
|
76
79
|
require_paths:
|
77
80
|
- lib
|
78
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
79
83
|
requirements:
|
80
84
|
- - ">="
|
81
85
|
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
82
87
|
segments:
|
83
88
|
- 0
|
84
89
|
version: "0"
|
85
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
86
92
|
requirements:
|
87
93
|
- - ">="
|
88
94
|
- !ruby/object:Gem::Version
|
95
|
+
hash: 3
|
89
96
|
segments:
|
90
97
|
- 0
|
91
98
|
version: "0"
|
92
99
|
requirements: []
|
93
100
|
|
94
101
|
rubyforge_project:
|
95
|
-
rubygems_version: 1.3.
|
102
|
+
rubygems_version: 1.3.7
|
96
103
|
signing_key:
|
97
104
|
specification_version: 3
|
98
105
|
summary: A library for working with the Docusign API and associated objects
|
data/tasks/docusign_tasks.rake
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# Generates SOAP stubs for Salesforce Enterprise API.
|
2
|
-
# Requires a /config/salesforce/enterprise.wsdl.xml
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
gem 'soap4r'
|
6
|
-
require 'wsdl/soap/wsdl2ruby'
|
7
|
-
|
8
|
-
namespace :docusign do
|
9
|
-
namespace :services do
|
10
|
-
desc "Generate SOAP stubs for Salesforce API"
|
11
|
-
task :generate => [:environment] do
|
12
|
-
wsdl_path = File.expand_path(File.dirname(__FILE__) + "/../lib/DocuSign3.0.10API.wsdl")
|
13
|
-
wsdl2ruby('docusign', 'Docusign', "file://#{wsdl_path}")
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
private
|
19
|
-
|
20
|
-
def wsdl2ruby(name, module_name, url)
|
21
|
-
g = WSDL::SOAP::WSDL2Ruby.new
|
22
|
-
g.location = url
|
23
|
-
g.basedir = File.expand_path(File.dirname(__FILE__) + "/../lib/")
|
24
|
-
g.opt['classdef'] = name
|
25
|
-
g.opt['driver'] = nil
|
26
|
-
g.opt['module_path'] = module_name
|
27
|
-
g.opt['mapping_registry'] = true
|
28
|
-
g.opt['force'] = true
|
29
|
-
g.run
|
30
|
-
end
|