package cn.qihangerp.model.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 拼多多发布链路诊断（凭证来源、类目规则、自动 spec 等）。
 *
 * @author guochengyu
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PddPublishLaneResultVo implements Serializable {

    private Boolean attempted;
    private Boolean success;
    private String message;
    private String goodsAddSnippet;

    /** 拼多多 {@code goods_add_response.goods_id}；仅 add 成功且能解析时有值 */
    private Long pddGoodsId;

    /**
     * {@code GOODS_ADD}：{@code pdd.goods.add}；{@code SALE_STATUS_SET}：{@code pdd.goods.sale.status.set}（在售状态）。
     */
    private String publishLane;

    /** REQUEST / NONE */
    private String shopCredentialSource;

    private Boolean catRuleFetched;
    private String catRuleSnippet;

    private Boolean specAutoResolved;
    private String autoResolveDetail;
}
