All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.binarywang.wx.miniapp.bean.invoice.reimburse.InvoiceInfoResponse Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package cn.binarywang.wx.miniapp.bean.invoice.reimburse;

import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import lombok.Data;
import me.chanjar.weixin.common.util.json.GsonParser;

import java.util.List;

/**
 * 
 * 查询报销发票信息响应对象
 * 
* @author xiaoyu * @since 2021-03-23 */ @Data public class InvoiceInfoResponse { /** * 发票ID */ @SerializedName("card_id") private String cardId; /** * 发票的有效期起始时间 */ @SerializedName("begin_time") private Integer beginTime; /** * 发票的有效期截止时间 */ @SerializedName("end_time") private Integer endTime; /** * 用户标识 */ private String openid; /** * 发票的类型 */ private String type; /** * 发票的收款方 */ private String payee; /** * 发票详情 */ private String detail; /** * 用户可在发票票面看到的主要信息 */ @SerializedName("user_info") private InvoiceUserInfo userInfo; public static InvoiceInfoResponse fromJson(String json) { return WxMaGsonBuilder.create().fromJson(json, InvoiceInfoResponse.class); } public static List toList(String json) { JsonObject jsonObject = GsonParser.parse(json); return WxMaGsonBuilder.create().fromJson(jsonObject.get("item_list").toString(), new TypeToken>() { }.getType()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy