payments

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 47

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromotionDetail

type PromotionDetail struct {
	// 券ID
	CouponId *string `json:"coupon_id,omitempty"`
	// 优惠名称
	Name *string `json:"name,omitempty"`
	// GLOBAL:全场代金券;SINGLE:单品优惠
	Scope *string `json:"scope,omitempty"`
	// CASH:充值;NOCASH:预充值。
	Type *string `json:"type,omitempty"`
	// 优惠券面额
	Amount *int64 `json:"amount,omitempty"`
	// 活动ID,批次ID
	StockId *string `json:"stock_id,omitempty"`
	// 单位为分
	WechatpayContribute *int64 `json:"wechatpay_contribute,omitempty"`
	// 单位为分
	MerchantContribute *int64 `json:"merchant_contribute,omitempty"`
	// 单位为分
	OtherContribute *int64 `json:"other_contribute,omitempty"`
	// CNY:人民币,境内商户号仅支持人民币。
	Currency    *string                `json:"currency,omitempty"`
	GoodsDetail []PromotionGoodsDetail `json:"goods_detail,omitempty"`
}

PromotionDetail

func (PromotionDetail) Clone added in v0.2.2

func (o PromotionDetail) Clone() *PromotionDetail

func (PromotionDetail) MarshalJSON

func (o PromotionDetail) MarshalJSON() ([]byte, error)

func (PromotionDetail) String

func (o PromotionDetail) String() string

type PromotionGoodsDetail

type PromotionGoodsDetail struct {
	// 商品编码
	GoodsId *string `json:"goods_id"`
	// 商品数量
	Quantity *int64 `json:"quantity"`
	// 商品价格
	UnitPrice *int64 `json:"unit_price"`
	// 商品优惠金额
	DiscountAmount *int64 `json:"discount_amount"`
	// 商品备注
	GoodsRemark *string `json:"goods_remark,omitempty"`
}

PromotionGoodsDetail

func (PromotionGoodsDetail) Clone added in v0.2.2

func (PromotionGoodsDetail) MarshalJSON

func (o PromotionGoodsDetail) MarshalJSON() ([]byte, error)

func (PromotionGoodsDetail) String

func (o PromotionGoodsDetail) String() string

type Transaction

type Transaction struct {
	Amount          *TransactionAmount `json:"amount,omitempty"`
	Appid           *string            `json:"appid,omitempty"`
	Attach          *string            `json:"attach,omitempty"`
	BankType        *string            `json:"bank_type,omitempty"`
	Mchid           *string            `json:"mchid,omitempty"`
	OutTradeNo      *string            `json:"out_trade_no,omitempty"`
	Payer           *TransactionPayer  `json:"payer,omitempty"`
	PromotionDetail []PromotionDetail  `json:"promotion_detail,omitempty"`
	SuccessTime     *string            `json:"success_time,omitempty"`
	TradeState      *string            `json:"trade_state,omitempty"`
	TradeStateDesc  *string            `json:"trade_state_desc,omitempty"`
	TradeType       *string            `json:"trade_type,omitempty"`
	TransactionId   *string            `json:"transaction_id,omitempty"`
}

Transaction

func (Transaction) Clone added in v0.2.2

func (o Transaction) Clone() *Transaction

func (Transaction) MarshalJSON

func (o Transaction) MarshalJSON() ([]byte, error)

func (Transaction) String

func (o Transaction) String() string

type TransactionAmount

type TransactionAmount struct {
	Currency      *string `json:"currency,omitempty"`
	PayerCurrency *string `json:"payer_currency,omitempty"`
	PayerTotal    *int64  `json:"payer_total,omitempty"`
	Total         *int64  `json:"total,omitempty"`
}

TransactionAmount

func (TransactionAmount) Clone added in v0.2.2

func (TransactionAmount) MarshalJSON

func (o TransactionAmount) MarshalJSON() ([]byte, error)

func (TransactionAmount) String

func (o TransactionAmount) String() string

type TransactionPayer

type TransactionPayer struct {
	Openid *string `json:"openid,omitempty"`
}

TransactionPayer

func (TransactionPayer) Clone added in v0.2.2

func (TransactionPayer) MarshalJSON

func (o TransactionPayer) MarshalJSON() ([]byte, error)

func (TransactionPayer) String

func (o TransactionPayer) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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