pricing.PERMANENT
This commit is contained in:
@@ -95,7 +95,7 @@ type ComputeResourcePricingProfile struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *ComputeResourcePricingProfile) IsPurchasable() bool {
|
func (p *ComputeResourcePricingProfile) IsPurchasable() bool {
|
||||||
return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION
|
return p.Pricing.BuyingStrategy == pricing.PERMANENT
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *ComputeResourcePricingProfile) GetPurchase() pricing.BuyingStrategy {
|
func (p *ComputeResourcePricingProfile) GetPurchase() pricing.BuyingStrategy {
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ func (p *DataResourcePricingProfile) GetOverrideStrategyValue() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *DataResourcePricingProfile) IsPurchasable() bool {
|
func (p *DataResourcePricingProfile) IsPurchasable() bool {
|
||||||
return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION
|
return p.Pricing.BuyingStrategy == pricing.PERMANENT
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *DataResourcePricingProfile) IsBooked() bool {
|
func (p *DataResourcePricingProfile) IsBooked() bool {
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ type ProcessingResourcePricingProfile struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *ProcessingResourcePricingProfile) IsPurchasable() bool {
|
func (p *ProcessingResourcePricingProfile) IsPurchasable() bool {
|
||||||
return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION
|
return p.Pricing.BuyingStrategy == pricing.PERMANENT
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *ProcessingResourcePricingProfile) IsBooked() bool {
|
func (p *ProcessingResourcePricingProfile) IsBooked() bool {
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ type StorageResourcePricingProfile struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *StorageResourcePricingProfile) IsPurchasable() bool {
|
func (p *StorageResourcePricingProfile) IsPurchasable() bool {
|
||||||
return p.Pricing.BuyingStrategy != pricing.UNDEFINED_SUBSCRIPTION
|
return p.Pricing.BuyingStrategy == pricing.PERMANENT
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *StorageResourcePricingProfile) IsBooked() bool {
|
func (p *StorageResourcePricingProfile) IsBooked() bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user