Initialisiere VoTiAn NG mit Docker-Build, .env-Konfiguration und Cookie-Sitzungen
This commit is contained in:
commit
1a30233269
63 files changed
+12138
No files matched your search
@@ -0,0 +1,60 @@
|
||||
package de.stadtbote.votian;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
|
||||
/** API projections only. These classes neither define nor create database tables. */
|
||||
public final class Models {
|
||||
private Models() {}
|
||||
public enum OrderStatus { DISPOSITION, OFFERED, IN_PROGRESS, COMPLETED, CANCELLED }
|
||||
public enum StopType { PICKUP, DELIVERY, BOTH }
|
||||
public enum CourierStatus { AVAILABLE, BUSY, OFFLINE }
|
||||
public enum CancelMode { FREE, CHARGEABLE }
|
||||
public static class Customer {
|
||||
public Long id, version;
|
||||
public String number, name, street, postalCode, city, contact, phone, email;
|
||||
public Integer paymentDays;
|
||||
public boolean active;
|
||||
}
|
||||
public static class Courier {
|
||||
public Long id, version;
|
||||
public String number, name, phone, vehicle, plate;
|
||||
public CourierStatus status;
|
||||
public boolean active;
|
||||
}
|
||||
public static class DeliveryOrder {
|
||||
public Long id, version, customerId, payerCustomerId, courierId, invoiceId;
|
||||
public String number;
|
||||
public OrderStatus status;
|
||||
public int legacyStatus, legacyStorno;
|
||||
public long legacyService;
|
||||
public boolean isCreditNote;
|
||||
public String legacyStatusLabel;
|
||||
public String service, vehicle;
|
||||
public LocalDateTime pickupAt, deliveryDeadline;
|
||||
public String reference, costCenter, notes;
|
||||
public Integer packages;
|
||||
public BigDecimal weight, distanceKm, netPrice, courierPrice, vatRate;
|
||||
public String recipientName;
|
||||
public LocalDateTime deliveredAt, createdAt, updatedAt;
|
||||
public CancelMode cancelMode;
|
||||
public List<Stop> stops = new ArrayList<>();
|
||||
public List<History> history = new ArrayList<>();
|
||||
}
|
||||
public static class Stop {
|
||||
public Long id;
|
||||
public int sequence;
|
||||
public StopType type;
|
||||
public String name, street, postalCode, city, contact, phone, note;
|
||||
public LocalDateTime completedAt;
|
||||
public String recipientName;
|
||||
}
|
||||
public static class History {
|
||||
public Long id;
|
||||
public LocalDateTime at;
|
||||
public String action, detail, actor;
|
||||
}
|
||||
public record Capabilities(boolean readOrders, boolean readCustomers, boolean readCouriers, boolean readInvoices,
|
||||
boolean writeOrders, boolean writeCustomers, boolean writeCouriers, boolean writeInvoices, boolean completeStops, boolean exportOrders) {}
|
||||
}
|
||||
Reference in new issue
Block a user