package com.cyksj.model.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.OffsetDateTime;
import java.util.List;

@Getter
@Setter
public class ClaudeCodePointsHistoryResp {

	private List<Record> items;

	/**
	 * 当前页
	 */
	private Integer page;

	@JsonProperty("page_size")
	private Integer pageSize;

	/**
	 * 总记录数
	 */
	private Integer total;

	@JsonProperty("total_pages")
	private Integer totalPages;

	@Getter
	@Setter
	public static class Record {
		/**
		 * 变动金额
		 */
		private Long amount;
		/**
		 * 变动后余额
		 */
		private Long balanceAfter;
		/**
		 * 创建时间
		 */
		private OffsetDateTime createdAt;
		/**
		 * 描述
		 */
		private String description;
		/**
		 * 记录ID
		 */
		private Long id;
		/**
		 * 关联ID
		 */
		private String referenceId;
		/**
		 * 关联类型
		 */
		private String referenceType;
		/**
		 * 类型
		 */
		private String type;
	}
}