-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrade_payment_delaytrans_confirmrefund.go
53 lines (49 loc) · 2.32 KB
/
trade_payment_delaytrans_confirmrefund.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package v2
import (
"context"
"github.com/yuewokeji/huifupay/response"
)
// TradePaymentDelaytransConfirmrefund 交易确认退款接口
// https://paas.huifu.com/partners/api#/smzf/api_jyqrtk
// 最近更新时间:2023.5.23
func (c *Client) TradePaymentDelaytransConfirmrefund(ctx context.Context, req *TradePaymentDelaytransConfirmrefundRequest) (resp *TradePaymentDelaytransConfirmrefundResponse, err error) {
request := newRequest(`/v2/trade/payment/delaytrans/confirmrefund`, req)
resp = &TradePaymentDelaytransConfirmrefundResponse{
BaseResponse: response.NewBaseResponse(),
}
err = c.DoRequest(ctx, request, resp)
return
}
type TradePaymentDelaytransConfirmrefundRequest struct {
ReqDate string `json:"req_date"`
ReqSeqId string `json:"req_seq_id"`
HuifuId string `json:"huifu_id"`
OrgReqDate string `json:"org_req_date"`
OrgReqSeqId string `json:"org_req_seq_id,omitempty"`
AcctSplitBunch string `json:"acct_split_bunch"`
AcctSplitBunchObject TradePaymentScanpayRefundAcctSplitBunch `json:"-" autoassign:"AcctSplitBunch"`
LoanFlag string `json:"loan_flag"`
LoanUndertaker string `json:"loan_undertaker"`
LoanAcctType string `json:"loan_acct_type"`
}
type TradePaymentDelaytransConfirmrefundResponse struct {
*response.BaseResponse
response.Sign
Data struct {
RespCode string `json:"resp_code"`
RespDesc string `json:"resp_desc"`
TransStat string `json:"trans_stat"`
HfSeqId string `json:"hf_seq_id"`
ReqDate string `json:"req_date"`
ReqSeqId string `json:"req_seq_id"`
HuifuId string `json:"huifu_id"`
OrgReqSeqId string `json:"org_req_seq_id"`
LoanFlag string `json:"loan_flag"`
LoanUndertaker string `json:"loan_undertaker"`
LoanAcctType string `json:"loan_acct_type"`
UnconfirmAmt string `json:"unconfirm_amt"`
ConfirmedAmt string `json:"confirmed_amt"`
OrgReqDate string `json:"org_req_date"`
OrgHfSeqId string `json:"org_hf_seq_id"`
} `json:"data"`
}