quickbooks 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +16 -0
- data/README +46 -0
- data/Rakefile +92 -0
- data/doc/classes/QuickBooks.html +148 -0
- data/doc/classes/QuickBooks/Models.html +121 -0
- data/doc/classes/QuickBooks/Models/Address.html +159 -0
- data/doc/classes/QuickBooks/Models/Base.html +152 -0
- data/doc/classes/QuickBooks/Models/Base.src/M000009.html +18 -0
- data/doc/classes/QuickBooks/Models/Base.src/M000010.html +17 -0
- data/doc/classes/QuickBooks/Models/CreditCardInfo.html +149 -0
- data/doc/classes/QuickBooks/Models/Customer.html +409 -0
- data/doc/classes/QuickBooks/Models/Customer.src/M000001.html +34 -0
- data/doc/classes/QuickBooks/Models/Customer.src/M000002.html +17 -0
- data/doc/classes/QuickBooks/Models/DataExt.html +141 -0
- data/doc/classes/QuickBooks/Models/ListItem.html +174 -0
- data/doc/classes/QuickBooks/Models/ListItem.src/M000007.html +17 -0
- data/doc/classes/QuickBooks/Models/ListItem.src/M000008.html +17 -0
- data/doc/classes/QuickBooks/Models/Transaction.html +202 -0
- data/doc/classes/QuickBooks/Models/Transaction.src/M000003.html +17 -0
- data/doc/classes/QuickBooks/Models/Transaction.src/M000004.html +17 -0
- data/doc/classes/QuickBooks/Models/Transaction.src/M000005.html +17 -0
- data/doc/classes/QuickBooks/Models/Transaction.src/M000006.html +17 -0
- data/doc/classes/QuickBooks/Session.html +279 -0
- data/doc/classes/QuickBooks/Session.src/M000011.html +25 -0
- data/doc/classes/QuickBooks/Session.src/M000012.html +21 -0
- data/doc/classes/QuickBooks/Session.src/M000013.html +20 -0
- data/doc/classes/QuickBooks/Session.src/M000014.html +18 -0
- data/doc/classes/QuickBooks/Session.src/M000015.html +22 -0
- data/doc/created.rid +1 -0
- data/doc/files/LICENSE.html +129 -0
- data/doc/files/README.html +168 -0
- data/doc/files/lib/quickbooks/models/base_rb.html +129 -0
- data/doc/files/lib/quickbooks/models/customer_rb.html +136 -0
- data/doc/files/lib/quickbooks/session_rb.html +109 -0
- data/doc/files/lib/quickbooks_rb.html +138 -0
- data/doc/fr_class_index.html +36 -0
- data/doc/fr_file_index.html +32 -0
- data/doc/fr_method_index.html +41 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/quickbooks.rb +40 -0
- data/lib/quickbooks/models/base.rb +71 -0
- data/lib/quickbooks/models/customer.rb +56 -0
- data/lib/quickbooks/session.rb +90 -0
- data/test/quickbooks/quickbooks_test.rb +27 -0
- data/test/test_helper.rb +4 -0
- metadata +105 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>delete (QuickBooks::Models::Transaction)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/models/base.rb, line 33</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">delete</span>
|
15
|
+
<span class="ruby-keyword kw">end</span></pre>
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>delete (QuickBooks::Models::Transaction)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/models/base.rb, line 36</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
|
15
|
+
<span class="ruby-keyword kw">end</span></pre>
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>void (QuickBooks::Models::Transaction)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/models/base.rb, line 39</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">void</span>
|
15
|
+
<span class="ruby-keyword kw">end</span></pre>
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>void (QuickBooks::Models::Transaction)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/models/base.rb, line 42</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">void</span>
|
15
|
+
<span class="ruby-keyword kw">end</span></pre>
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,279 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: QuickBooks::Session</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">QuickBooks::Session</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/quickbooks/session_rb.html">
|
59
|
+
lib/quickbooks/session.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
<a href="Session.html">Session</a> used to communicate with <a
|
84
|
+
href="../QuickBooks.html">QuickBooks</a> RDS Server. You need to configure
|
85
|
+
your <a href="../QuickBooks.html">QuickBooks</a> software to allow RDS
|
86
|
+
connection from application. <code>
|
87
|
+
</p>
|
88
|
+
<pre>
|
89
|
+
require 'quickbooks'
|
90
|
+
|
91
|
+
session = QuickBooks::Session.new('admin', 'pass', 'My Test App')
|
92
|
+
session.open
|
93
|
+
xml = <<END
|
94
|
+
<?xml version="1.0"?>
|
95
|
+
<?qbxml version="3.0"?>
|
96
|
+
<QBXML>
|
97
|
+
<QBXMLMsgsRq onError="continueOnError">
|
98
|
+
<InvoiceQueryRq requestID="1">
|
99
|
+
<RefNumber>81</RefNumber>
|
100
|
+
<IncludeLineItems>true</IncludeLineItems>
|
101
|
+
</InvoiceQueryRq>
|
102
|
+
</QBXMLMsgsRq>
|
103
|
+
</QBXML>
|
104
|
+
<<END
|
105
|
+
session.send(xml)
|
106
|
+
session.close
|
107
|
+
</pre>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
|
114
|
+
<div id="method-list">
|
115
|
+
<h3 class="section-bar">Methods</h3>
|
116
|
+
|
117
|
+
<div class="name-list">
|
118
|
+
<a href="#M000015">close</a>
|
119
|
+
<a href="#M000012">connected?</a>
|
120
|
+
<a href="#M000011">new</a>
|
121
|
+
<a href="#M000013">open</a>
|
122
|
+
<a href="#M000014">send</a>
|
123
|
+
</div>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
</div>
|
127
|
+
|
128
|
+
|
129
|
+
<!-- if includes -->
|
130
|
+
|
131
|
+
<div id="section">
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<div id="attribute-list">
|
138
|
+
<h3 class="section-bar">Attributes</h3>
|
139
|
+
|
140
|
+
<div class="name-list">
|
141
|
+
<table>
|
142
|
+
<tr class="top-aligned-row context-row">
|
143
|
+
<td class="context-item-name">application_name</td>
|
144
|
+
<td class="context-item-value"> [RW] </td>
|
145
|
+
<td class="context-item-desc"></td>
|
146
|
+
</tr>
|
147
|
+
<tr class="top-aligned-row context-row">
|
148
|
+
<td class="context-item-name">host</td>
|
149
|
+
<td class="context-item-value"> [RW] </td>
|
150
|
+
<td class="context-item-desc"></td>
|
151
|
+
</tr>
|
152
|
+
<tr class="top-aligned-row context-row">
|
153
|
+
<td class="context-item-name">password</td>
|
154
|
+
<td class="context-item-value"> [RW] </td>
|
155
|
+
<td class="context-item-desc"></td>
|
156
|
+
</tr>
|
157
|
+
<tr class="top-aligned-row context-row">
|
158
|
+
<td class="context-item-name">port</td>
|
159
|
+
<td class="context-item-value"> [RW] </td>
|
160
|
+
<td class="context-item-desc"></td>
|
161
|
+
</tr>
|
162
|
+
<tr class="top-aligned-row context-row">
|
163
|
+
<td class="context-item-name">user</td>
|
164
|
+
<td class="context-item-value"> [RW] </td>
|
165
|
+
<td class="context-item-desc"></td>
|
166
|
+
</tr>
|
167
|
+
</table>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<!-- if method_list -->
|
174
|
+
<div id="methods">
|
175
|
+
<h3 class="section-bar">Public Class methods</h3>
|
176
|
+
|
177
|
+
<div id="method-M000011" class="method-detail">
|
178
|
+
<a name="M000011"></a>
|
179
|
+
|
180
|
+
<div class="method-heading">
|
181
|
+
<a href="Session.src/M000011.html" target="Code" class="method-signature"
|
182
|
+
onclick="popupCode('Session.src/M000011.html');return false;">
|
183
|
+
<span class="method-name">new</span><span class="method-args">(user, password, application_name, host="localhost", port=3790, mode='multiUser')</span>
|
184
|
+
</a>
|
185
|
+
</div>
|
186
|
+
|
187
|
+
<div class="method-description">
|
188
|
+
<p>
|
189
|
+
Initializes an instance of <a href="Session.html">QuickBooks::Session</a>
|
190
|
+
</p>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
195
|
+
|
196
|
+
<div id="method-M000015" class="method-detail">
|
197
|
+
<a name="M000015"></a>
|
198
|
+
|
199
|
+
<div class="method-heading">
|
200
|
+
<a href="Session.src/M000015.html" target="Code" class="method-signature"
|
201
|
+
onclick="popupCode('Session.src/M000015.html');return false;">
|
202
|
+
<span class="method-name">close</span><span class="method-args">()</span>
|
203
|
+
</a>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
<div class="method-description">
|
207
|
+
<p>
|
208
|
+
Close the session to <a href="../QuickBooks.html">QuickBooks</a> RDS Server
|
209
|
+
</p>
|
210
|
+
</div>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
<div id="method-M000012" class="method-detail">
|
214
|
+
<a name="M000012"></a>
|
215
|
+
|
216
|
+
<div class="method-heading">
|
217
|
+
<a href="Session.src/M000012.html" target="Code" class="method-signature"
|
218
|
+
onclick="popupCode('Session.src/M000012.html');return false;">
|
219
|
+
<span class="method-name">connected?</span><span class="method-args">()</span>
|
220
|
+
</a>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<div class="method-description">
|
224
|
+
<p>
|
225
|
+
Determines if the <a href="Session.html">Session</a> is connected to a <a
|
226
|
+
href="../QuickBooks.html">QuickBooks</a> RDS Server
|
227
|
+
</p>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div id="method-M000013" class="method-detail">
|
232
|
+
<a name="M000013"></a>
|
233
|
+
|
234
|
+
<div class="method-heading">
|
235
|
+
<a href="Session.src/M000013.html" target="Code" class="method-signature"
|
236
|
+
onclick="popupCode('Session.src/M000013.html');return false;">
|
237
|
+
<span class="method-name">open</span><span class="method-args">()</span>
|
238
|
+
</a>
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
<p>
|
243
|
+
Opens a connection to a <a href="../QuickBooks.html">QuickBooks</a> RDS
|
244
|
+
Server
|
245
|
+
</p>
|
246
|
+
</div>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
<div id="method-M000014" class="method-detail">
|
250
|
+
<a name="M000014"></a>
|
251
|
+
|
252
|
+
<div class="method-heading">
|
253
|
+
<a href="Session.src/M000014.html" target="Code" class="method-signature"
|
254
|
+
onclick="popupCode('Session.src/M000014.html');return false;">
|
255
|
+
<span class="method-name">send</span><span class="method-args">(xml)</span>
|
256
|
+
</a>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
<div class="method-description">
|
260
|
+
<p>
|
261
|
+
Send a QBXML message to <a href="../QuickBooks.html">QuickBooks</a> RDS
|
262
|
+
Server
|
263
|
+
</p>
|
264
|
+
</div>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
</div>
|
272
|
+
|
273
|
+
|
274
|
+
<div id="validator-badges">
|
275
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
</body>
|
279
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (QuickBooks::Session)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/session.rb, line 49</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">application_name</span>, <span class="ruby-identifier">host</span>=<span class="ruby-value str">"localhost"</span>, <span class="ruby-identifier">port</span>=<span class="ruby-value">3790</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-value str">'multiUser'</span>)
|
15
|
+
<span class="ruby-ivar">@user</span> = <span class="ruby-identifier">user</span>
|
16
|
+
<span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
17
|
+
<span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">application_name</span>
|
18
|
+
<span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
|
19
|
+
<span class="ruby-ivar">@port</span> = <span class="ruby-identifier">port</span>
|
20
|
+
<span class="ruby-ivar">@mode</span> = <span class="ruby-identifier">mode</span>
|
21
|
+
<span class="ruby-ivar">@ticket</span> = <span class="ruby-keyword kw">nil</span>
|
22
|
+
<span class="ruby-ivar">@soap_client</span> = <span class="ruby-keyword kw">nil</span>
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>connected? (QuickBooks::Session)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/session.rb, line 61</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connected?</span>
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@ticket</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@soap_client</span>
|
16
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>open (QuickBooks::Session)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/session.rb, line 69</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>
|
15
|
+
<span class="ruby-ivar">@soap_client</span> = <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">WSDLDriverFactory</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"https://#{@host}:#{@port}/QBXMLRemote?wsdl"</span>).<span class="ruby-identifier">create_rpc_driver</span>
|
16
|
+
<span class="ruby-ivar">@ticket</span> = <span class="ruby-ivar">@soap_client</span>.<span class="ruby-constant">OpenConnectionAndBeginSession</span>(<span class="ruby-ivar">@user</span>, <span class="ruby-ivar">@password</span>, <span class="ruby-value str">''</span>, <span class="ruby-ivar">@application_name</span>, <span class="ruby-value str">''</span>, <span class="ruby-ivar">@mode</span>)
|
17
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@ticket</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>send (QuickBooks::Session)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/session.rb, line 76</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">xml</span>)
|
15
|
+
<span class="ruby-ivar">@soap_client</span>.<span class="ruby-constant">ProcessRequest</span>(<span class="ruby-ivar">@ticket</span>, <span class="ruby-identifier">xml</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>close (QuickBooks::Session)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/session.rb, line 81</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">connected?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@soap_client</span>
|
16
|
+
<span class="ruby-ivar">@soap_client</span>.<span class="ruby-constant">CloseConnection</span>(<span class="ruby-ivar">@ticket</span>)
|
17
|
+
<span class="ruby-ivar">@soap_client</span> = <span class="ruby-keyword kw">nil</span>
|
18
|
+
<span class="ruby-ivar">@ticket</span> = <span class="ruby-keyword kw">nil</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|