BTPostalAddress.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /**
  4. Generic postal address
  5. */
  6. @interface BTPostalAddress : NSObject <NSCopying>
  7. /**
  8. Optional. Recipient name for shipping address.
  9. */
  10. @property (nonatomic, nullable, copy) NSString *recipientName;
  11. /**
  12. Line 1 of the Address (eg. number, street, etc).
  13. */
  14. @property (nonatomic, nullable, copy) NSString *streetAddress;
  15. /**
  16. Optional line 2 of the Address (eg. suite, apt #, etc.).
  17. */
  18. @property (nonatomic, nullable, copy) NSString *extendedAddress;
  19. /**
  20. City name
  21. */
  22. @property (nonatomic, nullable, copy) NSString *locality;
  23. /**
  24. 2 letter country code.
  25. */
  26. @property (nonatomic, nullable, copy) NSString *countryCodeAlpha2;
  27. /**
  28. 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.
  29. */
  30. @property (nonatomic, nullable, copy) NSString *postalCode;
  31. /**
  32. 2 letter code for US states, and the equivalent for other countries.
  33. */
  34. @property (nonatomic, nullable, copy) NSString *region;
  35. @end
  36. NS_ASSUME_NONNULL_END