Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pastell Connecteur SAE Maarch RM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
Pastell Connecteur SAE Maarch RM
Commits
c4c3298c
Commit
c4c3298c
authored
1 year ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
fix variables name
parent
094ad8b5
Branches
fix/seda2_transferSource
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MaarchREST.class.php
+6
-6
6 additions, 6 deletions
MaarchREST.class.php
with
6 additions
and
6 deletions
MaarchREST.class.php
+
6
−
6
View file @
c4c3298c
...
...
@@ -113,13 +113,13 @@ class MaarchREST extends SAEConnecteur {
* @throws Exception
*/
public
function
getAck
(
string
$transfert_id
,
string
$originating_agency_id
):
string
{
if
(
!
$
id_
transfert
){
if
(
!
$transfert
_id
){
throw
new
UnrecoverableException
(
"L'identifiant du transfert n'a pas été trouvé"
);
}
$messageInformations
=
$this
->
getWS
(
"/medona/message/reference?reference="
.
urlencode
(
$
id_
transfert
.
"_Ack"
),
.
urlencode
(
$transfert
_id
.
"_Ack"
),
"application/json"
);
...
...
@@ -142,18 +142,18 @@ class MaarchREST extends SAEConnecteur {
}
public
function
getAtr
(
string
$transfert_id
,
string
$originating_agency_id
):
string
{
if
(
!
$
id_
transfert
){
if
(
!
$transfert
_id
){
throw
new
UnrecoverableException
(
"L'identifiant du transfert n'a pas été trouvé"
);
}
$messageInformations
=
$this
->
getWS
(
"/medona/message/reference?reference="
.
urlencode
(
$
id_
transfert
),
.
urlencode
(
$transfert
_id
),
"application/json"
);
if
(
$messageInformations
[
'status'
]
!=
"processed"
)
{
throw
new
UnrecoverableException
(
"Le bordereau dont la référence est "
.
$
id_
transfert
.
" n'a pas encore été traité dans le SAE Maarch RM."
);
throw
new
UnrecoverableException
(
"Le bordereau dont la référence est "
.
$transfert
_id
.
" n'a pas encore été traité dans le SAE Maarch RM."
);
}
if
(
$messageInformations
)
{
...
...
@@ -299,4 +299,4 @@ class MaarchREST extends SAEConnecteur {
return
"L'organisation identifiée par
$orgId
n'a pas été trouvée dans le SAE. Veuillez vérifier le paramétrage du connecteur ou du SAE."
;
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment