Skip to content

feat: support tax/shipping/discount lines in OrderResponse#84

Merged
fcarrero merged 2 commits into
mainfrom
fix-tax-lines
May 1, 2026
Merged

feat: support tax/shipping/discount lines in OrderResponse#84
fcarrero merged 2 commits into
mainfrom
fix-tax-lines

Conversation

@fcarrero
Copy link
Copy Markdown
Collaborator

@fcarrero fcarrero commented May 1, 2026

Summary

  • Adds new OrderTaxLinesResponse, OrderShippingLinesResponse, OrderDiscountLinesResponse (and their *DataResponse items) so OrderResponse deserializes the list-object shape returned by the API for tax_lines, shipping_lines, and discount_lines.
  • Updates OrdersApiTest assertions to match the Mockoon fixture (mocks/conekta_api.json): replaces the cancelOrderTest ProcessingException workaround with full success assertions, enriches createOrder/getOrderById/orderCancelRefund checks, and removes the limit=19+next workaround for getOrders.

Test plan

  • BASE_PATH=http://localhost:3000 mvn -B test -Dtest=OrdersApiTest against Mockoon fixture — 8/8 pass

🤖 Generated with Claude Code

- Updated OrderResponse to include OrderShippingLinesResponse and OrderTaxLinesResponse.
- Refactored discountLines and taxLines to use new response models.
- Added new classes: OrderShippingLinesResponse, OrderTaxLinesResponse, ShippingLinesDataResponse, and TaxLinesDataResponse.
- Modified OrdersApiTest to validate new shipping and tax lines in order responses.
@atlantis-conekta
Copy link
Copy Markdown

Error: This repo is not allowlisted for Atlantis.

@fcarrero fcarrero merged commit c9de60f into main May 1, 2026
6 checks passed
@fcarrero fcarrero deleted the fix-tax-lines branch May 1, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant