package com.red.circle.console.app.dto.clienobject.order;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import com.red.circle.order.inner.model.dto.OrderPurchaseHistoryDTO;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购买记录
 * </p>
 *
 * @author pengliang
 * @since 2020-03-24
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class OrderPurchaseHistoryCO extends ClientObject {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 订单id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 订单信息.
   */
  private OrderPurchaseHistoryDTO orderPurchase;

  /**
   * 订单状态.
   */
  private String statusName;

  /**
   * 扩展类型.
   */
  private String expandTypeName;

  /**
   * 用户基本信息.
   */
  private UserProfileDTO userBaseInfo;

  /**
   * 朋友基本信息.
   */
  private UserProfileDTO friendBaseInfo;
}
