Skip to content

v0.6.0

Choose a tag to compare

@FernandoCelmer FernandoCelmer released this 06 Sep 08:01
· 24 commits to master since this release

What's Changed

  • submissions — every attempt made for one invoice, and what the authorizer answered to each

submissions — why a document was rejected

consult gives the status. This gives the reason.

$rows = $invoice->submissions('e4a1b2c3-0000-4000-8000-000000000001');

Takes the invoice id, like reissue and unlike everything else: a rejected document has no access key to look it up by.

Each row carries status, status_code (the authorizer's own code — 209, 539, and so on), detail (its message), protocol when one was issued, environment, endpoint, http_status, duration_ms, and the raw_request/raw_response exactly as they went over the wire.

The rows are attempts, not documents: a reissued invoice has more than one, oldest first, and only the last one describes the current status. raw_response keeps the authorizer's own shape and is deliberately not normalized — normalizing would mean guessing, and a wrong guess about a rejection is worse than the raw payload.

Nothing was removed and no signature changed.

Full Changelog: v0.5.0...v0.6.0