diff --git a/example/avatax.rb b/example/avatax.rb index d48c9c7..f5fa3f5 100644 --- a/example/avatax.rb +++ b/example/avatax.rb @@ -21,27 +21,27 @@ # puts @client.query_companies createTransactionModel = { - type: 'SalesInvoice', - companyCode: '12670', - date: '2017-06-05', - customerCode: 'ABC', - "addresses": { - "ShipFrom": { - "line1": "123 Main Street", - "city": "Irvine", - "region": "CA", - "country": "US", - "postalCode": "92615" + "type" => 'SalesInvoice', + "companyCode" => '12670', + "date" => '2017-06-05', + "customerCode" => 'ABC', + "addresses" => { + "ShipFrom" => { + "line1" => "123 Main Street", + "city" => "Irvine", + "region" => "CA", + "country" => "US", + "postalCode" => "92615" }, - "ShipTo": { - "line1": "100 Market Street", - "city": "San Francisco", - "region": "CA", - "country": "US", - "postalCode": "94105" + "ShipTo" => { + "line1" => "100 Market Street", + "city" => "San Francisco", + "region" => "CA", + "country" => "US", + "postalCode" => "94105" } }, - lines: [{amount: 100}] + "lines" => [ { "amount" => 100 }] } transaction = @client.create_transaction(createTransactionModel) puts JSON.pretty_generate(transaction)