Example #1
0
        public virtual TaxDetail ToTaxDetail(cartDto.TaxDetail taxDeatilDto, Currency currency)
        {
            var result = new TaxDetail(currency);

            result.InjectFrom(taxDeatilDto);
            return(result);
        }
Example #2
0
        public virtual cartDto.TaxDetail ToCartTaxDetailDto(TaxDetail taxDetail)
        {
            var result = new cartDto.TaxDetail();

            result.InjectFrom(taxDetail);
            return(result);
        }
Example #3
0
        public virtual cartDto.TaxDetail ToCartTaxDetailDto(TaxDetail taxDetail)
        {
            var result = new cartDto.TaxDetail();

            result.Name = taxDetail.Name;
            result.Rate = (double)taxDetail.Rate.Amount;
            return(result);
        }
Example #4
0
        public virtual TaxDetail ToTaxDetail(cartDto.TaxDetail taxDeatilDto, Currency currency)
        {
            var result = new TaxDetail(currency);

            result.Name = taxDeatilDto.Name;
            result.Rate = new Money(taxDeatilDto.Rate ?? 0, currency);
            return(result);
        }
Example #5
0
        public static cartDto.TaxDetail ToCartTaxDetailDto(this TaxDetail taxDetail)
        {
            var result = new cartDto.TaxDetail
            {
                Name = taxDetail.Name,
                Rate = (double)taxDetail.Rate.Amount
            };

            return(result);
        }
Example #6
0
        public static TaxDetail ToTaxDetail(this cartDto.TaxDetail taxDeatilDto, Currency currency)
        {
            var result = new TaxDetail(currency)
            {
                Name = taxDeatilDto.Name,
                Rate = new Money(taxDeatilDto.Rate ?? 0, currency)
            };

            return(result);
        }
Example #7
0
 public static TaxDetail ToTaxDetail(this cartDto.TaxDetail taxDetail, Currency currency)
 {
     return(CartConverterInstance.ToTaxDetail(taxDetail, currency));
 }