package com.miaxis.wx.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 微信支付退款 dto
 */
@Data
public class FilmWxpayRefundDTO {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "商户订单号")
    private String out_trade_no;

    @ApiModelProperty(value = "商户系统内部的退款单号")
    private String out_refund_no;


    @ApiModelProperty(value = "原因")
    private String reason;


    @ApiModelProperty(value = "是否允许调座，1-允许，0-不允许")
    private WxpaySource resource;

    @ApiModelProperty(value = "回调摘要")
    private String summary;


    @Data
    public class WxpaySource{
        @ApiModelProperty(value = "对开启结果数据进行加密的加密算法，目前只支持AEAD_AES_256_GCM")
        private String algorithm;
        @ApiModelProperty(value = "Base64编码后的开启/停用结果数据密文")
        private String ciphertext;
        @ApiModelProperty(value = "附加数据")
        private String associated_data;
        @ApiModelProperty(value = "原始回调类型，为transaction")
        private String original_type;
        @ApiModelProperty(value = "加密使用的随机串")
        private String nonce;


    }



}
