From 135e2f4a2d0f3e79988191c06662e9fb6b8f65c5 Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Fri, 18 Mar 2022 12:59:15 +0000 Subject: [PATCH 01/10] reporting.report_run.succeeded add trigger reporting.report_run.succeeded --- .../reporting.report_run.succeeded.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pkg/fixtures/triggers/reporting.report_run.succeeded.json diff --git a/pkg/fixtures/triggers/reporting.report_run.succeeded.json b/pkg/fixtures/triggers/reporting.report_run.succeeded.json new file mode 100644 index 00000000..7569c1d7 --- /dev/null +++ b/pkg/fixtures/triggers/reporting.report_run.succeeded.json @@ -0,0 +1,19 @@ +{ + "_meta": { + "template_version": 0 + }, + "fixtures": [ + { + "name": "reporting", + "path": "/v1/reporting/report_runs", + "method": "post", + "params": { + "report_type":"balance.summary.1", + "parameters": { + "interval_start": 1641045832, + "interval_end": 1646143432, + }, + } + } + ] +} From 8710b7023ca4463780cd768cbc259b3586e66b37 Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Fri, 18 Mar 2022 13:00:08 +0000 Subject: [PATCH 02/10] reporting.report_run.succeeded add trigger reporting.report_run.succeeded --- pkg/fixtures/triggers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/fixtures/triggers.go b/pkg/fixtures/triggers.go index cc5670be..b2743854 100644 --- a/pkg/fixtures/triggers.go +++ b/pkg/fixtures/triggers.go @@ -77,6 +77,7 @@ var Events = map[string]string{ "quote.canceled": "triggers/quote.canceled.json", "quote.finalized": "triggers/quote.finalized.json", "quote.accepted": "triggers/quote.accepted.json", + "reporting.report_run.succeeded": "triggers/reporting.report_run.succeeded.json", } // BuildFromFixtureFile creates a new fixture struct for a file From 7926c7ed4663372a066ec111c0419822cbe55419 Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Fri, 18 Mar 2022 13:01:58 +0000 Subject: [PATCH 03/10] reporting.report_run.succeeded add trigger reporting.report_run.succeeded --- stripe-completion.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/stripe-completion.bash b/stripe-completion.bash index 1c00341d..f728168b 100644 --- a/stripe-completion.bash +++ b/stripe-completion.bash @@ -31926,6 +31926,7 @@ _stripe_trigger() must_have_one_noun+=("quote.canceled") must_have_one_noun+=("quote.created") must_have_one_noun+=("quote.finalized") + must_have_one_noun+=("reporting.report_run.succeeded") must_have_one_noun+=("setup_intent.canceled") must_have_one_noun+=("setup_intent.created") must_have_one_noun+=("setup_intent.setup_failed") From f56aa1bc9723c81a4ad9b5eceb45f7d1e6cac56e Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Mon, 18 Apr 2022 22:51:25 +0100 Subject: [PATCH 04/10] Update reporting.report_run.succeeded.json --- pkg/fixtures/triggers/reporting.report_run.succeeded.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/fixtures/triggers/reporting.report_run.succeeded.json b/pkg/fixtures/triggers/reporting.report_run.succeeded.json index 7569c1d7..88d7012d 100644 --- a/pkg/fixtures/triggers/reporting.report_run.succeeded.json +++ b/pkg/fixtures/triggers/reporting.report_run.succeeded.json @@ -11,8 +11,8 @@ "report_type":"balance.summary.1", "parameters": { "interval_start": 1641045832, - "interval_end": 1646143432, - }, + "interval_end": 1646143432 + } } } ] From 631246246a1b88d3ca46464889de0f5ac5cc967e Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Mon, 18 Apr 2022 22:55:34 +0100 Subject: [PATCH 05/10] Update triggers.go --- pkg/fixtures/triggers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fixtures/triggers.go b/pkg/fixtures/triggers.go index b2743854..0704b3a2 100644 --- a/pkg/fixtures/triggers.go +++ b/pkg/fixtures/triggers.go @@ -65,6 +65,7 @@ var Events = map[string]string{ "product.created": "triggers/product.created.json", "product.deleted": "triggers/product.deleted.json", "product.updated": "triggers/product.updated.json", + "reporting.report_run.succeeded": "triggers/reporting.report_run.succeeded.json", "setup_intent.canceled": "triggers/setup_intent.canceled.json", "setup_intent.created": "triggers/setup_intent.created.json", "setup_intent.setup_failed": "triggers/setup_intent.setup_failed.json", @@ -77,7 +78,6 @@ var Events = map[string]string{ "quote.canceled": "triggers/quote.canceled.json", "quote.finalized": "triggers/quote.finalized.json", "quote.accepted": "triggers/quote.accepted.json", - "reporting.report_run.succeeded": "triggers/reporting.report_run.succeeded.json", } // BuildFromFixtureFile creates a new fixture struct for a file From cf10fd0bf4ecd56278a339086f551b945256c012 Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:29:30 +0100 Subject: [PATCH 06/10] Create transfer.created.json --- pkg/fixtures/triggers/transfer.created.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkg/fixtures/triggers/transfer.created.json 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)" + } + } + ] +} From e740188caeaa11df8c79f29f5c420b68a41b7aa6 Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:35:25 +0100 Subject: [PATCH 07/10] Update stripe-completion.bash --- stripe-completion.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/stripe-completion.bash b/stripe-completion.bash index f728168b..18de5b2e 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.paid") noun_aliases=() } From 4d19942d5f9d937c18e478b0050b5c4d7b148063 Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:37:14 +0100 Subject: [PATCH 08/10] Update triggers.go --- pkg/fixtures/triggers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/fixtures/triggers.go b/pkg/fixtures/triggers.go index 0704b3a2..3f0419d7 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.paid": "triggers/transfer.paid.json", } // BuildFromFixtureFile creates a new fixture struct for a file From 6a8bcbba9947419cb6d3449618cef53207c5a71d Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:38:24 +0100 Subject: [PATCH 09/10] Update triggers.go --- pkg/fixtures/triggers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fixtures/triggers.go b/pkg/fixtures/triggers.go index 3f0419d7..80dae656 100644 --- a/pkg/fixtures/triggers.go +++ b/pkg/fixtures/triggers.go @@ -78,7 +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.paid": "triggers/transfer.paid.json", + "transfer.created": "triggers/transfer.created.json", } // BuildFromFixtureFile creates a new fixture struct for a file From f07cb5f8c96ea6f8d5af7277bed2f94ce33e0173 Mon Sep 17 00:00:00 2001 From: Hector <97482672+haor1@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:39:37 +0100 Subject: [PATCH 10/10] Update stripe-completion.bash --- stripe-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stripe-completion.bash b/stripe-completion.bash index 18de5b2e..abf2c314 100644 --- a/stripe-completion.bash +++ b/stripe-completion.bash @@ -31935,7 +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.paid") + must_have_one_noun+=("transfer.created") noun_aliases=() }