payment

package
v1.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMerchant

func AddMerchant(mchID, mchName string) wx.Action

AddMerchant 新增收款商户号

func DeleteMerchant

func DeleteMerchant(mchID string) wx.Action

DeleteMerchant 删除收款商户号

func GetBillList

func GetBillList(params *ParamsBillList, result *ResultBillList) wx.Action

GetBillList 获取对外收款记录

func GetMerchant

func GetMerchant(mchID string, result *ResultMerchantGet) wx.Action

GetMerchant 查询收款商户号详情

func SetMchUseScope

func SetMchUseScope(mchID string, scope *AllowUseScope) wx.Action

SetMchUseScope 设置收款商户号使用范围

Types

type AllowUseScope

type AllowUseScope struct {
	User    []string `json:"user,omitempty"`
	PartyID []int64  `json:"partyid,omitempty"`
	TagID   []int64  `json:"tagid,omitempty"`
}

type BillInfo

type BillInfo struct {
	TransactionID  string           `json:"transaction_id"`
	TradeState     int              `json:"trade_state"`
	PayTime        int64            `json:"pay_time"`
	OutTradeNO     string           `json:"out_trade_no"`
	ExternalUserID string           `json:"external_userid"`
	TotalFee       int              `json:"total_fee"`
	PayeeUserID    string           `json:"payee_userid"`
	PaymentType    int              `json:"payment_type"`
	MchID          string           `json:"mch_id"`
	Remark         string           `json:"remark"`
	TotalRefundFee int              `json:"total_refund_fee"`
	CommodityList  []*CommodityInfo `json:"commodity_list"`
	RefundList     []*RefundInfo    `json:"refund_list"`
	PayerInfo      *PayerInfo       `json:"payer_info"`
}

type CommodityInfo

type CommodityInfo struct {
	Description string `json:"description"`
	Amount      int    `json:"amount"`
}

type ParamsBillList

type ParamsBillList struct {
	BeginTime   int64  `json:"begin_time"`
	EndTime     int64  `json:"end_time"`
	PayeeUserID string `json:"payee_userid,omitempty"`
	Cursor      string `json:"cursor,omitempty"`
	Limit       int    `json:"limit,omitempty"`
}

type ParamsMchUseScopeSet

type ParamsMchUseScopeSet struct {
	MchID         string         `json:"mch_id"`
	AllowUseScope *AllowUseScope `json:"allow_use_scope"`
}

type ParamsMerchantAdd

type ParamsMerchantAdd struct {
	MchID        string `json:"mch_id"`
	MerchantName string `json:"merchant_name"`
}

type ParamsMerchantDelete

type ParamsMerchantDelete struct {
	MchID string `json:"mch_id"`
}

type ParamsMerchantGet

type ParamsMerchantGet struct {
	MchID string `json:"mch_id"`
}

type PayerInfo

type PayerInfo struct {
	Name    string `json:"name"`
	Phone   string `json:"phone"`
	Address string `json:"address"`
}

type RefundInfo

type RefundInfo struct {
	OutRefundNO   string `json:"out_refund_no"`
	RefundUserID  string `json:"refund_userid"`
	RefundComment string `json:"refund_comment"`
	RefundReqTime int64  `json:"refund_reqtime"`
	RefundStatus  int    `json:"refund_status"`
	RefundFee     int    `json:"refund_fee"`
}

type ResultBillList

type ResultBillList struct {
	NextCursor string      `json:"next_cursor"`
	BillList   []*BillInfo `json:"bill_list"`
}

type ResultMerchantGet

type ResultMerchantGet struct {
	BindStatus    int            `json:"bind_status"`
	MchID         string         `json:"mch_id"`
	MerchantName  string         `json:"merchant_name"`
	AllowUseScope *AllowUseScope `json:"allow_use_scope"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL