Repository navigation
Quarter Proofs 0.3.2
Quarter Proofs 0.3.2, the first release from its own repository: did every Stripe payout reach the bank, what makes up each payout, and did your app process every webhook. Answers cite the lines in both files.
The first release from this repository, and the first with gross to net and webhooks.
- Split out of the quarter monorepo into its own repository,
with history. Quarter Proofs is the payout, gross-to-net and webhooks checks (python/quarter/proofs.py,
thenickeljobs, andmoney.py/bizdays.py). No behaviour change in the split. quarter proofs gross-to-net RECON.csv [PAYOUTS.csv] [BANK.csv]proves a payout gross to net: it reads a
processor's itemized payout reconciliation report and, per payout, sorts its rows into charges, refunds, disputes,
fees and other, adds them up, and answers whether they tie to the Payouts report's amount (ties,offwith the
rows' lines named, ornot provedwhen there are no rows). Rows whose payout the report does not hold are listed
apart, never dropped. Amounts stay in minor units with the currency's own exponent; a negative payout is a debit;
no customer name, email or description reaches an output. Writesanswers.csv,answers.jsonand a hash-chained
receipts.jsonl. Also a Quarter Flows step (use = "gross_to_net") with apayout_offcheck. Exit 0, 1 or 2.quarter proofs webhooks EVENTS LOGchecks the processed-event log against the processor's event export:
one answer per event (processed,pending,missed,at_risk,duplicate,out_of_order,unknown,
not_proved), each citing the lines it rests on, with hash-chained receipts. It reads both files through
quarter-ingest(reader kindsstripe-eventsandevents-log), never over the network, and never writes an
event's payload. Exit 0 when every event is processed or pending, 1 when any needs a look, 2 on a bad input or a
--as-ofbefore the files end.
Run it
Needs Python 3.9 or newer (standard library only) and quarter-ingest 0.3.2 (brew install quarterso/tap/quarter-ingest, or from quarterso/ingest). Unpack the archive, then:
QUARTER_INGEST_BIN="$(command -v quarter-ingest)" sh examples/run-all.sh
python3 -I python/bin/quarter-proofs payouts PAYOUTS.csv BANK.csv --out DIRVerify the download
sha256sum -c SHA256SUMS
gh attestation verify quarter-proofs-v0.3.2.tar.gz --repo quarterso/proofsReleases before 0.3.2 came from quarterso/quarter.