Repository navigation
feat : le client change d'offre ou revient plus tard (0.6.0) - #12
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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à ».
reference_conflictfait passer à l'essai suivant, commepayment_expired(même bornemax_attempts).contract/app-contract.v1.json: 24 cas (nouveau : « démarrer : le client a changé d'offre (autre montant) → essai suivant, jamais un refus »).get_payment→ expired, F-2 (7500) pending, F-1 à 7500 →reference_conflict(409, non rejouable).