This is an old revision of the document!


type:
integration
supports-foxycart-version-from:
1.0
system:
cSharp, .net, asp.net
name:
Reading the transaction feed using XmlSerializer in cSharp.net
tags:
cSharp, .net, datafeed, xml
date:
2012-08-22
version:
v0.1

Reading the transaction datafeed with XmlSerializer class in c#

Please note: The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please post in our forum, but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.

Description

This post outlines the most effective way of reading the FoxyCart transaction data feed in c#.net and asp.net. It is written in c#, but could apply to any .net language.

The post is based around the XmlSerializer class which can serialize an XML file and give you a very easy way to the data using code such as transaction.customer_name. See here for details on XmlSerializer class http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx

In order to use the XmlSerializer object there are several steps (full detail provided in the installation section):

  1. Get a transaction feed XML file
  2. Create an XSD file using Visual Studio's XSD.exe tool
  3. Add some manual changes to the XSD to work around a bug in the way XSD.exe interprets arrays in XML files. See this page for details on why this is necesary: http://stackoverflow.com/questions/7581440/cs0030unable-to-generate-a-temporary-class
  4. Create a CS file (cSharp class) based on the XSD using Visual Studio's XSD.exe tool
  5. Use XmlSerializer object to access the data in your code

Installation

This section is not so much installation, as steps required to use this method. Either way, follow these steps to use this method.

The first section shows you how to create your own CS file for use with the XmlSerializer class. If you are lazy and/or just want to get this working without knowing the detail, you can jump straight to the 'Access the data' section where you can use the CS code i have included in this sample.

Create your CS file

In this section you will create a CS file that can be used with the XmlSerializer class in your code.

  • Unordered List ItemGet a copy of a Foxy Cart transaction feed XML file which has been decrypted and decoded. Ensure that it contains all of the available elements that you’ll need to use in your solution (for example, make sure it contains discounts, custom options etc if you use them). Save the file as FoxyData_v1.xml (the v1 represents the store version).
  • Open the Visual Studio 2010 command prompt and navigate to the location where FoxyData_v1.xml is saved
  • Enter the following command, this will generated a file called FoxyData_v1.xsd: xsd.exe FoxyData_v1.xml
  • Open FoxyData_v1.xsd in Notepad
  • Find and replace </xs:sequence> with </xs:sequence><xs:attribute name=“tmp” type=“xs:string” />. Save the updated XSD file.
  • In the Visual Studio 2010 command prompt enter the following command. This will generate a file called FoxyData_v1.cs: xsd.exe /c FoxyData_v1.xsd

Access the data

In this section, you will see how to use the class you created in the previous section in your code.

  • Identify the FoxyData_v1.cs you created in the previous section and drag/drop it into your solution in Visual Studio (anywhere will do). If you skipped this section, created a new class in your project called FoxyData_v1 and copy the code sample provided below into the CS file that gets generated.
  • Create a new ASPX page (web form) that you will use to test you code. Called it 'FoxyDatatest.aspx'
  • Open the code-behind file (FoxyDatatest.aspx.cs)
  • Add using System.IO; and using System.Xml.Serialization; to the using list
  • In the Page_Load method, add these lines of code. Replace c:\\transaction.xml with the physical path to your XML file from
using (FileStream feedStream = new FileStream("c:\\transaction.xml", FileMode.Open))
{
}
  • Add the following lines within your using statement. This will give you the foxyData object which is the root of your XML file
XmlSerializer foxyDataSerializer = new XmlSerializer(typeof(foxydata));
foxydata foxyData = (foxydata)foxyDataSerializer.Deserialize(feedStream);
  • You can now start using the foxyData object to access the transaction data. This is something to get you start which will get a foxydataTransactionsTransaction object and put the customer's last name into a string
foxydataTransactionsTransaction transaction = foxyData.transactions[0].transaction[0];
string customerLastName = transaction.customer_last_name;

(OPTIONAL) Tidy-up the class names

By default the XSD tool creates classes based on their location in the XML structure. In the case of FoxyCart, this can generate some fairly long and unfriendly class names, the worse example being:

foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_optionsTransaction_detail_option

In order to make your code more manageable, I recommend you rename these classes. The name is up to you, but I use the formula of replacing everything but the last element (the last word beginning with a capital letter) with FD. The only exceptions are the foxydata and newdataset classes which must remain what they are called by default.

When you rename the class in Visual Studio, ensure you use the smart-tag that pops-up to rename all references too.

