ExpenseAttachment
        
        extends DataTransferObject
    
    
            
            in package
            
        
    
            
            implements
                            DataModel                    
    
    
Attached receipt image details for an expense.
Note: This data is not in the default response and will only be present with the use of a corresponding "includes" filter.
Tags
Table of Contents
Interfaces
Constants
- RESPONSE_FIELD = 'expense'
Properties
- $attachmentId : int
- $id : int
- $jwt : string
- $mediaType : string
Methods
- getContent() : array<string|int, mixed>
- Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.
Constants
RESPONSE_FIELD
    public
        mixed
    RESPONSE_FIELD
    = 'expense'
    
    
    
    
Properties
$attachmentId
        public
            int
    $attachmentId
    
    
        Duplicate of id
Attributes
- #[MapFrom]
- 'attachmentid'
$id
        public
            int
    $id
    
    
        The unique identifier of this expense attachment within this business.
$jwt
        public
            string
    $jwt
    
    
        JWT link to the attachment.
$mediaType
        public
            string
    $mediaType
    
    
        Type of the attachment.
Attributes
- #[MapFrom]
- 'media_type'
- #[MapTo]
- 'media_type'
Methods
getContent()
Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.
    public
                    getContent() : array<string|int, mixed>