Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dw/campaign/CouponStatusCodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ CouponStatusCodes.TIMEFRAME_REDEMPTION_LIMIT_EXCEEDED = 'TIMEFRAME_REDEMPTION_LI
CouponStatusCodes.COUPON_ALREADY_IN_BASKET = 'COUPON_ALREADY_IN_BASKET';
CouponStatusCodes.APPLIED = 'APPLIED';


module.exports = CouponStatusCodes;
26 changes: 26 additions & 0 deletions dw/customer/AuthenticationStatus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const AuthenticationStatus = function() {

}

AuthenticationStatus.prototype.getCustomer = function getCustomer() {

}

AuthenticationStatus.prototype.getStatus = function getStatus() {

}

AuthenticationStatus.prototype.isAuthenticated = function isAuthenticated() {

}

Object.assign(AuthenticationStatus, {
AUTH_OK: "AUTH_OK",
ERROR_CUSTOMER_DISABLED: "ERROR_CUSTOMER_DISABLED",
ERROR_CUSTOMER_LOCKED: "ERROR_CUSTOMER_LOCKED",
ERROR_CUSTOMER_NOT_FOUND: "ERROR_CUSTOMER_NOT_FOUND",
ERROR_PASSWORD_EXPIRED: "ERROR_PASSWORD_EXPIRED",
ERROR_PASSWORD_MISMATCH: "ERROR_PASSWORD_MISMATCH",
});

module.exports = AuthenticationStatus;
2 changes: 2 additions & 0 deletions dw/customer/Customer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var Customer = function(){};

Customer.AuthenticationStatus = require('./AuthenticationStatus');

Customer.prototype.isRegistered = function(){};
Customer.prototype.getID = function(){};
Customer.prototype.getCustomerGroups = function(){};
Expand Down
6 changes: 6 additions & 0 deletions dw/customer/CustomerMgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ CustomerMgr.getExternallyAuthenticatedCustomerProfile = function(){};
CustomerMgr.loginExternallyAuthenticatedCustomer = function(){};
CustomerMgr.getCustomerByCustomerNumber = function(){};
CustomerMgr.createCustomer = function() {};
CustomerMgr.authenticateCustomer = function() {};
CustomerMgr.loginCustomer = function() {};
CustomerMgr.getCustomerByLogin = function() {};
CustomerMgr.isAcceptablePassword = function isAcceptablePassword() {};
CustomerMgr.logoutCustomer = function logoutCustomer() {};

CustomerMgr.prototype.customerGroups=null;
CustomerMgr.prototype.profile=null;
CustomerMgr.prototype.registeredCustomerCount=null;
Expand Down
1 change: 1 addition & 0 deletions dw/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ exports.SitePreferences = require('./system/SitePreferences.js');
exports.Status = require('./system/Status.js');
exports.StatusItem = require('./system/StatusItem.js');
exports.System = require('./system/System.js');
exports.Transaction = require('./system/Transaction.js');
exports.Logger = require('./system/Logger.js');
3 changes: 3 additions & 0 deletions dw/system/Site.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ Site.prototype.timezone=null;
Site.prototype.timezoneOffset=null;
Site.prototype.calendar=null;


Site.current = new Site();

module.exports = Site;