| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace App\Data\Pagarme\Response;
- final readonly class PagarmeTransferResponseData
- {
- public function __construct(
- public ?string $id,
- public ?int $amount,
- public ?string $type,
- public ?string $status,
- public ?int $fee,
- public ?string $fundingDate,
- public ?string $fundingEstimatedDate,
- public ?array $bankAccount,
- public ?string $bankResponse,
- public ?string $createdAt,
- public ?array $metadata,
- ) {}
- public function id(): ?string
- {
- return $this->id;
- }
- public function status(): ?string
- {
- return $this->status;
- }
- //
- public function toArray(): array
- {
- return [
- 'id' => $this->id,
- 'amount' => $this->amount,
- 'type' => $this->type,
- 'status' => $this->status,
- 'fee' => $this->fee,
- 'funding_date' => $this->fundingDate,
- 'funding_estimated_date' => $this->fundingEstimatedDate,
- 'bank_account' => $this->bankAccount,
- 'bank_response' => $this->bankResponse,
- 'created_at' => $this->createdAt,
- 'metadata' => $this->metadata,
- ];
- }
- }
|