Documentation
¶
Index ¶
- Constants
- type AppAmount
- type AppDetail
- type AppGoodsDetail
- type AppSceneInfo
- type AppSettleInfo
- type AppStoreInfo
- type CombineAmount
- type CombineCombinePayerInfo
- type CombineSceneInfo
- type CombineSettleInfo
- type CombineSubOrders
- type H5Amount
- type H5Detail
- type H5GoodsDetail
- type H5H5Info
- type H5SceneInfo
- type H5SettleInfo
- type H5StoreInfo
- type JSAPIAmount
- type JSAPIDetail
- type JSAPIGoodsDetail
- type JSAPIPayer
- type JSAPISceneInfo
- type JSAPISettleInfo
- type JSAPIStoreInfo
- type NativeAmount
- type NativeDetail
- type NativeGoodsDetail
- type NativeSceneInfo
- type NativeSettleInfo
- type NativeStoreInfo
- type Prepay
- type PrepayBase
- func (prepay *PrepayBase) GetNotifyUrl() string
- func (prepay *PrepayBase) GetSpAppId() string
- func (prepay *PrepayBase) GetSpMchId() string
- func (prepay *PrepayBase) GetSubAppId() string
- func (prepay *PrepayBase) GetSubMchId() string
- func (prepay *PrepayBase) SetNotifyUrl(url string)
- func (prepay *PrepayBase) SetSpAppId(id string)
- func (prepay *PrepayBase) SetSpMchId(id string)
- func (prepay *PrepayBase) SetSubAppId(id string)
- func (prepay *PrepayBase) SetSubMchId(id string)
- type RequestAppPrepay
- type RequestCombinePrepay
- type RequestH5Prepay
- type RequestJSAPIPrepay
- type RequestNativePrepay
Constants ¶
View Source
const BASIC = "BASIC" // 基本户
View Source
const FEES = "FEES" // 手续费账户
View Source
const OPERATION = "OPERATION" // 运营账户
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDetail ¶
type AppDetail struct {
CostPrice int `json:"cost_price"` // 订单原价
InvoiceID string `json:"invoice_id"` // 商品小票ID
GoodsDetail []AppGoodsDetail `json:"goods_detail"` // + 单品列表
}
type AppGoodsDetail ¶
type AppSceneInfo ¶
type AppSceneInfo struct {
PayerClientIP string `json:"payer_client_ip"` // 用户终端IP
DeviceID string `json:"device_id"` // 商户端设备号
StoreInfo AppStoreInfo `json:"store_info"` // + 商户门店信息
}
type AppSettleInfo ¶
type AppSettleInfo struct {
ProfitSharing bool `json:"profit_sharing"` // 是否指定分账
}
type AppStoreInfo ¶
type CombineAmount ¶
type CombineCombinePayerInfo ¶
type CombineCombinePayerInfo struct {
OpenID string `json:"openid"` // 用户标识
}
type CombineSceneInfo ¶
type CombineSettleInfo ¶
type CombineSubOrders ¶
type CombineSubOrders struct {
MchID string `json:"mchid"` // 子单商户号
Attach string `json:"attach"` // 附加数据
Amount *CombineAmount `json:"amount,omitempty"` // +订单金额
OutTradeNo string `json:"out_trade_no"` // 子单商户订单号
GoodsTag string `json:"goods_tag"` // 订单优惠标记
Description string `json:"description"` // 商品描述
SettleInfo *CombineSettleInfo `json:"settle_info,omitempty"` // +结算信息
}
type H5Detail ¶
type H5Detail struct {
CostPrice int `json:"cost_price"` // 订单原价
InvoiceID string `json:"invoice_id"` // 商品小票ID
GoodsDetail []*H5GoodsDetail `json:"goods_detail,omitempty"` // + 单品列表
}
type H5GoodsDetail ¶
type H5SceneInfo ¶
type H5SceneInfo struct {
PayerClientIP string `json:"payer_client_ip"` // 用户终端IP
DeviceID string `json:"device_id"` // 商户端设备号
StoreInfo *H5StoreInfo `json:"store_info,omitempty"` // + 商户门店信息
H5Info *H5H5Info `json:"h5_info,omitempty"` // + H5场景信息
}
type H5SettleInfo ¶
type H5SettleInfo struct {
ProfitSharing bool `json:"profit_sharing"` // 是否指定分账
}
type H5StoreInfo ¶
type JSAPIAmount ¶
type JSAPIDetail ¶
type JSAPIDetail struct {
CostPrice int `json:"cost_price"` // 订单原价
InvoiceID string `json:"invoice_id"` // 商品小票ID
GoodsDetail []*JSAPIGoodsDetail `json:"goods_detail"` // + 单品列表
}
type JSAPIGoodsDetail ¶
type JSAPIPayer ¶
type JSAPISceneInfo ¶
type JSAPISceneInfo struct {
PayerClientIP string `json:"payer_client_ip"` // 用户终端IP
DeviceID string `json:"device_id"` // 商户端设备号
StoreInfo *JSAPIStoreInfo `json:"store_info"` // + 商户门店信息
}
type JSAPISettleInfo ¶
type JSAPISettleInfo struct {
ProfitSharing bool `json:"profit_sharing"` // 是否指定分账
}
type JSAPIStoreInfo ¶
type NativeAmount ¶
type NativeDetail ¶
type NativeDetail struct {
CostPrice int `json:"cost_price"` // 订单原价
InvoiceID string `json:"invoice_id"` // 商品小票ID
GoodsDetail []*NativeGoodsDetail `json:"goods_detail"` // + 单品列表
}
type NativeGoodsDetail ¶
type NativeSceneInfo ¶
type NativeSceneInfo struct {
PayerClientIP string `json:"payer_client_ip"` // 用户终端IP
DeviceID string `json:"device_id"` // 商户端设备号
StoreInfo *NativeStoreInfo `json:"store_info,omitempty"` // + 商户门店信息
}
type NativeSettleInfo ¶
type NativeSettleInfo struct {
ProfitSharing bool `json:"profit_sharing"` // 是否指定分账
}
type NativeStoreInfo ¶
type PrepayBase ¶
type PrepayBase struct {
SpMchId string `json:"sp_mchid"`
SubMchId string `json:"sub_mchid"`
SpAppId string `json:"sp_appid"`
SubAppId string `json:"sub_appid"`
NotifyUrl string `json:"notify_url"`
}
func (*PrepayBase) GetNotifyUrl ¶
func (prepay *PrepayBase) GetNotifyUrl() string
func (*PrepayBase) GetSpAppId ¶
func (prepay *PrepayBase) GetSpAppId() string
func (*PrepayBase) GetSpMchId ¶
func (prepay *PrepayBase) GetSpMchId() string
func (*PrepayBase) GetSubAppId ¶
func (prepay *PrepayBase) GetSubAppId() string
func (*PrepayBase) GetSubMchId ¶
func (prepay *PrepayBase) GetSubMchId() string
func (*PrepayBase) SetNotifyUrl ¶
func (prepay *PrepayBase) SetNotifyUrl(url string)
func (*PrepayBase) SetSpAppId ¶
func (prepay *PrepayBase) SetSpAppId(id string)
func (*PrepayBase) SetSpMchId ¶
func (prepay *PrepayBase) SetSpMchId(id string)
func (*PrepayBase) SetSubAppId ¶
func (prepay *PrepayBase) SetSubAppId(id string)
func (*PrepayBase) SetSubMchId ¶
func (prepay *PrepayBase) SetSubMchId(id string)
type RequestAppPrepay ¶
type RequestAppPrepay struct {
PrepayBase
Description string `json:"description"` // 商品描述
OutTradeNo string `json:"out_trade_no"` // 商户订单号
TimeExpire string `json:"time_expire"` // 交易结束时间
Attach string `json:"attach"` // 附加数据
GoodsTag string `json:"goods_tag"` // 订单优惠标记
Amount *AppAmount `json:"amount"` // 订单金额
Detail *AppDetail `json:"detail,omitempty"` // 优惠功能
SceneInfo *AppSceneInfo `json:"scene_info,omitempty"` // 场景信息
SettleInfo *AppSettleInfo `json:"settle_info,omitempty"` // 结算信息
}
type RequestCombinePrepay ¶
type RequestCombinePrepay struct {
PrepayBase
CombineAppID string `json:"combine_appid"` // 合单商户Appid
CombineMchID string `json:"combine_mchid"` // 合单商户号
CombineOutTradeNo string `json:"combine_out_trade_no"` // 合单商户订单号
SceneInfo *CombineSceneInfo `json:"scene_info,omitempty"` // 场景信息
SubOrders []*CombineSubOrders `json:"sub_orders,omitempty"` // 子单信息
CombinePayerInfo *CombineCombinePayerInfo `json:"combine_payer_info,omitempty"` // 支付者
TimeStart string `json:"time_start"` // 交易起始时间
TimeExpire string `json:"time_expire"` // 交易结束时间
NotifyUrl string `json:"notify_url"` // 通知地址
}
type RequestH5Prepay ¶
type RequestH5Prepay struct {
PrepayBase
Description string `json:"description"` // 商品描述
OutTradeNo string `json:"out_trade_no"` // 商户订单号
TimeExpire string `json:"time_expire"` // 交易结束时间
Attach string `json:"attach"` // 附加数据
GoodsTag string `json:"goods_tag"` // 订单优惠标记
Amount *H5Amount `json:"amount,omitempty"` // 订单金额
Detail *H5Detail `json:"detail,omitempty"` // 优惠功能
SceneInfo *H5SceneInfo `json:"scene_info,omitempty"` // 场景信息
SettleInfo *H5SettleInfo `json:"settle_info,omitempty"` // 结算信息
}
type RequestJSAPIPrepay ¶
type RequestJSAPIPrepay struct {
PrepayBase
Description string `json:"description"` // 商品描述
OutTradeNo string `json:"out_trade_no"` // 商户订单号
TimeExpire string `json:"time_expire,omitempty"` // 交易结束时间
Attach string `json:"attach,omitempty"` // 附加数据
GoodsTag string `json:"goods_tag,omitempty"` // 订单优惠标记
Amount *JSAPIAmount `json:"amount"` // 订单金额
Payer *JSAPIPayer `json:"payer,omitempty"` // 支付者
Detail *JSAPIDetail `json:"detail,omitempty"` // 优惠功能
SceneInfo *JSAPISceneInfo `json:"scene_info,omitempty"` // 场景信息
SettleInfo *JSAPISettleInfo `json:"settle_info,omitempty"` // 结算信息
}
type RequestNativePrepay ¶
type RequestNativePrepay struct {
PrepayBase
Description string `json:"description"` // 商品描述
OutTradeNo string `json:"out_trade_no"` // 商户订单号
TimeExpire string `json:"time_expire,omitempty"` // 交易结束时间
Attach string `json:"attach"` // 附加数据
GoodsTag string `json:"goods_tag"` // 订单优惠标记
Amount *NativeAmount `json:"amount,omitempty"` // 订单金额
Detail *NativeDetail `json:"detail,omitempty"` // 优惠功能
SceneInfo *NativeSceneInfo `json:"scene_info,omitempty"` // 场景信息
SettleInfo *NativeSettleInfo `json:"settle_info,omitempty"` // 结算信息
}
Click to show internal directories.
Click to hide internal directories.