| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Data\Pagarme\Request\Objects;
- use App\Data\Pagarme\PagarmeData;
- readonly class PagarmeRecipientRegisterInformationData extends PagarmeData
- {
- public function __construct(
- public string $name,
- public string $email,
- public string $document,
- public string $type,
- public ?string $birthdate,
- public int $monthlyIncome,
- public string $professionalOccupation,
- public PagarmeRecipientPhoneNumbersData $phoneNumbers,
- public PagarmeRecipientAddressData $address,
- ) {}
- public function toArray(): array
- {
- return $this->filterFilledRecursive([
- 'name' => $this->name,
- 'email' => $this->email,
- 'document' => $this->document,
- 'type' => $this->type,
- 'birthdate' => $this->birthdate,
- 'monthly_income' => $this->monthlyIncome,
- 'professional_occupation' => $this->professionalOccupation,
- 'phone_numbers' => $this->phoneNumbers,
- 'address' => $this->address,
- ]);
- }
- }
|