shipping 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/rdoctask'
5
5
  require 'rake/gempackagetask'
6
6
  require 'rake/contrib/rubyforgepublisher'
7
7
 
8
- PKG_VERSION = "1.1.0"
8
+ PKG_VERSION = "1.2.0"
9
9
 
10
10
  PKG_FILES = FileList[
11
11
  "lib/**/*", "bin/*", "test/**/*", "[A-Z]*", "Rakefile", "doc/**/*"
@@ -11,7 +11,7 @@ module Shipping
11
11
  attr_writer :ups_account, :ups_user, :ups_password
12
12
  attr_writer :fedex_account, :fedex_meter, :fedex_url
13
13
 
14
- attr_accessor :name, :phone, :email, :address, :city, :state, :zip, :country
14
+ attr_accessor :name, :phone, :email, :address, :address2, :city, :state, :zip, :country
15
15
  attr_accessor :sender_name, :sender_phone, :sender_email, :sender_address, :sender_city, :sender_state, :sender_zip, :sender_country
16
16
 
17
17
  attr_accessor :weight, :weight_units, :insured_value, :declared_value, :transaction_type, :description
@@ -41,6 +41,89 @@ module Shipping
41
41
  Shipping::UPS.new prepare_vars
42
42
  end
43
43
 
44
+ def self.state_from_zip(zip)
45
+ zip = zip.to_i
46
+ {
47
+ (99500...99929) => "AK",
48
+ (35000...36999) => "AL",
49
+ (71600...72999) => "AR",
50
+ (75502...75505) => "AR",
51
+ (85000...86599) => "AZ",
52
+ (90000...96199) => "CA",
53
+ (80000...81699) => "CO",
54
+ (6000...6999) => "CT",
55
+ (20000...20099) => "DC",
56
+ (20200...20599) => "DC",
57
+ (19700...19999) => "DE",
58
+ (32000...33999) => "FL",
59
+ (34100...34999) => "FL",
60
+ (30000...31999) => "GA",
61
+ (96700...96798) => "HI",
62
+ (96800...96899) => "HI",
63
+ (50000...52999) => "IA",
64
+ (83200...83899) => "ID",
65
+ (60000...62999) => "IL",
66
+ (46000...47999) => "IN",
67
+ (66000...67999) => "KS",
68
+ (40000...42799) => "KY",
69
+ (45275...45275) => "KY",
70
+ (70000...71499) => "LA",
71
+ (71749...71749) => "LA",
72
+ (1000...2799) => "MA",
73
+ (20331...20331) => "MD",
74
+ (20600...21999) => "MD",
75
+ (3801...3801) => "ME",
76
+ (3804...3804) => "ME",
77
+ (3900...4999) => "ME",
78
+ (48000...49999) => "MI",
79
+ (55000...56799) => "MN",
80
+ (63000...65899) => "MO",
81
+ (38600...39799) => "MS",
82
+ (59000...59999) => "MT",
83
+ (27000...28999) => "NC",
84
+ (58000...58899) => "ND",
85
+ (68000...69399) => "NE",
86
+ (3000...3803) => "NH",
87
+ (3809...3899) => "NH",
88
+ (7000...8999) => "NJ",
89
+ (87000...88499) => "NM",
90
+ (89000...89899) => "NV",
91
+ (400...599) => "NY",
92
+ (6390...6390) => "NY",
93
+ (9000...14999) => "NY",
94
+ (43000...45999) => "OH",
95
+ (73000...73199) => "OK",
96
+ (73400...74999) => "OK",
97
+ (97000...97999) => "OR",
98
+ (15000...19699) => "PA",
99
+ (2800...2999) => "RI",
100
+ (6379...6379) => "RI",
101
+ (29000...29999) => "SC",
102
+ (57000...57799) => "SD",
103
+ (37000...38599) => "TN",
104
+ (72395...72395) => "TN",
105
+ (73300...73399) => "TX",
106
+ (73949...73949) => "TX",
107
+ (75000...79999) => "TX",
108
+ (88501...88599) => "TX",
109
+ (84000...84799) => "UT",
110
+ (20105...20199) => "VA",
111
+ (20301...20301) => "VA",
112
+ (20370...20370) => "VA",
113
+ (22000...24699) => "VA",
114
+ (5000...5999) => "VT",
115
+ (98000...99499) => "WA",
116
+ (49936...49936) => "WI",
117
+ (53000...54999) => "WI",
118
+ (24700...26899) => "WV",
119
+ (82000...83199) => "WY"
120
+ }.each do |range, state|
121
+ return state if range.include? zip
122
+ end
123
+
124
+ raise ShippingError, "Invalid zip code"
125
+ end
126
+
44
127
  private
45
128
 
46
129
  def prepare_vars #:nodoc:
@@ -72,6 +155,5 @@ module Shipping
72
155
  end
73
156
 
74
157
  STATES = {"al" => "alabama", "ne" => "nebraska", "ak" => "alaska", "nv" => "nevada", "az" => "arizona", "nh" => "new hampshire", "ar" => "arkansas", "nj" => "new jersey", "ca" => "california", "nm" => "new mexico", "co" => "colorado", "ny" => "new york", "ct" => "connecticut", "nc" => "north carolina", "de" => "delaware", "nd" => "north dakota", "fl" => "florida", "oh" => "ohio", "ga" => "georgia", "ok" => "oklahoma", "hi" => "hawaii", "or" => "oregon", "id" => "idaho", "pa" => "pennsylvania", "il" => "illinois", "pr" => "puerto rico", "in" => "indiana", "ri" => "rhode island", "ia" => "iowa", "sc" => "south carolina", "ks" => "kansas", "sd" => "south dakota", "ky" => "kentucky", "tn" => "tennessee", "la" => "louisiana", "tx" => "texas", "me" => "maine", "ut" => "utah", "md" => "maryland", "vt" => "vermont", "ma" => "massachusetts", "va" => "virginia", "mi" => "michigan", "wa" => "washington", "mn" => "minnesota", "dc" => "district of columbia", "ms" => "mississippi", "wv" => "west virginia", "mo" => "missouri", "wi" => "wisconsin", "mt" => "montana", "wy" => "wyoming"}
75
-
76
158
  end
77
159
  end
@@ -278,10 +278,12 @@ module Shipping
278
278
  b.WeightUnits @weight_units || 'LBS'
279
279
  b.Weight @weight
280
280
  b.OriginAddress { |b|
281
+ b.StateOrProvinceCode self.class.state_from_zip(@sender_zip)
281
282
  b.PostalCode @sender_zip
282
283
  b.CountryCode @sender_country_code || "US"
283
284
  }
284
285
  b.DestinationAddress { |b|
286
+ b.StateOrProvinceCode self.class.state_from_zip(@zip)
285
287
  b.PostalCode @zip
286
288
  b.CountryCode @country || "US"
287
289
  }
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: shipping
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2005-06-02
6
+ version: 1.2.0
7
+ date: 2005-08-02
8
8
  summary: A general shipping module to find out the shipping prices via UPS or FedEx.
9
9
  require_paths:
10
10
  - lib
@@ -42,40 +42,6 @@ files:
42
42
  - LICENSE
43
43
  - Rakefile
44
44
  - README
45
- - doc/classes
46
- - doc/created.rid
47
- - doc/files
48
- - doc/fr_class_index.html
49
- - doc/fr_file_index.html
50
- - doc/fr_method_index.html
51
- - doc/index.html
52
- - doc/rdoc-style.css
53
- - doc/classes/Shipping
54
- - doc/classes/Shipping.html
55
- - doc/classes/Shipping/Base.html
56
- - doc/classes/Shipping/Base.src
57
- - doc/classes/Shipping/FedEx.html
58
- - doc/classes/Shipping/FedEx.src
59
- - doc/classes/Shipping/ShippingError.html
60
- - doc/classes/Shipping/UPS.html
61
- - doc/classes/Shipping/UPS.src
62
- - doc/classes/Shipping/Base.src/M000008.html
63
- - doc/classes/Shipping/Base.src/M000009.html
64
- - doc/classes/Shipping/Base.src/M000010.html
65
- - doc/classes/Shipping/FedEx.src/M000003.html
66
- - doc/classes/Shipping/FedEx.src/M000004.html
67
- - doc/classes/Shipping/FedEx.src/M000005.html
68
- - doc/classes/Shipping/FedEx.src/M000006.html
69
- - doc/classes/Shipping/FedEx.src/M000007.html
70
- - doc/classes/Shipping/UPS.src/M000001.html
71
- - doc/classes/Shipping/UPS.src/M000002.html
72
- - doc/files/lib
73
- - doc/files/README.html
74
- - doc/files/lib/shipping
75
- - doc/files/lib/shipping_rb.html
76
- - doc/files/lib/shipping/base_rb.html
77
- - doc/files/lib/shipping/fedex_rb.html
78
- - doc/files/lib/shipping/ups_rb.html
79
45
  test_files: []
80
46
  rdoc_options: []
81
47
  extra_rdoc_files: []
@@ -1,141 +0,0 @@
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: Shipping</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">Shipping</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/shipping/base_rb.html">
59
- lib/shipping/base.rb
60
- </a>
61
- <br />
62
- <a href="../files/lib/shipping/fedex_rb.html">
63
- lib/shipping/fedex.rb
64
- </a>
65
- <br />
66
- <a href="../files/lib/shipping/ups_rb.html">
67
- lib/shipping/ups.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
- <table>
85
- <tr><td valign="top">Author:</td><td>Lucas Carlson (<a href="mailto:lucas@rufy.com">lucas@rufy.com</a>)
86
-
87
- </td></tr>
88
- <tr><td valign="top">Copyright:</td><td>Copyright &#169; 2005 Lucas Carlson
89
-
90
- </td></tr>
91
- <tr><td valign="top">License:</td><td>LGPL
92
-
93
- </td></tr>
94
- </table>
95
- <p>
96
- See <a
97
- href="http://www.fedex.com/us/solutions/wis/pdf/xml_transguide.pdf?link=4">www.fedex.com/us/solutions/wis/pdf/xml_transguide.pdf?link=4</a>
98
- for the full XML-based API
99
- </p>
100
-
101
- </div>
102
-
103
-
104
- </div>
105
-
106
-
107
- </div>
108
-
109
-
110
- <!-- if includes -->
111
-
112
- <div id="section">
113
-
114
- <div id="class-list">
115
- <h3 class="section-bar">Classes and Modules</h3>
116
-
117
- Class <a href="Shipping/Base.html" class="link">Shipping::Base</a><br />
118
- Class <a href="Shipping/FedEx.html" class="link">Shipping::FedEx</a><br />
119
- Class <a href="Shipping/ShippingError.html" class="link">Shipping::ShippingError</a><br />
120
- Class <a href="Shipping/UPS.html" class="link">Shipping::UPS</a><br />
121
-
122
- </div>
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
- <!-- if method_list -->
131
-
132
-
133
- </div>
134
-
135
-
136
- <div id="validator-badges">
137
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
138
- </div>
139
-
140
- </body>
141
- </html>
@@ -1,393 +0,0 @@
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: Shipping::Base</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">Shipping::Base</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/shipping/base_rb.html">
59
- lib/shipping/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
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000009">fedex</a>&nbsp;&nbsp;
90
- <a href="#M000008">new</a>&nbsp;&nbsp;
91
- <a href="#M000010">ups</a>&nbsp;&nbsp;
92
- </div>
93
- </div>
94
-
95
- </div>
96
-
97
-
98
- <!-- if includes -->
99
-
100
- <div id="section">
101
-
102
-
103
- <div id="constants-list">
104
- <h3 class="section-bar">Constants</h3>
105
-
106
- <div class="name-list">
107
- <table summary="Constants">
108
- <tr class="top-aligned-row context-row">
109
- <td class="context-item-name">STATES</td>
110
- <td>=</td>
111
- <td class="context-item-value">{&quot;al&quot; =&gt; &quot;alabama&quot;, &quot;ne&quot; =&gt; &quot;nebraska&quot;, &quot;ak&quot; =&gt; &quot;alaska&quot;, &quot;nv&quot; =&gt; &quot;nevada&quot;, &quot;az&quot; =&gt; &quot;arizona&quot;, &quot;nh&quot; =&gt; &quot;new hampshire&quot;, &quot;ar&quot; =&gt; &quot;arkansas&quot;, &quot;nj&quot; =&gt; &quot;new jersey&quot;, &quot;ca&quot; =&gt; &quot;california&quot;, &quot;nm&quot; =&gt; &quot;new mexico&quot;, &quot;co&quot; =&gt; &quot;colorado&quot;, &quot;ny&quot; =&gt; &quot;new york&quot;, &quot;ct&quot; =&gt; &quot;connecticut&quot;, &quot;nc&quot; =&gt; &quot;north carolina&quot;, &quot;de&quot; =&gt; &quot;delaware&quot;, &quot;nd&quot; =&gt; &quot;north dakota&quot;, &quot;fl&quot; =&gt; &quot;florida&quot;, &quot;oh&quot; =&gt; &quot;ohio&quot;, &quot;ga&quot; =&gt; &quot;georgia&quot;, &quot;ok&quot; =&gt; &quot;oklahoma&quot;, &quot;hi&quot; =&gt; &quot;hawaii&quot;, &quot;or&quot; =&gt; &quot;oregon&quot;, &quot;id&quot; =&gt; &quot;idaho&quot;, &quot;pa&quot; =&gt; &quot;pennsylvania&quot;, &quot;il&quot; =&gt; &quot;illinois&quot;, &quot;pr&quot; =&gt; &quot;puerto rico&quot;, &quot;in&quot; =&gt; &quot;indiana&quot;, &quot;ri&quot; =&gt; &quot;rhode island&quot;, &quot;ia&quot; =&gt; &quot;iowa&quot;, &quot;sc&quot; =&gt; &quot;south carolina&quot;, &quot;ks&quot; =&gt; &quot;kansas&quot;, &quot;sd&quot; =&gt; &quot;south dakota&quot;, &quot;ky&quot; =&gt; &quot;kentucky&quot;, &quot;tn&quot; =&gt; &quot;tennessee&quot;, &quot;la&quot; =&gt; &quot;louisiana&quot;, &quot;tx&quot; =&gt; &quot;texas&quot;, &quot;me&quot; =&gt; &quot;maine&quot;, &quot;ut&quot; =&gt; &quot;utah&quot;, &quot;md&quot; =&gt; &quot;maryland&quot;, &quot;vt&quot; =&gt; &quot;vermont&quot;, &quot;ma&quot; =&gt; &quot;massachusetts&quot;, &quot;va&quot; =&gt; &quot;virginia&quot;, &quot;mi&quot; =&gt; &quot;michigan&quot;, &quot;wa&quot; =&gt; &quot;washington&quot;, &quot;mn&quot; =&gt; &quot;minnesota&quot;, &quot;dc&quot; =&gt; &quot;district of columbia&quot;, &quot;ms&quot; =&gt; &quot;mississippi&quot;, &quot;wv&quot; =&gt; &quot;west virginia&quot;, &quot;mo&quot; =&gt; &quot;missouri&quot;, &quot;wi&quot; =&gt; &quot;wisconsin&quot;, &quot;mt&quot; =&gt; &quot;montana&quot;, &quot;wy&quot; =&gt; &quot;wyoming&quot;}</td>
112
- </tr>
113
- </table>
114
- </div>
115
- </div>
116
-
117
-
118
-
119
- <div id="attribute-list">
120
- <h3 class="section-bar">Attributes</h3>
121
-
122
- <div class="name-list">
123
- <table>
124
- <tr class="top-aligned-row context-row">
125
- <td class="context-item-name">address</td>
126
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
127
- <td class="context-item-desc"></td>
128
- </tr>
129
- <tr class="top-aligned-row context-row">
130
- <td class="context-item-name">city</td>
131
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
132
- <td class="context-item-desc"></td>
133
- </tr>
134
- <tr class="top-aligned-row context-row">
135
- <td class="context-item-name">country</td>
136
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
137
- <td class="context-item-desc"></td>
138
- </tr>
139
- <tr class="top-aligned-row context-row">
140
- <td class="context-item-name">currency_code</td>
141
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
142
- <td class="context-item-desc"></td>
143
- </tr>
144
- <tr class="top-aligned-row context-row">
145
- <td class="context-item-name">data</td>
146
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
147
- <td class="context-item-desc"></td>
148
- </tr>
149
- <tr class="top-aligned-row context-row">
150
- <td class="context-item-name">declared_value</td>
151
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
152
- <td class="context-item-desc"></td>
153
- </tr>
154
- <tr class="top-aligned-row context-row">
155
- <td class="context-item-name">description</td>
156
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
157
- <td class="context-item-desc"></td>
158
- </tr>
159
- <tr class="top-aligned-row context-row">
160
- <td class="context-item-name">dropoff_type</td>
161
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
162
- <td class="context-item-desc"></td>
163
- </tr>
164
- <tr class="top-aligned-row context-row">
165
- <td class="context-item-name">email</td>
166
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
167
- <td class="context-item-desc"></td>
168
- </tr>
169
- <tr class="top-aligned-row context-row">
170
- <td class="context-item-name">fedex_account</td>
171
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
172
- <td class="context-item-desc"></td>
173
- </tr>
174
- <tr class="top-aligned-row context-row">
175
- <td class="context-item-name">fedex_meter</td>
176
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
177
- <td class="context-item-desc"></td>
178
- </tr>
179
- <tr class="top-aligned-row context-row">
180
- <td class="context-item-name">fedex_url</td>
181
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
182
- <td class="context-item-desc"></td>
183
- </tr>
184
- <tr class="top-aligned-row context-row">
185
- <td class="context-item-name">insured_value</td>
186
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
187
- <td class="context-item-desc"></td>
188
- </tr>
189
- <tr class="top-aligned-row context-row">
190
- <td class="context-item-name">name</td>
191
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
192
- <td class="context-item-desc"></td>
193
- </tr>
194
- <tr class="top-aligned-row context-row">
195
- <td class="context-item-name">package_total</td>
196
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
197
- <td class="context-item-desc"></td>
198
- </tr>
199
- <tr class="top-aligned-row context-row">
200
- <td class="context-item-name">packaging_type</td>
201
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
202
- <td class="context-item-desc"></td>
203
- </tr>
204
- <tr class="top-aligned-row context-row">
205
- <td class="context-item-name">pay_type</td>
206
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
207
- <td class="context-item-desc"></td>
208
- </tr>
209
- <tr class="top-aligned-row context-row">
210
- <td class="context-item-name">phone</td>
211
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
212
- <td class="context-item-desc"></td>
213
- </tr>
214
- <tr class="top-aligned-row context-row">
215
- <td class="context-item-name">plain_response</td>
216
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
217
- <td class="context-item-desc"></td>
218
- </tr>
219
- <tr class="top-aligned-row context-row">
220
- <td class="context-item-name">required</td>
221
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
222
- <td class="context-item-desc"></td>
223
- </tr>
224
- <tr class="top-aligned-row context-row">
225
- <td class="context-item-name">response</td>
226
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
227
- <td class="context-item-desc"></td>
228
- </tr>
229
- <tr class="top-aligned-row context-row">
230
- <td class="context-item-name">sender_address</td>
231
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
232
- <td class="context-item-desc"></td>
233
- </tr>
234
- <tr class="top-aligned-row context-row">
235
- <td class="context-item-name">sender_city</td>
236
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
237
- <td class="context-item-desc"></td>
238
- </tr>
239
- <tr class="top-aligned-row context-row">
240
- <td class="context-item-name">sender_country</td>
241
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
242
- <td class="context-item-desc"></td>
243
- </tr>
244
- <tr class="top-aligned-row context-row">
245
- <td class="context-item-name">sender_email</td>
246
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
247
- <td class="context-item-desc"></td>
248
- </tr>
249
- <tr class="top-aligned-row context-row">
250
- <td class="context-item-name">sender_name</td>
251
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
252
- <td class="context-item-desc"></td>
253
- </tr>
254
- <tr class="top-aligned-row context-row">
255
- <td class="context-item-name">sender_phone</td>
256
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
257
- <td class="context-item-desc"></td>
258
- </tr>
259
- <tr class="top-aligned-row context-row">
260
- <td class="context-item-name">sender_state</td>
261
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
262
- <td class="context-item-desc"></td>
263
- </tr>
264
- <tr class="top-aligned-row context-row">
265
- <td class="context-item-name">sender_zip</td>
266
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
267
- <td class="context-item-desc"></td>
268
- </tr>
269
- <tr class="top-aligned-row context-row">
270
- <td class="context-item-name">service_type</td>
271
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
272
- <td class="context-item-desc"></td>
273
- </tr>
274
- <tr class="top-aligned-row context-row">
275
- <td class="context-item-name">ship_date</td>
276
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
277
- <td class="context-item-desc"></td>
278
- </tr>
279
- <tr class="top-aligned-row context-row">
280
- <td class="context-item-name">state</td>
281
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
282
- <td class="context-item-desc"></td>
283
- </tr>
284
- <tr class="top-aligned-row context-row">
285
- <td class="context-item-name">transaction_type</td>
286
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
287
- <td class="context-item-desc"></td>
288
- </tr>
289
- <tr class="top-aligned-row context-row">
290
- <td class="context-item-name">ups_account</td>
291
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
292
- <td class="context-item-desc"></td>
293
- </tr>
294
- <tr class="top-aligned-row context-row">
295
- <td class="context-item-name">ups_password</td>
296
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
297
- <td class="context-item-desc"></td>
298
- </tr>
299
- <tr class="top-aligned-row context-row">
300
- <td class="context-item-name">ups_user</td>
301
- <td class="context-item-value">&nbsp;[W]&nbsp;</td>
302
- <td class="context-item-desc"></td>
303
- </tr>
304
- <tr class="top-aligned-row context-row">
305
- <td class="context-item-name">weight</td>
306
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
307
- <td class="context-item-desc"></td>
308
- </tr>
309
- <tr class="top-aligned-row context-row">
310
- <td class="context-item-name">weight_units</td>
311
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
312
- <td class="context-item-desc"></td>
313
- </tr>
314
- <tr class="top-aligned-row context-row">
315
- <td class="context-item-name">zip</td>
316
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
317
- <td class="context-item-desc"></td>
318
- </tr>
319
- </table>
320
- </div>
321
- </div>
322
-
323
-
324
-
325
- <!-- if method_list -->
326
- <div id="methods">
327
- <h3 class="section-bar">Public Class methods</h3>
328
-
329
- <div id="method-M000008" class="method-detail">
330
- <a name="M000008"></a>
331
-
332
- <div class="method-heading">
333
- <a href="Base.src/M000008.html" target="Code" class="method-signature"
334
- onclick="popupCode('Base.src/M000008.html');return false;">
335
- <span class="method-name">new</span><span class="method-args">(options = {})</span>
336
- </a>
337
- </div>
338
-
339
- <div class="method-description">
340
- </div>
341
- </div>
342
-
343
- <h3 class="section-bar">Public Instance methods</h3>
344
-
345
- <div id="method-M000009" class="method-detail">
346
- <a name="M000009"></a>
347
-
348
- <div class="method-heading">
349
- <a href="Base.src/M000009.html" target="Code" class="method-signature"
350
- onclick="popupCode('Base.src/M000009.html');return false;">
351
- <span class="method-name">fedex</span><span class="method-args">()</span>
352
- </a>
353
- </div>
354
-
355
- <div class="method-description">
356
- <p>
357
- Initializes an instance of <a href="FedEx.html">Shipping::FedEx</a> with
358
- the same instance variables as the base object
359
- </p>
360
- </div>
361
- </div>
362
-
363
- <div id="method-M000010" class="method-detail">
364
- <a name="M000010"></a>
365
-
366
- <div class="method-heading">
367
- <a href="Base.src/M000010.html" target="Code" class="method-signature"
368
- onclick="popupCode('Base.src/M000010.html');return false;">
369
- <span class="method-name">ups</span><span class="method-args">()</span>
370
- </a>
371
- </div>
372
-
373
- <div class="method-description">
374
- <p>
375
- Initializes an instance of <a href="UPS.html">Shipping::UPS</a> with the
376
- same instance variables as the base object
377
- </p>
378
- </div>
379
- </div>
380
-
381
-
382
- </div>
383
-
384
-
385
- </div>
386
-
387
-
388
- <div id="validator-badges">
389
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
390
- </div>
391
-
392
- </body>
393
- </html>