PagarmeRecipientBankAccountResponseData.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Data\Pagarme\Response\PagarmeRecipientResponseData;
  3. final readonly class PagarmeRecipientBankAccountResponseData
  4. {
  5. public function __construct(
  6. public ?string $holderName,
  7. public ?string $holderType,
  8. public ?string $holderDocument,
  9. public ?string $bank,
  10. public ?string $branchNumber,
  11. public ?string $branchCheckDigit,
  12. public ?string $accountNumber,
  13. public ?string $accountCheckDigit,
  14. public ?string $type,
  15. ) {}
  16. public function toArray(): array
  17. {
  18. return [
  19. 'holder_name' => $this->holderName,
  20. 'holder_type' => $this->holderType,
  21. 'holder_document' => $this->holderDocument,
  22. 'bank' => $this->bank,
  23. 'branch_number' => $this->branchNumber,
  24. 'branch_check_digit' => $this->branchCheckDigit,
  25. 'account_number' => $this->accountNumber,
  26. 'account_check_digit' => $this->accountCheckDigit,
  27. 'type' => $this->type,
  28. ];
  29. }
  30. }