feat(order): add missing AP fields to order request models (IXE-679)#356
Merged
Conversation
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>
d5d0a29 to
f5bbf83
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
prevTransactionRef: String— links each recurring charge to the original card-network authorization; required from the second charge onwards in the AP flow.dateOfExpiration: String(ISO 8601) — absolute payment expiry date, distinct from the relativeexpirationTimeTTL.complement: String— apartment or floor; already present in Go, .NET and Node.js SDKs.integratorId,platformId,corporationId(String) +sponsor: OrderSponsorRequest.id: String.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
Generated with Claude Code