tipo: modificación del cpanel y gitignore de la carpeta vendor

This commit is contained in:
2026-07-07 11:35:09 -06:00
parent a0c91dc567
commit 676ef0d506
8510 changed files with 1132803 additions and 4 deletions
+51
View File
@@ -0,0 +1,51 @@
<?php
namespace Openpay\Data;
use Exception;
class OpenpayApiError extends Exception
{
protected $description;
protected $error_code;
protected $category;
protected $http_code;
protected $request_id;
protected $fraud_rules;
public function __construct($message = null, $error_code = 0, $category = null, $request_id = null, $http_code = null, $fraud_rules = null) {
parent::__construct($message, $error_code);
$this->description = $message;
$this->error_code = isset($error_code) ? $error_code : 0;
$this->category = isset($category) ? $category : '';
$this->http_code = isset($http_code) ? $http_code : 0;
$this->request_id = isset($request_id) ? $request_id : '';
$this->fraud_rules = isset($fraud_rules) ? $fraud_rules : array();
}
public function getDescription() {
return $this->description;
}
public function getErrorCode() {
return $this->error_code;
}
public function getCategory() {
return $this->category;
}
public function getHttpCode() {
return $this->http_code;
}
public function getRequestId() {
return $this->request_id;
}
public function getFraudRules() {
return $this->fraud_rules;
}
}