51 lines
1.1 KiB
Swift
51 lines
1.1 KiB
Swift
//
|
|
// Address.swift
|
|
// tl2swift
|
|
//
|
|
// Generated automatically. Any changes will be lost!
|
|
// Based on TDLib 1.8.64-49b3bcbb-49b3bcbb
|
|
// https://github.com/tdlib/td/tree/49b3bcbb
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
/// Describes an address
|
|
public struct Address: Codable, Equatable, Hashable {
|
|
|
|
/// City
|
|
public let city: String
|
|
|
|
/// A two-letter ISO 3166-1 alpha-2 country code
|
|
public let countryCode: String
|
|
|
|
/// Address postal code
|
|
public let postalCode: String
|
|
|
|
/// State, if applicable
|
|
public let state: String
|
|
|
|
/// First line of the address
|
|
public let streetLine1: String
|
|
|
|
/// Second line of the address
|
|
public let streetLine2: String
|
|
|
|
|
|
public init(
|
|
city: String,
|
|
countryCode: String,
|
|
postalCode: String,
|
|
state: String,
|
|
streetLine1: String,
|
|
streetLine2: String
|
|
) {
|
|
self.city = city
|
|
self.countryCode = countryCode
|
|
self.postalCode = postalCode
|
|
self.state = state
|
|
self.streetLine1 = streetLine1
|
|
self.streetLine2 = streetLine2
|
|
}
|
|
}
|
|
|