$_apiMethod
$_apiMethod : string
接口名称.
微信支付-删除分账接收方.
$receiver : array<mixed,\Yurun\PaySDK\Weixin\Profit\RemoverReceiver>
分账接收方.
__onExecute(\Yurun\PaySDK\Base $sdk, string $format) : boolean
当调用SDK的execute时触发,返回true时不执行SDK中默认的执行逻辑.
\Yurun\PaySDK\Base | $sdk | |
string | $format | 数据格式,json、xml等 |
<?php
namespace Yurun\PaySDK\Weixin\Profit\RemoveReceiver;
use Yurun\PaySDK\Weixin\Profit\RemoverReceiver;
use Yurun\PaySDK\WeixinRequestBase;
/**
* 微信支付-删除分账接收方.
*
* @see https://pay.weixin.qq.com/wiki/doc/api/allocation.php?chapter=27_4&index=5
* @see https://pay.weixin.qq.com/wiki/doc/api/allocation_sl.php?chapter=25_4&index=5
*/
class Request extends WeixinRequestBase
{
/**
* 接口名称.
*
* @var string
*/
public $_apiMethod = 'pay/profitsharingremovereceiver';
/**
* 品牌主商户号.
*
* 当服务商开通了“连锁品牌工具”后,使用品牌供应链分账时,此参数传入品牌主商户号。传入后,分账方的分账比例,校验品牌主配置的全局分账。
* 使用普通分账,未开通“连锁品牌工具”的商户,可忽略此字段。
*
* @var string
*/
public $brand_mch_id;
/**
* 分账接收方.
*
* @var RemoverReceiver[]
*/
public $receiver;
public function toArray()
{
$data = get_object_vars($this);
if (!isset($data['receivers']))
{
$data['receivers'] = json_encode($data['receivers']);
}
return $data;
}
}