callback

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceTransferSendCallback

type BalanceTransferSendCallback struct {
	Response               string `form:"response" binding:"required"`
	CustomerIdentification string `form:"customerIdentification" binding:"required"`
}

type BalanceTransferSendCallbackResponse

type BalanceTransferSendCallbackResponse struct {
	CustomerNumber     string      `json:"customerNumber"`
	BatchNo            string      `json:"batchNo"`
	OrderId            string      `json:"orderId"`
	TransferStatusCode string      `json:"transferStatusCode"`
	BankTrxStatusCode  string      `json:"bankTrxStatusCode"`
	SuccessAmount      string      `json:"successAmount"`
	FinishDate         string      `json:"finishDate"`
	FailAmount         interface{} `json:"failAmount"`
	RefundAmount       interface{} `json:"refundAmount"`
	BankMsg            string      `json:"bankMsg"`
}

func TransferCallback

func TransferCallback(response string, yeepayConfig yeepayGo.YeepayConfig) (BalanceTransferSendCallbackResponse, error)

func (BalanceTransferSendCallbackResponse) IsSuccess

func (resp BalanceTransferSendCallbackResponse) IsSuccess() bool

func (BalanceTransferSendCallbackResponse) ToJson

type StdTradeOrderCallback

type StdTradeOrderCallback struct {
	Response               string `form:"response" binding:"required"`
	CustomerIdentification string `form:"customerIdentification" binding:"required"`
}

type StdTradeOrderCallbackResponse

type StdTradeOrderCallbackResponse struct {
	BankTrxId              string `json:"bankTrxId"`
	PreAuthAccountTime     string `json:"preAuthAccountTime"`
	OrderId                string `json:"orderId"`
	BankOrderId            string `json:"bankOrderId"`
	OpenId                 string `json:"openID"`
	PaySuccessDate         string `json:"paySuccessDate"`
	CustomerFee            string `json:"customerFee"`
	PlatformType           string `json:"platformType"`
	CardType               string `json:"cardType"`
	BankPaySuccessDate     string `json:"bankPaySuccessDate"`
	UniqueOrderNo          string `json:"uniqueOrderNo"`
	YpSettleAmount         string `json:"ypSettleAmount"`
	FundProcessType        string `json:"fundProcessType"`
	BankId                 string `json:"bankId"`
	OrderAmount            string `json:"orderAmount"`
	PayAmount              string `json:"payAmount"`
	RequestDate            string `json:"requestDate"`
	ParentMerchantNo       string `json:"parentMerchantNo"`
	YeepayPromotionDTOList string `json:"yeepayPromotionDTOList"`
	PaymentProduct         string `json:"paymentProduct"`
	MerchantNo             string `json:"merchantNo"`
	Status                 string `json:"status"`
}

func OrderCallback

func OrderCallback(response string, yeepayConfig yeepayGo.YeepayConfig) (StdTradeOrderCallbackResponse, error)

func (StdTradeOrderCallbackResponse) IsSuccess

func (resp StdTradeOrderCallbackResponse) IsSuccess() bool

func (StdTradeOrderCallbackResponse) ToJson

func (resp StdTradeOrderCallbackResponse) ToJson() (string, error)

type StdTradeRefundCallback

type StdTradeRefundCallback struct {
	Response               string `form:"response" binding:"required"`
	CustomerIdentification string `form:"customerIdentification" binding:"required"`
}

type StdTradeRefundCallbackResponse

type StdTradeRefundCallbackResponse struct {
	DisAccountAmount             string `json:"disAccountAmount"`
	ResidualAmount               string `json:"residualAmount"`
	OrderId                      string `json:"orderId"`
	AccountDivided               string `json:"accountDivided"`
	BizSystemNo                  string `json:"bizSystemNo"`
	Description                  string `json:"description"`
	UniqueOrderNo                string `json:"uniqueOrderNo"`
	RefundRequestId              string `json:"refundRequestId"`
	RefundSuccessDate            string `json:"refundSuccessDate"`
	YeepayRefundPromotionDTOList string `json:"yeepayRefundPromotionDTOList"`
	UniqueRefundNo               string `json:"uniqueRefundNo"`
	ParentMerchantNo             string `json:"parentMerchantNo"`
	RefundRequestDate            string `json:"refundRequestDate"`
	MerchantNo                   string `json:"merchantNo"`
	RefundAmount                 string `json:"refundAmount"`
	Status                       string `json:"status"`
}

func RefundCallback

func RefundCallback(response string, yeepayConfig yeepayGo.YeepayConfig) (StdTradeRefundCallbackResponse, error)

func (StdTradeRefundCallbackResponse) IsSuccess

func (resp StdTradeRefundCallbackResponse) IsSuccess() bool

func (StdTradeRefundCallbackResponse) ToJson

func (resp StdTradeRefundCallbackResponse) ToJson() (string, error)

Jump to

Keyboard shortcuts

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