Skip to content

Instantly share code, notes, and snippets.

@otienoelvis
Created June 27, 2023 11:43
Show Gist options
  • Save otienoelvis/58df07ee6b54997a0736e97a56d783a4 to your computer and use it in GitHub Desktop.
Save otienoelvis/58df07ee6b54997a0736e97a56d783a4 to your computer and use it in GitHub Desktop.
using System.ComponentModel.DataAnnotations;
using DAL.ViewModels.Enums;
namespace DAL.ViewModels;
public class ReceiptModelDto
{
[Required]
public string pin { get; set; }
[Required]
public string branchId { get; set; }
[Required]
public int traderInvoiceNumber { get; set; }
[Required]
public int InvoiceNumber { get; set; }
[Required]
public int originalInvoiceNumber { get; set; }
[Required]
public string customerPin { get; set; }
public string customerName { get; set; }
public string salesTypeCode { get; set; }
public SalesReceiptType receiptTypeCode { get; set; }
public PaymentMethod paymentTypeCode { get; set; }
[Required]
public TransactionProgress invoiceStatusCode { get; set; }
[Required]
public string validatedDate { get; set; }
[Required]
public string saleDate { get; set; }
public string stockReleaseDate { get; set; }
public object cancelRequestedDate { get; set; }
public object canceledDate { get; set; }
public object creditNoteDate { get; set; }
public object creditNoteReasonCode { get; set; }
[Required]
public int totalItemCount { get; set; }
[Required]
public int taxableAmountA { get; set; }
[Required]
public int taxableAmountB { get; set; }
[Required]
public int taxableAmountC { get; set; }
[Required]
public int taxableAmountD { get; set; }
[Required]
public int taxableAmountE { get; set; }
[Required]
public int taxRateA { get; set; }
[Required]
public int taxRateB { get; set; }
[Required]
public int taxRateC { get; set; }
[Required]
public int taxRateD { get; set; }
[Required]
public int taxRateE { get; set; }
[Required]
public int taxAmountA { get; set; }
[Required]
public int taxAmountB { get; set; }
[Required]
public int taxAmountC { get; set; }
[Required]
public int taxAmountD { get; set; }
[Required]
public int taxAmountE { get; set; }
[Required]
public int totalTaxableAmount { get; set; }
[Required]
public int totalTaxAmount { get; set; }
[Required]
public int totalAmount { get; set; }
[Required]
public string purchaseAcceptYN { get; set; }
public string remark { get; set; }
[Required]
public string registrationId { get; set; }
[Required]
public string registrationName { get; set; }
[Required]
public string modifierId { get; set; }
[Required]
public string modifierName { get; set; }
public CustomerReceiptDto receipt { get; set; }
public List<ItemListDto> itemList { get; set; }
}
public class CustomerReceiptDto
{
public string customerPin { get; set; }
public object customerMobileNo { get; set; }
[Required]
public string receiptPublishedDate { get; set; }
public object tradeName { get; set; }
public object address { get; set; }
public object topMessage { get; set; }
public object bottomMessage { get; set; }
[Required]
public string purchaseAcceptYN { get; set; }
}
public class ItemListDto
{
[Required]
public int itemSequenceNumber { get; set; }
public string itemCode { get; set; }
[Required]
public string itemClassificationCode { get; set; }
[Required]
public string itemName { get; set; }
public object barcode { get; set; }
[Required]
public PackagingUnitCode packagingUnitCode { get; set; }
[Required]
public int package { get; set; }
[Required]
public UnitOfQuantity quantityUnitCode { get; set; }
[Required]
public int quantity { get; set; }
[Required]
public int unitPrice { get; set; }
[Required]
public int supplyAmount { get; set; }
[Required]
public int discountRate { get; set; }
[Required]
public int discountAmount { get; set; }
public object insuranceCompanyCode { get; set; }
public object insuranceCompanyName { get; set; }
public object insuranceRate { get; set; }
public object insuranceAmount { get; set; }
[Required]
public TaxType taxationTypeCode { get; set; }
[Required]
public int taxableAmount { get; set; }
[Required]
public int taxAmount { get; set; }
[Required]
public int totalAmount { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment