You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Story
As a provider, I want to see the cancellation reasons when viewing my orders, so I can better understand why orders were cancelled and improve my service accordingly.
Acceptance Criteria
GIVEN a provider fetches their orders list WHEN the orders are returned THEN cancellation_reasons are included in the response for each order
GIVEN a provider fetches a specific order by ID WHEN the order is returned THEN cancellation_reasons are included in the response
GIVEN an order has no cancellations WHEN the order details are returned THEN cancellation_reasons shows empty array
Tech Details
Update LockPaymentOrderResponse type to include cancellation_reasons field
Update GetLockPaymentOrders controller to include cancellation reasons in response
Update GetLockPaymentOrderByID controller to include cancellation reasons in response
Update tests in provider_test.go to verify cancellation reasons in responses:
Test list endpoint with cancelled orders
Test single order endpoint with cancelled order
Verify empty array returned for orders without cancellations in both endpoints
Notes/Assumptions
LockPaymentOrder entity already has cancellation_reasons field
Default empty array should be handled correctly
No changes needed to order creation/update logic
Existing test data will need to include orders with cancellation reasons
Open Questions
The text was updated successfully, but these errors were encountered:
Hi, please can I be assigned this please? This would be my first time contributing to this project and I would love to be the given the opportunity to solve this issue please. I am good with tests and I have experience in html, css, JavaScript,TypeScript and solidity, and Cairo.
User Story
As a provider, I want to see the cancellation reasons when viewing my orders, so I can better understand why orders were cancelled and improve my service accordingly.
Acceptance Criteria
GIVEN a provider fetches their orders list
WHEN the orders are returned
THEN cancellation_reasons are included in the response for each order
GIVEN a provider fetches a specific order by ID
WHEN the order is returned
THEN cancellation_reasons are included in the response
GIVEN an order has no cancellations
WHEN the order details are returned
THEN cancellation_reasons shows empty array
Tech Details
LockPaymentOrderResponse
type to include cancellation_reasons fieldGetLockPaymentOrders
controller to include cancellation reasons in responseGetLockPaymentOrderByID
controller to include cancellation reasons in responseprovider_test.go
to verify cancellation reasons in responses:Notes/Assumptions
Open Questions
The text was updated successfully, but these errors were encountered: