<?xml version="1.0" encoding="UTF-8"?>
<!-- BussObj:salesorders -->
<!-- CDM:salesorderbook 1.1 -->
<!-- CDM_section:salesorder 1.1 -->
<!-- CDM_section:customer 1.1 -->
<!-- CDM_section:organization 1.1 -->
<!-- CDM_section:contact 1.1 -->
<!-- CDM_section:delivery 1.1 -->
<!-- CDM_section:billing 1.1 -->
<!-- CDM_section:payment 1.1 -->
<!-- CDM_section:shipping 1.1 -->
<!-- CDM_section:product 1.1 -->

<!ELEMENT salesorderbook (metadata,data)>

<!ELEMENT metadata (account,transformer,timestamp,signature,requestor,description,coredatamodel,coredatamodel_version,source,businessobject,instance,multi)>
<!ELEMENT account (#PCDATA)>
<!ELEMENT transformer (#PCDATA)>
<!ELEMENT timestamp (#PCDATA)>
<!ELEMENT signature (#PCDATA)>
<!ELEMENT requestor (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT coredatamodel (#PCDATA)>
<!ELEMENT coredatamodel_version (#PCDATA)>
<!ELEMENT source (#PCDATA)>
<!ELEMENT businessobject (#PCDATA)>
<!ELEMENT instance (#PCDATA)>
<!ELEMENT multi (#PCDATA)>

<!ELEMENT data (salesorders*)>
<!ELEMENT generic (id,erp_id,coupon_code,date_purchased,status,currency,currency_exchange_rate,order_total,order_total_vat,order_discount,subject,description,internal_notes,date_created,date_modified)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT erp_id (#PCDATA)>
<!ELEMENT coupon_code (#PCDATA)>
<!ELEMENT date_purchased (#PCDATA)>
<!ELEMENT status (#PCDATA)>
<!ELEMENT currency (#PCDATA)>
<!ELEMENT currency_exchange_rate (#PCDATA)>
<!ELEMENT order_total (#PCDATA)>
<!ELEMENT order_total_vat (#PCDATA)>
<!ELEMENT order_discount (#PCDATA)>
<!ELEMENT subject (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT internal_notes (#PCDATA)>
<!ELEMENT date_created (#PCDATA)>
<!ELEMENT date_modified (#PCDATA)>
<!ELEMENT customer (id,erp_id,type)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT erp_id (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT customer_organization (id,erp_id,name,address,city,zipcode,state,country,date_started,date_finished,organisational_form,phone,date_created,date_modified)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT erp_id (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<!ELEMENT zipcode (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT date_started (#PCDATA)>
<!ELEMENT date_finished (#PCDATA)>
<!ELEMENT organisational_form (#PCDATA)>
<!ELEMENT phone (#PCDATA)>
<!ELEMENT date_created (#PCDATA)>
<!ELEMENT date_modified (#PCDATA)>
<!ELEMENT customer_contact (id,erp_id,organization_erp_id,organization_department,name,firstname,lastname,salutation,gender,dateofbirth,placeofbirth,phone_private,phone_mobile,phone_business,fax_business,email_business,email_private,private_address,private_zipcode,private_city,private_state,private_country,optin_email,optout_email,optout_phone,date_created,date_modified)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT erp_id (#PCDATA)>
<!ELEMENT organization_erp_id (#PCDATA)>
<!ELEMENT organization_department (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT salutation (#PCDATA)>
<!ELEMENT gender (#PCDATA)>
<!ELEMENT dateofbirth (#PCDATA)>
<!ELEMENT placeofbirth (#PCDATA)>
<!ELEMENT phone_private (#PCDATA)>
<!ELEMENT phone_mobile (#PCDATA)>
<!ELEMENT phone_business (#PCDATA)>
<!ELEMENT fax_business (#PCDATA)>
<!ELEMENT email_business (#PCDATA)>
<!ELEMENT email_private (#PCDATA)>
<!ELEMENT private_address (#PCDATA)>
<!ELEMENT private_zipcode (#PCDATA)>
<!ELEMENT private_city (#PCDATA)>
<!ELEMENT private_state (#PCDATA)>
<!ELEMENT private_country (#PCDATA)>
<!ELEMENT optin_email (#PCDATA)>
<!ELEMENT optout_email (#PCDATA)>
<!ELEMENT optout_phone (#PCDATA)>
<!ELEMENT date_created (#PCDATA)>
<!ELEMENT date_modified (#PCDATA)>
<!ELEMENT delivery (name,organization,address,city,zipcode,state,country,date_created,date_modified)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT organization (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<!ELEMENT zipcode (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT date_created (#PCDATA)>
<!ELEMENT date_modified (#PCDATA)>
<!ELEMENT billing (contact_fullname,contact_firstname,contact_lastname,contact_lastname_pre,organization_name,reference_customer,address,city,zipcode,state,country,date_created,date_modified)>
<!ELEMENT contact_fullname (#PCDATA)>
<!ELEMENT contact_firstname (#PCDATA)>
<!ELEMENT contact_lastname (#PCDATA)>
<!ELEMENT contact_lastname_pre (#PCDATA)>
<!ELEMENT organization_name (#PCDATA)>
<!ELEMENT reference_customer (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<!ELEMENT zipcode (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT date_created (#PCDATA)>
<!ELEMENT date_modified (#PCDATA)>
<!ELEMENT payments (payment*)>
<!ELEMENT payment (id,psp,payment_type,payment_issuer,amount,currency,txn,description,payment_status,date_created,date_modified)>
<!ATTLIST payment id CDATA #REQUIRED>
<!ELEMENT id (#PCDATA)>
<!ELEMENT psp (#PCDATA)>
<!ELEMENT payment_type (#PCDATA)>
<!ELEMENT payment_issuer (#PCDATA)>
<!ELEMENT amount (#PCDATA)>
<!ELEMENT currency (#PCDATA)>
<!ELEMENT txn (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT payment_status (#PCDATA)>
<!ELEMENT date_created (#PCDATA)>
<!ELEMENT date_modified (#PCDATA)>
<!ELEMENT shipping (method,carrier,tracking_number,tracking_zipcode,shipping_costs,description,date_created,date_modified)>
<!ELEMENT method (#PCDATA)>
<!ELEMENT carrier (#PCDATA)>
<!ELEMENT tracking_number (#PCDATA)>
<!ELEMENT tracking_zipcode (#PCDATA)>
<!ELEMENT shipping_costs (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT date_created (#PCDATA)>
<!ELEMENT date_modified (#PCDATA)>
<!ELEMENT products (product*)>
<!ELEMENT product (id,erp_id,product_type,model,name_nl,description_nl,price,final_price,vat,quantity,total)>
<!ATTLIST product id CDATA #REQUIRED>
<!ELEMENT id (#PCDATA)>
<!ELEMENT erp_id (#PCDATA)>
<!ELEMENT product_type (#PCDATA)>
<!ELEMENT model (#PCDATA)>
<!ELEMENT name_nl (#PCDATA)>
<!ELEMENT description_nl (#PCDATA)>
<!ELEMENT price (#PCDATA)>
<!ELEMENT final_price (#PCDATA)>
<!ELEMENT vat (#PCDATA)>
<!ELEMENT quantity (#PCDATA)>
<!ELEMENT total (#PCDATA)>
