Skip to content
Snippets Groups Projects
Commit fc923cd7 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

feat() : Ajout des fonctions getAck et getAttr dans le connecteur Maarch-Rest...

feat() : Ajout des fonctions getAck et getAttr dans le connecteur Maarch-Rest afin de suivre els évolutions du connecteur Send SAE de Pastell à partir de la version 3.1.5
parent 07012218
Branches fix/seda2_transferSource
No related tags found
No related merge requests found
......@@ -104,6 +104,15 @@ class MaarchREST extends SAEConnecteur {
* @throws Exception
*/
public function getAcuseReception($id_transfert) {
return $this->getAck($id_transfert, $this->originatingAgency);
}
/**
* @param $id_transfert
* @return string Le contenu du fichier XML contenant l'accusé de reception
* @throws Exception
*/
public function getAck(string $transfert_id, string $originating_agency_id): string {
if (!$id_transfert){
throw new UnrecoverableException("L'identifiant du transfert n'a pas été trouvé");
}
......@@ -129,7 +138,11 @@ class MaarchREST extends SAEConnecteur {
* @throws Exception
*/
public function getReply($id_transfert) {
if (! $id_transfert){
return $this->getAttr($id_transfert, $this->originatingAgency);
}
public function getAtr(string $transfert_id, string $originating_agency_id): string {
if (! $id_transfert){
throw new UnrecoverableException("L'identifiant du transfert n'a pas été trouvé");
}
......@@ -150,7 +163,7 @@ class MaarchREST extends SAEConnecteur {
}
return $this->getXmlFromZipMessage($zipMessage, $messageInformations['replyMessage']['messageId']);
}
}
/**
* @param $zipMessage (Zip binary file from Maarch RM Export)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment