Created
May 7, 2013 22:01
-
-
Save kbighorse/5536519 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.9.2p320 :006 > t = BraintreeRails::Transaction.find '46bg2b' | |
| [Braintree] [07/May/2013 22:00:09 UTC] GET /transactions/46bg2b 200 | |
| => #<BraintreeRails::Transaction:0x007fcea4d113c8 @persisted=true, @amount=#<BigDecimal:7fcea4d13380,'0.1E1',9(18)>, @channel=nil, @custom_fields={}, @descriptor=#<Braintree::Descriptor:0x007fcea4d11508 @name=nil, @phone=nil>, @merchant_account_id="44pyrm5p8f5ycf7v", @order_id=nil, @purchase_order_number=nil, @recurring=false, @tax_amount=nil, @tax_exempt=false, @type="sale", @avs_error_response_code=nil, @avs_postal_code_response_code="M", @avs_street_address_response_code="M", @billing_details=#<Braintree::Transaction::AddressDetails:0x007fcea4d126b0 @id="tf", @first_name="fake", @last_name="merchant", @company="Springfield city", @street_address="123 evergreen terrace", @extended_address="#3", @locality="Palo Alto", @region="Alaska", @postal_code="94301", @country_name="United States of America", @country_code_alpha2="US", @country_code_alpha3="USA", @country_code_numeric="840">, @created_at=2013-05-01 17:45:18 UTC, @credit_card_details=#<token: "9zb4z", bin: "411111", last_4: "1111", card_type: "Visa", expiration_date: "11/2013", cardholder_name: "Kimball Bighorse", customer_location: "US", prepaid: "Unknown", healthcare: "Unknown", durbin_regulated: "Unknown", debit: "Unknown", commercial: "Unknown", payroll: "Unknown", country_of_issuance: "Unknown", issuing_bank: "Unknown">, @currency_iso_code="USD", @customer_details=#<id: "5943785", first_name: "Kimball", last_name: "Bighorse", email: "[email protected]", company: "Trading Post", website: nil, phone: nil, fax: nil>, @cvv_response_code="I", @id="46bg2b", @plan_id=nil, @refund_ids=[], @refunded_transaction_id=nil, @settlement_batch_id=nil, @shipping_details=#<Braintree::Transaction::AddressDetails:0x007fcea4d11df0 @id=nil, @first_name=nil, @last_name=nil, @company=nil, @street_address=nil, @extended_address=nil, @locality=nil, @region=nil, @postal_code=nil, @country_name=nil, @country_code_alpha2=nil, @country_code_alpha3=nil, @country_code_numeric=nil>, @status="authorized", @status_history=[#<Braintree::Transaction::StatusDetails:0x007fcea4d11788 @timestamp=2013-05-01 17:45:18 UTC, @status="authorized", @amount="1.00", @user="novoed", @transaction_source="API">], @subscription_details=#<Braintree::Transaction::SubscriptionDetails:0x007fcea4d12bb0 @billing_period_end_date=nil, @billing_period_start_date=nil>, @updated_at=2013-05-01 17:45:18 UTC, @raw_object=#<Braintree::Transaction id: "46bg2b", type: "sale", amount: "1.0", status: "authorized", created_at: 2013-05-01 17:45:18 UTC, credit_card_details: #<token: "9zb4z", bin: "411111", last_4: "1111", card_type: "Visa", expiration_date: "11/2013", cardholder_name: "Kimball Bighorse", customer_location: "US", prepaid: "Unknown", healthcare: "Unknown", durbin_regulated: "Unknown", debit: "Unknown", commercial: "Unknown", payroll: "Unknown", country_of_issuance: "Unknown", issuing_bank: "Unknown">, customer_details: #<id: "5943785", first_name: "Kimball", last_name: "Bighorse", email: "[email protected]", company: "Trading Post", website: nil, phone: nil, fax: nil>, subscription_details: #<Braintree::Transaction::SubscriptionDetails:0x007fcea4d12bb0 @billing_period_end_date=nil, @billing_period_start_date=nil>, updated_at: 2013-05-01 17:45:18 UTC>> | |
| 1.9.2p320 :007 > t.customer | |
| => #<BraintreeRails::Customer:0x007fcea4f26280 @persisted=true, @company="Trading Post", @email="[email protected]", @fax=nil, @first_name="Kimball", @id="5943785", @last_name="Bighorse", @phone=nil, @website=nil, @raw_object=#<id: "5943785", first_name: "Kimball", last_name: "Bighorse", email: "[email protected]", company: "Trading Post", website: nil, phone: nil, fax: nil>> | |
| 1.9.2p320 :008 > t.customer.transaction | |
| NoMethodError: undefined method `transaction' for #<BraintreeRails::Customer:0x007fcea4f26280> | |
| from (irb):8 | |
| from /Users/kimball/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in `start' | |
| from /Users/kimball/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start' | |
| from /Users/kimball/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.13/lib/rails/commands.rb:41:in `<top (required)>' | |
| from script/rails:6:in `require' | |
| from script/rails:6:in `<main>' | |
| 1.9.2p320 :009 > t.customer.transactions | |
| => [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment