Versions in this module Expand all Collapse all v1 v1.1.0 May 9, 2023 Changes in this version + type Amount struct + Currency *string + Total *int64 + func (o Amount) Clone() *Amount + func (o Amount) MarshalJSON() ([]byte, error) + func (o Amount) String() string + type CloseOrderRequest struct + Mchid *string + OutTradeNo *string + func (o CloseOrderRequest) Clone() *CloseOrderRequest + func (o CloseOrderRequest) MarshalJSON() ([]byte, error) + func (o CloseOrderRequest) String() string + type CloseRequest struct + Mchid *string + func (o CloseRequest) Clone() *CloseRequest + func (o CloseRequest) MarshalJSON() ([]byte, error) + func (o CloseRequest) String() string + type Detail struct + CostPrice *int64 + GoodsDetail []GoodsDetail + InvoiceId *string + func (o Detail) Clone() *Detail + func (o Detail) MarshalJSON() ([]byte, error) + func (o Detail) String() string + type GoodsDetail struct + GoodsName *string + MerchantGoodsId *string + Quantity *int64 + UnitPrice *int64 + WechatpayGoodsId *string + func (o GoodsDetail) Clone() *GoodsDetail + func (o GoodsDetail) MarshalJSON() ([]byte, error) + func (o GoodsDetail) String() string + type H5ApiService services.Service + func (a *H5ApiService) CloseOrder(ctx context.Context, req CloseOrderRequest) (result *core.APIResult, err error) + func (a *H5ApiService) Prepay(ctx context.Context, req PrepayRequest) (resp *PrepayResponse, result *core.APIResult, err error) + func (a *H5ApiService) QueryOrderById(ctx context.Context, req QueryOrderByIdRequest) (resp *payments.Transaction, result *core.APIResult, err error) + func (a *H5ApiService) QueryOrderByOutTradeNo(ctx context.Context, req QueryOrderByOutTradeNoRequest) (resp *payments.Transaction, result *core.APIResult, err error) + type H5Info struct + AppName *string + AppUrl *string + BundleId *string + PackageName *string + Type *string + func (o H5Info) Clone() *H5Info + func (o H5Info) MarshalJSON() ([]byte, error) + func (o H5Info) String() string + type PrepayRequest struct + Amount *Amount + Appid *string + Attach *string + Description *string + Detail *Detail + GoodsTag *string + LimitPay []string + Mchid *string + NotifyUrl *string + OutTradeNo *string + SceneInfo *SceneInfo + SettleInfo *SettleInfo + SupportFapiao *bool + TimeExpire *time.Time + func (o PrepayRequest) Clone() *PrepayRequest + func (o PrepayRequest) MarshalJSON() ([]byte, error) + func (o PrepayRequest) String() string + type PrepayResponse struct + H5Url *string + func (o PrepayResponse) Clone() *PrepayResponse + func (o PrepayResponse) MarshalJSON() ([]byte, error) + func (o PrepayResponse) String() string + type QueryOrderByIdRequest struct + Mchid *string + TransactionId *string + func (o QueryOrderByIdRequest) Clone() *QueryOrderByIdRequest + func (o QueryOrderByIdRequest) MarshalJSON() ([]byte, error) + func (o QueryOrderByIdRequest) String() string + type QueryOrderByOutTradeNoRequest struct + Mchid *string + OutTradeNo *string + func (o QueryOrderByOutTradeNoRequest) Clone() *QueryOrderByOutTradeNoRequest + func (o QueryOrderByOutTradeNoRequest) MarshalJSON() ([]byte, error) + func (o QueryOrderByOutTradeNoRequest) String() string + type SceneInfo struct + DeviceId *string + H5Info *H5Info + PayerClientIp *string + StoreInfo *StoreInfo + func (o SceneInfo) Clone() *SceneInfo + func (o SceneInfo) MarshalJSON() ([]byte, error) + func (o SceneInfo) String() string + type SettleInfo struct + ProfitSharing *bool + func (o SettleInfo) Clone() *SettleInfo + func (o SettleInfo) MarshalJSON() ([]byte, error) + func (o SettleInfo) String() string + type StoreInfo struct + Address *string + AreaCode *string + Id *string + Name *string + func (o StoreInfo) Clone() *StoreInfo + func (o StoreInfo) MarshalJSON() ([]byte, error) + func (o StoreInfo) String() string