taxtank-core 0.29.28 → 0.29.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5482,7 +5482,7 @@
5482
5482
  }
5483
5483
  Object.defineProperty(SubscriptionItemCollection.prototype, "propertiesItem", {
5484
5484
  get: function () {
5485
- return this.find(function (item) { return item.price.product.isProperties(); });
5485
+ return this.filter(function (item) { return item.price.product.isProperties(); }).last;
5486
5486
  },
5487
5487
  enumerable: false,
5488
5488
  configurable: true
@@ -5526,6 +5526,9 @@
5526
5526
  ServiceSubscriptionCollection.prototype.getActivePaid = function () {
5527
5527
  return this.getActive().find(function (subscription) { return !!subscription.stripeId; });
5528
5528
  };
5529
+ /**
5530
+ * @TODO vik remove trials replaced by paid item
5531
+ */
5529
5532
  ServiceSubscriptionCollection.prototype.getItems = function () {
5530
5533
  return new SubscriptionItemCollection(flatten__default["default"](this.mapBy('items')));
5531
5534
  };