taxtank-core 0.28.28 → 0.28.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.
@@ -1051,6 +1051,7 @@
1051
1051
  PROPERTIES_DOCUMENTS_PUT: new Endpoint('PUT', '\\/properties\\/documents\\/\\d+'),
1052
1052
  PROPERTIES_DOCUMENTS_DELETE: new Endpoint('DELETE', '\\/properties\\/documents\\/\\d+'),
1053
1053
  PROPERTIES_PHOTO_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/photo\.\*'),
1054
+ PROPERTIES_SALES_GET: new Endpoint('GET', '\\/properties\\/sales'),
1054
1055
  PROPERTIES_SUGGESTIONS_GET: new Endpoint('GET', '/property\\/\\w+\\/v2\\/.*$'),
1055
1056
  PROPERTIES_VALUATIONS_DOCUMENTS_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/valuations\\/\\d+\\/documents'),
1056
1057
  PRORATION_COST_POST: new Endpoint('POST', '\\/subscriptions\\/proration-cost'),
@@ -2660,6 +2661,12 @@
2660
2661
  ServiceSubscription.prototype.isPastDue = function () {
2661
2662
  return this.status === exports.ServiceSubscriptionStatusEnum.PAST_DUE;
2662
2663
  };
2664
+ /**
2665
+ * Check if current subscription has provided subscription item
2666
+ */
2667
+ ServiceSubscription.prototype.hasItem = function (itemToCheck) {
2668
+ return !!this.items.find(function (item) { return item.price.id === itemToCheck.price.id; });
2669
+ };
2663
2670
  return ServiceSubscription;
2664
2671
  }(ServiceSubscription$1));
2665
2672
  __decorate([