Index: ios/chrome/browser/ui/payments/payment_request_editor_field.mm |
diff --git a/ios/chrome/browser/ui/payments/payment_request_editor_field.mm b/ios/chrome/browser/ui/payments/payment_request_editor_field.mm |
index 27ee53e133a7c8f563884e05a0faa382abfb83c8..68740c4aefd241749ad3c87dbec7137683417c05 100644 |
--- a/ios/chrome/browser/ui/payments/payment_request_editor_field.mm |
+++ b/ios/chrome/browser/ui/payments/payment_request_editor_field.mm |
@@ -11,19 +11,23 @@ |
@implementation EditorField |
@synthesize autofillUIType = _autofillUIType; |
+@synthesize fieldType = _fieldType; |
@synthesize label = _label; |
@synthesize value = _value; |
+@synthesize displayValue = _displayValue; |
@synthesize required = _required; |
@synthesize item = _item; |
@synthesize sectionIdentifier = _sectionIdentifier; |
- (instancetype)initWithAutofillUIType:(AutofillUIType)autofillUIType |
+ fieldType:(EditorFieldType)fieldType |
label:(NSString*)label |
value:(NSString*)value |
required:(BOOL)required { |
self = [super init]; |
if (self) { |
_autofillUIType = autofillUIType; |
+ _fieldType = fieldType; |
_label = label; |
_value = value; |
_required = required; |
@@ -31,4 +35,8 @@ |
return self; |
} |
+- (NSString*)description { |
+ return [NSString stringWithFormat:@"Label: %@, Value: %@", _label, _value]; |
+} |
+ |
@end |