From 0c4b316f82dd117c69b7b54eaa0ed789f8170924 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Thu, 14 Nov 2019 15:42:52 +0100 Subject: [PATCH] align Result model with the latest OpenAIRE schema changes introduced in the protobuf model --- .../eu/dnetlib/dhp/schema/oaf/Result.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Result.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Result.java index 6fde63392..7b08e71c2 100644 --- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Result.java +++ b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/oaf/Result.java @@ -45,6 +45,12 @@ public abstract class Result extends OafEntity implements Serializable { private List context; + // ( article | book ) processing charges. Defined here to cope with possible wrongly typed results + private Field processingchargeamount; + + // currency - alphabetic code describe in ISO-4217. Defined here to cope with possible wrongly typed results + private Field processingchargecurrency; + private List externalReference; private List instance; @@ -216,4 +222,22 @@ public abstract class Result extends OafEntity implements Serializable { public void setInstance(List instance) { this.instance = instance; } + + public Field getProcessingchargeamount() { + return processingchargeamount; + } + + public Result setProcessingchargeamount(Field processingchargeamount) { + this.processingchargeamount = processingchargeamount; + return this; + } + + public Field getProcessingchargecurrency() { + return processingchargecurrency; + } + + public Result setProcessingchargecurrency(Field processingchargecurrency) { + this.processingchargecurrency = processingchargecurrency; + return this; + } }