Skip to content

Commit

Permalink
fix: charges stream with extra events types
Browse files Browse the repository at this point in the history
  • Loading branch information
am6010 committed Jun 6, 2024
1 parent fbbe609 commit 34296f3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-stripe/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from setuptools import find_packages, setup

MAIN_REQUIREMENTS = ["airbyte-cdk", "stripe==2.56.0", "pendulum==2.1.2"]
MAIN_REQUIREMENTS = ["airbyte-cdk==0.67", "stripe==2.56.0", "pendulum==2.1.2"]

TEST_REQUIREMENTS = [
"pytest~=6.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,15 @@ class Charges(IncrementalStripeStreamWithUpdates):
"""
API docs: https://stripe.com/docs/api/charges/list
"""
event_types = ["charge.created","charge.updated"]
event_types = [
"charge.captured",
"charge.expired",
"charge.failed",
"charge.pending",
"charge.refunded",
"charge.succeeded",
"charge.updated"
]
cursor_field = "created"

def path(self, **kwargs) -> str:
Expand Down Expand Up @@ -394,7 +402,13 @@ class Disputes(IncrementalStripeStreamWithUpdates):
"""
API docs: https://stripe.com/docs/api/disputes/list
"""
event_types = ["charge.dispute.created", "charge.dispute.updated"]
event_types = [
"charge.dispute.created",
"charge.dispute.updated",
"charge.dispute.closed",
"charge.dispute.funds_reinstated",
"charge.dispute.funds_withdrawn"
]
cursor_field = "created"

def path(self, **kwargs):
Expand Down

0 comments on commit 34296f3

Please sign in to comment.