Skip to content

Instantly share code, notes, and snippets.

@CampingScorpion
Created May 28, 2014 20:35
Show Gist options
  • Save CampingScorpion/89a21f9c75f4e4eb25de to your computer and use it in GitHub Desktop.
Save CampingScorpion/89a21f9c75f4e4eb25de to your computer and use it in GitHub Desktop.
{:type :purchase,
:coupon-code "23645378",
:cart
{:basket-id "567",
:order-id "978975",
:products
[{:list-price-cents 34500,
:merchant-product-id "1234",
:quantity 2,
:name "Pants,Jeans' 34\"",
:runa-product-id "9999",
:runa-price-cents 48900,
:incentive
{:promo-id "2345542345",
:promo-type "discount",
:value 222,
:unit "USD"},
:attributes [{:list-price 666, :price 555, :value "foo"}],
:categories ["categories"],
:original-price-cents 30000,
:unit-price-cents 234500}],
:charges [{:type "Runa Discount", :cost-cents 0}],
:tax-cents 0,
:shipping
{:country "USA",
:postal-code "02840",
:state "RI",
:method "ground",
:method-code "GRD",
:cost-cents 666},
:payment-type {:method "credit card", :method-code "123"},
:session-incentives
[{:coupon-code nil,
:delivery-methods #{:pre-abandonment :recapture},
:unit nil,
:promo-type :free-shipping,
:constants
{:shipping-methods ["Shipping: Media Mail (7-10 Days)"],
:min-cart-total 50.0},
:id "98d9d6e7-0969-4915-be9d-7b095d1a4e78",
:value nil,
:description "Local Shipping Discount",
:promo-id "free_shipping"}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment