Skip to content

Commit

Permalink
add payout created and updated to triggers (stripe#681)
Browse files Browse the repository at this point in the history
* add payout created and updated to triggers

* add description

* go mod tidy locally

Co-authored-by: Suz Hinton <[email protected]>
  • Loading branch information
devtanc and suz-stripe authored Jul 1, 2021
1 parent af04982 commit 529cdff
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/fixtures/triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ var Events = map[string]string{
"payment_intent.succeeded": "triggers/payment_intent.succeeded.json",
"payment_intent.canceled": "triggers/payment_intent.canceled.json",
"payment_method.attached": "triggers/payment_method.attached.json",
"payout.created": "triggers/payout.created.json",
"payout.updated": "triggers/payout.updated.json",
"plan.created": "triggers/plan.created.json",
"plan.deleted": "triggers/plan.deleted.json",
"plan.updated": "triggers/plan.updated.json",
Expand Down
17 changes: 17 additions & 0 deletions pkg/fixtures/triggers/payout.created.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "payout",
"path": "/v1/payouts",
"method": "post",
"params": {
"amount": 1100,
"currency": "usd",
"description": "(created by Stripe CLI)"
}
}
]
}
27 changes: 27 additions & 0 deletions pkg/fixtures/triggers/payout.updated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "payout",
"path": "/v1/payouts",
"method": "post",
"params": {
"amount": 1100,
"currency": "usd",
"description": "(created by Stripe CLI)"
}
},
{
"name": "payout_updated",
"path": "/v1/payouts/${payout:id}",
"method": "post",
"params": {
"metadata": {
"foo": "bar"
}
}
}
]
}

0 comments on commit 529cdff

Please sign in to comment.