Adds SFRA 6.0
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
'use strict';
|
||||
|
||||
var productInventoryMgr = {
|
||||
getInventoryList: function (inventoryListId) {
|
||||
var inventoryListId0001 = {
|
||||
getRecord: function (productID) {
|
||||
var product000001 = {
|
||||
ATS: { value: 10 }
|
||||
};
|
||||
|
||||
var product000002 = {
|
||||
ATS: { value: 3 }
|
||||
};
|
||||
|
||||
var product000003 = {
|
||||
ATS: { value: 5 }
|
||||
};
|
||||
|
||||
if (productID === '000001') {
|
||||
return product000001;
|
||||
} else if (productID === '000002') {
|
||||
return product000002;
|
||||
} else if (productID === '000003') {
|
||||
return product000003;
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
var inventoryListId0002 = {
|
||||
getRecord: function (productID) {
|
||||
var product000001 = {
|
||||
ATS: { value: 0 }
|
||||
};
|
||||
|
||||
var product000002 = {
|
||||
ATS: { value: 8 }
|
||||
};
|
||||
|
||||
var product000003 = {
|
||||
ATS: { value: 10 }
|
||||
};
|
||||
|
||||
if (productID === '000001') {
|
||||
return product000001;
|
||||
} else if (productID === '000002') {
|
||||
return product000002;
|
||||
} else if (productID === '000003') {
|
||||
return product000003;
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
var inventoryListId0003 = {
|
||||
getRecord: function (productID) {
|
||||
var product000001 = {
|
||||
ATS: { value: 10 }
|
||||
};
|
||||
|
||||
var product000002 = {
|
||||
ATS: { value: 15 }
|
||||
};
|
||||
|
||||
var product000003 = {
|
||||
ATS: { value: 8 }
|
||||
};
|
||||
|
||||
if (productID === '000001') {
|
||||
return product000001;
|
||||
} else if (productID === '000002') {
|
||||
return product000002;
|
||||
} else if (productID === '000003') {
|
||||
return product000003;
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
if (inventoryListId === 'inventoryListId0001') {
|
||||
return inventoryListId0001;
|
||||
} else if (inventoryListId === 'inventoryListId0002') {
|
||||
return inventoryListId0002;
|
||||
} else if (inventoryListId === 'inventoryListId0003') {
|
||||
return inventoryListId0003;
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
module.exports = {
|
||||
getInventoryList: productInventoryMgr.getInventoryList
|
||||
};
|
@@ -0,0 +1,60 @@
|
||||
'use strict';
|
||||
|
||||
var storeMgr = {
|
||||
searchStoresByPostalCode: function () {
|
||||
return {
|
||||
keySet: function () {
|
||||
return [{
|
||||
ID: 'Any ID',
|
||||
name: 'Downtown TV Shop',
|
||||
address1: '333 Washington St',
|
||||
address2: '',
|
||||
city: 'Boston',
|
||||
postalCode: '01803',
|
||||
phone: '333-333-3333',
|
||||
stateCode: 'MA',
|
||||
countryCode: {
|
||||
value: 'us'
|
||||
},
|
||||
latitude: 42.5273334,
|
||||
longitude: -71.13758250000001,
|
||||
storeHours: {
|
||||
markup: 'Mon - Sat: 10am - 9pm'
|
||||
}
|
||||
}];
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
searchStoresByCoordinates: function () {
|
||||
return {
|
||||
keySet: function () {
|
||||
return [{
|
||||
ID: 'Any ID',
|
||||
name: 'Downtown TV Shop',
|
||||
address1: '333 Washington St',
|
||||
address2: '',
|
||||
city: 'Boston',
|
||||
postalCode: '01803',
|
||||
phone: '333-333-3333',
|
||||
stateCode: 'MA',
|
||||
countryCode: {
|
||||
value: 'us'
|
||||
},
|
||||
latitude: 42.5273334,
|
||||
longitude: -71.13758250000001,
|
||||
storeHours: {
|
||||
markup: 'Mon - Sat: 10am - 9pm'
|
||||
}
|
||||
}];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
module.exports = {
|
||||
searchStoresByPostalCode: storeMgr.searchStoresByPostalCode,
|
||||
searchStoresByCoordinates: storeMgr.searchStoresByCoordinates
|
||||
};
|
Reference in New Issue
Block a user