Closed laouji closed 1 month ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The changes introduce a Stripe payment connector to the payments module, enhancing the system's ability to manage payment-related operations. Key additions include methods for fetching accounts, balances, external accounts, and payments, as well as configuration and error handling functionalities. The implementation includes unit tests to ensure the reliability of the new features and a structured workflow for task management.
File Path | Change Summary |
---|---|
components/payments/Earthfile | Added a new target generate for building the payments component, including installation of OpenJDK 11 and the go.uber.org/mock/mockgen package. |
components/payments/internal/api/backend/backend_generated.go | Updated method signatures in MockBackendMockRecorder from interface{} to any . |
components/payments/internal/connectors/plugins/public/stripe/accounts.go | Introduced functionality for managing accounts via Stripe API, including state management and account fetching logic. |
components/payments/internal/connectors/plugins/public/stripe/balances.go | Added a method for fetching account balances from the Stripe API. |
components/payments/internal/connectors/plugins/public/stripe/client/* | Multiple files added for client-side interactions with the Stripe API, including methods for retrieving accounts, balances, external accounts, and payments. |
components/payments/internal/connectors/plugins/public/stripe/plugin.go | Implemented the main Stripe plugin structure, including installation and client management methods. |
components/payments/internal/connectors/plugins/public/stripe/workflow.go | Defined a workflow for managing payment-related tasks, establishing a hierarchy for fetching accounts, balances, payments, and external accounts. |
components/payments/internal/connectors/plugins/public/stripe/*_test.go | Introduced unit tests for various functionalities of the Stripe plugin, ensuring comprehensive coverage of the new features. |
Objective | Addressed | Explanation |
---|---|---|
Payments v3.X: add Stripe Connector (ENG-1369) | ✅ |
In a world of payments, swift and bright,
A Stripe connector hops into the light.
With accounts and balances, all in a row,
Fetching and testing, watch the progress flow!
A rabbit's delight in code so neat,
Hopping along to make transactions sweet! 🐇✨
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 your favorite social media?
@coderabbitai summary
ENG-1369