Say how a payment arrived in terms that are not the bank's #3

Open
opened 2026-11-21 06:27:38 +00:00 by jorijnvdgraaf · 0 comments

Transaction::kind is the bank's own classification, kept as the bank wrote it: bunq's EBA_SCT/SCT, IDEAL/REQUEST, MASTERCARD/PAYMENT. A consumer that needs to know how money arrived, which decides whether it can still be taken back, has to carry a table of bunq's vocabulary. A second bank would mean a second table in every consumer.

Who needs it

Anything that acts on an incoming payment. The catcrafts.net shop records how each order was paid: a SEPA credit transfer is final, while a card payment can be disputed for months, and so can an iDEAL payment as iDEAL becomes Wero. That label decides whether an order is safe to ship. The shop maps bunq's type itself today (BunqMethodFor in Catcrafts.Server-Bunq.cpp), and it is bunq code the shop would like to stop carrying, with the callbacks in #1 and their decoding in #2.

What is known of bunq's values

kind is <type>/<sub_type>. The shop's table, by type:

bunq type how it arrived
EBA_SCT SEPA credit transfer
EBA_SDD SEPA direct debit
IDEAL iDEAL
FIS card
SWIFT SWIFT
BUNQ between bunq accounts

Seen in a real account's history as well, and not in that table: MASTERCARD/PAYMENT, MASTERCARD/REVERSAL, ADYEN/PAYMENT (a bunq.me link, paid by iDEAL or by card) and BUNQ/BILLING. What the mapping does not know should stay recognisably unknown rather than be guessed, since the point of the answer is whether the money is final. The shop passes an unknown type through as it is for that reason.

What it would take

  • A small set of ways a payment arrives that names no bank (credit transfer, direct debit, card, iDEAL, internal, SWIFT, unknown), and for each bank a function from its kind to one of them.
  • It can be worked out from the stored kind, so Transaction need not change. A change to its members is a schema change (design rule 5).
  • It has to reach a client that is not C++. Transactions on net.catcrafts.Nostro1 returns a(sssssxxss), which design rule 10 fixes now that a release is out, so that means a new method or the CLI's output. nostro transactions prints neither the bank's id nor the kind today, so a script that needs them calls D-Bus itself.

To decide

  • Whether "can this still be reversed" should be an answer of its own beside the way it arrived, since that is the question consumers ask.
  • Whether a machine-readable nostro transactions (with the id, the kind and this) belongs in the same change.
`Transaction::kind` is the bank's own classification, kept as the bank wrote it: bunq's `EBA_SCT/SCT`, `IDEAL/REQUEST`, `MASTERCARD/PAYMENT`. A consumer that needs to know how money arrived, which decides whether it can still be taken back, has to carry a table of bunq's vocabulary. A second bank would mean a second table in every consumer. ## Who needs it Anything that acts on an incoming payment. The catcrafts.net shop records how each order was paid: a SEPA credit transfer is final, while a card payment can be disputed for months, and so can an iDEAL payment as iDEAL becomes Wero. That label decides whether an order is safe to ship. The shop maps bunq's `type` itself today (`BunqMethodFor` in [`Catcrafts.Server-Bunq.cpp`](https://forgejo.catcrafts.net/Catcrafts/catcrafts.net/src/commit/80668e18cdd942c3c0ce4883f14264f376067589/server/implementations/Catcrafts.Server-Bunq.cpp#L149-L164)), and it is bunq code the shop would like to stop carrying, with the callbacks in #1 and their decoding in #2. ## What is known of bunq's values `kind` is `<type>/<sub_type>`. The shop's table, by `type`: | bunq `type` | how it arrived | |---|---| | `EBA_SCT` | SEPA credit transfer | | `EBA_SDD` | SEPA direct debit | | `IDEAL` | iDEAL | | `FIS` | card | | `SWIFT` | SWIFT | | `BUNQ` | between bunq accounts | Seen in a real account's history as well, and not in that table: `MASTERCARD/PAYMENT`, `MASTERCARD/REVERSAL`, `ADYEN/PAYMENT` (a bunq.me link, paid by iDEAL or by card) and `BUNQ/BILLING`. What the mapping does not know should stay recognisably unknown rather than be guessed, since the point of the answer is whether the money is final. The shop passes an unknown `type` through as it is for that reason. ## What it would take - A small set of ways a payment arrives that names no bank (credit transfer, direct debit, card, iDEAL, internal, SWIFT, unknown), and for each bank a function from its `kind` to one of them. - It can be worked out from the stored `kind`, so `Transaction` need not change. A change to its members is a schema change (design rule 5). - It has to reach a client that is not C++. `Transactions` on `net.catcrafts.Nostro1` returns `a(sssssxxss)`, which design rule 10 fixes now that a release is out, so that means a new method or the CLI's output. `nostro transactions` prints neither the bank's id nor the kind today, so a script that needs them calls D-Bus itself. ## To decide - Whether "can this still be reversed" should be an answer of its own beside the way it arrived, since that is the question consumers ask. - Whether a machine-readable `nostro transactions` (with the id, the kind and this) belongs in the same change.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/Nostro#3
No description provided.