Versions in this module Expand all Collapse all v0 v0.2.12 Jan 7, 2022 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 BillResponse struct + DownloadURL *string + HashType *string + HashValue *string + func (r BillResponse) Clone() *BillResponse + func (r BillResponse) MarshalJSON() ([]byte, error) + func (r BillResponse) 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 JsapiApiService services.Service + func (a *JsapiApiService) CloseOrder(ctx context.Context, req CloseOrderRequest) (result *core.APIResult, err error) + func (a *JsapiApiService) DownloadURL(ctx context.Context, bill BillResponse) (resp []byte, result *core.APIResult, err error) + func (a *JsapiApiService) Prepay(ctx context.Context, req PrepayRequest) (resp *PrepayResponse, result *core.APIResult, err error) + func (a *JsapiApiService) PrepayWithRequestPayment(ctx context.Context, req PrepayRequest) (resp *PrepayWithRequestPaymentResponse, result *core.APIResult, err error) + func (a *JsapiApiService) QueryOrderById(ctx context.Context, req QueryOrderByIdRequest) (resp *payments.Transaction, result *core.APIResult, err error) + func (a *JsapiApiService) QueryOrderByOutTradeNo(ctx context.Context, req QueryOrderByOutTradeNoRequest) (resp *payments.Transaction, result *core.APIResult, err error) + func (a *JsapiApiService) TradeBill(ctx context.Context, req TradeBillRequest) (resp *BillResponse, result *core.APIResult, err error) + type Payer struct + Openid *string + func (o Payer) Clone() *Payer + func (o Payer) MarshalJSON() ([]byte, error) + func (o Payer) 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 + Payer *Payer + 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 + PrepayId *string + func (o PrepayResponse) Clone() *PrepayResponse + func (o PrepayResponse) MarshalJSON() ([]byte, error) + func (o PrepayResponse) String() string + type PrepayWithRequestPaymentResponse struct + Appid *string + NonceStr *string + Package *string + PaySign *string + PrepayId *string + SignType *string + TimeStamp *string + func (o PrepayWithRequestPaymentResponse) 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 + 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 + type TradeBillRequest struct + BillDate *string + BillType *string + TarType *string + func (r TradeBillRequest) Clone() *TradeBillRequest + func (r TradeBillRequest) MarshalJSON() ([]byte, error) + func (r TradeBillRequest) String() string