Skip to content
Browse files

rdoc 1.2.1

  • Loading branch information...
1 parent e9d1356 commit d5a0ceb7a9c5e8e7a6ce0cc42d5ddfa5c098e45f @braintreeps braintreeps committed Apr 13, 2010
View
18 classes/Braintree/Address.html
@@ -844,22 +844,22 @@
<div class="sectiontitle">Public Class Methods</div>
<div class="method">
<div class="title">
-<a name="M000126"></a><b>create</b>(attributes)
+<a name="M000127"></a><b>create</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000127"></a><b>create!</b>(attributes)
+<a name="M000128"></a><b>create!</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000128"></a><b>delete</b>(customer_or_customer_id, address_id)
+<a name="M000129"></a><b>delete</b>(customer_or_customer_id, address_id)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000129"></a><b>find</b>(customer_or_customer_id, address_id)
+<a name="M000130"></a><b>find</b>(customer_or_customer_id, address_id)
</div><!-- end class=title -->
<div class="description"> <p>
Finds the address with the given <tt>address_id</tt> that is associated to
@@ -869,32 +869,32 @@
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000130"></a><b>update</b>(customer_or_customer_id, address_id, attributes)
+<a name="M000131"></a><b>update</b>(customer_or_customer_id, address_id, attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000131"></a><b>update!</b>(customer_or_customer_id, address_id, attributes)
+<a name="M000132"></a><b>update!</b>(customer_or_customer_id, address_id, attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<hr />
<div class="sectiontitle">Public Instance Methods</div>
<div class="method">
<div class="title">
-<a name="M000132"></a><b>delete</b>()
+<a name="M000133"></a><b>delete</b>()
</div><!-- end class=title -->
<div class="description"> <p>
Deletes the address.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000133"></a><b>update</b>(attributes)
+<a name="M000134"></a><b>update</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000134"></a><b>update!</b>(attributes)
+<a name="M000135"></a><b>update!</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
</div><!-- end grid_13 -->
View
10 classes/Braintree/AdvancedSearch.html
@@ -738,29 +738,29 @@
<div class="sectiontitle">Public Class Methods</div>
<div class="method">
<div class="title">
-<a name="M000109"></a><b>multiple_value_field</b>(field, options={})
+<a name="M000110"></a><b>multiple_value_field</b>(field, options={})
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000110"></a><b>new</b>()
+<a name="M000111"></a><b>new</b>()
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000108"></a><b>search_fields</b>(*fields)
+<a name="M000109"></a><b>search_fields</b>(*fields)
</div><!-- end class=title -->
</div><!-- end class=method -->
<hr />
<div class="sectiontitle">Public Instance Methods</div>
<div class="method">
<div class="title">
-<a name="M000111"></a><b>add_criteria</b>(key, value)
+<a name="M000112"></a><b>add_criteria</b>(key, value)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000112"></a><b>to_hash</b>()
+<a name="M000113"></a><b>to_hash</b>()
</div><!-- end class=title -->
</div><!-- end class=method -->
</div><!-- end grid_13 -->
View
6 classes/Braintree/AdvancedSearch/MultipleValueNode.html
@@ -738,19 +738,19 @@
<div class="sectiontitle">Public Class Methods</div>
<div class="method">
<div class="title">
-<a name="M000116"></a><b>new</b>(name, parent, options)
+<a name="M000117"></a><b>new</b>(name, parent, options)
</div><!-- end class=title -->
</div><!-- end class=method -->
<hr />
<div class="sectiontitle">Public Instance Methods</div>
<div class="method">
<div class="title">
-<a name="M000117"></a><b>allowed_values</b>()
+<a name="M000118"></a><b>allowed_values</b>()
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000115"></a><b>in</b>(*values)
+<a name="M000116"></a><b>in</b>(*values)
</div><!-- end class=title -->
</div><!-- end class=method -->
</div><!-- end grid_13 -->
View
4 classes/Braintree/AdvancedSearch/SearchNode.html
@@ -738,12 +738,12 @@
<div class="sectiontitle">Public Class Methods</div>
<div class="method">
<div class="title">
-<a name="M000114"></a><b>new</b>(name, parent)
+<a name="M000115"></a><b>new</b>(name, parent)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000113"></a><b>operators</b>(*operator_names)
+<a name="M000114"></a><b>operators</b>(*operator_names)
</div><!-- end class=title -->
</div><!-- end class=method -->
</div><!-- end grid_13 -->
View
84 classes/Braintree/CreditCard.html
@@ -826,110 +826,110 @@
<div class="sectiontitle">Public Class Methods</div>
<div class="method">
<div class="title">
-<a name="M000081"></a><b>create</b>(attributes)
+<a name="M000082"></a><b>create</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000082"></a><b>create!</b>(attributes)
+<a name="M000083"></a><b>create!</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000083"></a><b>create_credit_card_url</b>()
+<a name="M000084"></a><b>create_credit_card_url</b>()
</div><!-- end class=title -->
<div class="description"> <p>
The transparent redirect URL to use to <a
-href="CreditCard.html#M000081">create</a> a <a
-href="CreditCard.html#M000085">credit</a> card.
+href="CreditCard.html#M000082">create</a> a <a
+href="CreditCard.html#M000086">credit</a> card.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000084"></a><b>create_from_transparent_redirect</b>(query_string)
+<a name="M000085"></a><b>create_from_transparent_redirect</b>(query_string)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000085"></a><b>credit</b>(token, transaction_attributes)
+<a name="M000086"></a><b>credit</b>(token, transaction_attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000086"></a><b>credit!</b>(token, transaction_attributes)
+<a name="M000087"></a><b>credit!</b>(token, transaction_attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000087"></a><b>expired</b>(options = {})
+<a name="M000088"></a><b>expired</b>(options = {})
</div><!-- end class=title -->
<div class="description"> <p>
Returns a <a href="PagedCollection.html">PagedCollection</a> of <a
-href="CreditCard.html#M000087">expired</a> <a
-href="CreditCard.html#M000085">credit</a> cards.
+href="CreditCard.html#M000088">expired</a> <a
+href="CreditCard.html#M000086">credit</a> cards.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000088"></a><b>expiring_between</b>(start_date, end_date, options = {})
+<a name="M000089"></a><b>expiring_between</b>(start_date, end_date, options = {})
</div><!-- end class=title -->
<div class="description"> <p>
Returns a <a href="PagedCollection.html">PagedCollection</a> of <a
-href="CreditCard.html#M000085">credit</a> cards expiring between
+href="CreditCard.html#M000086">credit</a> cards expiring between
<tt>start_date</tt> and <tt>end_date</tt> inclusive. Only the month and
year of the start and end dates are used.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000089"></a><b>find</b>(token)
+<a name="M000090"></a><b>find</b>(token)
</div><!-- end class=title -->
<div class="description"> <p>
-Finds the <a href="CreditCard.html#M000085">credit</a> card with the given
+Finds the <a href="CreditCard.html#M000086">credit</a> card with the given
<tt>token</tt>. Raises a <a href="NotFoundError.html">NotFoundError</a> if
it cannot be found.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000090"></a><b>sale</b>(token, transaction_attributes)
+<a name="M000091"></a><b>sale</b>(token, transaction_attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000091"></a><b>sale!</b>(token, transaction_attributes)
+<a name="M000092"></a><b>sale!</b>(token, transaction_attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000092"></a><b>update</b>(token, attributes)
+<a name="M000093"></a><b>update</b>(token, attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000093"></a><b>update!</b>(token, attributes)
+<a name="M000094"></a><b>update!</b>(token, attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000095"></a><b>update_credit_card_url</b>()
+<a name="M000096"></a><b>update_credit_card_url</b>()
</div><!-- end class=title -->
<div class="description"> <p>
The transparent redirect URL to use to <a
-href="CreditCard.html#M000092">update</a> a <a
-href="CreditCard.html#M000085">credit</a> card.
+href="CreditCard.html#M000093">update</a> a <a
+href="CreditCard.html#M000086">credit</a> card.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000094"></a><b>update_from_transparent_redirect</b>(query_string)
+<a name="M000095"></a><b>update_from_transparent_redirect</b>(query_string)
</div><!-- end class=title -->
</div><!-- end class=method -->
<hr />
<div class="sectiontitle">Public Instance Methods</div>
<div class="method">
<div class="title">
-<a name="M000107"></a><b>==</b>(other)
+<a name="M000108"></a><b>==</b>(other)
</div><!-- end class=title -->
<div class="description"> <p>
Returns true if <tt>other</tt> is a <tt><a
@@ -938,76 +938,76 @@
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000096"></a><b>credit</b>(transaction_attributes)
+<a name="M000097"></a><b>credit</b>(transaction_attributes)
</div><!-- end class=title -->
<div class="description"> <p>
-Creates a <a href="CreditCard.html#M000085">credit</a> transaction for this
-<a href="CreditCard.html#M000085">credit</a> card.
+Creates a <a href="CreditCard.html#M000086">credit</a> transaction for this
+<a href="CreditCard.html#M000086">credit</a> card.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000097"></a><b>credit!</b>(transaction_attributes)
+<a name="M000098"></a><b>credit!</b>(transaction_attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000099"></a><b>default?</b>()
+<a name="M000100"></a><b>default?</b>()
</div><!-- end class=title -->
<div class="description"> <p>
-Returns true if this <a href="CreditCard.html#M000085">credit</a> card is
+Returns true if this <a href="CreditCard.html#M000086">credit</a> card is
the customer&#8216;s default.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000098"></a><b>delete</b>()
+<a name="M000099"></a><b>delete</b>()
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000100"></a><b>expiration_date</b>()
+<a name="M000101"></a><b>expiration_date</b>()
</div><!-- end class=title -->
<div class="description"> <p>
Expiration date formatted as MM/YYYY
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000101"></a><b>expired?</b>()
+<a name="M000102"></a><b>expired?</b>()
</div><!-- end class=title -->
<div class="description"> <p>
-Returns true if the <a href="CreditCard.html#M000085">credit</a> card is <a
-href="CreditCard.html#M000087">expired</a>.
+Returns true if the <a href="CreditCard.html#M000086">credit</a> card is <a
+href="CreditCard.html#M000088">expired</a>.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000102"></a><b>masked_number</b>()
+<a name="M000103"></a><b>masked_number</b>()
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000103"></a><b>sale</b>(transaction_attributes)
+<a name="M000104"></a><b>sale</b>(transaction_attributes)
</div><!-- end class=title -->
<div class="description"> <p>
-Creates a <a href="CreditCard.html#M000090">sale</a> transaction for this
-<a href="CreditCard.html#M000085">credit</a> card.
+Creates a <a href="CreditCard.html#M000091">sale</a> transaction for this
+<a href="CreditCard.html#M000086">credit</a> card.
</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000104"></a><b>sale!</b>(transaction_attributes)
+<a name="M000105"></a><b>sale!</b>(transaction_attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000105"></a><b>update</b>(attributes)
+<a name="M000106"></a><b>update</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000106"></a><b>update!</b>(attributes)
+<a name="M000107"></a><b>update!</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
</div><!-- end grid_13 -->
View
2 classes/Braintree/ErrorResult.html
@@ -787,7 +787,7 @@
<div class="sectiontitle">Public Instance Methods</div>
<div class="method">
<div class="title">
-<a name="M000125"></a><b>success?</b>()
+<a name="M000126"></a><b>success?</b>()
</div><!-- end class=title -->
<div class="description"> <p>
Always returns false.
View
16 classes/Braintree/Subscription.html
@@ -876,17 +876,17 @@
<div class="sectiontitle">Public Class Methods</div>
<div class="method">
<div class="title">
-<a name="M000118"></a><b>cancel</b>(subscription_id)
+<a name="M000119"></a><b>cancel</b>(subscription_id)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000119"></a><b>create</b>(attributes)
+<a name="M000120"></a><b>create</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000120"></a><b>find</b>(id)
+<a name="M000121"></a><b>find</b>(id)
</div><!-- end class=title -->
<div class="description"> <p>
Finds the subscription with the given id. Raises a <a
@@ -896,7 +896,7 @@
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000121"></a><b>search</b>(page=1, &amp;block)
+<a name="M000122"></a><b>search</b>(page=1, &amp;block)
</div><!-- end class=title -->
<div class="description"> <p>
Allows searching on subscriptions. There are two types of fields that are
@@ -919,10 +919,10 @@
</li>
</ul>
<p>
-For text fields, you can <a href="Subscription.html#M000121">search</a>
+For text fields, you can <a href="Subscription.html#M000122">search</a>
using the following operators: is, is_not, starts_with, ends_with and
contains. For mutiple value fields, you can <a
-href="Subscription.html#M000121">search</a> using the in operator. An
+href="Subscription.html#M000122">search</a> using the in operator. An
example:
</p>
<pre>
@@ -935,14 +935,14 @@
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000122"></a><b>update</b>(subscription_id, attributes)
+<a name="M000123"></a><b>update</b>(subscription_id, attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
<hr />
<div class="sectiontitle">Public Instance Methods</div>
<div class="method">
<div class="title">
-<a name="M000123"></a><b>==</b>(other)
+<a name="M000124"></a><b>==</b>(other)
</div><!-- end class=title -->
<div class="description"> <p>
True if <tt>other</tt> has the same id.
View
762 classes/Braintree/Transaction/Status.html
@@ -0,0 +1,762 @@
+<html>
+<head>
+ <title>Module: Braintree::Transaction::Status - Braintree Ruby Documentation</title>
+<style type="text/css">
+/* http://meyerweb.com/eric/tools/css/reset/ */
+/* v1.0 | 20080212 */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-size: 100%;
+ vertical-align: baseline;
+ background: transparent;
+}
+body {
+ line-height: 1;
+}
+ol, ul {
+ list-style: none;
+}
+blockquote, q {
+ quotes: none;
+}
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: '';
+ content: none;
+}
+
+/* remember to define focus styles! */
+:focus {
+ outline: 0;
+}
+
+/* remember to highlight inserts somehow! */
+ins {
+ text-decoration: none;
+}
+del {
+ text-decoration: line-through;
+}
+
+/* tables still need 'cellspacing="0"' in the markup */
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+/*
+ 960 Grid System ~ Text CSS.
+ Learn more ~ http://960.gs/
+
+ Licensed under GPL and MIT.
+*/
+
+/* `Basic HTML
+----------------------------------------------------------------------------------------------------*/
+
+body {
+ font: 13px/1.5 Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
+}
+
+a:focus {
+ outline: 1px dotted invert;
+}
+
+hr {
+ border-color: #ccc;
+ border-style: solid;
+ border-width: 1px 0 0;
+ clear: both;
+ height: 0;
+}
+
+/* `Headings
+----------------------------------------------------------------------------------------------------*/
+
+h1 {
+ font-size: 25px;
+}
+
+h2 {
+ font-size: 23px;
+}
+
+h3 {
+ font-size: 21px;
+}
+
+h4 {
+ font-size: 19px;
+}
+
+h5 {
+ font-size: 17px;
+}
+
+h6 {
+ font-size: 15px;
+}
+
+/* `Spacing
+----------------------------------------------------------------------------------------------------*/
+
+ol {
+ list-style: decimal;
+}
+
+ul {
+ list-style: square;
+}
+
+li {
+ margin-left: 30px;
+}
+
+p,
+dl,
+hr,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+ol,
+ul,
+pre,
+table,
+address,
+fieldset {
+ margin-bottom: 20px;
+}
+
+/* `Sizing
+----------------------------------------------------------------------------------------------------*/
+.large {
+ font-size: 2em;
+}
+
+.small {
+ font-size: 0.9em;
+}
+
+/*
+ 960 Grid System ~ Core CSS.
+ Learn more ~ http://960.gs/
+
+ Licensed under GPL and MIT.
+*/
+
+/* `Containers
+----------------------------------------------------------------------------------------------------*/
+
+.container_12,
+.container_16 {
+ margin-left: auto;
+ margin-right: auto;
+ width: 960px;
+}
+
+/* `Grid >> Global
+----------------------------------------------------------------------------------------------------*/
+
+.grid_1,
+.grid_2,
+.grid_3,
+.grid_4,
+.grid_5,
+.grid_6,
+.grid_7,
+.grid_8,
+.grid_9,
+.grid_10,
+.grid_11,
+.grid_12,
+.grid_13,
+.grid_14,
+.grid_15,
+.grid_16 {
+ display: inline;
+ float: left;
+ margin-left: 10px;
+ margin-right: 10px;
+}
+
+.container_12 .grid_3,
+.container_16 .grid_4 {
+ width: 220px;
+}
+
+.container_12 .grid_6,
+.container_16 .grid_8 {
+ width: 460px;
+}
+
+.container_12 .grid_9,
+.container_16 .grid_12 {
+ width: 700px;
+}
+
+.container_12 .grid_12,
+.container_16 .grid_16 {
+ width: 940px;
+}
+
+/* `Grid >> Children (Alpha ~ First, Omega ~ Last)
+----------------------------------------------------------------------------------------------------*/
+
+.alpha {
+ margin-left: 0;
+}
+
+.omega {
+ margin-right: 0;
+}
+
+/* `Grid >> 12 Columns
+----------------------------------------------------------------------------------------------------*/
+
+.container_12 .grid_1 {
+ width: 60px;
+}
+
+.container_12 .grid_2 {
+ width: 140px;
+}
+
+.container_12 .grid_4 {
+ width: 300px;
+}
+
+.container_12 .grid_5 {
+ width: 380px;
+}
+
+.container_12 .grid_7 {
+ width: 540px;
+}
+
+.container_12 .grid_8 {
+ width: 620px;
+}
+
+.container_12 .grid_10 {
+ width: 780px;
+}
+
+.container_12 .grid_11 {
+ width: 860px;
+}
+
+/* `Grid >> 16 Columns
+----------------------------------------------------------------------------------------------------*/
+
+.container_16 .grid_1 {
+ width: 40px;
+}
+
+.container_16 .grid_2 {
+ width: 100px;
+}
+
+.container_16 .grid_3 {
+ width: 160px;
+}
+
+.container_16 .grid_5 {
+ width: 280px;
+}
+
+.container_16 .grid_6 {
+ width: 340px;
+}
+
+.container_16 .grid_7 {
+ width: 400px;
+}
+
+.container_16 .grid_9 {
+ width: 520px;
+}
+
+.container_16 .grid_10 {
+ width: 580px;
+}
+
+.container_16 .grid_11 {
+ width: 640px;
+}
+
+.container_16 .grid_13 {
+ width: 760px;
+}
+
+.container_16 .grid_14 {
+ width: 820px;
+}
+
+.container_16 .grid_15 {
+ width: 880px;
+}
+
+/* `Prefix Extra Space >> Global
+----------------------------------------------------------------------------------------------------*/
+
+.container_12 .prefix_3,
+.container_16 .prefix_4 {
+ padding-left: 240px;
+}
+
+.container_12 .prefix_6,
+.container_16 .prefix_8 {
+ padding-left: 480px;
+}
+
+.container_12 .prefix_9,
+.container_16 .prefix_12 {
+ padding-left: 720px;
+}
+
+/* `Prefix Extra Space >> 12 Columns
+----------------------------------------------------------------------------------------------------*/
+
+.container_12 .prefix_1 {
+ padding-left: 80px;
+}
+
+.container_12 .prefix_2 {
+ padding-left: 160px;
+}
+
+.container_12 .prefix_4 {
+ padding-left: 320px;
+}
+
+.container_12 .prefix_5 {
+ padding-left: 400px;
+}
+
+.container_12 .prefix_7 {
+ padding-left: 560px;
+}
+
+.container_12 .prefix_8 {
+ padding-left: 640px;
+}
+
+.container_12 .prefix_10 {
+ padding-left: 800px;
+}
+
+.container_12 .prefix_11 {
+ padding-left: 880px;
+}
+
+/* `Prefix Extra Space >> 16 Columns
+----------------------------------------------------------------------------------------------------*/
+
+.container_16 .prefix_1 {
+ padding-left: 60px;
+}
+
+.container_16 .prefix_2 {
+ padding-left: 120px;
+}
+
+.container_16 .prefix_3 {
+ padding-left: 180px;
+}
+
+.container_16 .prefix_5 {
+ padding-left: 300px;
+}
+
+.container_16 .prefix_6 {
+ padding-left: 360px;
+}
+
+.container_16 .prefix_7 {
+ padding-left: 420px;
+}
+
+.container_16 .prefix_9 {
+ padding-left: 540px;
+}
+
+.container_16 .prefix_10 {
+ padding-left: 600px;
+}
+
+.container_16 .prefix_11 {
+ padding-left: 660px;
+}
+
+.container_16 .prefix_13 {
+ padding-left: 780px;
+}
+
+.container_16 .prefix_14 {
+ padding-left: 840px;
+}
+
+.container_16 .prefix_15 {
+ padding-left: 900px;
+}
+
+/* `Suffix Extra Space >> Global
+----------------------------------------------------------------------------------------------------*/
+
+.container_12 .suffix_3,
+.container_16 .suffix_4 {
+ padding-right: 240px;
+}
+
+.container_12 .suffix_6,
+.container_16 .suffix_8 {
+ padding-right: 480px;
+}
+
+.container_12 .suffix_9,
+.container_16 .suffix_12 {
+ padding-right: 720px;
+}
+
+/* `Suffix Extra Space >> 12 Columns
+----------------------------------------------------------------------------------------------------*/
+
+.container_12 .suffix_1 {
+ padding-right: 80px;
+}
+
+.container_12 .suffix_2 {
+ padding-right: 160px;
+}
+
+.container_12 .suffix_4 {
+ padding-right: 320px;
+}
+
+.container_12 .suffix_5 {
+ padding-right: 400px;
+}
+
+.container_12 .suffix_7 {
+ padding-right: 560px;
+}
+
+.container_12 .suffix_8 {
+ padding-right: 640px;
+}
+
+.container_12 .suffix_10 {
+ padding-right: 800px;
+}
+
+.container_12 .suffix_11 {
+ padding-right: 880px;
+}
+
+/* `Suffix Extra Space >> 16 Columns
+----------------------------------------------------------------------------------------------------*/
+
+.container_16 .suffix_1 {
+ padding-right: 60px;
+}
+
+.container_16 .suffix_2 {
+ padding-right: 120px;
+}
+
+.container_16 .suffix_3 {
+ padding-right: 180px;
+}
+
+.container_16 .suffix_5 {
+ padding-right: 300px;
+}
+
+.container_16 .suffix_6 {
+ padding-right: 360px;
+}
+
+.container_16 .suffix_7 {
+ padding-right: 420px;
+}
+
+.container_16 .suffix_9 {
+ padding-right: 540px;
+}
+
+.container_16 .suffix_10 {
+ padding-right: 600px;
+}
+
+.container_16 .suffix_11 {
+ padding-right: 660px;
+}
+
+.container_16 .suffix_13 {
+ padding-right: 780px;
+}
+
+.container_16 .suffix_14 {
+ padding-right: 840px;
+}
+
+.container_16 .suffix_15 {
+ padding-right: 900px;
+}
+
+/* `Clear Floated Elements
+----------------------------------------------------------------------------------------------------*/
+
+/* http://sonspring.com/journal/clearing-floats */
+
+html body div.clear,
+html body span.clear {
+ background: none;
+ border: 0;
+ clear: both;
+ display: block;
+ float: none;
+ font-size: 0;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+ visibility: hidden;
+ width: 0;
+ height: 0;
+}
+
+/* http://www.positioniseverything.net/easyclearing.html */
+
+.clearfix:after {
+ clear: both;
+ content: '.';
+ display: block;
+ visibility: hidden;
+ height: 0;
+}
+
+.clearfix {
+ display: inline-block;
+}
+
+* html .clearfix {
+ height: 1%;
+}
+
+.clearfix {
+ display: block;
+}
+
+body {
+ background: #F5F5F5;
+ color: #2F4F4F;
+ font-family: "MS Sans Serif", Geneva, sans-serif;
+}
+
+#wrapper {
+ background-color: white;
+ padding: .5em 1em;
+ border: 1px solid #e5e5e5;
+ margin: 1.5em auto;
+}
+
+a { font-family: Arial, Arial, Helvetica, sans-serif; }
+
+a:link, a:visited {
+ text-decoration: none;
+ color: #2277cc;
+}
+
+h1,h2,h3,h4,h5,h6 {
+ font-family: Verdana, Verdana, Geneva, sans-serif;
+}
+
+h1 { margin-bottom: 0; padding-bottom: 0; }
+h2 { margin-bottom: 0.5em; font-size: large; border-bottom: 2px solid #999; }
+h3 { margin-bottom: 0; font-size: medium; }
+h4 { margin-bottom: 0; font-size: medium; }
+
+
+hr {
+ color: #F58025;
+ background-color: #F58025;
+
+ clear: both;
+ height: 3px;
+ border: none;
+ margin: 0.5em 0.5pc;
+}
+
+
+.sectiontitle {
+ margin-bottom: 0.5em;
+ font-size: large;
+}
+
+.method {
+ margin-top: 10px;
+ margin-left: 20px;
+ border-bottom: 1px dashed black;
+}
+
+.method .description {
+ margin-left: 20px;
+}
+
+.method p {
+ margin-top: 3px;
+ margin-bottom: 3px;
+}
+
+#class_index a {
+ font-size: smaller;
+}
+
+.box h3 { margin-bottom: 0; }
+.box ul { list-style: none; padding: 0; margin: 0 0 .5em 0; }
+.box li { padding: 0; margin-left: 1em;}
+
+a:hover, a:active {
+ text-decoration: underline;
+}
+
+a:link, a:visited {
+ color: #2277CC;
+ text-decoration: none;
+}
+
+pre {
+ border: 1px dotted black;
+ padding: 0.5em;
+ background: #FFFFEE none repeat scroll 0 0;
+}
+
+</style>
+<!-- STYLE_URL = ../../.././rdoc-style.css -->
+</head>
+<body>
+<div class="container_16" id="wrapper">
+<div class="grid_16">
+ <div class="grid_14 alpha">
+ <a href="../../../.">
+ <img src="../../.././ruby.png" alt="Ruby" />
+ <img src="../../.././braintree.gif" alt="Braintree" />
+ </a>
+ </div>
+ <div class="grid_2 omega">
+ </div>
+</div>
+<hr style="background-color: #999;" />
+<div class="clear"></div>
+<div class="grid_4" id="navigation">
+ <div class="box">
+ <h3>Files</h3>
+ <ul>
+ <li><a href="../../.././files/README_rdoc.html">README</a></li>
+ <li><a href="../../.././files/CHANGELOG_rdoc.html">CHANGELOG</a></li>
+ <li><a href="../../.././files/LICENSE.html">LICENSE</a></li>
+ </ul>
+ </div>
+
+ <div class="box">
+ <h3>Resources</h3>
+ <ul>
+ <li><a href="../../.././classes/Braintree/Transaction.html">Transaction</a></li>
+ <li><a href="../../.././classes/Braintree/Customer.html">Customer</a></li>
+ <li><a href="../../.././classes/Braintree/CreditCard.html">CreditCard</a></li>
+ <li><a href="../../.././classes/Braintree/Address.html">Address</a></li>
+ <li><a href="../../.././classes/Braintree/Subscription.html">Subscription</a></li>
+ </ul>
+ </div>
+
+ <div class="box">
+ <h3>Classes</h3>
+ <ul>
+ <li><a href="../../.././classes/Braintree/Configuration.html">Configuration</a></li>
+ <li><a href="../../.././classes/Braintree/SuccessfulResult.html">SuccessfulResult</a></li>
+ <li><a href="../../.././classes/Braintree/ErrorResult.html">ErrorResult</a></li>
+ <li><a href="../../.././classes/Braintree/Errors.html">Errors</a></li>
+ <li><a href="../../.././classes/Braintree/ValidationErrorCollection.html">ValidationErrorCollection</a></li>
+ <li><a href="../../.././classes/Braintree/PagedCollection.html">PagedCollection</a></li>
+ <li><a href="../../.././classes/Braintree/TransparentRedirect.html">TransparentRedirect</a></li>
+ <li><a href="../../.././classes/Braintree/Version.html">Version</a></li>
+ <li><a href="../../.././classes/Braintree/Test/CreditCardNumbers.html">Test::CreditCardNumbers</a></li>
+ <li><a href="../../.././classes/Braintree/Test/TransactionAmounts.html">Test::TransactionAmounts</a></li>
+ </ul>
+ </div>
+
+ <div class="box">
+ <h3>Error Codes</h3>
+ <ul>
+ <li><a href="../../.././classes/Braintree/ErrorCodes.html">ErrorCodes</a></li>
+ <li><a href="../../.././classes/Braintree/ErrorCodes/Transaction.html">ErrorCodes::Transaction</a></li>
+ <li><a href="../../.././classes/Braintree/ErrorCodes/Customer.html">ErrorCodes::Customer</a></li>
+ <li><a href="../../.././classes/Braintree/ErrorCodes/CreditCard.html">ErrorCodes::CreditCard</a></li>
+ <li><a href="../../.././classes/Braintree/ErrorCodes/Address.html">ErrorCodes::Address</a></li>
+ </ul>
+ </div>
+
+ <div class="box">
+ <h3>Exceptions</h3>
+ <ul>
+ <li><a href="../../.././classes/Braintree/BraintreeError.html">BraintreeError</a></li>
+ <li><a href="../../.././classes/Braintree/AuthenticationError.html">AuthenticationError</a></li>
+ <li><a href="../../.././classes/Braintree/AuthorizationError.html">AuthorizationError</a></li>
+ <li><a href="../../.././classes/Braintree/ConfigurationError.html">ConfigurationError</a></li>
+ <li><a href="../../.././classes/Braintree/DownForMaintenanceError.html">DownForMaintenanceError</a></li>
+ <li><a href="../../.././classes/Braintree/ForgedQueryString.html">ForgedQueryString</a></li>
+ <li><a href="../../.././classes/Braintree/NotFoundError.html">NotFoundError</a></li>
+ <li><a href="../../.././classes/Braintree/ServerError.html">ServerError</a></li>
+ <li><a href="../../.././classes/Braintree/SSLCertificateError.html">SSLCertificateError</a></li>
+ <li><a href="../../.././classes/Braintree/UnexpectedError.html">UnexpectedError</a></li>
+ <li><a href="../../.././classes/Braintree/ValidationsFailed.html">ValidationsFailed</a></li>
+ </ul>
+ </div>
+</div>
+<div class="grid_12">
+<h1>Module: Braintree::Transaction::Status</h1>
+
+
+
+<hr />
+<div class="sectiontitle">Constants</div>
+<table>
+<thead><tr><th>Constant</th><th>Value</th></tr></thead>
+<tboyd>
+<tr><td>Authorizing</td><td>'authorizing'</td></tr>
+<tr><td>Authorized</td><td>'authorized'</td></tr>
+<tr><td>GatewayRejected</td><td>'gateway_rejected'</td></tr>
+<tr><td>Failed</td><td>'failed'</td></tr>
+<tr><td>ProcessorDeclined</td><td>'processor_declined'</td></tr>
+<tr><td>Settled</td><td>'settled'</td></tr>
+<tr><td>SettlementFailed</td><td>'settlement_failed'</td></tr>
+<tr><td>SubmittedForSettlement</td><td>'submitted_for_settlement'</td></tr>
+<tr><td>Unknown</td><td>'unknown'</td></tr>
+<tr><td>Voided</td><td>'voided'</td></tr>
+</tbody>
+</table>
+
+
+</div><!-- end grid_13 -->
+
+<hr />
+<div class="grid_16">&copy; Copyright 2009 Braintree Payment Solutions. All Rights Reserved.</div>
+
+<div class="clear"></div>
+</div><!-- end wrapper -->
+</body>
+</html>
View
2 classes/Braintree/ValidationError.html
@@ -763,7 +763,7 @@
<div class="sectiontitle">Public Class Methods</div>
<div class="method">
<div class="title">
-<a name="M000124"></a><b>new</b>(attributes)
+<a name="M000125"></a><b>new</b>(attributes)
</div><!-- end class=title -->
</div><!-- end class=method -->
</div><!-- end grid_13 -->
View
15 classes/Braintree/ValidationErrorCollection.html
@@ -774,6 +774,10 @@
<div class="title">
<a name="M000075"></a><b>deep_errors</b>()
</div><!-- end class=title -->
+<div class="description"> <p>
+Returns an array of <a href="ValidationError.html">ValidationError</a>
+objects at this level and all nested levels in the error hierarchy
+</p> </div>
</div><!-- end class=method -->
<div class="method">
<div class="title">
@@ -812,7 +816,16 @@
</div><!-- end class=method -->
<div class="method">
<div class="title">
-<a name="M000080"></a><b>size</b>()
+<a name="M000080"></a><b>shallow_errors</b>()
+</div><!-- end class=title -->
+<div class="description"> <p>
+Returns an array of <a href="ValidationError.html">ValidationError</a>
+objects at the given level in the error hierarchy
+</p> </div>
+</div><!-- end class=method -->
+<div class="method">
+<div class="title">
+<a name="M000081"></a><b>size</b>()
</div><!-- end class=title -->
<div class="description"> <p>
The number of errors at this level. This does not include nested errors.
View
2 classes/Braintree/Version.html
@@ -739,7 +739,7 @@
<tboyd>
<tr><td>Major</td><td>1</td></tr>
<tr><td>Minor</td><td>2</td></tr>
-<tr><td>Tiny</td><td>0</td></tr>
+<tr><td>Tiny</td><td>1</td></tr>
<tr><td>String</td><td>&quot;#{Major}.#{Minor}.#{Tiny}&quot;</td></tr>
</tbody>
</table>
View
2 created.rid
@@ -1 +1 @@
-Fri, 09 Apr 2010 17:46:48 -0500
+Tue, 13 Apr 2010 10:41:08 -0500
View
18 files/CHANGELOG_rdoc.html
@@ -732,7 +732,23 @@
<hr />
<div class="description">
- <h2>1.2.0</h2>
+ <h2>1.2.1</h2>
+<ul>
+<li>Added ValidationErrorCollection#shallow_errors to get all of the
+ValidationErrors at a given level in the error hierarchy
+
+</li>
+<li>Added the ability to make a credit card the default card for a customer
+
+</li>
+<li>Added constants for transaction statuses
+
+</li>
+<li>Updated Quick Start in README.rdoc to show a workflow with error checking
+
+</li>
+</ul>
+<h2>1.2.0</h2>
<ul>
<li>Added Subscription search
View
18 files/README_rdoc.html
@@ -755,15 +755,25 @@
Braintree::Configuration.public_key = &quot;a_public_key&quot;
Braintree::Configuration.private_key = &quot;a_private_key&quot;
- transaction = Braintree::Transaction.sale!(
- :amount =&gt; &quot;100.00&quot;,
+ result = Braintree::Transaction.sale(
+ :amount =&gt; &quot;1000.00&quot;,
:credit_card =&gt; {
:number =&gt; &quot;5105105105105100&quot;,
:expiration_date =&gt; &quot;05/12&quot;
}
)
- puts &quot;Transaction ID: #{transaction.id}&quot;
- puts &quot;Status: #{transaction.status}&quot;
+
+ if result.success?
+ if result.transaction.status == Braintree::Transaction::Status::Authorized
+ puts &quot;sucess!: #{result.transaction.id}&quot;
+ else
+ puts &quot;Error processing transaction:&quot;
+ puts &quot; code: #{result.transaction.processor_response_code}&quot;
+ puts &quot; text: #{result.transaction.processor_response_text}&quot;
+ end
+ else
+ p result.errors
+ end
</pre>
<h2>Bang Methods</h2>
<p>
View
1 fr_class_index.html
@@ -36,6 +36,7 @@
<a href="classes/Braintree/Test/CreditCardNumbers/FailsSandboxVerification.html">Braintree::Test::CreditCardNumbers::FailsSandboxVerification</a><br />
<a href="classes/Braintree/Test/TransactionAmounts.html">Braintree::Test::TransactionAmounts</a><br />
<a href="classes/Braintree/Transaction.html">Braintree::Transaction</a><br />
+<a href="classes/Braintree/Transaction/Status.html">Braintree::Transaction::Status</a><br />
<a href="classes/Braintree/TransparentRedirect.html">Braintree::TransparentRedirect</a><br />
<a href="classes/Braintree/UnexpectedError.html">Braintree::UnexpectedError</a><br />
<a href="classes/Braintree/ValidationError.html">Braintree::ValidationError</a><br />

0 comments on commit d5a0ceb

Please sign in to comment.
Something went wrong with that request. Please try again.