Skip to content

feat(order): add missing AP fields to order request models (IXE-679)#356

Merged
danielalfarourrea merged 1 commit into
masterfrom
feature/orders_IXE_679
May 29, 2026
Merged

feat(order): add missing AP fields to order request models (IXE-679)#356
danielalfarourrea merged 1 commit into
masterfrom
feature/orders_IXE_679

Conversation

@danielalfarourrea
Copy link
Copy Markdown
Contributor

Summary

  • OrderStoredCredentialRequest → added prevTransactionRef: String — links each recurring charge to the original card-network authorization; required from the second charge onwards in the AP flow.
  • OrderPaymentRequest → added dateOfExpiration: String (ISO 8601) — absolute payment expiry date, distinct from the relative expirationTime TTL.
  • OrderPayerAddressRequest → added complement: String — apartment or floor; already present in Go, .NET and Node.js SDKs.
  • OrderIntegrationDataRequest (new class) → integratorId, platformId, corporationId (String) + sponsor: OrderSponsorRequest.
  • OrderSponsorRequest (new class) → id: String.
  • OrderCreateRequest → added integrationData: OrderIntegrationDataRequest.

Context

Part of IXE-679: fields required for the Automatic Payments flow in the Orders API were missing from the public SDKs. Companion PRs exist for Go, .NET, Node.js, PHP, Python and Ruby.

All changes are additive only — no existing fields were renamed or removed.

Test plan

  • mvn test -Dtest=OrderClientTest — 25 tests, 0 failures
  • mvn compile — 0 errors
  • Integration tests (not run per policy)

Generated with Claude Code

Add fields required for the Automatic Payments flow in the Orders API:

- OrderStoredCredentialRequest: prevTransactionRef (String) — links each
  recurring charge to the original card-network authorization; required
  from the second charge onwards.
- OrderPaymentRequest: dateOfExpiration (String, ISO 8601) — absolute
  payment expiry date, distinct from the relative expirationTime TTL.
- OrderPayerAddressRequest: complement (String) — apartment, floor, or
  additional address detail; already present in Go, .NET and Node.js.
- OrderIntegrationDataRequest (new class): integratorId, platformId,
  corporationId (String) and sponsor (OrderSponsorRequest) — integration
  metadata for marketplace and platform identification.
- OrderSponsorRequest (new class): id (String) — MercadoPago user ID of
  the sponsoring marketplace owner.
- OrderCreateRequest: integrationData field referencing the new class.

All fields are optional additions; no existing fields were renamed or
removed. Build and unit tests (25/25) pass without modification.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@danielalfarourrea danielalfarourrea force-pushed the feature/orders_IXE_679 branch from d5d0a29 to f5bbf83 Compare May 29, 2026 16:35
@danielalfarourrea danielalfarourrea merged commit 73ed692 into master May 29, 2026
2 checks passed
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