taxtank-core 1.0.45 → 1.0.47
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.
@@ -8576,8 +8576,8 @@ class ServiceSubscriptionCollection extends Collection {
|
|
8576
8576
|
return this.filter((subscription) => !!subscription.stripeId);
|
8577
8577
|
}
|
8578
8578
|
getRoles() {
|
8579
|
-
const roles = this.
|
8580
|
-
if (
|
8579
|
+
const roles = this.getActive().toArray().flatMap((subscription) => subscription.roles);
|
8580
|
+
if (roles) {
|
8581
8581
|
roles.push(UserRolesEnum.SUBSCRIPTION);
|
8582
8582
|
}
|
8583
8583
|
return roles;
|
@@ -20655,6 +20655,7 @@ const ENDPOINTS = {
|
|
20655
20655
|
SERVICE_PAYMENTS_GET: new Endpoint('GET', '\\/service-payments'),
|
20656
20656
|
SERVICE_SUBSCRIPTIONS_GET: new Endpoint('GET', '\\/service-subscriptions'),
|
20657
20657
|
SERVICE_SUBSCRIPTIONS_POST: new Endpoint('POST', '\\/service-subscriptions'),
|
20658
|
+
SERVICE_SUBSCRIPTIONS_PUT: new Endpoint('PUT', '\\/service-subscriptions/\\d+'),
|
20658
20659
|
SERVICE_SUBSCRIPTIONS_TRIAL_POST: new Endpoint('POST', '\\/service-subscriptions/'),
|
20659
20660
|
SERVICE_SUBSCRIPTIONS_CANCEL: new Endpoint('PUT', '\\/service-subscriptions\\/\\d+\\/cancel'),
|
20660
20661
|
SERVICE_SUBSCRIPTIONS_RENEW: new Endpoint('PUT', '\\/service-subscriptions\\/\\d+\\/renewal'),
|