|
@@ -16,7 +16,11 @@ class LaepIndustryService
|
|
|
$this->v2LakalaApi = new V2LakalaApi($config->getV2Config());
|
|
$this->v2LakalaApi = new V2LakalaApi($config->getV2Config());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function ewalletBalanceQuery(array $reqData)
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 账户余额查询
|
|
|
|
|
+ * @link https://o.lakala.com/#/home/document/detail?id=364
|
|
|
|
|
+ */
|
|
|
|
|
+ public function ewalletBalanceQuery(array $reqData): object
|
|
|
{
|
|
{
|
|
|
$request = new V2ModelRequest();
|
|
$request = new V2ModelRequest();
|
|
|
$reqData['orgNo'] = $this->config->org_code;
|
|
$reqData['orgNo'] = $this->config->org_code;
|
|
@@ -32,4 +36,47 @@ class LaepIndustryService
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 提款模式查询
|
|
|
|
|
+ * @link https://o.lakala.com/#/home/document/detail?id=373
|
|
|
|
|
+ */
|
|
|
|
|
+ public function ewalletSettleQuery(string $mercId): object
|
|
|
|
|
+ {
|
|
|
|
|
+ $request = new V2ModelRequest();
|
|
|
|
|
+ $reqData = [
|
|
|
|
|
+ 'bmcpNo' => $this->config->org_code,
|
|
|
|
|
+ 'mercId' => $mercId,
|
|
|
|
|
+ ];
|
|
|
|
|
+ $request->setReqData($reqData);
|
|
|
|
|
+ $response = $this->v2LakalaApi->tradeApi('/api/v2/laep/industry/ewallet/settleQuery', $request);
|
|
|
|
|
+ if ($response->getRetCode() == '000000') {
|
|
|
|
|
+ return $response->getRespData();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ throw_logic_exception(
|
|
|
|
|
+ msg:$response->getRetMsg(),
|
|
|
|
|
+ code: (int)$response->getRetCode(),
|
|
|
|
|
+ data: $response->getRespData(),
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 提款模式设置
|
|
|
|
|
+ *
|
|
|
|
|
+ * @link https://o.lakala.com/#/home/document/detail?id=372
|
|
|
|
|
+ */
|
|
|
|
|
+ public function ewalletSettleProfile(string $mercId, string $settleType): bool
|
|
|
|
|
+ {
|
|
|
|
|
+ $request = new V2ModelRequest();
|
|
|
|
|
+ $reqData = [
|
|
|
|
|
+ 'bmcpNo' => $this->config->org_code,
|
|
|
|
|
+ 'mercId' => $mercId,
|
|
|
|
|
+ 'settleType' => $settleType,
|
|
|
|
|
+ ];
|
|
|
|
|
+ $request->setReqData($reqData);
|
|
|
|
|
+ $response = $this->v2LakalaApi->tradeApi('/api/v2/laep/industry/ewallet/settleProfile', $request);
|
|
|
|
|
+ return $response->getRetCode() == '000000';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|