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

cn.binarywang.wx.miniapp.bean.xpay.WxMaXPayQueryOrderResponse Maven / Gradle / Ivy

The newest version!
package cn.binarywang.wx.miniapp.bean.xpay;

import cn.binarywang.wx.miniapp.bean.WxMaBaseResponse;
import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaXPayQueryOrderResponse extends WxMaBaseResponse implements Serializable {
  private static final long serialVersionUID = 7495157056049312108L;
  @SerializedName("order")
  private OrderInfo order;

  public String toJson() {
    return WxMaGsonBuilder.create().toJson(this);
  }

  @Data
  public static class OrderInfo {
    @SerializedName("order_id")
    private String orderId;
    @SerializedName("create_time")
    private Long createTime;
    @SerializedName("update_time")
    private Long updateTime;
    @SerializedName("status")
    private Integer status;
    @SerializedName("biz_type")
    private Integer bizType;
    @SerializedName("order_fee")
    private Long orderFee;
    @SerializedName("coupon_fee")
    private Long couponFee;
    @SerializedName("paid_fee")
    private Long paidFee;
    @SerializedName("order_type")
    private Integer orderType;
    @SerializedName("refund_fee")
    private Long refundFee;
    @SerializedName("paid_time")
    private Long paidTime;//unix秒级时间戳
    @SerializedName("provide_time")
    private Long provideTime;
    @SerializedName("env_type")
    private Long envType;
    @SerializedName("biz_meta")
    private String bizMeta;
    @SerializedName("token")
    private String token;

    @SerializedName("leftFee")
    private Long leftFee; //支付单类型时表示此单经过退款还剩余的金额,单位分
    @SerializedName("wxOrderId")
    private String wxOrderId;

  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy