mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] delivery_ups_hibou: to 15.0 + transit times and per-package insurance/sig.req.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
'name': 'Hibou UPS Shipping',
|
||||
'version': '14.0.1.1.0',
|
||||
'version': '15.0.1.0.0',
|
||||
'category': 'Stock',
|
||||
'author': "Hibou Corp.",
|
||||
'license': 'OPL-1',
|
||||
@@ -10,6 +10,7 @@
|
||||
'delivery_hibou',
|
||||
],
|
||||
'data': [
|
||||
'views/stock_views.xml',
|
||||
],
|
||||
'demo': [
|
||||
],
|
||||
|
||||
59
delivery_ups_hibou/api/Error1.1.xsd
Normal file
59
delivery_ups_hibou/api/Error1.1.xsd
Normal file
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="201707">
|
||||
<xsd:element name="Errors">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ErrorDetail" type="error:ErrorDetailType" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:complexType name="ErrorDetailType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Severity" type="xsd:string"/>
|
||||
<xsd:element name="PrimaryErrorCode" type="error:CodeType"/>
|
||||
<xsd:element name="MinimumRetrySeconds" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Location" type="error:LocationType" minOccurs="0"/>
|
||||
<xsd:element name="SubErrorCode" type="error:CodeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="AdditionalInformation" type="error:AdditionalInfoType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="ElementLevelInformation" type="error:ElementLevelInformationType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ElementLevelInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Level" type="xsd:string"/>
|
||||
<xsd:element name="ElementIdentifier" type="error:ElementIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ElementIdentifierType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Value" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CodeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
<xsd:element name="Digest" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AdditionalInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="xsd:string"/>
|
||||
<xsd:element name="Value" type="error:AdditionalCodeDescType" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AdditionalCodeDescType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LocationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LocationElementName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="XPathOfElement" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="OriginalValue" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
318
delivery_ups_hibou/api/IFWS.xsd
Normal file
318
delivery_ups_hibou/api/IFWS.xsd
Normal file
@@ -0,0 +1,318 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ups="http://www.ups.com/XMLSchema" xmlns:IF="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0" elementFormDefault="qualified" version="201801">
|
||||
<xsd:complexType name="InternationalFormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FormType" type="xsd:string" maxOccurs="6"/>
|
||||
<xsd:element name="UserCreatedForm" type="IF:UserCreatedFormType" minOccurs="0"/>
|
||||
<xsd:element name="CN22Form" type="IF:CN22FormType" minOccurs="0"/>
|
||||
<xsd:element name="UPSPremiumCareForm" type="IF:UPSPremiumCareFormType" minOccurs="0"/>
|
||||
<xsd:element name="AdditionalDocumentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FormGroupIdName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SEDFilingOption" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EEIFilingOption" type="IF:EEIFilingOptionType" minOccurs="0"/>
|
||||
<xsd:element name="Contacts" type="IF:ContactType" minOccurs="0"/>
|
||||
<xsd:element name="Product" type="IF:ProductType" maxOccurs="50"/>
|
||||
<xsd:element name="InvoiceNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="InvoiceDate" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PurchaseOrderNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TermsOfShipment" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReasonForExport" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Comments" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DeclarationStatement" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Discount" type="IF:IFChargesType" minOccurs="0"/>
|
||||
<xsd:element name="FreightCharges" type="IF:IFChargesType" minOccurs="0"/>
|
||||
<xsd:element name="InsuranceCharges" type="IF:IFChargesType" minOccurs="0"/>
|
||||
<xsd:element name="OtherCharges" type="IF:OtherChargesType" minOccurs="0"/>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="BlanketPeriod" type="IF:BlanketPeriodType" minOccurs="0"/>
|
||||
<xsd:element name="ExportDate" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ExportingCarrier" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CarrierID" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="InBondCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EntryNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PointOfOrigin" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PointOfOriginType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ModeOfTransport" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PortOfExport" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PortOfUnloading" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LoadingPier" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PartiesToTransaction" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RoutedExportTransactionIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ContainerizedIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="License" type="IF:LicenseType" minOccurs="0"/>
|
||||
<xsd:element name="ECCNNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="OverridePaperlessIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipperMemo" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MultiCurrencyInvoiceLineTotal" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HazardousMaterialsIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UPSPremiumCareFormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ShipmentDate" type="xsd:string"/>
|
||||
<xsd:element name="PageSize" type="xsd:string"/>
|
||||
<xsd:element name="PrintType" type="xsd:string"/>
|
||||
<xsd:element name="NumOfCopies" type="xsd:string"/>
|
||||
<xsd:element name="LanguageForUPSPremiumCare" type="IF:LanguageForUPSPremiumCareType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LanguageForUPSPremiumCareType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Language" type="xsd:string" maxOccurs="2"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UserCreatedFormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="DocumentID" type="xsd:string" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CN22FormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LabelSize" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PrintsPerPage" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LabelPrintType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22Type" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22OtherDescription" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FoldHereText" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22Content" type="IF:CN22ContentType" minOccurs="0" maxOccurs="30"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CN22ContentType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CN22ContentQuantity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22ContentDescription" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22ContentWeight" type="IF:ProductWeightType" minOccurs="0"/>
|
||||
<xsd:element name="CN22ContentTotalValue" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22ContentCurrencyCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22ContentCountryOfOrigin" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22ContentTariffNumber" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ContactType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ForwardAgent" type="IF:ForwardAgentType" minOccurs="0"/>
|
||||
<xsd:element name="UltimateConsignee" type="IF:UltimateConsigneeType" minOccurs="0"/>
|
||||
<xsd:element name="IntermediateConsignee" type="IF:IntermediateConsigneeType" minOccurs="0"/>
|
||||
<xsd:element name="Producer" type="IF:ProducerType" minOccurs="0"/>
|
||||
<xsd:element name="SoldTo" type="IF:SoldToType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ForwardAgentType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CompanyName" type="xsd:string"/>
|
||||
<xsd:element name="TaxIdentificationNumber" type="xsd:string"/>
|
||||
<xsd:element name="Address" type="IF:AddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AddressLine" type="xsd:string" maxOccurs="3"/>
|
||||
<xsd:element name="City" type="xsd:string"/>
|
||||
<xsd:element name="StateProvinceCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Town" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UltimateConsigneeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CompanyName" type="xsd:string"/>
|
||||
<xsd:element name="Address" type="IF:AddressType"/>
|
||||
<xsd:element name="UltimateConsigneeType" type="IF:UltimateConsigneeTypeType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="IntermediateConsigneeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CompanyName" type="xsd:string"/>
|
||||
<xsd:element name="Address" type="IF:AddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ProducerType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Option" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CompanyName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TaxIdentificationNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="IF:AddressType" minOccurs="0"/>
|
||||
<xsd:element name="AttentionName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Phone" type="IF:PhoneType" minOccurs="0"/>
|
||||
<xsd:element name="EMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ProductType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Description" type="xsd:string" maxOccurs="3"/>
|
||||
<xsd:element name="Unit" type="IF:UnitType" minOccurs="0"/>
|
||||
<xsd:element name="CommodityCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PartNumber" type="xsd:string" minOccurs="0" ups:usage="notused"/>
|
||||
<xsd:element name="OriginCountryCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="JointProductionIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="NetCostCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="NetCostDateRange" type="IF:NetCostDateType" minOccurs="0"/>
|
||||
<xsd:element name="PreferenceCriteria" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ProducerInfo" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MarksAndNumbers" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="NumberOfPackagesPerCommodity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ProductWeight" type="IF:ProductWeightType" minOccurs="0"/>
|
||||
<xsd:element name="VehicleID" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ScheduleB" type="IF:ScheduleBType" minOccurs="0"/>
|
||||
<xsd:element name="ExportType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SEDTotalValue" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ExcludeFromForm" type="IF:ExcludeFromFormType" minOccurs="0"/>
|
||||
<xsd:element name="ProductCurrencyCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackingListInfo" type="IF:PackingListInfoType" minOccurs="0"/>
|
||||
<xsd:element name="EEIInformation" type="IF:EEIInformationType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ExcludeFromFormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FormType" type="xsd:string" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UnitType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Number" type="xsd:string"/>
|
||||
<xsd:element name="UnitOfMeasurement" type="IF:UnitOfMeasurementType"/>
|
||||
<xsd:element name="Value" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackingListInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PackageAssociated" type="IF:PackageAssociatedType" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageAssociatedType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PackageNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ProductAmount" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UnitOfMeasurementType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="NetCostDateType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BeginDate" type="xsd:string"/>
|
||||
<xsd:element name="EndDate" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ProductWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="IF:UnitOfMeasurementType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ScheduleBType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Number" type="xsd:string"/>
|
||||
<xsd:element name="Quantity" type="xsd:string" minOccurs="0" maxOccurs="2"/>
|
||||
<xsd:element name="UnitOfMeasurement" type="IF:UnitOfMeasurementType" maxOccurs="2"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="IFChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="OtherChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BlanketPeriodType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BeginDate" type="xsd:string"/>
|
||||
<xsd:element name="EndDate" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LicenseType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Number" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Date" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ExceptionCode" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="SoldToType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string"/>
|
||||
<xsd:element name="AttentionName" type="xsd:string"/>
|
||||
<xsd:element name="TaxIdentificationNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Phone" type="IF:PhoneType" minOccurs="0"/>
|
||||
<xsd:element name="Option" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="IF:AddressType"/>
|
||||
<xsd:element name="EMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="PhoneType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Number" type="xsd:string"/>
|
||||
<xsd:element name="Extension" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DDTCInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ITARExemptionNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="USMLCategoryCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EligiblePartyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RegistrationNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Quantity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UnitOfMeasurement" type="IF:UnitOfMeasurementType"/>
|
||||
<xsd:element name="SignificantMilitaryEquipmentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ACMNumber" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="EEILicenseType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Number" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LicenseLineValue" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ECCNNumber" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="EEIFilingOptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UPSFiled" type="IF:UPSFiledType" minOccurs="0"/>
|
||||
<xsd:element name="ShipperFiled" type="IF:ShipperFiledType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UPSFiledType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="POA" type="IF:POAType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipperFiledType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PreDepartureITNNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ExemptionLegend" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EEIShipmentReferenceNumber" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="EEIInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ExportInformation" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="License" type="IF:EEILicenseType" minOccurs="0"/>
|
||||
<xsd:element name="DDTCInformation" type="IF:DDTCInformationType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="POAType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UltimateConsigneeTypeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
166
delivery_ups_hibou/api/LBRecovery.xsd
Normal file
166
delivery_ups_hibou/api/LBRecovery.xsd
Normal file
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/LBRecovery/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:lbrec="http://www.ups.com/XMLSchema/XOLTWS/LBRecovery/v1.0" xmlns:ups="http://www.ups.com/XMLSchema" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" elementFormDefault="qualified" version="201707">
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" schemaLocation="common.xsd"/>
|
||||
<xsd:element name="LabelRecoveryRequest">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Request"/>
|
||||
<xsd:element name="LabelSpecification" type="lbrec:LabelSpecificationType" minOccurs="0"/>
|
||||
<xsd:element name="Translate" type="lbrec:TranslateType" minOccurs="0"/>
|
||||
<xsd:element name="LabelDelivery" type="lbrec:LabelDeliveryType" minOccurs="0"/>
|
||||
<xsd:element name="TrackingNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MailInnovationsTrackingNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReferenceValues" type="lbrec:ReferenceValuesType" minOccurs="0"/>
|
||||
<xsd:element name="UPSPremiumCareForm" type="lbrec:LRUPSPremiumCareFormType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:complexType name="ReferenceValuesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ReferenceNumber" type="lbrec:ReferenceNumberType"/>
|
||||
<xsd:element name="ShipperNumber" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReferenceNumberType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Value" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelSpecificationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="HTTPUserAgent" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LabelImageFormat" type="lbrec:LabelImageFormatType" minOccurs="0"/>
|
||||
<xsd:element name="LabelStockSize" type="lbrec:LabelStockSizeType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelStockSizeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Height" type="xsd:string"/>
|
||||
<xsd:element name="Width" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelImageFormatType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TranslateType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LanguageCode" type="xsd:string"/>
|
||||
<xsd:element name="DialectCode" type="xsd:string"/>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelDeliveryType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LabelLinkIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:element name="LabelRecoveryResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Response"/>
|
||||
<xsd:element name="ShipmentIdentificationNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CODTurnInPage" type="lbrec:ResponseImageType" minOccurs="0"/>
|
||||
<xsd:element name="Form" type="lbrec:FormType" minOccurs="0"/>
|
||||
<xsd:element name="HighValueReport" type="lbrec:HighValueReportType" minOccurs="0"/>
|
||||
<xsd:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:element name="LabelResults" type="lbrec:LabelResultsType"/>
|
||||
<xsd:element name="TrackingCandidate" type="lbrec:TrackingCandidateType"/>
|
||||
</xsd:choice>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:complexType name="LabelResultsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="TrackingNumber" type="xsd:string"/>
|
||||
<xsd:element name="LabelImage" type="lbrec:LabelImageType"/>
|
||||
<xsd:element name="Receipt" type="lbrec:ReceiptType" minOccurs="0"/>
|
||||
<xsd:element name="Form" type="lbrec:FormType" minOccurs="0"/>
|
||||
<xsd:element name="MailInnovationsTrackingNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MailInnovationsLabelImage" type="lbrec:LabelImageType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LabelImageFormat" type="lbrec:LabelImageFormatType"/>
|
||||
<xsd:element name="GraphicImage" type="xsd:string"/>
|
||||
<xsd:element name="HTMLImage" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PDF417" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="InternationalSignatureGraphicImage" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="URL" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReceiptType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="HTMLImage" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Image" type="lbrec:ImageType" minOccurs="0"/>
|
||||
<xsd:element name="URL" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ImageFormat" type="lbrec:LabelImageFormatType" minOccurs="0"/>
|
||||
<xsd:element name="GraphicImage" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TrackingCandidateType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="TrackingNumber" type="xsd:string"/>
|
||||
<xsd:element name="DestinationPostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DestinationCountryCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PickupDateRange" type="lbrec:PickupDateRangeType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PickupDateRangeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BeginDate" type="xsd:string"/>
|
||||
<xsd:element name="EndDate" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ResponseImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Image" type="lbrec:ResponseImageDetailType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ResponseImageDetailType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ImageFormat" type="lbrec:ImageFormatCodeType"/>
|
||||
<xsd:element name="GraphicImage" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ImageFormatCodeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Image" type="lbrec:FormImageType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FormImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ImageFormat" type="lbrec:ImageFormatCodeType"/>
|
||||
<xsd:element name="GraphicImage" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HighValueReportType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Image" type="lbrec:HVRImageType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HVRImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ImageFormat" type="lbrec:ImageFormatCodeType"/>
|
||||
<xsd:element name="GraphicImage" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LRUPSPremiumCareFormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PageSize" type="xsd:string"/>
|
||||
<xsd:element name="PrintType" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
54
delivery_ups_hibou/api/LabelRecoveryWS.wsdl
Normal file
54
delivery_ups_hibou/api/LabelRecoveryWS.wsdl
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<wsdl:definitions name="LabelRecovery" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:lbrec="http://www.ups.com/XMLSchema/XOLTWS/LBRecovery/v1.0" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/LBRecovery/v1.0" targetNamespace="http://www.ups.com/WSDL/XOLTWS/LBRecovery/v1.0">
|
||||
<wsdl:types>
|
||||
<xsd:schema>
|
||||
<!-- This schema defines the UPS Security header used for authorization purposes -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" schemaLocation="UPSSecurity.xsd"/>
|
||||
<!-- This schema defines the error detail data types returned within SOAPFaults to provide more specific information pertaining to the problem. -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" schemaLocation="Error1.1.xsd"/>
|
||||
<!-- ################## Start MCEnrollment Specific schema ################### -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/LBRecovery/v1.0" schemaLocation="LBRecovery.xsd"/>
|
||||
<!-- ################## End MCEnrollment specific schema ##################### -->
|
||||
</xsd:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="LabelRecoveryRequestMessage">
|
||||
<wsdl:part name="Body" element="lbrec:LabelRecoveryRequest"/>
|
||||
<wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="LabelRecoveryResponseMessage">
|
||||
<wsdl:part name="Body" element="lbrec:LabelRecoveryResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="LabelRecoveryErrorMessage">
|
||||
<wsdl:part name="LabelRecoveryError" element="error:Errors"/>
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="PortType">
|
||||
<wsdl:operation name="ProcessLabelRecovery">
|
||||
<wsdl:input name="LabelRecoveryRequest" message="tns:LabelRecoveryRequestMessage"/>
|
||||
<wsdl:output name="LabelRecoveryResponse" message="tns:LabelRecoveryResponseMessage"/>
|
||||
<wsdl:fault name="LabelRecoveryError" message="tns:LabelRecoveryErrorMessage"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="LabelRecoveryBinding" type="tns:PortType">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="ProcessLabelRecovery">
|
||||
<soap:operation soapAction="http://onlinetools.ups.com/webservices/ShipBinding/v1.1" style="document"/>
|
||||
<wsdl:input name="LabelRecoveryRequest">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
<soap:header message="tns:LabelRecoveryRequestMessage" part="UPSSecurity" use="literal">
|
||||
<soap:headerfault message="tns:LabelRecoveryErrorMessage" part="LabelRecoveryError" use="literal"/>
|
||||
</soap:header>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="LabelRecoveryResponse">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="LabelRecoveryError">
|
||||
<soap:fault name="LabelRecoveryError" use="literal"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="LBRecovery">
|
||||
<wsdl:port name="Port" binding="tns:LabelRecoveryBinding">
|
||||
<soap:address location="https://wwwcie.ups.com/webservices/LBRecovery"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
58
delivery_ups_hibou/api/RateWS.wsdl
Normal file
58
delivery_ups_hibou/api/RateWS.wsdl
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- UPS Rate Service WSDL Release Date Dec 29, 2007 -->
|
||||
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. -->
|
||||
<wsdl:definitions name="RateWS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/Rate/v1.1" targetNamespace="http://www.ups.com/WSDL/XOLTWS/Rate/v1.1">
|
||||
<wsdl:types>
|
||||
<xsd:schema>
|
||||
<!-- This schema defines the UPS Security header used for authorization purposes -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" schemaLocation="UPSSecurity.xsd"/>
|
||||
<!-- This schema defines the error detail data types returned within SOAPFaults to provide more specific information pertaining to the problem. -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" schemaLocation="Error1.1.xsd"/>
|
||||
<!-- This schema defines the Rate service data types -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1" schemaLocation="RateWebServiceSchema.xsd"/>
|
||||
</xsd:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="RateRequestMessage">
|
||||
<wsdl:part name="Body" element="rate:RateRequest"/>
|
||||
<wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RateResponseMessage">
|
||||
<wsdl:part name="Body" element="rate:RateResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="RateErrorMessage">
|
||||
<wsdl:part name="RateError" element="error:Errors"/>
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="RatePortType">
|
||||
<wsdl:operation name="ProcessRate">
|
||||
<wsdl:input name="RateRequest" message="tns:RateRequestMessage"/>
|
||||
<wsdl:output name="RateResponse" message="tns:RateResponseMessage"/>
|
||||
<wsdl:fault name="RateError" message="tns:RateErrorMessage"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="RateBinding" type="tns:RatePortType">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="ProcessRate">
|
||||
<soap:operation soapAction="http://onlinetools.ups.com/webservices/RateBinding/v1.1" style="document"/>
|
||||
<wsdl:input name="RateRequest">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
<soap:header message="tns:RateRequestMessage" part="UPSSecurity" use="literal">
|
||||
<soap:headerfault message="tns:RateErrorMessage" part="RateError" use="literal"/>
|
||||
</soap:header>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="RateResponse">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="RateError">
|
||||
<soap:fault name="RateError" use="literal"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="RateService">
|
||||
<wsdl:port name="RatePort" binding="tns:RateBinding">
|
||||
<!-- Production URL -->
|
||||
<!-- <soap:address location="https://onlinetools.ups.com/webservices/Rate"/> -->
|
||||
<!-- CIE (Customer Integration Environment) URL -->
|
||||
<soap:address location="https://wwwcie.ups.com/webservices/Rate"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
644
delivery_ups_hibou/api/RateWebServiceSchema.xsd
Normal file
644
delivery_ups_hibou/api/RateWebServiceSchema.xsd
Normal file
@@ -0,0 +1,644 @@
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1" xmlns:ups="http://www.ups.com/XMLSchema" xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="201801">
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" schemaLocation="common.xsd"/>
|
||||
<xsd:element name="RateRequest">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Request"/>
|
||||
<xsd:element name="PickupType" type="rate:CodeDescriptionType" minOccurs="0"/>
|
||||
<xsd:element name="CustomerClassification" type="rate:CodeDescriptionType" minOccurs="0"/>
|
||||
<xsd:element name="Shipment" type="rate:ShipmentType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="RateResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Response"/>
|
||||
<xsd:element name="RatedShipment" type="rate:RatedShipmentType" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:complexType name="BillingWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="RatedPackageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="TransportationCharges" type="rate:ChargesType" minOccurs="0"/>
|
||||
<xsd:element name="BaseServiceCharge" type="rate:ChargesType" minOccurs="0"/>
|
||||
<xsd:element name="ServiceOptionsCharges" type="rate:ChargesType" minOccurs="0"/>
|
||||
<xsd:element name="TotalCharges" type="rate:ChargesType" minOccurs="0"/>
|
||||
<xsd:element name="Weight" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="BillingWeight" type="rate:BillingWeightType" minOccurs="0"/>
|
||||
<xsd:element name="Accessorial" type="rate:AccessorialType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="ItemizedCharges" type="rate:ChargesType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="NegotiatedCharges" type="rate:NegotiatedChargesType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AccessorialType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="NegotiatedChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ItemizedCharges" type="rate:ChargesType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="RatedShipmentType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Disclaimer" type="rate:DisclaimerType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="Service" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="RateChart" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RatedShipmentAlert" type="rate:RatedShipmentInfoType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="BillableWeightCalculationMethod" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RatingMethod" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="BillingWeight" type="rate:BillingWeightType"/>
|
||||
<xsd:element name="TransportationCharges" type="rate:ChargesType"/>
|
||||
<xsd:element name="BaseServiceCharge" type="rate:ChargesType" minOccurs="0"/>
|
||||
<xsd:element name="ItemizedCharges" type="rate:ChargesType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="FRSShipmentData" type="rate:FRSShipmentType" minOccurs="0"/>
|
||||
<xsd:element name="ServiceOptionsCharges" type="rate:ChargesType"/>
|
||||
<xsd:element name="TaxCharges" type="rate:TaxChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TotalCharges" type="rate:ChargesType"/>
|
||||
<xsd:element name="TotalChargesWithTaxes" type="rate:ChargesType" minOccurs="0"/>
|
||||
<xsd:element name="NegotiatedRateCharges" type="rate:TotalChargeType" minOccurs="0"/>
|
||||
<xsd:element name="GuaranteedDelivery" type="rate:GuaranteedDeliveryType" minOccurs="0"/>
|
||||
<xsd:element name="RatedPackage" type="rate:RatedPackageType" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TimeInTransit" type="rate:TimeInTransitResponseType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReturnContractServicesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TimeInTransitResponseType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PickupDate" type="xsd:string"/>
|
||||
<xsd:element name="DocumentsOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackageBillType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AutoDutyCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Disclaimer" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ServiceSummary" type="rate:ServiceSummaryType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ServiceSummaryType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Service" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="EstimatedArrival" type="rate:EstimatedArrivalType"/>
|
||||
<xsd:element name="GuaranteedIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Disclaimer" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SaturdayDelivery" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SaturdayDeliveryDisclaimer" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="EstimatedArrivalType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Arrival" type="rate:PickupType"/>
|
||||
<xsd:element name="BusinessDaysInTransit" type="xsd:string"/>
|
||||
<xsd:element name="Pickup" type="rate:PickupType"/>
|
||||
<xsd:element name="DayOfWeek" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CustomerCenterCutoff" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DelayCount" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HolidayCount" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RestDays" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TotalTransitDays" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DisclaimerType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TaxChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TotalChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ItemizedCharges" type="rate:ChargesType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TaxCharges" type="rate:TaxChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TotalCharge" type="rate:ChargesType"/>
|
||||
<xsd:element name="TotalChargesWithTaxes" type="rate:ChargesType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="RatedShipmentInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
<xsd:element name="SubType" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TransportationChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="GrossCharge" type="rate:ChargesType"/>
|
||||
<xsd:element name="DiscountAmount" type="rate:ChargesType"/>
|
||||
<xsd:element name="DiscountPercentage" type="xsd:string"/>
|
||||
<xsd:element name="NetCharge" type="rate:ChargesType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FRSShipmentType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="TransportationCharges" type="rate:TransportationChargesType"/>
|
||||
<xsd:element name="FreightDensityRate" type="rate:FreightDensityRateType" minOccurs="0"/>
|
||||
<xsd:element name="HandlingUnits" type="rate:HandlingUnitsResponseType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FreightDensityRateType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Density" type="xsd:string"/>
|
||||
<xsd:element name="TotalCubicFeet" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HandlingUnitsResponseType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Quantity" type="xsd:string"/>
|
||||
<xsd:element name="Type" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Dimensions" type="rate:HandlingUnitsDimensionsType"/>
|
||||
<xsd:element name="AdjustedHeight" type="rate:AdjustedHeightType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AddressLine" type="xsd:string" minOccurs="0" maxOccurs="3"/>
|
||||
<xsd:element name="City" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="StateProvinceCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipToAddressType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="rate:AddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ResidentialAddressIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipAddressType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="rate:AddressType">
|
||||
<xsd:sequence/>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CODType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CODFundsCode" type="xsd:string"/>
|
||||
<xsd:element name="CODAmount" type="rate:CODAmountType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CODAmountType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DeliveryConfirmationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="DCISType" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DimensionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Length" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Width" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Height" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="InsuredValueType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PackagingType" type="rate:CodeDescriptionType" minOccurs="0"/>
|
||||
<xsd:element name="Dimensions" type="rate:DimensionsType" minOccurs="0"/>
|
||||
<xsd:element name="DimWeight" type="rate:PackageWeightType" minOccurs="0"/>
|
||||
<xsd:element name="PackageWeight" type="rate:PackageWeightType" minOccurs="0"/>
|
||||
<xsd:element name="Commodity" type="rate:CommodityType" minOccurs="0"/>
|
||||
<xsd:element name="LargePackageIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackageServiceOptions" type="rate:PackageServiceOptionsType" minOccurs="0"/>
|
||||
<xsd:element name="AdditionalHandlingIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UPSPremier" type="rate:UPSPremierType" minOccurs="0"/>
|
||||
<xsd:element name="OversizeIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MinimumBillableWeightIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CommodityType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FreightClass" type="xsd:string"/>
|
||||
<xsd:element name="NMFC" type="rate:NMFCCommodityType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="NMFCCommodityType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PrimeCode" type="xsd:string"/>
|
||||
<xsd:element name="SubCode" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageServiceOptionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="DeliveryConfirmation" type="rate:DeliveryConfirmationType" minOccurs="0"/>
|
||||
<xsd:element name="AccessPointCOD" type="rate:PackageServiceOptionsAccessPointCODType" minOccurs="0"/>
|
||||
<xsd:element name="COD" type="rate:CODType" minOccurs="0"/>
|
||||
<xsd:element name="DeclaredValue" type="rate:InsuredValueType" minOccurs="0"/>
|
||||
<xsd:element name="ShipperDeclaredValue" type="rate:ShipperDeclaredValueType" minOccurs="0"/>
|
||||
<xsd:element name="ShipperReleaseIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ProactiveIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RefrigerationIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Insurance" type="rate:InsuranceType" minOccurs="0"/>
|
||||
<xsd:element name="UPSPremiumCareIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HazMat" type="rate:HazMatType" minOccurs="0"/>
|
||||
<xsd:element name="DryIce" type="rate:DryIceType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UPSPremierType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Category" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HazMatType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PackageIdentifier" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="QValue" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="OverPackedIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AllPackedInOneIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HazMatChemicalRecord" type="rate:HazMatChemicalRecordType" maxOccurs="3"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HazMatChemicalRecordType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ChemicalRecordIdentifier" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ClassDivisionNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="IDNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TransportationMode" type="xsd:string"/>
|
||||
<xsd:element name="RegulationSet" type="xsd:string"/>
|
||||
<xsd:element name="EmergencyPhone" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EmergencyContact" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReportableQuantity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SubRiskClass" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackagingGroupType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Quantity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UOM" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackagingInstructionCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ProperShippingName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TechnicalName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AdditionalDescription" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackagingType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HazardLabelRequired" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackagingTypeQuantity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CommodityRegulatedLevelCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TransportCategory" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TunnelRestrictionCode" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageServiceOptionsAccessPointCODType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DryIceType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="RegulationSet" type="xsd:string"/>
|
||||
<xsd:element name="DryIceWeight" type="rate:DryIceWeightType"/>
|
||||
<xsd:element name="MedicalUseIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AuditRequired" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DryIceWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipperDeclaredValueType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="InsuranceType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BasicFlexibleParcelIndicator" type="rate:InsuranceValueType" minOccurs="0"/>
|
||||
<xsd:element name="ExtendedFlexibleParcelIndicator" type="rate:InsuranceValueType" minOccurs="0"/>
|
||||
<xsd:element name="TimeInTransitFlexibleParcelIndicator" type="rate:InsuranceValueType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="InsuranceValueType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UOMCodeDescriptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CodeDescriptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentRatingOptionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="NegotiatedRatesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FRSShipmentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RateChartIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UserLevelDiscountIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TPFCNegotiatedRatesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipFromType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AttentionName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="rate:ShipAddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipToType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AttentionName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="rate:ShipToAddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="OriginRecordTransactionTimestamp" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Shipper" type="rate:ShipperType"/>
|
||||
<xsd:element name="ShipTo" type="rate:ShipToType"/>
|
||||
<xsd:element name="ShipFrom" type="rate:ShipFromType" minOccurs="0"/>
|
||||
<xsd:element name="AlternateDeliveryAddress" type="rate:AlternateDeliveryAddressType" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentIndicationType" type="rate:IndicationType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="PaymentDetails" type="rate:PaymentDetailsType" minOccurs="0"/>
|
||||
<xsd:element name="FRSPaymentInformation" type="rate:FRSPaymentInfoType" minOccurs="0"/>
|
||||
<xsd:element name="FreightShipmentInformation" type="rate:FreightShipmentInformationType" minOccurs="0"/>
|
||||
<xsd:element name="GoodsNotInFreeCirculationIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Service" type="rate:CodeDescriptionType" minOccurs="0"/>
|
||||
<xsd:element name="NumOfPieces" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentTotalWeight" type="rate:ShipmentWeightType" minOccurs="0"/>
|
||||
<xsd:element name="DocumentsOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Package" type="rate:PackageType" maxOccurs="unbounded"/>
|
||||
<xsd:element name="ShipmentServiceOptions" type="rate:ShipmentServiceOptionsType" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentRatingOptions" type="rate:ShipmentRatingOptionsType" minOccurs="0"/>
|
||||
<xsd:element name="InvoiceLineTotal" type="rate:InvoiceLineTotalType" minOccurs="0"/>
|
||||
<xsd:element name="RatingMethodRequestedIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TaxInformationIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PromotionalDiscountInformation" type="rate:PromotionalDiscountInformationType" minOccurs="0"/>
|
||||
<xsd:element name="DeliveryTimeInformation" type="rate:TimeInTransitRequestType" minOccurs="0"/>
|
||||
<xsd:element name="MasterCartonIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="WWEShipmentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TimeInTransitRequestType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PackageBillType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Pickup" type="rate:PickupType" minOccurs="0"/>
|
||||
<xsd:element name="ReturnContractServices" type="rate:ReturnContractServicesType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PickupType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Date" type="xsd:string"/>
|
||||
<xsd:element name="Time" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PromotionalDiscountInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PromoCode" type="xsd:string"/>
|
||||
<xsd:element name="PromoAliasCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PaymentDetailsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ShipmentCharge" type="rate:ShipmentChargeType" minOccurs="0" maxOccurs="2"/>
|
||||
<xsd:element name="SplitDutyVATIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="xsd:string"/>
|
||||
<xsd:element name="BillShipper" type="rate:BillShipperChargeType" minOccurs="0"/>
|
||||
<xsd:element name="BillReceiver" type="rate:BillReceiverChargeType" minOccurs="0"/>
|
||||
<xsd:element name="BillThirdParty" type="rate:BillThirdPartyChargeType" minOccurs="0"/>
|
||||
<xsd:element name="ConsigneeBilledIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillShipperChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AccountNumber" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillReceiverChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AccountNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="rate:BillReceiverAddressType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillThirdPartyChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AccountNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="rate:AddressType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillReceiverAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AlternateDeliveryAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="rate:ADRType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ADRType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AddressLine" type="xsd:string" minOccurs="0" maxOccurs="3"/>
|
||||
<xsd:element name="City" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="StateProvinceCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
<xsd:element name="ResidentialAddressIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="POBoxIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="IndicationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentServiceOptionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="SaturdayPickupIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SaturdayDeliveryIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AccessPointCOD" type="rate:ShipmentServiceOptionsAccessPointCODType" minOccurs="0"/>
|
||||
<xsd:element name="DeliverToAddresseeOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DirectDeliveryOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="COD" type="rate:CODType" minOccurs="0"/>
|
||||
<xsd:element name="DeliveryConfirmation" type="rate:DeliveryConfirmationType" minOccurs="0"/>
|
||||
<xsd:element name="ReturnOfDocumentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UPScarbonneutralIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CertificateOfOriginIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PickupOptions" type="rate:PickupOptionsType" minOccurs="0"/>
|
||||
<xsd:element name="DeliveryOptions" type="rate:DeliveryOptionsType" minOccurs="0"/>
|
||||
<xsd:element name="RestrictedArticles" type="rate:RestrictedArticlesType" minOccurs="0"/>
|
||||
<xsd:element name="ShipperExportDeclarationIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CommercialInvoiceRemovalIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ImportControl" type="rate:ImportControlType" minOccurs="0"/>
|
||||
<xsd:element name="ReturnService" type="rate:ReturnServiceType" minOccurs="0"/>
|
||||
<xsd:element name="SDLShipmentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EPRAIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="InsideDelivery" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ItemDisposalIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentServiceOptionsAccessPointCODType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReturnServiceType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ImportControlType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="RestrictedArticlesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AlcoholicBeveragesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DiagnosticSpecimensIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PerishablesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PlantsIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SeedsIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SpecialExceptionsIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TobaccoIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ECigarettesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HempCBDIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PickupOptionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LiftGateAtPickupIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HoldForPickupIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DeliveryOptionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LiftGateAtDeliveryIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DropOffAtUPSFacilityIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipperType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AttentionName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipperNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="rate:AddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="GuaranteedDeliveryType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BusinessDaysInTransit" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DeliveryByTime" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FRSPaymentInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="AccountNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="rate:PayerAddressType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FreightShipmentInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FreightDensityInfo" type="rate:FreightDensityInfoType" minOccurs="0"/>
|
||||
<xsd:element name="DensityEligibleIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PayerAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FreightDensityInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AdjustedHeightIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AdjustedHeight" type="rate:AdjustedHeightType" minOccurs="0"/>
|
||||
<xsd:element name="HandlingUnits" type="rate:HandlingUnitsType" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AdjustedHeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Value" type="xsd:string"/>
|
||||
<xsd:element name="UnitOfMeasurement" type="rate:CodeDescriptionType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HandlingUnitsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Quantity" type="xsd:string"/>
|
||||
<xsd:element name="Type" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Dimensions" type="rate:HandlingUnitsDimensionsType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HandlingUnitsDimensionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="rate:CodeDescriptionType"/>
|
||||
<xsd:element name="Length" type="xsd:string"/>
|
||||
<xsd:element name="Width" type="xsd:string"/>
|
||||
<xsd:element name="Height" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="InvoiceLineTotalType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
123
delivery_ups_hibou/api/Ship.wsdl
Normal file
123
delivery_ups_hibou/api/Ship.wsdl
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- UPS Ship Service WSDL Release Date Dec 29, 2007 -->
|
||||
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. -->
|
||||
<wsdl:definitions name="Ship" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:ship="http://www.ups.com/XMLSchema/XOLTWS/Ship/v1.0" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/Ship/v1.0" targetNamespace="http://www.ups.com/WSDL/XOLTWS/Ship/v1.0">
|
||||
<wsdl:types>
|
||||
<xsd:schema>
|
||||
<!-- This schema defines the UPS Security header used for authorization purposes -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" schemaLocation="UPSSecurity.xsd"/>
|
||||
<!-- This schema defines the error detail data types returned within SOAPFaults to provide more specific information pertaining to the problem. -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" schemaLocation="Error1.1.xsd"/>
|
||||
<!-- This schema defines the Ship service data types -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Ship/v1.0" schemaLocation="ShipWebServiceSchema.xsd"/>
|
||||
</xsd:schema>
|
||||
</wsdl:types>
|
||||
<!-- Ship request/response Message Calls -->
|
||||
<wsdl:message name="ShipmentRequestMessage">
|
||||
<wsdl:part name="Body" element="ship:ShipmentRequest"/>
|
||||
<wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipmentResponseMessage">
|
||||
<wsdl:part name="Body" element="ship:ShipmentResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipmentErrorMessage">
|
||||
<wsdl:part name="ShipmentError" element="error:Errors"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipConfirmRequestMessage">
|
||||
<wsdl:part name="Body" element="ship:ShipConfirmRequest"/>
|
||||
<wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipConfirmResponseMessage">
|
||||
<wsdl:part name="Body" element="ship:ShipConfirmResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipConfirmErrorMessage">
|
||||
<wsdl:part name="ShipConfirmError" element="error:Errors"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipAcceptRequestMessage">
|
||||
<wsdl:part name="Body" element="ship:ShipAcceptRequest"/>
|
||||
<wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipAcceptResponseMessage">
|
||||
<wsdl:part name="Body" element="ship:ShipAcceptResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="ShipAcceptErrorMessage">
|
||||
<wsdl:part name="ShipAcceptError" element="error:Errors"/>
|
||||
</wsdl:message>
|
||||
<!-- -->
|
||||
<!-- Ship Web Service port declaration -->
|
||||
<wsdl:portType name="ShipPortType">
|
||||
<wsdl:operation name="ProcessShipment">
|
||||
<wsdl:input name="ShipmentRequest" message="tns:ShipmentRequestMessage"/>
|
||||
<wsdl:output name="ShipmentResponse" message="tns:ShipmentResponseMessage"/>
|
||||
<wsdl:fault name="ShipmentError" message="tns:ShipmentErrorMessage"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ProcessShipConfirm">
|
||||
<wsdl:input name="ShipConfirmRequest" message="tns:ShipConfirmRequestMessage"/>
|
||||
<wsdl:output name="ShipConfirmResponse" message="tns:ShipConfirmResponseMessage"/>
|
||||
<wsdl:fault name="ShipConfirmError" message="tns:ShipConfirmErrorMessage"/>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ProcessShipAccept">
|
||||
<wsdl:input name="ShipAcceptRequest" message="tns:ShipAcceptRequestMessage"/>
|
||||
<wsdl:output name="ShipAcceptResponse" message="tns:ShipAcceptResponseMessage"/>
|
||||
<wsdl:fault name="ShipAcceptError" message="tns:ShipAcceptErrorMessage"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<!-- Ship Web Service binding -->
|
||||
<wsdl:binding name="ShipBinding" type="tns:ShipPortType">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="ProcessShipment">
|
||||
<soap:operation soapAction="http://onlinetools.ups.com/webservices/ShipBinding/v1.0" style="document"/>
|
||||
<wsdl:input name="ShipmentRequest">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
<soap:header message="tns:ShipmentRequestMessage" part="UPSSecurity" use="literal">
|
||||
<soap:headerfault message="tns:ShipmentErrorMessage" part="ShipmentError" use="literal"/>
|
||||
</soap:header>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="ShipmentResponse">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ShipmentError">
|
||||
<soap:fault name="ShipmentError" use="literal"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ProcessShipConfirm">
|
||||
<soap:operation soapAction="http://onlinetools.ups.com/webservices/ShipBinding/v1.0" style="document"/>
|
||||
<wsdl:input name="ShipConfirmRequest">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
<soap:header message="tns:ShipConfirmRequestMessage" part="UPSSecurity" use="literal">
|
||||
<soap:headerfault message="tns:ShipConfirmErrorMessage" part="ShipConfirmError" use="literal"/>
|
||||
</soap:header>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="ShipConfirmResponse">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ShipConfirmError">
|
||||
<soap:fault name="ShipConfirmError" use="literal"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="ProcessShipAccept">
|
||||
<soap:operation soapAction="http://onlinetools.ups.com/webservices/ShipBinding/v1.0" style="document"/>
|
||||
<wsdl:input name="ShipAcceptRequest">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
<soap:header message="tns:ShipAcceptRequestMessage" part="UPSSecurity" use="literal">
|
||||
<soap:headerfault message="tns:ShipAcceptErrorMessage" part="ShipAcceptError" use="literal"/>
|
||||
</soap:header>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="ShipAcceptResponse">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="ShipAcceptError">
|
||||
<soap:fault name="ShipAcceptError" use="literal"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<!-- Ship Web Service-->
|
||||
<wsdl:service name="ShipService">
|
||||
<wsdl:port name="ShipPort" binding="tns:ShipBinding">
|
||||
<!-- Production URL -->
|
||||
<!-- <soap:address location="https://onlinetools.ups.com/webservices/Ship"/> -->
|
||||
<!-- CIE (Customer Integration Environment) URL -->
|
||||
<soap:address location="https://wwwcie.ups.com/webservices/Ship"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
933
delivery_ups_hibou/api/ShipWebServiceSchema.xsd
Normal file
933
delivery_ups_hibou/api/ShipWebServiceSchema.xsd
Normal file
@@ -0,0 +1,933 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/Ship/v1.0" xmlns:ups="http://www.ups.com/XMLSchema" xmlns:ship="http://www.ups.com/XMLSchema/XOLTWS/Ship/v1.0" xmlns:ifs="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="201801">
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" schemaLocation="common.xsd"/>
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0" schemaLocation="IFWS.xsd"/>
|
||||
<xsd:element name="ShipmentRequest">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Request"/>
|
||||
<xsd:element name="Shipment" type="ship:ShipmentType"/>
|
||||
<xsd:element name="LabelSpecification" type="ship:LabelSpecificationType" minOccurs="0"/>
|
||||
<xsd:element name="ReceiptSpecification" type="ship:ReceiptSpecificationType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="ShipConfirmRequest">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Request"/>
|
||||
<xsd:element name="Shipment" type="ship:ShipmentType"/>
|
||||
<xsd:element name="LabelSpecification" type="ship:LabelSpecificationType" minOccurs="0"/>
|
||||
<xsd:element name="ReceiptSpecification" type="ship:ReceiptSpecificationType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="ShipAcceptRequest">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Request"/>
|
||||
<xsd:element name="ShipmentDigest" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="ShipmentResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Response"/>
|
||||
<xsd:element name="ShipmentResults" type="ship:ShipmentResultsType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="ShipConfirmResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Response"/>
|
||||
<xsd:element name="ShipmentResults" type="ship:ShipmentResultsType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="ShipAcceptResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Response"/>
|
||||
<xsd:element name="ShipmentResults" type="ship:ShipmentResultsType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:complexType name="ShipmentType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReturnService" type="ship:ReturnServiceType" minOccurs="0"/>
|
||||
<xsd:element name="DocumentsOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Shipper" type="ship:ShipperType"/>
|
||||
<xsd:element name="ShipTo" type="ship:ShipToType"/>
|
||||
<xsd:element name="AlternateDeliveryAddress" type="ship:AlternateDeliveryAddressType" minOccurs="0"/>
|
||||
<xsd:element name="ShipFrom" type="ship:ShipFromType" minOccurs="0"/>
|
||||
<xsd:element name="PaymentInformation" type="ship:PaymentInfoType" minOccurs="0"/>
|
||||
<xsd:element name="FRSPaymentInformation" type="ship:FRSPaymentInfoType" minOccurs="0"/>
|
||||
<xsd:element name="FreightShipmentInformation" type="ship:FreightShipmentInformationType" minOccurs="0"/>
|
||||
<xsd:element name="GoodsNotInFreeCirculationIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentRatingOptions" type="ship:RateInfoType" minOccurs="0"/>
|
||||
<xsd:element name="MovementReferenceNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReferenceNumber" type="ship:ReferenceNumberType" minOccurs="0" maxOccurs="2"/>
|
||||
<xsd:element name="Service" type="ship:ServiceType"/>
|
||||
<xsd:element name="InvoiceLineTotal" type="ship:CurrencyMonetaryType" minOccurs="0"/>
|
||||
<xsd:element name="NumOfPiecesInShipment" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="USPSEndorsement" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MILabelCN22Indicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SubClassification" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CostCenter" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CostCenterBarcodeIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackageID" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackageIDBarcodeIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="IrregularIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentIndicationType" type="ship:IndicationType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="MIDualReturnShipmentKey" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MIDualReturnShipmentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RatingMethodRequestedIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TaxInformationIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PromotionalDiscountInformation" type="ship:PromotionalDiscountInformationType" minOccurs="0"/>
|
||||
<xsd:element name="DGSignatoryInfo" type="ship:DGSignatoryInfoType" minOccurs="0"/>
|
||||
<xsd:element name="MasterCartonID" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MasterCartonIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentValueThresholdCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentServiceOptions" minOccurs="0">
|
||||
<xsd:complexType>
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="ship:ShipmentServiceOptionsType"/>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="Package" type="ship:PackageType" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PromotionalDiscountInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PromoCode" type="xsd:string"/>
|
||||
<xsd:element name="PromoAliasCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReturnServiceType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipperType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="ship:CompanyInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ShipperNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FaxNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="ship:ShipAddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CompanyInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string"/>
|
||||
<xsd:element name="AttentionName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CompanyDisplayableName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TaxIdentificationNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TaxIDType" type="ship:TaxIDCodeDescType" minOccurs="0"/>
|
||||
<xsd:element name="Phone" type="ship:ShipPhoneType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipPhoneType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Number" type="xsd:string"/>
|
||||
<xsd:element name="Extension" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AddressLine" type="xsd:string" maxOccurs="3"/>
|
||||
<xsd:element name="City" type="xsd:string"/>
|
||||
<xsd:element name="StateProvinceCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipToType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="ship:CompanyInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FaxNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="ship:ShipToAddressType"/>
|
||||
<xsd:element name="LocationID" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipToAddressType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="ship:ShipAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ResidentialAddressIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipFromType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="ship:CompanyInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FaxNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="ship:ShipAddressType"/>
|
||||
<xsd:element name="EMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="VendorInfo" type="ship:VendorInfoType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PrepaidType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BillShipper" type="ship:BillShipperType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillShipperType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AccountNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CreditCard" type="ship:CreditCardType" minOccurs="0"/>
|
||||
<xsd:element name="AlternatePaymentMethod" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CreditCardType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="xsd:string"/>
|
||||
<xsd:element name="Number" type="xsd:string"/>
|
||||
<xsd:element name="ExpirationDate" type="xsd:string"/>
|
||||
<xsd:element name="SecurityCode" type="xsd:string"/>
|
||||
<xsd:element name="Address" type="ship:CreditCardAddressType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CreditCardAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AddressLine" type="xsd:string" maxOccurs="3"/>
|
||||
<xsd:element name="City" type="xsd:string"/>
|
||||
<xsd:element name="StateProvinceCode" type="xsd:string"/>
|
||||
<xsd:element name="PostalCode" type="xsd:string"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillThirdPartyChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AccountNumber" type="xsd:string"/>
|
||||
<xsd:element name="Address" type="ship:AccountAddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AccountAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FreightCollectType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BillReceiver" type="ship:BillReceiverType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillReceiverType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AccountNumber" type="xsd:string"/>
|
||||
<xsd:element name="Address" type="ship:BillReceiverAddressType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillReceiverAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PaymentInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ShipmentCharge" type="ship:ShipmentChargeType" maxOccurs="2"/>
|
||||
<xsd:element name="SplitDutyVATIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="xsd:string"/>
|
||||
<xsd:element name="BillShipper" type="ship:BillShipperType" minOccurs="0"/>
|
||||
<xsd:element name="BillReceiver" type="ship:BillReceiverType" minOccurs="0"/>
|
||||
<xsd:element name="BillThirdParty" type="ship:BillThirdPartyChargeType" minOccurs="0"/>
|
||||
<xsd:element name="ConsigneeBilledIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FRSPaymentInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="ship:PaymentType"/>
|
||||
<xsd:element name="AccountNumber" type="xsd:string"/>
|
||||
<xsd:element name="Address" type="ship:AccountAddressType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PaymentType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="RateInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="NegotiatedRatesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FRSShipmentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RateChartIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TPFCNegotiatedRatesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UserLevelDiscountIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReferenceNumberType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="BarCodeIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Value" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ServiceType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CurrencyMonetaryType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentServiceOptionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="SaturdayDeliveryIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SaturdayPickupIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="COD" type="ship:CODType" minOccurs="0"/>
|
||||
<xsd:element name="AccessPointCOD" type="ship:ShipmentServiceOptionsAccessPointCODType" minOccurs="0"/>
|
||||
<xsd:element name="DeliverToAddresseeOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DirectDeliveryOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Notification" type="ship:NotificationType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="LabelDelivery" type="ship:LabelDeliveryType" minOccurs="0"/>
|
||||
<xsd:element name="InternationalForms" type="ifs:InternationalFormType" minOccurs="0"/>
|
||||
<xsd:element name="DeliveryConfirmation" type="ship:DeliveryConfirmationType" minOccurs="0"/>
|
||||
<xsd:element name="ReturnOfDocumentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ImportControlIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LabelMethod" type="ship:LabelMethodType" minOccurs="0"/>
|
||||
<xsd:element name="CommercialInvoiceRemovalIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UPScarbonneutralIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PreAlertNotification" type="ship:PreAlertNotificationType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="ExchangeForwardIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HoldForPickupIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DropoffAtUPSFacilityIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LiftGateForPickUpIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LiftGateForDeliveryIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SDLShipmentIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EPRAReleaseCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RestrictedArticles" type="ship:RestrictedArticlesType" minOccurs="0"/>
|
||||
<xsd:element name="InsideDelivery" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ItemDisposal" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="RestrictedArticlesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="DiagnosticSpecimensIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AlcoholicBeveragesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PerishablesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PlantsIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SeedsIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SpecialExceptionsIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TobaccoIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ECigarettesIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HempCBDIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PreAlertNotificationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="EMailMessage" type="ship:PreAlertEMailMessageType" minOccurs="0"/>
|
||||
<xsd:element name="VoiceMessage" type="ship:PreAlertVoiceMessageType" minOccurs="0"/>
|
||||
<xsd:element name="TextMessage" type="ship:PreAlertTextMessageType" minOccurs="0"/>
|
||||
<xsd:element name="Locale" type="ship:LocaleType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PreAlertEMailMessageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="EMailAddress" type="xsd:string"/>
|
||||
<xsd:element name="UndeliverableEMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LocaleType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Language" type="xsd:string"/>
|
||||
<xsd:element name="Dialect" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PreAlertVoiceMessageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PhoneNumber" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PreAlertTextMessageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PhoneNumber" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ContactInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Phone" type="ship:ShipPhoneType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CODType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CODFundsCode" type="xsd:string"/>
|
||||
<xsd:element name="CODAmount" type="ship:CurrencyMonetaryType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentServiceOptionsAccessPointCODType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="NotificationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="NotificationCode" type="xsd:string"/>
|
||||
<xsd:element name="EMail" type="ship:EmailDetailsType"/>
|
||||
<xsd:element name="VoiceMessage" type="ship:ShipmentServiceOptionsNotificationVoiceMessageType" minOccurs="0"/>
|
||||
<xsd:element name="TextMessage" type="ship:ShipmentServiceOptionsNotificationTextMessageType" minOccurs="0"/>
|
||||
<xsd:element name="Locale" type="ship:LocaleType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelDeliveryType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="EMail" type="ship:EmailDetailsType" minOccurs="0"/>
|
||||
<xsd:element name="LabelLinksIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="EmailDetailsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="EMailAddress" type="xsd:string" maxOccurs="unbounded"/>
|
||||
<xsd:element name="UndeliverableEMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FromEMailAddress" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FromName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Memo" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Subject" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SubjectCode" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PalletDescription" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="NumOfPieces" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UnitPrice" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Packaging" type="ship:PackagingType" minOccurs="0"/>
|
||||
<xsd:element name="Dimensions" type="ship:DimensionsType" minOccurs="0"/>
|
||||
<xsd:element name="DimWeight" type="ship:PackageWeightType" minOccurs="0"/>
|
||||
<xsd:element name="PackageWeight" type="ship:PackageWeightType" minOccurs="0"/>
|
||||
<xsd:element name="LargePackageIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReferenceNumber" type="ship:ReferenceNumberType" minOccurs="0" maxOccurs="5"/>
|
||||
<xsd:element name="AdditionalHandlingIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackageServiceOptions" type="ship:PackageServiceOptionsType" minOccurs="0"/>
|
||||
<xsd:element name="Commodity" type="ship:CommodityType" minOccurs="0"/>
|
||||
<xsd:element name="HazMatPackageInformation" type="ship:HazMatPackageInformationType" minOccurs="0"/>
|
||||
<xsd:element name="SimpleRate" type="ship:CodeDescriptionType" minOccurs="0"/>
|
||||
<xsd:element name="UPSPremier" type="ship:UPSPremierType" minOccurs="0"/>
|
||||
<xsd:element name="OversizeIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MinimumBillableWeightIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackagingType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DimensionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="ship:ShipUnitOfMeasurementType"/>
|
||||
<xsd:element name="Length" type="xsd:string"/>
|
||||
<xsd:element name="Width" type="xsd:string"/>
|
||||
<xsd:element name="Height" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipUnitOfMeasurementType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="ship:ShipUnitOfMeasurementType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageServiceOptionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="DeliveryConfirmation" type="ship:DeliveryConfirmationType" minOccurs="0"/>
|
||||
<xsd:element name="DeclaredValue" type="ship:PackageDeclaredValueType" minOccurs="0"/>
|
||||
<xsd:element name="COD" type="ship:PSOCODType" minOccurs="0"/>
|
||||
<xsd:element name="AccessPointCOD" type="ship:PackageServiceOptionsAccessPointCODType" minOccurs="0"/>
|
||||
<xsd:element name="ShipperReleaseIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Notification" type="ship:PSONotificationType" minOccurs="0"/>
|
||||
<xsd:element name="HazMat" type="ship:HazMatType" minOccurs="0" maxOccurs="3"/>
|
||||
<xsd:element name="DryIce" type="ship:DryIceType" minOccurs="0"/>
|
||||
<xsd:element name="UPSPremiumCareIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ProactiveIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackageIdentifier" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ClinicalTrialsID" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RefrigerationIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageDeclaredValueType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="ship:DeclaredValueType" minOccurs="0"/>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DeclaredValueType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DeliveryConfirmationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="DCISType" type="xsd:string"/>
|
||||
<xsd:element name="DCISNumber" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelMethodType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PSOCODType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CODFundsCode" type="xsd:string"/>
|
||||
<xsd:element name="CODAmount" type="ship:CurrencyMonetaryType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageServiceOptionsAccessPointCODType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PSONotificationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="NotificationCode" type="xsd:string"/>
|
||||
<xsd:element name="EMail" type="ship:EmailDetailsType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelSpecificationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="LabelImageFormat" type="ship:LabelImageFormatType"/>
|
||||
<xsd:element name="HTTPUserAgent" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LabelStockSize" type="ship:LabelStockSizeType" minOccurs="0"/>
|
||||
<xsd:element name="Instruction" type="ship:InstructionCodeDescriptionType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="CharacterSet" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="InstructionCodeDescriptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelImageFormatType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelStockSizeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Height" type="xsd:string"/>
|
||||
<xsd:element name="Width" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CommodityType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FreightClass" type="xsd:string"/>
|
||||
<xsd:element name="NMFC" type="ship:NMFCType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="NMFCType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PrimeCode" type="xsd:string"/>
|
||||
<xsd:element name="SubCode" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentResultsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Disclaimer" type="ship:DisclaimerType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="ShipmentCharges" type="ship:ShipmentChargesType" minOccurs="0"/>
|
||||
<xsd:element name="NegotiatedRateCharges" type="ship:NegotiatedRateChargesType" minOccurs="0"/>
|
||||
<xsd:element name="FRSShipmentData" type="ship:FRSShipmentDataType" minOccurs="0"/>
|
||||
<xsd:element name="RatingMethod" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="BillableWeightCalculationMethod" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="BillingWeight" type="ship:BillingWeightType"/>
|
||||
<xsd:element name="ShipmentIdentificationNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="MIDualReturnShipmentKey" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipmentDigest" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackageResults" type="ship:PackageResultsType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="ControlLogReceipt" type="ship:ImageType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="Form" type="ship:FormType" minOccurs="0"/>
|
||||
<xsd:element name="CODTurnInPage" type="ship:SCReportType" minOccurs="0"/>
|
||||
<xsd:element name="HighValueReport" type="ship:HighValueReportType" minOccurs="0"/>
|
||||
<xsd:element name="LabelURL" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LocalLanguageLabelURL" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReceiptURL" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LocalLanguageReceiptURL" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="DGPaperImage" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="MasterCartonID" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DisclaimerType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="RateChart" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="BaseServiceCharge" type="ship:ShipChargeType" minOccurs="0"/>
|
||||
<xsd:element name="TransportationCharges" type="ship:ShipChargeType"/>
|
||||
<xsd:element name="ItemizedCharges" type="ship:ShipChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="ServiceOptionsCharges" type="ship:ShipChargeType"/>
|
||||
<xsd:element name="TaxCharges" type="ship:TaxChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TotalCharges" type="ship:ShipChargeType"/>
|
||||
<xsd:element name="TotalChargesWithTaxes" type="ship:ShipChargeType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="NegotiatedRateChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ItemizedCharges" type="ship:ShipChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TaxCharges" type="ship:TaxChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TotalCharge" type="ship:ShipChargeType" minOccurs="0"/>
|
||||
<xsd:element name="TotalChargesWithTaxes" type="ship:ShipChargeType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CurrencyCode" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string"/>
|
||||
<xsd:element name="SubType" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TaxChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Type" type="xsd:string"/>
|
||||
<xsd:element name="MonetaryValue" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FRSShipmentDataType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="TransportationCharges" type="ship:TransportationChargeType"/>
|
||||
<xsd:element name="FreightDensityRate" type="ship:FreightDensityRateType" minOccurs="0"/>
|
||||
<xsd:element name="HandlingUnits" type="ship:HandlingUnitsResponseType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TransportationChargeType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="GrossCharge" type="ship:ShipChargeType"/>
|
||||
<xsd:element name="DiscountAmount" type="ship:ShipChargeType"/>
|
||||
<xsd:element name="DiscountPercentage" type="xsd:string"/>
|
||||
<xsd:element name="NetCharge" type="ship:ShipChargeType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillingWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="ship:BillingUnitOfMeasurementType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="BillingUnitOfMeasurementType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="PackageResultsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="TrackingNumber" type="xsd:string"/>
|
||||
<xsd:element name="BaseServiceCharge" type="ship:ShipChargeType" minOccurs="0"/>
|
||||
<xsd:element name="ServiceOptionsCharges" type="ship:ShipChargeType" minOccurs="0"/>
|
||||
<xsd:element name="ShippingLabel" type="ship:LabelType" minOccurs="0"/>
|
||||
<xsd:element name="ShippingReceipt" type="ship:ReceiptType" minOccurs="0"/>
|
||||
<xsd:element name="USPSPICNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CN22Number" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Accessorial" type="ship:AccessorialType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="Form" type="ship:FormType" minOccurs="0"/>
|
||||
<xsd:element name="ItemizedCharges" type="ship:ShipChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="NegotiatedCharges" type="ship:NegotiatedChargesType" minOccurs="0"/>
|
||||
<xsd:element name="SimpleRate" type="ship:SimpleRateType" minOccurs="0"/>
|
||||
<xsd:element name="SensorID" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AccessorialType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="LabelType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="ship:ImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="GraphicImagePart" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="InternationalSignatureGraphicImage" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HTMLImage" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PDF417" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:extension>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReceiptType">
|
||||
<xsd:complexContent>
|
||||
<xsd:extension base="ship:ImageType"/>
|
||||
</xsd:complexContent>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ImageFormat" type="ship:ImageFormatType"/>
|
||||
<xsd:element name="GraphicImage" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FormType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
<xsd:element name="Image" type="ship:FormImageType" minOccurs="0"/>
|
||||
<xsd:element name="FormGroupId" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="FormGroupIdName" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FormImageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ImageFormat" type="ship:ImageFormatType" minOccurs="0"/>
|
||||
<xsd:element name="GraphicImage" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ImageFormatType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="SCReportType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Image" type="ship:ImageType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HighValueReportType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Image" type="ship:ImageType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HazMatPackageInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AllPackedInOneIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="OverPackedIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="QValue" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="OuterPackagingType" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HazMatType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PackagingTypeQuantity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RecordIdentifier1" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RecordIdentifier2" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RecordIdentifier3" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="SubRiskClass" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="aDRItemNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="aDRPackingGroupLetter" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TechnicalName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HazardLabelRequired" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ClassDivisionNumber" type="xsd:string"/>
|
||||
<xsd:element name="ReferenceNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Quantity" type="xsd:string"/>
|
||||
<xsd:element name="UOM" type="xsd:string"/>
|
||||
<xsd:element name="PackagingType" type="xsd:string"/>
|
||||
<xsd:element name="IDNumber" type="xsd:string"/>
|
||||
<xsd:element name="ProperShippingName" type="xsd:string"/>
|
||||
<xsd:element name="AdditionalDescription" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackagingGroupType" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PackagingInstructionCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EmergencyPhone" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="EmergencyContact" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ReportableQuantity" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="RegulationSet" type="xsd:string"/>
|
||||
<xsd:element name="TransportationMode" type="xsd:string"/>
|
||||
<xsd:element name="CommodityRegulatedLevelCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TransportCategory" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TunnelRestrictionCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ChemicalRecordIdentifier" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LocalTechnicalName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="LocalProperShippingName" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DryIceType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="RegulationSet" type="xsd:string"/>
|
||||
<xsd:element name="DryIceWeight" type="ship:DryIceWeightType"/>
|
||||
<xsd:element name="MedicalUseIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DryIceWeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="ship:ShipUnitOfMeasurementType"/>
|
||||
<xsd:element name="Weight" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReceiptSpecificationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ImageFormat" type="ship:ReceiptImageFormatType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ReceiptImageFormatType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TaxIDCodeDescType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="IndicationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AlternateDeliveryAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AttentionName" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UPSAccessPointID" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Address" type="ship:ADLAddressType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentServiceOptionsNotificationVoiceMessageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PhoneNumber" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ShipmentServiceOptionsNotificationTextMessageType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="PhoneNumber" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ADLAddressType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AddressLine" type="xsd:string" maxOccurs="3"/>
|
||||
<xsd:element name="City" type="xsd:string"/>
|
||||
<xsd:element name="StateProvinceCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="CountryCode" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FreightShipmentInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="FreightDensityInfo" type="ship:FreightDensityInfoType" minOccurs="0"/>
|
||||
<xsd:element name="DensityEligibleIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HandlingUnitsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Quantity" type="xsd:string"/>
|
||||
<xsd:element name="Type" type="ship:ShipUnitOfMeasurementType"/>
|
||||
<xsd:element name="Dimensions" type="ship:HandlingUnitsDimensionsType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HandlingUnitsResponseType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Quantity" type="xsd:string"/>
|
||||
<xsd:element name="Type" type="ship:ShipUnitOfMeasurementType"/>
|
||||
<xsd:element name="Dimensions" type="ship:HandlingUnitsDimensionsType"/>
|
||||
<xsd:element name="AdjustedHeight" type="ship:AdjustedHeightType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HandlingUnitsDimensionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UnitOfMeasurement" type="ship:ShipUnitOfMeasurementType"/>
|
||||
<xsd:element name="Length" type="xsd:string"/>
|
||||
<xsd:element name="Width" type="xsd:string"/>
|
||||
<xsd:element name="Height" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FreightDensityRateType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Density" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TotalCubicFeet" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="FreightDensityInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AdjustedHeightIndicator" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="AdjustedHeight" type="ship:AdjustedHeightType" minOccurs="0"/>
|
||||
<xsd:element name="HandlingUnits" type="ship:HandlingUnitsType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="AdjustedHeightType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Value" type="xsd:string"/>
|
||||
<xsd:element name="UnitOfMeasurement" type="ship:ShipUnitOfMeasurementType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="NegotiatedChargesType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ItemizedCharges" type="ship:ShipChargeType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DGSignatoryInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Name" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Title" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Place" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Date" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ShipperDeclaration" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="UploadOnlyIndicator" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="UPSPremierType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Category" type="xsd:string"/>
|
||||
<xsd:element name="SensorID" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="HandlingInstructions" type="ship:HandlingInstructionsType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="HandlingInstructionsType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Instruction" type="xsd:string" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CodeDescriptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="SimpleRateType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="VendorInfoType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="VendorCollectIDTypeCode" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="VendorCollectIDNumber" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="ConsigneeType" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
58
delivery_ups_hibou/api/TNTWS.wsdl
Normal file
58
delivery_ups_hibou/api/TNTWS.wsdl
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- UPS Time In Transit Service WSDL Release Date Dec 29, 2007 -->
|
||||
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. -->
|
||||
<wsdl:definitions name="TimeInTransit" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:tnt="http://www.ups.com/XMLSchema/XOLTWS/tnt/v1.0" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/TNT/v1.0" targetNamespace="http://www.ups.com/WSDL/XOLTWS/TNT/v1.0">
|
||||
<wsdl:types>
|
||||
<xsd:schema>
|
||||
<!-- This schema defines the UPS Security header used for authorization purposes -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" schemaLocation="UPSSecurity.xsd"/>
|
||||
<!-- This schema defines the error detail data types returned within SOAPFaults to provide more specific information pertaining to the problem. -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" schemaLocation="Error1.1.xsd"/>
|
||||
<!-- This schema defines the TimeInTransit service data types -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/tnt/v1.0" schemaLocation="TimeInTransitWebServiceSchema.xsd"/>
|
||||
</xsd:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="TimeInTransitRequestMessage">
|
||||
<wsdl:part name="Body" element="tnt:TimeInTransitRequest"/>
|
||||
<wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="TimeInTransitResponseMessage">
|
||||
<wsdl:part name="Body" element="tnt:TimeInTransitResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="TimeInTransitErrorMessage">
|
||||
<wsdl:part name="TimeInTransitError" element="error:Errors"/>
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="TimeInTransitPortType">
|
||||
<wsdl:operation name="ProcessTimeInTransit">
|
||||
<wsdl:input name="TimeInTransitRequest" message="tns:TimeInTransitRequestMessage"/>
|
||||
<wsdl:output name="TimeInTransitResponse" message="tns:TimeInTransitResponseMessage"/>
|
||||
<wsdl:fault name="TimeInTransitError" message="tns:TimeInTransitErrorMessage"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="TimeInTransitBinding" type="tns:TimeInTransitPortType">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="ProcessTimeInTransit">
|
||||
<soap:operation soapAction="http://onlinetools.ups.com/webservices/TimeInTransitBinding/v1.0" style="document"/>
|
||||
<wsdl:input name="TimeInTransitRequest">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
<soap:header message="tns:TimeInTransitRequestMessage" part="UPSSecurity" use="literal">
|
||||
<soap:headerfault message="tns:TimeInTransitErrorMessage" part="TimeInTransitError" use="literal"/>
|
||||
</soap:header>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="TimeInTransitResponse">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="TimeInTransitError">
|
||||
<soap:fault name="TimeInTransitError" use="literal"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="TimeInTransitService">
|
||||
<wsdl:port name="TimeInTransitPort" binding="tns:TimeInTransitBinding">
|
||||
<!-- Production URL -->
|
||||
<!-- <soap:address location="https://onlinetools.ups.com/webservices/TimeInTransit"/> -->
|
||||
<!-- CIE (Customer Integration Environment) URL -->
|
||||
<soap:address location="https://wwwcie.ups.com/webservices/TimeInTransit"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
193
delivery_ups_hibou/api/TimeInTransitWebServiceSchema.xsd
Normal file
193
delivery_ups_hibou/api/TimeInTransitWebServiceSchema.xsd
Normal file
@@ -0,0 +1,193 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<xs:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/tnt/v1.0" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tnt="http://www.ups.com/XMLSchema/XOLTWS/tnt/v1.0" elementFormDefault="qualified">
|
||||
<xs:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" schemaLocation="common.xsd"/>
|
||||
<!--++++++++++++++++++++Start of Common for Request & Response++++++++++++++++++++-->
|
||||
<xs:complexType name="ResponseShipListAddressType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Town" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="City" type="xs:string"/>
|
||||
<xs:element name="StateProvinceCode" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="CountryCode" type="xs:string"/>
|
||||
<xs:element name="PostcodePrimaryLow" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="PostcodePrimaryHigh" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RequestShipFromAddressType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Town" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="City" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="StateProvinceCode" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="CountryCode" type="xs:string"/>
|
||||
<xs:element name="PostalCode" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RequestShipToAddressType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tnt:RequestShipFromAddressType">
|
||||
<xs:sequence>
|
||||
<xs:element name="ResidentialAddressIndicator" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ResponseShipFromAddressType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Town" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="City" type="xs:string"/>
|
||||
<xs:element name="StateProvinceCode" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="CountryCode" type="xs:string"/>
|
||||
<xs:element name="Country" type="xs:string"/>
|
||||
<xs:element name="PostalCode" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ResponseShipToAddressType">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="tnt:ResponseShipFromAddressType">
|
||||
<xs:sequence>
|
||||
<xs:element name="ResidentialAddressIndicator" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RequestShipFromType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Address" type="tnt:RequestShipFromAddressType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RequestShipToType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Address" type="tnt:RequestShipToAddressType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ResponseShipFromType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Address" type="tnt:ResponseShipFromAddressType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ResponseShipToType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Address" type="tnt:ResponseShipToAddressType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ShipmentWeightType">
|
||||
<xs:sequence>
|
||||
<xs:element name="UnitOfMeasurement" type="tnt:CodeDescriptionType"/>
|
||||
<xs:element name="Weight" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="CodeDescriptionType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Code" type="xs:string"/>
|
||||
<xs:element name="Description" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="PickupType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Date" type="xs:string"/>
|
||||
<xs:element name="Time" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="InvoiceLineTotalType">
|
||||
<xs:sequence>
|
||||
<xs:element name="CurrencyCode" type="xs:string"/>
|
||||
<xs:element name="MonetaryValue" type="xs:string"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ReturnContractServicesType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Code" type="xs:string"/>
|
||||
<xs:element name="Description" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<!--++++++++++++++++++++End of Common for Request & Response +++++++++++++++++++++-->
|
||||
<!--++++++++++++++++++Start Request++++++++++++++++-->
|
||||
<xs:element name="TimeInTransitRequest">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="common:Request"/>
|
||||
<xs:element name="ShipFrom" type="tnt:RequestShipFromType"/>
|
||||
<xs:element name="ShipTo" type="tnt:RequestShipToType"/>
|
||||
<xs:element name="Pickup" type="tnt:PickupType"/>
|
||||
<xs:element name="ShipmentWeight" type="tnt:ShipmentWeightType" minOccurs="0"/>
|
||||
<xs:element name="TotalPackagesInShipment" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="InvoiceLineTotal" type="tnt:InvoiceLineTotalType" minOccurs="0"/>
|
||||
<xs:element name="DocumentsOnlyIndicator" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="BillType" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="MaximumListSize" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="SaturdayDeliveryInfoRequestIndicator" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="DropOffAtFacilityIndicator" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="HoldForPickupIndicator" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="IncludeAllServicesIndicator" type="xs:string" minOccurs="0" tnt:usage="ups"/>
|
||||
<xs:element name="ReturnContractServices" type="tnt:ReturnContractServicesType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!--++++++++++++++++++++End of Request +++++++++++++++++++++-->
|
||||
<!--++++++++++++++++++++Start Response+++++++++++++++++++++-->
|
||||
<xs:complexType name="EstimatedArrivalType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Arrival" type="tnt:PickupType"/>
|
||||
<xs:element name="BusinessDaysInTransit" type="xs:string"/>
|
||||
<xs:element name="Pickup" type="tnt:PickupType"/>
|
||||
<xs:element name="DayOfWeek" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="CustomerCenterCutoff" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="DelayCount" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="HolidayCount" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="RestDays" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="TotalTransitDays" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ServiceSummaryType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Service" type="tnt:CodeDescriptionType"/>
|
||||
<xs:element name="GuaranteedIndicator" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="Disclaimer" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="EstimatedArrival" type="tnt:EstimatedArrivalType"/>
|
||||
<xs:element name="SaturdayDelivery" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="SaturdayDeliveryDisclaimer" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="TransitResponseType">
|
||||
<xs:sequence>
|
||||
<xs:element name="ShipFrom" type="tnt:ResponseShipFromType"/>
|
||||
<xs:element name="ShipTo" type="tnt:ResponseShipToType"/>
|
||||
<xs:element name="PickupDate" type="xs:string"/>
|
||||
<xs:element name="ShipmentWeight" type="tnt:ShipmentWeightType" minOccurs="0"/>
|
||||
<xs:element name="InvoiceLineTotal" type="tnt:InvoiceLineTotalType" minOccurs="0"/>
|
||||
<xs:element name="DocumentsOnlyIndicator" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="BillType" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="MaximumListSize" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="ServiceSummary" type="tnt:ServiceSummaryType" maxOccurs="unbounded"/>
|
||||
<xs:element name="AutoDutyCode" type="xs:string" minOccurs="0"/>
|
||||
<xs:element name="Disclaimer" type="xs:string" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="CandidateType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Address" type="tnt:ResponseShipListAddressType"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ShipListType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Candidate" type="tnt:CandidateType" maxOccurs="unbounded"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="CandidateResponseType">
|
||||
<xs:sequence>
|
||||
<xs:element name="ShipFromList" type="tnt:ShipListType" minOccurs="0"/>
|
||||
<xs:element name="ShipToList" type="tnt:ShipListType" minOccurs="0"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:element name="TimeInTransitResponse">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element ref="common:Response"/>
|
||||
<xs:choice>
|
||||
<xs:element name="TransitResponse" type="tnt:TransitResponseType" minOccurs="0"/>
|
||||
<xs:element name="CandidateResponse" type="tnt:CandidateResponseType" minOccurs="0"/>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!--+++++++++++++++++++End of Response++++++++++++++++++-->
|
||||
</xs:schema>
|
||||
23
delivery_ups_hibou/api/UPSSecurity.xsd
Normal file
23
delivery_ups_hibou/api/UPSSecurity.xsd
Normal file
@@ -0,0 +1,23 @@
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
||||
<xsd:element name="UPSSecurity">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="UsernameToken">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Username" type="xsd:string"/>
|
||||
<xsd:element name="Password" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="ServiceAccessToken">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AccessLicenseNumber" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
58
delivery_ups_hibou/api/Void.wsdl
Normal file
58
delivery_ups_hibou/api/Void.wsdl
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- UPS Void Shipment Service WSDL Release Date Mar 11, 2008 -->
|
||||
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. -->
|
||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:void="http://www.ups.com/XMLSchema/XOLTWS/Void/v1.1" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/Void/v1.1" targetNamespace="http://www.ups.com/WSDL/XOLTWS/Void/v1.1">
|
||||
<wsdl:types>
|
||||
<xsd:schema>
|
||||
<!-- This schema defines the UPS Security header used for authorization purposes -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" schemaLocation="UPSSecurity.xsd"/>
|
||||
<!-- This schema defines the error detail data types returned within SOAPFaults to provide more specific information pertaining to the problem. -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" schemaLocation="Error1.1.xsd"/>
|
||||
<!-- This schema defines the Void Shipment service data types -->
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Void/v1.1" schemaLocation="VoidWebServiceSchema.xsd"/>
|
||||
</xsd:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="VoidRequestMessage">
|
||||
<wsdl:part name="Body" element="void:VoidShipmentRequest"/>
|
||||
<wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="VoidResponseMessage">
|
||||
<wsdl:part name="Body" element="void:VoidShipmentResponse"/>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="VoidErrorMessage">
|
||||
<wsdl:part name="VoidError" element="error:Errors"/>
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="VoidPortType">
|
||||
<wsdl:operation name="ProcessVoid">
|
||||
<wsdl:input name="VoidShipmentRequest" message="tns:VoidRequestMessage"/>
|
||||
<wsdl:output name="VoidShipmentResponse" message="tns:VoidResponseMessage"/>
|
||||
<wsdl:fault name="VoidError" message="tns:VoidErrorMessage"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="VoidBinding" type="tns:VoidPortType">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
|
||||
<wsdl:operation name="ProcessVoid">
|
||||
<soap:operation soapAction="http://onlinetools.ups.com/webservices/VoidBinding/v1.1" style="document"/>
|
||||
<wsdl:input name="VoidShipmentRequest">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
<soap:header message="tns:VoidRequestMessage" part="UPSSecurity" use="literal">
|
||||
<soap:headerfault message="tns:VoidErrorMessage" part="VoidError" use="literal"/>
|
||||
</soap:header>
|
||||
</wsdl:input>
|
||||
<wsdl:output name="VoidShipmentResponse">
|
||||
<soap:body parts="Body" use="literal"/>
|
||||
</wsdl:output>
|
||||
<wsdl:fault name="VoidError">
|
||||
<soap:fault name="VoidError" use="literal"/>
|
||||
</wsdl:fault>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="VoidService">
|
||||
<wsdl:port name="VoidPort" binding="tns:VoidBinding">
|
||||
<!-- Production URL -->
|
||||
<!-- <soap:address location="https://onlinetools.ups.com/webservices/Void"/> -->
|
||||
<!-- CIE (Customer Integration Environment) URL -->
|
||||
<soap:address location="https://wwwcie.ups.com/webservices/Void"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
45
delivery_ups_hibou/api/VoidWebServiceSchema.xsd
Normal file
45
delivery_ups_hibou/api/VoidWebServiceSchema.xsd
Normal file
@@ -0,0 +1,45 @@
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/Void/v1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:void="http://www.ups.com/XMLSchema/XOLTWS/Void/v1.1" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" elementFormDefault="qualified" version="201601">
|
||||
<xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" schemaLocation="common.xsd"/>
|
||||
<xsd:element name="VoidShipmentRequest">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Request"/>
|
||||
<xsd:element name="VoidShipment">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ShipmentIdentificationNumber" type="xsd:string"/>
|
||||
<xsd:element name="TrackingNumber" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="VoidShipmentResponse">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="common:Response"/>
|
||||
<xsd:element name="SummaryResult">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Status" type="void:CodeDescriptionType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="PackageLevelResult" type="void:PackageLevelResult" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:complexType name="PackageLevelResult">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="TrackingNumber" type="xsd:string"/>
|
||||
<xsd:element name="Status" type="void:CodeDescriptionType"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CodeDescriptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
65
delivery_ups_hibou/api/common.xsd
Normal file
65
delivery_ups_hibou/api/common.xsd
Normal file
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ups="http://www.ups.com/XMLSchema" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" elementFormDefault="qualified" version="201707">
|
||||
<xsd:element name="Request" type="common:RequestType"/>
|
||||
<xsd:element name="Response" type="common:ResponseType"/>
|
||||
<xsd:element name="ClientInformation" type="common:ClientInformationType"/>
|
||||
<xsd:complexType name="ClientInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Property" minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:complexType>
|
||||
<xsd:simpleContent>
|
||||
<xsd:extension base="xsd:string">
|
||||
<xsd:attribute name="Key" type="xsd:string" use="required"/>
|
||||
</xsd:extension>
|
||||
</xsd:simpleContent>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="RequestType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="RequestOption" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="SubVersion" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TransactionReference" type="common:TransactionReferenceType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="TransactionReferenceType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="CustomerContext" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="TransactionIdentifier" type="xsd:string" minOccurs="0" ups:usage="notused"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ResponseType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="ResponseStatus" type="common:CodeDescriptionType"/>
|
||||
<xsd:element name="Alert" type="common:CodeDescriptionType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="AlertDetail" type="common:DetailType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
<xsd:element name="TransactionReference" type="common:TransactionReferenceType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="CodeDescriptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="DetailType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Description" type="xsd:string"/>
|
||||
<xsd:element name="ElementLevelInformation" type="common:ElementLevelInformationType" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ElementLevelInformationType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Level" type="xsd:string"/>
|
||||
<xsd:element name="ElementIdentifier" type="common:ElementIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
<xsd:complexType name="ElementIdentifierType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="Code" type="xsd:string"/>
|
||||
<xsd:element name="Value" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:schema>
|
||||
@@ -1,4 +1,5 @@
|
||||
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
||||
|
||||
from . import delivery_ups
|
||||
from . import stock
|
||||
from . import ups_request_patch
|
||||
|
||||
@@ -11,16 +11,35 @@ _logger = logging.getLogger(__name__)
|
||||
class ProviderUPS(models.Model):
|
||||
_inherit = 'delivery.carrier'
|
||||
|
||||
def _get_ups_signature_required_type(self, order=None, picking=None, package=None):
|
||||
# '3' for Adult Sig.
|
||||
return '2'
|
||||
|
||||
def _get_ups_signature_required(self, order=None, picking=None, package=None):
|
||||
if self.get_signature_required(order=order, picking=picking, package=package):
|
||||
return self._get_ups_signature_required_type(order=order, picking=picking, package=package)
|
||||
return False
|
||||
|
||||
def _get_ups_is_third_party(self, order=None, picking=None):
|
||||
third_party_account = self.get_third_party_account(order=order, picking=picking)
|
||||
if third_party_account:
|
||||
if not third_party_account.delivery_type == 'ups':
|
||||
raise ValidationError('Non-UPS Shipping Account indicated during UPS shipment.')
|
||||
return True
|
||||
if order and self.ups_bill_my_account and order.ups_carrier_account:
|
||||
if order and order.ups_bill_my_account and order.partner_ups_carrier_account:
|
||||
return True
|
||||
return False
|
||||
|
||||
def _get_main_ups_account_number(self, order=None, picking=None):
|
||||
wh = None
|
||||
if order:
|
||||
wh = order.warehouse_id
|
||||
if picking:
|
||||
wh = picking.picking_type_id.warehouse_id
|
||||
if wh and wh.ups_shipper_number:
|
||||
return wh.ups_shipper_number
|
||||
return self.ups_shipper_number
|
||||
|
||||
def _get_ups_account_number(self, order=None, picking=None):
|
||||
"""
|
||||
Common hook to customize what UPS Account number to use.
|
||||
@@ -32,25 +51,33 @@ class ProviderUPS(models.Model):
|
||||
if not third_party_account.delivery_type == 'ups':
|
||||
raise ValidationError('Non-UPS Shipping Account indicated during UPS shipment.')
|
||||
return third_party_account.name
|
||||
if order and order.ups_carrier_account:
|
||||
return order.ups_carrier_account
|
||||
if picking and picking.sale_id.ups_carrier_account:
|
||||
return picking.sale_id.ups_carrier_account
|
||||
if order and order.partner_ups_carrier_account:
|
||||
return order.partner_ups_carrier_account
|
||||
if picking and picking.sale_id.partner_ups_carrier_account:
|
||||
return picking.sale_id.partner_ups_carrier_account
|
||||
if picking and picking.picking_type_id.warehouse_id.ups_shipper_number:
|
||||
return picking.picking_type_id.warehouse_id.ups_shipper_number
|
||||
return self.ups_shipper_number
|
||||
|
||||
def _get_ups_carrier_account(self, picking):
|
||||
# 3rd party billing should return False if not used.
|
||||
account = self._get_ups_account_number(picking=picking)
|
||||
return account if account != self.ups_shipper_number else False
|
||||
return account if account not in (self.ups_shipper_number, picking.picking_type_id.warehouse_id.ups_shipper_number) else False
|
||||
|
||||
"""
|
||||
Overrides to use Hibou Delivery methods to get shipper etc. and to add 'transit_days' to result.
|
||||
"""
|
||||
def ups_rate_shipment(self, order):
|
||||
superself = self.sudo()
|
||||
srm = UPSRequest(self.log_xml, superself.ups_username, superself.ups_passwd, superself.ups_shipper_number, superself.ups_access_number, self.prod_environment)
|
||||
# Hibou Shipping
|
||||
signature_required = superself._get_ups_signature_required(order=order)
|
||||
insurance_value = superself.get_insurance_value(order=order)
|
||||
currency = order.currency_id or order.company_id.currency_id
|
||||
insurance_currency_code = currency.name
|
||||
|
||||
srm = UPSRequest(self.log_xml, superself.ups_username, superself.ups_passwd, superself._get_main_ups_account_number(order=order), superself.ups_access_number, self.prod_environment)
|
||||
ResCurrency = self.env['res.currency']
|
||||
max_weight = self.ups_default_packaging_id.max_weight
|
||||
max_weight = self.ups_default_package_type_id.max_weight
|
||||
packages = []
|
||||
total_qty = 0
|
||||
total_weight = 0
|
||||
@@ -63,11 +90,14 @@ class ProviderUPS(models.Model):
|
||||
last_package_weight = total_weight % max_weight
|
||||
|
||||
for seq in range(total_package):
|
||||
packages.append(Package(self, max_weight))
|
||||
packages.append(Package(self, max_weight,
|
||||
insurance_value=insurance_value, insurance_currency_code=insurance_currency_code, signature_required=signature_required))
|
||||
if last_package_weight:
|
||||
packages.append(Package(self, last_package_weight))
|
||||
packages.append(Package(self, last_package_weight,
|
||||
insurance_value=insurance_value, insurance_currency_code=insurance_currency_code, signature_required=signature_required))
|
||||
else:
|
||||
packages.append(Package(self, total_weight))
|
||||
packages.append(Package(self, total_weight,
|
||||
insurance_value=insurance_value, insurance_currency_code=insurance_currency_code, signature_required=signature_required))
|
||||
|
||||
shipment_info = {
|
||||
'total_qty': total_qty # required when service type = 'UPS Worldwide Express Freight'
|
||||
@@ -97,10 +127,10 @@ class ProviderUPS(models.Model):
|
||||
'error_message': check_value,
|
||||
'warning_message': False}
|
||||
|
||||
ups_service_type = order.ups_service_type or self.ups_default_service_type
|
||||
ups_service_type = self.ups_default_service_type
|
||||
result = srm.get_shipping_price(
|
||||
shipment_info=shipment_info, packages=packages, shipper=shipper_company, ship_from=shipper_warehouse,
|
||||
ship_to=recipient, packaging_type=self.ups_default_packaging_id.shipper_package_code, service_type=ups_service_type,
|
||||
ship_to=recipient, packaging_type=self.ups_default_package_type_id.shipper_package_code, service_type=ups_service_type,
|
||||
saturday_delivery=self.ups_saturday_delivery, cod_info=cod_info, date_planned=date_planned)
|
||||
|
||||
if result.get('error_message'):
|
||||
@@ -130,24 +160,38 @@ class ProviderUPS(models.Model):
|
||||
def ups_send_shipping(self, pickings):
|
||||
res = []
|
||||
superself = self.sudo()
|
||||
srm = UPSRequest(self.log_xml, superself.ups_username, superself.ups_passwd, superself.ups_shipper_number, superself.ups_access_number, self.prod_environment)
|
||||
ResCurrency = self.env['res.currency']
|
||||
for picking in pickings:
|
||||
srm = UPSRequest(self.log_xml, superself.ups_username, superself.ups_passwd, superself._get_main_ups_account_number(picking=picking), superself.ups_access_number, self.prod_environment)
|
||||
# Hibou Delivery
|
||||
shipper_company = superself.get_shipper_company(picking=picking)
|
||||
shipper_warehouse = superself.get_shipper_warehouse(picking=picking)
|
||||
recipient = superself.get_recipient(picking=picking)
|
||||
currency = picking.sale_id.currency_id if picking.sale_id else picking.company_id.currency_id
|
||||
insurance_currency_code = currency.name
|
||||
|
||||
picking_packages = picking.package_ids
|
||||
package_carriers = picking_packages.mapped('carrier_id')
|
||||
if package_carriers:
|
||||
# only ship ours
|
||||
picking_packages = picking_packages.filtered(lambda p: p.carrier_id == self and not p.carrier_tracking_ref)
|
||||
|
||||
if not picking_packages:
|
||||
continue
|
||||
|
||||
packages = []
|
||||
package_names = []
|
||||
if picking.package_ids:
|
||||
if picking_packages:
|
||||
# Create all packages
|
||||
for package in picking.package_ids:
|
||||
packages.append(Package(self, package.shipping_weight, quant_pack=package.packaging_id, name=package.name))
|
||||
for package in picking_packages:
|
||||
packages.append(Package(self, package.shipping_weight, quant_pack=package.package_type_id, name=package.name,
|
||||
insurance_value=superself.get_insurance_value(picking=picking, package=package), insurance_currency_code=insurance_currency_code, signature_required=superself._get_ups_signature_required(picking=picking, package=package)))
|
||||
package_names.append(package.name)
|
||||
|
||||
# what is the point of weight_bulk?
|
||||
# Create one package with the rest (the content that is not in a package)
|
||||
if picking.weight_bulk:
|
||||
packages.append(Package(self, picking.weight_bulk))
|
||||
# if picking.weight_bulk:
|
||||
# packages.append(Package(self, picking.weight_bulk))
|
||||
|
||||
invoice_line_total = 0
|
||||
for move in picking.move_lines:
|
||||
@@ -160,10 +204,7 @@ class ProviderUPS(models.Model):
|
||||
'itl_currency_code': self.env.user.company_id.currency_id.name,
|
||||
'phone': recipient.mobile or recipient.phone,
|
||||
}
|
||||
if picking.sale_id and picking.sale_id.carrier_id != picking.carrier_id:
|
||||
ups_service_type = picking.carrier_id.ups_default_service_type or picking.ups_service_type or superself.ups_default_service_type
|
||||
else:
|
||||
ups_service_type = picking.ups_service_type or superself.ups_default_service_type
|
||||
ups_service_type = picking.carrier_id.ups_default_service_type
|
||||
|
||||
# Hibou Delivery
|
||||
ups_carrier_account = superself._get_ups_carrier_account(picking)
|
||||
@@ -181,7 +222,7 @@ class ProviderUPS(models.Model):
|
||||
if check_value:
|
||||
raise UserError(check_value)
|
||||
|
||||
package_type = picking.package_ids and picking.package_ids[0].packaging_id.shipper_package_code or self.ups_default_packaging_id.shipper_package_code
|
||||
package_type = picking_packages and picking_packages[0].package_type_id.shipper_package_code or self.ups_default_package_type_id.shipper_package_code
|
||||
srm.send_shipping(
|
||||
shipment_info=shipment_info, packages=packages, shipper=shipper_company, ship_from=shipper_warehouse,
|
||||
ship_to=recipient, packaging_type=package_type, service_type=ups_service_type, duty_payment=picking.carrier_id.ups_duty_payment,
|
||||
@@ -235,14 +276,16 @@ class ProviderUPS(models.Model):
|
||||
return rates
|
||||
|
||||
def _ups_rate_shipment_multi_package(self, order=None, picking=None, package=None):
|
||||
# TODO package here is ignored, it should not be (UPS is not multi-rating capable until we can get rates for a single package)
|
||||
superself = self.sudo()
|
||||
srm = UPSRequest(self.log_xml, superself.ups_username, superself.ups_passwd, superself.ups_shipper_number, superself.ups_access_number, self.prod_environment)
|
||||
srm = UPSRequest(self.log_xml, superself.ups_username, superself.ups_passwd, superself._get_main_ups_account_number(order=order, picking=picking), superself.ups_access_number, self.prod_environment)
|
||||
ResCurrency = self.env['res.currency']
|
||||
max_weight = self.ups_default_packaging_id.max_weight
|
||||
max_weight = self.ups_default_package_type_id.max_weight
|
||||
packages = []
|
||||
if order:
|
||||
insurance_value = superself.get_insurance_value(order=order)
|
||||
signature_required = superself._get_ups_signature_required(order=order)
|
||||
currency = order.currency_id
|
||||
insurance_currency_code = currency.name
|
||||
company = order.company_id
|
||||
date_order = order.date_order or fields.Date.today()
|
||||
total_qty = 0
|
||||
@@ -256,19 +299,27 @@ class ProviderUPS(models.Model):
|
||||
last_package_weight = total_weight % max_weight
|
||||
|
||||
for seq in range(total_package):
|
||||
packages.append(Package(self, max_weight))
|
||||
packages.append(Package(self, max_weight, insurance_value=insurance_value, insurance_currency_code=insurance_currency_code, signature_required=signature_required))
|
||||
if last_package_weight:
|
||||
packages.append(Package(self, last_package_weight))
|
||||
packages.append(Package(self, last_package_weight, insurance_value=insurance_value, insurance_currency_code=insurance_currency_code, signature_required=signature_required))
|
||||
else:
|
||||
packages.append(Package(self, total_weight))
|
||||
packages.append(Package(self, total_weight, insurance_value=insurance_value, insurance_currency_code=insurance_currency_code, signature_required=signature_required))
|
||||
else:
|
||||
currency = picking.sale_id.currency_id if picking.sale_id else picking.company_id.currency_id
|
||||
insurance_currency_code = currency.name
|
||||
company = picking.company_id
|
||||
date_order = picking.sale_id.date_order or fields.Date.today() if picking.sale_id else fields.Date.today()
|
||||
# Is total quantity the number of packages or the number of items being shipped?
|
||||
total_qty = len(picking.package_ids)
|
||||
packages = [Package(self, package.shipping_weight) for package in picking.package_ids]
|
||||
|
||||
if package:
|
||||
total_qty = 1
|
||||
packages = [Package(self, package.shipping_weight, insurance_value=superself.get_insurance_value(picking=picking, package=package), insurance_currency_code=insurance_currency_code, signature_required=superself._get_ups_signature_required(picking=picking, package=package))]
|
||||
elif picking.package_ids:
|
||||
# all packages....
|
||||
total_qty = len(picking.package_ids)
|
||||
packages = [Package(self, package.shipping_weight, insurance_value=superself.get_insurance_value(picking=picking, package=package), insurance_currency_code=insurance_currency_code, signature_required=superself._get_ups_signature_required(picking=picking, package=package)) for package in picking.package_ids.filtered(lambda p: not p.carrier_id)]
|
||||
else:
|
||||
total_qty = 1
|
||||
packages.append(Package(self, picking.shipping_weight or picking.weight, insurance_value=superself.get_insurance_value(picking=picking), insurance_currency_code=insurance_currency_code, signature_required=superself._get_ups_signature_required(picking=picking)))
|
||||
|
||||
shipment_info = {
|
||||
'total_qty': total_qty # required when service type = 'UPS Worldwide Express Freight'
|
||||
@@ -298,19 +349,25 @@ class ProviderUPS(models.Model):
|
||||
'error_message': check_value,
|
||||
'warning_message': False,
|
||||
}]
|
||||
|
||||
#ups_service_type = order.ups_service_type or self.ups_default_service_type
|
||||
ups_service_type = None # See if this gets us all service types
|
||||
# We now use Shop if we send multi=True
|
||||
ups_service_type = self.ups_default_service_type
|
||||
result = srm.get_shipping_price(
|
||||
shipment_info=shipment_info, packages=packages, shipper=shipper_company, ship_from=shipper_warehouse,
|
||||
ship_to=recipient, packaging_type=self.ups_default_packaging_id.shipper_package_code, service_type=ups_service_type,
|
||||
ship_to=recipient, packaging_type=self.ups_default_package_type_id.shipper_package_code, service_type=ups_service_type,
|
||||
saturday_delivery=self.ups_saturday_delivery, cod_info=cod_info, date_planned=date_planned, multi=True)
|
||||
# Hibou Delivery
|
||||
is_third_party = self._get_ups_is_third_party(order=order, picking=picking)
|
||||
|
||||
response = []
|
||||
for rate in result:
|
||||
if rate.get('error_message'):
|
||||
if isinstance(rate, str):
|
||||
# assume error
|
||||
response.append({
|
||||
'success': False, 'price': 0.0,
|
||||
'error_message': _('Error:\n%s') % rate,
|
||||
'warning_message': False,
|
||||
})
|
||||
elif rate.get('error_message'):
|
||||
_logger.error('UPS error: %s' % rate['error_message'])
|
||||
response.append({
|
||||
'success': False, 'price': 0.0,
|
||||
@@ -334,6 +391,7 @@ class ProviderUPS(models.Model):
|
||||
if carrier:
|
||||
response.append({
|
||||
'carrier': carrier,
|
||||
'package': package or self.env['stock.quant.package'].browse(),
|
||||
'success': True,
|
||||
'price': price,
|
||||
'error_message': False,
|
||||
|
||||
9
delivery_ups_hibou/models/stock.py
Normal file
9
delivery_ups_hibou/models/stock.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class StockWarehouse(models.Model):
|
||||
_inherit = 'stock.warehouse'
|
||||
|
||||
ups_shipper_number = fields.Char(string='UPS Shipper Number')
|
||||
@@ -1,10 +1,48 @@
|
||||
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
||||
|
||||
import os
|
||||
from zeep import Client, Plugin
|
||||
from zeep.exceptions import Fault
|
||||
from odoo.addons.delivery_ups.models.ups_request import UPSRequest
|
||||
from odoo.addons.delivery_ups.models.ups_request import UPSRequest, FixRequestNamespacePlug, LogPlugin, Package
|
||||
import logging
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
TNT_CODE_MAP = {
|
||||
'GND': '03',
|
||||
# TODO fill in the rest if needed....
|
||||
}
|
||||
|
||||
|
||||
def patched__init__(self, debug_logger, username, password, shipper_number, access_number, prod_environment):
|
||||
# patch to add the relative url for tnt_wsdl
|
||||
self.debug_logger = debug_logger
|
||||
# Product and Testing url
|
||||
self.endurl = "https://onlinetools.ups.com/webservices/"
|
||||
if not prod_environment:
|
||||
self.endurl = "https://wwwcie.ups.com/webservices/"
|
||||
|
||||
# Basic detail require to authenticate
|
||||
self.username = username
|
||||
self.password = password
|
||||
self.shipper_number = shipper_number
|
||||
self.access_number = access_number
|
||||
|
||||
self.rate_wsdl = '../api/RateWS.wsdl'
|
||||
self.ship_wsdl = '../api/Ship.wsdl'
|
||||
self.void_wsdl = '../api/Void.wsdl'
|
||||
self.tnt_wsdl = '../api/TNTWS.wsdl'
|
||||
self.ns = {'err': "http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1"}
|
||||
|
||||
|
||||
def patched_set_client(self, wsdl, api, root):
|
||||
# because of WSDL relative path we must patch
|
||||
wsdl_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), wsdl)
|
||||
client = Client('file:///%s' % wsdl_path.lstrip('/'), plugins=[FixRequestNamespacePlug(root), LogPlugin(self.debug_logger)])
|
||||
self.factory_ns1 = client.type_factory('ns1')
|
||||
self.factory_ns2 = client.type_factory('ns2')
|
||||
self.factory_ns3 = client.type_factory('ns3')
|
||||
self._add_security_header(client, api)
|
||||
return client
|
||||
|
||||
|
||||
def patched_get_shipping_price(self, shipment_info, packages, shipper, ship_from, ship_to, packaging_type, service_type,
|
||||
saturday_delivery, cod_info, date_planned=False, multi=False):
|
||||
@@ -85,7 +123,7 @@ def patched_get_shipping_price(self, shipment_info, packages, shipper, ship_from
|
||||
shipment.ShipmentServiceOptions = ''
|
||||
|
||||
shipment.ShipmentRatingOptions = self.factory_ns2.ShipmentRatingOptionsType()
|
||||
shipment.ShipmentRatingOptions.NegotiatedRatesIndicator = 1
|
||||
shipment.ShipmentRatingOptions.NegotiatedRatesIndicator = '1'
|
||||
|
||||
try:
|
||||
# Get rate using for provided detail
|
||||
@@ -98,43 +136,92 @@ def patched_get_shipping_price(self, shipment_info, packages, shipper, ship_from
|
||||
return [error_message]
|
||||
return error_message
|
||||
|
||||
if not multi:
|
||||
rate = response.RatedShipment[0]
|
||||
charge = rate.TotalCharges
|
||||
if multi:
|
||||
result = []
|
||||
tnt_response = None
|
||||
tnt_ready = False
|
||||
for rated_shipment in response.RatedShipment:
|
||||
res = {}
|
||||
res['service_code'] = rated_shipment.Service.Code
|
||||
res['currency_code'] = rated_shipment.TotalCharges.CurrencyCode
|
||||
negotiated_rate = 'NegotiatedRateCharges' in rated_shipment and rated_shipment.NegotiatedRateCharges.TotalCharge.MonetaryValue or None
|
||||
|
||||
res['price'] = negotiated_rate or rated_shipment.TotalCharges.MonetaryValue
|
||||
# Hibou Delivery
|
||||
if hasattr(rated_shipment, 'GuaranteedDelivery') and hasattr(rated_shipment.GuaranteedDelivery, 'BusinessDaysInTransit'):
|
||||
res['transit_days'] = int(rated_shipment.GuaranteedDelivery.BusinessDaysInTransit)
|
||||
|
||||
if not res.get('transit_days') and date_planned:
|
||||
if not tnt_response:
|
||||
try:
|
||||
tnt_client = self._set_client(self.tnt_wsdl, 'TimeInTransit', 'TimeInTransitRequest')
|
||||
tnt_service = self._set_service(tnt_client, 'TimeInTransit')
|
||||
tnt_request = self.factory_ns3.RequestType()
|
||||
tnt_request.RequestOption = 'TNT'
|
||||
|
||||
tnt_ship_from = self.factory_ns2.RequestShipFromType()
|
||||
tnt_ship_from.Address = self.factory_ns2.RequestShipFromAddressType()
|
||||
tnt_ship_from.AttentionName = (ship_from.name or '')[:35]
|
||||
tnt_ship_from.Name = (ship_from.parent_id.name or ship_from.name or '')[:35]
|
||||
tnt_ship_from.Address.AddressLine = [l for l in [ship_from.street or '', ship_from.street2 or ''] if l]
|
||||
tnt_ship_from.Address.City = ship_from.city or ''
|
||||
tnt_ship_from.Address.PostalCode = ship_from.zip or ''
|
||||
tnt_ship_from.Address.CountryCode = ship_from.country_id.code or ''
|
||||
if ship_from.country_id.code in ('US', 'CA', 'IE'):
|
||||
tnt_ship_from.Address.StateProvinceCode = ship_from.state_id.code or ''
|
||||
|
||||
tnt_ship_to = self.factory_ns2.RequestShipToType()
|
||||
tnt_ship_to.Address = self.factory_ns2.RequestShipToAddressType()
|
||||
tnt_ship_to.AttentionName = (ship_to.name or '')[:35]
|
||||
tnt_ship_to.Name = (ship_to.parent_id.name or ship_to.name or '')[:35]
|
||||
tnt_ship_to.Address.AddressLine = [l for l in [ship_to.street or '', ship_to.street2 or ''] if l]
|
||||
tnt_ship_to.Address.City = ship_to.city or ''
|
||||
tnt_ship_to.Address.PostalCode = ship_to.zip or ''
|
||||
tnt_ship_to.Address.CountryCode = ship_to.country_id.code or ''
|
||||
if ship_to.country_id.code in ('US', 'CA', 'IE'):
|
||||
tnt_ship_to.Address.StateProvinceCode = ship_to.state_id.code or ''
|
||||
if not ship_to.commercial_partner_id.is_company:
|
||||
tnt_ship_to.Address.ResidentialAddressIndicator = None
|
||||
|
||||
tnt_pickup = self.factory_ns2.PickupType()
|
||||
tnt_pickup.Date = date_planned.split(' ')[0].replace('-', '')
|
||||
tnt_pickup.Time = date_planned.split(' ')[1].replace(':', '')
|
||||
|
||||
tnt_response = tnt_service.ProcessTimeInTransit(Request=tnt_request,
|
||||
ShipFrom=tnt_ship_from,
|
||||
ShipTo=tnt_ship_to,
|
||||
Pickup=tnt_pickup)
|
||||
tnt_ready = tnt_response.Response.ResponseStatus.Code == "1"
|
||||
except Exception as e:
|
||||
_logger.warning('exception during the UPS Time In Transit request. ' + str(e))
|
||||
_logger.exception(e)
|
||||
tnt_ready = False
|
||||
tnt_response = '-1'
|
||||
if tnt_ready:
|
||||
for service in tnt_response.TransitResponse.ServiceSummary:
|
||||
if TNT_CODE_MAP.get(service.Service.Code) == service_type:
|
||||
if hasattr(service, 'EstimatedArrival') and hasattr(service.EstimatedArrival, 'BusinessDaysInTransit'):
|
||||
res['transit_days'] = int(service.EstimatedArrival.BusinessDaysInTransit)
|
||||
break
|
||||
# use TNT API to
|
||||
result.append(res)
|
||||
else:
|
||||
result = {}
|
||||
result['currency_code'] = response.RatedShipment[0].TotalCharges.CurrencyCode
|
||||
|
||||
# Some users are qualified to receive negotiated rates
|
||||
if 'NegotiatedRateCharges' in rate and rate.NegotiatedRateCharges and rate.NegotiatedRateCharges.TotalCharge.MonetaryValue:
|
||||
charge = rate.NegotiatedRateCharges.TotalCharge
|
||||
|
||||
result = {
|
||||
'currency_code': charge.CurrencyCode,
|
||||
'price': charge.MonetaryValue,
|
||||
}
|
||||
negotiated_rate = 'NegotiatedRateCharges' in response.RatedShipment[0] and response.RatedShipment[
|
||||
0].NegotiatedRateCharges.TotalCharge.MonetaryValue or None
|
||||
|
||||
result['price'] = negotiated_rate or response.RatedShipment[0].TotalCharges.MonetaryValue
|
||||
# Hibou Delivery
|
||||
if hasattr(response.RatedShipment[0], 'GuaranteedDelivery') and hasattr(response.RatedShipment[0].GuaranteedDelivery, 'BusinessDaysInTransit'):
|
||||
result['transit_days'] = int(response.RatedShipment[0].GuaranteedDelivery.BusinessDaysInTransit)
|
||||
# End
|
||||
else:
|
||||
result = []
|
||||
for rate in response.RatedShipment:
|
||||
charge = rate.TotalCharges
|
||||
|
||||
# Some users are qualified to receive negotiated rates
|
||||
if 'NegotiatedRateCharges' in rate and rate.NegotiatedRateCharges and rate.NegotiatedRateCharges.TotalCharge.MonetaryValue:
|
||||
charge = rate.NegotiatedRateCharges.TotalCharge
|
||||
if not result.get('transit_days') and date_planned:
|
||||
# use TNT API to
|
||||
_logger.warning(' We would now use the TNT service. But who would show the transit days? 2')
|
||||
|
||||
rated_shipment = {
|
||||
'currency_code': charge.CurrencyCode,
|
||||
'price': charge.MonetaryValue,
|
||||
}
|
||||
|
||||
# Hibou Delivery
|
||||
if hasattr(rate, 'GuaranteedDelivery') and hasattr(rate.GuaranteedDelivery, 'BusinessDaysInTransit'):
|
||||
rated_shipment['transit_days'] = int(rate.GuaranteedDelivery.BusinessDaysInTransit)
|
||||
# End
|
||||
rated_shipment['service_code'] = rate.Service.Code
|
||||
result.append(rated_shipment)
|
||||
return result
|
||||
|
||||
except Fault as e:
|
||||
@@ -151,4 +238,208 @@ def patched_get_shipping_price(self, shipment_info, packages, shipper, ship_from
|
||||
return error_message
|
||||
|
||||
|
||||
def patched_send_shipping(self, shipment_info, packages, shipper, ship_from, ship_to, packaging_type, service_type, saturday_delivery, duty_payment, cod_info=None, label_file_type='GIF', ups_carrier_account=False):
|
||||
client = self._set_client(self.ship_wsdl, 'Ship', 'ShipmentRequest')
|
||||
request = self.factory_ns3.RequestType()
|
||||
request.RequestOption = 'nonvalidate'
|
||||
|
||||
request_type = "shipping"
|
||||
label = self.factory_ns2.LabelSpecificationType()
|
||||
label.LabelImageFormat = self.factory_ns2.LabelImageFormatType()
|
||||
label.LabelImageFormat.Code = label_file_type
|
||||
label.LabelImageFormat.Description = label_file_type
|
||||
if label_file_type != 'GIF':
|
||||
label.LabelStockSize = self.factory_ns2.LabelStockSizeType()
|
||||
label.LabelStockSize.Height = '6'
|
||||
label.LabelStockSize.Width = '4'
|
||||
|
||||
shipment = self.factory_ns2.ShipmentType()
|
||||
shipment.Description = shipment_info.get('description')
|
||||
|
||||
for package in self.set_package_detail(client, packages, packaging_type, ship_from, ship_to, cod_info, request_type):
|
||||
shipment.Package.append(package)
|
||||
|
||||
shipment.Shipper = self.factory_ns2.ShipperType()
|
||||
shipment.Shipper.Address = self.factory_ns2.ShipAddressType()
|
||||
shipment.Shipper.AttentionName = (shipper.name or '')[:35]
|
||||
shipment.Shipper.Name = (shipper.parent_id.name or shipper.name or '')[:35]
|
||||
shipment.Shipper.Address.AddressLine = [l for l in [shipper.street or '', shipper.street2 or ''] if l]
|
||||
shipment.Shipper.Address.City = shipper.city or ''
|
||||
shipment.Shipper.Address.PostalCode = shipper.zip or ''
|
||||
shipment.Shipper.Address.CountryCode = shipper.country_id.code or ''
|
||||
if shipper.country_id.code in ('US', 'CA', 'IE'):
|
||||
shipment.Shipper.Address.StateProvinceCode = shipper.state_id.code or ''
|
||||
shipment.Shipper.ShipperNumber = self.shipper_number or ''
|
||||
shipment.Shipper.Phone = self.factory_ns2.ShipPhoneType()
|
||||
shipment.Shipper.Phone.Number = self._clean_phone_number(shipper.phone)
|
||||
|
||||
shipment.ShipFrom = self.factory_ns2.ShipFromType()
|
||||
shipment.ShipFrom.Address = self.factory_ns2.ShipAddressType()
|
||||
shipment.ShipFrom.AttentionName = (ship_from.name or '')[:35]
|
||||
shipment.ShipFrom.Name = (ship_from.parent_id.name or ship_from.name or '')[:35]
|
||||
shipment.ShipFrom.Address.AddressLine = [l for l in [ship_from.street or '', ship_from.street2 or ''] if l]
|
||||
shipment.ShipFrom.Address.City = ship_from.city or ''
|
||||
shipment.ShipFrom.Address.PostalCode = ship_from.zip or ''
|
||||
shipment.ShipFrom.Address.CountryCode = ship_from.country_id.code or ''
|
||||
if ship_from.country_id.code in ('US', 'CA', 'IE'):
|
||||
shipment.ShipFrom.Address.StateProvinceCode = ship_from.state_id.code or ''
|
||||
shipment.ShipFrom.Phone = self.factory_ns2.ShipPhoneType()
|
||||
shipment.ShipFrom.Phone.Number = self._clean_phone_number(ship_from.phone)
|
||||
|
||||
shipment.ShipTo = self.factory_ns2.ShipToType()
|
||||
shipment.ShipTo.Address = self.factory_ns2.ShipToAddressType()
|
||||
shipment.ShipTo.AttentionName = (ship_to.name or '')[:35]
|
||||
shipment.ShipTo.Name = (ship_to.parent_id.name or ship_to.name or '')[:35]
|
||||
shipment.ShipTo.Address.AddressLine = [l for l in [ship_to.street or '', ship_to.street2 or ''] if l]
|
||||
shipment.ShipTo.Address.City = ship_to.city or ''
|
||||
shipment.ShipTo.Address.PostalCode = ship_to.zip or ''
|
||||
shipment.ShipTo.Address.CountryCode = ship_to.country_id.code or ''
|
||||
if ship_to.country_id.code in ('US', 'CA', 'IE'):
|
||||
shipment.ShipTo.Address.StateProvinceCode = ship_to.state_id.code or ''
|
||||
shipment.ShipTo.Phone = self.factory_ns2.ShipPhoneType()
|
||||
shipment.ShipTo.Phone.Number = self._clean_phone_number(shipment_info['phone'])
|
||||
if not ship_to.commercial_partner_id.is_company:
|
||||
shipment.ShipTo.Address.ResidentialAddressIndicator = None
|
||||
|
||||
shipment.Service = self.factory_ns2.ServiceType()
|
||||
shipment.Service.Code = service_type or ''
|
||||
shipment.Service.Description = 'Service Code'
|
||||
if service_type == "96":
|
||||
shipment.NumOfPiecesInShipment = int(shipment_info.get('total_qty'))
|
||||
shipment.ShipmentRatingOptions = self.factory_ns2.RateInfoType()
|
||||
shipment.ShipmentRatingOptions.NegotiatedRatesIndicator = 1
|
||||
|
||||
# Shipments from US to CA or PR require extra info
|
||||
if ship_from.country_id.code == 'US' and ship_to.country_id.code in ['CA', 'PR']:
|
||||
shipment.InvoiceLineTotal = self.factory_ns2.CurrencyMonetaryType()
|
||||
shipment.InvoiceLineTotal.CurrencyCode = shipment_info.get('itl_currency_code')
|
||||
shipment.InvoiceLineTotal.MonetaryValue = shipment_info.get('ilt_monetary_value')
|
||||
|
||||
# set the default method for payment using shipper account
|
||||
payment_info = self.factory_ns2.PaymentInfoType()
|
||||
shipcharge = self.factory_ns2.ShipmentChargeType()
|
||||
shipcharge.Type = '01'
|
||||
|
||||
# Bill Recevier 'Bill My Account'
|
||||
if ups_carrier_account:
|
||||
shipcharge.BillReceiver = self.factory_ns2.BillReceiverType()
|
||||
shipcharge.BillReceiver.Address = self.factory_ns2.BillReceiverAddressType()
|
||||
shipcharge.BillReceiver.AccountNumber = ups_carrier_account
|
||||
shipcharge.BillReceiver.Address.PostalCode = ship_to.zip
|
||||
else:
|
||||
shipcharge.BillShipper = self.factory_ns2.BillShipperType()
|
||||
shipcharge.BillShipper.AccountNumber = self.shipper_number or ''
|
||||
|
||||
payment_info.ShipmentCharge = [shipcharge]
|
||||
|
||||
if duty_payment == 'SENDER':
|
||||
duty_charge = self.factory_ns2.ShipmentChargeType()
|
||||
duty_charge.Type = '02'
|
||||
duty_charge.BillShipper = self.factory_ns2.BillShipperType()
|
||||
duty_charge.BillShipper.AccountNumber = self.shipper_number or ''
|
||||
payment_info.ShipmentCharge.append(duty_charge)
|
||||
|
||||
shipment.PaymentInformation = payment_info
|
||||
|
||||
if saturday_delivery:
|
||||
shipment.ShipmentServiceOptions = self.factory_ns2.ShipmentServiceOptionsType()
|
||||
shipment.ShipmentServiceOptions.SaturdayDeliveryIndicator = saturday_delivery
|
||||
else:
|
||||
shipment.ShipmentServiceOptions = ''
|
||||
self.shipment = shipment
|
||||
self.label = label
|
||||
self.request = request
|
||||
self.label_file_type = label_file_type
|
||||
|
||||
|
||||
def patched_set_package_detail(self, client, packages, packaging_type, ship_from, ship_to, cod_info, request_type):
|
||||
Packages = []
|
||||
if request_type == "rating":
|
||||
MeasurementType = self.factory_ns2.CodeDescriptionType
|
||||
elif request_type == "shipping":
|
||||
MeasurementType = self.factory_ns2.ShipUnitOfMeasurementType
|
||||
for i, p in enumerate(packages):
|
||||
package = self.factory_ns2.PackageType()
|
||||
if hasattr(package, 'Packaging'):
|
||||
package.Packaging = self.factory_ns2.PackagingType()
|
||||
package.Packaging.Code = p.packaging_type or packaging_type or ''
|
||||
elif hasattr(package, 'PackagingType'):
|
||||
package.PackagingType = self.factory_ns2.CodeDescriptionType()
|
||||
package.PackagingType.Code = p.packaging_type or packaging_type or ''
|
||||
|
||||
if p.dimension_unit and any(p.dimension.values()):
|
||||
package.Dimensions = self.factory_ns2.DimensionsType()
|
||||
package.Dimensions.UnitOfMeasurement = MeasurementType()
|
||||
package.Dimensions.UnitOfMeasurement.Code = p.dimension_unit or ''
|
||||
package.Dimensions.Length = p.dimension['length'] or ''
|
||||
package.Dimensions.Width = p.dimension['width'] or ''
|
||||
package.Dimensions.Height = p.dimension['height'] or ''
|
||||
|
||||
if cod_info:
|
||||
package.PackageServiceOptions = self.factory_ns2.PackageServiceOptionsType()
|
||||
package.PackageServiceOptions.COD = self.factory_ns2.CODType()
|
||||
package.PackageServiceOptions.COD.CODFundsCode = str(cod_info['funds_code'])
|
||||
package.PackageServiceOptions.COD.CODAmount = self.factory_ns2.CODAmountType() if request_type == 'rating' else self.factory_ns2.CurrencyMonetaryType()
|
||||
package.PackageServiceOptions.COD.CODAmount.MonetaryValue = cod_info['monetary_value']
|
||||
package.PackageServiceOptions.COD.CODAmount.CurrencyCode = cod_info['currency']
|
||||
|
||||
# Hibou Insurance & Signature Requirement
|
||||
if p.insurance_value:
|
||||
if not package.PackageServiceOptions:
|
||||
package.PackageServiceOptions = self.factory_ns2.PackageServiceOptionsType()
|
||||
if not package.PackageServiceOptions.DeclaredValue:
|
||||
if request_type == 'shipping':
|
||||
package.PackageServiceOptions.DeclaredValue = self.factory_ns2.PackageDeclaredValueType()
|
||||
else:
|
||||
package.PackageServiceOptions.DeclaredValue = self.factory_ns2.ShipperDeclaredValueType()
|
||||
package.PackageServiceOptions.DeclaredValue.MonetaryValue = p.insurance_value
|
||||
package.PackageServiceOptions.DeclaredValue.CurrencyCode = p.insurance_currency_code
|
||||
if p.signature_required:
|
||||
if not package.PackageServiceOptions:
|
||||
package.PackageServiceOptions = self.factory_ns2.PackageServiceOptionsType()
|
||||
if not package.PackageServiceOptions.DeliveryConfirmation:
|
||||
package.PackageServiceOptions.DeliveryConfirmation = self.factory_ns2.DeliveryConfirmationType()
|
||||
package.PackageServiceOptions.DeliveryConfirmation.DCISType = p.signature_required
|
||||
|
||||
package.PackageWeight = self.factory_ns2.PackageWeightType()
|
||||
package.PackageWeight.UnitOfMeasurement = MeasurementType()
|
||||
package.PackageWeight.UnitOfMeasurement.Code = p.weight_unit or ''
|
||||
package.PackageWeight.Weight = p.weight or ''
|
||||
|
||||
# Package and shipment reference text is only allowed for shipments within
|
||||
# the USA and within Puerto Rico. This is a UPS limitation.
|
||||
if (p.name and ship_from.country_id.code in ('US') and ship_to.country_id.code in ('US')):
|
||||
reference_number = self.factory_ns2.ReferenceNumberType()
|
||||
reference_number.Code = 'PM'
|
||||
reference_number.Value = p.name
|
||||
reference_number.BarCodeIndicator = p.name
|
||||
package.ReferenceNumber = reference_number
|
||||
|
||||
Packages.append(package)
|
||||
return Packages
|
||||
|
||||
|
||||
UPSRequest.__init__ = patched__init__
|
||||
UPSRequest._set_client = patched_set_client
|
||||
UPSRequest.get_shipping_price = patched_get_shipping_price
|
||||
UPSRequest.send_shipping = patched_send_shipping
|
||||
UPSRequest.set_package_detail = patched_set_package_detail
|
||||
|
||||
|
||||
def patched__init__2(self, carrier, weight, quant_pack=False, name='',
|
||||
insurance_value=False, insurance_currency_code=False, signature_required=False):
|
||||
self.weight = carrier._ups_convert_weight(weight, carrier.ups_package_weight_unit)
|
||||
self.weight_unit = carrier.ups_package_weight_unit
|
||||
self.name = name
|
||||
self.dimension_unit = carrier.ups_package_dimension_unit
|
||||
if quant_pack:
|
||||
self.dimension = {'length': quant_pack.packaging_length, 'width': quant_pack.width, 'height': quant_pack.height}
|
||||
else:
|
||||
self.dimension = {'length': carrier.ups_default_package_type_id.packaging_length, 'width': carrier.ups_default_package_type_id.width, 'height': carrier.ups_default_package_type_id.height}
|
||||
self.packaging_type = quant_pack and quant_pack.shipper_package_code or False
|
||||
self.insurance_value = insurance_value
|
||||
self.insurance_currency_code = insurance_currency_code
|
||||
self.signature_required = signature_required
|
||||
|
||||
|
||||
Package.__init__ = patched__init__2
|
||||
|
||||
15
delivery_ups_hibou/views/stock_views.xml
Normal file
15
delivery_ups_hibou/views/stock_views.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="ups_view_warehouse" model="ir.ui.view">
|
||||
<field name="name">stock.warehouse</field>
|
||||
<field name="model">stock.warehouse</field>
|
||||
<field name="inherit_id" ref="stock.view_warehouse" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='partner_id']" position="after">
|
||||
<field name="ups_shipper_number"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user