Closed BerglundDaniel closed 8 months ago
[!WARNING]
Rate Limit Exceeded
@BerglundDaniel has exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 12 minutes and 14 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the @coderabbitai review command. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between efc80d68152548d5db26b622b3c06b1c78df5d2a and af2470ec8da82dcac7fc19b1e87cdecd1ba6373c.
The recent updates across the API source files indicate a broader enhancement of the transaction and payment functionalities within the system. The create_shop_transactions
function has been expanded to handle a variety of transaction statuses and types, including membership-related transactions. The Stripe integration has been refined with improved type annotations, error handling, and the addition of functions to manage payment intents and convert them to payments. Testing has also been updated to align with new functionality, focusing on Stripe customer interaction, payment intents, and subscriptions.
File(s) | Change Summary |
---|---|
api/src/.../firstrun.py |
Extended create_shop_transactions to handle multiple transaction types and statuses. |
api/src/.../stripe_charge.py api/src/.../stripe_payment_intent.py |
Updated function signatures and type annotations; added functions for handling and converting Stripe payment intents. |
api/src/.../stripe_event.py |
Minor formatting change with no impact on functionality. |
api/src/.../test/stripe_customer_test.py |
Updated test skip message to reflect focus shift to customer functionality. |
api/src/.../test/stripe_payment_intent_test.py api/src/.../test/subscriptions_test.py |
Introduced tests for Stripe payment intents and subscription-related functionality. |
api/src/test_aid/db.py api/src/test_aid/obj.py |
Added functionality for creating Transaction objects in test aid utilities. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ?
For bookkeeping we need to fetch all the transactions from stripe for two reasons, one to check that our transaction db is correct, two to get the transaction fees. This PR adds a function that does this and the corresponding tests for it
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests
Refactor
pay_with_stripe
function and adding utility functions for payment intent handling.