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.
- package/bundles/taxtank-core.umd.js +4 -1
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/subscription/service-subscription.collection.js +4 -1
- package/esm2015/lib/collections/subscription/subscription-item.collection.js +2 -2
- package/fesm2015/taxtank-core.js +4 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/subscription/service-subscription.collection.d.ts +3 -0
- package/package.json +1 -1
|
@@ -5482,7 +5482,7 @@
|
|
|
5482
5482
|
}
|
|
5483
5483
|
Object.defineProperty(SubscriptionItemCollection.prototype, "propertiesItem", {
|
|
5484
5484
|
get: function () {
|
|
5485
|
-
return this.
|
|
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
|
};
|