Skip to content

fix: uploadEvidenceFile now sends the file - #13

Closed
petter wants to merge 2 commits into
mainfrom
fix/multipart-upload-files
Closed

petter wants to merge 2 commits into
mainfrom
fix/multipart-upload-files

Conversation

@petter

@petter petter commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

FulfillmentClient.uploadEvidenceFileAsync never sent the file. The request went out without a body, so every upload failed. It now sends the file as a multipart/form-data part.

Changelog (0.2.4):

  • Fixed: uploadEvidenceFileAsync sends the file.

Why the low-level client changed: the portal spec names multipart/form-data for this operation only in the Content-Type header text and declares no request body, so Kiota generated a post() method that takes no body. Distribution now writes a repaired copy of the spec to specs/kiota/fulfillment.json with the file part declared, as the operation's documentation specifies, and generate.sh points Kiota at it. specs/openapi/fulfillment.json is still the unmodified portal spec. Kiota's builder now takes a MultipartBody; the wrapper builds it and calls Kiota's own post(), so request options and typed errors work as for every other operation. Public wrapper signatures and constructors are unchanged.

Scope: only the upload fix from globalcommerce/api-sdk-definitions#65 (source commit 56b404d). Unrelated spec changes are left for the next regular distribution.

Verification:

  • ./gradlew compileJava passes.
  • An OkHttp-interceptor wire check with synthetic data: uploadEvidenceFileAsync sends the file bytes exactly, as an RFC 7578 part with a matching boundary, and returns UploadEvidenceFilePaymentDisputeResponse.

Created with Claude Opus 5.5 in Claude Code; design agreed and reviewed with GPT-6.2 Astra in Codex.

Generated with Claude Code

Generated from api-sdk-definitions 26bbcdc (globalcommerce/api-sdk-definitions#65).

Co-Authored-By: Claude <noreply@anthropic.com>
@petter
petter requested a review from a team as a code owner November 23, 2026 22:46
Source: globalcommerce/api-sdk-definitions@56b404d

Co-Authored-By: Claude <noreply@anthropic.com>
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