Skip to content

Commit

Permalink
Merge pull request #34 from zreisman/fix-example-syntax
Browse files Browse the repository at this point in the history
Fix syntax of transaction in example code
  • Loading branch information
marcus authored Oct 29, 2018
2 parents 41a7b8c + b63da68 commit f37cad9
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions example/avatax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f37cad9

Please sign in to comment.