Skip to content

Instantly share code, notes, and snippets.

@hoffm
Last active August 29, 2015 14:04
Show Gist options
  • Save hoffm/0ecc2a09db060c319434 to your computer and use it in GitHub Desktop.
Save hoffm/0ecc2a09db060c319434 to your computer and use it in GitHub Desktop.
Example Food52 Order
{
:email=>"michael@food52.com",
:items=>
[
{
:qty=>2,
:title=>"Vintage Jam Serving Spoon",
:price=>1500,
:id=>253,
:url=>"http://food52.dev/provisions/products/143-vintage-jam-serving-spoon",
:tags=>"serveware,canning-jamming,small-batch-jamming,tea-time,setting-the-table-finishing-touches",
:vars=>
{
:image_url=>"https://lh3.ggpht.com/W-Mr6PWdicTXF_b__vtuU1yGQk3ZKZTPNNlsIwQM4rr4_5le6w4ncQ2RrSd1lbOrLIpP3PmMqZ24onRcEAsH"
}
},
{
:qty=>1,
:title=>"Limited Edition Fall Chili Pepper Fusilli (2 pounds)",
:price=>2000,
:id=>726,
:url=>"http://food52.dev/provisions/products/428-limited-edition-fall-chili-pepper-fusilli-2-pounds",
:tags=>"grains-flours-pastas,take-the-chill-off,gifts-under-25,for-the-new-cook",
:vars=>
{
:image_url=>"https://lh6.ggpht.com/DbjyHcxl8W7_71AfWaaSiypaGLE9diTycIg4U7fgWZcquur0V8NSliw9iFNP3Xj2ghQ5ALKGqWyWP_XxhMgX"
}
}
],
:message_id=>nil,
:adjustments=>
[
{
:title=>"tax",
:price=>112
},
{
:title=>"shipping",
:price=>0
},
{
:title=>"gift_card",
:price=>0,
:codes=>[]
},
{
:title=>"credits",
:price=>-2500,
:credit_types=>["Referral Rewards"]
},
{
:title=>"discount",
:price=>-1250,
:promo_code=>nil
}
],
:incomplete=>0,
:date=>"2013-11-07 17:08:32 -0500",
:tenders=>[
{
:price=>1362,
:title=>"American Express"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment