Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<app-subscription-status
[organizationSubscriptionResponse]="sub"
(reinstatementRequested)="reinstate()"
*ngIf="!userOrg.isFreeOrg"
*ngIf="!userOrg.isFreeOrg && !isResellerOrganizationOwnerExempt"
></app-subscription-status>
<ng-container *ngIf="userOrg.canEditSubscription">
<div class="tw-flex-col">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class OrganizationSubscriptionResponse extends OrganizationResponse {
customerDiscount: BillingCustomerDiscount;
expiration: string;
expirationWithoutGracePeriod: string;
exemptFromBillingAutomation: boolean;

constructor(response: any) {
super(response);
Expand All @@ -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");
}
}

Expand Down
Loading