| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| mattel:address_file [2012/07/09 20:42] – dave | mattel:address_file [2025/05/22 21:53] (current) – external edit 127.0.0.1 |
|---|
| <Addresses> | <Addresses> |
| <Address CompanyID="LC_APPTASTIC" CompanyName="Apptastic Software Inc." CompanyType="VendorLC"> | <Address CompanyID="LC_APPTASTIC" CompanyName="Apptastic Software Inc." CompanyType="VendorLC"> |
| | |
| <CompanyAddr01>1010 Polytek Street</CompanyAddr01> | <CompanyAddr01>1010 Polytek Street</CompanyAddr01> |
| <CompanyAddr02>Unit 21</CompanyAddr02> | <CompanyAddr02>Unit 21</CompanyAddr02> |
| <CompanyZip>K1J 9J1</CompanyZip> | <CompanyZip>K1J 9J1</CompanyZip> |
| <CompanyWebPage>www.apptastic.com</CompanyWebPage> | <CompanyWebPage>www.apptastic.com</CompanyWebPage> |
| | |
| | <Contact ContactID="LC_APPTASTIC_DAVE" ContactName="Dave Stephenson"> |
| | <ContactPhone>(613) 748-7066</ContactPhone> |
| | <ContactFax>(613) 749-6910</ContactFax> |
| | <ContactEmail>[email protected]</ContactEmail> |
| | </Contact> |
| |
| </Address> | </Address> |
| |
| </code> | </code> |
| | |
| | ==== Address tags ==== |
| |
| The .addr file is an xml file with a <Addresses> root tag and multiple child <Address> tags. An <Address> tag would have the following attributes: | The .addr file is an xml file with a <Addresses> root tag and multiple child <Address> tags. An <Address> tag would have the following attributes: |
| |
| * companyid (required) - the id attribute is the connection between this address and an address for a product in the main xml file. | * CompanyID (required) - the id attribute is the connection between this address and an address for a product in the main xml file. |
| * companytype (required) - what type of address is this? | * CompanyType (required) - what type of address is this? |
| * companyname (required) - the name of the company as it should appear in Speed-Quote. | * CompanyName (required) - the name of the company as it should appear in Speed-Quote. |
| |
| The following values are valid for companytype attribute: | The following values are valid for CompanyType attribute: |
| |
| * VendorDomestic | * VendorDomestic |
| * CustomsBroker | * CustomsBroker |
| * Bank | * Bank |
| | |
| | Please see the Addresses worksheet in the {{:mattel:mattelspeedquotefields.xls|}} excel file for a list of <CompanyXXXX> tag fields and associated information. |
| | |
| | ==== Contact tags ==== |
| | |
| | An <Address> node can have multiple <Contact> tags which define the contacts within that company. A <Contact> tag has the following attributes: |
| | |
| | * ContactID (required) - the ContactID attribute is the connection between this contact and a contact for a product in the main xml file. |
| | * ContactName (required) - the name of the contact as it should appear in Speed-Quote. |
| | |
| | ==== Connection to main xml file ==== |
| | |
| | In the main xml file an address linking tag is used to link to a specific address or contact. The tag name for a company link is <Addr//COMPANYTYPE//Company> and the tag name for a contact link is <Addr//COMPANYTYPE//Contact>. Where //COMPANYTYPE// is one of the above CompanyType attribute values. |
| | |
| | The connection tags in the main xml file to link to the above example address would show as: |
| | |
| | <code> |
| | <AddrVendorLCCompany>LC_APPTASTIC</AddrVendorLCCompany> |
| | <AddrVendorLCContact>LC_APPTASTIC_DAVE</AddrVendorLCContact> |
| | </code> |