LearningSalesForceCommerceC.../storefront-reference-architecture/test/mocks/dw.value.Money.js
2021-12-21 10:57:31 -08:00

14 lines
327 B
JavaScript

'use strict';
function Money(isAvailable) {
return {
available: isAvailable,
value: '10.99',
getDecimalValue: function () { return '10.99'; },
getCurrencyCode: function () { return 'USD'; },
subtract: function () { return new Money(isAvailable); }
};
}
module.exports = Money;