| <?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="BigDecimal" 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="BigDecimal" 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> |
| </services> |