Skip to content

auto-gen: SDK changes (badd9ca7) - #433

Draft
Diego Barajas (barajas-d) wants to merge 1 commit into
masterfrom
auto-gen/badd9ca7-generic
Draft

Diego Barajas (barajas-d) wants to merge 1 commit into
masterfrom
auto-gen/badd9ca7-generic

Conversation

@barajas-d

Copy link
Copy Markdown
Contributor

Automated code generation.

generation_id: badd9ca7-abc0-458c-a10c-eeada1be57f1

Review required before merge.

@barajas-d

Copy link
Copy Markdown
Contributor Author

Automated reviewer warnings

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

  • Planner precondition was not present in the original repository snapshot and was removed before execution: MerchantOrderCreateRequest.MerchantOrderCreateRequestBuilder
  • [REQ-04] Rewrite the test invocations to the client's declared method names: getStore, searchStores, updateStore, deleteStore (keeping the two-variant overload pattern with MPRequestOptions), in every affected test method. (src/test/java/com/mercadopago/client/store/StoreClientTest.java): StoreClientTest calls client.get(storeId), client.search(userId, searchRequest), client.update(userId, storeId, updateRequest), client.delete(userId, storeId) while StoreClient declares getStore/searchStores/updateStore/deleteStore per REQ-03 required outputs.
  • [REQ-04] Add a dedicated test fixture id typed as long (e.g. long storeId = 784821936L) and pass it to getStore/updateStore/deleteStore, or confirm the truncated updateStore/deleteStore signatures accept the id type used and align the get path accordingly. (src/test/java/com/mercadopago/client/store/StoreClientTest.java, src/main/java/com/mercadopago/client/store/StoreClient.java): StoreClient declares getStore(Long id) but StoreClientTest declares private final String storeId = "784821936" and passes it to client.get in getSuccess/getWithRequestOptionsSuccess.
  • [REQ-04] Either create StoreBusinessHoursRequest and StoreLocationRequest in the same package as part of this job's request DTO scope, or replace the builder usages in the test (and the store_base.json request mock accordingly) with concrete values compatible with StoreCreateRequest's declared field types. (src/test/java/com/mercadopago/client/store/StoreClientTest.java): Neither type appears in the net-diff manifest, the approved plan file list, nor the provided repository evidence; they are referenced via .builder() in createSuccess and createWithRequestOptionsSuccess.
  • [REQ-04] Align the assertions with Store's declared surface (id, name, userId, Object-typed location/businessHours), e.g. assert on name/id/user_id only, or promote location/businessHours to typed nested resource classes in Store.java. (src/test/java/com/mercadopago/client/store/StoreClientTest.java, src/main/java/com/mercadopago/resources/store/Store.java): Store (src/main/java/com/mercadopago/resources/store/Store.java) declares location and businessHours as Object and has no externalId field; Object exposes no getAddressLine/getZipCode/getMonday methods.
  • [REQ-04] Confirm BaseClientTest declares a buildRequestOptions() helper; if absent, replace the calls with an inline MPRequestOptions.builder() construction consistent with sibling client tests. (src/test/java/com/mercadopago/client/store/StoreClientTest.java): buildRequestOptions() is invoked in the withRequestOptions test variants; its existence in the pre-existing BaseClientTest could not be confirmed from the provided evidence.
  • REQ-04 is blocked: the direct test for the new operations does not compile, so none of the five operations currently has a passing direct test. REQ-01/REQ-02/REQ-03 file outputs exist with correct HTTP verbs and normalized paths for create/get/search as visible in evidence, but cannot be considered validated until the test compiles.
  • StoreClient javadoc on searchStores references {Link (@link) MPResultsResourcesPage}, a class that does not exist in this SDK; the actual return type is MPElementsResourcesPage. Javadoc-only, not compile-blocking; correct while editing the file for F1 alignment.
  • Integration validation of the five Stores endpoints against the live MercadoPago API cannot be produced in this execution (no runtime or credentials); treat compile-and-mock-test verification as the only achievable evidence and do not fabricate a passing live check.
  • The StoreClient diff excerpt was truncated before updateStore/deleteStore bodies; the harness should confirm the full file was linted with PUT /users/{user_id}/stores/{id} and DELETE /users/{user_id}/stores/{id} respectively (no repository defect identified in visible content).

This branch has not been deployed

No deployments
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