Skip to content

feat: Add more top-level Stripe endpoints and unit tests #203

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

Merged
merged 6 commits into from
May 29, 2025

Conversation

karakanb
Copy link
Contributor

Adds support for the following top-level Stripe API resources:

  • CustomerBalanceTransaction (incremental)
  • ApplicationFee (incremental)
  • SetupAttempt (incremental)
  • CreditNote (incremental)
  • ShippingRate (full refresh)
  • Dispute (full refresh)
  • SubscriptionItem (full refresh)
  • CheckoutSession (full refresh)

These endpoints have been integrated into the existing Stripe analytics source, configured for either incremental or full refresh data loading as appropriate.

Comprehensive unit tests have been added for these new endpoints and a selection of pre-existing top-level endpoints to ensure correct behavior and prevent regressions. The tests mock Stripe API calls and verify DLT resource creation and data handling.

Note: Initial exploration and implementation for nested Stripe resources were undertaken but subsequently reverted as per your request to focus this effort solely on top-level resources. The Type C (conceptual) endpoints from your list are covered by data within these top-level resources.

sabrikaragonen
sabrikaragonen previously approved these changes May 26, 2025
google-labs-jules bot and others added 6 commits May 28, 2025 14:35
Adds support for the following top-level Stripe API resources:
- CustomerBalanceTransaction (incremental)
- ApplicationFee (incremental)
- SetupAttempt (incremental)
- CreditNote (incremental)
- ShippingRate (full refresh)
- Dispute (full refresh)
- SubscriptionItem (full refresh)
- CheckoutSession (full refresh)

These endpoints have been integrated into the existing Stripe analytics source,
configured for either incremental or full refresh data loading as appropriate.

Comprehensive unit tests have been added for these new endpoints and a
selection of pre-existing top-level endpoints to ensure correct behavior and
prevent regressions. The tests mock Stripe API calls and verify DLT resource
creation and data handling.

Note: Initial exploration and implementation for nested Stripe resources
were undertaken but subsequently reverted as per your request to focus
this effort solely on top-level resources. The Type C (conceptual)
endpoints from your list are covered by data within these
top-level resources.
@karakanb karakanb force-pushed the feat/add-stripe-top-level-endpoints branch from ec1a327 to 5ee4228 Compare May 28, 2025 15:42
@karakanb karakanb merged commit 9180484 into main May 29, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants