//
// OBPostalAddress6.swift
//
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//

import Foundation


/** Information that locates and identifies a specific address, as defined by postal services. */

public struct OBPostalAddress6: Codable {

    public var addressType: OBAddressTypeCode?
    /** Identification of a division of a large organisation or building. */
    public var department: String?
    /** Identification of a sub-division of a large organisation or building. */
    public var subDepartment: String?
    /** Name of a street or thoroughfare. */
    public var streetName: String?
    /** Number that identifies the position of a building on a street. */
    public var buildingNumber: String?
    /** Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail. */
    public var postCode: String?
    /** Name of a built-up area, with defined boundaries, and a local government. */
    public var townName: String?
    /** Identifies a subdivision of a country such as state, region, county. */
    public var countrySubDivision: String?
    /** Nation with its own government. */
    public var country: String?
    /** Information that locates and identifies a specific address, as defined by postal services, presented in free format text. */
    public var addressLine: [String]?

    public init(addressType: OBAddressTypeCode?, department: String?, subDepartment: String?, streetName: String?, buildingNumber: String?, postCode: String?, townName: String?, countrySubDivision: String?, country: String?, addressLine: [String]?) {
        self.addressType = addressType
        self.department = department
        self.subDepartment = subDepartment
        self.streetName = streetName
        self.buildingNumber = buildingNumber
        self.postCode = postCode
        self.townName = townName
        self.countrySubDivision = countrySubDivision
        self.country = country
        self.addressLine = addressLine
    }

    public enum CodingKeys: String, CodingKey { 
        case addressType = "AddressType"
        case department = "Department"
        case subDepartment = "SubDepartment"
        case streetName = "StreetName"
        case buildingNumber = "BuildingNumber"
        case postCode = "PostCode"
        case townName = "TownName"
        case countrySubDivision = "CountrySubDivision"
        case country = "Country"
        case addressLine = "AddressLine"
    }


}

