Skip to content

auto-gen: SDK changes (b0b4c698) - #19

Draft
luismeli10 wants to merge 1 commit into
masterfrom
auto-gen/b0b4c698-generic
Draft

luismeli10 wants to merge 1 commit into
masterfrom
auto-gen/b0b4c698-generic

Conversation

@luismeli10

Copy link
Copy Markdown
Owner

Automated SDK code generation.

generation_id: b0b4c698-ca93-4b14-ae70-eb0491ad5732

Review required before merge.

@luismeli10 luismeli10 added php Flow tag propagated by spec-agent-generator. readme Flow tag propagated by spec-agent-generator. sdk Flow tag propagated by spec-agent-generator. labels Sep 29, 2026
@luismeli10

Copy link
Copy Markdown
Owner Author

Automated reviewer warnings

This pull request was created with the following advisory findings. Review them before merging:

  • tests/MercadoPago/Client/Unit/Order/OrderClientUnitTest.php: unused PHP import: MercadoPago\Resources\OrderSearch; tests/MercadoPago/Client/Unit/Order/OrderClientUnitTest.php: unused PHP import: MercadoPago\Resources\Order\Config; tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php: unused PHP import: MercadoPago\Net\MPSearchRequest; tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php: unused PHP import: MercadoPago\Resources\OrderSearch; wave 2/3: tests/MercadoPago/Client/Unit/Order/OrderClientUnitTest.php: unused PHP import: MercadoPago\Resources\OrderSearch; wave 2/3: tests/MercadoPago/Client/Unit/Order/OrderClientUnitTest.php: unused PHP import: MercadoPago\Resources\Order\Config; wave 2/3: tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php: unused PHP import: MercadoPago\Net\MPSearchRequest; wave 2/3: tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php: unused PHP import: MercadoPago\Resources\OrderSearch
  • required targets were not modified: tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php; wave 2/2: required targets were not modified: tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php
  • tests/MercadoPago/Client/Unit/Order/OrderTransactionClientUnitTest.php: unused PHP import: MercadoPago\Resources\Order\Transaction\UpdateTransaction; required targets were not modified: src/MercadoPago/Resources/Order/Transaction/UpdateTransaction.php, tests/MercadoPago/Client/Integration/Order/OrderTransactionClientITTest.php; wave 1/2: required targets were not modified: src/MercadoPago/Resources/Order/Transaction/UpdateTransaction.php; wave 2/2: required targets were not modified: tests/MercadoPago/Client/Integration/Order/OrderTransactionClientITTest.php; wave 2/2: tests/MercadoPago/Client/Unit/Order/OrderTransactionClientUnitTest.php: unused PHP import: MercadoPago\Resources\Order\Transaction\UpdateTransaction
  • tests/MercadoPago/Client/Unit/Order/OrderTransactionClientUnitTest.php: unused PHP import: MercadoPago\MercadoPagoConfig; tests/MercadoPago/Client/Unit/Order/OrderTransactionClientUnitTest.php: unused PHP import: MercadoPago\Net\MPDefaultHttpClient; required targets were not modified: tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php, tests/MercadoPago/Client/Integration/Order/OrderTransactionClientITTest.php; evidence symbol is not proven by original repository context: .github/workflows/ci.yml; wave 2/3: required targets were not modified: tests/MercadoPago/Client/Integration/Order/OrderClientITTest.php, tests/MercadoPago/Client/Integration/Order/OrderTransactionClientITTest.php; wave 2/3: tests/MercadoPago/Client/Unit/Order/OrderTransactionClientUnitTest.php: unused PHP import: MercadoPago\MercadoPagoConfig; wave 2/3: tests/MercadoPago/Client/Unit/Order/OrderTransactionClientUnitTest.php: unused PHP import: MercadoPago\Net\MPDefaultHttpClient; wave 3/3: evidence symbo
  • evidence symbol is not proven by original repository context: .github/workflows/ci.yml
  • Run and report the focused Order unit tests and repository lint/style checks. README.md explicitly states that vendor/bin/phpunit tests/MercadoPago/Client/Unit/Order and vendor/bin/php-cs-fixer fix --dry-run --diff were not executed, so the approved plan's required validation outputs are absent.
  • Provide actual pull-request comments/evidence documenting remaining observations and validation results. The HTML comment added to README.md under PR comments documenting remaining observations is repository documentation, not PR-comment evidence, and no PR creation evidence is supplied.
  • Update the create-order success fixture/test to the OpenAPI status. In tests/MercadoPago/Client/Unit/Order/OrderClientUnitTest.php::testCreateSuccess, the assertion remains assertSame(200, $order->getResponse()->getStatusCode()), while POST /v1/orders specifies a 201 response. Correct the associated tests/MercadoPago/Resources/Mocks/Response/Order/order.json/mock setup and assertion to 201.
  • Align transaction-update request coverage with OrderPaymentMethod. In tests/MercadoPago/Client/Unit/Order/OrderTransactionClientUnitTest.php::testUpdateSuccess, payment_method contains only type and installments, but the directly referenced OpenAPI schema requires both id and type. Add id to the request and update examples/Order/Transaction/Update.php and any corresponding fixtures/tests so they demonstrate the same valid contract.
  • examples/Order/CreateCheckoutPRO.php and README.md assert that an Orders response supplies checkout_url, check it, and direct buyers to it, but the supplied /v1/orders Order response schema has no checkout_url property. src/MercadoPago/Resources/Order.php::$checkout_url is likewise not supported by the scoped OpenAPI evidence. Either provide repository/API evidence explicitly establishing this Checkout Pro extension in the approved contract, or remove the unsupported documentation, runtime check, and redirect claim.
  • examples/Order/Create.php::create flow and examples/Order/CreateCheckoutPRO.php::create flow add an unconditional GET /v1/orders/{id} immediately after POST /v1/orders. The create operation already returns the Order resource, so this changes example runtime behavior without a contract requirement and can discard create-only response data. Remove the extra retrieval unless concrete scoped API evidence requires it.
  • README.md contains internal execution/PR-process notes in a hidden HTML block, including claims that validation was unavailable and that PR creation should proceed. Move these observations to actual PR comments as requested; do not leave workflow commentary as public SDK documentation.
  • The approved action-contract work is not demonstrated by focused request-contract tests for OrderClient::cancel, OrderClient::process, OrderClient::capture, and OrderClient::refund: the diff does not show verification of each HTTP method/path and required X-Idempotency-Key, nor updates to the planned action fixtures (order_cancel.json, order_process.json, order_capture.json, order_refund_partial.json, and order_refund_total.json). Add bounded unit coverage proving those headers, routes, bodies, status handling, and response mappings against the supplied OpenAPI contract.
  • Live Mercado Pago integration validation still requires credentials/infrastructure not present in the supplied evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

php Flow tag propagated by spec-agent-generator. readme Flow tag propagated by spec-agent-generator. sdk Flow tag propagated by spec-agent-generator.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant