This file contains 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
{} |
This file contains 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
{ | |
"commisions": [{ | |
"id": 987654321, // OK | |
"network_id": "12345", // OK | |
"network_name": "ShareASale", // OK | |
"merchant_id": 843723, // OK, if supported by network API (almost all do) | |
"merchant_name": "DressLily", // OK, if supported by network API (almost all do) | |
"order_items": [{ // OK, if supported by network API. | |
"quantity": 1, // Most only have transactions info w/o "shopping cart" info. |
This file contains 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
var q = require('q'); | |
// Single promise function | |
var promiseFunction = function(){ | |
var deferred = q.defer(); | |
deferred.resolve(); | |
return deferred.promise; | |
}; |