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

namespace Bailun.DC.Models.Orders
{
    public class dc_base_oms_sku
    {
        public int id { get; set; }

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

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

        /// <summary>
        /// 交易号
        /// </summary>
        public string transaction_id { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime pay_time { get; set; }

        /// <summary>
        /// 支付方法
        /// </summary>
        public string pay_method { get; set; }

        /// <summary>
        /// 支付账号
        /// </summary>
        public string pay_account { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        public string pay_status { get; set; }

        /// <summary>
        /// 收款账号
        /// </summary>
        public string collection_account { get; set; }

        /// <summary>
        /// 平台订单类型
        /// </summary>
        public string platform_order_type { get; set; }

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

        /// <summary>
        /// 订单创建时间
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 订单付款时间
        /// </summary>
        public DateTime paid_time { get; set; }

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

        /// <summary>
        /// 销售账号Id
        /// </summary>
        public string seller_id { get; set; }

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

        /// <summary>
        /// 环球账号
        /// </summary>
        public string hq_account { get; set; }

        /// <summary>
        /// 销售账号
        /// </summary>
        public string seller_account { get; set; }

        /// <summary>
        /// 暂时不知道意思
        /// </summary>
        public string seller_order_id { get; set; }

        /// <summary>
        /// 销售账号邮箱
        /// </summary>
        public string seller_email { get; set; }

        /// <summary>
        /// 订单更新时间
        /// </summary>
        public DateTime order_update_time { get; set; }

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

        /// <summary>
        /// 平台SKU英文标题
        /// </summary>
        public string platform_sku_title_en { get; set; }

        /// <summary>
        /// 平台SKU中文标题
        /// </summary>
        public string platform_sku_title_cn { get; set; }

        /// <summary>
        /// 平台SKU的ItemId
        /// </summary>
        public string platform_sku_item_id { get; set; }

        /// <summary>
        /// 平台SKU订单数量
        /// </summary>
        public int platform_sku_quantity_ordered { get; set; }

        /// <summary>
        /// 平台SKU发货数量
        /// </summary>
        public int platform_sku_quantity_shipped { get; set; }

        /// <summary>
        /// 平台SKU退货数量
        /// </summary>
        public int platform_sku_quantity_refund { get; set; }

        /// <summary>
        /// 平台SKU单价
        /// </summary>
        public decimal platform_sku_unit_price { get; set; }

        /// <summary>
        /// 销售订单汇率
        /// </summary>
        public decimal seller_order_exchange_rate { get; set; }

        /// <summary>
        /// 销售其他汇率
        /// </summary>
        public decimal seller_other_exchange_rate { get; set; }

        /// <summary>
        /// 财务订单汇率
        /// </summary>
        public decimal finance_order_exchange_rate { get; set; }

        /// <summary>
        /// 财务其他汇率
        /// </summary>
        public decimal finance_other_exchange_rate { get; set; }

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

        /// <summary>
        /// 其他币种e.g.平台费
        /// </summary>
        public string other_currency { get; set; }

        /// <summary>
        /// 销售员
        /// </summary>
        public string seller_name { get; set; }

        /// <summary>
        /// 百伦订单号
        /// </summary>
        public string bailun_order_id { get; set; }

        /// <summary>
        /// 平台订单状态
        /// </summary>
        public string platform_order_status { get; set; }

        /// <summary>
        /// 百伦订单状态
        /// </summary>
        public string bailun_order_status { get; set; }

        /// <summary>
        /// 百伦付款状态
        /// </summary>
        public string bailun_payment_status { get; set; }

        /// <summary>
        /// 百伦发货状态
        /// </summary>
        public string bailun_shipping_status { get; set; }

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

        /// <summary>
        /// 百伦SKU英文标题
        /// </summary>
        public string bailun_sku_title_en { get; set; }

        /// <summary>
        /// 百伦SKU中文标题
        /// </summary>
        public string bailun_sku_title_cn { get; set; }

        /// <summary>
        /// 百伦SKU订单数量
        /// </summary>
        public int bailun_sku_quantity_ordered { get; set; }

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

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

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

        /// <summary>
        /// 百伦SKU仓库名称
        /// </summary>
        public string warehouse_name { get; set; }

        /// <summary>
        /// 百伦SKU仓库编码
        /// </summary>
        public string warehouse_code { get; set; }

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

        /// <summary>
        /// 百伦SKU重量_g
        /// </summary>
        public decimal bailun_sku_weight { get; set; }

        /// <summary>
        /// 百伦SKU尺寸_cm
        /// </summary>
        public string bailun_sku_size { get; set; }

        /// <summary>
        /// 销售额
        /// </summary>
        public decimal amount_sales { get; set; }

        /// <summary>
        /// 收入总金额-原币种
        /// </summary>
        public decimal amount_total { get; set; }

        /// <summary>
        /// 运费收入金额-原币种
        /// </summary>
        public decimal amount_shipping { get; set; }

        /// <summary>
        /// 产品金额-原币种
        /// </summary>
        public decimal amount_product { get; set; }

        /// <summary>
        /// 税费收入金额-原币种
        /// </summary>
        public decimal amount_tax { get; set; }

        /// <summary>
        /// 调整金额-原币种
        /// </summary>
        public decimal amount_adjustment { get; set; }

        /// <summary>
        /// 礼品包装金额-原币种
        /// </summary>
        public decimal amount_gift_wrap { get; set; }

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

        /// <summary>
        /// 退款率
        /// </summary>
        public decimal amount_refund_rate { get; set; }

        /// <summary>
        /// 预收款
        /// </summary>
        public decimal amount_prepaid { get; set; }

        /// <summary>
        /// 总支出费用
        /// </summary>
        public decimal cost_total { get; set; }

        /// <summary>
        /// 促销费用-原币种
        /// </summary>
        public decimal cost_promotion { get; set; }

        /// <summary>
        /// 平台费用
        /// </summary>
        public decimal cost_platform_fee { get; set; }

        /// <summary>
        /// 产品成本费用-人民币
        /// </summary>
        public decimal cost_product { get; set; }

        /// <summary>
        /// 发货支出费用
        /// </summary>
        public decimal cost_shipping { get; set; }

        /// <summary>
        /// 包装费用
        /// </summary>
        public decimal cost_package { get; set; }

        /// <summary>
        /// fba费用
        /// </summary>
        public decimal cost_fba_fee { get; set; }

        /// <summary>
        /// paypal费用
        /// </summary>
        public decimal cost_paypal_fee { get; set; }

        /// <summary>
        /// 退款佣金费用
        /// </summary>
        public decimal cost_refund_commisson { get; set; }
        
        /// <summary>
        /// 处理费（百伦收取）
        /// </summary>
        public decimal cost_handle_bailun { get; set; }

        /// <summary>
        /// 处理费（平台收取）
        /// </summary>
        public decimal cost_handle_platform { get; set; }
        
        /// <summary>
        /// 头程费
        /// </summary>
        public decimal cost_first { get; set; }

        /// <summary>
        /// 尾程费
        /// </summary>
        public decimal cost_tail { get; set; }

        /// <summary>
        /// 利润=总收入-总支出
        /// </summary>
        public decimal profit_total { get; set; }

        /// <summary>
        /// 利润率
        /// </summary>
        public decimal profit_rate { get; set; }

        /// <summary>
        /// 收货国家
        /// </summary>
        public string receipt_country { get; set; }

        /// <summary>
        /// 收货城市
        /// </summary>
        public string receipt_city { get; set; }

        /// <summary>
        /// 收货州或区域
        /// </summary>
        public string receipt_area { get; set; }

        /// <summary>
        /// 收货街道
        /// </summary>
        public string receipt_address { get; set; }

        /// <summary>
        /// 收货门牌
        /// </summary>
        public string receipt_address_2 { get; set; }

        /// <summary>
        /// 收货邮编
        /// </summary>
        public string receipt_postal_code { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string receiver { get; set; }

        /// <summary>
        /// 收货电话
        /// </summary>
        public string receiver_phone { get; set; }

        /// <summary>
        /// 买家账号Id
        /// </summary>
        public string buyer_id { get; set; }

        /// <summary>
        /// 买家账号
        /// </summary>
        public string buyer_name { get; set; }

        /// <summary>
        /// 买家邮箱
        /// </summary>
        public string buyer_email { get; set; }

        /// <summary>
        /// 是否FBA费用异常
        /// </summary>
        public int has_fba_exception { get; set; }

        /// <summary>
        /// 是否平台费用异常
        /// </summary>
        public int has_platform_exception { get; set; }

        /// <summary>
        /// 是否被平台取消
        /// </summary>
        public int has_cancle { get; set; }

        /// <summary>
        /// 区域Id
        /// </summary>
        public int area_id { get; set; }

        /// <summary>
        /// 分类id
        /// </summary>
        public int category_id { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string category_name { get; set; }

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

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

        /// <summary>
        /// 平台费率
        /// </summary>
        public decimal platform_fee_rate { get; set; }

        /// <summary>
        /// 提现损耗
        /// </summary>
        public decimal losswithdrawal { get; set; }

        /// <summary>
        /// 订单总数
        /// </summary>
        public int order_count { get; set; }

        /// <summary>
        /// 客单价
        /// </summary>
        public decimal customerprice { get; set; }

        /// <summary>
        /// 利润率
        /// </summary>
        public decimal profitrate { get; set; }

        /// <summary>
        /// 未发货订单数
        /// </summary>
        public int noshippingcount { get; set; }


        public int company_id { get; set; }

        /// <summary>
        /// 配货单号
        /// </summary>
        public string pick_order_id { get; set; }

        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime shipping_time { get; set; }

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

        /// <summary>
        /// 广告费
        /// </summary>
        public decimal? adfee { get; set; }

        /// <summary>
        /// 上架费
        /// </summary>
        public decimal? putawayfee { get; set; }

        /// <summary>
        /// 货值
        /// </summary>
        public decimal? productvalue { get; set; }

        /// <summary>
        /// 尾程费 （按公式计算的）
        /// </summary>
        public decimal cost_logistics { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        public string product_type_desc { get; set; }

        /// <summary>
        /// sku来源
        /// </summary>
        public int source { get; set; }

        /// <summary>
        /// 财务分类
        /// </summary>
        public string financecategoryname { get; set; }

        /// <summary>
        /// 物流费--物流商API获取
        /// </summary>
        public decimal? total_fee { get; set; }

        /// <summary>
        /// 4px物流返利
        /// </summary>
        public decimal? rebate_4px { get; set; } = 0;
    }
}
