request

package
v3.2.55 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefundAmount

type RefundAmount struct {
	Refund   int                 `json:"refund"`
	From     []*RefundAmountFrom `json:"from,omitempty"`
	Total    int                 `json:"total"`
	Currency string              `json:"currency"`
}

type RefundAmountFrom

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

type RefundGoodDetail

type RefundGoodDetail 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 RequestRefund

type RequestRefund struct {
	SubMchid      string              `json:"sub_mchid,omitempty"`
	TransactionID string              `json:"transaction_id,omitempty"`
	OutTradeNo    string              `json:"out_trade_no,omitempty"` // OutTradeNo 和 TransactionID 二选一
	OutRefundNo   string              `json:"out_refund_no,omitempty"`
	Reason        string              `json:"reason,omitempty"`
	NotifyUrl     string              `json:"notify_url,omitempty"`
	FundsAccount  string              `json:"funds_account,omitempty"`
	Amount        *RefundAmount       `json:"amount"`
	GoodsDetail   []*RefundGoodDetail `json:"goods_detail,omitempty"`
}

Jump to

Keyboard shortcuts

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