package com.red.circle.order.infra.database.rds.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import lombok.Data;

/**
 * 简单的最新订单模型.
 *
 * @author pengliang on 2020/5/9
 */
@Data
public class SimpleOrderAppleLatestReceiptDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 原订单id.
   */
  private String originalTransactionId;

  /**
   * 交易id.
   */
  private String transactionId;

  /**
   * base64收据.
   */
  private String latestReceipt;
}
