PrinterRequestInterface constructor

const PrinterRequestInterface({
  1. String transactionID = '',
  2. String id = '',
  3. String customerId = '',
  4. String customerName = '',
  5. String customerEmail = '',
  6. String customerMobile = '',
  7. bool displayCustomer = false,
  8. bool displaySeller = false,
  9. bool? displayAddress = false,
  10. bool? displayBusinessMobile = false,
  11. String ticketId = '',
  12. String ticketName = '',
  13. String sellerId = '',
  14. String sellerName = '',
  15. String currencyCode = '',
  16. String countryCode = '',
  17. String deviceId = '',
  18. bool taxInclusive = false,
  19. double totalValue = 0.0,
  20. double totalCost = 0.0,
  21. double totalMarkup = 0.0,
  22. double totalDiscount = 0.0,
  23. double totalTax = 0.0,
  24. double amountTendered = 0.0,
  25. double amountChange = 0.0,
  26. String transactionDate = '',
  27. String transactionTime = '',
  28. String businessName = '',
  29. PrintAddressInterface address = const PrintAddressInterface(),
  30. String vAT = '',
  31. String tell = '',
  32. String checkoutMessage = '',
  33. String taxCode = '',
  34. double taxValue = 0.0,
  35. List<InventoryInterface> items = const [],
  36. String header = '',
  37. String footer = '',
  38. String instagram = '',
  39. String website = '',
  40. String whatsapp = '',
  41. Uint8List? image,
  42. double? cashbackAmount,
  43. double? tipAmount,
  44. String? paymentType,
  45. double? totalDue,
  46. double? withdrawalAmount,
})

Implementation

const PrinterRequestInterface({
  this.transactionID = '',
  this.id = '',
  this.customerId = '',
  this.customerName = '',
  this.customerEmail = '',
  this.customerMobile = '',
  this.displayCustomer = false,
  this.displaySeller = false,
  this.displayAddress = false,
  this.displayBusinessMobile = false,
  this.ticketId = '',
  this.ticketName = '',
  this.sellerId = '',
  this.sellerName = '',
  this.currencyCode = '',
  this.countryCode = '',
  this.deviceId = '',
  this.taxInclusive = false,
  this.totalValue = 0.0,
  this.totalCost = 0.0,
  this.totalMarkup = 0.0,
  this.totalDiscount = 0.0,
  this.totalTax = 0.0,
  this.amountTendered = 0.0,
  this.amountChange = 0.0,
  this.transactionDate = '',
  this.transactionTime = '',
  this.businessName = '',
  this.address = const PrintAddressInterface(),
  this.vAT = '',
  this.tell = '',
  this.checkoutMessage = '',
  this.taxCode = '',
  this.taxValue = 0.0,
  this.items = const [],
  this.header = '',
  this.footer = '',
  this.instagram = '',
  this.website = '',
  this.whatsapp = '',
  this.image,
  this.cashbackAmount,
  this.tipAmount,
  this.paymentType,
  this.totalDue,
  this.withdrawalAmount,
});