| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Data\Pagarme\Request\CustomerRequestData;
- use App\Data\Pagarme\PagarmeData;
- final readonly class CustomerAddressRequestData extends PagarmeData
- {
- public function __construct(
- public ?string $line1,
- public ?string $line2,
- public ?string $zipCode,
- public ?string $city,
- public ?string $state,
- public ?string $country,
- ) {}
- public function toArray(): array
- {
- return $this->filterFilledRecursive([
- 'line_1' => $this->line1,
- 'line_2' => $this->line2,
- 'zip_code' => $this->zipCode,
- 'city' => $this->city,
- 'state' => $this->state,
- 'country' => $this->country,
- ]);
- }
- }
|