| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | /* |
| 6: | * This file has been auto generated by Jane, |
| 7: | * |
| 8: | * Do no edit it directly. |
| 9: | */ |
| 10: | |
| 11: | namespace NxSys\Library\Clients\Brex\API\Team\Model; |
| 12: | |
| 13: | class CreateCardRequestMailingAddress extends \ArrayObject |
| 14: | { |
| 15: | /** |
| 16: | * @var array |
| 17: | */ |
| 18: | protected $initialized = []; |
| 19: | |
| 20: | public function isInitialized($property): bool |
| 21: | { |
| 22: | return array_key_exists($property, $this->initialized); |
| 23: | } |
| 24: | /** |
| 25: | * Address line 1, no PO Box. |
| 26: | * |
| 27: | * @var string|null |
| 28: | */ |
| 29: | protected $line1; |
| 30: | /** |
| 31: | * Address line 2 (e.g., apartment, suite, unit, or building). |
| 32: | * |
| 33: | * @var string|null |
| 34: | */ |
| 35: | protected $line2; |
| 36: | /** |
| 37: | * City, district, suburb, town, or village. |
| 38: | * |
| 39: | * @var string|null |
| 40: | */ |
| 41: | protected $city; |
| 42: | /** |
| 43: | * For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region. |
| 44: | * |
| 45: | * @var string|null |
| 46: | */ |
| 47: | protected $state; |
| 48: | /** |
| 49: | * Two-letter country code (ISO 3166-1 alpha-2). |
| 50: | * |
| 51: | * @var string|null |
| 52: | */ |
| 53: | protected $country; |
| 54: | /** |
| 55: | * ZIP or postal code. |
| 56: | * |
| 57: | * @var string|null |
| 58: | */ |
| 59: | protected $postalCode; |
| 60: | /** |
| 61: | * Phone number. |
| 62: | * |
| 63: | * @var string|null |
| 64: | */ |
| 65: | protected $phoneNumber; |
| 66: | |
| 67: | /** |
| 68: | * Address line 1, no PO Box. |
| 69: | */ |
| 70: | public function getLine1(): ?string |
| 71: | { |
| 72: | return $this->line1; |
| 73: | } |
| 74: | |
| 75: | /** |
| 76: | * Address line 1, no PO Box. |
| 77: | */ |
| 78: | public function setLine1(?string $line1): self |
| 79: | { |
| 80: | $this->initialized['line1'] = true; |
| 81: | $this->line1 = $line1; |
| 82: | |
| 83: | return $this; |
| 84: | } |
| 85: | |
| 86: | /** |
| 87: | * Address line 2 (e.g., apartment, suite, unit, or building). |
| 88: | */ |
| 89: | public function getLine2(): ?string |
| 90: | { |
| 91: | return $this->line2; |
| 92: | } |
| 93: | |
| 94: | /** |
| 95: | * Address line 2 (e.g., apartment, suite, unit, or building). |
| 96: | */ |
| 97: | public function setLine2(?string $line2): self |
| 98: | { |
| 99: | $this->initialized['line2'] = true; |
| 100: | $this->line2 = $line2; |
| 101: | |
| 102: | return $this; |
| 103: | } |
| 104: | |
| 105: | /** |
| 106: | * City, district, suburb, town, or village. |
| 107: | */ |
| 108: | public function getCity(): ?string |
| 109: | { |
| 110: | return $this->city; |
| 111: | } |
| 112: | |
| 113: | /** |
| 114: | * City, district, suburb, town, or village. |
| 115: | */ |
| 116: | public function setCity(?string $city): self |
| 117: | { |
| 118: | $this->initialized['city'] = true; |
| 119: | $this->city = $city; |
| 120: | |
| 121: | return $this; |
| 122: | } |
| 123: | |
| 124: | /** |
| 125: | * For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region. |
| 126: | */ |
| 127: | public function getState(): ?string |
| 128: | { |
| 129: | return $this->state; |
| 130: | } |
| 131: | |
| 132: | /** |
| 133: | * For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region. |
| 134: | */ |
| 135: | public function setState(?string $state): self |
| 136: | { |
| 137: | $this->initialized['state'] = true; |
| 138: | $this->state = $state; |
| 139: | |
| 140: | return $this; |
| 141: | } |
| 142: | |
| 143: | /** |
| 144: | * Two-letter country code (ISO 3166-1 alpha-2). |
| 145: | */ |
| 146: | public function getCountry(): ?string |
| 147: | { |
| 148: | return $this->country; |
| 149: | } |
| 150: | |
| 151: | /** |
| 152: | * Two-letter country code (ISO 3166-1 alpha-2). |
| 153: | */ |
| 154: | public function setCountry(?string $country): self |
| 155: | { |
| 156: | $this->initialized['country'] = true; |
| 157: | $this->country = $country; |
| 158: | |
| 159: | return $this; |
| 160: | } |
| 161: | |
| 162: | /** |
| 163: | * ZIP or postal code. |
| 164: | */ |
| 165: | public function getPostalCode(): ?string |
| 166: | { |
| 167: | return $this->postalCode; |
| 168: | } |
| 169: | |
| 170: | /** |
| 171: | * ZIP or postal code. |
| 172: | */ |
| 173: | public function setPostalCode(?string $postalCode): self |
| 174: | { |
| 175: | $this->initialized['postalCode'] = true; |
| 176: | $this->postalCode = $postalCode; |
| 177: | |
| 178: | return $this; |
| 179: | } |
| 180: | |
| 181: | /** |
| 182: | * Phone number. |
| 183: | */ |
| 184: | public function getPhoneNumber(): ?string |
| 185: | { |
| 186: | return $this->phoneNumber; |
| 187: | } |
| 188: | |
| 189: | /** |
| 190: | * Phone number. |
| 191: | */ |
| 192: | public function setPhoneNumber(?string $phoneNumber): self |
| 193: | { |
| 194: | $this->initialized['phoneNumber'] = true; |
| 195: | $this->phoneNumber = $phoneNumber; |
| 196: | |
| 197: | return $this; |
| 198: | } |
| 199: | } |
| 200: |