ticketevolution/ticketevolution-ruby — Issue #10: Nested order parameters ignored
Author: onemanarmy
Created: 2012-02-14 18:20:31+00:00
State: open

I'm trying to create an order specifying all information inline but the nested shipping (or billing) params aren't picked up. Nested credit card details are an entirely different issue (they don't seem to work either), but here's a simplified example with an "offline" payment method and just a shipping_address. I believe I'm using the correct format.

```ruby
tevo.orders.create_customer_order({
:seller_id => 782,
:client_id => 2351,
:shipping_address => [{ :country_code => "US", :street_address => "125 Street", :locality => "Springfield", :postal_code => "58008-6072", :region => "MG"}],
:payments => [{ :type => "offline" }],
:items => [{ :price => "769.0", :quantity => 2, :ticket_group_id => 9354504}] })
=> #], placer=nil, url="/orders/4992", total="1538.0", service_fee="0.0", hold_placed_at=nil, billing_address=nil, updated_at=2012-02-14 17:47:30 UTC, instructions=nil, additional_expense="0.0", hold_expires_at=nil, invoice_number=nil, shipping_address=#, seller=#, url="/offices/782", name="Main Office", id="782">, tax="0.0", child_orders=[], items=[#, row="22", id="9354504">, id="4353", quantity=2>], buyer=nil, balance="0.0", subtotal="1538.0", id="4992", client=#, status_code=200, server_message="Generally returned by successful GET requests. ">
```

Looks like the order is created but the shipping_address fields aren't picked up. Also doesn't appear in the sandbox broker exchange for some reason...