@smartkomm/plexus-cli 0.1.157 → 0.1.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 4439f7391a3259dde7843bd386d451a0025e45e119629e4f1eb4eeea97ff4931
1
+ ecadf362903fb0ab816098827c95d93cfa7d2e2a2bb32f9a6f0961baa91be08b
@@ -2113,8 +2113,9 @@ Insert a workflow node + sync progress layout/wiring; validate before write
2113
2113
  | `--article <value>` | collectPayment only (required): the fee's article — its catalog key (billing_item_definitions.configKey), a one-time article assigned to the offer's program; amount, currency and name are read from it at runtime |
2114
2114
  | `--reason <value>` | collectPayment only: human-facing reason on the pay screen (German; needs --reason-en) |
2115
2115
  | `--reason-en <value>` | collectPayment only: the reason in English |
2116
- | `--settlement <value>` | collectPayment only (required): online (die Familie zahlt im Portal) \| separate (Schule rechnet außerhalb ab; Zuständige*r schließt mit „Zahlung überspringen“) |
2117
- | `--payee <value>` | collectPayment with --settlement online only (required there): the payee Träger — whose Stripe account takes the money; a legal entity key (foundation.legalEntities[].key). Not the contract's --traeger: a fee and a contract may go to different Träger |
2116
+ | `--payment-mode <value>` | collectPayment only (required): online (die Familie zahlt im Portal über Stripe) \| manual (die Familie überweist an die Schule; das Team aus --confirm-team bestätigt den Zahlungseingang) |
2117
+ | `--confirm-team <value>` | collectPayment with --payment-mode manual only (required there): permission-group key whose members confirm the payment („Zahlungseingang bestätigen“, assign.confirmPayment) |
2118
+ | `--payee <value>` | collectPayment with --payment-mode online only (required there): the payee Träger — whose Stripe account takes the money; a legal entity key (foundation.legalEntities[].key). Not the contract's --traeger: a fee and a contract may go to different Träger |
2118
2119
  | `--assign-decision <value>` | decision/review only: permission-group key whose members hold the decision row (pairs with --decision-as-task) |
2119
2120
  | `--comment-required <value>` | decision only: authored outcome ids requiring a comment — <id>[,<id>] |
2120
2121
  | `--task <value>` | any: composed task — task: key:task:title:group[:dueInDays] · approval: key:approval:title:group[:revisionGroup] (repeatable) |
@@ -2287,7 +2288,7 @@ Remove form fields a completenessCheck waits for (an address it does not require
2287
2288
 
2288
2289
  ### `offer workflow node set`
2289
2290
 
2290
- Edit a workflow node (label/assign-decision/form/target/contract/payment/routing/approval/confirm-issue/confirm-terms/terms-question/response-due-days/deadline/guest-role/settlement/payee/article/traeger/condition/engage-target/when-nothing-owed); validate before write
2291
+ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing/approval/confirm-issue/confirm-terms/terms-question/response-due-days/deadline/guest-role/payment-mode/confirm-team/payee/article/traeger/condition/engage-target/when-nothing-owed); validate before write
2291
2292
 
2292
2293
  - **Right:** offline — no deployment
2293
2294
  - **Effect:** offline — edits local files only
@@ -2331,11 +2332,12 @@ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing
2331
2332
  | `--confirm-terms <value>` | governedDocument (signedUpload / signedUploadChecked) only: true\|false — before the signed copy is uploaded, ask „Haben Sie die Vertragsbedingungen gelesen und verstanden?“ and log the confirmation (default: on) |
2332
2333
  | `--terms-question-de <value>` | governedDocument only (with --terms-question-en): reword that question, German; both empty ("") restore the default wording |
2333
2334
  | `--terms-question-en <value>` | governedDocument only (with --terms-question-de): reword that question, English |
2334
- | `--settlement <value>` | collectPayment only: online (die Familie zahlt im Portal) \| separate (Schule rechnet außerhalb ab; Zuständige*r schließt mit „Zahlung überspringen“) |
2335
+ | `--payment-mode <value>` | collectPayment only: online (die Familie zahlt im Portal über Stripe) \| manual (die Familie überweist an die Schule; ein Team bestätigt den Zahlungseingang). Switching to manual needs --confirm-team unless the node has one; switching to online drops it |
2336
+ | `--confirm-team <value>` | collectPayment manual only: permission-group key whose members confirm the payment („Zahlungseingang bestätigen“, assign.confirmPayment) |
2335
2337
  | `--article <value>` | collectPayment only: switch the fee's article — its catalog key (billing_item_definitions.configKey) |
2336
2338
  | `--reason <value>` | collectPayment only: the note the family reads (German; needs --reason-en) — the `reason` input |
2337
2339
  | `--reason-en <value>` | collectPayment only: the note in English |
2338
- | `--payee <value>` | collectPayment online only: the payee Träger — whose Stripe account takes the money (foundation.legalEntities[].key); required when switching to --settlement online without one. Switching to separate drops it. Not the contract's --traeger |
2340
+ | `--payee <value>` | collectPayment online only: the payee Träger — whose Stripe account takes the money (foundation.legalEntities[].key); required when switching to --payment-mode online without one. Switching to manual drops it. Not the contract's --traeger |
2339
2341
  | `--traeger <value>` | generated contract (governedDocument, production resolver) only: the Träger that concludes and countersigns — a legal entity key (foundation.legalEntities[].key, a school_operator or service_entity); publish refuses an unknown one |
2340
2342
  | `--condition <value>` | if only: replace the condition — one DSL expression over $env, e.g. '$env.staffInput.staffApplication' |
