Skip to content

Commit

Permalink
Add account.updated trigger (stripe#588)
Browse files Browse the repository at this point in the history
* Add account.updated trigger

* Add the trigger file
  • Loading branch information
tomer-stripe authored Feb 8, 2021
1 parent 3c68123 commit a8a55be
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/fixtures/fs_vfsdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/fixtures/triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

// Events is a mapping of pre-built trigger events and the corresponding json file
var Events = map[string]string{
"account.updated": "/account.updated.json",
"balance.available": "/balance.available.json",
"charge.captured": "/charge.captured.json",
"charge.dispute.created": "/charge.disputed.created.json",
Expand Down
25 changes: 25 additions & 0 deletions triggers/account.updated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "account",
"path": "/v1/accounts",
"method": "post",
"params": {
"type": "standard"
}
},
{
"name": "update_account",
"path": "/v1/accounts/${account:id}",
"method": "post",
"params": {
"metadata": {
"foo": "bar"
}
}
}
]
}

0 comments on commit a8a55be

Please sign in to comment.