Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature/order fields#329

Merged
danielalfarourrea merged 3 commits into
mercadopago:masterfrom
luismeli10:feature/order-fields
Apr 17, 2026
Merged

Feature/order fields#329
danielalfarourrea merged 3 commits into
mercadopago:masterfrom
luismeli10:feature/order-fields

Conversation

@luismeli10

Copy link
Copy Markdown
Contributor

Enhancement: Add missing Orders API fields and Search operation

- Add shipment field to OrderCreateRequest
- Add currency, taxes, discounts, typeResponse to Order response
- Add chargebacks to OrderTransaction
- Add refundedAmount, provider, discounts to OrderPayment
- Add e2eId, redirectUrl to OrderPaymentMethod
- Add id to OrderTransactionSecurity
- Add e2eId to OrderRefund
- Add defaultType, installmentsCost, installments, minInstallments
  to OrderPaymentMethodConfig
- Add entityType to OrderPayer
- Add unitMeasure, externalCategories to OrderItem
- Add search() method to OrderClient (GET /v1/orders)
- New classes: OrderTypeResponse, OrderTax, OrderDiscounts,
  OrderDiscountPaymentMethod, OrderPaymentDiscount, OrderInstallments,
  OrderInstallmentsInterestFree, OrderInstallmentsAvailable,
  OrderChargeback, OrderExternalCategory, OrderSearchResponse,
  OrderPaging, OrderSearchRequest
…th3DS example

OrderPayerRequest.identification expects Identification (response type)
but the example was passing IdentificationRequest (request type), causing
a compilation error. Also replace var keyword for Java 8 compatibility.
- Replace OrderSearchRequest with MPSearchRequest in OrderClient.search,
  delegating to the base search() method instead of manually building
  query params
- Fix OrderPaging field types from String to Integer
- Fix OrderPayerRequest.identification type from Identification to
  IdentificationRequest (request/resource mismatch)
- Delete now-unused OrderSearchRequest
- Add searchSuccess and searchWithRequestOptionsSuccess unit tests
- Add order_search_response.json fixture
@danielalfarourrea danielalfarourrea merged commit 0d63a82 into mercadopago:master Apr 17, 2026
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.

2 participants