関数
Log::__construct( string $chargePermissionId, string $actionType, string $responseCode, int $amount = null, WCEXAAP\Aivec\ResponseHandler\GenericError|null $error = null, string $timestamp = null )
Log instance for passing to Loggerパラメータ パラメータ
- $chargePermissionId
(文字列) (必須)
- $actionType
(文字列) (必須)
- $responseCode
(文字列) (必須)
- $amount
(数値) (任意)
- $error
(WCEXAAP\Aivec\ResponseHandler\GenericError) (任意)
- $timestamp
(文字列) (任意)
ファイル: src/Models/Log.php
public function __construct(
$chargePermissionId,
$actionType,
$responseCode,
$amount = null,
$error = null,
$timestamp = null
) {
$this->chargePermissionId = $chargePermissionId;
$this->actionType = $actionType;
$this->responseCode = $responseCode;
$this->amount = $amount;
$this->error = $error;
$this->timestamp = !empty($timestamp) ? $timestamp : current_time('mysql');
}