diff --git a/pkg/fixtures/triggers.go b/pkg/fixtures/triggers.go index 0704b3a2..80dae656 100644 --- a/pkg/fixtures/triggers.go +++ b/pkg/fixtures/triggers.go @@ -78,6 +78,7 @@ var Events = map[string]string{ "quote.canceled": "triggers/quote.canceled.json", "quote.finalized": "triggers/quote.finalized.json", "quote.accepted": "triggers/quote.accepted.json", + "transfer.created": "triggers/transfer.created.json", } // BuildFromFixtureFile creates a new fixture struct for a file diff --git a/pkg/fixtures/triggers/transfer.created.json b/pkg/fixtures/triggers/transfer.created.json new file mode 100644 index 00000000..606c8aef --- /dev/null +++ b/pkg/fixtures/triggers/transfer.created.json @@ -0,0 +1,18 @@ +{ + "_meta": { + "template_version": 0 + }, + "fixtures": [ + { + "name": "transfer", + "path": "/v1/transfers", + "method": "post", + "params": { + "amount": "999", + "currency": "eur", + "destination": "acct_1032D82eZvKYlo2C", + "description": "(created by Stripe CLI)" + } + } + ] +} diff --git a/stripe-completion.bash b/stripe-completion.bash index f728168b..abf2c314 100644 --- a/stripe-completion.bash +++ b/stripe-completion.bash @@ -31935,6 +31935,7 @@ _stripe_trigger() must_have_one_noun+=("subscription_schedule.created") must_have_one_noun+=("subscription_schedule.released") must_have_one_noun+=("subscription_schedule.updated") + must_have_one_noun+=("transfer.created") noun_aliases=() }