From 207a98d565ded688879a4520fdbd0a7f3d48d044 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 30 Apr 2016 20:11:43 +0200 Subject: [PATCH] id → idTransaction --- api/client/ajouter.php | 4 ++-- api/client/payer.php | 4 ++-- api/client/recharger.php | 4 ++-- api/client/vidange.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/client/ajouter.php b/api/client/ajouter.php index d414dab..4f8c748 100644 --- a/api/client/ajouter.php +++ b/api/client/ajouter.php @@ -32,9 +32,9 @@ if (!$requete->execute()) { retour("erreur_bdd", ["message" => $requete->error]); } $requete->close(); -$id = transaction(TRANSACTION_CREATION, $_POST["idCarte"], $solde); +$idTransaction = transaction(TRANSACTION_CREATION, $_POST["idCarte"], $solde); -retour("ok", ["id" => $id]); +retour("ok", ["idTransaction" => $idTransaction]); ?> diff --git a/api/client/payer.php b/api/client/payer.php index 10bffb1..b877018 100644 --- a/api/client/payer.php +++ b/api/client/payer.php @@ -53,9 +53,9 @@ if (!$requete->execute()) { retour("erreur_bdd", ["message" => $requete->error]); } $requete->close(); -$id = transaction(TRANSACTION_PAIEMENT, $_POST["idCarte"], $montant, $quantite); +$idTransaction = transaction(TRANSACTION_PAIEMENT, $_POST["idCarte"], $montant, $quantite); -retour("ok", ["id" => $id, "soldeAncien" => $soldeAncien, "soldeNouveau" => $soldeNouveau]); +retour("ok", ["idTransaction" => $idTransaction, "soldeAncien" => $soldeAncien, "soldeNouveau" => $soldeNouveau]); ?> diff --git a/api/client/recharger.php b/api/client/recharger.php index 799dd49..68864ef 100644 --- a/api/client/recharger.php +++ b/api/client/recharger.php @@ -35,9 +35,9 @@ if (!$requete->execute()) { retour("erreur_bdd", ["message" => $requete->error]); } $requete->close(); -$id = transaction(TRANSACTION_RECHARGEMENT, $_POST["idCarte"], $montant); +$idTransaction = transaction(TRANSACTION_RECHARGEMENT, $_POST["idCarte"], $montant); -retour("ok", ["id" => $id, "soldeAncien" => $soldeAncien, "soldeNouveau" => $soldeNouveau]); +retour("ok", ["idTransaction" => $idTransaction, "soldeAncien" => $soldeAncien, "soldeNouveau" => $soldeNouveau]); ?> diff --git a/api/client/vidange.php b/api/client/vidange.php index 3b14803..8d0cc89 100644 --- a/api/client/vidange.php +++ b/api/client/vidange.php @@ -31,9 +31,9 @@ if (!$requete->execute()) { retour("erreur_bdd", ["message" => $requete->error]); } $requete->close(); -$id = transaction(TRANSACTION_VIDANGE, $_POST["idCarte"], $soldeAncien); +$idTransaction = transaction(TRANSACTION_VIDANGE, $_POST["idCarte"], $soldeAncien); -retour("ok", ["id" => $id, "soldeAncien" => $soldeAncien]); +retour("ok", ["idTransaction" => $idTransaction, "soldeAncien" => $soldeAncien]); ?> -- libgit2 0.21.2