LearningSalesForceCommerceC.../storefront-reference-architecture/test/mocks/dw.value.Money.js

14 lines
327 B
JavaScript
Raw Normal View History

2021-12-21 10:57:31 -08:00
'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;