Documentation

UserVatCertificatesService
in package

Table of Contents

Constants

FILE_UPLOAD_KEY  = '_certificate_file'
STORAGE_RELATIVE_PATH_PART  = 'imports' . DS . 'certificates' . DS

Properties

$storage  : GoogleCloudStorageComponent
$certificateDate  : mixed
$certificateType  : mixed
$cloudStorageService  : CloudStorageService
$filename  : mixed
$response  : Response
$userVat  : UserVat
$userVatCertificateRepository  : UserVatCertificateRepository

Methods

__construct()  : mixed
handleDownloadFile()  : mixed
handleSaveFile()  : array<string|int, mixed>|null
deleteLocalFile()  : mixed
getCertificateType()  : string|null
getCloudFullPath()  : string
getCloudUploadPath()  : string
getExtension()  : mixed
getFilename()  : mixed
getLocalFilePath()  : string
getStorageRelativePathPart()  : string
getUploadFolderPath()  : string
getUploadHandler()  : FileUpload
getUserVat()  : UserVat|null
saveToCloud()  : mixed
createDirectoryIfNeeded()  : mixed
downloadTaxUserVatCertificate()  : mixed
downloadVatUserVatCertificate()  : mixed
getBucket()  : mixed
getCertificateDate()  : DateTime|null
getCloudFileName()  : string
getCloudFolderPath()  : string
handleGcUpload()  : void
saveLocalFile()  : mixed
saveTaxUserVatCertificate()  : array<string|int, mixed>
saveUserVatCertificate()  : array<string|int, mixed>|null
saveVatUserVatCertificate()  : array<string|int, mixed>

Constants

Properties

Methods

handleDownloadFile()

public handleDownloadFile(string $certificateType, mixed $userVat) : mixed
Parameters
$certificateType : string
$userVat : mixed
Tags
throws
Exception

handleSaveFile()

public handleSaveFile(FileInterface $certificateFile, string $certificateType, UserVat $userVat) : array<string|int, mixed>|null
Parameters
$certificateFile : FileInterface
$certificateType : string
$userVat : UserVat
Tags
throws
ResourceNotFoundException
Return values
array<string|int, mixed>|null

        
On this page

Search results