// Code generated by goctl. DO NOT EDIT.
package types

type IapCallbackReq struct {
	OrderID            string `json:"order_id" validate:"required"`
	TransactionReceipt string `json:"transaction_receipt" validate:"required"`
}

type PaymentCheckReq struct {
	OrderNo string `json:"order_no" validate:"required"`
}

type PaymentCheckResp struct {
	Type   string `json:"type"`
	Status string `json:"status"`
}

type PaymentReq struct {
	Id        string `json:"id"`
	PayMethod string `json:"pay_method"` // 支付方式: wechat, alipay, easypay_alipay, appleiap, yunyinSignPay, yunyinSignPay_wechat, yunyinSignPay_alipay, test(仅开发环境), test_empty(仅开发环境-空报告模式)
	PayType   string `json:"pay_type" validate:"required,oneof=query"`
}

type PaymentResp struct {
	PrepayData interface{} `json:"prepay_data"`
	PrepayId   string      `json:"prepay_id"`
	OrderNo    string      `json:"order_no"`
}

type YunYinSignPayRefundReq struct {
	OrderNo       string  `json:"order_no"`                               // 订单号（sourceOrderCode），与 participate_id 二选一
	ParticipateId int64   `json:"participate_id,omitempty"`               // 参与方ID，与 order_no 二选一
	RefundAmount  float64 `json:"refund_amount" validate:"required,gt=0"` // 退款金额，必须大于0
	RefundReason  string  `json:"refund_reason,omitempty"`                // 退款原因
}

type YunYinSignPayRefundResp struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}
