Closed maheshsattala closed 1 month ago
The recent changes enhance the Razorpay
action functionality by introducing a notes
parameter for storing additional contextual data during API interactions. This addition is supported by updates to the data models and comprehensive test coverage, ensuring robust handling and validation of the notes
field. Overall, these modifications enable more nuanced interactions with the Razorpay API while strengthening data integrity.
Files | Change Summary |
---|---|
kairon/actions/definitions/razorpay.py kairon/api/models.py kairon/shared/actions/data_objects.py |
Added notes parameter to the Razorpay action class and updated relevant data structures to support it. |
kairon/shared/data/processor.py |
Modified edit_razorpay_action to include handling for the new notes attribute in action processing. |
tests/integration_test/action_service_test.py tests/integration_test/services_test.py |
Introduced tests for processing Razorpay actions with notes , ensuring proper functionality and validation. |
tests/unit_test/data_processor/data_processor_test.py |
Added tests for validating notes input structure and updated existing tests to reflect new requirements. |
sequenceDiagram
participant User
participant RazorpayAPI
participant Processor
participant Action
User->>Action: Initiate Razorpay action with notes
Action->>Processor: Process action with notes
Processor->>RazorpayAPI: Send request with notes
RazorpayAPI-->>Processor: Response with result
Processor-->>Action: Return processed result
Action-->>User: Notify user of result
🐇 In a meadow bright, where bunnies play,
New notes are added, hip-hip-hooray!
With data to share, our actions will sing,
A dance of details, oh what joy they'll bring!
Hopping with glee, we celebrate the change,
For every little note makes the world feel strange! 🌷
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?
Added notes field in Razorpay action and added and fixed test cases for the same.
Summary by CodeRabbit
New Features
notes
parameter in Razorpay actions, enabling more detailed customer information in API requests.notes
field for better tracking of action details.Bug Fixes
notes
field to ensure it is correctly formatted, enhancing error handling.Tests
notes
in Razorpay actions, ensuring the application processes these parameters correctly and handles various input formats.notes
field validation, reinforcing the robustness of action handling.