FileUpload
in package
A file that has been uploaded to FreshBooks.
Table of Contents
Properties
- $fileName : string
- $jwt : string
- $link : string
- $mediaType : string
- $responseBody : string
Methods
- __construct() : mixed
Properties
$fileName
public
string
$fileName
The name of the file uploaded to FreshBooks.
This is returned from the API in the X-filename
header.
$jwt
public
string
$jwt
The JWT used to fetch the file from FreshBooks.
$link
public
string
$link
A fully qualified path the the file from FreshBooks.
$mediaType
public
string
$mediaType
The media type (eg. image/png
) of the file uploaded to FreshBooks.
$responseBody
public
string
$responseBody
The PSR StreamInterface steam of data from the request body.
Methods
__construct()
public
__construct(string|null $fileName, string|null $mediaType, StreamInterface|null $responseBody) : mixed
Parameters
- $fileName : string|null
- $mediaType : string|null
- $responseBody : StreamInterface|null