This is how I rename the classes (note that the samples below have NOT been renamed, to avoid confusion): foxydataTransactions > FDTransactions

foxydataTransactionsTransaction > FDTransaction

foxydataTransactionsTransactionProcessor_response_details > FDProcessor_response_details

foxydataTransactionsTransactionDiscounts > FDDiscounts

foxydataTransactionsTransactionDiscountsDiscount > FDDiscount

foxydataTransactionsTransactionTransaction_details > FDTransactionDetails

foxydataTransactionsTransactionTransaction_detailsTransaction_detail > FDTransaction_detail

foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_options > FDTransaction_detail_options

foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_optionsTransaction_detail_option > FDTransaction_detail_option ''

Requirements

Visual Studio 2010 (or newer).

A Foxy Cart transaction feed XML file (v1.0). Decrypted and decoded. See other articles on how to decrypt and decode the FoxyCart transaction feed in .net.

Code

FoxyDataTest.aspx.cs

This is the complete code for the test ASPX page we create in the 'Access the data' section.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Xml.Serialization;
 
namespace BabbleBibAdmin.Secure
{
    public partial class FoxyDataTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (FileStream feedStream = new FileStream("c:\\transaction.xml", FileMode.Open))
            {
                XmlSerializer foxyDataSerializer = new XmlSerializer(typeof(foxydata));
                foxydata foxyData = (foxydata)foxyDataSerializer.Deserialize(feedStream);
 
                foxydataTransactionsTransaction transaction = foxyData.transactions[0].transaction[0];
                string customerLastName = transaction.customer_last_name;
            }
        }
    }
}

FoxyData_v1.cs

Use this code in your FoxyData_v1 class file if you skipped the 'Create your CS file' section in the installation instructions.

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.269
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
 
using System.Xml.Serialization;
 
// 
// This source code was auto-generated by xsd, Version=4.0.30319.1.
// 
 
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class foxydata {
 
    private string store_versionField;
 
    private foxydataTransactions[] transactionsField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string store_version {
        get {
            return this.store_versionField;
        }
        set {
            this.store_versionField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("transactions", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactions[] transactions {
        get {
            return this.transactionsField;
        }
        set {
            this.transactionsField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactions {
 
    private foxydataTransactionsTransaction[] transactionField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("transaction", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransaction[] transaction {
        get {
            return this.transactionField;
        }
        set {
            this.transactionField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransaction {
 
    private string idField;
 
    private string store_idField;
 
    private string store_versionField;
 
    private string is_testField;
 
    private string is_hiddenField;
 
    private string data_is_fedField;
 
    private string transaction_dateField;
 
    private string payment_typeField;
 
    private string payment_gateway_typeField;
 
    private string processor_responseField;
 
    private string purchase_orderField;
 
    private string cc_number_maskedField;
 
    private string cc_typeField;
 
    private string cc_exp_monthField;
 
    private string cc_exp_yearField;
 
    private string cc_start_date_monthField;
 
    private string cc_start_date_yearField;
 
    private string cc_issue_numberField;
 
    private string minfraud_scoreField;
 
    private string paypal_payer_idField;
 
    private string customer_idField;
 
    private string is_anonymousField;
 
    private string customer_first_nameField;
 
    private string customer_last_nameField;
 
    private string customer_companyField;
 
    private string customer_address1Field;
 
    private string customer_address2Field;
 
    private string customer_cityField;
 
    private string customer_stateField;
 
    private string customer_postal_codeField;
 
    private string customer_countryField;
 
    private string customer_phoneField;
 
    private string customer_emailField;
 
    private string customer_ipField;
 
    private string shipping_first_nameField;
 
    private string shipping_last_nameField;
 
    private string shipping_companyField;
 
    private string shipping_address1Field;
 
    private string shipping_address2Field;
 
    private string shipping_cityField;
 
    private string shipping_stateField;
 
    private string shipping_postal_codeField;
 
    private string shipping_countryField;
 
    private string shipping_phoneField;
 
    private string shipto_shipping_service_descriptionField;
 
    private string product_totalField;
 
    private string tax_totalField;
 
    private string shipping_totalField;
 
    private string order_totalField;
 
    private string receipt_urlField;
 
    private string taxesField;
 
    private string customer_passwordField;
 
    private string customer_password_saltField;
 
    private string customer_password_hash_typeField;
 
    private string customer_password_hash_configField;
 
    private string custom_fieldsField;
 
    private string shipto_addressesField;
 
    private string attributesField;
 
    private foxydataTransactionsTransactionProcessor_response_details[] processor_response_detailsField;
 
    private foxydataTransactionsTransactionDiscounts[] discountsField;
 
    private foxydataTransactionsTransactionTransaction_details[] transaction_detailsField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string id {
        get {
            return this.idField;
        }
        set {
            this.idField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string store_id {
        get {
            return this.store_idField;
        }
        set {
            this.store_idField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string store_version {
        get {
            return this.store_versionField;
        }
        set {
            this.store_versionField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string is_test {
        get {
            return this.is_testField;
        }
        set {
            this.is_testField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string is_hidden {
        get {
            return this.is_hiddenField;
        }
        set {
            this.is_hiddenField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string data_is_fed {
        get {
            return this.data_is_fedField;
        }
        set {
            this.data_is_fedField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string transaction_date {
        get {
            return this.transaction_dateField;
        }
        set {
            this.transaction_dateField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string payment_type {
        get {
            return this.payment_typeField;
        }
        set {
            this.payment_typeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string payment_gateway_type {
        get {
            return this.payment_gateway_typeField;
        }
        set {
            this.payment_gateway_typeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string processor_response {
        get {
            return this.processor_responseField;
        }
        set {
            this.processor_responseField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string purchase_order {
        get {
            return this.purchase_orderField;
        }
        set {
            this.purchase_orderField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string cc_number_masked {
        get {
            return this.cc_number_maskedField;
        }
        set {
            this.cc_number_maskedField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string cc_type {
        get {
            return this.cc_typeField;
        }
        set {
            this.cc_typeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string cc_exp_month {
        get {
            return this.cc_exp_monthField;
        }
        set {
            this.cc_exp_monthField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string cc_exp_year {
        get {
            return this.cc_exp_yearField;
        }
        set {
            this.cc_exp_yearField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string cc_start_date_month {
        get {
            return this.cc_start_date_monthField;
        }
        set {
            this.cc_start_date_monthField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string cc_start_date_year {
        get {
            return this.cc_start_date_yearField;
        }
        set {
            this.cc_start_date_yearField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string cc_issue_number {
        get {
            return this.cc_issue_numberField;
        }
        set {
            this.cc_issue_numberField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string minfraud_score {
        get {
            return this.minfraud_scoreField;
        }
        set {
            this.minfraud_scoreField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string paypal_payer_id {
        get {
            return this.paypal_payer_idField;
        }
        set {
            this.paypal_payer_idField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_id {
        get {
            return this.customer_idField;
        }
        set {
            this.customer_idField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string is_anonymous {
        get {
            return this.is_anonymousField;
        }
        set {
            this.is_anonymousField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_first_name {
        get {
            return this.customer_first_nameField;
        }
        set {
            this.customer_first_nameField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_last_name {
        get {
            return this.customer_last_nameField;
        }
        set {
            this.customer_last_nameField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_company {
        get {
            return this.customer_companyField;
        }
        set {
            this.customer_companyField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_address1 {
        get {
            return this.customer_address1Field;
        }
        set {
            this.customer_address1Field = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_address2 {
        get {
            return this.customer_address2Field;
        }
        set {
            this.customer_address2Field = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_city {
        get {
            return this.customer_cityField;
        }
        set {
            this.customer_cityField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_state {
        get {
            return this.customer_stateField;
        }
        set {
            this.customer_stateField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_postal_code {
        get {
            return this.customer_postal_codeField;
        }
        set {
            this.customer_postal_codeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_country {
        get {
            return this.customer_countryField;
        }
        set {
            this.customer_countryField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_phone {
        get {
            return this.customer_phoneField;
        }
        set {
            this.customer_phoneField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_email {
        get {
            return this.customer_emailField;
        }
        set {
            this.customer_emailField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_ip {
        get {
            return this.customer_ipField;
        }
        set {
            this.customer_ipField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_first_name {
        get {
            return this.shipping_first_nameField;
        }
        set {
            this.shipping_first_nameField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_last_name {
        get {
            return this.shipping_last_nameField;
        }
        set {
            this.shipping_last_nameField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_company {
        get {
            return this.shipping_companyField;
        }
        set {
            this.shipping_companyField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_address1 {
        get {
            return this.shipping_address1Field;
        }
        set {
            this.shipping_address1Field = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_address2 {
        get {
            return this.shipping_address2Field;
        }
        set {
            this.shipping_address2Field = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_city {
        get {
            return this.shipping_cityField;
        }
        set {
            this.shipping_cityField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_state {
        get {
            return this.shipping_stateField;
        }
        set {
            this.shipping_stateField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_postal_code {
        get {
            return this.shipping_postal_codeField;
        }
        set {
            this.shipping_postal_codeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_country {
        get {
            return this.shipping_countryField;
        }
        set {
            this.shipping_countryField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_phone {
        get {
            return this.shipping_phoneField;
        }
        set {
            this.shipping_phoneField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipto_shipping_service_description {
        get {
            return this.shipto_shipping_service_descriptionField;
        }
        set {
            this.shipto_shipping_service_descriptionField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_total {
        get {
            return this.product_totalField;
        }
        set {
            this.product_totalField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string tax_total {
        get {
            return this.tax_totalField;
        }
        set {
            this.tax_totalField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipping_total {
        get {
            return this.shipping_totalField;
        }
        set {
            this.shipping_totalField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string order_total {
        get {
            return this.order_totalField;
        }
        set {
            this.order_totalField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string receipt_url {
        get {
            return this.receipt_urlField;
        }
        set {
            this.receipt_urlField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string taxes {
        get {
            return this.taxesField;
        }
        set {
            this.taxesField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_password {
        get {
            return this.customer_passwordField;
        }
        set {
            this.customer_passwordField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_password_salt {
        get {
            return this.customer_password_saltField;
        }
        set {
            this.customer_password_saltField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_password_hash_type {
        get {
            return this.customer_password_hash_typeField;
        }
        set {
            this.customer_password_hash_typeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string customer_password_hash_config {
        get {
            return this.customer_password_hash_configField;
        }
        set {
            this.customer_password_hash_configField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string custom_fields {
        get {
            return this.custom_fieldsField;
        }
        set {
            this.custom_fieldsField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipto_addresses {
        get {
            return this.shipto_addressesField;
        }
        set {
            this.shipto_addressesField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string attributes {
        get {
            return this.attributesField;
        }
        set {
            this.attributesField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("processor_response_details", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransactionProcessor_response_details[] processor_response_details {
        get {
            return this.processor_response_detailsField;
        }
        set {
            this.processor_response_detailsField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("discounts", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransactionDiscounts[] discounts {
        get {
            return this.discountsField;
        }
        set {
            this.discountsField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("transaction_details", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransactionTransaction_details[] transaction_details {
        get {
            return this.transaction_detailsField;
        }
        set {
            this.transaction_detailsField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransactionProcessor_response_details {
 
    private string paymentTypeField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string PaymentType {
        get {
            return this.paymentTypeField;
        }
        set {
            this.paymentTypeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransactionDiscounts {
 
    private foxydataTransactionsTransactionDiscountsDiscount[] discountField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("discount", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransactionDiscountsDiscount[] discount {
        get {
            return this.discountField;
        }
        set {
            this.discountField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransactionDiscountsDiscount {
 
    private string codeField;
 
    private string valid_categoriesField;
 
    private string nameField;
 
    private string amountField;
 
    private string displayField;
 
    private string coupon_discount_typeField;
 
    private string coupon_discount_detailsField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string code {
        get {
            return this.codeField;
        }
        set {
            this.codeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string valid_categories {
        get {
            return this.valid_categoriesField;
        }
        set {
            this.valid_categoriesField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string name {
        get {
            return this.nameField;
        }
        set {
            this.nameField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string amount {
        get {
            return this.amountField;
        }
        set {
            this.amountField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string display {
        get {
            return this.displayField;
        }
        set {
            this.displayField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string coupon_discount_type {
        get {
            return this.coupon_discount_typeField;
        }
        set {
            this.coupon_discount_typeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string coupon_discount_details {
        get {
            return this.coupon_discount_detailsField;
        }
        set {
            this.coupon_discount_detailsField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransactionTransaction_details {
 
    private foxydataTransactionsTransactionTransaction_detailsTransaction_detail[] transaction_detailField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("transaction_detail", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransactionTransaction_detailsTransaction_detail[] transaction_detail {
        get {
            return this.transaction_detailField;
        }
        set {
            this.transaction_detailField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransactionTransaction_detailsTransaction_detail {
 
    private string product_nameField;
 
    private string product_priceField;
 
    private string product_quantityField;
 
    private string product_weightField;
 
    private string product_codeField;
 
    private string imageField;
 
    private string urlField;
 
    private string lengthField;
 
    private string widthField;
 
    private string heightField;
 
    private string downloadable_urlField;
 
    private string sub_token_urlField;
 
    private string subscription_frequencyField;
 
    private string subscription_startdateField;
 
    private string subscription_nextdateField;
 
    private string subscription_enddateField;
 
    private string is_future_line_itemField;
 
    private string shiptoField;
 
    private string category_descriptionField;
 
    private string category_codeField;
 
    private string product_delivery_typeField;
 
    private foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_options[] transaction_detail_optionsField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_name {
        get {
            return this.product_nameField;
        }
        set {
            this.product_nameField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_price {
        get {
            return this.product_priceField;
        }
        set {
            this.product_priceField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_quantity {
        get {
            return this.product_quantityField;
        }
        set {
            this.product_quantityField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_weight {
        get {
            return this.product_weightField;
        }
        set {
            this.product_weightField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_code {
        get {
            return this.product_codeField;
        }
        set {
            this.product_codeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string image {
        get {
            return this.imageField;
        }
        set {
            this.imageField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string url {
        get {
            return this.urlField;
        }
        set {
            this.urlField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string length {
        get {
            return this.lengthField;
        }
        set {
            this.lengthField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string width {
        get {
            return this.widthField;
        }
        set {
            this.widthField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string height {
        get {
            return this.heightField;
        }
        set {
            this.heightField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string downloadable_url {
        get {
            return this.downloadable_urlField;
        }
        set {
            this.downloadable_urlField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string sub_token_url {
        get {
            return this.sub_token_urlField;
        }
        set {
            this.sub_token_urlField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string subscription_frequency {
        get {
            return this.subscription_frequencyField;
        }
        set {
            this.subscription_frequencyField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string subscription_startdate {
        get {
            return this.subscription_startdateField;
        }
        set {
            this.subscription_startdateField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string subscription_nextdate {
        get {
            return this.subscription_nextdateField;
        }
        set {
            this.subscription_nextdateField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string subscription_enddate {
        get {
            return this.subscription_enddateField;
        }
        set {
            this.subscription_enddateField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string is_future_line_item {
        get {
            return this.is_future_line_itemField;
        }
        set {
            this.is_future_line_itemField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string shipto {
        get {
            return this.shiptoField;
        }
        set {
            this.shiptoField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string category_description {
        get {
            return this.category_descriptionField;
        }
        set {
            this.category_descriptionField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string category_code {
        get {
            return this.category_codeField;
        }
        set {
            this.category_codeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_delivery_type {
        get {
            return this.product_delivery_typeField;
        }
        set {
            this.product_delivery_typeField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("transaction_detail_options", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_options[] transaction_detail_options {
        get {
            return this.transaction_detail_optionsField;
        }
        set {
            this.transaction_detail_optionsField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_options {
 
    private foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_optionsTransaction_detail_option[] transaction_detail_optionField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("transaction_detail_option", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_optionsTransaction_detail_option[] transaction_detail_option {
        get {
            return this.transaction_detail_optionField;
        }
        set {
            this.transaction_detail_optionField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
public partial class foxydataTransactionsTransactionTransaction_detailsTransaction_detailTransaction_detail_optionsTransaction_detail_option {
 
    private string product_option_nameField;
 
    private string product_option_valueField;
 
    private string price_modField;
 
    private string weight_modField;
 
    private string tmpField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_option_name {
        get {
            return this.product_option_nameField;
        }
        set {
            this.product_option_nameField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string product_option_value {
        get {
            return this.product_option_valueField;
        }
        set {
            this.product_option_valueField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string price_mod {
        get {
            return this.price_modField;
        }
        set {
            this.price_modField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    public string weight_mod {
        get {
            return this.weight_modField;
        }
        set {
            this.weight_modField = value;
        }
    }
 
    /// <remarks/>
    [System.Xml.Serialization.XmlAttributeAttribute()]
    public string tmp {
        get {
            return this.tmpField;
        }
        set {
            this.tmpField = value;
        }
    }
}
 
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class NewDataSet {
 
    private foxydata[] itemsField;
 
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("foxydata")]
    public foxydata[] Items {
        get {
            return this.itemsField;
        }
        set {
            this.itemsField = value;
        }
    }
}

Site Tools