Created
February 10, 2013 23:13
-
-
Save dashk/4751465 to your computer and use it in GitHub Desktop.
cart/store model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( | |
[ 'common/model/baseModel' ], | |
function (BaseModel) { | |
return BaseModel.extend({ | |
urlRoot: function() { | |
}, | |
defaults: function() { | |
return { | |
storeId: null, | |
storeName: null, | |
paymentMethod: null, | |
deliveryOptions: null, | |
products: [] | |
/** | |
* Each item in products should have: | |
{ | |
name: null, | |
price: 0, | |
maxQuantityPerOrder: 0, | |
imageUrl: null, | |
quantity: 0 | |
} | |
*/ | |
}; | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment