Addon
    class
    Addon        extends AbstractModel        implements
        ServiceInterface, InvoicingServiceInterface, SubscriptionAwareInterface
                    Traits
                        DomainTraits
                        
                    
                                
                        ProvisioningTraits
                        
                    
                                
                        SubscriptionAwareTrait
                        
                    
                    Properties summary
| Type | Property | Description | |
|---|---|---|---|
| protected | $table | ||
| protected | $columnMap | ||
| protected | $dates | ||
| protected | $appends | 
Methods summary
| Return Type | Method Name | Description | |
|---|---|---|---|
| Service | getServiceActual() | - | |
| Service | getServiceSurrogate() | - | |
| bool | hasServiceSurrogate() | - | |
| Client | getServiceClient() | - | |
| Properties | getServiceProperties() | - | |
| static | boot() | - | |
| Builder | scopeUserId(Builder $query, int $userId) | - | |
| Builder | scopeOfService(Builder $query, integer $serviceId) | - | |
| Builder | scopeActive(Builder $query) | - | |
| Builder | scopeMarketConnect(Builder $query) | Filter for only MarketConnect addon services. | |
| Builder | scopeIsConsideredActive(Builder $query) | - | |
| Builder | scopeIsNotRecurring(Builder $query) | - | |
| BelongsTo | service() | Each addon belongs to one service. | |
| BelongsTo | productAddon() | Each addon belongs to a single product addon. | |
| BelongsTo | client() | Each addon belongs to one client. | |
| HasMany|CustomFieldValue | customFieldValues() | - | |
| getCustomFieldType() | - | ||
| getCustomFieldRelId() | - | ||
| static array | getNonTerminalStatuses() | Status values representative of an entry that has further status values it could transition to. | |
| BelongsTo | order() | An addon belongs to a single order. | |
| HasMany | paymentGateway() | Each addon has many payment gateway records. | |
| Properties | getServicePropertiesAttribute() | - | |
| HasMany | ssl() | Each addon could have many ssl records. | |
| BelongsToMany | invoices() | - | |
| bool | canBeUpgraded() | Determine if addon can be upgraded. | |
| bool | isService() | Is this entity a service? | |
| bool | isAddon() | Is this entity an addon? | |
| HasOne | serverModel() | - | |
| HasMany | failedActions() | - | |
| HasMany | moduleConfiguration() | - | |
| string | legacyProvision() | Run provision action in legacy mode. | |
| bool | isProrated() | - | |
| bool | isRecurring() | - | |
| bool | isFree() | - | |
| getLink() | - | ||
| float | recalculateRecurringPrice() | - | |
| string | getProvisioningTypeAttribute() | - | |
| AddonInterface|null | getServiceProduct() | Returns the associated predefined Addon or an AdHoc addon if the product addon is null | |
| string | getInvoicingServiceItemType() | - | |
| Price | getInvoicingServiceFirstPaymentAmount() | - | |
| Price | getInvoicingServiceRecurringAmount() | - | |
| bool | isServiceMetricUsage() | Addon does not support Usage billing at this time | 
Details
                            Service
    getServiceActual ()
        
    
    
                            Service
    getServiceSurrogate ()
        
    
    
                            bool
    hasServiceSurrogate ()
        
    
    
                            Client
    getServiceClient ()
        
    
    
                            Properties
    getServiceProperties ()
        
    
    
                static            
    boot ()
        
    
    
                            Builder
    scopeUserId (Builder $query, int $userId)
        
    
    
                            Builder
    scopeOfService (Builder $query, integer $serviceId)
        
    
    
                            Builder
    scopeActive (Builder $query)
        
    
    
                            Builder
    scopeMarketConnect (Builder $query)
        
    
    Filter for only MarketConnect addon services.
                            Builder
    scopeIsConsideredActive (Builder $query)
        
    
    
                            Builder
    scopeIsNotRecurring (Builder $query)
        
    
    
                            BelongsTo
    service ()
        
    
    Each addon belongs to one service.
                            BelongsTo
    productAddon ()
        
    
    Each addon belongs to a single product addon.
                            BelongsTo
    client ()
        
    
    Each addon belongs to one client.
                            HasMany|CustomFieldValue
    customFieldValues ()
        
    
    
                    protected        
    getCustomFieldType ()
        
    
    
                    protected        
    getCustomFieldRelId ()
        
    
    
                static            array
    getNonTerminalStatuses ()
        
    
    Status values representative of an entry that has further status values it could transition to.
                            BelongsTo
    order ()
        
    
    An addon belongs to a single order.
                            HasMany
    paymentGateway ()
        
    
    Each addon has many payment gateway records.
                            Properties
    getServicePropertiesAttribute ()
        
    
    
                            HasMany
    ssl ()
        
    
    Each addon could have many ssl records.
                            BelongsToMany
    invoices ()
        
    
    
                            bool
    canBeUpgraded ()
        
    
    Determine if addon can be upgraded.
                            bool
    isService ()
        
    
    Is this entity a service?
                            bool
    isAddon ()
        
    
    Is this entity an addon?
                            HasOne
    serverModel ()
        
    
    
                            HasMany
    failedActions ()
        
    
    
                            HasMany
    moduleConfiguration ()
        
    
    
                            string
    legacyProvision ()
        
    
    Run provision action in legacy mode.
Legacy mode returns 'success' on success and an error message string on failure.
                            bool
    isProrated ()
        
    
    
                            bool
    isRecurring ()
        
    
    
                            bool
    isFree ()
        
    
    
                            
    getLink ()
        
    
    
                            float
    recalculateRecurringPrice ()
        
    
    
                            string
    getProvisioningTypeAttribute ()
        
    
    
                            AddonInterface|null
    getServiceProduct ()
        
    
    Returns the associated predefined Addon or an AdHoc addon if the product addon is null
                            string
    getInvoicingServiceItemType ()
        
    
    
                            Price
    getInvoicingServiceFirstPaymentAmount ()
        
    
    
                            Price
    getInvoicingServiceRecurringAmount ()
        
    
    
                            bool
    isServiceMetricUsage ()
        
    
    Addon does not support Usage billing at this time