com.ibm.commerce.inventory.commands

Interface VendorUpdateCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, ToolsControllerCommand
    All Known Implementing Classes:
    VendorUpdateCmdImpl


    public interface VendorUpdateCmd
    extends ToolsControllerCommand
    Update the vendor.

    This command requires to have the store entity id and language id set in the command context.

    Parameters

    EC_XMLObject
    An input xml_string that contains all required data for updating the vendor.

    Example xml_string for vendor:

    
     <?xml version="1.0" encoding="UTF-8"?>
     <XML>
            <XMLFile>inventory.VendorChangeNotebook</XMLFile>
            <vendorId>1001</vendorId>
            <vendorName>vendor name</vendorName>
            <description>description of the vendor</description>
            <address1>Line 1 of address</address1>
            <address2>Line 2 of address</address2>
            <address3>Line 3 of address</address3>
            <businessTitle>business title</businessTitle>
            <city>city</city>
            <country>country</country>
            <email1>email address</email1>
            <fax1>fax number</fax1>
            <firstName>first name</firstName>
            <lastName>last name</lastName>
            <middleName>middle name</middleName>
            <personTitle>person title</personTitle>
            <phone1>phone number</phone1>
            <state>state</state>
            <zipCode>zip code</zipCode>
     </XML>
    
     
    URL
    The URL to be called when the command completes successfully.

    Exceptions

    When the required fields are missing or not in the right data type, this command will throw exception to indicate which field is missing or bad.

    • Method Detail

      • setAddress1

        void setAddress1(java.lang.String newAddress1)
        Set vendor address line 1.
        Parameters:
        newAddress1 - java.lang.String
      • setAddress2

        void setAddress2(java.lang.String newAddress2)
        Set vendor address line 2.
        Parameters:
        newAddress2 - java.lang.String
      • setAddress3

        void setAddress3(java.lang.String newAddress3)
        Set vendor address line 3.
        Parameters:
        newAddress3 - java.lang.String
      • setBusinessTitle

        void setBusinessTitle(java.lang.String newBusinessTitle)
        Set the business title.
        Parameters:
        newBusinessTitle - java.lang.String
      • setCity

        void setCity(java.lang.String newCity)
        Set the city within this address.
        Parameters:
        newCity - java.lang.String
      • setCountry

        void setCountry(java.lang.String newCountry)
        Set the country or region within this address.
        Parameters:
        newCountry - java.lang.String
      • setDescription

        void setDescription(java.lang.String newDescription)
        Set the description of the vendor.
        Parameters:
        newDescription - java.lang.String
      • setEmail1

        void setEmail1(java.lang.String newEmail1)
        Set the primary e-mail address.
        Parameters:
        newEmail1 - java.lang.String
      • setFax1

        void setFax1(java.lang.String newFax1)
        Set the primary fax number.
        Parameters:
        newFax1 - java.lang.String
      • setFirstName

        void setFirstName(java.lang.String newFirstName)
        Set the first name for the contact person.
        Parameters:
        newFirstName - java.lang.String
      • setLastName

        void setLastName(java.lang.String newLastName)
        Set the last name for the contact person.
        Parameters:
        newLastName - java.lang.String
      • setMiddleName

        void setMiddleName(java.lang.String newMiddleName)
        Set the middle name for the contact person.
        Parameters:
        newMiddleName - java.lang.String
      • setPersonTitle

        void setPersonTitle(java.lang.String newPersonTitle)
        Set the business title for the contact person.
        Parameters:
        newPersonTitle - java.lang.String
      • setPhone1

        void setPhone1(java.lang.String newPhone1)
        Set the primary phone number.
        Parameters:
        newPhone1 - java.lang.String
      • setState

        void setState(java.lang.String newState)
        Set the state within this address.
        Parameters:
        newState - java.lang.String
      • setStoreAddressId

        void setStoreAddressId(java.lang.String newStoreAddressId)
        Set the store address identifier.
        Parameters:
        newStoreAddressId - java.lang.String
      • setVendorId

        void setVendorId(java.lang.String newVendorId)
        Set the vendor identifier.
        Parameters:
        newVendorId - java.lang.String
      • setVendorName

        void setVendorName(java.lang.String newVendorName)
        Set the vendor name.
        Parameters:
        newVendorName - java.lang.String
      • setZipCode

        void setZipCode(java.lang.String newZipCode)
        Set the ZIP code within this address.
        Parameters:
        newZipCode - java.lang.String