Adds SFRA 6.0

This commit is contained in:
Isaac Vallee
2021-12-21 10:57:31 -08:00
parent d04eb5dd16
commit 823c7608c3
1257 changed files with 137087 additions and 0 deletions

View File

@@ -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
};

View File

@@ -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
};