2018-12-26 02:56:50 +01:00
|
|
|
---
|
|
|
|
title: postAddress
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Shipping address
|
2018-12-26 02:56:50 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: postAddress
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Shipping address
|
2018-12-26 02:56:50 +01:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|street\_line1|[string](../types/string.md) | Yes|First line for the address|
|
|
|
|
|street\_line2|[string](../types/string.md) | Yes|Second line for the address|
|
2018-12-26 02:56:50 +01:00
|
|
|
|city|[string](../types/string.md) | Yes|City|
|
2019-12-27 17:48:04 +01:00
|
|
|
|state|[string](../types/string.md) | Yes|State, if applicable (empty otherwise)|
|
|
|
|
|country\_iso2|[string](../types/string.md) | Yes|ISO 3166-1 alpha-2 country code|
|
|
|
|
|post\_code|[string](../types/string.md) | Yes|Address post code|
|
2018-12-26 02:56:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PostAddress](../types/PostAddress.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$postAddress = ['_' => 'postAddress', 'street_line1' => 'string', 'street_line2' => 'string', 'city' => 'string', 'state' => 'string', 'country_iso2' => 'string', 'post_code' => 'string'];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
postAddress={_='postAddress', street_line1='string', street_line2='string', city='string', state='string', country_iso2='string', post_code='string'}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|