2341
2343
  | `--engage-target <value>` | engagePush only: switch the target — sandbox \| production (the go-live step) |
@@ -55,34 +55,47 @@ the graph + progress board kept in sync automatically — instead of hand-editin
55
55
  export again. See [Name what a node reads](./addresses.md).
56
56
 
57
57
  ### Payment gate (`collectPayment`)
58
- `--article <key>` and `--settlement online|separate` are **required** (no
58
+ `--article <key>` and `--payment-mode online|manual` are **required** (no
59
59
  default); both are written as the node's parameters (`inputs.article`,
60
- `inputs.settlement` — the editor lists them under „Parameter"). The article is
60
+ `inputs.mode` — the editor lists them under „Parameter" as „Artikel" and
61
+ „Zahlungsweg"). The article is
61
62
  a LINK: the key (`billing_item_definitions.configKey`) of a `one_time`
62
63
  article assigned to the offer's program (Finanzen → Artikel, directly or through
63
64
  an offered package). Amount, currency and the Stripe line name are read from the
64
65
  article at runtime — the node stores no amount, and publish refuses `amount` /
65
66
  `currency` on it (`[collectPayment/retiredField]`) as well as an unknown,
66
67
  non-one-time or out-of-program article. A price change in Finanzen applies to
67
- the next payment without a republish. `online`: the family gets a „Zahlung leisten" request row and pays
68
+ the next payment without a republish.
69
+
70
+ `online`: the family gets a „Zahlung leisten" request row and pays
68
71
  through Stripe Checkout — into the account of the node's **payee Träger**:
69
72
  `--payee <key>` (a `foundation.legalEntities[].key`, written as
70
- `inputs.payee`) is **required** with `online` and refused with `separate`
71
- . Publish refuses an unknown Träger
73
+ `inputs.payee`) is **required** with `online` and refused with `manual`.
74
+ Publish refuses an unknown Träger
72
75
  (`[collectPayment/unknownPayee]`) and one whose Stripe account cannot take real
73
76
  money (`[collectPayment/onlineWithoutStripe]`, naming the Träger). It is not the
74
77
  contract's `--traeger`: a fee and a contract may go to different Träger; the process responsible can also close it
75
78
  „Ohne Online-Zahlung abschließen" with a required reason (e.g. on an
76
- installation without Stripe). `separate`: the school bills
77
- the fee outside Plexus — nothing is asked of the family (no row, no letter; the
78
- portal says „Die Anmeldegebühr wird separat abgerechnet."), and the process
79
- responsible closes the step in the cockpit with **„Zahlung überspringen"**
80
- (optional comment, feed entry „Zahlung übersprungen", nothing booked). The
81
- routing edge is `paid` either way. Switch an existing node with
82
- `offer workflow node set --node <node> --settlement separate` (drops the
83
- payee), `--settlement online --payee <key>`, `--payee <key>` to pay another
84
- Träger, or `--article <key>` to charge another article; a `requested`
85
- letter bound on a `separate` node is refused (`[notification/unknownEvent]`).
79
+ installation without Stripe).
80
+
81
+ `manual`: the money reaches the school outside Plexus (transfer, cash). The
82
+ family sees „Bewerbungsgebühr bezahlen" with the amount and the note
83
+ (`--reason`); a team confirms the payment with **„Zahlungseingang bestätigen"**
84
+ — `--confirm-team <permissionGroupKey>` (written as `assign.confirmPayment`) is
85
+ **required** with `manual` and refused with `online`; publish refuses a manual
86
+ node without it (`[collectPayment/assign]`). The process responsible may still
87
+ close the step with „Zahlung überspringen" (optional comment, nothing booked).
88
+ The routing edge is `paid` either way.
89
+
90
+ Switch an existing node with
91
+ `offer workflow node set --node <node> --payment-mode manual --confirm-team <group>`
92
+ (drops the payee), `--payment-mode online --payee <key>` (drops the team),
93
+ `--confirm-team <group>` to let another team confirm, `--payee <key>` to pay
94
+ another Träger, or `--article <key>` to charge another article; a `requested`
95
+ letter bound on a `manual` node is refused (`[notification/unknownEvent]`).
96
+ A bundle exported with the older parameter „Abrechnung" (`inputs.settlement`,
97
+ `online | separate`) is moved to `inputs.mode` by `offer upgrade`
98
+ (`separate` → `manual`).
86
99
  Applications already parked on the node stay on the version they are pinned
87
100
  to — moving them onto the new version after `apply --publish` needs a platform
88
101
  operator.
@@ -123,7 +123,7 @@ Order matters; each step names why.
123
123
  existing Engage contact id or create a new contact.
124
124
  - The API cannot enrol: the pupil lands as a prospective pupil at the configured
125
125
  admission stage. Whether Engage enrols from its completion stage is open.
126
- - A fee billed separately (`settlement: separate`) is never sent as „paid".
126
+ - A fee paid outside Plexus (`mode: manual`) and skipped is never sent as „paid".
127
127
  - **A dry run that waits for the team opens its task „Engage-Übertragung prüfen"**: when
128
128
  it lists an issue (fix the answer or the mapping, then „Probelauf wiederholen"), or on a live
129
129
  deployment when nothing stands between it and „Jetzt live übertragen". A clean re-run on a dry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartkomm/plexus-cli",
3
- "version": "0.1.157",
3
+ "version": "0.1.158",
4
4
  "description": "Unified Plexus admin + admission-offer config CLI (Convex backend).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",