- Neuer Workflow-Step "Zahlung" zeigt ausgelieferte Artikel mit Menge und Preis, Betragsaufstellung, Zahlungsstatus und einen grossen Button "Zahlung abwickeln" (fest unten) - Zahlungs-Modal: grosser offener Betrag, Methoden als Cards aus den Backend-Stammdaten, bei EC-Karte gross die Kundennummer; schliesst nur ueber Abbrechen, "Zahlung erhalten" oder "Lieferung abbrechen" (mit Grund) - Bestaetigung wird am Server protokolliert (RecordDeliveryPayment); bis dahin sind "Weiter" und die Uebersicht gesperrt, ausser es ist nichts offen (bereits bezahlt). Aendert sich der Betrag danach, wird die Zahlung als veraltet markiert und muss erneut abgewickelt werden - Uebersicht zeigt die abgewickelte Zahlung statt eigener Methodenauswahl; Unterschrift-Flow ohne doppelte Inkasso-Stufe; Abschluss sendet Methode und Inkasso-Flag der gueltigen Zahlung - DeliveryPaymentStatus als einzige Quelle fuer offenen Betrag (gleiche Formel wie Backend); Artikelliste/Betragskarte als geteilte Widgets; Begruendungs-Dialog geteilt mit Info-Step - API-Client aus aktueller Backend-Spec neu generiert - Tests fuer Zahlungsstatus und Modal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
54 lines
1.3 KiB
Dart
54 lines
1.3 KiB
Dart
import 'package:test/test.dart';
|
|
import 'package:holzleitner_api/holzleitner_api.dart';
|
|
|
|
// tests for DeliveryPayment
|
|
void main() {
|
|
final instance = DeliveryPaymentBuilder();
|
|
// TODO add properties to the builder and call build()
|
|
|
|
group(DeliveryPayment, () {
|
|
// Abgewickelter Betrag in Cent (offener Betrag bei Bestätigung).
|
|
// int amountCents
|
|
test('to test the property `amountCents`', () async {
|
|
// TODO
|
|
});
|
|
|
|
// String deliveryId
|
|
test('to test the property `deliveryId`', () async {
|
|
// TODO
|
|
});
|
|
|
|
// String id
|
|
test('to test the property `id`', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Snapshot des Methoden-Codes (`cash`, `ec_card`, `invoice`, …).
|
|
// String paymentMethodCode
|
|
test('to test the property `paymentMethodCode`', () async {
|
|
// TODO
|
|
});
|
|
|
|
// String paymentMethodId
|
|
test('to test the property `paymentMethodId`', () async {
|
|
// TODO
|
|
});
|
|
|
|
// DateTime recordedAt
|
|
test('to test the property `recordedAt`', () async {
|
|
// TODO
|
|
});
|
|
|
|
// String recordedByCarId
|
|
test('to test the property `recordedByCarId`', () async {
|
|
// TODO
|
|
});
|
|
|
|
// int recordedByPersonalnummer
|
|
test('to test the property `recordedByPersonalnummer`', () async {
|
|
// TODO
|
|
});
|
|
|
|
});
|
|
}
|