diff --git a/models/resources/compute.go b/models/resources/compute.go index 9db6593..b7bf63c 100755 --- a/models/resources/compute.go +++ b/models/resources/compute.go @@ -95,7 +95,7 @@ type ComputeResourcePricingProfile struct { } func (p *ComputeResourcePricingProfile) IsPurchasable() bool { - return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION + return p.Pricing.BuyingStrategy == pricing.PERMANENT } func (p *ComputeResourcePricingProfile) GetPurchase() pricing.BuyingStrategy { diff --git a/models/resources/data.go b/models/resources/data.go index 235fcd5..ce9aa0f 100755 --- a/models/resources/data.go +++ b/models/resources/data.go @@ -151,7 +151,7 @@ func (p *DataResourcePricingProfile) GetOverrideStrategyValue() int { } func (p *DataResourcePricingProfile) IsPurchasable() bool { - return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION + return p.Pricing.BuyingStrategy == pricing.PERMANENT } func (p *DataResourcePricingProfile) IsBooked() bool { diff --git a/models/resources/processing.go b/models/resources/processing.go index 4a74ca4..3fe55ab 100755 --- a/models/resources/processing.go +++ b/models/resources/processing.go @@ -98,7 +98,7 @@ type ProcessingResourcePricingProfile struct { } func (p *ProcessingResourcePricingProfile) IsPurchasable() bool { - return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION + return p.Pricing.BuyingStrategy == pricing.PERMANENT } func (p *ProcessingResourcePricingProfile) IsBooked() bool { diff --git a/models/resources/storage.go b/models/resources/storage.go index 805275c..0b6ff1e 100755 --- a/models/resources/storage.go +++ b/models/resources/storage.go @@ -170,7 +170,7 @@ type StorageResourcePricingProfile struct { } func (p *StorageResourcePricingProfile) IsPurchasable() bool { - return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION + return p.Pricing.BuyingStrategy == pricing.PERMANENT } func (p *StorageResourcePricingProfile) IsBooked() bool {