File size: 843 Bytes
d6f631f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | package subscriptionaddon
import (
"github.com/openmeterio/openmeter/openmeter/productcatalog/addon"
"github.com/openmeterio/openmeter/pkg/models"
)
// SubscriptionAddonInstance is a "virtual" instance of a SubscriptionAddon:
// It merges the quantity information with the Addon information itself and represents the "effective" value of the addon for a given period.
type SubscriptionAddonInstance struct {
models.NamespacedID
models.ManagedModel
models.MetadataModel
models.CadencedModel
Name string `json:"name"`
Description *string `json:"description,omitempty"`
// AddonID string `json:"addonID"`
Addon addon.Addon `json:"addon"`
SubscriptionID string `json:"subscriptionID"`
RateCards []SubscriptionAddonRateCard `json:"rateCards"`
Quantity int `json:"quantity"`
}
|