From 2e73a06b9bbb7e481ca33f70754d9c6cf2050182 Mon Sep 17 00:00:00 2001 From: rickycoder Date: Thu, 9 May 2024 14:26:44 +0800 Subject: [PATCH 1/2] add refund details to order detail --- paypal/model.go | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/paypal/model.go b/paypal/model.go index 6b735e68..05f9a505 100644 --- a/paypal/model.go +++ b/paypal/model.go @@ -493,11 +493,24 @@ type Capture struct { Links []*Link `json:"links,omitempty"` CreateTime string `json:"create_time,omitempty"` UpdateTime string `json:"update_time,omitempty"` + InvoiceId string `json:"invoice_id,omitempty"` + CustomId string `json:"custom_id,omitempty"` } type Refund struct { - Status string `json:"status,omitempty"` - StatusDetails *StatusDetails `json:"status_details,omitempty"` + Id string `json:"id,omitempty"` + Status string `json:"status,omitempty"` + StatusDetails *StatusDetails `json:"status_details,omitempty"` + InvoiceId string `json:"invoice_id,omitempty"` + CustomId string `json:"custom_id,omitempty"` + AcquirerReferenceNumber string `json:"acquirer_reference_number,omitempty"` + NoteToPayer string `json:"note_to_payer,omitempty"` + SellerPayableBreakdown *SellerPayableBreakdown `json:"seller_payable_breakdown,omitempty"` + Links []*Link `json:"links,omitempty"` + Amount *Amount `json:"amount,omitempty"` + Payer *Payee `json:"payer,omitempty"` + CreateTime string `json:"create_time,omitempty"` + UpdateTime string `json:"update_time,omitempty"` } type Link struct { From 618c099391d1d0b83304fbe85321f1f972a16c3a Mon Sep 17 00:00:00 2001 From: rickycoder Date: Tue, 14 May 2024 18:24:39 +0800 Subject: [PATCH 2/2] add TradeUnsettledAmount of TradeSettleInfo --- alipay/model_payment.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alipay/model_payment.go b/alipay/model_payment.go index 07cd64d6..9abe2d51 100644 --- a/alipay/model_payment.go +++ b/alipay/model_payment.go @@ -253,6 +253,8 @@ type SubFee struct { } type TradeSettleInfo struct { + //trade_unsettled_amount|剩余待结算金额 + TradeUnsettledAmount string `json:"trade_unsettled_amount,omitempty"` TradeSettleDetailList []*TradeSettleDetail `json:"trade_settle_detail_list,omitempty"` }