package com.zbkj.service.wangshang.api.service.notify;


import com.zbkj.service.wangshang.api.MybankObject;
import com.zbkj.service.wangshang.api.MybankResponse;
import com.zbkj.service.wangshang.api.domain.RequestHead;
import com.zbkj.service.wangshang.api.domain.model.notify.ProtocolWithholdRefundResultNotifyModel;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 协议代扣退款结果通知<ant.mybank.bkcloudfunds.protocol.withhold.refund.result.notify>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "document")
public class ProtocolWithholdRefundResultNotifyRequest extends MybankResponse {

    private static final long serialVersionUID = -6398106201234667023L;

    @XmlElementRef
    private ProtocolWithholdRefundResultNotify refundResultNotify;

    public ProtocolWithholdRefundResultNotify getRefundResultNotify() {
        return refundResultNotify;
    }

    public void setRefundResultNotify(ProtocolWithholdRefundResultNotify refundResultNotify) {
        this.refundResultNotify = refundResultNotify;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlRootElement(name = "request")
    public static class ProtocolWithholdRefundResultNotify extends MybankObject {

        private static final long serialVersionUID = -9053757607268686844L;

        /**
         * 公共应答参数（head）
         */
        @XmlElementRef
        private RequestHead requestHead;

        /**
         * 业务应答参数（body）
         */
        @XmlElementRef
        private ProtocolWithholdRefundResultNotifyModel model;

        public RequestHead getRequestHead() {
            return requestHead;
        }

        public void setRequestHead(RequestHead requestHead) {
            this.requestHead = requestHead;
        }

        public ProtocolWithholdRefundResultNotifyModel getModel() {
            return model;
        }

        public void setModel(ProtocolWithholdRefundResultNotifyModel model) {
            this.model = model;
        }
    }
}
