GramIO API Reference / @gramio/contexts/dist / ShippingAddress
Class: ShippingAddress
Defined in: contexts/index.d.ts:2216
This object represents a shipping address.
Constructors
Constructor
new ShippingAddress(
payload):ShippingAddress
Defined in: contexts/index.d.ts:2218
Parameters
| Parameter | Type |
|---|---|
payload | TelegramShippingAddress |
Returns
ShippingAddress
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramShippingAddress | contexts/index.d.ts:2217 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2220
Returns
string
city
Get Signature
get city():
string
Defined in: contexts/index.d.ts:2226
City
Returns
string
countryCode
Get Signature
get countryCode():
string
Defined in: contexts/index.d.ts:2222
ISO 3166-1 alpha-2 country code
Returns
string
firstStreetLine
Get Signature
get firstStreetLine():
string
Defined in: contexts/index.d.ts:2228
First line for the address
Returns
string
postCode
Get Signature
get postCode():
string
Defined in: contexts/index.d.ts:2232
Address post code
Returns
string
secondStreetLine
Get Signature
get secondStreetLine():
string
Defined in: contexts/index.d.ts:2230
Second line for the address
Returns
string
state
Get Signature
get state():
string
Defined in: contexts/index.d.ts:2224
State, if applicable
Returns
string