DoneReturnService
in package
FinalYes
Table of Contents
Constants
- FILE_UPLOAD_KEY = 'submit_proof_file'
- STORAGE_RELATIVE_PATH_PART = 'imports' . DS . 'entries' . DS . 'submission_proofs' . DS
Properties
- $em : EntityManager
- $request : Request
- $storage : GoogleCloudStorageComponent
- $auth : AuthComponent
- $config : Config
- $dateTime : mixed
- $delayedFilesService : DelayedFilesService
- $entry : mixed
- $entryComponent : EntryComponent
- $entryDownloadService : EntryDownloadService
- $entryFilterService : EntryFilterService
- $entryId : mixed
- $entryReport : mixed
- $entryReportRepository : EntryReportRepository
- $entryReportService : EntryReportService
- $entryRepository : EntryRepository
- $entrySubmissionRepository : EntrySubmissionRepository
- $entrySubmissionService : EntrySubmissionService
- $entryVersionService : EntryVersionService
- $eventsManager : Manager
- $extension : mixed
- $file : mixed
- $filename : mixed
- $isReupload : mixed
- $loggerService : LoggerService
- $response : Response
- $reUploadTimestamp : mixed
- $snapshotService : SnapshotService
- $uploadHandler : mixed
- $uploadTimestamp : mixed
- $version : mixed
Methods
- __construct() : mixed
- DoneReturnService constructor.
- attachSubmissionProofToSubmittedReturnByEntryId() : mixed
- cancelReturnOnHoldByEntryId() : void
- cancelReturnOnHoldByEntryIdList() : BulkActionResponse
- cancelReturnPaidByEntryId() : void
- cancelReturnPaidByEntryIdList() : BulkActionResponse
- cancelReturnQualityControlByEntryId() : bool
- cancelReturnQualityControlByEntryIdList() : BulkActionResponse
- doneReturnOnHoldByEntryId() : void
- doneReturnOnHoldByEntryIdList() : BulkActionResponse
- doneReturnPaidByEntryId() : void
- doneReturnPaidByEntryIdList() : int
- doneReturnPaidByFilteredEntries() : void
- doneReturnQualityControlAndCreateVersionAndDownloadByEntryIdList() : BulkActionResponse
- doneReturnQualityControlAndCreateVersionByEntryId() : bool
- doneReturnQualityControlAndCreateVersionByEntryIdList() : BulkActionResponse
- doneReturnSubmittedByEntryId() : void
- doneReturnSubmittedByEntryIdList() : BulkActionResponse
- doneReturnSubmittedByFilteredEntries() : void
- handleUpload() : mixed
- reUploadSubmissionProofByEntryId() : mixed
- toggleReturnOnHoldByEntryId() : void
- deleteLocalFile() : mixed
- getCloudFolderPath() : string
- getCloudFullPath() : string
- getCloudUploadPath() : string
- getEntry() : Entry|null
- getEntryReport() : EntryReport|EntryPast
- getExtension() : mixed
- getFilename() : mixed
- getLocalFilePath() : string
- getStorageRelativePathPart() : string
- getUploadFolderPath() : string
- getUploadHandler() : FileUpload
- saveLocalFile() : mixed
- saveToCloud() : mixed
- validate() : mixed
- arrayMerge() : array<string|int, mixed>|null
- createDelayedFileDeletionForEntrySubmission() : mixed
- createDirectoryIfNeeded() : mixed
- createJobPaymentProofUploaded() : mixed
- getBucket() : mixed
- getCloudFileName() : string
- handleSaveEntrySubmissionFile() : void
Constants
FILE_UPLOAD_KEY
public
mixed
FILE_UPLOAD_KEY
= 'submit_proof_file'
STORAGE_RELATIVE_PATH_PART
public
mixed
STORAGE_RELATIVE_PATH_PART
= 'imports' . DS . 'entries' . DS . 'submission_proofs' . DS
Properties
$em
protected
EntityManager
$em
$request
protected
Request
$request
$storage
protected
GoogleCloudStorageComponent
$storage
$auth
private
AuthComponent
$auth
;
$config
private
Config
$config
$dateTime
private
mixed
$dateTime
$delayedFilesService
private
DelayedFilesService
$delayedFilesService
$entry
private
mixed
$entry
$entryComponent
private
EntryComponent
$entryComponent
$entryDownloadService
private
EntryDownloadService
$entryDownloadService
$entryFilterService
private
EntryFilterService
$entryFilterService
$entryId
private
mixed
$entryId
$entryReport
private
mixed
$entryReport
$entryReportRepository
private
EntryReportRepository
$entryReportRepository
$entryReportService
private
EntryReportService
$entryReportService
$entryRepository
private
EntryRepository
$entryRepository
$entrySubmissionRepository
private
EntrySubmissionRepository
$entrySubmissionRepository
$entrySubmissionService
private
EntrySubmissionService
$entrySubmissionService
$entryVersionService
private
EntryVersionService
$entryVersionService
$eventsManager
private
Manager
$eventsManager
$extension
private
mixed
$extension
$file
private
mixed
$file
$filename
private
mixed
$filename
$isReupload
private
mixed
$isReupload
$loggerService
private
LoggerService
$loggerService
$response
private
Response
$response
$reUploadTimestamp
private
mixed
$reUploadTimestamp
$snapshotService
private
SnapshotService
$snapshotService
$uploadHandler
private
mixed
$uploadHandler
$uploadTimestamp
private
mixed
$uploadTimestamp
$version
private
mixed
$version
Methods
__construct()
DoneReturnService constructor.
public
__construct(EntryReportRepository $entryReportRepository, EntryDownloadService $entryDownloadService, EntryVersionService $entryVersionService, EntryReportService $entryReportService, EntryFilterService $entryFilterService, EntryRepository $entryRepository, Manager $eventsManager, AuthComponent $auth, EntryComponent $entryComponent, Config $config, LoggerService $loggerService, SnapshotService $snapshotService, Response $response, GoogleCloudStorageComponent $storage, EntityManager $em, Request $request, DelayedFilesService $delayedFilesService, EntrySubmissionRepository $entrySubmissionRepository, EntrySubmissionService $entrySubmissionService) : mixed
Parameters
- $entryReportRepository : EntryReportRepository
- $entryDownloadService : EntryDownloadService
- $entryVersionService : EntryVersionService
- $entryReportService : EntryReportService
- $entryFilterService : EntryFilterService
- $entryRepository : EntryRepository
- $eventsManager : Manager
- $auth : AuthComponent
- $entryComponent : EntryComponent
- $config : Config
- $loggerService : LoggerService
- $snapshotService : SnapshotService
- $response : Response
- $storage : GoogleCloudStorageComponent
- $em : EntityManager
- $request : Request
- $delayedFilesService : DelayedFilesService
- $entrySubmissionRepository : EntrySubmissionRepository
- $entrySubmissionService : EntrySubmissionService
attachSubmissionProofToSubmittedReturnByEntryId()
public
attachSubmissionProofToSubmittedReturnByEntryId(int $entryId[, bool $isMultipleUpload = false ]) : mixed
Parameters
- $entryId : int
- $isMultipleUpload : bool = false
Tags
cancelReturnOnHoldByEntryId()
public
cancelReturnOnHoldByEntryId(int $entryId) : void
Parameters
- $entryId : int
Tags
cancelReturnOnHoldByEntryIdList()
public
cancelReturnOnHoldByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
BulkActionResponsecancelReturnPaidByEntryId()
public
cancelReturnPaidByEntryId(int $entryId) : void
Parameters
- $entryId : int
Tags
cancelReturnPaidByEntryIdList()
public
cancelReturnPaidByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
BulkActionResponsecancelReturnQualityControlByEntryId()
public
cancelReturnQualityControlByEntryId(int $entryId) : bool
Parameters
- $entryId : int
Tags
Return values
boolcancelReturnQualityControlByEntryIdList()
public
cancelReturnQualityControlByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
BulkActionResponsedoneReturnOnHoldByEntryId()
public
doneReturnOnHoldByEntryId(int $entryId) : void
Parameters
- $entryId : int
Tags
doneReturnOnHoldByEntryIdList()
public
doneReturnOnHoldByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
BulkActionResponsedoneReturnPaidByEntryId()
public
doneReturnPaidByEntryId(int $entryId) : void
Parameters
- $entryId : int
Tags
doneReturnPaidByEntryIdList()
public
doneReturnPaidByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : int
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
intdoneReturnPaidByFilteredEntries()
public
doneReturnPaidByFilteredEntries() : void
Tags
doneReturnQualityControlAndCreateVersionAndDownloadByEntryIdList()
public
doneReturnQualityControlAndCreateVersionAndDownloadByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
BulkActionResponsedoneReturnQualityControlAndCreateVersionByEntryId()
public
doneReturnQualityControlAndCreateVersionByEntryId(int $entryId) : bool
Parameters
- $entryId : int
Tags
Return values
booldoneReturnQualityControlAndCreateVersionByEntryIdList()
public
doneReturnQualityControlAndCreateVersionByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
BulkActionResponsedoneReturnSubmittedByEntryId()
public
doneReturnSubmittedByEntryId(int $entryId[, bool $isMultipleUpload = false ]) : void
Parameters
- $entryId : int
- $isMultipleUpload : bool = false
Tags
doneReturnSubmittedByEntryIdList()
public
doneReturnSubmittedByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
- $entryIdList : array<string|int, mixed> = null
Tags
Return values
BulkActionResponsedoneReturnSubmittedByFilteredEntries()
public
doneReturnSubmittedByFilteredEntries() : void
Tags
handleUpload()
public
handleUpload(int $entryId, int $version[, bool $isReupload = false ]) : mixed
Parameters
- $entryId : int
- $version : int
- $isReupload : bool = false
Tags
reUploadSubmissionProofByEntryId()
public
reUploadSubmissionProofByEntryId(int $entryId[, bool $isMultipleUpload = false ]) : mixed
Parameters
- $entryId : int
- $isMultipleUpload : bool = false
Tags
toggleReturnOnHoldByEntryId()
public
toggleReturnOnHoldByEntryId(int $entryId) : void
Parameters
- $entryId : int
Tags
deleteLocalFile()
protected
deleteLocalFile() : mixed
Tags
getCloudFolderPath()
protected
getCloudFolderPath() : string
Tags
Return values
stringgetCloudFullPath()
protected
getCloudFullPath() : string
Tags
Return values
stringgetCloudUploadPath()
protected
getCloudUploadPath() : string
Tags
Return values
stringgetEntry()
protected
getEntry() : Entry|null
Return values
Entry|nullgetEntryReport()
protected
getEntryReport([bool $refresh = false ]) : EntryReport|EntryPast
Parameters
- $refresh : bool = false
Return values
EntryReport|EntryPastgetExtension()
protected
getExtension() : mixed
getFilename()
protected
getFilename() : mixed
getLocalFilePath()
protected
getLocalFilePath() : string
Tags
Return values
stringgetStorageRelativePathPart()
protected
getStorageRelativePathPart() : string
Return values
stringgetUploadFolderPath()
protected
getUploadFolderPath() : string
Tags
Return values
stringgetUploadHandler()
protected
getUploadHandler() : FileUpload
Return values
FileUploadsaveLocalFile()
protected
saveLocalFile() : mixed
Tags
saveToCloud()
protected
saveToCloud() : mixed
Tags
validate()
protected
validate(int $entryId, int $version, bool $isReupload) : mixed
Parameters
- $entryId : int
- $version : int
- $isReupload : bool
arrayMerge()
private
arrayMerge(array<string|int, mixed>|null $firstArray, array<string|int, mixed>|null $secondArray) : array<string|int, mixed>|null
Parameters
- $firstArray : array<string|int, mixed>|null
- $secondArray : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullcreateDelayedFileDeletionForEntrySubmission()
private
createDelayedFileDeletionForEntrySubmission(Entry $entry, EntryReport $entryReport) : mixed
Parameters
- $entry : Entry
- $entryReport : EntryReport
Tags
createDirectoryIfNeeded()
private
createDirectoryIfNeeded(mixed $path) : mixed
Parameters
- $path : mixed
createJobPaymentProofUploaded()
private
createJobPaymentProofUploaded(mixed $clientId, mixed $entryId) : mixed
Parameters
- $clientId : mixed
- $entryId : mixed
getBucket()
private
getBucket() : mixed
getCloudFileName()
private
getCloudFileName() : string
Tags
Return values
stringhandleSaveEntrySubmissionFile()
private
handleSaveEntrySubmissionFile(EntryReport $entryReport, bool $isMultipleUpload, mixed $gcFullPath) : void
Parameters
- $entryReport : EntryReport
- $isMultipleUpload : bool
- $gcFullPath : mixed