diff --git a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html index e7192a69cb46..9edda8017647 100644 --- a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html +++ b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.html @@ -10,7 +10,7 @@
diff --git a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.ts b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.ts index 8086452f45fd..e2159ae2a41b 100644 --- a/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.ts +++ b/apps/web/src/app/billing/organizations/organization-subscription-cloud.component.ts @@ -65,6 +65,7 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy showSelfHost = false; organizationIsManagedByConsolidatedBillingMSP = false; resellerSeatsRemainingMessage: string; + isResellerOrganizationOwnerExempt: boolean; protected readonly gearIcon = GearIcon; protected readonly teamsStarter = ProductTierType.TeamsStarter; @@ -204,6 +205,9 @@ export class OrganizationSubscriptionCloudComponent implements OnInit, OnDestroy !this.subscription.cancelled && !this.subscriptionMarkedForCancel; + this.isResellerOrganizationOwnerExempt = + this.userOrg.hasReseller && !!this.sub?.exemptFromBillingAutomation; + this.loading = false; } diff --git a/libs/common/src/billing/models/response/organization-subscription.response.ts b/libs/common/src/billing/models/response/organization-subscription.response.ts index f5fdaaba9b2a..68a67e6ec4b4 100644 --- a/libs/common/src/billing/models/response/organization-subscription.response.ts +++ b/libs/common/src/billing/models/response/organization-subscription.response.ts @@ -16,6 +16,7 @@ export class OrganizationSubscriptionResponse extends OrganizationResponse { customerDiscount: BillingCustomerDiscount; expiration: string; expirationWithoutGracePeriod: string; + exemptFromBillingAutomation: boolean; constructor(response: any) { super(response); @@ -33,6 +34,7 @@ export class OrganizationSubscriptionResponse extends OrganizationResponse { customerDiscount == null ? null : new BillingCustomerDiscount(customerDiscount); this.expiration = this.getResponseProperty("Expiration"); this.expirationWithoutGracePeriod = this.getResponseProperty("ExpirationWithoutGracePeriod"); + this.exemptFromBillingAutomation = this.getResponseProperty("ExemptFromBillingAutomation"); } }