Files
ofbiz-plugins/ebay/entitydef/entitymodel.xml
T
Hans Bakker 7e69a80ddc Ebay API inventory functions
- function to reserve product in ofbiz inventory when posted on Ebay
- function  load products and quantity  to ebay store inventory
- Add new EnumerationType call EBAY_INV_RESERVE for reserve product from inventory  
- help screens.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@904006 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 09:13:30 +00:00

119 lines
5.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd">
<!-- ========================================================= -->
<!-- ======================== Defaults ======================= -->
<!-- ========================================================= -->
<title>Entity of an Open For Business Project Component</title>
<description>None</description>
<copyright>Copyright 2001-2009 The Apache Software Foundation</copyright>
<author>None</author>
<version>1.0</version>
<!-- ========================================================= -->
<!-- ======================== Data Model ===================== -->
<!-- The modules in this file are as follows: -->
<!-- - org.ofbiz.ebay.config -->
<!-- ========================================================= -->
<!-- ========================================================= -->
<!-- org.ofbiz.ebay.config -->
<!-- ========================================================= -->
<entity entity-name="EbayConfig"
package-name="org.ofbiz.ebay.config"
title="eBay Configuration">
<field name="productStoreId" type="id-ne"></field>
<field name="devId" type="value"></field>
<field name="appId" type="value"></field>
<field name="certId" type="value"></field>
<field name="token" type="very-long"></field>
<field name="compatibilityLevel" type="id"></field>
<field name="siteId" type="id"></field>
<field name="xmlGatewayUri" type="value"></field>
<field name="apiServerUrl" type="value"></field>
<field name="customXml" type="very-long"></field>
<field name="webSiteId" type="id-ne"></field>
<prim-key field="productStoreId"/>
<relation type="one" fk-name="EBY_PROD_STORE" rel-entity-name="ProductStore">
<key-map field-name="productStoreId"/>
</relation>
<relation type="one" fk-name="EBY_WEBSITE" rel-entity-name="WebSite">
<key-map field-name="webSiteId"/>
</relation>
</entity>
<entity entity-name="EbayShippingMethod"
package-name="org.ofbiz.ebay.shipping"
title="Ebay Shipping Method Config">
<field name="shipmentMethodName" type="id-long-ne"></field>
<field name="productStoreId" type="id-ne"></field>
<field name="amount" type="currency-amount"></field>
<field name="additionalAmount" type="currency-amount"></field>
<field name="additionalPercent" type="fixed-point"></field>
<field name="methodTypeEnumId" type="id-ne"></field>
<field name="carrierPartyId" type="id-ne"></field>
<field name="shipmentMethodTypeId" type="id-ne"></field>
<prim-key field="shipmentMethodName"/>
<prim-key field="productStoreId"/>
<relation type="one" fk-name="EBYSM_PRD_STRE" rel-entity-name="ProductStore">
<key-map field-name="productStoreId"/>
</relation>
<relation type="one" fk-name="EBYSM_TPE_ENUM" rel-entity-name="Enumeration">
<key-map field-name="methodTypeEnumId" rel-field-name="enumId"/>
</relation>
<relation type="one" fk-name="EBYSM_CRIER_PRTY" rel-entity-name="Party">
<key-map field-name="carrierPartyId" rel-field-name="partyId"/>
</relation>
<relation type="one" fk-name="EBYSM_SHMETH_TPE" rel-entity-name="ShipmentMethodType">
<key-map field-name="shipmentMethodTypeId"/>
</relation>
</entity>
<entity entity-name="EbayProductStoreInventory"
package-name="org.ofbiz.ebay.store"
title="Ebay store product inventory and status of listing">
<field name="productStoreId" type="id-ne"></field>
<field name="facilityId" type="id-ne"></field>
<field name="productId" type="id-ne"></field>
<field name="folderId" type="id-ne"></field>
<field name="ebayProductId" type="numeric"></field>
<field name="quantityReserved" type="fixed-point"></field>
<field name="availableToPromiseListing" type="fixed-point"></field>
<field name="scheduled" type="fixed-point"></field>
<field name="activeListing" type="fixed-point"></field>
<field name="sold" type="fixed-point"></field>
<field name="unSold" type="fixed-point"></field>
<field name="successRatio" type="floating-point"></field>
<field name="avgSellingPrice" type="floating-point"></field>
<field name="reservedDate" type="date-time"></field>
<prim-key field="productStoreId"/>
<prim-key field="facilityId"/>
<prim-key field="productId"/>
<relation type="one" fk-name="EBYSM_PRD_STRE" rel-entity-name="ProductStore">
<key-map field-name="productStoreId"/>
</relation>
</entity>
</entitymodel>