@smartkomm/plexus-cli 0.1.341 → 0.1.343
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
|
-
|
|
1
|
+
c2d1da04c453da58f03865390dc6a6f24ed5757e56eaece956e75cc4dac91872
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# plexus-cli command reference
|
|
2
2
|
|
|
3
3
|
Generated from the commands the CLI registers — do not edit; `plexus-cli <command> --help` prints the same.
|
|
4
|
-
|
|
4
|
+
307 commands. Every network command also takes `--env <local|staging|prod>`, `--tenant <slug>`,
|
|
5
5
|
`--json` (raw JSON instead of a table) and `--allow-prod` (required for a writing run against production).
|
|
6
6
|
|
|
7
7
|
- [Admission (offline)](#admission-offline) (1)
|
|
@@ -12,7 +12,7 @@ Generated from the commands the CLI registers — do not edit; `plexus-cli <comm
|
|
|
12
12
|
- [Config (offline)](#config-offline) (4)
|
|
13
13
|
- [Config (school token)](#config-school-token) (6)
|
|
14
14
|
- [Contracts (platform operator)](#contracts-platform-operator) (5)
|
|
15
|
-
- [Contracts (school token)](#contracts-school-token) (
|
|
15
|
+
- [Contracts (school token)](#contracts-school-token) (23)
|
|
16
16
|
- [Feedback (platform operator)](#feedback-platform-operator) (21)
|
|
17
17
|
- [Files (school token)](#files-school-token) (3)
|
|
18
18
|
- [Identity (own account)](#identity-own-account) (5)
|
|
@@ -645,6 +645,20 @@ Give a contract's direct-debit mandate that has no IBAN its account, once, with
|
|
|
645
645
|
| `--source <value>` (required) | Where the IBAN comes from; stored with it |
|
|
646
646
|
| `--confirm` | Add the IBAN (default: dry run) |
|
|
647
647
|
|
|
648
|
+
### `contract mandate set-reference`
|
|
649
|
+
|
|
650
|
+
Give a contract's direct-debit mandate that has an IBAN but no reference its mandate reference, once, with the source
|
|
651
|
+
|
|
652
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
653
|
+
- **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
|
|
654
|
+
|
|
655
|
+
| Option | Description |
|
|
656
|
+
|---|---|
|
|
657
|
+
| `--contract <value>` (required) | The contract whose mandate has no reference |
|
|
658
|
+
| `--mandate-reference <value>` (required) | The mandate reference, exactly as the school used it (1–35 characters) |
|
|
659
|
+
| `--source <value>` (required) | Where the reference comes from; stored with it |
|
|
660
|
+
| `--confirm` | Set the reference (default: dry run) |
|
|
661
|
+
|
|
648
662
|
### `contract twin apply <twin-file> ...`
|
|
649
663
|
|
|
650
664
|
Import contract twins: each signed paper contract becomes a contract with its scan as revision 1
|
|
@@ -138,6 +138,29 @@ apply` imports them.
|
|
|
138
138
|
holds this account as another payment method. The source is stored with the
|
|
139
139
|
IBAN. This adds an account once; it never changes one.
|
|
140
140
|
|
|
141
|
+
4. Later, when the school names a mandate's reference (no paper mandate carries
|
|
142
|
+
one, and a collection run skips a mandate without it): take it exactly as the
|
|
143
|
+
school used it toward the bank — from its direct-debit file, blanks included —
|
|
144
|
+
check, then set:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
plexus-cli --env <env> --tenant <slug> contract mandate set-reference --contract <contract-id> \
|
|
148
|
+
--mandate-reference "<ref>" --source "<where the reference comes from>"
|
|
149
|
+
# the same with --confirm sets it
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
The dry run shows the payment method, the IBAN masked, the mandate date (to
|
|
153
|
+
compare with the school's list), `otherContracts` — contracts paid from the
|
|
154
|
+
same mandate, which get the same reference, since toward the bank a mandate
|
|
155
|
+
is one thing — and `status`: `set` (would be written) or `unchanged` (already exactly this one) —
|
|
156
|
+
a second dry run over the same list counts zero `set`. Refused: the reference
|
|
157
|
+
is not 1–35 characters of the SEPA set (letters, digits, blanks,
|
|
158
|
+
`+ ? / - : ( ) . , '`), the source is missing, the mandate has no IBAN yet
|
|
159
|
+
(step 3 first), the contract has several mandates with an IBAN, or the mandate
|
|
160
|
+
already has another reference — a new reference toward the bank is a mandate
|
|
161
|
+
amendment, not a correction; that holds for a stored reference that breaks
|
|
162
|
+
the SEPA rule too. The source is stored with the reference.
|
|
163
|
+
|
|
141
164
|
## Verify
|
|
142
165
|
|
|
143
166
|
- `plan` again: every imported twin reads `unchanged` with its contract id.
|