Files
ofbiz-framework/applications/accounting/servicedef/services_billing.xml
T
2006-07-27 18:18:40 +00:00

106 lines
6.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2001-2006 The Apache Software Foundation
Licensed 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://www.ofbiz.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Billing Account Services -->
<service name="createBillingAccount" engine="simple"
location="org/ofbiz/accounting/payment/BillingServices.xml" invoke="createBillingAccount">
<description>Create a Billing Account</description>
<attribute name="accountLimit" type="Double" 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="org/ofbiz/accounting/payment/BillingServices.xml" invoke="updateBillingAccount">
<description>Update a Billing Account</description>
<attribute name="billingAccountId" type="String" mode="IN" optional="false"/>
<attribute name="accountLimit" type="Double" 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="org/ofbiz/accounting/payment/BillingServices.xml" invoke="createBillingAccountRole">
<description>Create a Billing Account Role</description>
<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="org/ofbiz/accounting/payment/BillingServices.xml" invoke="updateBillingAccountRole">
<description>Update a Billing Account Role</description>
<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="org/ofbiz/accounting/payment/BillingServices.xml" invoke="removeBillingAccountRole">
<description>Remove a Billing Account Role</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createBillingAccountTerm" engine="simple"
location="org/ofbiz/accounting/payment/BillingServices.xml" invoke="createBillingAccountTerm">
<description>Create a Billing Account Term</description>
<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="org/ofbiz/accounting/payment/BillingServices.xml" invoke="updateBillingAccountTerm">
<description>Update a Billing Account Term</description>
<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="org/ofbiz/accounting/payment/BillingServices.xml" invoke="removeBillingAccountTerm">
<description>Remove a Billing Account Term</description>
<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="Double" mode="OUT" optional="false"/>
<attribute name="netAccountBalance" type="Double" mode="OUT" optional="false"/>
<attribute name="availableBalance" type="Double" mode="OUT" optional="false"/>
<attribute name="availableToCapture" type="Double" mode="OUT" optional="false"/>
<attribute name="billingAccount" type="GenericValue" mode="OUT" optional="false"/>
</service>
</services>