diff --git a/src/main/java/org/entur/lamassu/mapper/entitymapper/SystemMapper.java b/src/main/java/org/entur/lamassu/mapper/entitymapper/SystemMapper.java index eab42702..8aeb0d3f 100644 --- a/src/main/java/org/entur/lamassu/mapper/entitymapper/SystemMapper.java +++ b/src/main/java/org/entur/lamassu/mapper/entitymapper/SystemMapper.java @@ -97,6 +97,7 @@ public System mapSystem(GBFSData systemInformation, FeedProvider feedProvider) { .toList() ) ); + system.setOpeningHours(systemInformation.getOpeningHours()); system.setOperator(mapOperator(systemInformation.getOperator(), feedProvider)); system.setUrl(systemInformation.getUrl()); system.setPurchaseUrl(systemInformation.getPurchaseUrl()); diff --git a/src/main/java/org/entur/lamassu/model/entities/System.java b/src/main/java/org/entur/lamassu/model/entities/System.java index 7a36ba1a..84f69209 100644 --- a/src/main/java/org/entur/lamassu/model/entities/System.java +++ b/src/main/java/org/entur/lamassu/model/entities/System.java @@ -9,6 +9,7 @@ public class System implements Entity { private List languages; private TranslatedString name; private TranslatedString shortName; + private String openingHours; private Operator operator; private String url; private String purchaseUrl; @@ -68,6 +69,14 @@ public void setShortName(TranslatedString shortName) { this.shortName = shortName; } + public String getOpeningHours() { + return openingHours; + } + + public void setOpeningHours(String openingHours) { + this.openingHours = openingHours; + } + public Operator getOperator() { return operator; } diff --git a/src/main/resources/graphql/schema.graphqls b/src/main/resources/graphql/schema.graphqls index ea6f8a98..8165807d 100644 --- a/src/main/resources/graphql/schema.graphqls +++ b/src/main/resources/graphql/schema.graphqls @@ -263,6 +263,7 @@ type System { languages: [String!]! name: TranslatedString! shortName: TranslatedString + openingHours: String operator: Operator! url: String purchaseUrl: String