ilscipio/scipio-erp

View on GitHub
applications/product/servicedef/services_shipment_usps.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8" ?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
    <description>Common Application Components Shipment Services</description>
    <vendor>OFBiz</vendor>
    <version>1.0</version>

    <!-- USPS Webtools API Services -->
    <service name="uspsRateInquire" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsRateInquire" auth="false">
        <implements service="calcShipmentEstimateInterface"/>
    </service>
    <service name="uspsInternationalRateInquire" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsInternationalRateInquire" auth="false">
        <implements service="calcShipmentEstimateInterface"/>
    </service>

    <service name="uspsTrackConfirm" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsTrackConfirm">
        <attribute name="trackingId" type="String" mode="IN" optional="false"/>
        <attribute name="shipmentGatewayConfigId" type="String" mode="IN" optional="false"/>
        <attribute name="configProps" type="String" mode="IN" optional="false"/>
        <attribute name="trackingSummary" type="String" mode="OUT" optional="false"/>
        <attribute name="trackingDetailList" type="List" mode="OUT" optional="true"/>
    </service>
    <service name="uspsAddressValidation" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsAddressValidation">
        <attribute name="firmName" type="String" mode="INOUT" optional="true"/>
        <attribute name="address1" type="String" mode="INOUT" optional="false"/>
        <attribute name="address2" type="String" mode="INOUT" optional="true"/>
        <attribute name="city" type="String" mode="INOUT" optional="true"/>
        <attribute name="state" type="String" mode="INOUT" optional="true"/>
        <attribute name="zip5" type="String" mode="INOUT" optional="true"/>
        <attribute name="zip4" type="String" mode="INOUT" optional="true"/>
        <attribute name="shipmentGatewayConfigId" type="String" mode="IN" optional="false"/>
        <attribute name="configProps" type="String" mode="IN" optional="false"/>
        <attribute name="returnText" type="String" mode="OUT" optional="true"/>
    </service>
    <service name="uspsCityStateLookup" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsCityStateLookup">
        <attribute name="zip5" type="String" mode="IN" optional="false"/>
        <attribute name="shipmentGatewayConfigId" type="String" mode="IN" optional="false"/>
        <attribute name="configProps" type="String" mode="IN" optional="false"/>
        <attribute name="city" type="String" mode="OUT" optional="false"/>
        <attribute name="state" type="String" mode="OUT" optional="false"/>
    </service>
    <service name="uspsPriorityMailStandard" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsPriorityMailStandard">
        <attribute name="originZip" type="String" mode="IN" optional="false"/>
        <attribute name="destinationZip" type="String" mode="IN" optional="false"/>
        <attribute name="shipmentGatewayConfigId" type="String" mode="IN" optional="false"/>
        <attribute name="configProps" type="String" mode="IN" optional="false"/>
        <attribute name="days" type="String" mode="OUT" optional="false"/>
    </service>
    <service name="uspsPackageServicesStandard" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsPackageServicesStandard">
        <attribute name="originZip" type="String" mode="IN" optional="false"/>
        <attribute name="destinationZip" type="String" mode="IN" optional="false"/>
        <attribute name="shipmentGatewayConfigId" type="String" mode="IN" optional="false"/>
        <attribute name="configProps" type="String" mode="IN" optional="false"/>
        <attribute name="days" type="String" mode="OUT" optional="false"/>
    </service>
    <service name="uspsDomesticRate" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsDomesticRate">
        <attribute name="service" type="String" mode="IN" optional="false"/>
        <attribute name="originZip" type="String" mode="IN" optional="false"/>
        <attribute name="destinationZip" type="String" mode="IN" optional="false"/>
        <attribute name="pounds" type="String" mode="IN" optional="false"/>
        <attribute name="ounces" type="String" mode="IN" optional="false"/>
        <attribute name="container" type="String" mode="IN" optional="true"/>
        <attribute name="size" type="String" mode="IN" optional="true"/>
        <attribute name="machinable" type="String" mode="IN" optional="true"/>
        <attribute name="shipmentGatewayConfigId" type="String" mode="IN" optional="false"/>
        <attribute name="configProps" type="String" mode="IN" optional="false"/>
        <attribute name="zone" type="String" mode="OUT" optional="false"/>
        <attribute name="postage" type="String" mode="OUT" optional="false"/>
        <attribute name="restrictionCodes" type="String" mode="OUT" optional="true"/>
        <attribute name="restrictionDesc" type="String" mode="OUT" optional="true"/>
    </service>
    <service name="uspsUpdateShipmentRateInfo" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsUpdateShipmentRateInfo">
        <auto-attributes entity-name="ShipmentRouteSegment" include="pk" mode="IN" optional="false"/>
    </service>
    <service name="uspsDeliveryConfirmation" engine="java"
            location="org.ofbiz.shipment.thirdparty.usps.UspsServices" invoke="uspsDeliveryConfirmation">
        <auto-attributes entity-name="ShipmentRouteSegment" include="pk" mode="IN" optional="false"/>
    </service>
</services>