Advertisement
jmawebtech

LightSpeed POCO

Nov 24th, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.55 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. namespace LightSpeed.Core.Models
  5. {
  6. public class Sale
  7. {
  8. public int saleID { get; set; }
  9. public DateTime timeStamp { get; set; }
  10. public decimal discountPercent { get; set; }
  11. public bool completed { get; set; }
  12. public bool archived { get; set; }
  13. public bool voided { get; set; }
  14. public bool enablePromotions { get; set; }
  15. public string referenceNumber { get; set; }
  16. public string referenceNumberSource { get; set; }
  17. public decimal tax1Rate { get; set; }
  18. public decimal tax2Rate { get; set; }
  19. public decimal change { get; set; }
  20. public string ticketNumber { get; set; }
  21. public decimal calcDiscount { get; set; }
  22. public decimal calcTotal { get; set; }
  23. public decimal calcSubtotal { get; set; }
  24. public decimal calcTaxable { get; set; }
  25. public decimal calcNonTaxable { get; set; }
  26. public decimal calcAvgCost { get; set; }
  27. public decimal calcFIFOCost { get; set; }
  28. public decimal calcTax1 { get; set; }
  29. public decimal calcTax2 { get; set; }
  30. public decimal calcPayments { get; set; }
  31. public decimal total { get; set; }
  32. public decimal totalDue { get; set; }
  33. public decimal balance { get; set; }
  34. public int customerID { get; set; }
  35. public int discountID { get; set; }
  36. public int employeeID { get; set; }
  37. public int quoteID { get; set; }
  38. public int registerID { get; set; }
  39. public int shipToID { get; set; }
  40. public int shopID { get; set; }
  41. public int taxCategoryID { get; set; }
  42. public Customer Customer { get; set; }
  43. public Quote Quote { get; set; }
  44. public TaxCategory TaxCategory { get; set; }
  45. public SaleLines SaleLines { get; set; }
  46. //public TaxClassTotals TaxClassTotals { get; set; }
  47. public decimal taxTotal { get; set; }
  48. public Discount Discount { get; set; }
  49. public SalePayments SalePayments { get; set; }
  50. }
  51.  
  52. public class CCCharge
  53. {
  54. public string ccChargeID { get; set; }
  55. public string gatewayTransID { get; set; }
  56. public string xnum { get; set; }
  57. public string voided { get; set; }
  58. public string refunded { get; set; }
  59. public string amount { get; set; }
  60. public string exp { get; set; }
  61. public string authOnly { get; set; }
  62. public string authCode { get; set; }
  63. public string cardType { get; set; }
  64. public string entryMethod { get; set; }
  65. public string cardholderName { get; set; }
  66. public string isDebit { get; set; }
  67. public string timeStamp { get; set; }
  68. public string saleID { get; set; }
  69. }
  70.  
  71. public class SalePayment
  72. {
  73. public string salePaymentID { get; set; }
  74. public string amount { get; set; }
  75. public string createTime { get; set; }
  76. public string archived { get; set; }
  77. public string saleID { get; set; }
  78. public string paymentTypeID { get; set; }
  79. public string ccChargeID { get; set; }
  80. public string registerID { get; set; }
  81. public string employeeID { get; set; }
  82. public string creditAccountID { get; set; }
  83. public PaymentType PaymentType { get; set; }
  84. public CCCharge CCCharge { get; set; }
  85. }
  86.  
  87. public class SalePayments
  88. {
  89. public object SalePayment { get; set; }
  90. public List<SalePayment> Payments = new List<SalePayment>();
  91. }
  92. public class PaymentType
  93. {
  94. public string name { get; set; }
  95. public string type { get; set; }
  96. }
  97.  
  98. public class Attributes
  99. {
  100. public string count { get; set; }
  101. }
  102.  
  103. public class ContactPhone
  104. {
  105. public string number { get; set; }
  106. public string useType { get; set; }
  107. }
  108.  
  109. public class Phones
  110. {
  111. public ContactPhone ContactPhone { get; set; }
  112. }
  113.  
  114. public class ContactEmail
  115. {
  116. public string address { get; set; }
  117. public string useType { get; set; }
  118. }
  119.  
  120. public class Emails
  121. {
  122. public List<ContactEmail> ContactEmails = new List<ContactEmail>();
  123. public object ContactEmail { get; set; }
  124. }
  125.  
  126. public class Contact
  127. {
  128. public int contactID { get; set; }
  129. public string custom { get; set; }
  130. public string noEmail { get; set; }
  131. public string noPhone { get; set; }
  132. public string noMail { get; set; }
  133. public DateTime timeStamp { get; set; }
  134. public object Addresses { get; set; }
  135. public List<ContactAddress> ContactAddresses = new List<ContactAddress>();
  136. public Phones Phones { get; set; }
  137. public Emails Emails { get; set; }
  138. public string Websites { get; set; }
  139. }
  140.  
  141. public class Customer
  142. {
  143. public int customerID { get; set; }
  144. public string firstName { get; set; }
  145. public string lastName { get; set; }
  146. public string archived { get; set; }
  147. public string title { get; set; }
  148. public string company { get; set; }
  149. public DateTime createTime { get; set; }
  150. public DateTime timeStamp { get; set; }
  151. public string contactID { get; set; }
  152. public string creditAccountID { get; set; }
  153. public string customerTypeID { get; set; }
  154. public string discountID { get; set; }
  155. public string employeeID { get; set; }
  156. public string noteID { get; set; }
  157. public int taxCategoryID { get; set; }
  158. public Contact Contact { get; set; }
  159. }
  160.  
  161. public class Quote
  162. {
  163. public int quoteID { get; set; }
  164. public string issueDate { get; set; }
  165. public string notes { get; set; }
  166. public string archived { get; set; }
  167. public int employeeID { get; set; }
  168. public int saleID { get; set; }
  169. }
  170.  
  171. public class TaxCategoryClass
  172. {
  173. public string taxCategoryClassID { get; set; }
  174. public string tax1Rate { get; set; }
  175. public string tax2Rate { get; set; }
  176. public DateTime timeStamp { get; set; }
  177. public string taxCategoryID { get; set; }
  178. public string taxClassID { get; set; }
  179. }
  180.  
  181. public class TaxCategoryClasses
  182. {
  183. public List<TaxCategoryClass> TaxCategoryClass { get; set; }
  184. }
  185.  
  186. public class TaxCategory
  187. {
  188. public int taxCategoryID { get; set; }
  189. public string tax1Name { get; set; }
  190. public string tax2Name { get; set; }
  191. public string tax1Rate { get; set; }
  192. public string tax2Rate { get; set; }
  193. public DateTime timeStamp { get; set; }
  194. public TaxCategoryClasses TaxCategoryClasses { get; set; }
  195. }
  196.  
  197. public class TaxClass
  198. {
  199. public int taxClassID { get; set; }
  200. public string name { get; set; }
  201. public DateTime timeStamp { get; set; }
  202. }
  203.  
  204. public class Note
  205. {
  206. public string noteID { get; set; }
  207. public string note { get; set; }
  208. public string isPublic { get; set; }
  209. public DateTime timeStamp { get; set; }
  210. }
  211.  
  212. public class ItemPrice
  213. {
  214. public decimal amount { get; set; }
  215. public string useType { get; set; }
  216. }
  217.  
  218. public class Prices
  219. {
  220. public List<ItemPrice> ItemPrice { get; set; }
  221. }
  222.  
  223. public class Item
  224. {
  225. public string itemID { get; set; }
  226. public string systemSku { get; set; }
  227. public decimal defaultCost { get; set; }
  228. public decimal avgCost { get; set; }
  229. public bool tax { get; set; }
  230. public string archived { get; set; }
  231. public string itemType { get; set; }
  232. public string description { get; set; }
  233. public string modelYear { get; set; }
  234. public string upc { get; set; }
  235. public string ean { get; set; }
  236. public string customSku { get; set; }
  237. public string manufacturerSku { get; set; }
  238. public DateTime timeStamp { get; set; }
  239. public string categoryID { get; set; }
  240. public string taxClassID { get; set; }
  241. public string departmentID { get; set; }
  242. public string itemMatrixID { get; set; }
  243. public string itemAttributesID { get; set; }
  244. public string manufacturerID { get; set; }
  245. public string noteID { get; set; }
  246. public string seasonID { get; set; }
  247. public string defaultVendorID { get; set; }
  248. public string itemECommerceID { get; set; }
  249. public Prices Prices { get; set; }
  250. }
  251.  
  252. public class SaleLine
  253. {
  254. public int saleLineID { get; set; }
  255. public DateTime createTime { get; set; }
  256. public DateTime timeStamp { get; set; }
  257. public decimal unitQuantity { get; set; }
  258. public decimal unitPrice { get; set; }
  259. public string normalUnitPrice { get; set; }
  260. public decimal discountAmount { get; set; }
  261. public decimal discountPercent { get; set; }
  262. public decimal avgCost { get; set; }
  263. public decimal fifoCost { get; set; }
  264. public bool tax { get; set; }
  265. public decimal tax1Rate { get; set; }
  266. public decimal tax2Rate { get; set; }
  267. public bool isLayaway { get; set; }
  268. public bool isWorkorder { get; set; }
  269. public string isSpecialOrder { get; set; }
  270. public decimal calcLineDiscount { get; set; }
  271. public decimal calcTransactionDiscount { get; set; }
  272. public decimal calcTotal { get; set; }
  273. public decimal calcSubtotal { get; set; }
  274. public decimal calcTax1 { get; set; }
  275. public decimal calcTax2 { get; set; }
  276. public int taxClassID { get; set; }
  277. public int customerID { get; set; }
  278. public int discountID { get; set; }
  279. public int employeeID { get; set; }
  280. public int itemID { get; set; }
  281. public int noteID { get; set; }
  282. public int parentSaleLineID { get; set; }
  283. public int shopID { get; set; }
  284. public int saleID { get; set; }
  285. public TaxClass TaxClass { get; set; }
  286. public Note Note { get; set; }
  287. public Item Item { get; set; }
  288. }
  289.  
  290. public class SaleLines
  291. {
  292. public List<SaleLine> Lines = new List<SaleLine>();
  293. public object SaleLine { get; set; }
  294. }
  295.  
  296. //public class SaleLines
  297. //{
  298. // public SaleLine SaleLine { get; set; }
  299. //}
  300.  
  301. public class Tax
  302. {
  303. public string id { get; set; }
  304. public string name { get; set; }
  305. public string taxable { get; set; }
  306. public string rate { get; set; }
  307. public string amount { get; set; }
  308. public string taxname { get; set; }
  309. public string subtotal { get; set; }
  310. }
  311.  
  312. public class Discount
  313. {
  314. public string name { get; set; }
  315. public decimal discountAmount { get; set; }
  316. public decimal discountPercent { get; set; }
  317. public DateTime timeStamp { get; set; }
  318. }
  319.  
  320. public class ContactAddress
  321. {
  322. public string address1 { get; set; }
  323. public string address2 { get; set; }
  324. public string city { get; set; }
  325. public string state { get; set; }
  326. public string zip { get; set; }
  327. public string country { get; set; }
  328. }
  329.  
  330. public class Addresses
  331. {
  332. public ContactAddress ContactAddress { get; set; }
  333. }
  334.  
  335.  
  336. public class TaxClassTotals
  337. {
  338. public Tax Tax { get; set; }
  339. }
  340. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement