transaction

package
v0.0.0-...-ed8de99 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	AppId       string            `json:"appid"`
	MchId       string            `json:"mchid"`
	Description string            `json:"description"`
	OutTradeNo  string            `json:"out_trade_no"`
	TimeExpire  string            `json:"time_expire"`
	Attach      string            `json:"attach"`
	NotifyUrl   string            `json:"notify_url"`
	GoodsTag    string            `json:"goods_tag"`
	Amount      TransactionAmount `json:"amount"`
	Payer       TransactionPayer  `json:"payer"`
}

type TransactionAmount

type TransactionAmount struct {
	Total    int64  `json:"total"`
	Currency string `json:"currency"`
}

type TransactionDetail

type TransactionDetail struct {
	CostPrice   int64             `json:"cost_price"`
	InvoiceId   string            `json:"invoice_id"`
	GoodsDetail []TransactionGood `json:"goods_detail"`
}

type TransactionGood

type TransactionGood struct {
	MerchantGoodsId  string `json:"merchant_goods_id"`
	WechatpayGoodsId string `json:"wechatpay_goods_id"`
	GoodsName        string `json:"goods_name"`
	Quantity         int64  `json:"quantity"`
	UnitPrice        int64  `json:"unit_price"`
}

type TransactionPayer

type TransactionPayer struct {
	OpenId string `json:"openid"`
}

type TransactionSceneInfo

type TransactionSceneInfo struct {
	PayerClientIp string               `json:"payer_client_ip"`
	DeviceId      string               `json:"device_id"`
	StoreInfo     TransactionStoreInfo `json:"store_info"`
}

type TransactionSettleInfo

type TransactionSettleInfo struct {
	ProfitSharing bool `json:"profit_sharing"`
}

type TransactionStoreInfo

type TransactionStoreInfo struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	AreaCode string `json:"area_code"`
	Address  string `json:"address"`
}

Jump to

Keyboard shortcuts

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