Repository navigation
feat(cli): Brazil payment order commands (beta) - #64
Conversation
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 43 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Your 65 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (7)
Comment |
…nt order commands
|
Local review (code-review, high) of the first head. Seven findings, all addressed in
|
Adds
message send orderandmessage send order-statusfor the Brazil payment orders beta (API polymorfa/polymorfa#429 and #433; SDK polymorfa/sdks#329). The CLI pins@polymorfa/sdk@0.1.0-dev.20261001215108, the dev prerelease that sdks devcdb35d4published.order --order <file|->sends theorderDetailsJSON object unchanged. The API validates BRL, totals, the Pix key and the dynamic Pix code, and names the failing field.order-statusbuildsorderStatusfrom--reference-id,--body,--footer,--order-status(+--order-description) and--payment-status(+--payment-timestamp). At least one status is required, and this is checked before any request.transport: official_api, accept--idempotency-key, and make one network attempt (maxNetworkRetries: 0). Polymorfa relays orders and does not process funds. Teams outside the beta receivefeature_unavailable.Verification: typecheck, lint (0 errors), build, and
vitest(964 passed, including 4 new order tests: file send with idempotency key, non-object refusal, status flags, and a missing status refused before transport).Not exercised: a live send against the deployed beta.
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.