#odinsmash - CLI
1 messages · Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can 🙂
Have you had override work in other examples? Testing this now I am able to run this:
stripe trigger charge.dispute.created --override dispute:charge=ch_1234bacd
but the charge id is not overridden
Note the payload object for that event is a dispute, not a charge
ah
re-reading the docs, i believe override is only meant to override parameters of the requests set up in the fixtures -- objects IDs like you're trying to override are not parameters
Correct, the problem is that the fixture associated with the trigger is https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/charge.disputed.created.json and it creates a charge with a specific card that causes the dispute
There is not way in our API to trigger a dispute on an existing charge today unfortunately so what you are trying to do is not possible
your best option would be to "mock" the event yourself