Versions in this module Expand all Collapse all v1 v1.0.1 Jan 16, 2025 Changes in this version + const BalanceQueryUrl + const BaseUrlProd + const BaseUrlSandbox + const JdSendCaptchaUrl + const JdVerifyCaptchaUrl + const OrderCreateUrl + const OrderQueryUrl + const OrderResendUrl + const ProductQueryUrl + func BalanceQuery(ctx context.Context, client *sdk.Client, merchantId string) (*BalanceQueryResp, *ErrorResp, error) + func JDSendCaptcha(ctx context.Context, client *sdk.Client, merchantId string, ...) (*JdSendCaptchaResp, *ErrorResp, error) + func JDVerifyCaptcha(ctx context.Context, client *sdk.Client, merchantId string, ...) (*JDVerifyCaptchaResp, *ErrorResp, error) + func OrderCreate(ctx context.Context, client *sdk.Client, merchantId string, ...) (*OrderCreateResp, *ErrorResp, error) + func OrderQuery(ctx context.Context, client *sdk.Client, merchantId string, req *OrderQueryReq) (*OrderQueryResp, *ErrorResp, error) + func OrderResend(ctx context.Context, client *sdk.Client, merchantId string, ...) (*OrderResendResp, *ErrorResp, error) + func ProductQuery(ctx context.Context, client *sdk.Client, merchantId string) (*ProductQueryResp, *ErrorResp, error) + type BalanceQueryResp struct + Balance float64 + type Cards struct + CardType int + Deadline string + No string + Pwd string + type ErrorResp struct + Code int + Message string + Metadata interface{} + Reason string + func AnyApi(ctx context.Context, client *sdk.Client, merchantId, apiPath string, ...) (*string, *ErrorResp, error) + type JDVerifyCaptchaReq struct + Jdcode string + Mobile string + type JDVerifyCaptchaResp struct + IsSuccess bool + type JdSendCaptchaReq struct + Mobile string + type JdSendCaptchaResp struct + IsSuccess bool + type OrderCreateReq struct + AccountType int64 + Attach string + Extends string + NotifyUrl string + Number int + OutTradeNo string + ProductId string + RechargeAccount string + UnitPrice int64 + type OrderCreateResp struct + Extra string + OrderNo string + type OrderQueryReq struct + OutTradeNo string + type OrderQueryResp struct + Attach string + Cards []Cards + Extra string + MchId int + OrderNo string + OutTradeNo string + RechargeAccount string + TradeStateDesc string + TradeStatus string + UnitPrice float64 + func (c *OrderQueryResp) DecodeCard(secretKey string) (result map[string]string, err error) + type OrderResendReq struct + OrderNo string + OutTradeNo string + type OrderResendResp struct + IsSuccess bool + type Product struct + FaceValue float64 + ProductId string + ProductName string + ProductType string + PurchasePrice float64 + TemplateId string + type ProductQueryResp struct + Products []Product