Versions in this module Expand all Collapse all v0 v0.2.12 Jan 7, 2022 Changes in this version + type Account string + const ACCOUNT_AVAILABLE + const ACCOUNT_UNAVAILABLE + func (e Account) Ptr() *Account + type Amount struct + Currency *string + DiscountRefund *int64 + From []FundsFromItem + PayerRefund *int64 + PayerTotal *int64 + Refund *int64 + SettlementRefund *int64 + SettlementTotal *int64 + Total *int64 + func (o Amount) Clone() *Amount + func (o Amount) MarshalJSON() ([]byte, error) + func (o Amount) String() string + type AmountReq struct + Currency *string + From []FundsFromItem + Refund *int64 + Total *int64 + func (o AmountReq) Clone() *AmountReq + func (o AmountReq) MarshalJSON() ([]byte, error) + func (o AmountReq) String() string + type Channel string + const CHANNEL_BALANCE + const CHANNEL_ORIGINAL + const CHANNEL_OTHER_BALANCE + const CHANNEL_OTHER_BANKCARD + func (e Channel) Ptr() *Channel + type CreateRequest struct + Amount *AmountReq + FundsAccount *ReqFundsAccount + GoodsDetail []GoodsDetail + NotifyUrl *string + OutRefundNo *string + OutTradeNo *string + Reason *string + SubMchid *string + TransactionId *string + func (o CreateRequest) Clone() *CreateRequest + func (o CreateRequest) MarshalJSON() ([]byte, error) + func (o CreateRequest) String() string + type FundsAccount string + const FUNDSACCOUNT_AVAILABLE + const FUNDSACCOUNT_BASIC + const FUNDSACCOUNT_OPERATION + const FUNDSACCOUNT_UNAVAILABLE + const FUNDSACCOUNT_UNSETTLED + func (e FundsAccount) Ptr() *FundsAccount + type FundsFromItem struct + Account *Account + Amount *int64 + func (o FundsFromItem) Clone() *FundsFromItem + func (o FundsFromItem) MarshalJSON() ([]byte, error) + func (o FundsFromItem) String() string + type GoodsDetail struct + GoodsName *string + MerchantGoodsId *string + RefundAmount *int64 + RefundQuantity *int64 + UnitPrice *int64 + WechatpayGoodsId *string + func (o GoodsDetail) Clone() *GoodsDetail + func (o GoodsDetail) MarshalJSON() ([]byte, error) + func (o GoodsDetail) String() string + type Promotion struct + Amount *int64 + GoodsDetail []GoodsDetail + PromotionId *string + RefundAmount *int64 + Scope *Scope + Type *Type + func (o Promotion) Clone() *Promotion + func (o Promotion) MarshalJSON() ([]byte, error) + func (o Promotion) String() string + type QueryByOutRefundNoRequest struct + OutRefundNo *string + SubMchid *string + func (o QueryByOutRefundNoRequest) Clone() *QueryByOutRefundNoRequest + func (o QueryByOutRefundNoRequest) MarshalJSON() ([]byte, error) + func (o QueryByOutRefundNoRequest) String() string + type Refund struct + Amount *Amount + Channel *Channel + CreateTime *time.Time + FundsAccount *FundsAccount + OutRefundNo *string + OutTradeNo *string + PromotionDetail []Promotion + RefundId *string + Status *Status + SuccessTime *time.Time + TransactionId *string + UserReceivedAccount *string + func (o Refund) Clone() *Refund + func (o Refund) MarshalJSON() ([]byte, error) + func (o Refund) String() string + type RefundNotify struct + Amount *Amount + MerchanID *string + OutRefundNo *string + OutTradeNo *string + RefundID *string + RefundStatus *string + SuccessTime *string + TransactionID *string + UserReceivedAccount *string + type RefundsApiService services.Service + func (a *RefundsApiService) Create(ctx context.Context, req CreateRequest) (resp *Refund, result *core.APIResult, err error) + func (a *RefundsApiService) QueryByOutRefundNo(ctx context.Context, req QueryByOutRefundNoRequest) (resp *Refund, result *core.APIResult, err error) + type ReqFundsAccount string + const REQFUNDSACCOUNT_AVAILABLE + func (e ReqFundsAccount) Ptr() *ReqFundsAccount + type Scope string + const SCOPE_GLOBAL + const SCOPE_SINGLE + func (e Scope) Ptr() *Scope + type Status string + const STATUS_ABNORMAL + const STATUS_CLOSED + const STATUS_PROCESSING + const STATUS_SUCCESS + func (e Status) Ptr() *Status + type Type string + const TYPE_COUPON + const TYPE_DISCOUNT + func (e Type) Ptr() *Type