blob: 31a135f44380f9702d25286d09ae21f354821ffa [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_ADDRESS_H_
#define IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_ADDRESS_H_
#import <Foundation/Foundation.h>
// This represents an address to use with manual fill.
@interface ManualFillAddress : NSObject
// The addressee's first name.
@property(nonatomic, readonly) NSString* firstName;
// The addressee's middle name or middle initial, or empty.
@property(nonatomic, readonly) NSString* middleNameOrInitial;
// The addressee's last name.
@property(nonatomic, readonly) NSString* lastName;
// The first line of this address.
@property(nonatomic, readonly) NSString* line1;
// The second, optional, line of this address.
@property(nonatomic, readonly) NSString* line2;
// The zip code of the address.
@property(nonatomic, readonly) NSString* zip;
// The city of the address.
@property(nonatomic, readonly) NSString* city;
// The state or province of the address.
@property(nonatomic, readonly) NSString* state;
// The country of the address.
@property(nonatomic, readonly) NSString* country;
// Default init.
- (instancetype)initWithFirstName:(NSString*)firstName
middleNameOrInitial:(NSString*)middleNameOrInitial
lastName:(NSString*)lastName
line1:(NSString*)line1
line2:(NSString*)line2
zip:(NSString*)zip
city:(NSString*)city
state:(NSString*)state
country:(NSString*)country NS_DESIGNATED_INITIALIZER;
// Unavailable. Please use |initWithFirstName:middleNameOrInitial:lastName:
// line1:line2:zip:city:state:country:|.
- (instancetype)init NS_UNAVAILABLE;
@end
#endif // IOS_CHROME_BROWSER_UI_AUTOFILL_MANUAL_FILL_ADDRESS_H_