using System;
using System.Collections.Generic;
using System.Text;

namespace AutoTurnOver.Models.Report
{
    public class dc_base_crm_refund
    {
        /// <summary>
        /// 
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 平台类型
        /// </summary>
        public string platform_type { get; set; }

        /// <summary>
        /// 百伦账号
        /// </summary>
        public string bailun_account { get; set; }

        /// <summary>
        /// 百伦账号id
        /// </summary>
        public int bailun_account_id { get; set; }

        /// <summary>
        /// 站点
        /// </summary>
        public string website { get; set; }

        /// <summary>
        /// 平台订单号
        /// </summary>
        public string origin_order_id { get; set; }

        /// <summary>
        /// 百伦SKU
        /// </summary>
        public string bailun_sku { get; set; }

        /// <summary>
        /// 平台SKU
        /// </summary>
        public string platform_sku { get; set; }

        /// <summary>
        /// 退款金额-原币种
        /// </summary>
        public decimal amount_refund { get; set; }

        /// <summary>
        /// 订单币种
        /// </summary>
        public string order_currency { get; set; }

        /// <summary>
        /// 订单退款时间
        /// </summary>
        public DateTime? refund_time { get; set; }

        /// <summary>
        /// 百伦SKU退货数量
        /// </summary>
        public int bailun_sku_quantity_refund { get; set; }

        /// <summary>
        /// 百伦SKU单价
        /// </summary>
        public decimal bailun_sku_unit_price { get; set; }

        /// <summary>
        /// 数据中心-创建时间
        /// </summary>
        public DateTime gmt_create { get; set; }

        /// <summary>
        /// 数据中心-更新时间
        /// </summary>
        public DateTime gmt_modified { get; set; }

        /// <summary>
        /// 是否与订单关联
        /// </summary>
        public int linked { get; set; }

        /// <summary>
        /// 退款转人民币
        /// </summary>
        public decimal amount_refund_rmb { get; set; }

        /// <summary>
        /// CRM的唯一主键
        /// </summary>
        public int crm_id { get; set; }

        /// <summary>
        /// 退款转美元
        /// </summary>
        public decimal amount_refund_usd { get; set; }

        /// <summary>
        /// 公司Id,0和1是百伦
        /// </summary>
        public int company_id { get; set; }

        /// <summary>
        /// 订单总金额(本币)
        /// </summary>
        public decimal order_total_amount { get; set; }

        /// <summary>
        /// 订单总金额(美金)
        /// </summary>
        public decimal usd_order_total_amount { get; set; }

        /// <summary>
        /// sku总售价(美金)
        /// </summary>
        public decimal product_sale_amount { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public int is_deleted { get; set; }

        /// <summary>
        /// 是否冻结
        /// </summary>
        public int is_freeze { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public string order_status { get; set; }

        /// <summary>
        /// 发货状态
        /// </summary>
        public string shipping_status { get; set; }

        /// <summary>
        /// 是否平台退款
        /// </summary>
        public string refund_type { get; set; }
    }

    public class dc_base_crm_refund_dto: dc_base_crm_refund
    {
        public string warehouse_code { get; set; }
    }
}
