ConversionRequest
        
        extends Model
    
    
            
            in package
            
        
    
            
            implements
                            Entity,                             HasUrl                    
    
            
            Uses
                            HasEntity,                             HasFactory,                             HasUserMorph                    
    
Class ConversionRequest
Table of Contents
Interfaces
Constants
- ENTITY_TYPE = 'activitypoint_conversion_request'
 
Properties
Methods
- entityId() : int
 - entityType() : string
 - getActualTextAttribute() : string
 - getCommissionTextAttribute() : string
 - getIsApprovedAttribute() : bool
 - getIsCancelledAttribute() : bool
 - getIsDeniedAttribute() : bool
 - getIsPendingAttribute() : bool
 - getStatusTextAttribute() : string
 - getTotalTextAttribute() : string
 - getUserAttribute() : mixed
 - getUserEntityAttribute() : mixed
 - isUser() : bool
 - check if $user is the user (creator) of entity.
 - moduleName() : string
 - statistic() : BelongsTo
 - toAdminCPUrl() : string
 - toLink() : string|null
 - toRouter() : string|null
 - toUrl() : string|null
 - user() : MorphTo
 - userEntity() : BelongsTo
 - userId() : int
 - userType() : string
 
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'activitypoint_conversion_request'
    
    
    
Properties
$casts
    public
        mixed
    $casts
     = ['points' => 'integer', 'total' => 'float', 'commission' => 'float', 'actual' => 'float']
    
    
    
$id
    public
        int
    $id
    
    
    
    
$fillable
    protected
        array<string|int, string>
    $fillable
     = ['user_id', 'user_type', 'points', 'currency', 'total', 'commission', 'actual', 'status', 'denied_reason', 'created_at', 'updated_at']
    
    
    
$table
    protected
        mixed
    $table
     = 'apt_conversion_requests'
    
    
    
Methods
entityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringgetActualTextAttribute()
    public
                    getActualTextAttribute() : string
    Return values
stringgetCommissionTextAttribute()
    public
                    getCommissionTextAttribute() : string
    Return values
stringgetIsApprovedAttribute()
    public
                    getIsApprovedAttribute() : bool
    Return values
boolgetIsCancelledAttribute()
    public
                    getIsCancelledAttribute() : bool
    Return values
boolgetIsDeniedAttribute()
    public
                    getIsDeniedAttribute() : bool
    Return values
boolgetIsPendingAttribute()
    public
                    getIsPendingAttribute() : bool
    Return values
boolgetStatusTextAttribute()
    public
                    getStatusTextAttribute() : string
    Return values
stringgetTotalTextAttribute()
    public
                    getTotalTextAttribute() : string
    Return values
stringgetUserAttribute()
    public
                    getUserAttribute() : mixed
    getUserEntityAttribute()
    public
                    getUserEntityAttribute() : mixed
    isUser()
check if $user is the user (creator) of entity.
    public
                    isUser(User $user) : bool
    Parameters
- $user : User
 
Return values
boolmoduleName()
    public
                    moduleName() : string
    Return values
stringstatistic()
    public
                    statistic() : BelongsTo
    Return values
BelongsTotoAdminCPUrl()
    public
                    toAdminCPUrl() : string
    Return values
stringtoLink()
    public
                    toLink() : string|null
    Return values
string|nulltoRouter()
    public
                    toRouter() : string|null
    Return values
string|nulltoUrl()
    public
                    toUrl() : string|null
    Return values
string|nulluser()
    public
                    user() : MorphTo
    Return values
MorphTouserEntity()
    public
                    userEntity() : BelongsTo
    Return values
BelongsTouserId()
    public
                    userId() : int
    Return values
intuserType()
    public
                    userType() : string