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
data/LICENSE
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Copyright (c) 2006 Chris Bruce
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
4
|
+
and associated documentation files (the "Software"), to deal in the Software without restriction,
|
5
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
6
|
+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
7
|
+
subject to the following conditions:
|
8
|
+
|
9
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
10
|
+
portions of the Software.
|
11
|
+
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
13
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
14
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
15
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
16
|
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
== Welcome to QuickBooks for Ruby
|
2
|
+
|
3
|
+
QuickBooks is a module that allows you to connect to QuickBooks and QuickBooks Merchant
|
4
|
+
Services via the QuickBooks SDK (QBXML). You need to configure the QuickBooks Remote Data
|
5
|
+
Sharing Server (RDS) in order to connect. The RDS server allows you to use the SDK over
|
6
|
+
https webservice. This means that you can communicate with QuickBooks from non-Windows
|
7
|
+
operating systems.
|
8
|
+
|
9
|
+
== Download
|
10
|
+
|
11
|
+
* http://rubyforge.org/projects/quickbooks
|
12
|
+
* svn checkout svn://rubyforge.org/var/svn/quickbooks/trunk
|
13
|
+
|
14
|
+
== Status
|
15
|
+
|
16
|
+
This library is a work in progress and has very limited capabilities right now. There is
|
17
|
+
a Session class that will let you connect to QuickBooks and send QBXML directly. I am in
|
18
|
+
the process of implementing all the messages that you can send and recieve in an easy to
|
19
|
+
use class structure.
|
20
|
+
|
21
|
+
== Usage
|
22
|
+
|
23
|
+
You can use the QuickBooks::Session class to talk to the RDS server:
|
24
|
+
|
25
|
+
session = QuickBooks::Session.new('admin', 'pass123', 'My Test App')
|
26
|
+
session.open
|
27
|
+
xml = <<EOL
|
28
|
+
<?xml version="1.0"?>
|
29
|
+
<?qbxml version="3.0"?>
|
30
|
+
<QBXML>
|
31
|
+
<QBXMLMsgsRq onError="continueOnError">
|
32
|
+
<InvoiceQueryRq requestID="1">
|
33
|
+
<RefNumber>81</RefNumber>
|
34
|
+
<IncludeLineItems>true</IncludeLineItems>
|
35
|
+
</InvoiceQueryRq>
|
36
|
+
</QBXMLMsgsRq>
|
37
|
+
</QBXML>
|
38
|
+
EOL
|
39
|
+
session.send(xml)
|
40
|
+
session.close
|
41
|
+
|
42
|
+
== Authors
|
43
|
+
|
44
|
+
* Chris Bruce (mailto:chrisabruce@yahoo.com)
|
45
|
+
|
46
|
+
This library is released under the terms of the MIT License.
|
data/Rakefile
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
require 'rake/testtask'
|
4
|
+
require 'rake/rdoctask'
|
5
|
+
require 'rake/gempackagetask'
|
6
|
+
require 'rake/contrib/rubyforgepublisher'
|
7
|
+
|
8
|
+
PKG_VERSION = "0.0.1"
|
9
|
+
|
10
|
+
PKG_FILES = FileList[
|
11
|
+
"lib/**/*", "test/**/*", "[A-Z]*", "Rakefile", "doc/**/*"
|
12
|
+
]
|
13
|
+
|
14
|
+
desc "Default Task"
|
15
|
+
task :default => [ :test ]
|
16
|
+
|
17
|
+
# Run the unit tests
|
18
|
+
desc "Run all unit tests"
|
19
|
+
Rake::TestTask.new("test") { |t|
|
20
|
+
t.libs << "lib"
|
21
|
+
t.pattern = 'test/*/*_test.rb'
|
22
|
+
t.verbose = true
|
23
|
+
}
|
24
|
+
|
25
|
+
# Make a console, useful when working on tests
|
26
|
+
desc "Generate a test console"
|
27
|
+
task :console do
|
28
|
+
verbose( false ) { sh "irb -I lib/ -r 'quickbooks'" }
|
29
|
+
end
|
30
|
+
|
31
|
+
# Genereate the RDoc documentation
|
32
|
+
desc "Create documentation"
|
33
|
+
Rake::RDocTask.new("doc") { |rdoc|
|
34
|
+
rdoc.title = "QuickBooks for Ruby"
|
35
|
+
rdoc.rdoc_dir = 'doc'
|
36
|
+
rdoc.rdoc_files.include('README')
|
37
|
+
rdoc.rdoc_files.include('LICENSE')
|
38
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
39
|
+
}
|
40
|
+
|
41
|
+
# Genereate the package
|
42
|
+
spec = Gem::Specification.new do |s|
|
43
|
+
|
44
|
+
#### Basic information.
|
45
|
+
|
46
|
+
s.name = 'quickbooks'
|
47
|
+
s.version = PKG_VERSION
|
48
|
+
s.summary = <<-EOF
|
49
|
+
A module to connect to QuickBooks through the QuickBooks SDK.
|
50
|
+
EOF
|
51
|
+
s.description = <<-EOF
|
52
|
+
A module to connect to QuickBooks and QuickBooks Merchant Services through the QuickBooks SDK.
|
53
|
+
EOF
|
54
|
+
|
55
|
+
#### Which files are to be included in this gem? Everything! (Except CVS directories.)
|
56
|
+
|
57
|
+
s.files = PKG_FILES
|
58
|
+
|
59
|
+
#### Load-time details: library and application (you will need one or both).
|
60
|
+
|
61
|
+
s.require_path = 'lib'
|
62
|
+
s.autorequire = 'quickbooks'
|
63
|
+
|
64
|
+
#### Documentation and testing.
|
65
|
+
|
66
|
+
s.has_rdoc = true
|
67
|
+
|
68
|
+
#### Author and project details.
|
69
|
+
|
70
|
+
s.author = "Chris Bruce"
|
71
|
+
s.email = "chrisabruce@yahoo.com"
|
72
|
+
s.homepage = "http://quickbooks.rubyforge.org"
|
73
|
+
end
|
74
|
+
|
75
|
+
Rake::GemPackageTask.new(spec) do |pkg|
|
76
|
+
pkg.need_zip = false
|
77
|
+
pkg.need_tar = false
|
78
|
+
end
|
79
|
+
|
80
|
+
desc "Report code statistics (KLOCs, etc) from the application"
|
81
|
+
task :stats do
|
82
|
+
require 'code_statistics'
|
83
|
+
CodeStatistics.new(
|
84
|
+
["Library", "lib"],
|
85
|
+
["Units", "test"]
|
86
|
+
).to_s
|
87
|
+
end
|
88
|
+
|
89
|
+
desc "Publish new documentation"
|
90
|
+
task :publish => [:doc] do
|
91
|
+
`pscp -r doc/* rubyforge:/var/www/gforge-projects/quickbooks/`
|
92
|
+
end
|
@@ -0,0 +1,148 @@
|
|
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>Module: QuickBooks</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>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">QuickBooks</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
|
+
<a href="../files/lib/quickbooks/models/base_rb.html">
|
63
|
+
lib/quickbooks/models/base.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
<a href="../files/lib/quickbooks/models/customer_rb.html">
|
67
|
+
lib/quickbooks/models/customer.rb
|
68
|
+
</a>
|
69
|
+
<br />
|
70
|
+
</td>
|
71
|
+
</tr>
|
72
|
+
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
<div id="description">
|
84
|
+
<p>
|
85
|
+
Copyright © 2006 Chris Bruce
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
89
|
+
copy of this software and associated documentation files (the
|
90
|
+
"Software"), to deal in the Software without restriction,
|
91
|
+
including without limitation the rights to use, copy, modify, merge,
|
92
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
93
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
94
|
+
following conditions:
|
95
|
+
</p>
|
96
|
+
<p>
|
97
|
+
The above copyright notice and this permission notice shall be included in
|
98
|
+
all copies or substantial portions of the Software.
|
99
|
+
</p>
|
100
|
+
<p>
|
101
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
102
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
103
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
104
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
105
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
106
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
107
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
108
|
+
</p>
|
109
|
+
|
110
|
+
</div>
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
</div>
|
117
|
+
|
118
|
+
|
119
|
+
<!-- if includes -->
|
120
|
+
|
121
|
+
<div id="section">
|
122
|
+
|
123
|
+
<div id="class-list">
|
124
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
125
|
+
|
126
|
+
Module <a href="QuickBooks/Models.html" class="link">QuickBooks::Models</a><br />
|
127
|
+
Class <a href="QuickBooks/Session.html" class="link">QuickBooks::Session</a><br />
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<!-- if method_list -->
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
<div id="validator-badges">
|
144
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
</body>
|
148
|
+
</html>
|
@@ -0,0 +1,121 @@
|
|
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>Module: QuickBooks::Models</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>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">QuickBooks::Models</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/quickbooks/models/base_rb.html">
|
59
|
+
lib/quickbooks/models/base.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../../files/lib/quickbooks/models/customer_rb.html">
|
63
|
+
lib/quickbooks/models/customer.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
|
69
|
+
</table>
|
70
|
+
</div>
|
71
|
+
<!-- banner header -->
|
72
|
+
|
73
|
+
<div id="bodyContent">
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<div id="contextContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
<!-- if includes -->
|
88
|
+
|
89
|
+
<div id="section">
|
90
|
+
|
91
|
+
<div id="class-list">
|
92
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
93
|
+
|
94
|
+
Class <a href="Models/Address.html" class="link">QuickBooks::Models::Address</a><br />
|
95
|
+
Class <a href="Models/Base.html" class="link">QuickBooks::Models::Base</a><br />
|
96
|
+
Class <a href="Models/CreditCardInfo.html" class="link">QuickBooks::Models::CreditCardInfo</a><br />
|
97
|
+
Class <a href="Models/Customer.html" class="link">QuickBooks::Models::Customer</a><br />
|
98
|
+
Class <a href="Models/DataExt.html" class="link">QuickBooks::Models::DataExt</a><br />
|
99
|
+
Class <a href="Models/ListItem.html" class="link">QuickBooks::Models::ListItem</a><br />
|
100
|
+
Class <a href="Models/Transaction.html" class="link">QuickBooks::Models::Transaction</a><br />
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if method_list -->
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
<div id="validator-badges">
|
117
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
118
|
+
</div>
|
119
|
+
|
120
|
+
</body>
|
121
|
+
</html>
|
@@ -0,0 +1,159 @@
|
|
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::Models::Address</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::Models::Address</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/quickbooks/models/base_rb.html">
|
59
|
+
lib/quickbooks/models/base.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
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<!-- if includes -->
|
90
|
+
|
91
|
+
<div id="section">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<div id="attribute-list">
|
98
|
+
<h3 class="section-bar">Attributes</h3>
|
99
|
+
|
100
|
+
<div class="name-list">
|
101
|
+
<table>
|
102
|
+
<tr class="top-aligned-row context-row">
|
103
|
+
<td class="context-item-name">addr1</td>
|
104
|
+
<td class="context-item-value"> [RW] </td>
|
105
|
+
<td class="context-item-desc"></td>
|
106
|
+
</tr>
|
107
|
+
<tr class="top-aligned-row context-row">
|
108
|
+
<td class="context-item-name">addr2</td>
|
109
|
+
<td class="context-item-value"> [RW] </td>
|
110
|
+
<td class="context-item-desc"></td>
|
111
|
+
</tr>
|
112
|
+
<tr class="top-aligned-row context-row">
|
113
|
+
<td class="context-item-name">addr3</td>
|
114
|
+
<td class="context-item-value"> [RW] </td>
|
115
|
+
<td class="context-item-desc"></td>
|
116
|
+
</tr>
|
117
|
+
<tr class="top-aligned-row context-row">
|
118
|
+
<td class="context-item-name">addr4</td>
|
119
|
+
<td class="context-item-value"> [RW] </td>
|
120
|
+
<td class="context-item-desc"></td>
|
121
|
+
</tr>
|
122
|
+
<tr class="top-aligned-row context-row">
|
123
|
+
<td class="context-item-name">city</td>
|
124
|
+
<td class="context-item-value"> [RW] </td>
|
125
|
+
<td class="context-item-desc"></td>
|
126
|
+
</tr>
|
127
|
+
<tr class="top-aligned-row context-row">
|
128
|
+
<td class="context-item-name">country</td>
|
129
|
+
<td class="context-item-value"> [RW] </td>
|
130
|
+
<td class="context-item-desc"></td>
|
131
|
+
</tr>
|
132
|
+
<tr class="top-aligned-row context-row">
|
133
|
+
<td class="context-item-name">postal_code</td>
|
134
|
+
<td class="context-item-value"> [RW] </td>
|
135
|
+
<td class="context-item-desc"></td>
|
136
|
+
</tr>
|
137
|
+
<tr class="top-aligned-row context-row">
|
138
|
+
<td class="context-item-name">state</td>
|
139
|
+
<td class="context-item-value"> [RW] </td>
|
140
|
+
<td class="context-item-desc"></td>
|
141
|
+
</tr>
|
142
|
+
</table>
|
143
|
+
</div>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<!-- if method_list -->
|
149
|
+
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
<div id="validator-badges">
|
155
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
</body>
|
159
|
+
</html>
|