Repository URL to install this package:
|
Version:
1.1.3 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var displayPrice_1 = require("../displayPrice");
function convertToDisplayPrice(price) {
var displayPrice = new displayPrice_1.default();
displayPrice.useText = price.use_text;
displayPrice.text = price.text;
displayPrice.priceValue = price.price_value;
displayPrice.decimals = price.decimals;
displayPrice.currencySymbol = price.currency_symbol;
displayPrice.currencyIsPrefixed = price.currency_is_prefixed;
return displayPrice;
}
exports.convertToDisplayPrice = convertToDisplayPrice;
exports.default = convertToDisplayPrice;
//# sourceMappingURL=convertToDisplayPrice.js.map