Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added trigger for event transfer.created to the Stripe CLI #856

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions pkg/fixtures/triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions pkg/fixtures/triggers/transfer.created.json
Original file line number Diff line number Diff line change
@@ -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)"
}
}
]
}
1 change: 1 addition & 0 deletions stripe-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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=()
}

Expand Down