Skip to content

feat : le client change d'offre ou revient plus tard (0.6.0) - #12

Merged
JIV-DLS merged 1 commit into
mainfrom
feat/changement-d-offre
Nov 15, 2026
Merged

JIV-DLS merged 1 commit into
mainfrom
feat/changement-d-offre

Conversation

@JIV-DLS

@JIV-DLS JIV-DLS commented Nov 15, 2026

Copy link
Copy Markdown
Member

Le client choisit une offre, ne paie pas, revient choisir une autre offre (ou revient plus tard) : ce n'est jamais « un paiement existe déjà ».

  • Routes toutes faites : reference_conflict fait passer à l'essai suivant, comme payment_expired (même borne max_attempts).
  • Contrat partagé contract/app-contract.v1.json : 24 cas (nouveau : « démarrer : le client a changé d'offre (autre montant) → essai suivant, jamais un refus »).
  • Faux serveur des tests : un autre montant est un conflit, même sur un essai expiré.
  • Documentation : section « Le client change d'offre ou revient plus tard » (AGENTS.md), paragraphe et exemple (README), ligne dans llms.txt, ligne dans « Quelle méthode pour quoi ».
  • Test de scénario : F-1 (5000) expiré, get_payment → expired, F-2 (7500) pending, F-1 à 7500 → reference_conflict (409, non rejouable).
  • Version 0.6.0.

Routes toutes faites : reference_conflict (le client a changé d'offre, autre
montant) fait passer à l'essai suivant comme payment_expired, dans la même
borne max_attempts. Contrat v1 à 24 cas (copie partagée, identique à l'octet).

Documentation (AGENTS.md, README, llms.txt) : une référence = un essai,
payée seulement sur payment.completed, un essai non payé ne bloque jamais un
nouvel essai, get_payment au retour du client, refund de l'essai payé en trop.
Exemple Python et test de scénario (essai expiré puis nouvel essai d'un autre
montant, conflit sur la référence réutilisée).
@JIV-DLS
JIV-DLS merged commit 2605b69 into main Nov 15, 2026
2 checks passed
@JIV-DLS
JIV-DLS deleted the feat/changement-d-offre branch November 15, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant