Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace LightSpeed.Core.Models
- {
- public class Sale
- {
- public int saleID { get; set; }
- public DateTime timeStamp { get; set; }
- public decimal discountPercent { get; set; }
- public bool completed { get; set; }
- public bool archived { get; set; }
- public bool voided { get; set; }
- public bool enablePromotions { get; set; }
- public string referenceNumber { get; set; }
- public string referenceNumberSource { get; set; }
- public decimal tax1Rate { get; set; }
- public decimal tax2Rate { get; set; }
- public decimal change { get; set; }
- public string ticketNumber { get; set; }
- public decimal calcDiscount { get; set; }
- public decimal calcTotal { get; set; }
- public decimal calcSubtotal { get; set; }
- public decimal calcTaxable { get; set; }
- public decimal calcNonTaxable { get; set; }
- public decimal calcAvgCost { get; set; }
- public decimal calcFIFOCost { get; set; }
- public decimal calcTax1 { get; set; }
- public decimal calcTax2 { get; set; }
- public decimal calcPayments { get; set; }
- public decimal total { get; set; }
- public decimal totalDue { get; set; }
- public decimal balance { get; set; }
- public int customerID { get; set; }
- public int discountID { get; set; }
- public int employeeID { get; set; }
- public int quoteID { get; set; }
- public int registerID { get; set; }
- public int shipToID { get; set; }
- public int shopID { get; set; }
- public int taxCategoryID { get; set; }
- public Customer Customer { get; set; }
- public Quote Quote { get; set; }
- public TaxCategory TaxCategory { get; set; }
- public SaleLines SaleLines { get; set; }
- //public TaxClassTotals TaxClassTotals { get; set; }
- public decimal taxTotal { get; set; }
- public Discount Discount { get; set; }
- public SalePayments SalePayments { get; set; }
- }
- public class CCCharge
- {
- public string ccChargeID { get; set; }
- public string gatewayTransID { get; set; }
- public string xnum { get; set; }
- public string voided { get; set; }
- public string refunded { get; set; }
- public string amount { get; set; }
- public string exp { get; set; }
- public string authOnly { get; set; }
- public string authCode { get; set; }
- public string cardType { get; set; }
- public string entryMethod { get; set; }
- public string cardholderName { get; set; }
- public string isDebit { get; set; }
- public string timeStamp { get; set; }
- public string saleID { get; set; }
- }
- public class SalePayment
- {
- public string salePaymentID { get; set; }
- public string amount { get; set; }
- public string createTime { get; set; }
- public string archived { get; set; }
- public string saleID { get; set; }
- public string paymentTypeID { get; set; }
- public string ccChargeID { get; set; }
- public string registerID { get; set; }
- public string employeeID { get; set; }
- public string creditAccountID { get; set; }
- public PaymentType PaymentType { get; set; }
- public CCCharge CCCharge { get; set; }
- }
- public class SalePayments
- {
- public object SalePayment { get; set; }
- public List<SalePayment> Payments = new List<SalePayment>();
- }
- public class PaymentType
- {
- public string name { get; set; }
- public string type { get; set; }
- }
- public class Attributes
- {
- public string count { get; set; }
- }
- public class ContactPhone
- {
- public string number { get; set; }
- public string useType { get; set; }
- }
- public class Phones
- {
- public ContactPhone ContactPhone { get; set; }
- }
- public class ContactEmail
- {
- public string address { get; set; }
- public string useType { get; set; }
- }
- public class Emails
- {
- public List<ContactEmail> ContactEmails = new List<ContactEmail>();
- public object ContactEmail { get; set; }
- }
- public class Contact
- {
- public int contactID { get; set; }
- public string custom { get; set; }
- public string noEmail { get; set; }
- public string noPhone { get; set; }
- public string noMail { get; set; }
- public DateTime timeStamp { get; set; }
- public object Addresses { get; set; }
- public List<ContactAddress> ContactAddresses = new List<ContactAddress>();
- public Phones Phones { get; set; }
- public Emails Emails { get; set; }
- public string Websites { get; set; }
- }
- public class Customer
- {
- public int customerID { get; set; }
- public string firstName { get; set; }
- public string lastName { get; set; }
- public string archived { get; set; }
- public string title { get; set; }
- public string company { get; set; }
- public DateTime createTime { get; set; }
- public DateTime timeStamp { get; set; }
- public string contactID { get; set; }
- public string creditAccountID { get; set; }
- public string customerTypeID { get; set; }
- public string discountID { get; set; }
- public string employeeID { get; set; }
- public string noteID { get; set; }
- public int taxCategoryID { get; set; }
- public Contact Contact { get; set; }
- }
- public class Quote
- {
- public int quoteID { get; set; }
- public string issueDate { get; set; }
- public string notes { get; set; }
- public string archived { get; set; }
- public int employeeID { get; set; }
- public int saleID { get; set; }
- }
- public class TaxCategoryClass
- {
- public string taxCategoryClassID { get; set; }
- public string tax1Rate { get; set; }
- public string tax2Rate { get; set; }
- public DateTime timeStamp { get; set; }
- public string taxCategoryID { get; set; }
- public string taxClassID { get; set; }
- }
- public class TaxCategoryClasses
- {
- public List<TaxCategoryClass> TaxCategoryClass { get; set; }
- }
- public class TaxCategory
- {
- public int taxCategoryID { get; set; }
- public string tax1Name { get; set; }
- public string tax2Name { get; set; }
- public string tax1Rate { get; set; }
- public string tax2Rate { get; set; }
- public DateTime timeStamp { get; set; }
- public TaxCategoryClasses TaxCategoryClasses { get; set; }
- }
- public class TaxClass
- {
- public int taxClassID { get; set; }
- public string name { get; set; }
- public DateTime timeStamp { get; set; }
- }
- public class Note
- {
- public string noteID { get; set; }
- public string note { get; set; }
- public string isPublic { get; set; }
- public DateTime timeStamp { get; set; }
- }
- public class ItemPrice
- {
- public decimal amount { get; set; }
- public string useType { get; set; }
- }
- public class Prices
- {
- public List<ItemPrice> ItemPrice { get; set; }
- }
- public class Item
- {
- public string itemID { get; set; }
- public string systemSku { get; set; }
- public decimal defaultCost { get; set; }
- public decimal avgCost { get; set; }
- public bool tax { get; set; }
- public string archived { get; set; }
- public string itemType { get; set; }
- public string description { get; set; }
- public string modelYear { get; set; }
- public string upc { get; set; }
- public string ean { get; set; }
- public string customSku { get; set; }
- public string manufacturerSku { get; set; }
- public DateTime timeStamp { get; set; }
- public string categoryID { get; set; }
- public string taxClassID { get; set; }
- public string departmentID { get; set; }
- public string itemMatrixID { get; set; }
- public string itemAttributesID { get; set; }
- public string manufacturerID { get; set; }
- public string noteID { get; set; }
- public string seasonID { get; set; }
- public string defaultVendorID { get; set; }
- public string itemECommerceID { get; set; }
- public Prices Prices { get; set; }
- }
- public class SaleLine
- {
- public int saleLineID { get; set; }
- public DateTime createTime { get; set; }
- public DateTime timeStamp { get; set; }
- public decimal unitQuantity { get; set; }
- public decimal unitPrice { get; set; }
- public string normalUnitPrice { get; set; }
- public decimal discountAmount { get; set; }
- public decimal discountPercent { get; set; }
- public decimal avgCost { get; set; }
- public decimal fifoCost { get; set; }
- public bool tax { get; set; }
- public decimal tax1Rate { get; set; }
- public decimal tax2Rate { get; set; }
- public bool isLayaway { get; set; }
- public bool isWorkorder { get; set; }
- public string isSpecialOrder { get; set; }
- public decimal calcLineDiscount { get; set; }
- public decimal calcTransactionDiscount { get; set; }
- public decimal calcTotal { get; set; }
- public decimal calcSubtotal { get; set; }
- public decimal calcTax1 { get; set; }
- public decimal calcTax2 { get; set; }
- public int taxClassID { get; set; }
- public int customerID { get; set; }
- public int discountID { get; set; }
- public int employeeID { get; set; }
- public int itemID { get; set; }
- public int noteID { get; set; }
- public int parentSaleLineID { get; set; }
- public int shopID { get; set; }
- public int saleID { get; set; }
- public TaxClass TaxClass { get; set; }
- public Note Note { get; set; }
- public Item Item { get; set; }
- }
- public class SaleLines
- {
- public List<SaleLine> Lines = new List<SaleLine>();
- public object SaleLine { get; set; }
- }
- //public class SaleLines
- //{
- // public SaleLine SaleLine { get; set; }
- //}
- public class Tax
- {
- public string id { get; set; }
- public string name { get; set; }
- public string taxable { get; set; }
- public string rate { get; set; }
- public string amount { get; set; }
- public string taxname { get; set; }
- public string subtotal { get; set; }
- }
- public class Discount
- {
- public string name { get; set; }
- public decimal discountAmount { get; set; }
- public decimal discountPercent { get; set; }
- public DateTime timeStamp { get; set; }
- }
- public class ContactAddress
- {
- public string address1 { get; set; }
- public string address2 { get; set; }
- public string city { get; set; }
- public string state { get; set; }
- public string zip { get; set; }
- public string country { get; set; }
- }
- public class Addresses
- {
- public ContactAddress ContactAddress { get; set; }
- }
- public class TaxClassTotals
- {
- public Tax Tax { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement