taxtank-core 0.28.27 → 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.
@@ -987,6 +987,7 @@
987
987
  DEPRECIATIONS_GET: new Endpoint('GET', '\\/depreciations'),
988
988
  DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
989
989
  DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
990
+ DEPRECIATIONS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+'),
990
991
  DEPRECIATION_RECEIPTS_POST: new Endpoint('POST', '\\/depreciations\\/\\d+\\/receipts'),
991
992
  DEPRECIATION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+\\/receipts\\/\\d+'),
992
993
  EMPLOYEES_GET: new Endpoint('GET', '\\/employees'),
@@ -1050,6 +1051,7 @@
1050
1051
  PROPERTIES_DOCUMENTS_PUT: new Endpoint('PUT', '\\/properties\\/documents\\/\\d+'),
1051
1052
  PROPERTIES_DOCUMENTS_DELETE: new Endpoint('DELETE', '\\/properties\\/documents\\/\\d+'),
1052
1053
  PROPERTIES_PHOTO_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/photo\.\*'),
1054
+ PROPERTIES_SALES_GET: new Endpoint('GET', '\\/properties\\/sales'),
1053
1055
  PROPERTIES_SUGGESTIONS_GET: new Endpoint('GET', '/property\\/\\w+\\/v2\\/.*$'),
1054
1056
  PROPERTIES_VALUATIONS_DOCUMENTS_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/valuations\\/\\d+\\/documents'),
1055
1057
  PRORATION_COST_POST: new Endpoint('POST', '\\/subscriptions\\/proration-cost'),
@@ -2659,6 +2661,12 @@
2659
2661
  ServiceSubscription.prototype.isPastDue = function () {
2660
2662
  return this.status === exports.ServiceSubscriptionStatusEnum.PAST_DUE;
2661
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
+ };
2662
2670
  return ServiceSubscription;
2663
2671
  }(ServiceSubscription$1));
2664
2672
  __decorate([