Created
March 27, 2014 01:16
-
-
Save radar/9797853 to your computer and use it in GitHub Desktop.
This file contains 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
{"id"=>24, | |
"number"=>"R063066164", | |
"item_total"=>"15.99", | |
"total"=>"21.79", | |
"ship_total"=>"5.0", | |
"state"=>"delivery", | |
"adjustment_total"=>"0.8", | |
"user_id"=>1, | |
"created_at"=>"2014-03-27T01:14:54.514Z", | |
"updated_at"=>"2014-03-27T01:14:55.269Z", | |
"completed_at"=>nil, | |
"payment_total"=>"0.0", | |
"shipment_state"=>nil, | |
"payment_state"=>nil, | |
"email"=>"spree@example.com", | |
"special_instructions"=>nil, | |
"channel"=>"spree", | |
"included_tax_total"=>"0.0", | |
"additional_tax_total"=>"0.8", | |
"display_included_tax_total"=>"$0.00", | |
"display_additional_tax_total"=>"$0.80", | |
"currency"=>"USD", | |
"display_item_total"=>"$15.99", | |
"total_quantity"=>1, | |
"display_total"=>"$21.79", | |
"display_ship_total"=>"$5.00", | |
"token"=>"9af724024c48bb23", | |
"checkout_steps"=>["address", "delivery", "payment", "complete"], | |
"shipments"=> | |
[{"id"=>10, | |
"tracking"=>nil, | |
"number"=>"H74766873451", | |
"cost"=>"5.0", | |
"shipped_at"=>nil, | |
"state"=>"pending", | |
"order_id"=>"R063066164", | |
"stock_location_name"=>"default", | |
"shipping_rates"=> | |
[{"id"=>19, | |
"name"=>"UPS Ground (USD)", | |
"cost"=>"5.0", | |
"selected"=>true, | |
"shipping_method_id"=>1, | |
"display_cost"=>"$5.00"}, | |
{"id"=>20, | |
"name"=>"UPS Two Day (USD)", | |
"cost"=>"10.0", | |
"selected"=>false, | |
"shipping_method_id"=>2, | |
"display_cost"=>"$10.00"}, | |
{"id"=>21, | |
"name"=>"UPS One Day (USD)", | |
"cost"=>"15.0", | |
"selected"=>false, | |
"shipping_method_id"=>3, | |
"display_cost"=>"$15.00"}], | |
"selected_shipping_rate"=> | |
{"id"=>19, | |
"name"=>"UPS Ground (USD)", | |
"cost"=>"5.0", | |
"selected"=>true, | |
"shipping_method_id"=>1, | |
"display_cost"=>"$5.00"}, | |
"shipping_methods"=> | |
[{"id"=>1, | |
"name"=>"UPS Ground (USD)", | |
"zones"=> | |
[{"id"=>2, "name"=>"North America", "description"=>"USA + Canada"}], | |
"shipping_categories"=>[{"id"=>1, "name"=>"Default"}]}, | |
{"id"=>2, | |
"name"=>"UPS Two Day (USD)", | |
"zones"=> | |
[{"id"=>2, "name"=>"North America", "description"=>"USA + Canada"}], | |
"shipping_categories"=>[{"id"=>1, "name"=>"Default"}]}, | |
{"id"=>3, | |
"name"=>"UPS One Day (USD)", | |
"zones"=> | |
[{"id"=>2, "name"=>"North America", "description"=>"USA + Canada"}], | |
"shipping_categories"=>[{"id"=>1, "name"=>"Default"}]}], | |
"manifest"=> | |
[{"quantity"=>1, | |
"states"=>{"on_hand"=>1}, | |
"variant"=> | |
{"id"=>1, | |
"name"=>"Ruby on Rails Tote", | |
"sku"=>"ROR-00011", | |
"price"=>"15.99", | |
"weight"=>"0.0", | |
"height"=>nil, | |
"width"=>nil, | |
"depth"=>nil, | |
"is_master"=>true, | |
"cost_price"=>"17.0", | |
"slug"=>"ruby-on-rails-tote", | |
"description"=> | |
"Et odio est debitis autem laborum doloremque. Molestiae consequuntur dolor similique accusantium. Dicta nobis tenetur quod dolores qui eligendi et. Consequatur doloribus mole | |
"track_inventory"=>true, | |
"display_price"=>"$15.99", | |
"options_text"=>"", | |
"in_stock"=>true, | |
"option_values"=>[], | |
"images"=> | |
[{"id"=>21, | |
"position"=>1, | |
"attachment_content_type"=>"image/jpeg", | |
"attachment_file_name"=>"ror_tote.jpeg", | |
"type"=>"Spree::Image", | |
"attachment_updated_at"=>"2014-03-26T23:56:00.435Z", | |
"attachment_width"=>360, | |
"attachment_height"=>360, | |
"alt"=>nil, | |
"viewable_type"=>"Spree::Variant", | |
"viewable_id"=>1, | |
"mini_url"=>"/spree/products/21/mini/ror_tote.jpeg?1395878160", | |
"small_url"=>"/spree/products/21/small/ror_tote.jpeg?1395878160", | |
"product_url"=> | |
"/spree/products/21/product/ror_tote.jpeg?1395878160", | |
"large_url"=>"/spree/products/21/large/ror_tote.jpeg?1395878160"}, | |
{"id"=>22, | |
"position"=>2, | |
"attachment_content_type"=>"image/jpeg", | |
"attachment_file_name"=>"ror_tote_back.jpeg", | |
"type"=>"Spree::Image", | |
"attachment_updated_at"=>"2014-03-26T23:56:01.238Z", | |
"attachment_width"=>360, | |
"attachment_height"=>360, | |
"alt"=>nil, | |
"viewable_type"=>"Spree::Variant", | |
"viewable_id"=>1, | |
"mini_url"=> | |
"/spree/products/22/mini/ror_tote_back.jpeg?1395878161", | |
"small_url"=> | |
"/spree/products/22/small/ror_tote_back.jpeg?1395878161", | |
"product_url"=> | |
"/spree/products/22/product/ror_tote_back.jpeg?1395878161", | |
"large_url"=> | |
"/spree/products/22/large/ror_tote_back.jpeg?1395878161"}]}}]}], | |
"bill_address"=> | |
{"id"=>11, | |
"firstname"=>"Test", | |
"lastname"=>"User", | |
"full_name"=>"Test User", | |
"address1"=>"Unit 1", | |
"address2"=>"1 Test Lane", | |
"city"=>"Bethesda", | |
"zipcode"=>"20814", | |
"phone"=>"(555) 555-5555", | |
"company"=>nil, | |
"alternative_phone"=>nil, | |
"country_id"=>49, | |
"state_id"=>26, | |
"state_name"=>nil, | |
"country"=> | |
{"id"=>49, | |
"iso_name"=>"UNITED STATES", | |
"iso"=>"US", | |
"iso3"=>"USA", | |
"name"=>"United States", | |
"numcode"=>840}, | |
"state"=>{"id"=>26, "name"=>"Maryland", "abbr"=>"MD", "country_id"=>49}}, | |
"ship_address"=> | |
{"id"=>12, | |
"firstname"=>"Test", | |
"lastname"=>"User", | |
"full_name"=>"Test User", | |
"address1"=>"Unit 1", | |
"address2"=>"1 Test Lane", | |
"city"=>"Bethesda", | |
"zipcode"=>"20814", | |
"phone"=>"(555) 555-5555", | |
"shipping_categories"=>[{"id"=>1, "name"=>"Default"}]}, | |
{"id"=>2, | |
"name"=>"UPS Two Day (USD)", | |
"zones"=> | |
[{"id"=>2, "name"=>"North America", "description"=>"USA + Canada"}], | |
"shipping_categories"=>[{"id"=>1, "name"=>"Default"}]}, | |
{"id"=>3, | |
"name"=>"UPS One Day (USD)", | |
"zones"=> | |
[{"id"=>2, "name"=>"North America", "description"=>"USA + Canada"}], | |
"shipping_categories"=>[{"id"=>1, "name"=>"Default"}]}], | |
"manifest"=> | |
[{"quantity"=>1, | |
"states"=>{"on_hand"=>1}, | |
"variant"=> | |
{"id"=>1, | |
"name"=>"Ruby on Rails Tote", | |
"sku"=>"ROR-00011", | |
"price"=>"15.99", | |
"weight"=>"0.0", | |
"height"=>nil, | |
"width"=>nil, | |
"depth"=>nil, | |
"is_master"=>true, | |
"cost_price"=>"17.0", | |
"slug"=>"ruby-on-rails-tote", | |
"description"=> | |
"Et odio est debitis autem laborum doloremque. Molestiae consequuntur dolor similique accusantium. Dicta nobis tenetur quod dolores qui eligendi et. Consequatur doloribus mole | |
"track_inventory"=>true, | |
"display_price"=>"$15.99", | |
"options_text"=>"", | |
"in_stock"=>true, | |
"option_values"=>[], | |
"images"=> | |
[{"id"=>21, | |
"position"=>1, | |
"attachment_content_type"=>"image/jpeg", | |
"attachment_file_name"=>"ror_tote.jpeg", | |
"type"=>"Spree::Image", | |
"attachment_updated_at"=>"2014-03-26T23:56:00.435Z", | |
"attachment_width"=>360, | |
"attachment_height"=>360, | |
"alt"=>nil, | |
"viewable_type"=>"Spree::Variant", | |
"viewable_id"=>1, | |
"mini_url"=>"/spree/products/21/mini/ror_tote.jpeg?1395878160", | |
"small_url"=>"/spree/products/21/small/ror_tote.jpeg?1395878160", | |
"product_url"=> | |
"/spree/products/21/product/ror_tote.jpeg?1395878160", | |
"large_url"=>"/spree/products/21/large/ror_tote.jpeg?1395878160"}, | |
{"id"=>22, | |
"position"=>2, | |
"attachment_content_type"=>"image/jpeg", | |
"attachment_file_name"=>"ror_tote_back.jpeg", | |
"type"=>"Spree::Image", | |
"attachment_updated_at"=>"2014-03-26T23:56:01.238Z", | |
"attachment_width"=>360, | |
"attachment_height"=>360, | |
"alt"=>nil, | |
"viewable_type"=>"Spree::Variant", | |
"viewable_id"=>1, | |
"mini_url"=> | |
"/spree/products/22/mini/ror_tote_back.jpeg?1395878161", | |
"small_url"=> | |
"/spree/products/22/small/ror_tote_back.jpeg?1395878161", | |
"product_url"=> | |
"/spree/products/22/product/ror_tote_back.jpeg?1395878161", | |
"large_url"=> | |
"/spree/products/22/large/ror_tote_back.jpeg?1395878161"}]}}]}], | |
"bill_address"=> | |
{"id"=>11, | |
"firstname"=>"Test", | |
"lastname"=>"User", | |
"full_name"=>"Test User", | |
"address1"=>"Unit 1", | |
"address2"=>"1 Test Lane", | |
"city"=>"Bethesda", | |
"zipcode"=>"20814", | |
"phone"=>"(555) 555-5555", | |
"company"=>nil, | |
"alternative_phone"=>nil, | |
"country_id"=>49, | |
"state_id"=>26, | |
"state_name"=>nil, | |
"country"=> | |
{"id"=>49, | |
"iso_name"=>"UNITED STATES", | |
"iso"=>"US", | |
"iso3"=>"USA", | |
"name"=>"United States", | |
"numcode"=>840}, | |
"state"=>{"id"=>26, "name"=>"Maryland", "abbr"=>"MD", "country_id"=>49}}, | |
"ship_address"=> | |
{"id"=>12, | |
"firstname"=>"Test", | |
"lastname"=>"User", | |
"full_name"=>"Test User", | |
"address1"=>"Unit 1", | |
"address2"=>"1 Test Lane", | |
"city"=>"Bethesda", | |
"zipcode"=>"20814", | |
"phone"=>"(555) 555-5555", | |
"company"=>nil, | |
"alternative_phone"=>nil, | |
"country_id"=>49, | |
"state_id"=>26, | |
"state_name"=>nil, | |
"country"=> | |
{"id"=>49, | |
"iso_name"=>"UNITED STATES", | |
"iso"=>"US", | |
"iso3"=>"USA", | |
"name"=>"United States", | |
"numcode"=>840}, | |
"state"=>{"id"=>26, "name"=>"Maryland", "abbr"=>"MD", "country_id"=>49}}, | |
"line_items"=> | |
[{"id"=>22, | |
"quantity"=>1, | |
"price"=>"15.99", | |
"variant_id"=>1, | |
"single_display_amount"=>"$15.99", | |
"display_amount"=>"$15.99", | |
"total"=>"16.79", | |
"variant"=> | |
{"id"=>1, | |
"name"=>"Ruby on Rails Tote", | |
"sku"=>"ROR-00011", | |
"price"=>"15.99", | |
"weight"=>"0.0", | |
"height"=>nil, | |
"width"=>nil, | |
"depth"=>nil, | |
"is_master"=>true, | |
"cost_price"=>"17.0", | |
"slug"=>"ruby-on-rails-tote", | |
"description"=> | |
"Et odio est debitis autem laborum doloremque. Molestiae consequuntur dolor similique accusantium. Dicta nobis tenetur quod dolores qui eligendi et. Consequatur doloribus molesti | |
"track_inventory"=>true, | |
"display_price"=>"$15.99", | |
"options_text"=>"", | |
"in_stock"=>true, | |
"option_values"=>[], | |
"images"=> | |
[{"id"=>21, | |
"position"=>1, | |
"attachment_content_type"=>"image/jpeg", | |
"attachment_file_name"=>"ror_tote.jpeg", | |
"type"=>"Spree::Image", | |
"attachment_updated_at"=>"2014-03-26T23:56:00.435Z", | |
"attachment_width"=>360, | |
"attachment_height"=>360, | |
"alt"=>nil, | |
"viewable_type"=>"Spree::Variant", | |
"viewable_id"=>1, | |
"mini_url"=>"/spree/products/21/mini/ror_tote.jpeg?1395878160", | |
"small_url"=>"/spree/products/21/small/ror_tote.jpeg?1395878160", | |
"product_url"=>"/spree/products/21/product/ror_tote.jpeg?1395878160", | |
"large_url"=>"/spree/products/21/large/ror_tote.jpeg?1395878160"}, | |
{"id"=>22, | |
"position"=>2, | |
"attachment_content_type"=>"image/jpeg", | |
"attachment_file_name"=>"ror_tote_back.jpeg", | |
"type"=>"Spree::Image", | |
"attachment_updated_at"=>"2014-03-26T23:56:01.238Z", | |
"attachment_width"=>360, | |
"attachment_height"=>360, | |
"alt"=>nil, | |
"viewable_type"=>"Spree::Variant", | |
"viewable_id"=>1, | |
"mini_url"=>"/spree/products/22/mini/ror_tote_back.jpeg?1395878161", | |
"small_url"=>"/spree/products/22/small/ror_tote_back.jpeg?1395878161", | |
"product_url"=> | |
"/spree/products/22/product/ror_tote_back.jpeg?1395878161", | |
"large_url"=> | |
"/spree/products/22/large/ror_tote_back.jpeg?1395878161"}], | |
"product_id"=>1}, | |
"adjustments"=> | |
[{"id"=>9, | |
"source_type"=>"Spree::TaxRate", | |
"source_id"=>1, | |
"adjustable_type"=>"Spree::LineItem", | |
"adjustable_id"=>22, | |
"amount"=>"0.8", | |
"label"=>"North America 5.0%", | |
"mandatory"=>nil, | |
"eligible"=>true, | |
"created_at"=>"2014-03-27T01:14:55.147Z", | |
"updated_at"=>"2014-03-27T01:14:55.159Z", | |
"display_amount"=>"$0.80"}]}], | |
"payments"=>[], | |
"adjustments"=>[], | |
"credit_cards"=>[]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment