mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Bump DataTable from 2.3.3 to 2.3.4, TinyMCE 8.0.2 to 8.2.0, Stripe-PHP 17.6.0 to 18.1.0, PHPMailer from 6.10.0 to 7.0.0, chartjs from 4.5.0 to 4.5.1
This commit is contained in:
@@ -3,11 +3,40 @@
|
||||
namespace Stripe;
|
||||
|
||||
/**
|
||||
* @property string $id Unique identifier for the event.
|
||||
* @property string $idempotency_key
|
||||
* Information on the API request that instigated the event.
|
||||
*
|
||||
* @property string $id ID of the API request that caused the event.
|
||||
* @property string $idempotency_key The idempotency key transmitted during the request.
|
||||
*/
|
||||
class Reason
|
||||
class ReasonRequest
|
||||
{
|
||||
public $id;
|
||||
public $idempotency_key;
|
||||
|
||||
public function __construct($json)
|
||||
{
|
||||
$this->id = $json['id'];
|
||||
$this->idempotency_key = $json['idempotency_key'];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @property string $type Event reason type.
|
||||
* @property null|ReasonRequest $request Information on the API request that instigated the event.
|
||||
*/
|
||||
class Reason
|
||||
{
|
||||
public $type;
|
||||
public $request;
|
||||
|
||||
public function __construct($json)
|
||||
{
|
||||
$this->type = $json['type'];
|
||||
|
||||
if ('request' === $this->type) {
|
||||
$this->request = new ReasonRequest($json['request']);
|
||||
} else {
|
||||
$this->request = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user