\jd_vopPrice

Class Price

Summary

Methods
Properties
Constants
__construct()
Req()
GetSellPrice()
GetUnionBalance()
No public properties found
No constants found
No protected methods found
$client_id
$username
$password_md5
$client_secret
N/A
No private methods found
No private properties found
N/A

Properties

$client_id

$client_id : 

Type

$username

$username : 

Type

$password_md5

$password_md5 : 

Type

$client_secret

$client_secret : 

Type

Methods

__construct()

__construct(  $client_id,   $username,   $password_md5,   $client_secret) 

Parameters

$client_id
$username
$password_md5
$client_secret

Req()

Req(\jd_vop\request\Request  $request, string  $response) : \jd_vop\response\Response

统一请求封装

Parameters

\jd_vop\request\Request $request

Request 对象 继承自request\Request

string $response

response 接收对象 实现 response\Response 接口

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

\jd_vop\response\Response

GetSellPrice()

GetSellPrice(  $token,   $sku,   $skuInfos, \jd_vop\request\price\GetSellPriceQueryExt  $queryExts) : mixed

5.1 查询商品售卖价

Parameters

$token

string 授权时获取的access token

$sku

string 商品编号,请以,(英文逗号)分割。例如:129408,129409 (最高支持100个商品)

$skuInfos

array [{"skuId":1234,"num":1},{"skuId":1234,"num":1}],不传时取sku对应的商品编号,数量默认为1。此字段有值则不校验sku字段

\jd_vop\request\price\GetSellPriceQueryExt $queryExts

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed

GetUnionBalance()

GetUnionBalance(  $token, string  $pin,   $type) : mixed

8.1 查询余额

Parameters

$token

string 授权时获取的access token

string $pin

京东PIN。必须是相同合同下的pin。

$type

string 账户余额类型。 多选,可用英文逗号拼接。 参考枚举值如下: todo 修改枚举 1:账户余额。 2:金采余额。

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed