Guest User

Untitled

a guest
Jul 22nd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. id: 27920
  2. user_id:
  3. state: browsing
  4. finalized_at:
  5. note:
  6. note_customer:
  7. created_at: Fri Jan 15 13:47:46 -0600 2010
  8. updated_at: Fri Jan 15 13:47:46 -0600 2010
  9. shipping_method_id: 5
  10. shipping_address_id:
  11. billing_address_id:
  12. gift_wrap:
  13. email:
  14. authorization:
  15. ip_address:
  16. location: thebabyhabit.com
  17. payment_method:
  18. gift_note:
  19. name_on_card:
  20. ship_to_separate_address: false
  21. paypal_express_token:
  22. paypal_express_payer_id:
  23. coupon_id:
  24. paid_manually: false
  25. paid_manually_notes:
  26. frozen_shipping_price_cents: 0
  27. frozen_gift_wrap_price_cents: 0
  28. initial_captured_amount_cents: 0
  29. phone:
  30.  
  31.  
  32. id: 41158
  33. order_id: 27920
  34. item_id: 66
  35. item_type: Product
  36. shipment_id:
  37. unit_price_cents: 6000
  38. embroidery_price_cents:
  39. embroidery_monogram_thread_id:
  40. embroidery_line_1_thread_id: 33
  41. embroidery_line_2_thread_id:
  42. embroidery_line_3_thread_id:
  43. embroidery_monogram_font_id:
  44. embroidery_line_1_font_id: 3
  45. embroidery_line_2_font_id:
  46. embroidery_line_3_font_id:
  47. quantity: 1
  48. embroidery_monogram:
  49. embroidery_line_1: Evan
  50. embroidery_line_2:
  51. embroidery_line_3:
  52. price_cents:
  53. discount_cents:
  54. cancelled: false
  55. returned: false
  56. is_picked: false
  57. is_setup: false
  58. is_wrapped: false
  59. is_packed: false
  60. is_prepped: false
  61.  
  62.  
  63. >> bo.shipping_cost
  64. => #<Money:0x7f3c39429dd0 @currency="USD", @cents=0, @bank=#<Money::VariableExchangeBank:0x7f3c41d67b88 @mutex=#<Mutex:0x7f3c41d67b10>, @rates={"_TO_USD"=>1, "USD_TO_"=>1, "USD_TO_USD"=>1}>>
  65.  
  66. >> bo.shipping_method.cost(bo)
  67. => nil
  68.  
  69. >> bo.shipping_method.cost(self)
  70. NoMethodError: undefined method `subtotal' for #<Object:0x7f3c4901a298>
  71. ....
  72.  
  73. >> bo.subtotal
  74. => #<Money:0x7f3c39412838 @currency="USD", @cents=6000, @bank=#<Money::VariableExchangeBank:0x7f3c41d67b88 @mutex=#<Mutex:0x7f3c41d67b10>, @rates={"_TO_USD"=>1, "USD_TO_"=>1, "USD_TO_USD"=>1}>>
Add Comment
Please, Sign In to add comment