From c51627d5eb5188a9d6cbe4ea0029cb62df7506c6 Mon Sep 17 00:00:00 2001 From: Roland Haeder <roland@mxchange.org> Date: Sat, 9 Apr 2016 13:12:21 +0200 Subject: [PATCH] Created generic customer lib (remote interfaces) based on jshop-ee-lib --- build.xml | 6 +- lib/jcustomer-core.jar | Bin 0 -> 5872 bytes lib/jshop-core.jar | Bin 49064 -> 44482 bytes nbproject/build-impl.xml | 10 +-- nbproject/project.properties | 8 +- nbproject/project.xml | 2 +- .../customer/CustomerSessionBeanRemote.java | 6 +- .../model/basket/BasketSessionBeanRemote.java | 46 ----------- .../AdminCategorySessionBeanRemote.java | 46 ----------- .../category/CategorySessionBeanRemote.java | 37 --------- .../AdminProductSessionBeanRemote.java | 54 ------------ .../product/ProductSessionBeanRemote.java | 37 --------- .../model/receipt/ReceiptBeanRemote.java | 77 ------------------ .../model/receipt/WrapableReceipt.java | 27 ------ 14 files changed, 18 insertions(+), 338 deletions(-) create mode 100644 lib/jcustomer-core.jar rename src/org/mxchange/{jshopcore => jcustomercore}/model/customer/CustomerSessionBeanRemote.java (89%) delete mode 100644 src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java delete mode 100644 src/org/mxchange/jshopcore/model/receipt/WrapableReceipt.java diff --git a/build.xml b/build.xml index e1b5260..2771440 100644 --- a/build.xml +++ b/build.xml @@ -7,8 +7,8 @@ <!-- the Compile on Save feature is turned off for the project. --> <!-- You can turn off the Compile on Save (or Deploy on Save) setting --> <!-- in the project's Project Properties dialog box.--> -<project name="jshop-ee-lib" default="default" basedir="."> - <description>Builds, tests, and runs the project jshop-ee-lib.</description> +<project name="jcustomer-lib" default="default" basedir="."> + <description>Builds, tests, and runs the project jcustomer-lib.</description> <import file="nbproject/build-impl.xml"/> <!-- @@ -58,7 +58,7 @@ An example of overriding the target for project execution could look like this: - <target name="run" depends="jshop-ee-lib-impl.jar"> + <target name="run" depends="jcustomer-lib-impl.jar"> <exec dir="bin" executable="launcher.exe"> <arg file="${dist.jar}"/> </exec> diff --git a/lib/jcustomer-core.jar b/lib/jcustomer-core.jar new file mode 100644 index 0000000000000000000000000000000000000000..255e0d347367c857944ceb227a3bfb9b9528c550 GIT binary patch literal 5872 zcmb_gO>7&-6@J5itw>p-WJ#7BXJsokNkyXM*s&eCt{GaY8T}ciBtT67W3^gK>yTV^ zxk{`WIph+wK-xol=&h$*TeMEwv<=$k79c>b0dniLhoWc?y*23f_J>-o#I59df!*2J zeSh=j&G+8Sy@hB@B1#ecXy=D_$#->8jF#qBOOuu5`QkTU5Z!B$ehAXi&wug3F39;F zz}+HUDlJ#$=c=nyOY=)gLw~3>t;u!GZ0bhiHF;)gIwO@DzAvR+McvV4e8bNhQ?F*E zvZ*PSwl(?sKGR>HntpKY@}%CdG_#@9CO4<A%DEL&QEQr9Hq2eaR4j<jXQYgDU}0Ba zFfmwYnA^q96d9MI{#e~n8rxb3>1dGjk-FEkjJjs3h8f0qF`Q9*tZKVFm}ZFbv2Yo6 zV@s=ruosTQ?hPkI&diDAG%dy23yx~~2R}8&F)@5Ehl}%hrtG@9R703-?cdk7^(I0? z+nV#dH>K8;X7h`0{`hAIeT805(U~NTbkiuE<;M#Woud~eguI-ju_T=r)Z5fdU8%WI zx>mU(NW38^Q^r(SO2b-LYI|CosOMjw|M<yY1SM|j4c)pW=vr=(qpB4%?SbITMa!9< z<+J&9L9sF>O3<lAy`e4d)i*VBRoSfJOLoyvVTuBS(04z^tR1~6=#4OKC-Tv(pp<8r zpetc=JB>n+R5kWYRh!q@?n~bALMG;s@{S_N@F?Xc)9=ZOGmo;_nn?Lw-P(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DsWE`TRWE6+2?I8}KpxJ(2I;E(X7`5iTk;pX^BJr8?CVt~z zJ8uyy9}dr&v1+>#txxhGh>j;M;zx(rEL}wX!4mx}+J2gT^4i_xWvmrPNxm=<Ty36Z xX*jChdYs);d}%1o);<-y8<C+iN|x~S%z`hEC*qS&sr7csNuTQho?zJ<{s;M__0RwS diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index 92005f3..3047aad 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -19,7 +19,7 @@ is divided into following sections: - cleanup --> -<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="jshop-ee-lib-impl"> +<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="jcustomer-lib-impl"> <fail message="Please build using Ant 1.8.0 or higher."> <condition> <not> @@ -468,7 +468,7 @@ is divided into following sections: </fileset> </union> <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/> - <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="jshop-ee-lib" testname="TestNG tests" workingDir="${work.dir}"> + <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="jcustomer-lib" testname="TestNG tests" workingDir="${work.dir}"> <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/> <propertyset> <propertyref prefix="test-sys-prop."/> @@ -619,7 +619,7 @@ is divided into following sections: <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}"> <isset property="test.method"/> </condition> - <condition else="-suitename jshop-ee-lib -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}"> + <condition else="-suitename jcustomer-lib -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}"> <matches pattern=".*\.xml" string="@{testClass}"/> </condition> <delete dir="${build.test.results.dir}" quiet="true"/> @@ -911,7 +911,7 @@ is divided into following sections: <delete file="${built-jar.properties}" quiet="true"/> </target> <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> - <echo level="warn" message="Cycle detected: jshop-ee-lib was already built"/> + <echo level="warn" message="Cycle detected: jcustomer-lib was already built"/> </target> <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> <mkdir dir="${build.dir}"/> @@ -1396,7 +1396,7 @@ is divided into following sections: <delete file="${built-clean.properties}" quiet="true"/> </target> <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> - <echo level="warn" message="Cycle detected: jshop-ee-lib was already built"/> + <echo level="warn" message="Cycle detected: jcustomer-lib was already built"/> </target> <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> <mkdir dir="${build.dir}"/> diff --git a/nbproject/project.properties b/nbproject/project.properties index dedc590..c3571c8 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -3,7 +3,7 @@ annotation.processing.enabled.in.editor=true annotation.processing.processors.list= annotation.processing.run.all.processors=true annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output -application.title=jshop-ee-lib +application.title=jcustomer-lib application.vendor=Roland Haeder auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml build.classes.dir=${build.dir}/classes @@ -26,12 +26,13 @@ debug.test.classpath=\ dist.archive.excludes= # This directory is removed when the project is cleaned: dist.dir=dist -dist.jar=${dist.dir}/jshop-ee-lib.jar +dist.jar=${dist.dir}/jcustomer-lib.jar dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= file.reference.jcore.jar=lib/jcore.jar file.reference.jcoreee.jar=lib/jcoreee.jar +file.reference.jcustomer-core.jar=lib/jcustomer-core.jar file.reference.jshop-core.jar=lib/jshop-core.jar includes=** jar.archive.disabled=${jnlp.enabled} @@ -40,11 +41,13 @@ jar.index=${jnlp.enabled} javac.classpath=\ ${file.reference.jcore.jar}:\ ${file.reference.jcoreee.jar}:\ + ${file.reference.jcustomer-core.jar}:\ ${file.reference.jshop-core.jar}:\ ${libs.javaee-api-7.0.classpath} # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=true +javac.external.vm=false javac.processorpath=\ ${javac.classpath} javac.source=1.7 @@ -95,6 +98,7 @@ run.test.classpath=\ source.encoding=UTF-8 source.reference.jcore.jar=../jcore/src/ source.reference.jcoreee.jar=../jcoreee/src/ +source.reference.jcustomer-core.jar=../jcustomer-core/src/ source.reference.jshop-core.jar=../jshop-core/src/ src.dir=src test.src.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml index 7144edb..5516f62 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -3,7 +3,7 @@ <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> - <name>jshop-ee-lib</name> + <name>jcustomer-lib</name> <source-roots> <root id="src.dir"/> </source-roots> diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jcustomercore/model/customer/CustomerSessionBeanRemote.java similarity index 89% rename from src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java rename to src/org/mxchange/jcustomercore/model/customer/CustomerSessionBeanRemote.java index 3a63e60..6c4b5c1 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jcustomercore/model/customer/CustomerSessionBeanRemote.java @@ -14,11 +14,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -package org.mxchange.jshopcore.model.customer; +package org.mxchange.jcustomercore.model.customer; import java.io.Serializable; import javax.ejb.Remote; -import org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException; +import org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException; /** * An interface for customer beans @@ -55,7 +55,7 @@ public interface CustomerSessionBeanRemote extends Serializable { * @return Prepared Customer instance * <p> * @throws - * org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If + * org.mxchange.jcustomercore.exceptions.CustomerAlreadyRegisteredException If * the customer is already registered. */ Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException; diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java deleted file mode 100644 index b5faad5..0000000 --- a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package org.mxchange.jshopcore.model.basket; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; -import org.mxchange.jshopcore.model.customer.Customer; - -/** - * An interface for a basket bean - * <p> - * @author Roland Haeder<roland@mxchange.org> - */ -@Remote -public interface BasketSessionBeanRemote extends Serializable { - - /** - * Clears this bean from previous usage - */ - void clear (); - - /** - * Registers the order list of tems with the customer - * <p> - * @param customer Customer instance - * @param orderedItems Ordered items list - * <p> - * @return Access key - */ - String registerItems (final Customer customer, final List<AddableBasketItem> orderedItems); -} diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java deleted file mode 100644 index 945971c..0000000 --- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package org.mxchange.jshopcore.model.category; - -import java.io.Serializable; -import javax.ejb.Remote; -import org.mxchange.jshopcore.exceptions.CannotAddCategoryException; -import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; - -/** - * An interface for categories for "ADMIN" role. - * <p> - * @author Roland Haeder<roland@mxchange.org> - */ -@Remote -public interface AdminCategorySessionBeanRemote extends Serializable { - - /** - * Adds given category data from request to database - * <p> - * @param category Category instance - * <p> - * @return Updated category instance - * <p> - * @throws - * org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If - * the given title is already used - * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If - * the category cannot be added - */ - Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException; -} diff --git a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java deleted file mode 100644 index 6b08604..0000000 --- a/src/org/mxchange/jshopcore/model/category/CategorySessionBeanRemote.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package org.mxchange.jshopcore.model.category; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; - -/** - * A remote-call interface for the shop - * <p> - * @author Roland Haeder<roland@mxchange.org> - */ -@Remote -public interface CategorySessionBeanRemote extends Serializable { - - /** - * Some "getter" for a linked list of all categories - * <p> - * @return All categories - */ - List<Category> getAllCategories (); -} diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java deleted file mode 100644 index 4c3d83d..0000000 --- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package org.mxchange.jshopcore.model.product; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; -import org.mxchange.jshopcore.exceptions.CannotAddProductException; -import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; - -/** - * Product interface for "ADMIN" role - * <p> - * @author Roland Haeder<roland@mxchange.org> - */ -@Remote -public interface AdminProductSessionBeanRemote extends Serializable { - - /** - * Some "getter" for a linked list of all products - * <p> - * @return All products - */ - List<Product> getAllProducts (); - - /** - * Adds given product data from request to database - * <p> - * @param product Product instance - * <p> - * @return Updated product instance - * <p> - * @throws - * org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the - * given product title is already used - * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If - * something unexpected happened - */ - Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException; -} diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java deleted file mode 100644 index a7922f5..0000000 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package org.mxchange.jshopcore.model.product; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; - -/** - * An interface for non-admin purposes - * <p> - * @author Roland Haeder<roland@mxchange.org> - */ -@Remote -public interface ProductSessionBeanRemote extends Serializable { - - /** - * Some "getter" for a linked list of only available products - * <p> - * @return Only available products - */ - List<Product> getAvailableProducts (); -} diff --git a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java deleted file mode 100644 index 3e21191..0000000 --- a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package org.mxchange.jshopcore.model.receipt; - -import java.io.Serializable; -import javax.ejb.Remote; -import org.mxchange.jshopcore.model.customer.Customer; - -/** - * A remote interface for official recipt creation - * <p> - * @author Roland Haeder<roland@mxchange.org> - */ -@Remote -public interface ReceiptBeanRemote extends Serializable { - - /** - * Returns a wrapped PDF byte stream for given access key or null if not - * found. - * <p> - * @param accessKey Access key on the online PDF - * <p> - * @return Wrapped byte stream - */ - WrapableReceipt createReceiptFromAccessKey (final String accessKey); - - /** - * Fetches access key, if customer instance matches, else null is returned - * <p> - * @param customer Customer instance - * <p> - * @return Access key or null - */ - String fetchAccessKey (final Customer customer); - - /** - * Getter for access key - * <p> - * @return Access key - */ - String getAccessKey (); - - /** - * Setter for access key - * <p> - * @param accessKey Access key - */ - void setAccessKey (final String accessKey); - - /** - * Getter for customer instance - * <p> - * @return Customer instance - */ - Customer getCustomer (); - - /** - * Setter for customer instance - * <p> - * @param customer Customer instance - */ - void setCustomer (final Customer customer); -} diff --git a/src/org/mxchange/jshopcore/model/receipt/WrapableReceipt.java b/src/org/mxchange/jshopcore/model/receipt/WrapableReceipt.java deleted file mode 100644 index f619a09..0000000 --- a/src/org/mxchange/jshopcore/model/receipt/WrapableReceipt.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2016 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package org.mxchange.jshopcore.model.receipt; - -import java.io.Serializable; - -/** - * A receipt wrapper interface. - * <p> - * @author Roland Haeder<roland@mxchange.org> - */ -public interface WrapableReceipt extends Serializable { -} -- 2.39.5