dto

package
v0.0.0-...-5df1752 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlipayNotifyReq

type AlipayNotifyReq struct {
	GmtCreate      string `form:"gmt_create"`
	Charset        string `form:"charset"`
	SellerEmail    string `form:"seller_email"`
	Subject        string `form:"subject"`
	Sign           string `form:"sign"`
	BuyerId        string `form:"buyer_id"`
	Body           string `form:"body"`
	InvoiceAmount  string `form:"invoice_amount"`
	NotifyId       string `form:"notify_id"`
	FundBillList   string `form:"fund_bill_list"`
	NotifyType     string `form:"notify_type"`
	TradeStatus    string `form:"trade_status"`
	ReceiptAmount  string `form:"receipt_amount"`
	BuyerPayAmount string `form:"buyer_pay_amount"`
	AppId          string `form:"app_id"`
	SignType       string `form:"sign_type"`
	SellerId       string `form:"seller_id"`
	GmtPayment     string `form:"gmt_payment"`
	NotifyTime     string `form:"notify_time"`
	Version        string `form:"version"`
	OutTradeNo     string `form:"out_trade_no"`
	TotalAmount    string `form:"total_amount"`
	TradeNo        string `form:"trade_no"`
	AuthAppId      string `form:"auth_app_id"`
	BuyerLogonId   string `form:"buyer_logon_id"`
	PointAmount    string `form:"point_amount"`
}

type AlipayPublicReq

type AlipayPublicReq struct {
	AppId        string `json:"app_id"`                   //支付宝分配给开发者的应用ID
	Method       string `json:"method"`                   //接口名称
	Format       string `json:"format,omitempty"`         //仅支持JSON
	Charset      string `json:"charset"`                  //请求使用的编码格式,如utf-8,gbk,gb2312等
	SignType     string `json:"sign_type"`                //商户生成签名字符串所使用的签名算法类型,目前支持RSA2和RSA,推荐使用RSA2
	Sign         string `json:"sign"`                     //商户请求参数的签名串
	Timestamp    string `json:"timestamp"`                //发送请求的时间,格式"yyyy-MM-dd HH:mm:ss"
	Version      string `json:"version"`                  //调用的接口版本,固定为:1.0
	NotifyUrl    string `json:"notify_url,omitempty"`     //支付宝服务器主动通知商户服务器里指定的页面http/https路径。
	AppAuthToken string `json:"app_auth_token,omitempty"` //详见应用授权概述
	BizContent   string `json:"biz_content"`              //请求参数的集合,最大长度不限,除公共参数外所有请求参数都必须放在这个参数中传递,具体参照各产品快速接入文档
}

func NewAlipayPublicReq

func NewAlipayPublicReq(method, notifyUrl, bizContent string) AlipayPublicReq

func (*AlipayPublicReq) RSASign

func (a *AlipayPublicReq) RSASign() error

func (*AlipayPublicReq) ToUrlValues

func (a *AlipayPublicReq) ToUrlValues() url.Values

type AlipayTradeCloseReq

type AlipayTradeCloseReq struct {
	/*
		订单支付时传入的商户订单号,和支付宝交易号不能同时为空。
		trade_no,out_trade_no如果同时存在优先取trade_no
	*/
	OutTradeNo string `json:"out_trade_no,omitempty"`

	/*
		支付宝交易号,和商户订单号不能同时为空
	*/
	TradeNo string `json:"trade_no,omitempty"`

	OperatorId string `json:"operator_id,omitempty"`
}

func (*AlipayTradeCloseReq) ToString

func (a *AlipayTradeCloseReq) ToString() string

type AlipayTradeCloseResp

type AlipayTradeCloseResp struct {
	AlipayTradeCloseResponse AlipayTradeCloseResponse `json:"alipay_trade_close_response"`
	Sign                     string                   `json:"sign"`
}

type AlipayTradeCloseResponse

type AlipayTradeCloseResponse struct {
	Code       string `json:"code,omitempty"`
	Msg        string `json:"msg,omitempty"`
	OutTradeNo string `json:"out_trade_no,omitempty"`
	QrCode     string `json:"qr_code,omitempty"`
}

type AlipayTradePrecreateReq

