Repository navigation
[ONB-4538] [Compose] Add v2 customers update - #148
Merged
Merged
Conversation
Co-authored-by: fin-compose[bot] <255610621+fin-compose[bot]@users.noreply.github.com>
Contributor
Author
|
fin review |
Contributor
Author
|
fin review |
FranciscaOtero
marked this pull request as ready for review
November 24, 2026 12:44
Contributor
Author
|
fin review |
Contributor
Author
|
fin review |
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.
Description
The public API now lets merchants replace a customer's
metadata(PATCH /v2/customers/{id}, fintoc-com/fintoc-rails#22020). This PR exposes it in the SDK:Reviewed the rest of the public API diff (fintoc-rails abfc7e72 → 5da5cf24, pacioli a9adf6ff → 4ec1a96e); none of it needs SDK changes:
payment_method.card.bank/bin/holder_name/holder_tax_id/institution_id, fintoc-com/fintoc-rails#21935, #22122, #22263;payment_intent.payment_method_details.card.bin/holder_name/holder_tax_id/institution_idon payment intents and checkout sessions, #22068, #22122, #22263): resources are built dynamically, and the nestedholder_tax_idobject becomes a generic resource.setup_intent.error_reason:identity_verification_failed,expired, #21892;insufficient_balanceintransfer.error_reasonandaccount_verification.reason, fintoc-com/pacioli#4396): plain strings in the SDK.mx_direct_debit[account_holder][phone]onPOST /v2/payment_methods(#21943): kwargs pass through as-is, including the multipart flattening for payment methods.429 rate_limit_exceededon webhook endpoints, #21510;403 product_access_requiredon entities, #20996;400 invalid_phone_numberon payment methods, #21943): mapped by the generic error handling.interval_count, #21688; installments only in Chile, #21950;payment_intent.payment_methodsemantics, #22062; example-only changes): no SDK impact.Left out:
metadata) contain aclient,handlers,methodsorpathkey raiseTypeErrorwhen building the resource, for every resource and operation. It needs a change in the sharedResourceMixin(positional-only params aren't available while the package supports Python 3.7), so it's left for a separate fix.ubuntu-latestnow resolves to Ubuntu 26.04, where3.10.6isn't available. Unrelated to this branch; it affects every PR.Tests: integration tests with mocked HTTP. Locally: full pytest suite, black and isort pass.
Release notes
client.v2.customers.update(id, metadata=...)to replace a customer's metadata.Requirements
None.
Additional changes
None.