京东云
This commit is contained in:
50
vendor/jdcloud-api/jdcloud-sdk-php/src/Asset/AssetClient.php
vendored
Normal file
50
vendor/jdcloud-api/jdcloud-sdk-php/src/Asset/AssetClient.php
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Asset
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Asset
|
||||
* @author Jdcloud <jdcloud-api@jd.com>
|
||||
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
|
||||
* @link https://www.jdcloud.com/help/faq
|
||||
*/
|
||||
|
||||
namespace Jdcloud\Asset;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with asset.
|
||||
*
|
||||
* @method \Jdcloud\Result describeAccountAmount(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeAccountAmountAsync(array $args = [])
|
||||
* @method \Jdcloud\Result modifyBalanceWarningInfo(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise modifyBalanceWarningInfoAsync(array $args = [])
|
||||
*/
|
||||
class AssetClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'asset',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'asset'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
9
vendor/jdcloud-api/jdcloud-sdk-php/src/Asset/ChangeLog.md
vendored
Normal file
9
vendor/jdcloud-api/jdcloud-sdk-php/src/Asset/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# 更新历史 #
|
||||
API版本:0.0.2
|
||||
|
||||
| 发布时间 | 版本号 | 更新 | 说明 |
|
||||
| ---------- | ------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 2020-07-10 | 0.0.3 | 修改网关地址 | host修改为asset.jdcloud-api.com | |
|
||||
| 2020-07-07 | 0.0.2 | 完善返回字段描述信息 | 开放查询余额openAPI接口,完善返回字段描述信息 | |
|
||||
| 2019-04-30 | 0.0.1 | 接口新增与更新 |初始版本,提供控制台以下功能接口:<br>1、控制台查询余额、充值状态、余额预警信息<br>2、消费/充值/提现列表<br>3、设置余额预警(开关/金额<br>4、充值、提现 | |
|
||||
|
||||
Reference in New Issue
Block a user