Skip to content

Commit

Permalink
source-stripe-native: improve typing
Browse files Browse the repository at this point in the history
Typing has been improved by extracting common attributes for each model into shared classes, like `BaseStripeObject`, then using those classes within `api.py`. I also did small refactors that improve typing and readability.

Discover snapshot changes are all expected due to the new, shared classes that contain common attributes & minor description changes. Noteably, all non-child streams have a `created` field in their documents, and that field is included in the model since we rely on it during backfills.
  • Loading branch information
Alex-Bair committed Sep 20, 2024
1 parent 53e9cbc commit 68f23ee
Show file tree
Hide file tree
Showing 3 changed files with 355 additions and 275 deletions.
Loading

0 comments on commit 68f23ee

Please sign in to comment.