| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Sync protocol datatype extension for autofill. | 5 // Sync protocol datatype extension for autofill. |
| 6 | 6 |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
| 8 // any fields in this file. | 8 // any fields in this file. |
| 9 | 9 |
| 10 syntax = "proto2"; | 10 syntax = "proto2"; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 AMEX = 1; | 85 AMEX = 1; |
| 86 DISCOVER = 2; | 86 DISCOVER = 2; |
| 87 JCB = 3; | 87 JCB = 3; |
| 88 MAESTRO = 4; | 88 MAESTRO = 4; |
| 89 MASTER_CARD = 5; | 89 MASTER_CARD = 5; |
| 90 SOLO = 6; | 90 SOLO = 6; |
| 91 SWITCH = 7; | 91 SWITCH = 7; |
| 92 VISA = 8; | 92 VISA = 8; |
| 93 } | 93 } |
| 94 | 94 |
| 95 enum WalletCardClass { |
| 96 UNKNOWN_CARD_CLASS = 0; |
| 97 CREDIT = 1; |
| 98 DEBIT = 2; |
| 99 PREPAID = 3; |
| 100 } |
| 101 |
| 95 // Server-generated unique ID string. This is opaque to the client. | 102 // Server-generated unique ID string. This is opaque to the client. |
| 96 optional string id = 1; | 103 optional string id = 1; |
| 97 | 104 |
| 98 // What the server thinks of this card. | 105 // What the server thinks of this card. |
| 99 optional WalletCardStatus status = 2; | 106 optional WalletCardStatus status = 2; |
| 100 | 107 |
| 101 optional string name_on_card = 3; | 108 optional string name_on_card = 3; |
| 102 | 109 |
| 103 optional WalletCardType type = 4; | 110 optional WalletCardType type = 4; |
| 104 | 111 |
| 105 // Last 4 digits of the credit card number. | 112 // Last 4 digits of the credit card number. |
| 106 optional string last_four = 5; | 113 optional string last_four = 5; |
| 107 | 114 |
| 108 // Month number 1-12. | 115 // Month number 1-12. |
| 109 optional int32 exp_month = 6; | 116 optional int32 exp_month = 6; |
| 110 | 117 |
| 111 // Four-digit year (e.g. 2017). | 118 // Four-digit year (e.g. 2017). |
| 112 optional int32 exp_year = 7; | 119 optional int32 exp_year = 7; |
| 113 | 120 |
| 114 // The WalletPostalAddress.id of the billing address. | 121 // The WalletPostalAddress.id of the billing address. |
| 115 optional string billing_address_id = 8; | 122 optional string billing_address_id = 8; |
| 123 |
| 124 // Card class: credit, debit, or prepaid. |
| 125 optional WalletCardClass card_class = 9; |
| 116 } | 126 } |
| 117 | 127 |
| 118 // Different than an AutofillProfile because this represents some known address | 128 // Different than an AutofillProfile because this represents some known address |
| 119 // on the server that is pulled down rather than synced between Chromes. | 129 // on the server that is pulled down rather than synced between Chromes. |
| 120 message WalletPostalAddress { | 130 message WalletPostalAddress { |
| 121 optional string id = 1; | 131 optional string id = 1; |
| 122 | 132 |
| 123 optional string recipient_name = 12; | 133 optional string recipient_name = 12; |
| 124 optional string company_name = 2; | 134 optional string company_name = 2; |
| 125 | 135 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // - Language code | 213 // - Language code |
| 204 optional string id = 2; | 214 optional string id = 2; |
| 205 | 215 |
| 206 // The number of times that this Wallet card or address was used. | 216 // The number of times that this Wallet card or address was used. |
| 207 optional int64 use_count = 3; | 217 optional int64 use_count = 3; |
| 208 | 218 |
| 209 // The last use date of this Wallet card or address. Measured in microseconds | 219 // The last use date of this Wallet card or address. Measured in microseconds |
| 210 // since the Windows epoch (1601). | 220 // since the Windows epoch (1601). |
| 211 optional int64 use_date = 4; | 221 optional int64 use_date = 4; |
| 212 } | 222 } |
| OLD | NEW |