Documentation ¶
Index ¶
- type ApiV2MerchantUpdateAuthorityResponse
- type ApiV2MerchantUpdateAuthorityResult
- type Client
- func (c *Client) ApiV2MerchantUpdateAuthority(ctx context.Context, notMustParams ...gorequest.Params) (*ApiV2MerchantUpdateAuthorityResult, error)
- func (c *Client) ConfigSLogClientFun(apiSLogFun golog.ApiSLogFun)
- func (c *Client) DataArea(ctx context.Context, notMustParams ...gorequest.Params) (*DataAreaResult, error)
- func (c *Client) DataBankBranch2(ctx context.Context, notMustParams ...gorequest.Params) (*DataBankBranch2Result, error)
- func (c *Client) DataMcc(ctx context.Context, notMustParams ...gorequest.Params) (*DataMccResult, error)
- func (c *Client) DefaultHttp()
- func (c *Client) Get(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)
- func (c *Client) GetAgentId() string
- func (c *Client) GetEnvironment() string
- func (c *Client) GetKeyAgent() string
- func (c *Client) Post(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)
- func (c *Client) SetHttp(app *gorequest.App)
- type ConfigClient
- type DataAreaResponse
- type DataAreaResult
- type DataBankBranch2Response
- type DataBankBranch2Result
- type DataMccResponse
- type DataMccResult
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 // 内容 Http gorequest.Response // 请求 }
type Client ¶ added in v1.0.216
type Client struct {
// contains filtered or unexported fields
}
Client 乐刷
func NewClient ¶ added in v1.0.216
func NewClient(config *ConfigClient) (*Client, error)
func (*Client) ApiV2MerchantUpdateAuthority ¶ added in v1.0.216
func (c *Client) ApiV2MerchantUpdateAuthority(ctx context.Context, notMustParams ...gorequest.Params) (*ApiV2MerchantUpdateAuthorityResult, error)
ApiV2MerchantUpdateAuthority 给商户开通D0交易/结算权限接口。其中D0交易影响交易接口内t0字段能否标1,D0结算影响商户该种支付方式的秒到 https://www.yuque.com/leshuazf/doc/dbmxyi#Vw97n
func (*Client) ConfigSLogClientFun ¶ added in v1.0.216
func (c *Client) ConfigSLogClientFun(apiSLogFun golog.ApiSLogFun)
ConfigSLogClientFun 日志配置
func (*Client) DataArea ¶ added in v1.0.216
func (c *Client) DataArea(ctx context.Context, notMustParams ...gorequest.Params) (*DataAreaResult, error)
DataArea 代理商通过地区信息来查地区详细信息 https://www.yuque.com/leshuazf/doc/dbmxyi#YwJl7
func (*Client) DataBankBranch2 ¶ added in v1.0.216
func (c *Client) DataBankBranch2(ctx context.Context, notMustParams ...gorequest.Params) (*DataBankBranch2Result, error)
DataBankBranch2 代理商通过联行号来查支行信息 https://www.yuque.com/leshuazf/doc/dbmxyi#QYl0c
func (*Client) DataMcc ¶ added in v1.0.216
func (c *Client) DataMcc(ctx context.Context, notMustParams ...gorequest.Params) (*DataMccResult, error)
DataMcc 代理商通过MccCode来查商户类别明细 https://www.yuque.com/leshuazf/doc/dbmxyi#jRTHN
func (*Client) GetAgentId ¶ added in v1.0.216
func (*Client) GetEnvironment ¶ added in v1.0.216
func (*Client) GetKeyAgent ¶ added in v1.0.216
type ConfigClient ¶ added in v1.0.216
type DataAreaResponse ¶
type DataAreaResult ¶
type DataAreaResult struct { Result DataAreaResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
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 // 内容 Http gorequest.Response // 请求 }
type DataMccResponse ¶
type DataMccResult ¶
type DataMccResult struct { Result DataMccResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
Click to show internal directories.
Click to hide internal directories.