payments

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 2 Imported by: 48

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 *int32 `json:"amount,omitempty"`
	// 活动ID,批次ID
	StockId *string `json:"stock_id,omitempty"`
	// 单位为分
	WechatpayContribute *int32 `json:"wechatpay_contribute,omitempty"`
	// 单位为分
	MerchantContribute *int32 `json:"merchant_contribute,omitempty"`
	// 单位为分
	OtherContribute *int32 `json:"other_contribute,omitempty"`
	// CNY:人民币,境内商户号仅支持人民币。
	Currency    *string                `json:"currency,omitempty"`
	GoodsDetail []PromotionGoodsDetail `json:"goods_detail,omitempty"`
}

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 *int32 `json:"quantity"`
	// 商品价格
	UnitPrice *int32 `json:"unit_price"`
	// 商品优惠金额
	DiscountAmount *int32 `json:"discount_amount"`
	// 商品备注
	GoodsRemark *string `json:"goods_remark,omitempty"`
}

PromotionGoodsDetail

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) 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    *int32  `json:"payer_total,omitempty"`
	Total         *int32  `json:"total,omitempty"`
}

TransactionAmount

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) 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