type AlipayTradePrecreateReq struct {
	OutTradeNo           string         `json:"out_trade_no,omitempty"`
	TotalAmount          string         `json:"total_amount,omitempty"`
	Subject              string         `json:"subject,omitempty"`
	Body                 string         `json:"body,omitempty"`
	StoreID              string         `json:"store_id,omitempty"`
	TimeExpire           string         `json:"time_expire,omitempty"`
	ExtendParams         ExtendParams   `json:"extend_params,omitempty"`
	QueryOptions         []string       `json:"query_options,omitempty"`
	SettleInfo           SettleInfo     `json:"settle_info,omitempty"`
	OperatorID           string         `json:"operator_id,omitempty"`
	ProductCode          string         `json:"product_code,omitempty"`
	GoodsDetail          []GoodsDetail  `json:"goods_detail,omitempty"`
	MerchantOrderNo      string         `json:"merchant_order_no,omitempty"`
	EnablePayChannels    string         `json:"enable_pay_channels,omitempty"`
	DiscountableAmount   string         `json:"discountable_amount,omitempty"`
	BusinessParams       BusinessParams `json:"business_params,omitempty"`
	TimeoutExpress       string         `json:"timeout_express,omitempty"`
	DisablePayChannels   string         `json:"disable_pay_channels,omitempty"`
	UndiscountableAmount string         `json:"undiscountable_amount,omitempty"`
	BkagentReqInfo       BkagentReqInfo `json:"bkagent_req_info,omitempty"`
	SellerID             string         `json:"seller_id,omitempty"`
	TerminalID           string         `json:"terminal_id,omitempty"`
	CodeType             string         `json:"code_type,omitempty"`
}

参考 https://opendocs.alipay.com/apis/02890k?pathHash=0f11e06a

func NewBaseAlipayTradePrecreateReq

func NewBaseAlipayTradePrecreateReq(outTradeNo, totalAmount, subject, body string) AlipayTradePrecreateReq

func (*AlipayTradePrecreateReq) ToString

func (a *AlipayTradePrecreateReq) ToString() string

type AlipayTradePrecreateResp

type AlipayTradePrecreateResp struct {
	AlipayTradePrecreateResponse AlipayTradePrecreateResponse `json:"alipay_trade_precreate_response"`
	Sign                         string                       `json:"sign"`
}

type AlipayTradePrecreateResponse

type AlipayTradePrecreateResponse struct {
	Code       string `json:"code,omitempty"`
	Msg        string `json:"msg,omitempty"`
	OutTradeNo string `json:"out_trade_no,omitempty"`
	QrCode     string `json:"qr_code,omitempty"`
	ShareCode  string `json:"share_code,omitempty"`
}

type AlipayTradeQueryReq

type AlipayTradeQueryReq struct {
	/*
		订单支付时传入的商户订单号,和支付宝交易号不能同时为空。
		trade_no,out_trade_no如果同时存在优先取trade_no
	*/
	OutTradeNo string `json:"out_trade_no,omitempty"`

	/*
		支付宝交易号,和商户订单号不能同时为空
	*/
	TradeNo string `json:"trade_no,omitempty"`

	QueryOptions []string `json:"query_options,omitempty"`
}

func (*AlipayTradeQueryReq) ToString

func (a *AlipayTradeQueryReq) ToString() string

type AlipayTradeQueryResp

type AlipayTradeQueryResp struct {
	AlipayTradeQueryResponse AlipayTradeQueryResponse `json:"alipay_trade_query_response"`
	Sign                     string                   `json:"sign"`
}

type AlipayTradeQueryResponse

type AlipayTradeQueryResponse struct {
	Code            string         `json:"code"`
	Msg             string         `json:"msg"`
	TradeNo         string         `json:"trade_no"`
	OutTradeNo      string         `json:"out_trade_no"`
	BuyerLogonID    string         `json:"buyer_logon_id"`
	TradeStatus     string         `json:"trade_status"`
	TotalAmount     string         `json:"total_amount"`
	BuyerPayAmount  string         `json:"buyer_pay_amount"`
	PointAmount     string         `json:"point_amount"`
	InvoiceAmount   string         `json:"invoice_amount"`
	SendPayDate     string         `json:"send_pay_date"`
	ReceiptAmount   string         `json:"receipt_amount"`
	StoreID         string         `json:"store_id"`
	TerminalID      string         `json:"terminal_id"`
	FundBillList    []FundBillList `json:"fund_bill_list"`
	StoreName       string         `json:"store_name"`
	BuyerUserID     string         `json:"buyer_user_id"`
	BuyerOpenID     string         `json:"buyer_open_id"`
	BuyerUserType   string         `json:"buyer_user_type"`
	MdiscountAmount string         `json:"mdiscount_amount"`
	DiscountAmount  string         `json:"discount_amount"`
	ExtInfos        string         `json:"ext_infos"`
}

