|
|
|
@ -2,13 +2,15 @@ |
|
|
|
|
|
|
|
|
|
|
|
namespace Tansilu\HfPayLib\factory\object\trade; |
|
|
|
namespace Tansilu\HfPayLib\factory\object\trade; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use JsonSerializable; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @property $divCustId 分账客户号 |
|
|
|
* @property $divCustId 分账客户号 |
|
|
|
* @property $divAcctId 分账账户号 |
|
|
|
* @property $divAcctId 分账账户号 |
|
|
|
* @property $divAmt 分账金额 |
|
|
|
* @property $divAmt 分账金额 |
|
|
|
* @property $riskDivType 风控分账用途 |
|
|
|
* @property $riskDivType 风控分账用途 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class DivDetail |
|
|
|
class DivDetail implements JsonSerializable |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static function make(string $divCustId, string $divAcctId, string $amount, string $riskDivType): self |
|
|
|
public static function make(string $divCustId, string $divAcctId, string $amount, string $riskDivType): self |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -35,9 +37,18 @@ class DivDetail |
|
|
|
$this->data[$name] = $value; |
|
|
|
$this->data[$name] = $value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function __toString() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->toJSON(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function toJSON(): string |
|
|
|
public function toJSON(): string |
|
|
|
{ |
|
|
|
{ |
|
|
|
return json_encode($this->data, JSON_UNESCAPED_UNICODE); |
|
|
|
return json_encode($this->data, JSON_UNESCAPED_UNICODE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function jsonSerialize(): array |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->data; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |