package com.ms.biz.dto.openspi.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.doudian.open.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class OrderResult {
    @JSONField(name = "pur_order_id")
    @SerializedName("pur_order_id")
    private String purOrderId;

    @JSONField(name = "out_pre_orderId")
    @SerializedName("out_pre_orderId")
    private String outPreOrderId;

    @JSONField(name = "supplier_order_id")
    @SerializedName("supplier_order_id")
    private String supplierOrderId;

    @JSONField(name = "supplier_order_url")
    @SerializedName("supplier_order_url")
    private SupplierOrderUrl supplierOrderUrl;

    @JSONField(name = "sku_order_results")
    @SerializedName("sku_order_results")
    private List<SkuOrderResult> skuOrderResults;


    @Data
    public static class SupplierOrderUrl implements Serializable {
        @JSONField(name = "h5_url")
        @SerializedName("h5_url")
        private String h5Url;

        @JSONField(name = "pc_url")
        @SerializedName("pc_url")
        private String pcUrl;
    }

    @Data
    public static class SkuOrderResult implements Serializable {
        @JSONField(name = "pur_sku_order_id")
        @SerializedName("pur_sku_order_id")
        private String purSkuOrderId;

        @JSONField(name = "supplier_sku_order_id")
        @SerializedName("supplier_sku_order_id")
        private String supplierSkuOrderId;
    }
}
