Skip to content

Instantly share code, notes, and snippets.

@cwardzala
Last active August 29, 2015 14:17
Show Gist options
  • Save cwardzala/6021426e78293489c98b to your computer and use it in GitHub Desktop.
Save cwardzala/6021426e78293489c98b to your computer and use it in GitHub Desktop.
Shop Data Models

Address

  • street {Array/List}
  • city {String}
  • region {String OH|PA|CA}
  • zip {String}
  • country {String CA|US}

AddressExtended

  • name {Object}
    • first {String}
    • middle {String}
    • last {string}
  • street {Array/List}
  • city {String}
  • region {String OH|PA|CA}
  • zip {String}
  • country {String CA|US}
  • attn {String}

Contact

  • email {String}
  • name {Object}
    • first {String}
    • middle {String}
    • last {string}
  • external id {String}
  • note {Text}
  • id {Int}

SOP Subscription

  • type {String}
  • address {Address}
  • frequency {String}
  • id {Int}
  • subscription id {Int}
  • contact {Contact}
  • sod {?}
  • promotion {Object}
    • name {String}
    • month {String}
    • type {String}
    • discount {Int}
  • quantity {Int}

Order

  • type {String sop|standard}
  • sop {SOP Subscription}
  • items {Product Collection}
  • contact {Contact}
  • grand total {Float}
  • shipping amount {Float}
  • currency code {String}
  • payment {Object}
    • name {String}
    • exp {Object}
      • month {String mm}
      • year {String YYYY}
    • type {String}
    • transaction id {String}
    • PO Number {String}
  • discount description {String}
  • coupon code {String}
  • discount amount {String}
  • billing address {AddressExtended}
  • shipping address {AddressExtended}

Product

  • id {String}
  • title {String}
  • sku {String}
  • description {String}
  • url key {String}
  • price {Object}
    • final {Float}
    • regular {Float}
  • hero {String}
  • cover {String}
  • author {String}
  • age_level {String}
  • qty {Int}

Product Collection

  • url {String} # for AJAX loading
  • collection {Object}
    • prod_ {Product}
  • length {Int}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment