| 123456789101112131415161718192021222324252627 |
- <?php
- namespace App\Data\Pagarme\Response\PagarmeOrderResponseData\PagarmeOrderChargeResponseData;
- final readonly class PagarmeOrderTransactionResponseData
- {
- public function __construct(
- public ?string $id,
- public ?string $status,
- public ?int $amount,
- public ?string $createdAt,
- public ?string $acquirerMessage,
- public array $gatewayResponse,
- ) {}
- public function toArray(): array
- {
- return [
- 'id' => $this->id,
- 'status' => $this->status,
- 'amount' => $this->amount,
- 'created_at' => $this->createdAt,
- 'acquirer_message' => $this->acquirerMessage,
- 'gateway_response' => $this->gatewayResponse,
- ];
- }
- }
|