response

package
v3.1.20 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount struct {
	Currency      string `json:"currency"`
	PayerCurrency string `json:"payer_currency"`
	PayerTotal    int    `json:"payer_total"`
	Total         int    `json:"total"`
}

type Form added in v3.1.2

type Form struct {
	Account string `json:"account"`
	Amount  int    `json:"amount"`
}

type GoodDetail added in v3.1.2

type GoodDetail struct {
	MerchantGoodsId  string `json:"merchant_goods_id"`
	WechatPayGoodsId string `json:"wechatpay_goods_id"`
	GoodsName        string `json:"goods_name"`
	UnitPrice        int    `json:"unit_price"`
	RefundAmount     int    `json:"refund_amount"`
	RefundQuantity   int    `json:"refund_quantity"`
}

type Payer

type Payer struct {
	SpOpenid  string `json:"sp_openid"`
	SubOpenid string `json:"sub_openid"`
}

type PromptDetail added in v3.1.2

type PromptDetail struct {
	PromotionId  string       `json:"promotion_id"`
	Scope        string       `json:"scope"`
	Type         string       `json:"type"`
	Amount       int          `json:"amount"`
	RefundAmount int          `json:"refund_amount"`
	GoodsDetail  []GoodDetail `json:"goods_detail"`
}

type RefundAmount added in v3.1.2

type RefundAmount struct {
	Total            int    `json:"total"`
	Refund           int    `json:"refund"`
	From             []Form `json:"from"`
	PayerTotal       int    `json:"payer_total"`
	PayerRefund      int    `json:"payer_refund"`
	SettlementRefund int    `json:"settlement_refund"`
	SettlementTotal  int    `json:"settlement_total"`
	DiscountRefund   int    `json:"discount_refund"`
	Currency         string `json:"currency"`
}

type ResponseCodeURL

type ResponseCodeURL struct {
	response.ResponsePayment

	CodeURL string `json:"code_url"`
}

type ResponseH5URL

type ResponseH5URL struct {
	response.ResponsePayment

	H5URL string `json:"h5_url"`
}

type ResponseHeaderCloseOrdr

type ResponseHeaderCloseOrdr struct {
	response.ResponsePayment

	Status string `header:"status"`
}

type ResponseOrder

type ResponseOrder struct {
	response.ResponsePayment

	Amount          *Amount           `json:"amount"`
	Attach          string            `json:"attach"`
	BankType        string            `json:"bank_type"`
	OutTradeNo      string            `json:"out_trade_no"`
	Payer           *Payer            `json:"payer"`
	PromotionDetail []*object.HashMap `json:"promotion_detail"`
	SpAppId         string            `json:"sp_appid"`
	SpMchId         string            `json:"sp_mchid"`
	SubAppId        string            `json:"sub_appid"`
	SubMchId        string            `json:"sub_mchid"`
	SuccessTime     time.Time         `json:"success_time"`
	TradeState      string            `json:"trade_state"`
	TradeStateDesc  string            `json:"trade_state_desc"`
	TradeType       string            `json:"trade_type"`
	TransactionId   string            `json:"transaction_id"`
	SceneInfo       *SceneInfo        `json:"scene_info,omitempty"`
}

type ResponseQueryByOutRefundNO added in v3.1.2

type ResponseQueryByOutRefundNO struct {
	response.ResponsePayment
	RefundId            string         `json:"refund_id"`
	OutRefundNo         string         `json:"out_refund_no"`
	TransactionId       string         `json:"transaction_id"`
	OutTradeNo          string         `json:"out_trade_no"`
	Channel             string         `json:"channel"`
	UserReceivedAccount string         `json:"user_received_account"`
	SuccessTime         time.Time      `json:"success_time"`
	CreateTime          time.Time      `json:"create_time"`
	Status              string         `json:"status"`
	FundsAccount        string         `json:"funds_account"`
	Amount              RefundAmount   `json:"amount"`
	PromotionDetail     []PromptDetail `json:"promotion_detail"`
}

https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_1_10.shtml

type ResponseUnitfy

type ResponseUnitfy struct {
	response.ResponsePayment

	PrepayID string `json:"prepay_id"`
}

type SceneInfo added in v3.1.1

type SceneInfo struct {
	DeviceId string `json:"device_id,omitempty"`
}

Jump to

Keyboard shortcuts

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