ticketevolution/ticketevolution-ruby — pull request #30 by onemanarmy (2012-04-30 20:54:58+00:00)
Title: passing multiple item submission for create_client_order

This solves a parameter formatting issue when submitting multiple order items.

Disclaimer: I haven't yet wrapped my head around TDD and I definitely don't understand all of your super-l33t code, but I tried! Hope this helps!

**code**
```ruby
TEVO_API.orders.create_client_order(
[
{
payments:[
{type:"offline"}
],
billing_address_id:209227,
seller_id:828,
shipping_address_id:209227,
client_id:2814,
items:[{price:"45.0",quantity:2,ticket_group_id:"11588502"}]
},
{
payments:[
{type:"offline"}
],
billing_address_id:209227,
seller_id:828,
shipping_address_id:209227,
client_id:2814,
items:[{price:"45.0",quantity:2,ticket_group_id:"11588510"}]
}
]
)
```

**te_api.log - current (w/o patch)**
```ruby
{"orders":[[{"payments":[{"type":"credit_card"}],"billing_address_id":3656,"seller_id":997,"shipping_address_id":3656,"client_id":12345,"items":[{"price":"45.0","quantity":2,"ticket_group_id":"1135"}]},{"payments":[{"type":"credit_card"}],"billing_address_id":3656,"seller_id":997,"shipping_address_id":3656,"client_id":12345,"items":[{"price":"45.0","quantity":2,"ticket_group_id":"1135"}]}]]}

#=> ApiError
```

**te_api.log - with patch**
```ruby
{"orders":[{"payments":[{"type":"offline"}],"billing_address_id":209227,"seller_id":828,"shipping_address_id":209227,"client_id":2814,"items":[{"price":"45.0","quantity":2,"ticket_group_id":"11588502"}]},{"payments":[{"type":"offline"}],"billing_address_id":209227,"seller_id":828,"shipping_address_id":209227,"client_id":2814,"items":[{"price":"45.0","quantity":2,"ticket_group_id":"11588510"}]}]}

#=> 200 ok
```