LiterateInk / Pawnote

A purrfect API wrapper for PRONOTE.
https://docs.literate.ink/pawnote
GNU General Public License v3.0
55 stars 12 forks source link

feat(parser): add handling for values concerning ARD partner #19

Closed Vexcited closed 7 months ago

Vexcited commented 7 months ago

Here's what the homepage response looks like for ARD

{
  "partenaireARD": {
    // TODO: this is not handled yet in the parser !
    "porteMonnaie": {
      "_T": 24,
      "V": [
        {
          "libellePorteMonnaie": "RESTAURATION",
          "valeurSolde": "420,69 €",
          "avecWarning": false,
          "hintSolde": "valeur au 31/03/24 - 22h57",
          "hintPorteMonnaie": "Mode de fonctionnement : Ticket"
        }
      ]
    },

    // data passed to `partnerURL` API request
    "SSO": {
      "codePartenaire": "ARD",
      "intituleLien": "Services en ligne liés à la restauration",
      "description": "Permet d’accéder au site ARD-GECENLIGNE de l’établissement sans avoir à s’authentifier à nouveau."
    },

    // means we can refresh the widget (maybe TODO ?)
    "avecActualisation": true
  }
}

This is what it looks like in the homepage UI :

image

This is what the HTML looks like :

image