pingan

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transform

func Transform(b []byte, t transform.Transformer) ([]byte, error)

Transform 编码格式转换

Types

type Option

type Option func(*Options)

Option ...

type Options

type Options struct {
	// 外置机地址
	Host string
	// 交易所代码
	QYdm string
	// 资金主账号ID
	SupAcctiD string
	// 交易所名称
	TranwebName string
	// 银行 sftp
	Sftp       Sftp
	Simplified encoding.Encoding
}

Options ...

type Pingan

type Pingan struct {
	// contains filtered or unexported fields
}

Pingan ...

func (*Pingan) CashOut

CashOut 出金

func (*Pingan) Contract

Contract 签约

func (*Pingan) GetThirdLogNo

func (h *Pingan) GetThirdLogNo() string

GetThirdLogNo ...

func (*Pingan) NotifyParse

func (h *Pingan) NotifyParse(b []byte, rsp interface{}) error

NotifyParse ...

type Service

type Service interface {
	GetThirdLogNo() string
	Contract(proto_pingan.ContractRequest1303) (*proto_pingan.ContractResponse1303, error)
	NotifyParse([]byte, interface{}) error
	CashOut(proto_pingan.CashOutRequest1318) (*proto_pingan.CashOutResponse1318, error)
}

Service ...

func New

func New(opt ...Option) Service

New ...

type Sftp

type Sftp struct {
	// SFTP 银行SFTP 地址
	Sftp string
	// SFTP 端口
	Port int
	// SFTP 用户账号
	User string
	// SFTP 密码
	Password string
	// 上传清算文件SFTP 路径
	ReconPath string
}

Sftp 银行 sftp

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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