Add BRCode resource#9
Open
lucasmiranda-stark wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
StarkInfra.BrcodePreview— single batchcreate/2operation againstPOST /brcode-preview, returning previewed BR Code payloads with all 23 server-populated fields.StarkInfra.BrcodePreview.Subscriptionsub-resource (18 output-only fields) parsed into the parent's:subscriptionfield when the previewed BR Code carries Pix-recurring-debit metadata.StarkInfra.Utils.Check.datetime/1,date/1, anddate_or_datetime/1to normalize empty strings ("") returned by the server tonil, matching the parent contract's M5 normalization (also unblocks future resources that hit the same edge case).:ssland:public_keytoextra_applicationsinmix.exsso the test suite can boot SSL/TLS on Erlang/OTP 28 (:httpc.ssl_verify_host_options/1eagerly calls:public_keybefore the runtimeensure_all_started(:ssl)finishes). No production behaviour change — client apps already start:sslfrom their own supervision tree.test/utils/static_brcode.exstest helper that mints a fresh sandbox StaticBrcode viaRequest.fetch(:post, "/static-brcode", ...), used by the newtest/brcode_preview_test.exsso the e2e tests self-bootstrap their own input BR Code (mirrors the Python SDK pattern).Test plan
mix test --only brcode_preview— 2 tests, 0 failures on the Infra sandbox.mix test --only pix_balance— smoke test still green (no regression from themix.exschange).Check.datetime("")head is the right place for the empty-string normalization (vs. inline at each call-site).extra_applications: [:inets, :ssl, :public_key]is acceptable, or whether you'd prefer amod: {StarkInfra.Application, []}start-up hook.🤖 Generated with Claude Code