BTPostalAddress

Objective-C

@interface BTPostalAddress : NSObject <NSCopying>

Swift

class BTPostalAddress : NSObject, NSCopying

Generic postal address

  • Optional. Recipient name for shipping address.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *recipientName;

    Swift

    var recipientName: String? { get set }
  • Line 1 of the Address (eg. number, street, etc).

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *streetAddress;

    Swift

    var streetAddress: String? { get set }
  • Optional line 2 of the Address (eg. suite, apt #, etc.).

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *extendedAddress;

    Swift

    var extendedAddress: String? { get set }
  • City name

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *locality;

    Swift

    var locality: String? { get set }
  • 2 letter country code.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *countryCodeAlpha2;

    Swift

    var countryCodeAlpha2: String? { get set }
  • Zip code or equivalent is usually required for countries that have them. For a list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *postalCode;

    Swift

    var postalCode: String? { get set }
  • Either a two-letter state code (for the US), or an ISO-3166-2 country subdivision code of up to three letters.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *region;

    Swift

    var region: String? { get set }