UNPKG

nativescript-payments

Version:
27 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var item_common_1 = require("./item.common"); var Item = (function (_super) { __extends(Item, _super); function Item(nativeValue) { var _this = _super.call(this, nativeValue) || this; _this.itemId = nativeValue.getSku(); _this.localizedDescription = nativeValue.getDescription(); _this.localizedTitle = nativeValue.getTitle(); _this.priceAmount = nativeValue.getPriceAmountMicros() / 1000000; _this.priceFormatted = nativeValue.getPrice(); _this.priceCurrencyCode = nativeValue.getPriceCurrencyCode(); _this.type = nativeValue.getType(); return _this; } Object.defineProperty(Item.prototype, "debug", { get: function () { return this.nativeValue.toString(); }, enumerable: true, configurable: true }); return Item; }(item_common_1.BaseItem)); exports.Item = Item; //# sourceMappingURL=item.android.js.map