Files
ofbiz-framework/applications/accounting/servicedef/services_payment.xml
T
Adrian Crum 9a753b9865 Fixed a problem where service definitions were using "GenericValue" as attribute types, but that threw exceptions because the service definitions needed the full class name - "org.ofbiz.entity.GenericValue". The problem was reported in https://issues.apache.org/jira/browse/OFBIZ-2268 and https://issues.apache.org/jira/browse/OFBIZ-2311.
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
2009-04-17 06:33:43 +00:00

146 lines
9.2 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>
<!-- Payment services -->
<service name="createPayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPayment" auth="true">
<description>Create a Payment. If a paymentMethodId is supplied, paymentMethodTypeId is gotten from paymentMethod. Otherwise, it must be supplied. If no
paymentMethodTypeId and no paymentMethodId is supplied, then an error will be returned. </description>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<auto-attributes include="pk" mode="INOUT" optional="true"/>
<override name="paymentTypeId" optional="false"/>
<override name="partyIdFrom" optional="false"/>
<override name="partyIdTo" optional="false"/>
<override name="statusId" optional="false"/>
<override name="amount" optional="false"/>
</service>
<service name="updatePayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="updatePayment" auth="true">
<description>Update a Payment</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="setPaymentStatus" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="setPaymentStatus" auth="true">
<description>Change the status of a Payment</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
</service>
<service name="checkPaymentInvoices" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="checkPaymentInvoices">
<description>Checks to see if each invoice to which a payment is applied has been fully paid up. If so, sets the invoice status to PAID.</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
</service>
<service name="quickSendPayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="quickSendPayment">
<description>Updates a Payment and then marks it as PMNT_SENT</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="createPaymentApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentApplication" auth="true">
<description>Create a payment application</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
<attribute name="invoiceItemSeqId" type="String" mode="IN" optional="true"/>
<attribute name="billingAccountId" type="String" mode="IN" optional="true"/>
<attribute name="overrideGlAccountId" type="String" mode="IN" optional="true"/>
<attribute name="taxAuthGeoId" type="String" mode="IN" optional="true"/>
<attribute name="amountApplied" type="BigDecimal" mode="IN" optional="false"/>
<attribute name="paymentApplicationId" type="String" mode="OUT" optional="false"/>
</service>
<service name="updatePaymentApplication" default-entity-name="PaymentApplication" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="updatePaymentApplication">
<description>
Apply a payment to a Invoice or other payment or Billing account or Taxauthority,
create/update paymentApplication records.
</description>
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="invoiceProcessing" type="String" mode="IN" optional="true"/>
<override name="paymentId" optional="false"/>
</service>
<service name="updatePaymentApplicationDef" default-entity-name="PaymentApplication" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="updatePaymentApplicationDef">
<description>
Apply a payment to a Invoice or other payment or Billing account or Taxauthority,
If no ammountApplied is supplied the system will calculate and use the maximum possible value.
</description>
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="invoiceProcessing" type="String" mode="IN" optional="true"/>
<override name="paymentId" optional="false"/>
</service>
<service name="removePaymentApplication" default-entity-name="PaymentApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="removePaymentApplication">
<description>Delete a paymentApplication record.</description>
<permission-service service-name="acctgInvoicePermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="OUT" include="nonpk" optional="true"/>
</service>
<service name="createPaymentAndApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentAndApplication" auth="true">
<description>Create a payment and a payment application for the full amount</description>
<auto-attributes entity-name="Payment" include="nonpk" mode="IN" optional="true"/>
<auto-attributes entity-name="Payment" include="pk" mode="INOUT" optional="true"/>
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
<attribute name="invoiceItemSeqId" type="String" mode="IN" optional="true"/>
<attribute name="billingAccountId" type="String" mode="IN" optional="true"/>
<attribute name="overrideGlAccountId" type="String" mode="IN" optional="true"/>
<attribute name="taxAuthGeoId" type="String" mode="IN" optional="true"/>
<attribute name="paymentApplicationId" type="String" mode="OUT" optional="false"/>
<override name="paymentTypeId" optional="false"/>
<override name="partyIdFrom" optional="false"/>
<override name="partyIdTo" optional="false"/>
<override name="statusId" optional="false"/>
<override name="amount" optional="false"/>
</service>
<service name="getInvoicePaymentInfoList" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="getInvoicePaymentInfoList" auth="true">
<description>Create a list with information on payment due dates and amounts for the invoice; one of invoiceId or invoice must be provided.</description>
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
<attribute name="invoice" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="invoicePaymentInfoList" type="List" mode="OUT" optional="false"/>
</service>
<service name="getInvoicePaymentInfoListByDueDateOffset" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="getInvoicePaymentInfoListByDueDateOffset" auth="true">
<description>Create a list with information on payment due dates and amounts.</description>
<attribute name="invoiceTypeId" type="String" mode="IN" optional="false"/>
<attribute name="daysOffset" type="Long" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="partyIdFrom" type="String" mode="IN" optional="true"/>
<attribute name="invoicePaymentInfoList" type="List" mode="OUT" optional="true"/>
</service>
</services>