ZKAddress

Objective-C

@interface ZKAddress : NSObject

Swift

class ZKAddress : NSObject

Record describing user address details

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithHouseNumber:(nonnull NSString *)houseNumber
                                   addressLine1:(nonnull NSString *)addressLine1
                                   addressLine2:(nullable NSString *)addressLine2
                                        country:(nonnull NSString *)country
                                       postCode:(nonnull NSString *)postCode
                                       postTown:(nonnull NSString *)postTown;

    Swift

    init(houseNumber: String, addressLine1: String, addressLine2: String?, country: String, postCode: String, postTown: String)
  • Declaration

    Objective-C

    + (nonnull instancetype)addressWithHouseNumber:(nonnull NSString *)houseNumber
                                      addressLine1:(nonnull NSString *)addressLine1
                                      addressLine2:(nullable NSString *)addressLine2
                                           country:(nonnull NSString *)country
                                          postCode:(nonnull NSString *)postCode
                                          postTown:(nonnull NSString *)postTown;
  • House number.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *houseNumber;

    Swift

    var houseNumber: String { get }
  • First line of address.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *addressLine1;

    Swift

    var addressLine1: String { get }
  • Second line of address or null.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressLine2;

    Swift

    var addressLine2: String? { get }
  • Country code in ISO 3166-1 Alpha-2 format, e.g. ‘GB’.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *country;

    Swift

    var country: String { get }
  • Post code.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *postCode;

    Swift

    var postCode: String { get }
  • Post town

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *postTown;

    Swift

    var postTown: String { get }