leshuazf

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiV2MerchantUpdateAuthorityResponse

type ApiV2MerchantUpdateAuthorityResponse struct {
}

type ApiV2MerchantUpdateAuthorityResult

type ApiV2MerchantUpdateAuthorityResult struct {
	Result ApiV2MerchantUpdateAuthorityResponse // 结果
	Body   []byte                               // 内容
	Err    error                                // 错误
}

type App

type App struct {
	AgentId     string // 服务商编号,由乐刷分配的接入方唯一标识,明文传输。
	Environment string //  环境
	KeyAgent    string
	Pgsql       gopostgresql.App // 日志数据库
	Mongo       gomongo.App      // 日志数据库
}

App 乐刷

func (*App) ApiV2MerchantUpdateAuthority

func (app *App) ApiV2MerchantUpdateAuthority(notMustParams ...Params) *ApiV2MerchantUpdateAuthorityResult

ApiV2MerchantUpdateAuthority 给商户开通D0交易/结算权限接口。其中D0交易影响交易接口内t0字段能否标1,D0结算影响商户该种支付方式的秒到 https://www.yuque.com/leshuazf/doc/dbmxyi#Vw97n

func (*App) DataArea

func (app *App) DataArea(notMustParams ...Params) *DataAreaResult

DataArea 代理商通过地区信息来查地区详细信息 https://www.yuque.com/leshuazf/doc/dbmxyi#YwJl7

func (*App) DataBankBranch2

func (app *App) DataBankBranch2(notMustParams ...Params) *DataBankBranch2Result

DataBankBranch2 代理商通过联行号来查支行信息 https://www.yuque.com/leshuazf/doc/dbmxyi#QYl0c

func (*App) DataMcc

func (app *App) DataMcc(notMustParams ...Params) *DataMccResult

DataMcc 代理商通过MccCode来查商户类别明细 https://www.yuque.com/leshuazf/doc/dbmxyi#jRTHN

func (*App) NewParamsWith

func (app *App) NewParamsWith(params ...Params) Params

type DataAreaResponse

type DataAreaResponse struct {
	RespCode    string `json:"respCode"`
	RespMsg     string `json:"respMsg"`
	ReqSerialNo string `json:"reqSerialNo"`
	Data        []struct {
		AreaName       string `json:"areaName"`
		AreaCode       string `json:"areaCode"`
		ParentAreaCode string `json:"parentAreaCode"`
	} `json:"data"`
}

type DataAreaResult

type DataAreaResult struct {
	Result DataAreaResponse // 结果
	Body   []byte           // 内容
	Err    error            // 错误
}

func NewDataAreaResult

func NewDataAreaResult(result DataAreaResponse, body []byte, err error) *DataAreaResult

type DataBankBranch2Response

type DataBankBranch2Response struct {
	RespCode    string `json:"respCode"`
	RespMsg     string `json:"respMsg"`
	ReqSerialNo string `json:"reqSerialNo"`
	Data        struct {
		Total    int `json:"total"`
		Page     int `json:"page"`
		PageSize int `json:"pageSize"`
		List     []struct {
			UnionpayCode       string      `json:"unionpayCode"`
			FinInstitutionCode string      `json:"finInstitutionCode"`
			BankArea           string      `json:"bankArea"`
			BankCity           string      `json:"bankCity"`
			BranchName         string      `json:"branchName"`
			CftAreaCode        string      `json:"cftAreaCode"`
			CftCityCode        string      `json:"cftCityCode"`
			UnionAreaCode      interface{} `json:"unionAreaCode"`
			UnionCityCode      interface{} `json:"unionCityCode"`
			FinInstitutionName string      `json:"finInstitutionName"`
			BankName           string      `json:"bankName"`
		} `json:"list"`
	} `json:"data"`
}

type DataBankBranch2Result

type DataBankBranch2Result struct {
	Result DataBankBranch2Response // 结果
	Body   []byte                  // 内容
	Err    error                   // 错误
}

func NewDataBankBranch2Result

func NewDataBankBranch2Result(result DataBankBranch2Response, body []byte, err error) *DataBankBranch2Result

type DataMccResponse

type DataMccResponse struct {
	RespCode    string `json:"respCode"`
	RespMsg     string `json:"respMsg"`
	ReqSerialNo string `json:"reqSerialNo"`
	Data        []struct {
		GrandpaCode string `json:"grandpaCode"`
		GrandpaText string `json:"grandpaText"`
	} `json:"data"`
}

type DataMccResult

type DataMccResult struct {
	Result DataMccResponse // 结果
	Body   []byte          // 内容
	Err    error           // 错误
}

func NewDataMccResult

func NewDataMccResult(result DataMccResponse, body []byte, err error) *DataMccResult

type Params

type Params map[string]interface{}

Params 请求参数

func NewParams

func NewParams() Params

func (Params) Set

func (p Params) Set(key string, value interface{})

func (Params) SetParams

func (p Params) SetParams(params Params)

Jump to

Keyboard shortcuts

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