type BkagentReqInfo

type BkagentReqInfo struct {
	MerchCode  string `json:"merch_code,omitempty"`
	AcqCode    string `json:"acq_code,omitempty"`
	DeviceType string `json:"device_type,omitempty"`
	Location   string `json:"location,omitempty"`
	SerialNum  string `json:"serial_num,omitempty"`
}

参考 https://opendocs.alipay.com/apis/02890k?pathHash=0f11e06a

type BusinessParams

type BusinessParams struct {
	GoodTaxes              string `json:"good_taxes,omitempty"`
	EnterprisePayInfo      string `json:"enterprise_pay_info,omitempty"`
	ActualOrderTime        string `json:"actual_order_time,omitempty"`
	CampusCard             string `json:"campus_card,omitempty"`
	CardType               string `json:"card_type,omitempty"`
	EnterprisePayAmount    string `json:"enterprise_pay_amount,omitempty"`
	TinyAppMerchantBizType string `json:"tiny_app_merchant_biz_type,omitempty"`
	McCreateTradeIP        string `json:"mc_create_trade_ip,omitempty"`
}

参考 https://opendocs.alipay.com/apis/02890k?pathHash=0f11e06a

type ExtendParams

type ExtendParams struct {
	SysServiceProviderID  string `json:"sys_service_provider_id,omitempty"`
	TcInstallmentOrderID  string `json:"tc_installment_order_id,omitempty"`
	SpecifiedSellerName   string `json:"specified_seller_name,omitempty"`
	RoyaltyFreeze         string `json:"royalty_freeze,omitempty"`
	CardType              string `json:"card_type,omitempty"`
	TradeComponentOrderID string `json:"trade_component_order_id,omitempty"`
}

参考 https://opendocs.alipay.com/apis/02890k?pathHash=0f11e06a

type FundBillList

type FundBillList struct {
	FundChannel string `json:"fund_channel"`
	Amount      string `json:"amount"`
	RealAmount  string `json:"real_amount"`
}

type GoodsDetail

type GoodsDetail struct {
	OutSkuID       string `json:"out_sku_id,omitempty"`
	GoodsName      string `json:"goods_name,omitempty"`
	Quantity       int    `json:"quantity,omitempty"`
	Price          string `json:"price,omitempty"`
	OutItemID      string `json:"out_item_id,omitempty"`
	GoodsID        string `json:"goods_id,omitempty"`
	GoodsCategory  string `json:"goods_category,omitempty"`
	CategoriesTree string `json:"categories_tree,omitempty"`
	ShowURL        string `json:"show_url,omitempty"`
}

参考 https://opendocs.alipay.com/apis/02890k?pathHash=0f11e06a

type SettleDetailInfos

type SettleDetailInfos struct {
	Amount           string `json:"amount,omitempty"`
	TransIn          string `json:"trans_in,omitempty"`
	SettleEntityType string `json:"settle_entity_type,omitempty"`
	SummaryDimension string `json:"summary_dimension,omitempty"`
	ActualAmount     string `json:"actual_amount,omitempty"`
	SettleEntityID   string `json:"settle_entity_id,omitempty"`
	TransInType      string `json:"trans_in_type,omitempty"`
}

参考 https://opendocs.alipay.com/apis/02890k?pathHash=0f11e06a

type SettleInfo

type SettleInfo struct {
	SettlePeriodTime  string              `json:"settle_period_time,omitempty"`
	SettleDetailInfos []SettleDetailInfos `json:"settle_detail_infos,omitempty"`
}

参考 https://opendocs.alipay.com/apis/02890k?pathHash=0f11e06a

Jump to

Keyboard shortcuts

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