I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes. If anyone has a better solution, please feel free to revert this commit and change it. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
122 lines
8.1 KiB
XML
122 lines
8.1 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.
|
|
-->
|
|
|
|
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
|
<description>Accounting Services</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<!-- Billing Account Services -->
|
|
<service name="createBillingAccount" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="createBillingAccount">
|
|
<description>Create a Billing Account</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="CREATE"/>
|
|
<attribute name="accountLimit" type="BigDecimal" mode="IN" optional="true"/>
|
|
<attribute name="accountCurrencyUomId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="description" type="String" mode="IN" optional="true"/>
|
|
<attribute name="contactMechId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="fromDate" type="Timestamp" mode="IN" optional="true"/>
|
|
<attribute name="thruDate" type="Timestamp" mode="IN" optional="true"/>
|
|
<attribute name="roleTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="billingAccountId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="updateBillingAccount" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="updateBillingAccount">
|
|
<description>Update a Billing Account</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="UPDATE"/>
|
|
<attribute name="billingAccountId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="accountLimit" type="BigDecimal" mode="IN" optional="true"/>
|
|
<attribute name="accountCurrencyUomId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="description" type="String" mode="IN" optional="true"/>
|
|
<attribute name="contactMechId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="fromDate" type="Timestamp" mode="IN" optional="true"/>
|
|
<attribute name="thruDate" type="Timestamp" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="createBillingAccountRole" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="createBillingAccountRole">
|
|
<description>Create a Billing Account Role</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="CREATE"/>
|
|
<attribute name="billingAccountId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="fromDate" type="Timestamp" mode="IN" optional="true"/>
|
|
<attribute name="thruDate" type="Timestamp" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateBillingAccountRole" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="updateBillingAccountRole">
|
|
<description>Update a Billing Account Role</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="UPDATE"/>
|
|
<attribute name="billingAccountId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="fromDate" type="Timestamp" mode="IN" optional="false"/>
|
|
<attribute name="thruDate" type="Timestamp" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="removeBillingAccountRole" engine="simple" default-entity-name="BillingAccountRole"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="removeBillingAccountRole">
|
|
<description>Remove a Billing Account Role</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createBillingAccountTerm" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="createBillingAccountTerm">
|
|
<description>Create a Billing Account Term</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="CREATE"/>
|
|
<attribute name="billingAccountId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="termTypeId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="termValue" type="Long" mode="IN" optional="false"/>
|
|
<attribute name="uomId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="billingAccountTermId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="updateBillingAccountTerm" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="updateBillingAccountTerm">
|
|
<description>Update a Billing Account Term</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="UPDATE"/>
|
|
<attribute name="billingAccountTermId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="billingAccountId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="termTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="termValue" type="Long" mode="IN" optional="true"/>
|
|
<attribute name="uomId" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeBillingAccountTerm" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/payment/BillingServices.xml" invoke="removeBillingAccountTerm">
|
|
<description>Remove a Billing Account Term</description>
|
|
<permission-service service-name="acctgBillingAcctCheck" main-action="DELETE"/>
|
|
<attribute name="billingAccountTermId" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="calcBillingAccountBalance" engine="java"
|
|
location="org.ofbiz.accounting.payment.BillingAccountWorker" invoke="calcBillingAccountBalance">
|
|
<description>Calculate the balance of a Billing Account</description>
|
|
<attribute name="billingAccountId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="accountBalance" type="BigDecimal" mode="OUT" optional="false"/>
|
|
<attribute name="netAccountBalance" type="BigDecimal" mode="OUT" optional="false"/>
|
|
<attribute name="availableBalance" type="BigDecimal" mode="OUT" optional="false"/>
|
|
<attribute name="availableToCapture" type="BigDecimal" mode="OUT" optional="false"/>
|
|
<attribute name="billingAccount" type="org.ofbiz.entity.GenericValue" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="acctgBillingAcctCheck" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgBillingAcctCheck">
|
|
<description>Basic Billing Account Permission Checking Logic</description>
|
|
<implements service="permissionInterface"/>
|
|
</service>
|
|
</services>
|