| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Data\Pagarme\Request\Objects;
- use App\Data\Pagarme\PagarmeData;
- readonly class PagarmeRecipientAddressData extends PagarmeData
- {
- public function __construct(
- public string $street,
- public string $complementary,
- public string $streetNumber,
- public string $neighborhood,
- public ?string $city,
- public ?string $state,
- public string $zipCode,
- public string $referencePoint,
- ) {}
- public function toArray(): array
- {
- return $this->filterFilledRecursive([
- 'street' => $this->street,
- 'complementary' => $this->complementary,
- 'street_number' => $this->streetNumber,
- 'neighborhood' => $this->neighborhood,
- 'city' => $this->city,
- 'state' => $this->state,
- 'zip_code' => $this->zipCode,
- 'reference_point' => $this->referencePoint,
- ]);
- }
- }
|